/* An (安) site — Pure iOS: system font, grouped greys, system green, light + dark. */
:root {
  --ground: #f2f2f7; --card: #fff; --card2: #e5e5ea; --hair: rgba(60,60,67,.16);
  --ink: #000; --soft: rgba(60,60,67,.62); --faint: rgba(60,60,67,.32);
  --accent: #34c759; --accent-text: #248a3d; --wash: rgba(52,199,89,.14);
  --tint: #007aff; --amber: #ff9500;
  --orange: #ff9500; --blue: #007aff; --teal: #30b0c7; --pink: #ff2d55; --brown: #a2845e; --indigo: #5856d6; --gray: #8e8e93;
  --phone: #1c1c1e; --max: 1080px; --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000; --card: #1c1c1e; --card2: #2c2c2e; --hair: rgba(84,84,88,.6);
    --ink: #fff; --soft: rgba(235,235,245,.6); --faint: rgba(235,235,245,.3);
    --accent: #30d158; --accent-text: #30d158; --wash: rgba(48,209,88,.16);
    --tint: #0a84ff; --amber: #ff9f0a;
    --orange: #ff9f0a; --blue: #0a84ff; --teal: #40c8e0; --pink: #ff375f; --brown: #ac8e68; --indigo: #5e5ce6; --gray: #8e8e93;
    --phone: #3a3a3c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* Language: every bilingual node carries lang="vi" or lang="en". */
html[data-lang="vi"] [lang="en"]:not(html), html[data-lang="en"] [lang="vi"]:not(html) { display: none !important; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--ground) 78%, transparent); border-bottom: .5px solid var(--hair); }
.nav .shell { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.links a { color: var(--soft); }
.links a:hover { color: var(--ink); text-decoration: none; }
.lang { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card2); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 560px) { .links a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; margin: 14px 0 18px; }
h1 .han { color: var(--accent-text); font-weight: 600; }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--soft); margin: 0 0 28px; max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--ground); border-radius: 12px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.badge svg { width: 20px; height: 20px; fill: currentColor; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.note { font-size: 14px; color: var(--soft); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .shell { grid-template-columns: 1fr; gap: 40px; }
  .lede { max-width: none; }
}

/* Phone mock of the Spend tab */
.phone { justify-self: center; width: 300px; max-width: 100%; aspect-ratio: 300 / 610; border-radius: 48px; padding: 11px; background: var(--phone); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--ground); display: flex; flex-direction: column; font-size: 13px; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #000; }
.status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 13px; font-weight: 600; }
.screen h3 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 22px 16px 10px; }
.avail { margin: 0 12px; background: var(--card); border-radius: 16px; padding: 14px 14px 12px; }
.avail .label { font-size: 12px; color: var(--soft); }
.avail .amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.avail .spent { font-size: 12px; color: var(--soft); }
.track { height: 6px; border-radius: 3px; background: var(--card2); margin-top: 10px; overflow: hidden; }
.track i { display: block; height: 100%; width: 69%; background: var(--accent); border-radius: 3px; }
.rows { margin: 12px 12px 0; background: var(--card); border-radius: 16px; }
.row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: .5px solid var(--hair); }
.tile { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row .t { flex: 1; min-width: 0; line-height: 1.25; }
.row .t b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { font-size: 11px; color: var(--soft); }
.row .amt { font-weight: 500; font-size: 13px; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 8px 6px 20px; background: color-mix(in srgb, var(--card) 85%, transparent); border-top: .5px solid var(--hair); }
.tabbar span { width: 22px; height: 22px; border-radius: 6px; background: var(--faint); opacity: .7; }
.tabbar span.on { background: var(--accent); opacity: 1; }
.tabbar .cap { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; opacity: 1; }
.tabbar .cap svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
.sub { color: var(--soft); font-size: 19px; margin: 0 0 32px; max-width: 46ch; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r); padding: 24px; }
.card h3 { font-size: 21px; letter-spacing: -.01em; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }
.card .big { margin-top: 18px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card .big small { display: block; font-size: 13px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.sym { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.sym svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Capture steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--r); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wash); color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.step b { display: block; font-size: 19px; margin-bottom: 4px; }
.step span { color: var(--soft); font-size: 16px; }
.confirm { margin-top: 14px; border-radius: 14px; background: var(--ground); padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; }
.confirm div { display: flex; justify-content: space-between; gap: 12px; }
.confirm .k { color: var(--soft); }
.confirm .ai { color: var(--accent-text); font-size: 12px; }

/* List style principles (inset grouped) */
.group { background: var(--card); border-radius: var(--r); overflow: hidden; }
.item { position: relative; display: flex; gap: 14px; padding: 18px 20px; align-items: flex-start; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 74px; right: 0; border-top: .5px solid var(--hair); }
.item b { display: block; font-size: 17px; }
.item span { color: var(--soft); font-size: 15px; }

/* CTA */
.cta { text-align: center; padding: 72px 0 80px; }
.cta .han { font-size: 64px; line-height: 1; color: var(--accent-text); font-weight: 600; }
.cta h2 { margin-top: 16px; }
.cta p { color: var(--soft); margin: 0 auto 24px; max-width: 44ch; }
.cta .ctas { justify-content: center; }

/* Footer */
.foot { border-top: .5px solid var(--hair); padding: 24px 0 40px; font-size: 13px; color: var(--soft); }
.foot .shell { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--soft); }

/* Legal / support pages */
.legal { max-width: 720px; padding: 48px 0 64px; }
.legal h1 { font-size: clamp(34px, 5vw, 44px); margin: 6px 0 6px; }
.legal .meta { color: var(--soft); font-size: 15px; margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .box { background: var(--card); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; }
.legal .box p { margin: 0; }
