/* Trang chủ. Màu lấy từ app.css; ở đây chỉ thêm bố cục và chuyển động. */
body.home main { padding: 0; }
body.home footer { border-top: 0; }
.sec { padding: 72px 0; }
.sec-tight { padding: 48px 0; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
.sec .lead { font-size: 1.08rem; color: var(--ink-2); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #d6effc 0%, #eef8ff 55%, #f6f1e4 100%); }
.hero2 .wrap { text-align: center; padding-top: 52px; padding-bottom: 28px; max-width: 860px; }
.hero2 .lead { margin-left: auto; margin-right: auto; max-width: 680px; }
.hero2 .hero-cta, .hero2 .hero-facts { justify-content: center; }
.hero2 h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero2 h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero2 h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.18em; background: #f6c95b; opacity: 0.55; z-index: -1; border-radius: 4px; }
.hero2 .lead { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(63, 143, 58, 0.28); }
.btn.lg.alt { box-shadow: none; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hero-facts div { font-size: 0.86rem; color: var(--ink-2); }
.hero-facts b { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.countdown { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; box-shadow: var(--shadow); }
.countdown .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); } }

.chip { background: #fff; border-radius: 14px; padding: 9px 13px; font-size: 0.84rem; font-weight: 700; box-shadow: 0 8px 22px rgba(40, 50, 30, 0.16); display: flex; align-items: center; gap: 8px; animation: bob 4s ease-in-out infinite; white-space: nowrap; }
.chip i { width: 26px; height: 26px; display: inline-block; flex: none; }
.chip i svg { width: 100%; height: 100%; }
.chip small { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.74rem; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Làng 3D ngay dưới phần mở đầu */
.v3d-sec { background: linear-gradient(180deg, #f2f8f6 0%, #f6f1e4 100%); padding: 6px 0 40px; }
.v3d { position: relative; height: min(74vh, 700px); min-height: 420px; border-radius: 28px; overflow: hidden; background: #cfeaf7; box-shadow: 0 22px 50px rgba(50, 80, 40, 0.18); }
.v3d canvas { display: block; }
.v3d-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.v3d-top .chip { position: static; animation: none; pointer-events: auto; }
.v3d-bot { position: absolute; bottom: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.v3d-bot .btn { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.v3d-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-weight: 600; }
.demo-badge { background: #fff4d6 !important; color: #8a5a00; }
.tree-ic { display: inline-block; width: 26px; height: 26px; vertical-align: middle; }

/* ---------- Nỗi đau, lời hứa ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.pain .q { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.pain .a { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.pain .tag { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--brand); background: #e7f3e2; padding: 4px 10px; border-radius: 999px; }

/* ---------- Hành trình 3 chặng ---------- */
.journey { background: linear-gradient(180deg, #f6f1e4, #eef6e3); }
.stages3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; position: relative; }
.stages3::before { content: ""; position: absolute; left: 8%; right: 8%; top: 74px; border-top: 3px dashed #cdbf9b; z-index: 0; }
.st { position: relative; z-index: 1; background: var(--card); border-radius: 22px; padding: 24px 22px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.25s; }
.st:hover { transform: translateY(-4px); }
.st .pic { height: 110px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: -8px 0 10px; }
.st .pic svg { width: 84px; height: 84px; }
.st .pic svg.small { width: 62px; height: 62px; }
.st .wk { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-2); }
.st h3 { font-size: 1.4rem; margin: 4px 0 6px; }
.st .goal { font-weight: 600; margin-bottom: 8px; }
.st .trees { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.st .badge-n { position: absolute; top: -14px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(232, 163, 58, 0.4); }

/* ---------- Cách tham gia ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.step .ico { width: 54px; height: 54px; border-radius: 16px; background: #e7f3e2; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step .ico svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step h3::before { counter-increment: s; content: counter(s) ". "; color: var(--accent); }
.step p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }

/* ---------- Thang cảnh quan ---------- */
.ladder-wrap { background: #2f5e35; color: #f4f8ec; border-radius: 28px; padding: 40px 32px; position: relative; overflow: hidden; }
.ladder-wrap h2 { color: #fff; }
.ladder-wrap .lead { color: #cfe3c4; }
.ladder { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.rung { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 10px 14px; min-width: 120px; flex: 1 1 120px; }
.rung b { display: block; font-size: 0.95rem; }
.rung span { font-size: 0.78rem; color: #b9d3ad; }
.ladder-village { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.ladder-village .rung { background: rgba(246, 201, 91, 0.16); border-color: rgba(246, 201, 91, 0.4); }
.ladder-cta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.ladder-cta .btn.alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Tiền cọc ---------- */
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.calc input[type="range"] { padding: 0; border: 0; accent-color: var(--brand); }
.calc .out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.calc .out div { background: var(--bg); border-radius: 14px; padding: 12px; }
.calc .out b { display: block; font-size: 1.25rem; }
.calc .out span { font-size: 0.78rem; color: var(--ink-2); }
.calc .out .refund { background: #e3f3e1; }
.calc .out .refund b { color: var(--ok); }
.money ul { padding-left: 20px; }
.money li { margin-bottom: 8px; }

/* ---------- Làng hôm nay ---------- */
.live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.live .card { margin: 0; border-top: 6px solid var(--farm, var(--brand)); }
.live .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--farm, var(--brand)); border-radius: 99px; width: 0; transition: width 1.2s ease; }

/* ---------- Hỏi đáp ---------- */
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

/* ---------- Kêu gọi cuối ---------- */
.final { text-align: center; background: linear-gradient(135deg, #3f8f3a, #2f6f33); color: #fff; border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.final p { color: #d8ecd0; font-size: 1.08rem; }
.final .btn { background: #fff; color: var(--brand); }
.final .row-trees { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.final .row-trees svg { width: 44px; height: 44px; }

/* hiện dần khi cuộn tới */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero2 .wrap { padding-top: 32px; }
  .pains, .stages3, .live { grid-template-columns: 1fr; }
  .stages3::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .money { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sec { padding: 52px 0; }
  .v3d { height: 62vh; min-height: 380px; border-radius: 20px; }
  .v3d-sec .wrap { padding: 0 10px; }
  .steps { grid-template-columns: 1fr; }
  .chip { font-size: 0.76rem; padding: 7px 10px; }
  .ladder-wrap, .final { border-radius: 20px; padding: 30px 20px; }
  .calc { padding: 20px 16px; }
  .calc .out { gap: 8px; }
  .calc .out div { padding: 10px 8px; }
  .calc .out b { font-size: 1rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .chip, .countdown .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* danh sách có biểu tượng trong các khối của trang chủ */
.pain .ticks, .step .ticks { margin-top: 10px; color: var(--ink-2); }
.pain .ticks li, .step .ticks li { color: var(--ink); }
.ladder-wrap .ticks { --tick-bg: rgba(255, 255, 255, 0.14); --tick: #f6c95b; color: #f4f8ec; margin: 14px 0 22px; }
.ladder-wrap .ticks b { color: #fff; }
.money .ticks { padding-left: 0; }
.money .ticks li { margin-bottom: 0; }
.faq details .ticks { margin: 0 0 14px; }
.center .ticks.row { margin-left: auto; margin-right: auto; }

/* thang cảnh quan rút gọn: mỗi món là một chip "số mốc + tên" */
.mile-h { margin-top: 22px; font-weight: 800; color: #fff; }
.mile-h small { font-weight: 600; color: #b9d3ad; margin-left: 6px; }
.miles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mile { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 4px 13px 4px 4px; font-size: 0.9rem; font-weight: 600; }
.mile i { font-style: normal; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #f6c95b; color: #2f5e35; font-weight: 800; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.miles.gold .mile { background: rgba(246, 201, 91, 0.16); border-color: rgba(246, 201, 91, 0.45); }
.ladder-wrap .lead b { color: #fff; }
