/* AI-SMARTSERVE, kiểu dáng từng khối theo Figma v2.8 (desktop 1440, container 1200, gutter 120). */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-check { width: 20px; height: 20px; stroke: none; --chk-bg: var(--olive-soft); --chk-fg: var(--brown); }
.ic-cross { width: 20px; height: 20px; stroke: none; --x-bg: var(--sand); --x-fg: var(--brown-soft); }
.ic-plain { width: 20px; height: 20px; stroke: var(--brown-soft); stroke-width: 2; }
.d { display: inline; }
.nobr { white-space: nowrap; }
.link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, .faq-q { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--cream); transition: box-shadow .2s ease; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(62, 42, 30, 0.06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); height: 87px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brown); color: var(--cream); }
.brand .mark .ic { width: 20px; height: 20px; }
.brand .wordmark { font-size: 24px; font-weight: 600; color: var(--brown); letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.brand-light .mark { background: var(--cream); color: var(--brown); }
.brand-light .wordmark { color: var(--on-brand); }
.menu { display: flex; gap: var(--s-32); }
.menu a { font-size: 16px; color: var(--ink); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .18s ease; }
.menu a:hover, .menu a.is-active { border-bottom-color: var(--brown); }
.nav .actions { display: flex; align-items: center; gap: var(--s-8); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-12); color: var(--brown); place-items: center; }
.menu-mobile { display: none; }
.menu-mobile[hidden] { display: none; }
@media (max-width: 1199px) {
  .menu, .nav .actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-row { height: 72px; }
  .menu-mobile:not([hidden]) { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--border); background: var(--cream); }
  .menu-mobile a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .menu-mobile .btn { margin-top: 12px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .nav .actions .btn-primary { display: inline-flex; }
  .menu-mobile .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 660fr 780fr; min-height: 680px; }
.hero-copy { background: linear-gradient(180deg, var(--brown-dark) 0%, var(--brown) 100%); color: var(--on-brand); padding: 96px 44px 96px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero-h1 { font-size: 56px; line-height: 1.04; font-weight: 700; letter-spacing: -0.015em; max-width: 520px; }
.hero-sub { color: var(--latte); max-width: 560px; }
@media (min-width: 1440px) { .hero-copy { padding-right: 16px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; overflow: hidden; min-height: 420px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.live-chip { position: absolute; top: 56px; right: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; background: var(--white); color: var(--ink); border-radius: var(--r-pill); font-size: 14px; box-shadow: var(--shadow-soft); white-space: nowrap; }
.live-chip .dot, .pill-paid .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); flex: none; }
.product-card { position: absolute; left: 8px; bottom: 40px; width: 59.5%; max-width: 464px; background: var(--white); border: 1.12px solid var(--latte); border-radius: 18px; box-shadow: var(--shadow-soft); overflow: hidden; transform: rotate(-3deg); transform-origin: left bottom; }
.product-card img { width: 100%; height: auto; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--sand); }
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--brown-soft); }
.browser-bar span:nth-child(2) { background: var(--latte); }
.browser-bar span:nth-child(3) { background: var(--olive-soft); }
.browser-bar i { flex: 0 1 200px; height: 14px; margin-left: 8px; border-radius: 7px; background: var(--white); }
.product-card .browser-bar { padding: 11px 13px; }
.product-card .browser-bar span { width: 9px; height: 9px; }
.product-card .browser-bar i { height: 27px; border-radius: 8px; flex-basis: 225px; }
.revenue-chip { position: absolute; right: 64px; bottom: 40px; display: grid; gap: 2px; padding: 13px 20px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-soft); transform: rotate(-6deg); }
.revenue-chip .label { font-size: 15px; font-weight: 600; color: var(--muted); }
.revenue-chip .value { font-size: 18px; font-weight: 600; color: var(--brown); }
@media (max-width: 1279px) { .hero-h1 { font-size: 48px; } .hero-copy { padding-left: var(--gutter); } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 72px var(--gutter) 56px; }
  .hero-h1 { max-width: 640px; }
  .hero-visual { min-height: 480px; }
  .product-card { left: 28px; }
}
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 48px; gap: 20px; }
  .hero-h1 { font-size: 36px; max-width: none; }
  .hero-visual { min-height: 380px; }
  .live-chip { top: 20px; right: 16px; font-size: 13px; padding: 8px 14px 8px 12px; }
  .product-card { left: 12px; bottom: 24px; width: 72%; }
  .revenue-chip { right: 16px; bottom: 24px; padding: 10px 14px; }
  .revenue-chip .label { font-size: 13px; } .revenue-chip .value { font-size: 16px; }
}

/* ---------- Stats ---------- */
.stats { background: var(--sand); padding-block: 56px; }
.stats-row { display: grid; grid-template-columns: 391fr 415fr 391fr; }
.stat-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat { display: flex; align-items: center; gap: 20px; padding: 0 24px; border-left: 1px solid var(--latte); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.cup { width: 100px; height: 83px; flex: none; }
.cup .saucer { fill: var(--latte); }
.cup .handle { fill: none; stroke: var(--brown-dark); stroke-width: 3.75; }
.cup .cup-body { fill: var(--on-brand); stroke: var(--brown-dark); stroke-width: 3.75; }
.cup .liquid { fill: var(--brown); }
.cup .foam { fill: var(--latte); }
.stat-text { display: grid; gap: 8px; min-width: 0; }
.stat-num { font-size: 52px; line-height: 1.04; font-weight: 700; letter-spacing: -0.015em; color: var(--brown); }
.stat-label { font-size: 16px; line-height: 1.6; color: var(--ink); }
.stats-source { margin-top: 28px; }
@media (max-width: 1439px) { .cup { width: 84px; height: 70px; } .stat { gap: 16px; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cup { width: 72px; height: 60px; }
  .stat-num { font-size: 48px; }
}
@media (max-width: 1023px) {
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-left: 0; padding: 0; border-top: 1px solid var(--latte); padding-top: 24px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat-num { font-size: 44px; }
}

/* ---------- Pain ---------- */
.pain-head { display: grid; grid-template-columns: 700px 1fr; gap: 40px; align-items: end; }
.pain-head .h2 { max-width: 700px; }
.pain-head p { max-width: 460px; justify-self: end; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; height: 40px; align-items: center; }
.timeline li { position: relative; display: flex; align-items: center; gap: 10px; padding-left: 20px; height: 40px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brown); flex: none; }
.timeline .lbl { font-size: 14px; font-weight: 600; color: var(--brown-dark); white-space: nowrap; }
.timeline .seg { flex: 1; height: 2px; margin-left: 4px; margin-right: 14px; background: radial-gradient(circle, var(--latte) 1px, transparent 1.3px) 0 50% / 8px 2px repeat-x; }
.timeline li:last-child .seg { margin-right: 10px; }
.timeline .ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brown); flex: none; margin-right: 20px; }
.pain-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.pain-img { position: relative; border-radius: var(--r-20); overflow: hidden; aspect-ratio: 384 / 230; }
.pain-img img { width: 100%; height: 100%; object-fit: cover; }
.pain-img, .segment img, .faq-photo, .receipt, .browser img { background-color: var(--sand); }
.pain-img .tag { position: absolute; left: 20px; top: 20px; padding: 8px 14px; background: var(--white); color: var(--brown-dark); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; line-height: 1.3; }
.pain-card .h3 { margin-top: 20px; }
.pain-card p { margin-top: 8px; }
@media (max-width: 1279px) {
  .pain-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .pain-head p { justify-self: start; max-width: 640px; }
}
@media (max-width: 1023px) {
  .timeline { display: none; }
  .pain-cards { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pain-cards { gap: 28px; }
  .pain-card { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 28px; }
  .pain-card .pain-img { grid-column: 1; grid-row: 1 / -1; }
  .pain-card .h3 { grid-column: 2; grid-row: 2; margin-top: 0; }
  .pain-card p { grid-column: 2; grid-row: 3; }
}

/* ---------- How ---------- */
.how { background: var(--white); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.step { display: grid; gap: 16px; align-content: start; }
.illus { width: 100%; height: auto; aspect-ratio: 368 / 220; font-family: var(--font); }
.illus-1 .bg { fill: var(--sand); } .illus-2 .bg { fill: var(--olive-soft); } .illus-3 .bg { fill: var(--latte); }
.illus .numeral { font-size: 88px; font-weight: 700; letter-spacing: -0.03em; fill: var(--brown-dark); opacity: .2; }
.illus .dark { fill: var(--brown-dark); } .illus .screen { fill: var(--screen); } .illus .latte { fill: var(--latte); } .illus .brown { fill: var(--brown); } .illus .brown-soft { fill: var(--brown-soft); } .illus .ink { fill: var(--ink); } .illus .white { fill: var(--white); } .illus .olive { fill: var(--olive); } .illus .sand { fill: var(--sand); }
.illus .chip text { font-size: 12px; font-weight: 600; text-anchor: middle; }
.illus .chip-olive rect { fill: var(--olive-soft); } .illus .chip-olive text { fill: var(--ink); }
.illus .chip-brown rect { fill: var(--brown); } .illus .chip-brown text { fill: var(--on-brand); }
.step-label { font-size: 14px; font-weight: 600; color: var(--olive-text); }
.step .h3 { margin-top: 4px; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -40px; top: calc(42.7% - 16px); width: 32px; height: 32px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a4030' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12H19M13 18L19 12L13 6'/%3E%3C/svg%3E") center / 16px no-repeat; border: 1px solid var(--latte); }
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .step:not(:last-child)::after { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .steps { gap: 28px; }
  .step { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 28px; row-gap: 8px; align-content: stretch; }
  .step .illus { grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .step .step-label { grid-column: 2; grid-row: 2; }
  .step .h3 { grid-column: 2; grid-row: 3; margin-top: 0; }
  .step p.muted { grid-column: 2; grid-row: 4; }
}

/* ---------- Features (bento) ---------- */
.bento { display: grid; gap: 24px; margin-top: 56px; grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "c d e" "f f g"; }
.fcard:nth-child(1) { grid-area: a; } .fcard:nth-child(2) { grid-area: b; } .fcard:nth-child(3) { grid-area: c; } .fcard:nth-child(4) { grid-area: d; } .fcard:nth-child(5) { grid-area: e; } .fcard:nth-child(6) { grid-area: f; } .fcard:nth-child(7) { grid-area: g; }
.fcard { background: var(--white); border-radius: var(--r-24); padding: 32px; box-shadow: var(--shadow-card); display: grid; gap: 24px; align-content: start; }
.fcard-wide { grid-template-columns: 340px 1fr; align-items: center; align-content: center; }
.fcard-dark { background: var(--brown-dark); color: var(--on-brand); }
.fcard-dark .icon-badge { background: var(--brown); color: var(--on-brand); }
.fcard-dark .ftext p { color: var(--latte); }
.fcard-sand { background: var(--sand); }
.ftext { display: grid; gap: 12px; min-width: 0; }
.ftext .h3 { margin-top: 0; }
.icon-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--brown); }
.browser { background: var(--white); border: 1px solid var(--latte); border-radius: var(--r-16); box-shadow: var(--shadow-soft); overflow: hidden; }
.browser img { width: 100%; height: auto; }
.fcard-wide .browser { justify-self: end; width: 100%; max-width: 364px; }
.receipt { position: relative; border-radius: var(--r-16); overflow: hidden; aspect-ratio: 320 / 190; }
.receipt img { width: 100%; height: 100%; object-fit: cover; }
.pill-paid { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--on-brand); color: var(--ink); border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.pill-paid .dot { width: 8px; height: 8px; }
@media (min-width: 768px) and (max-width: 1279px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e" "f g"; }
  .fcard-wide:nth-child(6) { grid-template-columns: 1fr; align-content: start; }
  .fcard-wide:nth-child(6) .browser { justify-self: stretch; max-width: none; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: none; }
  .fcard:nth-child(n) { grid-area: auto; }
  .fcard-wide { grid-template-columns: 1fr; align-content: start; }
  .fcard-wide .browser { justify-self: stretch; max-width: none; }
}
@media (max-width: 767px) { .fcard { padding: 24px; } }

/* ---------- Who ---------- */
.who { background: var(--sand); }
.who-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.who-head { display: grid; gap: 24px; justify-items: start; }
.facts { display: grid; gap: 12px; }
.facts li, .bullets li, .plan-features li { display: flex; align-items: center; gap: 10px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment img { width: 100%; aspect-ratio: 240 / 170; object-fit: cover; border-radius: var(--r-16); }
.segment .h3 { margin-top: 16px; }
.segment p { margin-top: 6px; }
@media (max-width: 1279px) { .who-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) {
  .segments { grid-template-columns: 1fr; gap: 32px; }
  .segment img { aspect-ratio: 16 / 9; }
}

/* ---------- Pricing ---------- */
.pricing, .compare { position: relative; overflow: hidden; }
.cup-motif { position: absolute; width: 420px; height: 330px; pointer-events: none; }
.cm-body { position: absolute; left: 0; top: 0; width: 300px; height: 320px; border: 10px solid rgba(217, 197, 174, 0.9); border-radius: 36px 36px 120px 120px; }
.cm-handle { position: absolute; left: 270px; top: 70px; width: 130px; height: 150px; border: 10px solid rgba(217, 197, 174, 0.9); border-radius: 50%; }
.motif-tl { left: -110px; top: -70px; opacity: .45; }
.motif-tr { left: auto; right: -40px; top: -60px; opacity: .35; }
.pricing .cup-motif .cm-body { border-radius: 36px 36px 120px 120px; }
.billing { display: inline-flex; gap: 4px; padding: 4px; margin: 8px auto 0; background: var(--sand); border-radius: var(--r-pill); }
.billing button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink); }
.billing button.is-active { background: var(--brown); color: var(--on-brand); }
.billing .save { padding: 2px 8px; border-radius: var(--r-pill); background: var(--olive-soft); color: var(--brown-dark); font-size: 11px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px 28px; background: var(--white); border-radius: var(--r-24); box-shadow: var(--shadow-card); }
.plan-featured { background: var(--brown); color: var(--on-brand); box-shadow: var(--shadow-soft); }
.plan-featured .plan-desc, .plan-featured .price .per { color: var(--latte); }
.plan-featured .price .amount, .plan-featured .plan-name { color: var(--on-brand); }
.plan-featured .divider { background: var(--brown-soft); }
.plan .chip { align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--olive-soft); color: var(--brown-dark); font-size: 13px; font-weight: 600; line-height: 1.2; }
.price { display: grid; gap: 2px; }
.price .amount { font-variant-numeric: tabular-nums; font-size: clamp(30px, 2.5vw, 36px); line-height: 1.16; font-weight: 600; color: var(--brown); letter-spacing: -0.005em; }
.price .per { font-size: 14px; color: var(--muted); }
.plan-features { display: grid; gap: 12px; font-size: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.plan-featured .plan-features { border-top-color: var(--brown-soft); }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 56px; text-align: center; }
@media (max-width: 1279px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; margin-top: 40px; } .cup-motif { display: none; } }

/* ---------- Compare ---------- */
.compare { background: var(--white); }
.table-wrap { position: relative; max-width: 1000px; margin: 56px auto 0; }
.badge { position: absolute; right: 20px; top: -15px; z-index: 2; padding: 7px 14px; background: var(--olive-text); color: var(--on-brand); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r-20); overflow: hidden; box-shadow: var(--shadow-card); background: var(--white); }
.cmp th, .cmp td { height: 62px; padding: 0 16px; font-size: 16px; font-weight: 400; text-align: center; vertical-align: middle; }
.cmp thead th { height: 57px; background: var(--brown); color: var(--on-brand); font-size: 14px; font-weight: 600; }
.cmp thead th .ic { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; }
.cmp th.crit, .cmp tbody th { text-align: left; padding-left: 28px; width: 48%; }
.cmp tbody th { color: var(--ink); }
.cmp tbody tr:nth-child(even) { background: var(--cream); }
.cmp td.ai, .cmp th.ai { background: var(--olive-soft); color: var(--ink); }
.cmp thead th.ai { background: var(--brown); color: var(--on-brand); }
.cmp td.ai strong { color: var(--brown-dark); font-weight: 600; }
.cmp td .ic { display: inline-block; vertical-align: middle; }
.cmp thead th { white-space: nowrap; }
.cmp td.ai .ic-check { width: 22px; height: 22px; --chk-bg: var(--brown); --chk-fg: var(--on-brand); }
@media (max-width: 767px) {
  .table-wrap { margin-top: 48px; padding-top: 8px; }
  .cmp { table-layout: fixed; }
  .cmp th, .cmp td { height: auto; padding: 14px 5px; font-size: 13px; line-height: 1.35; text-wrap: balance; }
  .cmp thead th { height: auto; padding: 16px 5px; font-size: 12px; white-space: normal; }
  .cmp thead th .ic { display: none; }
  .cmp th.crit, .cmp tbody th { width: 40%; padding-left: 12px; padding-right: 6px; }
  .cmp thead th:nth-child(2) { width: 28%; }
  .cmp th.ai, .cmp td.ai { width: 32%; }
  .cmp td.ai .ic-check { width: 20px; height: 20px; }
  .badge { right: 8px; top: -8px; font-size: 12px; padding: 6px 10px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.faq-head { display: grid; gap: 24px; justify-items: start; }
.faq-photo { width: 100%; aspect-ratio: 380 / 240; object-fit: cover; border-radius: var(--r-20); }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-size: 24px; line-height: 1.28; font-weight: 600; color: var(--ink); }
.faq-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sand); color: var(--brown); transition: background-color .18s ease, color .18s ease; }
.faq-icon .ic { width: 18px; height: 18px; }
.faq-item.is-open .faq-icon { background: var(--brown); color: var(--on-brand); }
.faq-q:hover .faq-icon { background: var(--latte); }
.faq-item.is-open .faq-q:hover .faq-icon { background: var(--brown-dark); }
.faq-a { padding: 0 64px 24px 0; margin-top: -16px; }
.faq-a[hidden] { display: none; }
@media (max-width: 1023px) { .faq-grid { grid-template-columns: 1fr; gap: 40px; } .faq-photo { max-width: 520px; } }
@media (max-width: 767px) { .faq-q { font-size: 19px; padding: 20px 0; } .faq-a { padding-right: 0; } }

/* ---------- Signup ---------- */
.signup { position: relative; overflow: hidden; background: var(--brown-dark); color: var(--on-brand); padding-block: 112px; }
.signup-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.signup-grid { position: relative; display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; }
.signup-copy { display: grid; gap: 24px; justify-items: start; max-width: 640px; }
.signup-copy .body-l { color: var(--latte); }
.bullets { display: grid; gap: 12px; }
.bullets li { gap: 12px; }
.form-card { position: relative; display: grid; gap: 16px; padding: 36px; background: var(--white); color: var(--ink); border-radius: var(--r-24); box-shadow: var(--shadow-soft); }
.form-card .h3 + .muted { margin-top: -4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--ink); }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-12); font-size: 16px; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a4030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select:invalid { color: var(--muted); }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(90, 64, 48, 0.15); }
.field.is-invalid input, .field.is-invalid select { border-color: #b4543a; background: #fff6f3; }
.field-error { font-size: 13px; color: #9c4330; }
.field-error[hidden] { display: none; }
.form-note { margin-top: 4px; }
.form-note .link { font-size: inherit; }
.form-card.is-busy button[type="submit"] { opacity: .75; pointer-events: none; }
.form-card.is-sent > :not(.form-success) { display: none; }
.form-success { display: grid; gap: 16px; justify-items: start; }
.form-success[hidden] { display: none; }
.form-demo-note { padding: 12px 14px; background: var(--sand); border-radius: var(--r-12); color: var(--brown-dark); }
.form-demo-note[hidden], .form-error[hidden] { display: none; }
.form-error { padding: 12px 14px; background: #fff6f3; border: 1px solid #e7b9ab; border-radius: var(--r-12); color: #9c4330; font-size: 14px; line-height: 1.5; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.success-icon .ic { width: 28px; height: 28px; stroke-width: 2.5; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) and (max-width: 1279px) { .signup-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; } }
@media (max-width: 1279px) { #signup-title { font-size: 44px; } }
@media (max-width: 767px) { #signup-title { font-size: clamp(28px, 8.6vw, 34px); } }
@media (max-width: 1023px) {
  .signup { padding-block: 72px; }
  .signup-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-card { padding: 28px 24px; }
}

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--brown-dark); color: var(--on-brand); padding: 64px 0; }
.watermark { position: absolute; left: 44%; top: 224px; font-size: 180px; line-height: 1; font-weight: 700; color: var(--latte); opacity: .08; white-space: nowrap; pointer-events: none; }
.footer-cols { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, max-content) minmax(220px, max-content); gap: 64px; }
.footer-brand { display: grid; gap: 12px; justify-items: start; max-width: 632px; }
.footer-brand p { color: var(--latte); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-weight: 600; color: var(--latte); margin-bottom: 0; }
.footer-col a, .footer-col p { color: var(--on-brand); }
.footer-col p { overflow-wrap: anywhere; }
@media (min-width: 1024px) { .footer-col [data-contact] { white-space: nowrap; } }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--brown-soft); color: var(--latte); }
@media (max-width: 1279px) { .footer-cols { gap: 48px; } }
@media (max-width: 1023px) { .footer-cols { grid-template-columns: 1fr; gap: 32px; } .watermark { display: none; } }

/* ---------- Modal ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overscroll-behavior: contain; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43, 36, 32, 0.55); }
.lightbox .modal-backdrop { background: rgba(43, 36, 32, 0.86); }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; background: var(--white); color: var(--ink); border-radius: var(--r-24); box-shadow: var(--shadow-soft); padding: 36px; }
.modal-card .form-card { padding: 0; box-shadow: none; border-radius: 0; }
.modal-small .modal-card { display: grid; gap: 16px; justify-items: start; width: min(480px, 100%); }
.modal-close { position: absolute; right: 20px; top: 20px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); }
.modal-close .ic { width: 18px; height: 18px; stroke-width: 2; }
.form-modal .h3 { padding-right: 48px; }
body.has-modal { overflow: hidden; }
@media (max-width: 767px) { .modal { padding: 12px 12px 0; align-items: end; } .modal-card { padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: var(--r-20) var(--r-20) 0 0; max-height: calc(100vh - 12px); } .modal-small .modal-card { border-radius: var(--r-20); } }

/* ---------- Lightbox ---------- */
.lb-figure { position: relative; width: min(1100px, 100%); display: grid; gap: 14px; justify-items: center; }
.lb-browser { width: 100%; }
.lb-figure figcaption { display: flex; gap: 16px; color: var(--on-brand); font-size: 14px; }
.lb-figure .lb-title { font-weight: 600; }
.lb-figure .lb-count { color: var(--latte); }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(246, 241, 231, 0.12); color: var(--on-brand); transition: background-color .18s ease; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(246, 241, 231, 0.24); }
.lb-close { right: 24px; top: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } .lb-prev { left: 20px; } .lb-next { right: 20px; } .lb-figure { padding-bottom: 72px; } }

/* ---------- Demo page ---------- */
.demo-head { padding: 72px 0 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.demo-head .h1 { max-width: 900px; }
.demo-head p { max-width: 760px; }
.video-wrap { margin: 72px auto 0; max-width: 1200px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-24); overflow: hidden; background: var(--brown-dark); box-shadow: var(--shadow-soft); }
.video .poster { position: absolute; left: 50%; top: 60px; width: 83.3%; transform: translateX(-50%); }
.video .dim { position: absolute; inset: 0; background: rgba(43, 36, 32, 0.45); }
.video .play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--brown); box-shadow: var(--shadow-soft); transition: transform .18s ease; }
.video .play:hover { transform: translate(-50%, -50%) scale(1.04); }
.video .play svg { width: 30px; height: 34px; margin-left: 6px; fill: currentColor; }
.video .pill { position: absolute; left: 24px; top: 24px; padding: 8px 14px; background: var(--white); color: var(--brown-dark); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; line-height: 1.2; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 16px; text-align: center; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.chapter { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--latte); }
.chapter .h3 { margin-top: 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 96px; padding: 48px 56px; background: var(--sand); border-radius: var(--r-24); }
.cta-band .copy { display: grid; gap: 12px; max-width: 640px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-main { padding-bottom: 112px; }
@media (max-width: 1023px) { .chapters { grid-template-columns: 1fr; gap: 32px; } .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-top: 64px; } .video .play { width: 72px; height: 72px; } .video .play svg { width: 22px; height: 26px; } .video .pill { left: 12px; top: 12px; font-size: 12px; } .demo-head { padding-top: 48px; } .video-wrap { margin-top: 40px; } .demo-main { padding-bottom: 64px; } }

@media (min-width: 1024px) { .nowrap-d { white-space: nowrap; } }
@media (max-width: 1439px) {
  .d { display: none; }
  .hero-sub, .stats-source, .stat-label, .section-head p, .pain-head p, .who-head p, .pain-card p, .step p, .segment p, .ftext p, .signup-copy .body-l, .footer-brand p, .demo-head p, .chapter p, .pricing-note, .bullets li, .plan-desc { text-wrap: balance; }
}

/* ---------- Nút Zalo nổi (điện thoại và máy tính bảng, T422) ---------- */
.zalo-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--brown); color: var(--on-brand); font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(43, 36, 32, 0.28), 0 2px 6px rgba(43, 36, 32, 0.16); transition: transform .18s ease, background-color .18s ease, opacity .18s ease; }
.zalo-fab .ic { width: 22px; height: 22px; }
.zalo-fab:hover { background: var(--brown-dark); }
.zalo-fab:active { transform: scale(0.97); }
.zalo-fab[hidden] { display: none; }
@media (max-width: 1023px) {
  .zalo-fab:not([hidden]) { display: inline-flex; }
  body.has-modal .zalo-fab, body.at-signup .zalo-fab, body:not(.fab-ready) .zalo-fab { opacity: 0; pointer-events: none; }
  .footer { padding-bottom: 96px; }
}

/* ---------- Trang 404 (T436) ---------- */
.nf-main { padding-block: 112px 136px; }
.nf { display: grid; justify-items: center; gap: 16px; text-align: center; }
.nf-code { font-size: 120px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--brown-dark); opacity: .2; font-variant-numeric: tabular-nums; }
.nf .body-l { max-width: 560px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
@media (max-width: 767px) { .nf-main { padding-block: 64px 88px; } .nf-code { font-size: 88px; } }
@media (min-width: 1024px) { .cta-band .actions { flex: none; flex-wrap: nowrap; } .cta-band .copy { min-width: 0; } }
