/* Oya site: pure black stage, white type, mono eyebrows, hairlines.
   Same tokens as the app (oya/public/index.html). No accent colour. */

:root {
  --bg: #000;
  --fg: #f5f5f5;
  --dim: rgba(245, 245, 245, .6);
  --faint: rgba(245, 245, 245, .36);
  --ghost: rgba(245, 245, 245, .14);
  --line: rgba(245, 245, 245, .09);
  --line-strong: rgba(245, 245, 245, .18);
  --raise: rgba(245, 245, 245, .05);
  --panel: #070707;
  --display: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --text: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --nav-h: 72px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; animation: page-in .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 6px; font: 500 12px/1 var(--mono); }
.skip:focus { top: 12px; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ── Buttons and links ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: #fff; }
.btn.line { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg); }
.btn.line:hover { background: var(--raise); }
.btn svg { width: 14px; height: 14px; }
.more { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); padding: 10px 0; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, gap .3s var(--ease); }
.more:hover { border-color: var(--fg); gap: 14px; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.prose a:hover { border-color: var(--fg); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10; height: calc(var(--nav-h) + env(safe-area-inset-top));
  /* Line the wordmark and links up with the content column on wide screens */
  padding: env(safe-area-inset-top) max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 0;
  display: flex; align-items: center; justify-content: space-between; transition: background .3s, box-shadow .3s; view-transition-name: nav;
}
.nav.solid, .nav.always { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark b { font: 600 18px/1 var(--display); letter-spacing: .34em; margin-right: -.34em; }
.wordmark span { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--faint); border: 1px solid var(--line-strong); padding: 3px 5px; border-radius: 3px; }
.nav .links { display: flex; align-items: center; gap: 28px; }
.nav .links a.eyebrow { position: relative; padding: 8px 0; transition: color .2s; }
.nav .links a.eyebrow:hover, .nav .links a[aria-current=page] { color: var(--fg); }
.nav .links a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: .14em; bottom: 0; height: 1px; background: var(--fg); }
.nav .btn { height: 36px; padding: 0 16px; font-size: 11px; }

/* ── Sections ────────────────────────────────────────── */
main { display: block; }
section { padding: clamp(88px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.head p { margin: 0; color: var(--dim); max-width: 46ch; font-size: 17px; }
.head .eyebrow { display: block; margin-bottom: 18px; }
.head:last-child { margin-bottom: 0; }
.teaser-foot { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.teaser-foot p { margin: 0; color: var(--dim); max-width: 52ch; }

/* ── Page hero (sub-pages) ───────────────────────────── */
.page-hero { padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 128px)); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero .eyebrow { display: block; margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.page-hero p { margin: 28px 0 0; max-width: 52ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--dim); }
.page-hero .cta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 34px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ── Landing hero ────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; overflow: hidden; }
#orb { position: absolute; top: 50%; left: 50%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; width: 100%; display: grid; justify-items: center; text-align: center; gap: 28px; }
/* Greeting pill: flag · spoken greeting · language */
.flag { display: inline-block; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); flex: none; }
.greet {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: rgba(10, 10, 10, .62); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 40px rgba(0, 0, 0, .5);
}
.greet-text { display: inline-block; overflow: hidden; white-space: nowrap; transition: width .45s var(--ease); }
.greet .say { display: inline-block; font: 500 20px/1 var(--display); letter-spacing: -.01em; color: var(--fg); transition: opacity .38s, filter .38s, transform .45s var(--ease); }
.greet .lang { padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--dim); transition: opacity .38s; min-width: 7ch; }
.greet .say.out { opacity: 0; filter: blur(6px); transform: translateY(8px); }
.greet .lang.out { opacity: 0; }
/* Languages that are coming carry a hairline "Soon" badge; its slot glides open */
.greet .lang { display: inline-flex; align-items: center; }
.greet .flag { transition: opacity .38s; }
.greet .flag.out { opacity: 0; }
.g-soon { display: inline-block; overflow: hidden; width: 0; transition: width .45s var(--ease); }
.g-soon .soon { display: inline-block; margin-left: 10px; padding: 4px 6px; font-size: 9px; color: var(--dim); }
.with-flag { display: inline-flex !important; align-items: center; gap: 10px; }
.with-flag .flag, .foot-made .flag { width: 18px; height: 13px; border-radius: 2px; }
.foot-made { display: inline-flex; align-items: center; gap: 10px; }
a.inline { color: var(--fg); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
a.inline:hover { border-color: var(--fg); }

/* Next across Africa */
.next { margin-top: clamp(56px, 7vw, 88px); }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.next-head h3 { margin: 0; }
.soon { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); padding: 5px 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-grid li { display: grid; align-content: start; gap: 8px; padding: 24px 20px 26px; border-right: 1px solid var(--line); }
.next-grid li:first-child { padding-left: 0; }
.next-grid li:last-child { border-right: 0; }
.next-grid .flags { display: flex; gap: 6px; margin-bottom: 8px; }
.next-grid .flag { opacity: .85; transition: opacity .4s; }
.next-grid li:hover .flag { opacity: 1; }
.next-grid .hi[dir=rtl] { text-align: left; }
.next-grid b { font: 500 26px/1.1 var(--display); letter-spacing: -.02em; color: var(--dim); transition: color .4s; }
.next-grid li:hover b { color: var(--fg); }
.next-grid .hi { color: var(--faint); font-size: 16px; }
.next-grid .where { color: var(--faint); }

/* Coming soon: dimmer, smaller rows under the live ones */
.soon-group { margin-top: clamp(48px, 6vw, 72px); }
.soon-head { margin-bottom: 18px; }
.soon-head h3 { margin: 0; }
.lang-row.is-soon { padding: clamp(14px, 1.8vw, 20px) 0; }
.lang-row.is-soon .name { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.03em; color: var(--ghost); }
.lang-row.is-soon:hover .name { color: var(--faint); }
.lang-row.is-soon .hi { font-size: 16px; color: var(--faint); }
.lang-row.is-soon .when { justify-self: end; }
.hero h1 { font-size: clamp(44px, 8.4vw, 112px); line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--faint); }
.lede { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--dim); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.scroll-cue { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); }

/* ── Conversation demo ───────────────────────────────── */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 64px; align-items: center; }
.tag { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 5px; }
@keyframes word { from { opacity: 0; filter: blur(3px); transform: translateY(.2em); } }
/* iPhone (19.5:9) running the Oya app. Sizes scale off --w. */
.iphone-wrap { display: grid; justify-items: center; }
.iphone {
  --w: 320px; width: var(--w); aspect-ratio: 9 / 19.5; padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .17);
  background: linear-gradient(145deg, #2b2b2d, #121213 40%, #1d1d1f 70%, #0b0b0c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #050505, 0 50px 120px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .9);
  position: relative;
}
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a2c; }
.iphone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 calc(var(--w) * .2) 0 #2a2a2c; }
.iphone::after { right: -3px; top: 28%; height: 14%; }
.iphone .screen {
  position: relative; height: 100%; border-radius: calc(var(--w) * .14); background: #000; overflow: hidden;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto; justify-items: center;
  padding: 0 calc(var(--w) * .055) calc(var(--w) * .03); font-size: calc(var(--w) / 26);
}
.iphone .island { position: absolute; top: calc(var(--w) * .033); left: 50%; width: 31%; height: calc(var(--w) * .088); transform: translateX(-50%); border-radius: 99px; background: #000; box-shadow: 0 0 0 1px #111; z-index: 2; }
.iphone .sbar { width: 100%; display: flex; justify-content: space-between; align-items: center; height: calc(var(--w) * .15); padding: 0 .9em 0 1.3em; }
.iphone .sbar .clock { font: 600 1.15em/1 var(--text); letter-spacing: -.01em; }
.iphone .sbar .sb { display: flex; align-items: center; gap: .35em; color: var(--fg); }
.iphone .sbar svg { height: .78em; width: auto; fill: currentColor; }
.iphone .sbar svg:last-child { height: .9em; }
.iphone .app-head { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: .4em; }
.iphone .app-head .wm { font: 600 1em/1 var(--display); letter-spacing: .34em; }
.iphone .app-chip { font: 500 .62em/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: .9em 1.1em; border-radius: 99px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.iphone .app-chip b { color: var(--fg); font-weight: 500; }
.iphone .mini-orb { width: 100%; height: 100%; min-height: 0; align-self: center; }
.iphone .caps { width: 100%; display: grid; justify-items: center; gap: .55em; text-align: center; min-height: 9.6em; align-content: start; }
.iphone .caps .state { font: 500 .62em/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: .7em; }
.iphone .caps .state::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--fg); opacity: .9; }
.iphone .p-you { margin: 0; font-size: .82em; line-height: 1.4; color: var(--faint); min-height: 1.4em; transition: opacity .6s var(--ease); }
.iphone .p-oya-box { width: 100%; max-height: calc(1.4em * 4.2); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 1.05em; }
.iphone .p-oya { margin: 0; line-height: 1.4; color: var(--fg); transition: color .6s, opacity .5s var(--ease); }
.iphone .p-stat { font: 500 .6em/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: .9em 0 2.8em; }
.iphone .p-stat b { color: var(--fg); font-weight: 500; }
.iphone .p-dock { position: relative; display: grid; place-items: center; }
.iphone .mini-call { width: 4.2em; height: 4.2em; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #000; position: relative; }
.iphone .mini-call svg { width: 1.35em; height: 1.35em; }
.iphone .p-tx { position: absolute; left: calc(100% + 2.6em); top: 50%; width: 2.9em; height: 2.9em; margin-top: -1.45em; border-radius: 50%; display: grid; place-items: center; color: var(--dim); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.iphone .p-tx svg { width: 1.15em; height: 1.15em; }
.iphone .p-timer { font: 500 .6em/1 var(--mono); letter-spacing: .14em; color: var(--faint); margin: 2.6em 0 1.6em; }
.iphone .home-bar { position: absolute; left: 32%; bottom: calc(var(--w) * .025); width: 36%; height: .3em; border-radius: 99px; background: rgba(255, 255, 255, .55); z-index: 2; }
/* The live app sits between the status bar and the home bar; the static
   fallback underneath shows until it reports ready */
/* The real app, laid out at an iPhone's own width (393 pt) and scaled down to
   the frame by site.js, so text and controls keep true proportions */
.iphone .live { position: absolute; left: 0; top: calc(var(--w) * .15); width: 393px; height: 760px; transform-origin: 0 0; border: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.iphone .fallback { display: contents; }
/* Crossfade: the live app fades up over the static frame, which then fades
   out and stops painting (visibility flips once the fade is done) */
.iphone .fallback > * { transition: opacity .5s var(--ease) .25s, visibility 0s .75s; }
.iphone.live-ready .live { opacity: 1; }
.iphone.live-ready .fallback > * { opacity: 0; visibility: hidden; }
.notes { display: grid; }
.notes .note { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: opacity .4s; }
.notes .note:first-child { border-top: 1px solid var(--line); }
.notes .note p { margin: 0; color: var(--dim); }
.notes .note b { display: block; color: var(--fg); font: 500 18px/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.notes .note.on .eyebrow { color: var(--fg); }
.notes.playing .note:not(.on) { opacity: .45; }

/* ── Languages ───────────────────────────────────────── */
.langs { border-top: 1px solid var(--line); }
.lang-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; align-items: baseline; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); }
.lang-row .name { font: 500 clamp(36px, 6.4vw, 84px)/1 var(--display); letter-spacing: -.04em; color: var(--ghost); transition: color .5s var(--ease); }
.lang-row:hover .name, .lang-row.on .name { color: var(--fg); }
.lang-row .hi { font-size: 18px; color: var(--dim); }
.lang-row .voices { text-align: right; color: var(--faint); }

/* ── Teasers ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: start; }
.facts { display: grid; }
.fact { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { border-top: 1px solid var(--line); }
.fact b { display: block; font: 500 18px/1.3 var(--display); margin-bottom: 4px; }
.fact p { margin: 0; color: var(--dim); }
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.road .stage { padding: 26px 22px 0 0; border-right: 1px solid var(--line); min-height: 200px; display: grid; align-content: start; gap: 10px; }
.road .stage:last-child { border-right: 0; }
.road .stage + .stage { padding-left: 22px; }
.road .stage b { font: 500 22px/1.15 var(--display); letter-spacing: -.02em; }
.road .stage p { margin: 0; color: var(--dim); font-size: 15px; }
.road .stage:not(.here) { color: var(--dim); }
.here-tag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 4px 6px; border-radius: 3px; vertical-align: middle; }
.numbers { display: flex; flex-wrap: wrap; gap: 48px; }
.numbers strong { display: block; font: 300 clamp(44px, 6vw, 72px)/1 var(--display); letter-spacing: -.04em; }
.numbers strong small { font: 500 13px var(--mono); letter-spacing: .12em; color: var(--dim); margin-left: 6px; }

/* ── Code ────────────────────────────────────────────── */
.code { position: relative; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
pre {
  margin: 0; padding: 26px 24px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 400 13px/1.7 var(--mono); color: var(--dim); overflow-x: auto; white-space: pre; tab-size: 2;
}
pre .k { color: var(--fg); } pre .c { color: var(--faint); } pre .s { color: #cfcfcf; }
.copy {
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: none; border: 0;
  padding: 7px 9px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: color .2s, background .2s;
}
.copy:hover { color: var(--fg); background: var(--raise); }
.copy.done { color: var(--bg); background: var(--fg); box-shadow: none; }
code { font: 400 .9em/1 var(--mono); color: var(--fg); background: var(--raise); padding: .15em .4em; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
pre code { all: unset; }

/* ── Docs layout ─────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-bottom: clamp(88px, 10vw, 140px); }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; max-height: calc(100vh - var(--nav-h) - 64px); overflow-y: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc summary { list-style: none; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--faint); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-color: var(--fg); }
.doc { min-width: 0; }
.doc > section { padding: 0 0 clamp(56px, 7vw, 88px); border-top: 0; }
.doc > section + section { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.doc h3 { margin: 40px 0 14px; }
.doc .eyebrow.sec { display: block; margin-bottom: 14px; }
.doc p, .doc li { color: var(--dim); max-width: 68ch; }
.doc p strong, .doc li strong { color: var(--fg); font-weight: 500; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .code { margin: 24px 0; }
.table { width: 100%; overflow-x: auto; margin: 24px 0; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
td:first-child { color: var(--fg); white-space: nowrap; }
td code { white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
.callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--dim); max-width: 68ch; }
.callout b { color: var(--fg); font-weight: 500; }

/* Binary frame diagram */
.frame { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(0, 4fr); margin: 24px 0 10px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); }
.frame div { padding: 18px 16px; display: grid; gap: 6px; }
.frame div + div { border-left: 1px solid var(--line-strong); background: repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px); }
.frame b { font: 500 15px/1.2 var(--display); }

/* Turn lifecycle */
.lifecycle { list-style: none; margin: 28px 0; padding: 0; display: grid; position: relative; }
.lifecycle li { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 0 0 22px; margin: 0; max-width: none; }
.lifecycle li::before { content: ""; position: absolute; left: 36px; top: 26px; bottom: 0; width: 1px; background: var(--line-strong); }
.lifecycle li:last-child::before { display: none; }
.lifecycle .dir { justify-self: center; align-self: start; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--dim); background: var(--bg); position: relative; }
.lifecycle .dir.down { background: var(--fg); color: var(--bg); box-shadow: none; }
.lifecycle li > div { padding-top: 2px; }
.lifecycle li > div p { margin: 4px 0 0; }

/* Voices */
.voices-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 24px 0; }
.voices-grid > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.voices-grid > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.voices-grid h4 { margin: 0 0 12px; font: 500 18px/1.2 var(--display); }
.voices-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.voices-grid li { margin: 0; display: flex; justify-content: space-between; gap: 8px; color: var(--fg); }
.voices-grid li span { font: 500 10px/1.8 var(--mono); letter-spacing: .12em; color: var(--faint); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 500 18px/1.35 var(--display); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; }

/* ── Roadmap page ────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principles > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.principles > div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.principles b { display: block; font: 500 19px/1.3 var(--display); margin-bottom: 6px; }
.principles p { margin: 0; color: var(--dim); }
/* Public roadmap: four horizons, left to right */
.horizons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.horizons > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; gap: 12px; padding: 22px 24px 8px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.horizons > li:first-child { padding-left: 0; border-left: 0; }
.horizons > li.now { border-top-color: var(--fg); }
.horizons > li > .eyebrow { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.horizons > li.now > .eyebrow { color: var(--fg); }
.horizons h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; }
.horizons > li:not(.now) h3 { color: var(--dim); }
.horizons > li > p { margin: 0; color: var(--dim); font-size: 15px; }
.horizons ul { list-style: none; margin: 10px 0 0; padding: 0; }
.horizons ul li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.horizons > li.now ul li { color: var(--fg); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.roles > div { border-top: 1px solid var(--fg); padding-top: 18px; }
.roles b { display: block; font: 500 22px/1.2 var(--display); margin-bottom: 8px; }
.roles p { margin: 0; color: var(--dim); }

/* ── Closing and footer ──────────────────────────────── */
.closing { text-align: center; padding: clamp(110px, 16vw, 200px) 0; }
.closing .eyebrow:first-child { display: block; margin-bottom: clamp(20px, 2.4vw, 28px); }
.closing h2 { font-size: clamp(88px, 12vw, 168px); letter-spacing: -.05em; line-height: 1; }
/* Clear the "y" descender before the next line */
.closing .meaning { margin: clamp(28px, 3.4vw, 44px) auto 0; font: 400 clamp(19px, 2vw, 24px)/1.4 var(--display); letter-spacing: -.01em; color: var(--dim); }
.closing .meaning span { color: var(--fg); }
.closing .cta { margin-top: clamp(32px, 3.6vw, 44px); }
.closing .fine { margin: 28px 0 0; color: var(--faint); }
.footer { border-top: 1px solid var(--line); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a:hover { color: var(--fg); }

/* ── Voice program page ──────────────────────────────── */
.vp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: vp; }
.vp-steps li { counter-increment: vp; padding: 26px 22px 28px 0; display: grid; gap: 10px; align-content: start; }
.vp-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.vp-steps li::before { content: counter(vp); font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.vp-steps b { font: 500 20px/1.25 var(--display); letter-spacing: -.01em; }
.vp-steps p { margin: 0; color: var(--dim); font-size: 15px; }
/* Same columns and gutter as .head, so the list lines up with the intro paragraph above */
.vp-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; }
.vp-pay .amount { border-radius: 20px; padding: 28px; background: var(--fg); color: var(--bg); display: grid; align-content: space-between; gap: 40px; min-height: 260px; }
.vp-pay .amount .eyebrow { color: rgba(0, 0, 0, .6); }
.vp-pay .amount b { display: block; font: 500 clamp(64px, 9vw, 112px)/.9 var(--display); letter-spacing: -.05em; }
.vp-pay .amount p { margin: 12px 0 0; color: rgba(0, 0, 0, .66); }
.vp-pay dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.vp-pay dl > div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 2fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.vp-pay dt { font: 500 11px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.vp-pay dd { margin: 0; }
.vp-asks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.vp-asks > div { border-radius: 20px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.vp-asks h3 { margin: 0 0 14px; font: 500 22px/1.2 var(--display); }
.vp-asks ul { list-style: none; margin: 0; padding: 0; }
.vp-asks li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; color: var(--dim); }
.vp-asks li b { color: var(--fg); font-weight: 500; }
.vp-asks li::before { content: ""; position: absolute; left: 2px; top: 23.5px; width: 10px; height: 2px; background: var(--fg); }
.vp-asks .never li::before { width: 11px; top: 23.5px; transform: rotate(45deg); }
.vp-asks .never li::after { content: ""; position: absolute; left: 2px; top: 23.5px; width: 11px; height: 1.5px; background: var(--fg); transform: rotate(-45deg); }
.vp-faq { max-width: 820px; }
.page-hero h1 em { font-style: normal; color: var(--faint); }
.page-hero .vp-line { margin: clamp(56px, 8vw, 96px) 0 0; max-width: 30ch; font: 400 clamp(22px, 2.6vw, 32px)/1.25 var(--display); letter-spacing: -.02em; color: var(--fg); }
.vp-pledge { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.vp-pledge li { padding: 20px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.vp-pledge li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.vp-pledge .eyebrow { margin: 0; color: var(--fg); }
.page-hero .vp-pledge p { margin: 0; max-width: 34ch; font-size: 15px; color: var(--dim); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Tablets and phones ──────────────────────────────── */
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: sticky; top: var(--nav-h); z-index: 5; max-height: none; overflow: visible; margin: 0 calc(var(--pad) * -1) 40px; padding: 0 var(--pad); background: rgba(0, 0, 0, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .toc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg); transition: transform .3s var(--ease); }
  .toc details[open] summary::after { transform: rotate(225deg); }
  .toc ol { margin: 0 0 16px; max-height: 60vh; overflow-y: auto; }
  .voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .horizons { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .horizons > li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vp-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 961px) {
  .toc details > summary { pointer-events: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav .links { gap: 18px; }
  .nav .links a.hide-sm { display: none; }
  .head, .demo, .split { grid-template-columns: minmax(0, 1fr); }
  .iphone { --w: min(300px, 78vw); }
  .notes .note { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lang-row { grid-template-columns: minmax(0, 1fr) auto; }
  .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid li, .next-grid li:first-child { padding: 20px 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .next-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .next-grid li:nth-child(even) { padding-left: 16px; }
  .next-grid li:last-child { border-bottom: 0; }
  .next-grid li:last-child:nth-child(odd) { border-right: 0; }
  .next-grid b { font-size: 22px; }
  .greet { height: 48px; gap: 12px; padding: 0 16px 0 14px; }
  .greet .say { font-size: 18px; }
  .lang-row .voices { display: none; }
  .lang-row.is-soon { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name when" "hi hi"; gap: 6px 16px; align-items: center; }
  .lang-row.is-soon .name { grid-area: name; }
  .lang-row.is-soon .hi { grid-area: hi; }
  .lang-row.is-soon .when { grid-area: when; }
  .road { grid-template-columns: minmax(0, 1fr); }
  .road .stage, .road .stage + .stage { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .horizons { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .horizons > li, .horizons > li:first-child { padding: 22px 0 18px; border-left: 0; }
  .vp-pay, .vp-asks { grid-template-columns: minmax(0, 1fr); }
  .vp-pay .amount { min-height: 0; }
  .vp-pledge { grid-template-columns: minmax(0, 1fr); }
  .vp-pledge li, .vp-pledge li + li { padding: 16px 0; border-left: 0; }
  .vp-pledge li + li { border-top: 1px solid var(--line); }
  pre { font-size: 12px; padding: 20px 18px; }
}
@media (max-width: 520px) {
  .nav .links a.eyebrow { display: none; }
  .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .voices-grid > div + div { padding-left: 0; border-left: 0; }
  .vp-steps { grid-template-columns: minmax(0, 1fr); }
  .vp-steps li, .vp-steps li + li { padding: 22px 0; border-left: 0; }
  .vp-steps li + li { border-top: 1px solid var(--line); }
  .vp-pay dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vp-asks > div { padding: 22px 20px; }
  .frame { grid-template-columns: minmax(84px, 1fr) minmax(0, 2fr); }
  .lifecycle li { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .lifecycle li::before { left: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
