/* Svara's handheld look, the same values as Theme.swift: warm paper and soft ink, crisp outlines
   with hard shadows and no blur, keys that press onto a ledge, monospaced legends, dotted rules,
   square status lights, and one orange accent kept for what's live. The 8-bit characters
   (pixel.js) are the only illustrations; the sticky-note pastels the only other colours. */

/* Schibsted Grotesk (SIL Open Font License 1.1, see fonts/OFL.txt), served from svara.bot so the page
   makes no requests to other servers. One variable file per alphabet covers every weight. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --paper: #F6F5F2;
  --ink: #1C1C1D;
  --edge: #1C1C1D;
  --well: #EAE8E1;
  --screen: #1C1C1D;
  --on-screen: #F6F5F2;
  --drop: #1C1C1D;
  --ledge: #000;
  --signal: #E35C21;
  --on-ink: #F6F5F2;
  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --ink-faint: color-mix(in srgb, var(--ink) 50%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --select: #BCD6FB;
  --note-yellow: #FCE88F; --note-pink: #FAC9D4; --note-blue: #BFDBF7;
  --note-green: #C9E8B8; --note-orange: #FCD1A1; --note-purple: #DBCFF5;
  --note-ink: #2A2722;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --case: 0 0 0 2px var(--edge), 5px 5px 0 2px var(--drop);
  --case-sm: 0 0 0 1.5px var(--edge), 3px 3px 0 1.5px var(--drop);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D1D1F; --ink: #EDECE8; --edge: #858587; --well: #131314; --screen: #0A0A0B;
    --drop: #000; --ledge: #949390; --signal: #F77836; --on-ink: #1D1D1F; --select: #34507A;
    --note-yellow: #DECC7E; --note-pink: #DCB1BA; --note-blue: #A8C1D9;
    --note-green: #B1CCA2; --note-orange: #DEB88E; --note-purple: #C1B6D7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1D1D1F; --ink: #EDECE8; --edge: #858587; --well: #131314; --screen: #0A0A0B;
  --drop: #000; --ledge: #949390; --signal: #F77836; --on-ink: #1D1D1F; --select: #34507A;
  --note-yellow: #DECC7E; --note-pink: #DCB1BA; --note-blue: #A8C1D9;
  --note-green: #B1CCA2; --note-orange: #DEB88E; --note-purple: #C1B6D7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The 8-bit faces reach above their box (ears, antennae, balloons), as they do in the app. */
svg[viewBox="0 0 100 100"] { overflow: visible; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(46px, 6.6vw, 100px); font-weight: 900; letter-spacing: -0.05em; line-height: .92; }
h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; line-height: .98; }
h3 { font-size: clamp(26px, 2.7vw, 34px); letter-spacing: -0.03em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The app's Legend: small monospaced capitals, used where the app uses them (window bars, card heads). */
.legend { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.legend.dim { color: var(--ink-faint); }
.dots { height: 2px; background: radial-gradient(circle, var(--rule) 1px, transparent 1.3px) 0 50% / 6px 2px repeat-x; }

/* Keycaps: paper keys on a ledge, with the shortcut in monospace. */
kbd, .key {
  display: inline-flex; align-items: center; justify-content: center; gap: .2em;
  min-width: 1.9em; height: 1.7em; padding: 0 .45em; border-radius: .35em;
  font: 600 .78em/1 var(--mono); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--edge);
  box-shadow: 0 .14em 0 var(--edge); vertical-align: .1em; white-space: nowrap; margin-bottom: .14em;
}

/* Keys: the app's KeyButtonStyle. The face presses down onto its ledge. */
.btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px;
  border-radius: 10px; border: 2px solid var(--edge); text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 17px; background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 0 var(--edge); margin-bottom: 4px; transition: transform .06s ease-out, box-shadow .06s ease-out, background .12s;
}
.btn:hover, .pill-btn:hover { background: var(--well); }
.btn:active, .pill-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn-ink, .pill-btn:not(.quiet) { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 0 var(--ledge); }
.btn-ink:hover, .pill-btn:not(.quiet):hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.btn-ink:active, .pill-btn:not(.quiet):active { box-shadow: 0 1px 0 var(--ledge); }
.btn-sm, .pill-btn { height: 36px; padding: 0 14px; font-size: 15px; border-radius: 8px; border-width: 1.5px; box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; }
.btn-ink.btn-sm, .pill-btn:not(.quiet) { box-shadow: 0 3px 0 var(--ledge); }
.btn svg { width: 18px; height: 18px; }
.pill-btn[disabled], .btn[disabled] { opacity: .4; cursor: default; transform: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink-soft); text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--rule); font-size: 15px; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }

/* The context chip: a square light and a label on the well. */
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .28em .65em; border-radius: .4em; background: var(--well); color: var(--ink); font-size: .9em; white-space: nowrap; }
.chip::before { content: ""; width: .38em; height: .38em; background: var(--ink); flex: none; }
.chip svg { display: none; }
.chip.live::before { background: var(--signal); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.top .btn { margin-bottom: 3px; }
@media (max-width: 920px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* A window bar: three square lights, a legend, and room for more. */
.case-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--edge); background: var(--paper); }
.case-bar .legend.dim { margin-left: auto; }
.lights { display: flex; gap: 6px; flex: none; }
.lights i { width: 11px; height: 11px; border: 1.5px solid var(--edge); background: var(--paper); }
.lights i:first-child { background: var(--ink); }

/* Hero */
.hero { padding: clamp(28px, 4vw, 52px) 0 clamp(64px, 8vw, 110px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { max-width: 10em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .req { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }
@media (max-width: 960px) { .hero-copy { grid-template-columns: 1fr; } }

/* The yard: the eight characters on a desktop, playing. */
.yard { margin-top: clamp(28px, 3.4vw, 44px); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--case); position: relative; }
.yard-floor {
  position: relative; height: clamp(230px, 23vw, 300px); overflow: hidden; touch-action: pan-y;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--ink) 9%, transparent) 1.2px, transparent 1.5px) 0 0 / 22px 22px,
    var(--well);
}
.yard-floor::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--ground, 34px); background: var(--paper); border-top: 2px solid var(--edge); }
.pal {
  position: absolute; left: 0; bottom: var(--ground, 34px); width: var(--pal, 104px); height: var(--pal, 104px);
  border: 0; padding: 0; background: none; z-index: 2;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.pal:active { cursor: grabbing; }
.pal svg { width: 100%; height: 100%; pointer-events: none; }
.pal.picked { z-index: 4; }
.pal:focus-visible { outline-offset: 0; }
.yard-say { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-top: 2px solid var(--edge); min-height: 92px; flex-wrap: wrap; }
.yard-say .mini { width: 44px; height: 44px; flex: none; }
.yard-say .say { flex: 1 1 320px; min-width: 0; }
.yard-say .say p { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.yard-say .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.yard-say.fresh .say { animation: type-in .35s steps(4); }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } }

/* The companion: your character, following you down the page like the app's floating avatar. */
.buddy {
  position: fixed; right: clamp(12px, 3vw, 36px); bottom: clamp(12px, 3vw, 32px); z-index: 40; width: 76px; height: 76px;
  border: 0; background: none; padding: 0; opacity: 0; translate: 0 30px; pointer-events: none; transition: opacity .25s, translate .3s steps(4);
}
.buddy.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.buddy svg { width: 100%; height: 100%; }
@media (max-width: 560px) { .buddy { width: 58px; height: 58px; } }

/* How it works: the scene list beside the desktop. */
.demo-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } .demo-grid .scenes { order: 2; } }
.scenes { display: grid; gap: 12px; }
.scenes button {
  position: relative; overflow: hidden; text-align: left; display: grid; gap: 4px; padding: 14px 16px 16px; border-radius: 12px;
  border: 0; background: var(--paper); box-shadow: 0 0 0 1.5px var(--rule); transition: box-shadow .12s, transform .06s;
}
.scenes button b { font-size: 18px; letter-spacing: -0.015em; }
.scenes button span:not(.bar) { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.scenes button:hover { box-shadow: 0 0 0 1.5px var(--edge); }
.scenes button[aria-pressed="true"] { box-shadow: var(--case-sm); }
.scenes button .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--ink); }
.scenes button[aria-pressed="true"] .bar { animation: fill var(--dur, 9s) steps(24) forwards; }
.scenes.paused button .bar { animation: none; width: 0; }
@keyframes fill { to { width: 100%; } }

/* The demo stage: a small Mac desktop drawn in HTML. Everything inside is sized in em, and the em
   follows the stage's width, so it scales as one picture. */
.stage {
  container-type: inline-size; position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 10%, transparent) 1.1px, transparent 1.4px) 0 0 / 18px 18px, var(--well);
  box-shadow: var(--case); margin: 2px 7px 7px 2px;
}
.stage-inner { position: absolute; inset: 0; font-size: 1.6cqw; }
.menubar { position: absolute; inset: 0 0 auto; height: 2.3em; display: flex; align-items: center; gap: 1.6em; padding: 0 1.4em;
  font-size: .95em; background: var(--paper); border-bottom: 2px solid var(--edge); z-index: 2; }
.menubar b { font-weight: 800; min-width: 3em; }
.menubar .right { margin-left: auto; display: flex; gap: 1.2em; align-items: center; color: var(--ink-soft); font-family: var(--mono); font-size: .9em; }
.menubar .mb-svara { width: 1.5em; height: 1.5em; }

.app-win { position: absolute; left: 4.5%; top: 11%; width: 64%; height: 76%; background: var(--paper); border-radius: .7em;
  box-shadow: 0 0 0 .14em var(--edge), .35em .35em 0 .14em var(--drop); padding: 1em 1.6em; display: none; flex-direction: column; overflow: hidden; }
.app-win.on { display: flex; }
.app-win .lights { margin-bottom: 1em; gap: .4em; }
.app-win .lights i { width: .75em; height: .75em; border-width: .1em; }
.app-win .field { display: flex; gap: .6em; padding: .45em 0; border-bottom: 1px dotted var(--rule); font-size: .95em; }
.app-win .field span:first-child { color: var(--ink-faint); width: 4.3em; }
.app-win .body { padding-top: 1.1em; font-size: 1.02em; line-height: 1.55; }
.app-win .body p + p { margin-top: .8em; }
.swap { position: relative; display: block; }
.swap .old, .swap .new { transition: opacity .25s steps(3); }
.swap .old.sel { background: var(--select); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.swap .new { position: absolute; inset: 0; opacity: 0; }
.app-win.done .swap .old { opacity: 0; }
.app-win.done .swap .new { opacity: 1; }
.app-win.done .swap .new { animation: landed 1.4s steps(2) 1; }
@keyframes landed { 0%, 60% { background: color-mix(in srgb, var(--signal) 18%, transparent); } 100% { background: transparent; } }

.urlbar { flex: none; margin: -.2em 0 1em; padding: .35em .8em; border-radius: .4em; background: var(--well); font: .8em var(--mono); color: var(--ink-soft); text-align: center; }
.article h5 { margin: 0; font-size: 1.6em; letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
.article .by { font: .75em var(--mono); color: var(--ink-faint); margin: .6em 0 .9em; text-transform: uppercase; letter-spacing: .05em; }
.article p { font-size: .95em; color: var(--ink-soft); line-height: 1.55; }
.article p + p { margin-top: .6em; }

.chat-win .chan { font-weight: 800; padding-bottom: .5em; border-bottom: 2px solid var(--edge); }
.chat-win .msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .7em; padding: .8em 0; font-size: .95em; }
.msg { display: grid; grid-template-columns: 2.1em 1fr; gap: .6em; }
.msg .av { width: 2.1em; height: 2.1em; border-radius: .35em; background: var(--note-blue); display: grid; place-items: center; font-weight: 800; font-size: .85em; color: var(--note-ink); box-shadow: 0 0 0 1.5px var(--edge); }
.msg .av.me { background: var(--note-yellow); }
.msg b { font-weight: 700; }
.msg b small { font-weight: 400; color: var(--ink-faint); margin-left: .4em; font-family: var(--mono); font-size: .8em; }
.compose { flex: none; border: .12em solid var(--edge); border-radius: .5em; padding: .6em .8em; min-height: 2.6em; font-size: .95em; color: var(--ink-faint); background: var(--well); }
.compose.filled { color: var(--ink); }

.avatar-dock { position: absolute; right: 3%; bottom: 4%; width: 10%; aspect-ratio: 1; transition: opacity .2s steps(2); z-index: 3; }
.avatar-dock svg { width: 100%; height: 100%; }
.stage.open .avatar-dock { opacity: 0; }

/* Svara's window, as the app draws it: title bar, dotted rule, the prompt well, chips, keys. */
.ask { position: absolute; right: 3.5%; bottom: 5%; width: 57%; background: var(--paper); border-radius: 1em; padding: .9em 1.1em 1em;
  box-shadow: 0 0 0 .14em var(--edge), .35em .35em 0 .14em var(--drop); z-index: 4;
  transform: translateY(1.5em); opacity: 0; transition: transform .2s steps(3), opacity .15s steps(2); pointer-events: none; }
.stage.open .ask { transform: none; opacity: 1; }
.ask-bar { display: flex; align-items: center; gap: .6em; padding-bottom: .6em; border-bottom: .14em dotted var(--rule); }
.ask-bar .mini { width: 1.7em; height: 1.7em; }
.ask-bar .legend { font-size: .72em; }
.ask-bar .legend.r { margin-left: auto; }
.ask-bar .tkey { font-size: .8em; width: 1.9em; height: 1.9em; display: grid; place-items: center; border: .13em solid var(--edge); border-radius: .4em; box-shadow: 0 .15em 0 var(--edge); }
.prompt { display: flex; align-items: center; gap: .5em; margin-top: .75em; padding: .35em .4em .35em .8em; border-radius: .7em; background: var(--well); box-shadow: inset 0 0 0 .13em var(--edge), inset 0 .3em 0 color-mix(in srgb, var(--ink) 6%, transparent); font-size: 1.2em; min-height: 2.4em; }
.prompt .pt { flex: 1; min-width: 0; }
.caret { display: inline-block; width: .12em; height: 1.05em; background: var(--signal); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt .ikey, .prompt .send { flex: none; width: 1.6em; height: 1.6em; border-radius: .35em; display: grid; place-items: center; border: .1em solid var(--edge); background: var(--paper); box-shadow: 0 .12em 0 var(--edge); color: var(--ink); }
.prompt .ikey svg, .prompt .send svg { width: .8em; height: .8em; }
.prompt .send { color: var(--ink-faint); border-color: var(--rule); box-shadow: 0 .12em 0 var(--rule); }
.stage.sent .prompt .send { background: var(--ink); color: var(--on-ink); border-color: var(--edge); box-shadow: 0 .12em 0 var(--ledge); }
.ask-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .7em; font-size: .78em; }
.answer { margin-top: .7em; font-size: 1em; line-height: 1.5; min-height: 6.6em; white-space: pre-line; }
.thinking { display: inline-flex; gap: .3em; color: var(--ink-faint); }
.thinking i { width: .45em; height: .45em; background: currentColor; animation: dot 1s infinite steps(2); }
.thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 50% { opacity: .2; } }
.ask-foot { display: flex; justify-content: flex-end; align-items: center; gap: .55em; margin-top: .6em; padding-top: .7em; border-top: .14em dotted var(--rule); font-size: .82em; }
.ask-foot .k { padding: .35em .7em; border-radius: .45em; border: .13em solid var(--edge); background: var(--paper); box-shadow: 0 .2em 0 var(--edge); font-weight: 600; transition: transform .06s, box-shadow .06s; }
.ask-foot .k i { font: normal .8em var(--mono); opacity: .55; margin-left: .3em; }
.ask-foot .k.ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 .2em 0 var(--ledge); }
.ask-foot .k.press { transform: translateY(.15em); box-shadow: 0 .05em 0 var(--edge); background: var(--signal); color: #fff; }
.stage-toast { position: absolute; left: 50%; top: 14%; translate: -50% -.5em; opacity: 0; background: var(--screen); color: var(--on-screen); padding: .5em 1em; border-radius: .5em; font-size: .9em; transition: opacity .15s steps(2), translate .15s steps(2); z-index: 5; box-shadow: .25em .25em 0 rgba(0,0,0,.35); }
.stage-toast.show { opacity: 1; translate: -50% 0; }

.keys-overlay { position: absolute; left: 50%; top: 46%; translate: -50% -50%; display: flex; gap: .6em; font-size: 2.4em; opacity: 0; transition: opacity .12s steps(2); pointer-events: none; z-index: 6; }
.keys-overlay .key { height: 2em; min-width: 2em; font-size: .8em; border-width: .08em; box-shadow: 0 .16em 0 var(--edge); transition: transform .06s, box-shadow .06s; }
.stage.keys .keys-overlay { opacity: 1; }
.stage.keys-down .keys-overlay .key { transform: translateY(.13em); box-shadow: 0 .03em 0 var(--edge); }

/* Sections */
section { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.rule-top { position: relative; }
.rule-top::before { content: ""; position: absolute; top: 0; left: max(16px, 50% - 590px); right: max(16px, 50% - 590px); height: 3px;
  background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.6px) 0 50% / 9px 3px repeat-x; opacity: .35; }

/* A case: the app's handheldSurface. */
.panel { background: var(--paper); border-radius: 14px; box-shadow: var(--case); padding: 22px; position: relative; margin: 2px 7px 7px 2px; }
.panel-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.panel-label .mini { width: 22px; height: 22px; }
.panel-label .chip { font: 13px/1.3 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.hint { font-size: 14px; color: var(--ink-faint); margin-top: 14px; }

/* The copy-paste tax */
.tax { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--edge); }
.tax-col { padding: 28px 32px 8px 0; }
.tax-col + .tax-col { padding-left: 32px; border-left: 2px dotted var(--rule); }
.tax-col h3 { font-size: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tax-col h3 span { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 9px 0 9px 36px; border-bottom: 1px dotted var(--rule); font-size: 16px; color: var(--ink-soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--ink-faint); border: 1.5px solid var(--rule); border-radius: 4px; }
.steps li.now { color: var(--ink); }
.steps li.now::before { color: var(--on-ink); background: var(--signal); border-color: var(--signal); }
.steps li.past { color: var(--ink); }
.steps li.past::before { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.steps li .sw { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--signal); margin-left: 6px; }
.tax-foot { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.tax-result { font-size: 16px; color: var(--ink-soft); }
.tax-result b { color: var(--ink); }
@media (max-width: 760px) { .tax { grid-template-columns: 1fr; } .tax-col + .tax-col { padding-left: 0; border-left: 0; } }

/* A day with Svara: a time rail beside the chapters. */
.day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 56px; }
.rail { position: sticky; top: 104px; align-self: start; list-style: none; margin: 0; padding: 0; border-left: 2px dotted var(--rule); }
.rail a { display: grid; gap: 1px; padding: 9px 0 9px 18px; margin-left: -2px; border-left: 4px solid transparent; text-decoration: none; color: var(--ink-faint); font-size: 14px; line-height: 1.3; }
.rail a b { font: 600 15px var(--mono); }
.rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; padding: 0 0 clamp(88px, 10vw, 128px); }
.chapter:last-child { padding-bottom: 0; }
.chapter .when { display: none; font: 600 14px var(--mono); color: var(--ink-soft); margin-bottom: 10px; }
.chapter .story p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.chapter .story .value { margin-top: 20px; padding-top: 14px; border-top: 2px dotted var(--rule); font-size: 15px; color: var(--ink-soft); }
.chapter .story .value b { color: var(--ink); font-weight: 700; }
@media (max-width: 1080px) { .chapter { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; } .rail { display: none; } .chapter .when { display: block; } }

/* Morning brief: the app's dark toast. */
.notif { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--screen); color: var(--on-screen); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--on-screen) 16%, transparent), 5px 5px 0 rgba(0,0,0,.3); }
.notif .ic { width: 44px; height: 44px; flex: none; }
.notif .txt { flex: 1; font-size: 15px; line-height: 1.35; color: color-mix(in srgb, var(--on-screen) 75%, transparent); }
.notif .txt b { display: block; font-size: 16px; color: var(--on-screen); }
.notif .pill-btn { background: var(--on-screen); color: #1C1C1D; border-color: var(--on-screen); box-shadow: 0 3px 0 #949390; }
.brief { margin-top: 18px; display: grid; gap: 16px; overflow: hidden; }
.brief[hidden] { display: none; }
.brief h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 6px; }
.brief ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-soft); }
.brief li { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--rule); }
.brief li:last-child { border-bottom: 0; }
.brief li time { flex: none; width: 3.4em; color: var(--ink); font: 600 14px var(--mono); padding-top: 2px; }

/* Selection actions over Safari */
.reader { display: grid; gap: 14px; }
.reader .page { padding: 18px 20px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--rule); font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.reader .page h5 { margin: 0 0 6px; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; font-weight: 800; }
.reader .page mark { background: var(--select); color: var(--ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.actions-row button { border: 1.5px solid var(--edge); background: var(--paper); padding: 5px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; transition: transform .06s, box-shadow .06s; }
.actions-row button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.actions-row button kbd { font-size: 10px; margin: 0 0 0 6px; height: auto; padding: 1px 3px; border: 0; box-shadow: none; background: none; color: var(--ink-faint); }
.actions-row button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: 0 3px 0 var(--ledge); }
.actions-row button[aria-pressed="true"] kbd { color: color-mix(in srgb, var(--on-ink) 60%, transparent); }
.out { margin-top: 14px; min-height: 7.5em; font-size: 16px; line-height: 1.5; white-space: pre-line; }
.out .ph { color: var(--ink-faint); }
.out-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 2px dotted var(--rule); }

/* Meeting */
.meet-stage[data-s] > div { display: none; }
.meet-stage[data-s="brief"] .m-brief, .meet-stage[data-s="live"] .m-live, .meet-stage[data-s="sum"] .m-sum { display: block; }
.m-brief .soon { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--signal); }
.m-brief h4 { font-size: 24px; margin-top: 6px; }
.people { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.people span { padding: 3px 10px; border-radius: 6px; background: var(--well); font-size: 14px; }
.last { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.last b { color: var(--ink); display: block; margin-bottom: 2px; }
.row-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.live-head { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.live-head .rec { width: 9px; height: 9px; background: var(--signal); animation: pulse 1.4s infinite steps(1); }
@keyframes pulse { 50% { opacity: .25; } }
.live-head .sp { margin-left: auto; text-transform: none; letter-spacing: 0; font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 14px; }
/* The app's square switch. */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 6px; background: var(--well); border: 1.5px solid var(--edge); position: relative; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--edge); transition: translate .12s ease-out; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { translate: 16px 0; background: var(--paper); box-shadow: none; }
.transcript { margin-top: 14px; height: 252px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; scrollbar-width: thin; }
.line { font-size: 15px; line-height: 1.45; animation: rise .2s steps(2); }
.line b { display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.line.you b { color: var(--signal); }
.line .tr { display: none; font-size: 14px; color: var(--ink-faint); font-style: italic; }
.transcript.translate .line .tr { display: block; }
@keyframes rise { from { opacity: 0; translate: 0 6px; } }
.m-sum h5 { margin: 14px 0 6px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.m-sum h5:first-child { margin-top: 0; }
.m-sum p { font-size: 15px; color: var(--ink-soft); }
.todo { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 5px 0; cursor: pointer; user-select: none; }
.todo input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 3px; border: 1.5px solid var(--edge); cursor: pointer; display: grid; place-items: center; }
.todo input:checked { background: var(--ink); }
.todo input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.todo input:checked + span { color: var(--ink-faint); text-decoration: line-through; }
.todo small { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; }

/* Dictation in a chat app */
.slack { padding: 0; overflow: hidden; }
.slack .chan { padding: 14px 20px; border-bottom: 2px solid var(--edge); font-weight: 800; display: flex; justify-content: space-between; }
.slack .chan span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); align-self: center; }
.slack .msgs { padding: 16px 20px; display: grid; gap: 14px; font-size: 15px; min-height: 200px; align-content: end; }
.slack .msg { grid-template-columns: 34px 1fr; gap: 10px; }
.slack .msg .av { width: 34px; height: 34px; border-radius: 7px; font-size: 14px; }
.slack .compose { margin: 0 20px 18px; padding: 10px 10px 10px 14px; border-radius: 10px; min-height: 48px; font-size: 15px; display: flex; gap: 10px; align-items: center; border-width: 2px; }
.slack .compose .t { flex: 1; }
.slack .compose .send-ic { width: 30px; height: 30px; border-radius: 7px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-faint); display: grid; place-items: center; flex: none; }
.slack .compose.filled .send-ic { background: var(--ink); color: var(--on-ink); border-color: var(--edge); box-shadow: 0 3px 0 var(--ledge); }
.slack .compose .send-ic svg { width: 14px; height: 14px; }
.hold-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.hold { touch-action: none; user-select: none; -webkit-user-select: none; border: 2px solid var(--edge); background: var(--paper); box-shadow: 0 5px 0 var(--edge); border-radius: 12px; padding: 13px 22px; font-size: 18px; font-weight: 800; margin-bottom: 5px; transition: transform .06s, box-shadow .06s; }
.hold.down { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); background: var(--ink); color: var(--on-ink); }
.listen-bar { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 12px; border-radius: 10px; background: #1C1C1D; color: #EDECE8; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .35; box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 4px 4px 0 rgba(0,0,0,.3); }
.listen-bar.on { opacity: 1; }
.listen-bar .dotrec { width: 9px; height: 9px; background: #F77836; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 4px; background: #F77836; height: 20%; }
.listen-bar.on .wave i { animation: wave 1.1s steps(4) infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.heard { margin-top: 14px; font-size: 15px; color: var(--ink-faint); min-height: 1.5em; }
.heard s { text-decoration-color: color-mix(in srgb, var(--ink-faint) 60%, transparent); }

/* Screen text */
.shot { position: relative; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; cursor: crosshair;
  background: #23324A; color: #F3F1EA; padding: 26px 28px 24px; aspect-ratio: 16 / 10; container-type: inline-size; box-shadow: var(--case); margin: 2px 7px 7px 2px; }
.shot .slide-title { font-size: 6.4cqw; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.shot .slide-title, .shot .slide-sub { display: block; width: fit-content; }
.shot .slide-sub { font-size: 2.6cqw; opacity: .7; margin-top: 1.2cqw; }
.shot ul { margin: 3.4cqw 0 0; padding: 0; list-style: none; display: grid; gap: 1.6cqw; font-size: 3cqw; }
.shot li::before { content: "■ "; opacity: .5; font-size: .6em; vertical-align: .2em; }
.shot .stamp { position: absolute; right: 3cqw; bottom: 2.6cqw; font: 2.2cqw var(--mono); opacity: .55; }
.shot.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); pointer-events: none; }
.marquee { position: absolute; border: 2px dashed #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 9999px rgba(0,0,0,.35); display: none; pointer-events: none; z-index: 2; }
.marquee.on { display: block; }
.shot .ocr.hit { background: rgba(247,120,54,.5); }
.ocr-result { margin-top: 16px; display: none; border-radius: 12px; box-shadow: var(--case-sm); padding: 14px 16px; margin-right: 5px; }
.ocr-result.on { display: block; animation: rise .2s steps(2); }
.ocr-result .t { font-size: 15px; white-space: pre-line; margin-top: 6px; }
.ocr-result .row-end { margin-top: 12px; }

/* Approval */
.approve .asks { font-size: 16px; }
.approve .card { margin-top: 16px; border-radius: 12px; box-shadow: var(--case-sm); padding: 18px; margin-right: 4px; }
.approve .card .what { display: flex; gap: 14px; align-items: flex-start; }
.cal { flex: none; width: 46px; border-radius: 7px; overflow: hidden; text-align: center; box-shadow: 0 0 0 1.5px var(--edge); background: var(--paper); }
.cal b { display: block; background: var(--signal); color: #fff; font: 700 10px var(--mono); padding: 3px 0; }
.cal span { display: block; font-size: 20px; font-weight: 800; padding: 2px 0 4px; }
.approve .card h4 { font-size: 17px; letter-spacing: -0.015em; }
.approve .card p { font-size: 15px; color: var(--ink-soft); }
.approve .tool { margin-top: 12px; padding-top: 10px; border-top: 1px dotted var(--rule); font: 13px var(--mono); color: var(--ink-faint); display: flex; gap: 8px; align-items: center; }
.approve .tool svg { width: 14px; height: 14px; }
.approve .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.approve .result { display: none; margin-top: 16px; font-size: 15px; color: var(--ink-soft); align-items: center; gap: 10px; justify-content: space-between; }
.approve[data-state] .acts { display: none; }
.approve[data-state] .result { display: flex; }
.approve-list, .chips-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.approve-list button, .chips-row button { border: 0; background: var(--well); padding: 5px 11px; border-radius: 6px; font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.approve-list button::before, .chips-row button::before { content: ""; width: 5px; height: 5px; background: var(--ink-faint); }
.approve-list button[aria-pressed="true"], .chips-row button:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.approve-list button[aria-pressed="true"]::before { background: var(--ink); }

/* Files: a Finder window with the selection, and what Svara does with it. */
.finder { padding: 0; overflow: hidden; }
.files { list-style: none; margin: 0; padding: 8px; font-size: 15px; min-height: 236px; }
.files li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.files li.sel { background: var(--select); }
.files li .ic { width: 22px; height: 26px; border: 1.5px solid var(--edge); border-radius: 3px; background: var(--note-blue); }
.files li .ic.pdf { background: var(--note-pink); }
.files li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .nm.new { animation: renamed .5s steps(3); font-weight: 600; }
.files li time { font: 12px var(--mono); color: var(--ink-soft); }
@keyframes renamed { from { clip-path: inset(0 100% 0 0); } }
.fi-ask { padding: 14px 16px 16px; border-top: 2px solid var(--edge); background: var(--paper); }
.fi-ask .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fi-out { margin-top: 12px; font-size: 15px; color: var(--ink-soft); min-height: 1.5em; }
.fi-out .card { margin-top: 4px; border-radius: 10px; box-shadow: var(--case-sm); padding: 14px; margin-right: 4px; }
.fi-out .card h4 { font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.fi-out .card .tool { margin-top: 8px; font: 13px var(--mono); color: var(--ink-faint); }
.fi-out .card .acts { justify-content: flex-end; margin-top: 12px; }

/* Search */
.search .field { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--well); box-shadow: inset 0 0 0 2px var(--edge); }
.search .field svg { width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
.search .field input { border: 0; background: none; outline: none; font-size: 20px; width: 100%; min-width: 0; }
.results { list-style: none; margin: 12px 0 0; padding: 0; min-height: 240px; }
.results li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 8px; border-radius: 8px; animation: rise .15s steps(2); }
.results li:first-child { background: var(--well); }
.results .ic { width: 34px; height: 34px; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--edge); display: grid; place-items: center; color: var(--ink); }
.results .ic svg { width: 18px; height: 18px; }
.results .r-title { font-size: 15px; font-weight: 700; display: block; }
.results .r-snip { font-size: 15px; color: var(--ink-soft); display: block; }
.results .why { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); display: block; margin-top: 3px; }
.results .why.meaning { color: var(--signal); }
.results mark { background: none; color: var(--ink); box-shadow: inset 0 -.45em 0 color-mix(in srgb, var(--signal) 28%, transparent); }
.results .empty { display: block; color: var(--ink-faint); font-size: 15px; padding: 12px 8px; background: none; }

/* Sticky notes */
.notes-wrap { background: var(--well); border-radius: 14px; padding: 22px; box-shadow: var(--case); margin: 2px 7px 7px 2px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.note {
  position: relative; aspect-ratio: 1 / .92; padding: 14px 14px 12px; border: 0; text-align: left;
  background: var(--c, var(--note-yellow)); color: var(--note-ink); font-size: 15px; line-height: 1.35; font-weight: 600;
  border-radius: 4px; box-shadow: 0 0 0 1.5px var(--edge), 4px 4px 0 1.5px var(--drop);
  rotate: var(--tilt, 0deg); transition: rotate .12s steps(2), translate .12s steps(2);
  display: flex; flex-direction: column; overflow: hidden;
}
.note:hover, .note:focus-visible { rotate: 0deg; translate: -1px -2px; }
.note .t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.note .meta { margin-top: auto; font: 11px var(--mono); opacity: .6; display: flex; justify-content: space-between; }
.note .pin { position: absolute; top: 9px; right: 10px; width: 13px; height: 13px; opacity: .55; }
.note.fresh { animation: stick .35s steps(4); }
@keyframes stick { from { translate: 0 -24px; opacity: 0; } }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 16px; background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 2px var(--edge); }
.composer input { border: 0; background: none; font-size: 16px; min-width: 0; outline: none; }
.composer input::placeholder { color: var(--ink-faint); }
.composer:focus-within { box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px color-mix(in srgb, var(--signal) 50%, transparent); }
.composer .pill-btn { margin-bottom: 3px; }
.mic { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--edge); background: var(--paper); box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; display: grid; place-items: center; color: var(--ink); }
.mic svg { width: 16px; height: 16px; }
.mic.on { background: var(--signal); color: #fff; border-color: var(--signal); box-shadow: 0 1px 0 var(--edge); transform: translateY(2px); }
.swatches { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.swatches button { width: 22px; height: 22px; border-radius: 4px; border: 0; background: var(--c); box-shadow: inset 0 0 0 1.5px var(--edge); }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--edge), 0 0 0 2px var(--well), 0 0 0 4px var(--ink); }
.swatches .q { margin-left: auto; }
.swatches .q input { border: 0; background: var(--paper); border-radius: 8px; padding: 5px 12px; font-size: 14px; width: 150px; outline: none; box-shadow: inset 0 0 0 1.5px var(--edge); }
@media (max-width: 520px) { .board { grid-template-columns: 1fr 1fr; } .swatches .q input { width: 110px; } }

/* Recap */
.recap h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 16px 0 4px; }
.recap h4:first-of-type { margin-top: 0; }
.recap ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.recap li { padding: 4px 0 4px 18px; position: relative; }
.recap li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border: 1.5px solid var(--edge); }
.recap li.done { text-decoration: line-through; color: var(--ink-faint); }
.recap li.done::before { background: var(--ink); }

/* Playground: the prompt bar with commands, assistants, snippets and the palette */
.play { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .play { grid-template-columns: 1fr; } }
.pg { padding: 18px 20px 20px; }
.pg-head { display: flex; align-items: center; gap: 10px; min-height: 34px; padding-bottom: 12px; border-bottom: 2px dotted var(--rule); }
.pg-head .face-mini { width: 32px; height: 32px; flex: none; }
.pg-head .asst { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pg-head .chip { margin-left: auto; font-size: 13px; }
.pg-input { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 2px var(--edge), inset 0 4px 0 color-mix(in srgb, var(--ink) 6%, transparent); }
.pg-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 22px; letter-spacing: -0.01em; }
.pg-input input::placeholder { color: var(--ink-faint); }
.pg-menu { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.pg-menu li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.pg-menu li[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.pg-menu li[aria-selected="true"] .ds, .pg-menu li[aria-selected="true"] .kb { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.pg-menu .ic { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--well); font: 700 14px var(--mono); color: var(--ink); }
.pg-menu .ic svg { width: 26px; height: 26px; }
.pg-menu .nm { font: 600 14px var(--mono); }
.pg-menu .ds { font-size: 14px; color: var(--ink-soft); }
.pg-menu .kb { font: 12px var(--mono); color: var(--ink-faint); }
.pg-out { margin-top: 14px; min-height: 64px; font-size: 16px; color: var(--ink-soft); }
.pg-out .big { font-size: 36px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.pg-out .big small { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); display: block; margin-top: 6px; }
.tries { display: grid; gap: 0; border-top: 2px solid var(--edge); }
.tries button { display: grid; grid-template-columns: 150px 1fr; gap: 16px; text-align: left; border: 0; border-bottom: 1px dotted var(--rule); background: none; padding: 14px 0; align-items: baseline; }
.tries button code { font: 600 14px/1.3 var(--mono); color: var(--on-screen); background: var(--screen); padding: 3px 8px; border-radius: 5px; justify-self: start; }
.tries button span { font-size: 15px; color: var(--ink-soft); }
.tries button:hover span { color: var(--ink); }

/* Feature grid */
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.more div { padding-top: 14px; border-top: 2px dotted var(--rule); }
.more div h4 { font-size: 17px; letter-spacing: -0.015em; }
.more div p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 960px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .more { grid-template-columns: 1fr; } }

/* Avatar studio */
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }
.studio-stage { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--case); margin: 2px 7px 7px 2px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 10%, transparent) 1.2px, transparent 1.5px) 0 0 / 20px 20px, var(--well); }
.studio-stage svg { width: 62%; overflow: visible; cursor: pointer; }
.studio-stage .state { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; padding: 8px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--edge); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.picker + .picker { margin-top: 28px; }
.picker h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px; }
.picker .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.picker .opts button { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--edge); background: var(--paper); padding: 4px 12px 4px 4px; border-radius: 8px; font-size: 15px; font-weight: 600; box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; transition: transform .06s, box-shadow .06s; }
.picker .opts button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.picker .opts button.text { padding: 6px 12px; }
.picker .opts button svg { width: 30px; height: 30px; }
.picker .opts button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: 0 3px 0 var(--ledge); }
.picker p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); min-height: 1.5em; }

/* Your AI */
.ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 960px) { .ai { grid-template-columns: 1fr; } }
.ai-list { display: grid; gap: 10px; }
.ai-opt { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; text-align: left; border: 0; background: var(--paper); box-shadow: 0 0 0 1.5px var(--rule); border-radius: 12px; padding: 12px 14px; }
.ai-opt:hover { box-shadow: 0 0 0 1.5px var(--edge); }
.ai-opt[aria-checked="true"] { box-shadow: var(--case-sm); }
.ai-opt .logo { width: 44px; height: 44px; border-radius: 8px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--edge); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.ai-opt[aria-checked="true"] .logo { background: var(--ink); color: var(--on-ink); }
.ai-opt .logo svg { width: 22px; height: 22px; }
.ai-opt b { display: block; font-size: 17px; }
.ai-opt span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
.tag { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 4px; background: var(--well); color: var(--ink-soft); white-space: nowrap; }
.tag.free { background: var(--ink); color: var(--on-ink); }
.ai-detail { padding: 26px; }
.ai-detail h3 { font-size: 30px; }
.ai-detail .best { margin-top: 8px; color: var(--ink-soft); font-size: 17px; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 560px) { .ai-cols { grid-template-columns: 1fr; } }
.ai-detail h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px; }
.ai-detail ol { margin: 0; padding-left: 22px; font-size: 15px; color: var(--ink-soft); display: grid; gap: 6px; }
.ai-detail ol li::marker { color: var(--ink); font: 700 13px var(--mono); }
.ai-facts { display: grid; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.ai-facts b { display: block; color: var(--ink); font-size: 14px; }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 15px; }
.works li { position: relative; padding-left: 1.5em; }
.works li::before { content: ""; position: absolute; left: 0; top: .45em; width: .6em; height: .6em; background: var(--ink); }
.works li.no { color: var(--ink-faint); }
.works li.no::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.works li small { color: var(--ink-faint); font-size: 13px; }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }
.ai-detail .works-wrap { margin-top: 24px; padding-top: 20px; border-top: 2px dotted var(--rule); }

.quiz { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--rule); }
.quiz p { font-size: 16px; font-weight: 700; }
.quiz .q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz .q-opts button { border: 1.5px solid var(--edge); background: var(--paper); padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 0 var(--edge); margin-bottom: 3px; }
.quiz .q-opts button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.quiz .res { font-size: 15px; color: var(--ink-soft); font-weight: 400; margin-top: 6px; }

.compare-wrap { margin-top: clamp(48px, 6vw, 72px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.compare thead th { font-size: 15px; font-weight: 800; border-bottom: 2px solid var(--edge); }
.compare tbody th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); width: 22%; padding-top: 15px; }
.compare td { color: var(--ink); }
.compare td.n { color: var(--ink-faint); }
.compare td small { display: block; color: var(--ink-faint); font-size: 13px; }
.mix { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mix div { padding-top: 14px; border-top: 2px dotted var(--rule); }
.mix h4 { font-size: 17px; }
.mix p { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; gap: 20px; } }

/* Privacy: the dark screen, as the app draws code and commands. */
.privacy { background: var(--screen); color: var(--on-screen); }
.privacy .lede { color: color-mix(in srgb, var(--on-screen) 70%, transparent); }
.priv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.priv-grid > div { padding: 20px 22px 24px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-screen) 22%, transparent); }
.priv-grid h3 { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, var(--on-screen) 70%, transparent); }
.priv-grid ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 16px; color: var(--on-screen); }
.priv-grid li { padding-left: 18px; position: relative; }
.priv-grid li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--on-screen); }
@media (max-width: 860px) { .priv-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px dotted var(--rule); }
.faq details:first-child { border-top: 2px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; font: 600 16px var(--mono); border: 1.5px solid var(--edge); border-radius: 6px; box-shadow: 0 2px 0 var(--edge); }
.faq details[open] summary::after { content: "−"; background: var(--ink); color: var(--on-ink); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-soft); font-size: 17px; max-width: 40em; }

/* Closing: the whole gang, lined up. */
.closing { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 110px); }
.lineup { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px) clamp(4px, 1vw, 16px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 6px; border-bottom: 2px solid var(--edge); }
.lineup svg { width: 100%; aspect-ratio: 1; overflow: visible; }
@media (max-width: 560px) { .lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; } }
.closing .big { font-size: clamp(54px, 11vw, 168px); font-weight: 900; letter-spacing: -0.06em; line-height: .88; }
.closing .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 2px dotted var(--rule); }
.closing .row p { color: var(--ink-soft); max-width: 30em; }
footer { padding: 28px 0 40px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* The app's toast: ink in both modes, a faint edge and a short hard shadow. */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; background: #1C1C1D; color: #EDECE8; padding: 10px 16px; border-radius: 10px; font-size: 15px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 4px 4px 0 rgba(0,0,0,.35); transition: opacity .15s steps(2), translate .15s steps(2); pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; translate: -50% 0; }

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

@media (max-width: 600px) {
  .yard .case-bar .legend.dim { display: none; }
  .yard-say { gap: 12px; }
}

/* Privacy, terms and security pages (written by scripts/legal-pages.py) */
.legal { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.legal .case { max-width: 760px; padding: clamp(22px, 4vw, 48px); background: var(--paper); border-radius: 16px; box-shadow: var(--case); margin: 2px auto 7px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 34px 0 10px; padding-top: 18px; border-top: 2px dotted var(--rule); }
.legal p, .legal li { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 68ch; }
.legal p { margin: 0 0 12px; }
.legal h1 + p { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.legal ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--ink); }
.legal b { color: var(--ink); }
.legal code { font: .88em var(--mono); background: var(--well); padding: 1px 5px; border-radius: 4px; }
.legal a { color: var(--ink); }
.legal-page .top { border-bottom-color: var(--edge); }
footer a { color: inherit; }
@media (max-width: 640px) { .legal-page .top nav { gap: 14px; font-size: 14px; } }
