/* The homepages (/ and /vi/): warm paper, Manrope headings, Be Vietnam Pro text (made for Vietnamese,
   so every tone mark sits right), real screenshots of the app. Everything else on the site uses site.css. */

/* ───────────── Fonts ───────────── */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-vietnamese-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ───────────── Tokens ───────────── */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #252330;
  --ink-2: #5e5a6d;
  --ink-3: #8a8597;
  --line: #e9e5ee;
  --line-2: #dcd6e6;
  --brand: #6444df;
  --brand-2: #7a5cf0;
  --brand-deep: #4a2fc0;
  --brand-text: #5536d1;
  --brand-soft: #eee8ff;
  --lav: #f1edff;
  --lav-2: #e4dcff;
  --sun: #f6c443;
  --sun-soft: #fff4cc;
  --mint: #2f8a60;
  --mint-soft: #e3f3ea;
  --sand: #f4ebdd;
  --sky: #e9edfb;
  --sage: #e7f1e4;
  --rose: #fbe6e9;
  --night: #262130;
  --night-2: #322c3f;
  --night-line: #453d55;
  --on-night: #f6f4fb;
  --on-night-2: #b9b2c9;
  --phone: #1e1b26;
  --dot-new: #e6e1ef;
  --dot-learning: #f6c443;
  --dot-known: #a698ff;
  --dot-mastered: #5b3df5;
  --shadow: 0 1px 2px rgba(37, 35, 48, .05), 0 12px 32px -14px rgba(37, 35, 48, .18);
  --head: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Be Vietnam Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --zh: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131b;
    --surface: #1e1b27;
    --ink: #f2f0f7;
    --ink-2: #b6b0c6;
    --ink-3: #8b85a0;
    --line: #2d2939;
    --line-2: #3a3549;
    --brand: #7457f0;
    --brand-2: #8a70ff;
    --brand-deep: #4b31c6;
    --brand-text: #b3a3ff;
    --brand-soft: #2b2450;
    --lav: #1e1a30;
    --lav-2: #2b2550;
    --sun-soft: #3a3115;
    --mint: #6fd3a2;
    --mint-soft: #16322a;
    --sand: #2b241b;
    --sky: #1e2236;
    --sage: #1b271d;
    --rose: #33191f;
    --night: #0e0c13;
    --night-2: #1b1824;
    --night-line: #343046;
    --dot-new: #2e2a40;
    --dot-known: #8b7bff;
    --dot-mastered: #c9bfff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --phone: #34303f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15131b;
  --surface: #1e1b27;
  --ink: #f2f0f7;
  --ink-2: #b6b0c6;
  --ink-3: #8b85a0;
  --line: #2d2939;
  --line-2: #3a3549;
  --brand: #7457f0;
  --brand-2: #8a70ff;
  --brand-deep: #4b31c6;
  --brand-text: #b3a3ff;
  --brand-soft: #2b2450;
  --lav: #1e1a30;
  --lav-2: #2b2550;
  --sun-soft: #3a3115;
  --mint: #6fd3a2;
  --mint-soft: #16322a;
  --sand: #2b241b;
  --sky: #1e2236;
  --sage: #1b271d;
  --rose: #33191f;
  --night: #0e0c13;
  --night-2: #1b1824;
  --night-line: #343046;
  --dot-new: #2e2a40;
  --dot-known: #8b7bff;
  --dot-mastered: #c9bfff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --phone: #34303f;
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--brand-text); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 750; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0; }
:lang(zh) { font-family: var(--zh); }
h1:lang(vi) { line-height: 1.12; }
h2:lang(vi), h3:lang(vi) { line-height: 1.18; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--brand-text); font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ic { width: 18px; height: 18px; flex: none; }

/* ───────────── Buttons ───────────── */
.bt { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px; font: 700 16px/1.1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease; }
.bt .ic { transition: transform .18s ease; }
.bt:hover .ic-go { transform: translateX(3px); }
.bt:hover .ic-out { transform: translate(2px, -2px); }
.bt-lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.bt-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; gap: 7px; }
.bt-block { width: 100%; }
.bt-primary { color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--brand-deep), 0 14px 26px -12px rgba(100, 68, 223, .7); }
.bt-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--brand-deep), 0 18px 30px -12px rgba(100, 68, 223, .75); }
.bt-primary:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 var(--brand-deep), 0 6px 14px -8px rgba(100, 68, 223, .6); }
.bt-ink { color: var(--bg); background: var(--ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 70%, #000); }
.bt-ink:hover { transform: translateY(-1px); }
.bt-ink:active { transform: translateY(3px); box-shadow: none; }
.bt-ghost { color: var(--on-night); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.bt-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px var(--on-night-2); }
.bt-ghost:active { transform: translateY(2px); }
.lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text); font-weight: 700; font-size: 15px; text-decoration: none; }
.lnk .ic { width: 16px; height: 16px; transition: transform .18s ease; }
.lnk:hover { text-decoration: underline; text-underline-offset: 4px; }
.lnk:hover .ic-go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .bt, .bt .ic, .lnk .ic { transition: none; } .bt:hover, .bt:active { transform: none; } }

/* ───────────── Header ───────────── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; 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 transparent; transition: border-color .2s; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { flex: none; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
/* Every item in the header is a button-sized target that lights up under the pointer. */
.links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.links a, .top-right .nav-lang, .top-right .nav-acct { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border-radius: 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: background-color .14s, color .14s, box-shadow .14s; }
.links a:hover, .top-right .nav-acct:hover { background: var(--lav); color: var(--brand-text); }
.top-right { flex: none; display: flex; align-items: center; gap: 8px; }
.top-right .nav-lang { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.top-right .nav-lang:hover { box-shadow: inset 0 0 0 1.5px var(--brand-2); color: var(--brand-text); }
.top-right .nav-lang .ic { width: 17px; height: 17px; color: var(--ink-3); }
.top-right .nav-lang:hover .ic { color: currentColor; }
.top-right .bt { margin-left: 4px; white-space: nowrap; }
.logo svg { flex: none; }
.bt .cont-lang { margin-left: -3px; }
.nav-acct-chip { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; }
.lang-short { display: none; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 1180px) {
  .lang-long, .nav-acct-t { display: none; }
  .lang-short { display: inline; }
  .links a { padding: 0 10px; }
  .top-right .nav-lang, .top-right .nav-acct { padding: 0 10px; }
}
@media (max-width: 980px) {
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 10px 6px; min-height: 0; }
  .logo { grid-row: 1; grid-column: 1; }
  .top-right { grid-row: 1; grid-column: 2; }
  .links { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .links::-webkit-scrollbar { display: none; }
  .links a { min-height: 38px; padding: 0 8px; font-size: 14.5px; color: var(--ink-2); }
}
@media (max-width: 560px) {
  .top-right .nav-acct { display: none; }
  .logo { gap: 9px; font-size: 18px; }
  .logo svg { width: 30px; height: 30px; }
  .top-right .bt .ic { display: none; }
  .top-right .cont-lang { display: none; }
  .logo { min-width: 0; overflow: hidden; }
  .links a { font-size: 14px; padding: 0 7px; }
}
@media (max-width: 420px) {
  .links { margin: 0 -6px; }
  .links a { font-size: 13.5px; padding: 0 6px; }
  .logo { gap: 8px; font-size: 17px; }
  .logo svg { width: 28px; height: 28px; }
  .top-in { column-gap: 10px; }
  .top-right { gap: 6px; }
  .top-right .nav-lang { padding: 0 10px; }
  .top-right .nav-lang .ic { display: none; }
  .top-right .bt-sm { padding: 0 13px; font-size: 14.5px; }
}
@media (max-width: 340px) { .logo span { display: none; } }

.vi-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--sun); color: #252330; font-weight: 600; font-size: 15px; text-align: center; }
.vi-banner a { color: inherit; }
.vi-banner button { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ───────────── Hero ───────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 72px; scroll-margin-top: 90px; }
.hero h1 .accent { color: var(--brand); }
.lede { margin-top: 26px; max-width: 46ch; color: var(--ink-2); font-size: 17.5px; }
.lede strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px 12px; max-width: 460px; margin-top: 30px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.select { position: relative; }
.select select { width: 100%; min-height: 54px; padding: 0 44px 0 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); font: 600 16px var(--text); appearance: none; -webkit-appearance: none; cursor: pointer; box-shadow: 0 2px 0 var(--line); transition: border-color .14s, box-shadow .14s; }
.select select:hover { border-color: var(--brand-2); }
.select select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.pick .bt { grid-column: 1 / -1; margin-top: 6px; }
.pick-soon { grid-column: 1 / -1; color: var(--ink-3); font-size: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .ic { width: 16px; height: 16px; color: var(--mint); }
.app-line { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.app-line a { font-weight: 600; }

/* The phone: a real screenshot of the course picked above (site.js swaps it). */
.art { position: relative; display: grid; place-items: center; min-height: 600px; }
.art .blob { position: absolute; width: min(500px, 96%); aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: radial-gradient(120% 120% at 30% 20%, var(--lav-2), var(--lav) 70%); }
.phone { position: relative; z-index: 1; width: 290px; max-width: 72%; margin: 0; padding: 9px; border-radius: 48px; background: var(--phone); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 70px -30px rgba(37, 35, 48, .55), 0 18px 30px -18px rgba(37, 35, 48, .35); transform: rotate(-2.5deg); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 39px; background: #f2f0fa; }
.phone::before { content: ''; position: absolute; z-index: 2; top: 17px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 999px; background: var(--phone); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); width: max-content; max-width: 230px; }
.float strong { display: block; font-family: var(--head); font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.float small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.float-goal { top: 3%; right: -6px; transform: rotate(3deg); }
.float-listen { bottom: 5%; left: -6px; transform: rotate(-3deg); }
.badge-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sun-soft); color: #b8860b; }
.play { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--brand-deep); transition: transform .12s; }
.play:hover { transform: scale(1.05); }
.play:active { transform: translateY(2px); box-shadow: none; }
.play.is-playing { background: var(--mint); box-shadow: 0 3px 0 color-mix(in srgb, var(--mint) 60%, #000); }
.deco { position: absolute; z-index: 0; color: var(--brand); opacity: .55; pointer-events: none; user-select: none; }
.deco-zh { top: 1%; left: 0; font: 500 46px/1 var(--zh); transform: rotate(-6deg); }
.deco-hi { bottom: 3%; right: 6%; font: italic 400 40px/1 Georgia, 'Times New Roman', serif; transform: rotate(-4deg); }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise .7s cubic-bezier(.2, .8, .3, 1) both; }
  .float-goal { animation: rise .7s .25s cubic-bezier(.2, .8, .3, 1) both; }
  .float-listen { animation: rise .7s .4s cubic-bezier(.2, .8, .3, 1) both; }
  .phone img { transition: opacity .2s; }
  .phone img.is-swapping { opacity: .2; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* Feature strip */
.feats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; margin: 0; padding: 22px 0; list-style: none; border-block: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.feats li { display: inline-flex; align-items: center; gap: 10px; }
.feats .ic { color: var(--brand); }

/* ───────────── Sections ───────────── */
.sec { padding-block: 96px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 36px; }
.sec-head > div { min-width: 0; }
.sec-head > p { max-width: 38ch; color: var(--ink-2); font-size: 16px; }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.course { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(37, 35, 48, .04); transition: border-color .16s, box-shadow .16s, transform .16s; }
.course:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.course-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tile { display: inline-grid; place-items: center; min-width: 64px; height: 56px; padding: 0 14px; border-radius: 16px; font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tile:lang(zh) { font-family: var(--zh); font-weight: 600; }
.tile-vi { background: var(--brand-soft); color: var(--brand-text); }
.tile-en { background: var(--sky); color: #3157c8; }
.tile-zh { background: var(--rose); color: #c2413a; }
.tile-fr { background: var(--sage); color: #2e7a4c; }
:root[data-theme="dark"] .tile-en { color: #9db4ff; }
:root[data-theme="dark"] .tile-zh { color: #ff9c92; }
:root[data-theme="dark"] .tile-fr { color: #8fd6a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-en { color: #9db4ff; } :root:not([data-theme="light"]) .tile-zh { color: #ff9c92; } :root:not([data-theme="light"]) .tile-fr { color: #8fd6a8; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--mint-soft); color: var(--mint); }
.pill-ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.course h3 { font-size: 23px; }
.course h3 small { margin-left: 4px; color: var(--ink-3); font-family: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.course > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.course .meta { margin-top: 16px; color: var(--ink-3); font-size: 13.5px; }
.course-go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.course .meta + .course-go { margin-top: 18px; }
.course-go::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.course-go .ic { color: var(--brand-text); transition: transform .18s; }
.course:hover .course-go .ic { transform: translate(2px, -2px); }
.more { margin-top: 22px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.more strong { color: var(--ink); font-weight: 700; }

/* How it works */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: clamp(28px, 5vw, 56px); border-radius: 30px; background: var(--lav); }
.panel h2 { font-size: clamp(30px, 3.8vw, 42px); }
.panel-intro > p:not(.eyebrow) { margin-top: 18px; max-width: 44ch; color: var(--ink-2); }
.dots { display: grid; grid-template-columns: repeat(20, 12px); gap: 6px; margin-top: 30px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot-new); }
.dots .m { background: var(--dot-mastered); }
.dots .k { background: var(--dot-known); }
.dots .l { background: var(--dot-learning); }
.dots-cap { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; }
.how80 { margin-top: 10px; font-weight: 600; }
.how80 sup, .fnote sup { font-size: 0.7em; line-height: 0; }
.fnote { margin-top: 14px; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; max-width: 60ch; }
.fnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.steps { display: grid; gap: 30px; align-content: center; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--brand-text); font: 800 13px var(--head); box-shadow: 0 0 0 1px var(--lav-2); }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }

/* Words for your kind of life */
.life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.life-card { display: flex; flex-direction: column; min-width: 0; }
.life-art { display: grid; place-items: center; height: 168px; padding: 18px; border-radius: 20px; }
.life-sand { background: var(--sand); }
.life-sky { background: var(--sky); }
.life-sage { background: var(--sage); }
.phrase { display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.life-card:nth-child(2) .phrase { transform: rotate(2deg); }
.phrase strong { display: block; font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.phrase strong:lang(zh) { font-family: var(--zh); font-weight: 600; }
.phrase small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.phrase .play { width: 38px; height: 38px; }
.life-card h3 { margin-top: 22px; }
.life-card > p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.life-card .lnk { margin-top: 14px; }

/* Pricing (the night band) */
.price { margin-top: 110px; padding-block: 88px 80px; background: var(--night); color: var(--on-night-2); }
.price h2 { color: var(--on-night); }
.price .eyebrow { color: #b9a8ff; }
.price .sec-head > div > p:not(.eyebrow) { margin-top: 16px; max-width: 48ch; font-size: 16.5px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.seg button { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--on-night-2); font: 600 14.5px var(--text); cursor: pointer; transition: background .14s, color .14s; }
.seg button:hover { color: var(--on-night); }
.seg button[aria-pressed="true"] { background: var(--on-night); color: #252330; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.seg-save { padding: 2px 7px; border-radius: 999px; background: var(--sun); color: #3d2e00; font-size: 12px; font-weight: 700; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 24px; }
.plan-free { box-shadow: inset 0 0 0 1px var(--night-line); }
.plan-pro { background: #f6f3ff; color: #5e5a6d; box-shadow: 0 30px 60px -30px rgba(116, 87, 240, .55); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 24px; color: var(--on-night); }
.plan-pro h3 { color: #252330; }
.plan-pro .pill { background: #e4dcff; color: #4a2fc0; }
.plan-tag { margin-top: 4px; font-size: 15px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 26px; font-family: var(--head); font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--on-night); font-variant-numeric: tabular-nums; }
.plan-pro .plan-price { color: #252330; }
.plan-price small { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--on-night-2); }
.plan-pro .plan-price small { color: #8a8597; }
.plan-note { margin-top: 10px; font-size: 14px; }
.plan ul { display: grid; gap: 11px; margin: 26px 0 30px; padding: 0; list-style: none; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.plan li .ic { width: 18px; height: 18px; margin-top: 2px; color: #b9a8ff; }
.plan-pro li { color: #3b3848; }
.plan-pro li .ic { color: #6444df; }
.plan .bt { margin-top: auto; }
.promo-link { align-self: center; margin-top: 14px; padding: 6px 10px; border-radius: 10px; color: #4a2fc0; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-link:hover { background: #ece6ff; }
.plan-pro .bt-primary { --brand: #6444df; --brand-2: #7a5cf0; --brand-deep: #4a2fc0; }
.fine-print { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--on-night-2); }

/* Free resources */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.res a { display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s; }
.res a:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.res-k { color: var(--ink-3); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.res strong { font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.res .lnk { margin-top: auto; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq h2 { font-size: clamp(32px, 4vw, 44px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236444df' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 15.5px; }

/* Closing call */
.cta { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 30px; background: var(--lav); text-align: center; }
.cta .eyebrow { margin: 0; }
.cta p:not(.eyebrow) { color: var(--ink-2); }
.cta .bt { margin-top: 10px; }
.cta p.fine { color: var(--ink-3); font-size: 13.5px; }

/* Footer */
.foot { margin-top: 96px; padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-navs { display: grid; gap: 10px; justify-items: end; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; }
.foot-bottom a { color: inherit; }

/* The website's free-plays notice (site.js) */
.cap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); background: rgba(14, 12, 19, .55); }
@media (min-width: 640px) { .cap { place-items: center; } }
.cap-card { width: 100%; max-width: 460px; padding: 26px 24px 22px; border-radius: 26px; background: var(--night); color: var(--on-night-2); }
.cap-card h2 { margin: 0 0 10px; color: var(--on-night); font-size: 26px; }
.cap-card p { margin: 0 0 20px; }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cap-actions .btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--sun); color: #252330; font-weight: 700; text-decoration: none; }
.cap-close { border: 0; background: none; color: var(--on-night-2); font: inherit; font-weight: 600; cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ───────────── Narrow screens ───────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 56px; }
  .art { min-height: 0; padding-block: 24px; }
  .courses, .res { grid-template-columns: minmax(0, 1fr); }
  .life { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .panel, .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-pro { order: -1; }
  .foot-navs { justify-items: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sec { padding-block: 72px 0; }
  .price { margin-top: 84px; padding-block: 64px; }
  .pick { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 228px; }
  .float { max-width: 186px; padding: 9px 12px 9px 9px; gap: 9px; border-radius: 15px; }
  .float strong { font-size: 13.5px; }
  .float small { font-size: 11.5px; }
  .badge-ic { width: 34px; height: 34px; border-radius: 10px; }
  .float .play { width: 38px; height: 38px; }
  .float-goal { top: 0; right: -8px; }
  .float-listen { bottom: 2%; left: -8px; }
  .deco-zh { font-size: 34px; right: 4%; }
  .deco-hi { font-size: 30px; right: 2%; }
  .dots { grid-template-columns: repeat(14, 12px); }
  .dots i:nth-child(n + 71) { display: none; }
  .feats { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .plan { padding: 24px; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 380px) {
  .seg-save { display: none; }
}

/* ───────────── iPhone app button ───────────── */
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 18px 7px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.1; transition: transform .14s ease, box-shadow .14s ease; }
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 35, 48, .18); }
.store-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.store-btn .ic { width: 22px; height: 22px; flex: none; }
.store-btn span { display: grid; text-align: left; }
.store-btn small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.store-btn strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hero-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.hero-app > span { flex-basis: 100%; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .store-btn { transition: none; } .store-btn:hover { transform: none; } }

/* A second link on a course card (Southern Vietnamese), above the card-wide link */
.course-more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--brand-text); font-weight: 650; font-size: 15px; text-decoration: none; }
.course-more .ic { width: 18px; height: 18px; }
.course-more:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* The science link under "how it works" */
.how-sci { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--brand-soft, #ece8ff); color: var(--ink); text-decoration: none; max-width: 60ch; }
.how-sci strong { grid-column: 1; font-size: 16px; }
.how-sci span { grid-column: 1; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.how-sci .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--brand-text); }
.how-sci:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ───── Languages: "It starts with a hello." Each language's hello, big, on its own colour, with its
   recording; the whole card starts the course. Bricolage (narrowed, heaviest) for the words. ───── */
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-grotesque-vietnamese-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.hello-sec { --hello-font: 'Bricolage', var(--head); }
.hello-h { font-family: var(--hello-font); font-size: clamp(46px, 9.2vw, 112px); font-weight: 800; font-stretch: 88%; line-height: .95; letter-spacing: -0.035em; text-wrap: balance; }
.hello-accent { color: var(--brand); }
.hello-lede { margin-top: 14px; color: var(--ink); font-size: clamp(19px, 2.5vw, 30px); line-height: 1.25; letter-spacing: -0.01em; }
.hello-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
/* The rows line up across the cards (subgrid): the hellos, the names, the lines, the buttons. */
.hello-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.hello-card { --c-bg: #5b3df5; --c-ink: #ffffff; --c-play: #2b1a8c; --c-rule: rgba(255, 255, 255, .85);
  position: relative; padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 28px);
  border-radius: 18px; background: var(--c-bg); color: var(--c-ink); transition: transform .18s ease, box-shadow .18s ease; }
.hello-en { --c-bg: #cbd9ff; --c-ink: #1414a3; --c-play: #1414a3; --c-rule: rgba(255, 255, 255, .9); }
.hello-zh { --c-bg: #fcdcdf; --c-ink: #9c0c14; --c-play: #b3121b; --c-rule: rgba(255, 255, 255, .95); }
.hello-fr { --c-bg: #0c5226; --c-ink: #fdf6df; --c-play: #0c5226; --c-rule: rgba(253, 246, 223, .85); }
.hello-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(37, 35, 48, .45); }
.hello-card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.hello-card:has(.hello-play:focus-visible):not(:has(.hello-go:focus-visible)) { outline: none; }
.hello-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: clamp(56px, 9vw, 120px); font-size: clamp(50px, 5.4vw, 76px); }
.hello-word { min-width: 0; font-family: var(--hello-font); font-size: 1em; font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -0.04em; color: var(--c-ink); white-space: nowrap; }
.hello-word:lang(zh) { font-family: var(--zh); font-size: .86em; font-weight: 900; letter-spacing: -0.02em; }
.hello-play { position: relative; z-index: 2; flex: none; align-self: center; display: grid; place-items: center; width: clamp(44px, 4vw, 58px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #ffffff; color: var(--c-play); cursor: pointer; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.hello-fr .hello-play { background: var(--c-ink); }
.hello-play svg { width: 46%; height: 46%; margin-left: 8%; }
.hello-play:hover { transform: scale(1.06); }
.hello-play:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.hello-play.is-playing { animation: hello-pulse .9s ease-in-out infinite; }
@keyframes hello-pulse { 50% { transform: scale(1.1); } }
.hello-card h3 { align-self: end; font-family: var(--hello-font); font-size: clamp(26px, 2.7vw, 38px); font-weight: 800; font-stretch: 92%; line-height: 1.05; letter-spacing: -0.02em; color: var(--c-ink); }
.hello-card p { margin-top: 6px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.3; color: var(--c-ink); }
.hello-go { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 3px solid var(--c-rule); font-family: var(--hello-font); font-size: clamp(19px, 1.65vw, 24px); white-space: nowrap; font-weight: 800; font-stretch: 92%; letter-spacing: -0.02em; color: var(--c-ink); text-decoration: none; }
.hello-go::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hello-go:focus-visible { outline: none; }
.hello-go .ic { width: 1em; height: 1em; stroke-width: 2.6; transition: transform .18s ease; }
.hello-card:hover .hello-go .ic { transform: translateX(4px); }
@media (max-width: 980px) {
  .hello-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hello-top { font-size: clamp(50px, 9vw, 80px); }
}
/* Phones: two cards a row, smaller, so all four fit on about one screen. */
@media (max-width: 560px) {
  .hello-cards { gap: 8px; margin-top: 22px; }
  .hello-card { padding: 14px 12px 14px; border-radius: 16px; }
  .hello-top { gap: 6px; padding-bottom: 26px; font-size: clamp(36px, 11.5vw, 46px); }
  .hello-play { width: 32px; box-shadow: 0 1px 6px -3px rgba(0, 0, 0, .35); }
  .hello-card h3 { font-size: 19px; }
  .hello-card p { margin-top: 3px; font-size: 13px; line-height: 1.25; }
  .hello-go { gap: 6px; margin-top: 12px; padding-top: 10px; border-top-width: 2px; font-size: 14.5px; }
  .hello-go .ic { stroke-width: 2.8; }
  .hello-lede { margin-top: 10px; }
  .app-strip { margin-top: 16px; }
}
@media (max-width: 350px) {
  .hello-go { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hello-card, .hello-play, .hello-go .ic { transition: none; }
  .hello-card:hover { transform: none; }
  .hello-play.is-playing { animation: none; }
}

/* ───── The apps: Android's early access next to the App Store, everywhere the iPhone app is offered ───── */
.store-btn-alt { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.store-btn-alt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3), 0 6px 16px rgba(37, 35, 48, .12); }
.app-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 22px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.app-strip > span { margin-right: 4px; }

/* "Your words, in your pocket." */
.app-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 32px; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: 30px; background: radial-gradient(120% 90% at 100% 100%, #7a5cf0 0%, transparent 60%), #5b3df5; color: #fff; }
.app-band .eyebrow { color: #e4dcff; }
.app-band h2 { color: #fff; }
.app-band .store-btn { background: #17132e; color: #fff; }
.app-copy h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.03em; line-height: 1.04; }
.app-lede { max-width: 46ch; margin-top: 14px; color: #ece8ff; font-size: 17px; }
.app-ios { margin-top: 24px; }
.android-form { max-width: 520px; margin-top: 26px; padding-top: 22px; border-top: 1.5px solid rgba(255, 255, 255, .28); }
.android-form label { display: block; color: #ece8ff; font-size: 15px; line-height: 1.45; }
.android-form label strong { color: #fff; }
.af-row { display: flex; gap: 8px; margin-top: 12px; }
.af-row input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: #fff; color: #252330; font: 500 16px var(--text); }
.af-row input::placeholder { color: #8a8597; }
.af-row input:focus { outline: 3px solid #ffd35c; outline-offset: 2px; }
.af-row .bt { flex: none; min-height: 50px; color: #252330; background: #ffd35c; box-shadow: 0 4px 0 #d9a521; }
.af-row .bt:hover { transform: translateY(-1px); }
.af-row .bt:active { transform: translateY(3px); box-shadow: none; }
.af-fine { margin-top: 10px; color: #d6cdff; font-size: 13px; }
.af-fine a { color: inherit; }
.android-form.is-done .af-row { display: none; }
.android-form.is-done .af-fine { color: #fff; font-size: 16px; font-weight: 700; }
.android-form.is-err .af-fine { color: #ffd35c; font-weight: 650; }
.app-art { position: relative; height: clamp(340px, 34vw, 430px); }
.app-phone { position: absolute; bottom: -70px; left: 50%; width: min(220px, 60%); height: auto; border-radius: 30px; border: 7px solid #17132e; background: #17132e; box-shadow: 0 30px 60px -24px rgba(37, 35, 48, .45); transform: translateX(-30%) rotate(4deg); }
.app-phone-back { transform: translateX(-85%) rotate(-7deg); opacity: .9; }
@media (max-width: 860px) {
  .app-band { grid-template-columns: minmax(0, 1fr); }
  .app-art { height: 300px; margin: 0 -8px -12px; }
}
@media (max-width: 480px) {
  .af-row { flex-direction: column; }
  .af-row .bt { width: 100%; }
}

/* Guides with photos */
.hg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hg-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.hg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hg-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.hg-art { container-type: inline-size; display: flex; align-items: center; justify-content: space-between; gap: 2%; aspect-ratio: 16 / 9.4; padding: 0 5% 0 7%; overflow: hidden; background: var(--hg-bg); color: var(--hg-k); }
.hg-violet { --hg-bg: #5320d8; --hg-k: #ffffff; --a: #f9cfdd; --b: #a98bf7; --c: #e8a9c2; }
.hg-lav { --hg-bg: #e4ddff; --hg-k: #2c0d62; --a: #f07890; --b: #c9bcfd; --c: #ffffff; }
.hg-plum { --hg-bg: #4b0f73; --hg-k: #ffffff; --a: #f6c4d6; --b: #f1ecff; --c: #c9b8fb; }
.hg-pink { --hg-bg: #fcdde5; --hg-k: #3b0b63; --a: #8b6bf2; --b: #ffffff; --c: #ffffff; }
.hg-art { --k: var(--hg-k); }
.hg-say { min-width: 0; font-family: var(--head); font-size: 15cqi; font-weight: 800; line-height: .96; letter-spacing: -0.035em; color: var(--hg-k); }
.hg-say-big { font-size: 17.5cqi; }
.hg-art svg { flex: none; width: 38cqi; height: auto; stroke-linecap: round; transition: transform .35s ease; }
.hg-card:hover .hg-art svg { transform: rotate(-4deg) scale(1.04); }
.hg-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.hg-cat { color: var(--brand-text); font-size: 13px; font-weight: 700; }
.hg-body strong { font-family: var(--head); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.hg-meta { color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 900px) { .hg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hg { gap: 10px; }
  .hg-card { border-radius: 16px; }
  .hg-body { gap: 4px; padding: 10px 11px 12px; }
  .hg-cat { font-size: 11.5px; }
  .hg-body strong { font-size: 14.5px; line-height: 1.22; }
  .hg-meta { font-size: 11.5px; }
}

/* The phone bar: on a phone, once past the top of the page, the app (App Store on an iPhone, the
   Android sign-up on Android). Closed with ×, for a week. */
.app-bar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 14px 34px -10px rgba(37, 35, 48, .35); transform: translateY(140%); transition: transform .28s ease; }
.app-bar.is-on { transform: none; }
.app-bar[hidden] { display: none; }
.app-bar-mark svg { display: block; }
.app-bar strong { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.2; }
.app-bar .bt { flex: none; }
.app-bar-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; }
@media (min-width: 761px) { .app-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .app-bar { transition: none; } .hg-card, .hg-art svg { transition: none; } .hg-card:hover { transform: none; } .hg-card:hover .hg-art svg { transform: none; } }
@media (max-width: 560px) {
  .app-band { gap: 18px; padding: 24px 18px 0; border-radius: 22px; }
  .app-lede { font-size: 15.5px; }
  .app-ios { margin-top: 18px; }
  .android-form { margin-top: 20px; padding-top: 18px; }
  .app-art { height: 210px; }
  .app-phone { width: 150px; border-width: 5px; border-radius: 22px; bottom: -110px; }
}
/* Phones: the two app buttons side by side, smaller. */
@media (max-width: 560px) {
  .hero-app, .app-strip, .cta-row { gap: 8px; }
  .app-strip { justify-content: center; }
  .app-strip > span { flex-basis: 100%; margin: 0; text-align: center; }
  .cta-row { flex-wrap: wrap; justify-content: center; }
  .cta-row .bt { flex-basis: 100%; }
  .store-btn { flex: 1 1 0; min-width: 0; min-height: 48px; gap: 8px; padding: 6px 10px; border-radius: 12px; }
  .store-btn .ic { width: 18px; height: 18px; }
  .store-btn small { font-size: 10.5px; }
  .store-btn span { min-width: 0; }
  .store-btn strong { font-size: 14px; white-space: nowrap; }
  .app-ios .store-btn { flex: none; }
}
