/* NoGr landing — màu lấy từ mobile/lib/theme/tokens.dart */
:root {
  --primary: #4f3cc9;
  --primary-dark: #3a2ba3;
  --primary-bright: #b9acff;
  --ink: #1b1640;
  --ink-muted: rgba(27, 22, 64, 0.72);
  --ink-soft: rgba(27, 22, 64, 0.6);
  --border: rgba(27, 22, 64, 0.1);
  --bg: #f6f5fa;
  --surface: #fff;
  --brand-bg: #eeebfc;
  --brand-soft: #f4f2fd;
  --ok: #1f9d55;
  --star: #ffb020;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27, 22, 64, 0.06), 0 12px 32px -12px rgba(27, 22, 64, 0.18);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 12px 18px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn-sm .ic { width: 18px; height: 18px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 16px; }
.btn-lg .ic { width: 24px; height: 24px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 60, 201, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-stack small { font-weight: 500; font-size: 12px; opacity: .75; }
.btn.is-disabled { opacity: .5; pointer-events: none; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 250, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand-mark { color: var(--primary); display: block; }
.brand-mark svg { width: 86px; height: auto; }
.brand-sm svg { width: 64px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
  background: var(--brand-bg); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, .18); }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.hl {
  background: linear-gradient(100deg, var(--primary) 10%, #7b5cff 60%, #b06bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-muted); margin-top: 22px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hint { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* Phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, .35), rgba(79, 60, 201, 0) 65%);
  filter: blur(10px);
}
.phone {
  position: relative; width: 300px; padding: 12px; border-radius: 46px;
  background: #15112f; box-shadow: 0 40px 80px -30px rgba(27, 22, 64, .55), inset 0 0 0 2px #2c2659;
  transform: rotate(-3deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #15112f; z-index: 2; }
.screen { background: var(--bg); border-radius: 36px; padding: 52px 14px 18px; min-height: 570px; }
.scr-head { display: flex; justify-content: space-between; align-items: flex-start; }
.scr-kicker { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.scr-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.scr-timer { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--brand-bg); border-radius: 10px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.scr-progress { height: 5px; border-radius: 4px; background: #e4e1f2; margin: 14px 0 8px; overflow: hidden; }
.scr-progress span { display: block; height: 100%; width: 38%; background: var(--primary); border-radius: 4px; animation: prog 6s linear infinite; }
@keyframes prog { from { width: 18%; } to { width: 82%; } }
.scr-sub { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 12px; }
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 11px 12px; margin-bottom: 9px; animation: pop .5s both;
}
.quote:nth-of-type(2) { animation-delay: .15s; }
.quote:nth-of-type(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.quote.is-best { border: 1.5px solid var(--primary); box-shadow: 0 6px 18px -8px rgba(79, 60, 201, .45); }
.q-top { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: #e3defb; color: var(--primary-dark);
}
.avatar.a2 { background: #dff3e8; color: #17754a; }
.avatar.a3 { background: #fff0d6; color: #8a5a00; }
.q-who { flex: 1; min-width: 0; }
.q-who b { display: block; font-size: 13px; }
.q-who span { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.ic-star { width: 11px; height: 11px; color: var(--star); }
.q-price { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.q-bottom { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.chip { white-space: nowrap; font-size: 10.5px; font-weight: 600; background: var(--brand-soft); color: var(--ink-muted); padding: 3px 8px; border-radius: 8px; }
.q-select { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); padding: 6px 16px; border-radius: 10px; }
.scr-ref { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35;
}
.float-card b { display: block; font-size: 14px; }
.float-card span { color: var(--ink-soft); }
.fc-driver { top: -4px; right: -44px; animation: float 5s ease-in-out infinite; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-bg); font-size: 20px; }
.fc-fee { bottom: 36px; left: -28px; animation: float 5s ease-in-out -2.5s infinite; }
.fc-big { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { padding-bottom: 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.kicker) { color: var(--ink-muted); margin-top: 14px; font-size: 17px; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 19px; font-weight: 700; }
.h-sm { font-size: 17px; margin-bottom: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step p { margin-top: 8px; color: var(--ink-muted); font-size: 15px; }
.step .step-n { flex: none; margin-bottom: 0; }

/* Video quay màn hình app trong khung điện thoại */
.how-grid {
  display: grid; grid-template-columns: auto 1fr; column-gap: 72px; align-items: start;
  grid-template-areas: "video head" "video steps";
}
.how-head { grid-area: head; margin-bottom: 32px; }
.how-video { grid-area: video; }
.how-steps { grid-area: steps; }
.vphone { position: relative; margin: 0; width: 290px; justify-self: center; }
.vphone-screen {
  padding: 10px; border-radius: 44px; background: #15112f;
  box-shadow: 0 40px 80px -30px rgba(27, 22, 64, .55), inset 0 0 0 2px #2c2659;
}
.vphone video {
  display: block; width: 100%; aspect-ratio: 540 / 1280; border-radius: 34px;
  background: var(--bg); object-fit: cover;
}
.vphone-dark .vphone-screen { box-shadow: 0 30px 80px -20px rgba(123, 92, 255, .45), inset 0 0 0 2px #3a3470; }
.vphone-toggle {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--primary);
}
.vphone-dark .vphone-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.vphone-toggle:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; }
.vphone-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.vphone-toggle .i-pause, .vphone-toggle.is-playing .i-play { display: none; }
.vphone-toggle.is-playing .i-pause { display: inline; }
.vphone figcaption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft);
}
.vphone-dark figcaption { color: rgba(255, 255, 255, .55); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 20px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px;
}

.section-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, .35), transparent 65%);
}
.driver-grid {
  position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 72px; align-items: start;
  grid-template-areas: "text video" "perks video" "cta video";
}
.driver-text { grid-area: text; }
.driver-video { grid-area: video; }
.driver-grid .perks { grid-area: perks; }
.driver-cta { grid-area: cta; margin-top: 28px; }
.kicker-light { color: var(--primary-bright); }
.lead-light { color: rgba(255, 255, 255, .72); font-size: 17px; margin: 18px 0 32px; max-width: 520px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.perk { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; }
.perk h3 { font-size: 17px; }
.perk p { margin-top: 8px; color: rgba(255, 255, 255, .68); font-size: 14.5px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ic { width: 17px; height: 17px; color: var(--primary-bright); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }
.card-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--brand-bg); margin-bottom: 20px; }

/* ---------- Download ---------- */
.section-tint { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.dl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.dl-side { display: grid; gap: 20px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h3 { font-size: 20px; }
.dl-head p { font-size: 14px; }
.dl-os { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #e6f6ec; color: #2e9e5b; flex: none; }
.dl-os .ic { width: 30px; height: 30px; }
.os-web { background: var(--brand-bg); color: var(--primary); }
.web-note { margin: 16px 0 18px; }
.badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); }
.badge-live { background: #e6f6ec; color: #17754a; }
.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.dl-meta div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.dl-meta dt { font-size: 12px; color: var(--ink-soft); }
.dl-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.dl-unavailable { margin-top: 12px; font-size: 14px; color: #6b4a00; background: #fff7e6; border: 1px solid #ffe1a8; border-radius: 12px; padding: 10px 12px; }
.sha { margin-top: 18px; font-size: 14px; }
.sha summary { cursor: pointer; color: var(--ink-muted); font-weight: 600; }
.sha-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.sha code { flex: 1; min-width: 0; font-size: 12px; background: var(--bg); padding: 8px 10px; border-radius: 10px; overflow-wrap: anywhere; }
.btn-copy { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 12px; cursor: pointer; color: var(--ink); }
.dl-qr { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border); }
.dl-qr p { font-size: 14px; color: var(--ink-muted); }
.qr { width: 112px; height: 112px; flex: none; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.install { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 12px; }
.install li { counter-increment: i; position: relative; padding-left: 38px; font-size: 15px; color: var(--ink-muted); }
.install li::before {
  content: counter(i); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-bg); color: var(--primary-dark); font-weight: 700; font-size: 13px;
}
.install b { color: var(--ink); font-weight: 600; }
.install + .small { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-row p:last-child { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .dl-grid, .faq-wrap { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; grid-template-areas: "head" "video" "steps"; }
  .driver-grid { grid-template-columns: 1fr; grid-template-areas: "text" "video" "perks" "cta"; }
  .how-video, .driver-video { margin-bottom: 36px; }
  .hero { padding-top: 36px; }
  .hero-visual { min-height: 560px; }
  .cards3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .perks { grid-template-columns: 1fr; }
  .fc-driver { right: 0; top: 0; }
  .fc-fee { left: 0; bottom: 10px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .cta-row .btn { flex: 1 1 100%; justify-content: flex-start; }
  .hero-visual { min-height: 520px; }
  .phone { transform: scale(.9) rotate(-3deg); }
  .vphone { width: 250px; }
  .step { padding: 20px; gap: 14px; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 28px; }
  .dl-card { padding: 22px; }
  .dl-meta { grid-template-columns: 1fr 1fr; }
  .dl-meta div:last-child { grid-column: span 2; }
  .dl-qr { display: none; }
  .footer-row p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
