:root {
  --bg: #ffffff; --bg-soft: #f5f8fc; --surface: #ffffff; --raised: #eef5ff;
  --text: #172b4d; --muted: #4d5b72; --border: #dce6f2;
  --brand: #087cf5; --brand-strong: #0559b8; --on-brand: #ffffff;
  --brand-tint: #dcebfe; --warm: #fff3dc; --warm-text: #7a4a00;
  --ok: #1a7a39; --shadow: 0 1px 2px rgba(23,43,77,.06), 0 8px 24px rgba(23,43,77,.08);
  --radius: 16px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --bg-soft: #131a24; --surface: #18212d; --raised: #1c2a3d;
    --text: #e8eef7; --muted: #a3b0c4; --border: #2a3646;
    --brand: #4c9dff; --brand-strong: #8cbfff; --on-brand: #06121f;
    --brand-tint: #1d3350; --warm: #3a2c12; --warm-text: #f3cf8e;
    --ok: #6fd08f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface);
  padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 8px 20px;
  min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .logo { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 10px; border-radius: 10px; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current] { color: var(--brand-strong); font-weight: 650; }
.lang-link { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); white-space: nowrap; }
.lang-link:hover { border-color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 650;
  font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--brand); color: var(--on-brand); } }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--warm-text); background: var(--warm); padding: 6px 12px; border-radius: 999px; }
.soon .ic { width: 16px; height: 16px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-tint), transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-strong); margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 20px; font-weight: 800; }
.hero h1 .accent { color: var(--brand-strong); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none;
  color: var(--muted); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts .ic { width: 18px; height: 18px; color: var(--ok); }

/* Phone illustration (drawn, not a screenshot) */
.phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 46px; padding: 12px; background: #0c1220;
  box-shadow: 0 30px 60px -20px rgba(8,60,140,.45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.screen { height: 100%; border-radius: 36px; background: #f5f8fc; color: #172b4d;
  padding: 44px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.screen .meta { font-size: 12px; color: #4d5b72; font-weight: 600; display: flex; justify-content: space-between; }
.screen .sentence { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0; }
.screen .ipa { font-size: 13px; color: #4d5b72; margin: -6px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.step { border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 700;
  background: #fff; border: 1px solid #dce6f2; color: #4d5b72; }
.step .ic { width: 18px; height: 18px; margin: 0 auto 4px; }
.step.done { color: #1a7a39; }
.step.now { background: #087cf5; border-color: #087cf5; color: #fff; }
.wave { background: #fff; border: 1px solid #dce6f2; border-radius: 14px; padding: 10px 12px; }
.wave span { display: block; font-size: 11px; font-weight: 700; color: #4d5b72; margin-bottom: 6px; }
.bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.bars i { flex: 1; border-radius: 3px; background: #087cf5; }
.wave.you .bars i { background: #f5a524; }
.rec { margin-top: auto; align-self: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 1px solid #dce6f2; display: grid; place-items: center; }
.rec::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #e5484d; }

/* Sections */
section.band { padding: 88px 0; }
section.band.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head { max-width: 40em; margin-bottom: 40px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; }
.head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin: 16px 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .ic-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-strong); }
.card .ic-tile .ic { width: 26px; height: 26px; }
.card .num { font-size: 14px; font-weight: 800; color: var(--brand-strong); letter-spacing: .04em; margin: 16px 0 0; }
.card .num + h3 { margin-top: 4px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); }
.card ul li { display: flex; gap: 10px; margin: 8px 0; }
.card ul .ic { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ok); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-strong); margin-left: 8px; vertical-align: 3px; }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.extra { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); }
.extra .ic { width: 24px; height: 24px; flex: none; color: var(--brand-strong); }
.extra strong { display: block; font-size: 16px; }
.extra span { color: var(--muted); font-size: 15px; }

.privacy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start;
  background: var(--raised); border: 1px solid var(--border); border-radius: 24px; padding: 40px; }
.privacy .shield { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .privacy .shield { background: var(--brand); color: var(--on-brand); } }
.privacy .shield .ic { width: 34px; height: 34px; }
.privacy h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -.02em; }
.privacy p { margin: 0 0 10px; color: var(--muted); max-width: 46em; }

.plan.premium { border: 2px solid var(--brand); }
.plan h3 { margin-top: 0; display: flex; align-items: center; }
.plan .sub { color: var(--muted); margin: 0 0 6px; }
.plan li.off { color: var(--muted); }
.plan li.off .ic { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px;
  font-weight: 400; color: var(--brand-strong); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { text-align: center; padding: 72px 20px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #0559b8, #087cf5); }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; letter-spacing: -.02em; }
.cta p { margin: 0 auto 24px; max-width: 34em; color: rgba(255,255,255,.9); font-size: 18px; }
.cta .btn-ghost { background: #fff; color: #0559b8; border-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 88px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.site-footer p { color: var(--muted); margin: 12px 0 0; font-size: 15px; max-width: 28em; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-footer li a:hover { color: var(--brand-strong); text-decoration: underline; }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.copy a { color: var(--muted); }

/* Documents (privacy, terms, support, delete account) */
.doc-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.doc-hero .wrap { padding-top: 48px; padding-bottom: 36px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumb a { color: var(--muted); }
.doc-hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.updated { color: var(--muted); margin: 0; font-size: 15px; }
.switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); margin-top: 22px; }
.switch a { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.switch a[aria-current] { background: var(--brand-tint); color: var(--brand-strong); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.doc.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--brand); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 23px; letter-spacing: -.01em; margin: 40px 0 10px; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .lede { font-size: 18px; color: var(--muted); }
.qa { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin: 12px 0; background: var(--surface); }
.qa h3 { font-size: 17px; margin: 0 0 6px; }
.qa p { margin: 0; color: var(--muted); }
/* EN shows by default; #vi in the address shows VI instead. */
.lw { display: contents; }
/* The language targets sit at the top, so #vi opens the page from its start. */
#en, #vi { position: absolute; top: 0; }
body:has(#vi:target) [data-lang="en"] { display: none; }
body:not(:has(#vi:target)) [data-lang="vi"] { display: none; }

.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-size: 44px; margin: 0 0 8px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .phone { width: min(290px, 80%); }
  .g3, .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.band { padding: 64px 0; }
  .g3, .g2, .extras { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .privacy { grid-template-columns: 1fr; padding: 28px 22px; }
  .site-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-left: -10px;
    padding-right: 16px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav { order: 3; }
  .site-nav a { white-space: nowrap; }
  .cta { border-radius: 20px; padding: 52px 20px; }
  .actions .btn { flex: 1 1 100%; }
}
