/* --- Inter, self-hosted ----------------------------------------------------
   Subset to Latin + Latin-Ext + punctuation and converted to woff2 from the
   TTFs already vendored in node_modules/@expo-google-fonts/inter — the same
   files the app itself ships, so the site and the app render identical type.

   Self-hosted deliberately, not loaded from Google Fonts. A webfont request to
   fonts.gstatic.com sends every visitor's IP address to Google, which a German
   court (LG Munchen I, Jan 2022) held to be an unlawful transfer without
   consent. Self-hosting removes the transfer, removes the only third party on
   this site, and drops two DNS+TLS round trips. 146 KB for four weights.
--------------------------------------------------------------------------- */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }

/* ---------------------------------------------------------------------------
   Tokmia — site stylesheet

   Tokens are lifted from the app, not invented. Sources:
     constants/colors.ts  — palette, aurora gradient, semantic role colours
     lib/tokens.ts        — radius scale, elevation ladder, motion timings

   Two rules carried over from the app that must not be broken here:

   1. The aurora gradient (violet -> magenta) is the brand *moment*. In-app it
      appears only on the home header banner and the Featured strip. On this
      site it appears exactly three times: the mark, the hero eyebrow, and the
      closing CTA band. Nowhere else.

   2. Blue is NOT a brand colour (constants/colors.ts:8-13). It carries two
      learned meanings only — derived authority (co-host / moderator) and
      structured practice. Do not introduce blue as a decorative accent.

   Semantic colours keep their in-app meaning: --live is live-now, --practice
   is 1:1 matched practice, --pro is Pro. Never decorative.
--------------------------------------------------------------------------- */

:root {
  /* Surfaces — colors.ts light */
  --canvas:       #F5F7FA;
  --surface:      #FFFFFF;
  --surface-2:    #FAFBFC;
  --surface-3:    #F1F5F9;
  --border:       #E2E8F0;

  /* Text */
  --ink:          #111827;
  /* Darkened from the app's #64748B, which measured 4.43:1 on the canvas
     and failed AA for body-size text. #556270 keeps the same slate
     character at 5.81:1. */
  --muted:        #556270;

  /* Brand */
  --primary:      #7C3AED;
  --primary-deep: #6D28D9;
  --primary-tint: rgba(124, 58, 237, 0.10);
  --on-primary:   #FFFFFF;
  --aurora-a:     #7C3AED;
  --aurora-b:     #C026D3;

  /* Fixed gradient stops for surfaces that carry WHITE text (the CTA band,
     mockup avatars). These are deliberately NOT redefined in dark mode: the
     dark aurora starts at #A78BFA, and white on #A78BFA is about 2.1:1, which
     is unreadable. --aurora-* stays theme-aware because it is only used for
     gradient *text*, where the light stop is the legible one. */
  --grad-a:       #7C3AED;
  --grad-b:       #C026D3;

  /* Role colours — meaning-bearing, see header note */
  --stage:        #12192B;   /* colors.ts stageBg — the live-room surface */
  --live:         #22C55E;
  --live-bg:      #DCFCE7;
  --live-fg:      #166534;
  --practice:     #0D9488;
  --pro:          #F59E0B;
  /* Fills keep the semantic hue; the LABEL on a tinted fill needs its own
     darker ink. #0D9488 on its own 14% tint was 3.17:1 and #F59E0B on its
     16% tint was 1.89:1 — both unreadable. */
  --practice-ink: #115E59;
  --pro-ink:      #92400E;

  /* Elevation — lib/tokens.ts:80-96, shadow colour #0F172A */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, .08);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, .12);

  /* Radius — lib/tokens.ts:46-53 */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Motion — lib/tokens.ts motion.base */
  --t: 220ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --container: 1120px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas:       #0D1117;
    --surface:      #161B22;
    --surface-2:    #1C2128;
    --surface-3:    #21262D;
    --border:       #3D444D;

    --ink:          #F8FAFC;
    --muted:        #9CA3AF;

    --primary:      #A78BFA;
    /* Hover must BRIGHTEN on a dark canvas. This was #8B5CF6 — darker than
       --primary — which inverted the affordance and dropped the label to
       4.23:1. */
    --primary-deep: #C4B5FD;
    --primary-tint: rgba(167, 139, 250, 0.16);
    /* White on #A78BFA is 2.72:1 — the single worst contrast defect on the
       site, and it hit the header's 'Get the app' button on every page.
       Dark ink on the bright violet reads at 6.58:1 and keeps the brand
       colour doing the work. */
    --on-primary:   #1B1035;
    --aurora-a:     #A78BFA;
    --aurora-b:     #7C3AED;

    --stage:        #0D1420;
    --live:         #4ADE80;
    --live-bg:      #14532D;
    --live-fg:      #86EFAC;
    --practice:     #14B8A6;
    /* On dark the fill is dark and the semantic hue is already legible. */
    --practice-ink: #14B8A6;
    --pro-ink:      #FBBF24;
    --pro:          #FBBF24;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, .45);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, .55);
  }
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 18px; border-radius: 0 0 var(--r-md) 0; z-index: 200;
}
.skip:focus { left: 0; }

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
section { padding-block: 96px; }
@media (max-width: 760px) { section { padding-block: 56px; } }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow--brand { color: var(--primary); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .eyebrow--brand {
    background: linear-gradient(90deg, var(--aurora-a), var(--aurora-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); letter-spacing: -0.025em; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

.lede  { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__in {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
/* :not(.btn) is load-bearing, not decoration. `.nav__links a` has specificity
   0,1,1 and `.btn--primary` only 0,1,0, so without the exclusion the ancestor
   rule wins on specificity no matter the source order — and the "Get the app"
   button rendered --muted on the violet fill at 1.09:1, i.e. invisible.
   Any future rule scoped to a container that also holds a button needs the
   same treatment. `python web/tools/contrast.py` catches it if you forget. */
.nav__links a:not(.btn) { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) {
  .nav__in { height: 60px; gap: 16px; }
  .nav__links { gap: 16px; }
  .nav__links .nav-hide-sm { display: none; }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .9375rem; font-weight: 600;
  padding: 12px 20px; min-height: 46px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--onDark { background: #fff; color: #1B1035; }
.btn--onDark:hover { background: #F1F5F9; }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .875rem; }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600;
  background: var(--primary-tint); color: var(--primary);
}
.pill--live { background: var(--live-bg); color: var(--live-fg); }
.pill--practice { background: color-mix(in srgb, var(--practice) 14%, transparent); color: var(--practice-ink); }
.pill--pro { background: color-mix(in srgb, var(--pro) 16%, transparent); color: var(--pro-ink); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: 84px 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 30em; }
@media (max-width: 940px) {
  .hero { padding-block: 56px 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* --- Device mockups -------------------------------------------------------
   Hand-built from the app's real surfaces. No screenshots: these stay sharp,
   weigh nothing, and can be corrected in place when the UI moves.
--------------------------------------------------------------------------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  font-size: 14px;
}
.mock__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
}
.mock__title { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }

.room {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.room + .room { margin-top: 9px; }
.room__av {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; font-weight: 700; font-size: .875rem;
  display: grid; place-items: center;
}
.room__body { min-width: 0; flex: 1; }
.room__name { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; }
.room__meta { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.room__tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
.room__flag { font-size: 1.05rem; line-height: 1; }

/* Stage mockup — sits on the navy band */
.stage-mock {
  background: var(--stage);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  color: #F8FAFC;
  box-shadow: var(--shadow-lg);
}
.speakers { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; padding: 10px 0 20px; }
.spk { width: 74px; text-align: center; }
/* The stage band is dark in BOTH themes (colors.ts stageBg is #12192B light /
   #0D1420 dark), so everything inside it uses fixed dark-surface colours. Using
   the theme-aware --speaker-bg here put #EDE9FE text on an #EDE9FE background
   in light mode and the initials vanished. */
.spk__ring {
  width: 60px; height: 60px; margin: 0 auto 8px;
  border-radius: 50%;
  background: #3B1E6B;
  color: #EDE9FE;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
  border: 2px solid transparent;
  position: relative;
}
.spk--talking .spk__ring {
  border-color: #A78BFA;
  box-shadow: 0 0 0 4px rgba(167,139,250,.22);
}
.spk__name { font-size: .75rem; color: #CBD5E1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk__role { font-size: .6875rem; margin-top: 1px; }
.spk__role--host { color: #F59E0B; }
.spk__role--talking { color: #A78BFA; }

.chat { border-top: 1px solid rgba(255,255,255,.09); padding-top: 16px; display: grid; gap: 10px; }
.chat__line { font-size: .8125rem; color: #CBD5E1; }
.chat__who { color: #F8FAFC; font-weight: 600; }
.chat__translated {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 5px 10px;
  background: rgba(167,139,250,.16); color: #C4B5FD;
  border-radius: var(--r-sm); font-size: .75rem;
}

/* Practice mockup */
.mode { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.mode + .mode { margin-top: 9px; }
.mode__ico { font-size: 1.25rem; }
.mode__name { font-weight: 600; font-size: .9375rem; }
.mode__desc { font-size: .8125rem; color: var(--muted); }
.mode__time { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--practice-ink); font-variant-numeric: tabular-nums; }

/* Review-card mockup */
.rev { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px; }
.rev + .rev { margin-top: 9px; }
.rev__label { font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rev__wrong { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.rev__right { font-weight: 600; }
.rev__due { font-size: .75rem; color: var(--muted); margin-top: 9px; display: flex; align-items: center; gap: 6px; }


/* --- Store badges ----------------------------------------------------------
   NOTE: these are re-drawn to Apple's and Google's badge proportions so the
   page is complete and correctly laid out. Both companies require their OWN
   supplied artwork to be used unmodified — swap in the official files before
   launch. See web/README.md, "Store badges".
--------------------------------------------------------------------------- */

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  height: 54px; padding: 0 18px 0 16px;
  border-radius: var(--r-md);
  background: #000; color: #fff;
  border: 1px solid #000;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.badge:hover { text-decoration: none; background: #1a1a1a; }
.badge:active { transform: translateY(1px); }
/* Prelaunch build: the store is not live yet, so the badge is a label, not a link. */
.badge--soon { cursor: default; }
.badge--soon:hover { background: inherit; }
.badge--soon:active { transform: none; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge__sm { font-size: .625rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.badge__lg { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

/* On the dark stage band and the coral CTA the black badge needs a light edge
   so it doesn't disappear into the background. */
.band-stage .badge, .cta .badge { border-color: rgba(255,255,255,.28); }

.footer .stores { margin-top: 20px; }
.footer .badge { height: 46px; padding: 0 15px 0 13px; }
.footer .badge svg { width: 22px; height: 22px; }
.footer .badge__lg { font-size: .9375rem; }
.footer .badge__sm { font-size: .5625rem; }

.stores__note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.cta .stores { justify-content: center; }
.cta .stores__note { color: rgba(255,255,255,.78); }

/* --- Coming-soon home (prelaunch build swaps it in for index.html) --------- */
.soon { text-align: center; padding-block: 88px 72px; }
.soon__mark { width: 68px; height: 68px; margin: 0 auto 26px; display: block; }
.soon .lede { margin-inline: auto; }
.soon .stores { justify-content: center; }
.soon h1 { margin-inline: auto; }
.soon + section .card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.soon__links { margin-top: 36px; text-align: center; color: var(--muted); font-size: .9375rem; }

/* --- Steps ---------------------------------------------------------------- */

.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.step + .step { margin-top: 88px; }
.step--flip .step__media { order: -1; }
.step__n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
  font-size: .8125rem; font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p + p { margin-top: 12px; }
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 32px; }
  .step + .step { margin-top: 56px; }
  .step--flip .step__media { order: 0; }
}

/* --- Bands ---------------------------------------------------------------- */

.band-stage { background: var(--stage); color: #F8FAFC; }
.band-stage h2 { color: #fff; }
.band-stage .lede, .band-stage .muted { color: #94A3B8; }
.band-stage .eyebrow { color: #94A3B8; }
.band-stage a { color: #C4B5FD; }

.band-soft { background: var(--surface-3); }

.cta {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  border-radius: var(--r-xl);
  padding: 60px 44px;
  text-align: center;
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); margin-top: 14px; }
@media (max-width: 640px) { .cta { padding: 40px 22px; } }

/* --- Language chips ------------------------------------------------------- */

.langs { display: flex; flex-wrap: wrap; gap: 9px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .875rem; font-weight: 500;
}
.lang--more { background: transparent; color: var(--muted); border-style: dashed; }

/* --- Feature list --------------------------------------------------------- */

.flist { display: grid; gap: 11px; }
.flist li { display: flex; gap: 11px; align-items: flex-start; font-size: .9375rem; }
.flist svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary); }
.flist--pro svg { color: var(--pro); }

/* --- Prose (legal / support / safety) ------------------------------------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 12px; }
.prose h3 { font-size: 1.0625rem; margin-top: 26px; margin-bottom: 8px; }
.prose p { margin-top: 14px; color: var(--ink); }
.prose ul { margin-top: 14px; display: grid; gap: 9px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.prose__meta { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.callout {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.callout p:first-child { margin-top: 0; }

.page-head { padding-block: 64px 12px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* --- Footer --------------------------------------------------------------- */

.footer { background: #0D1117; color: #9CA3AF; padding-block: 56px 40px; font-size: .9375rem; }
.footer a:not(.badge) { color: #CBD5E1; }
.footer a:not(.badge):hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #F8FAFC; font-weight: 700; font-size: 1.0625rem; }
.footer__brand svg { width: 30px; height: 30px; }
.footer .foot-h { color: #F8FAFC; font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer__base { margin-top: 44px; padding-top: 24px; border-top: 1px solid #21262D; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- Link catcher --------------------------------------------------------- */

/* 100vh centring is right for the bare utility pages (open, payouts) but wrong
   for 404, which now carries the full nav and footer — it would push the footer
   a screen below the fold. */
.catch { min-height: 60vh; display: grid; place-items: center; padding: 64px 24px; text-align: center; }
.catch:first-child { min-height: 100vh; }
.catch__in { max-width: 440px; width: 100%; }
.catch__mark { width: 68px; height: 68px; margin: 0 auto 26px; }
.catch h1 { font-size: 1.75rem; margin-bottom: 12px; }
.catch__code {
  display: inline-block; margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem; font-weight: 700; letter-spacing: .14em;
  padding: 13px 22px; border-radius: var(--r-md);
  background: var(--primary-tint); color: var(--primary);
}
.catch__actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* --- Tables (privacy sub-processor list) ----------------------------------
   Wrapped in a div[overflow-x:auto] in the markup so a wide table scrolls
   inside its own box and never makes the page scroll sideways.
--------------------------------------------------------------------------- */

.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .9375rem; min-width: 620px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--ink); }

/* --- Print -----------------------------------------------------------------
   Terms and the privacy policy get printed and saved to PDF. Strip the chrome,
   force readable black-on-white regardless of the reader's theme, and spell out
   link targets so a printed page stays useful.
--------------------------------------------------------------------------- */

@media print {
  :root {
    --canvas: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #fff;
    --ink: #000; --muted: #444; --border: #bbb; --primary: #000;
  }
  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .footer, .skip, .stores, .cta, .mock, .stage-mock { display: none !important; }
  section { padding-block: 0 !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .prose { max-width: none; }
  h1 { font-size: 20pt; }
  h2 { font-size: 13pt; margin-top: 18pt; page-break-after: avoid; }
  h3 { font-size: 11pt; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a { color: #000; text-decoration: underline; }
  /* Spell out where a link went — a printed cross-reference is otherwise lost. */
  .prose a[href^="/"]::after { content: " (tokmia.com" attr(href) ")"; font-size: 9pt; color: #444; }
  .prose a[href^="mailto:"]::after { content: ""; }
  .callout { border: 1px solid #bbb; border-left-width: 3px; page-break-inside: avoid; }
  .tbl { min-width: 0; font-size: 9pt; }
  .tbl th, .tbl td { padding: 5pt 6pt; }
  tr, .card { page-break-inside: avoid; }
}


/* ===========================================================================
   MODERN LAYER
   Added after the base system so these rules win on source order without
   needing extra specificity. Everything here degrades to the plain layout if
   a feature is unsupported, and all motion is gated behind
   prefers-reduced-motion by the block near the top of this file.
   =========================================================================== */

/* --- Ambient glow ----------------------------------------------------------
   Two soft radial washes behind the hero. Pure CSS, no image, no layout cost,
   and pointer-events:none so it can never eat a click.
--------------------------------------------------------------------------- */

.glow { position: relative; isolation: isolate; overflow: clip; }
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow::before {
  width: 46rem; height: 46rem;
  top: -22rem; left: -14rem;
  background: radial-gradient(circle, var(--grad-a) 0%, transparent 68%);
}
.glow::after {
  width: 38rem; height: 38rem;
  top: -10rem; right: -16rem;
  background: radial-gradient(circle, var(--grad-b) 0%, transparent 68%);
}
@media (prefers-color-scheme: dark) {
  .glow::before, .glow::after { opacity: .32; }
}
@media (max-width: 760px) {
  .glow::before, .glow::after { filter: blur(70px); opacity: .35; }
}

/* --- Hero language picker --------------------------------------------------
   HelloTalk puts a language chooser in the hero and it is the right instinct:
   it turns a passive headline into a decision. These are real links to the
   per-language pages, so the pattern also carries internal link equity. No
   JavaScript, so it works before anything loads.
--------------------------------------------------------------------------- */

.picker { margin-top: 30px; }
.picker__label { font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.picker__row { display: flex; flex-wrap: wrap; gap: 8px; }
.picker__chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: .875rem; font-weight: 500;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
}
.picker__chip:hover {
  text-decoration: none;
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-1px);
}
.picker__chip--more { border-style: dashed; color: var(--muted); }

/* --- Stat strip ------------------------------------------------------------ */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat__n { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.stat__l { margin-top: 6px; font-size: .875rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* --- Bento grid ------------------------------------------------------------
   Feature cards at mixed sizes. Reads as a product page rather than an essay,
   which is most of what "modern" means here.
--------------------------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bento > *:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bento__wide { grid-column: span 4; }
.bento__half { grid-column: span 3; }
.bento__third { grid-column: span 2; }
.bento h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.bento p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
/* The tinted-violet fill measured 4.50:1 light / 4.30:1 dark against the
   violet glyph colour. These tiles currently hold emoji, where `color` is
   mostly decorative — but a future SVG icon here would inherit it, so the
   surface tone is used instead: 5.20:1 light, 5.59:1 dark. */
.bento__ico {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--surface-3); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 16px;
  font-size: 1.125rem;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__wide, .bento__half, .bento__third { grid-column: span 2; }
}

/* --- Phone frame -----------------------------------------------------------
   A thin bezel around the mockups so they read as a product surface rather
   than a floating card. Drawn, not an image.
--------------------------------------------------------------------------- */

.phone {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, var(--border), var(--surface-3));
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}
.phone > .mock {
  border-radius: 26px;
  box-shadow: none;
  margin: 0;
}
.phone::before {
  content: "";
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 5px; border-radius: 99px;
  background: var(--border);
  z-index: 2;
}
.phone > .mock { padding-top: 30px; }
.hero .phone { margin-left: auto; }
@media (max-width: 940px) { .hero .phone { margin-inline: auto; } }

/* --- Language marquee ------------------------------------------------------ */

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
}

/* --- Scroll reveal ---------------------------------------------------------
   Opt-in per element. The no-JS and reduced-motion paths both leave content
   fully visible — nothing is ever hidden behind a script that might not run.
--------------------------------------------------------------------------- */

.reveal { opacity: 1; }
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* --- Live dot pulse -------------------------------------------------------- */

.dot--pulse { position: relative; }
.dot--pulse::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid var(--live);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.7); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}

/* --- Section eyebrow rail -------------------------------------------------- */

.rail { display: flex; align-items: center; gap: 10px; }
.rail::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* --- Nav scroll state ------------------------------------------------------ */

.nav { transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease); }
.nav.is-stuck { box-shadow: 0 1px 0 var(--border), var(--shadow-sm); }

/* --- Comparison UI ---------------------------------------------------------
   Built for the tension between search and readers: search rewards depth, a
   reader confronted with 1,200 words of prose leaves. So the page leads with
   things you can LOOK at — verdict cards and a table — and the prose lives in
   accordions below. Content inside <details> is still in the DOM, so Google
   indexes it and AI crawlers read it; it just isn't shouting at a human.
--------------------------------------------------------------------------- */

.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.verdict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.verdict:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.verdict--own { border-color: var(--primary); background: var(--primary-tint); }
.verdict__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; }
.verdict__tag { font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.verdict p { margin-top: 10px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .verdicts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .verdicts { grid-template-columns: 1fr; } }

.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; min-width: 660px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp thead th { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--border); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp th:first-child, .cmp td:first-child { font-weight: 500; color: var(--ink); }
/* The product's own column is tinted end-to-end so the eye reads down it. */
.cmp .own { background: var(--primary-tint); }
.cmp thead .own { color: var(--primary); border-radius: var(--r-md) var(--r-md) 0 0; }
.cmp tbody tr:last-child .own { border-radius: 0 0 var(--r-md) var(--r-md); }
.mark { display: inline-flex; align-items: center; gap: 7px; }
.mark svg { width: 16px; height: 16px; flex: none; }
.mark--yes { color: var(--live-fg); }
.mark--no { color: var(--muted); }
.cmp__scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 6px 10px; }

/* --- Accordion ------------------------------------------------------------- */

.acc {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-top: 12px;
  overflow: hidden;
}
.acc > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  transition: background var(--t) var(--ease);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--surface-3); }
.acc > summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t) var(--ease);
}
.acc[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc[open] > summary { border-bottom: 1px solid var(--border); }
.acc__body { padding: 4px 22px 22px; }
.acc__body > h3:first-of-type { margin-top: 18px; }
.acc__body p, .acc__body ul { font-size: .9375rem; }

/* --- Mobile navigation -----------------------------------------------------
   Previously three of the four nav links were `display:none` below 720px with
   nothing to reveal them, so a phone visitor could reach Languages and the
   download button and nothing else. On a site whose traffic is overwhelmingly
   mobile that is the wrong way round.

   Two layers, so there is no dead end in either direction:
     - No JavaScript: the links simply wrap onto a second row. Slightly less
       tidy, completely usable.
     - With JavaScript: they collapse behind a labelled toggle.
--------------------------------------------------------------------------- */

.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__in { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .nav__links { width: 100%; margin-left: 0; gap: 6px; flex-wrap: wrap; order: 3; }
  /* The hide-sm class no longer hides anything; the links wrap instead. */
  .nav__links .nav-hide-sm { display: inline-flex; }
  .nav__links a:not(.btn) {
    padding: 7px 11px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    font-size: .875rem;
  }
  .nav__links .btn { margin-left: auto; }

  /* Enhanced: collapse behind a toggle. */
  .js .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; order: 2;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  .js .nav__toggle svg { width: 20px; height: 20px; }
  .js .nav__links { display: none; }
  .js .nav__links.is-open { display: flex; padding-top: 4px; padding-bottom: 6px; }
  .js .nav__in .btn--primary { order: 1; margin-left: 0; }
  .js .nav__links .btn { display: none; }
}
