/* fling.md in flinger.ai's Altitude look (Dusk palette, 11 Nov 2026), so the two read as one website.
   Night sky with an ember horizon in the opening bands, cream headlines with a lime Gelasio twist, mono-caps section
   heads with an acid second line, terminal cards on a #26452A edge, lime buttons, a floating pill header and a footer
   that rises on a curved horizon under a giant outlined wordmark. Values come from flinger-site's own stylesheet.
   Dusk only: there is no light or terminal theme. Fonts are self-hosted: nothing loads from another domain. */

@font-face { font-family: "Arimo"; src: url("/fonts/arimo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-700.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("/fonts/gelasio-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/fonts/inconsolata-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/fonts/inconsolata-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/fonts/inconsolata-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

/* ── tokens ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
/* Three skies, picked with the sun / moon / star in each page's opening band (site.js; /theme.js applies the saved one
   before the page paints). Every component uses the role names below, never a palette colour, so each theme is only
   a set of values. Dusk is the default and is flinger.ai's own look. */
:root {
  --font-display: "Arimo", Arial, Helvetica, sans-serif;
  --font-ui: "Arimo", Arial, Helvetica, sans-serif;
  --font-twist: "Gelasio", Georgia, serif;
  --font-mono: "Inconsolata", ui-monospace, Menlo, monospace;
  --r-sm: 3px; --r: 7px; --r-xl: 16px;
  --frame: 1320px;                /* the same frame as flinger.ai */
  --read: 46rem;                  /* a column of reading */
  --header-h: 64px;               /* the fixed bar's height (chrome.css) */
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .25s; --dur-base: .5s; --dur-slow: .8s;
  --warn: #F5B524; --warn-bg: #2B2208;
  --lime: #CEFF3F; --cream: #F4F0E5; --ink-dark: #1C2119;   /* the logo disc and brand marks, the same in every theme */
}

/* Dusk (moon): night sky down to an ember horizon, cream headlines, lime twist, acid signals. flinger.ai's palette. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --sky-rise: linear-gradient(to bottom, #080E0A 0%, #0E1A12 38%, #2A1A12 64%, #6E2A14 86%, #A33D19 100%);
  --horizon: #A33D19;       /* the sky rises to this, then fades into the page */
  --seam: #152316;          /* the homepage sky hands over to Flinglet's field in this colour: forest */
  --sky-grid: linear-gradient(transparent, transparent), linear-gradient(transparent, transparent);   /* no grid: two empty layers keep the sizes lined up */
  --stars: "212,237,204|184,255,83|244,240,229";
  --bg: #080E0A;            /* night */
  --surface: #10180E;       /* cards: terminal */
  --surface-2: #152316;     /* forest */
  --surface-3: #0E1B0F;     /* card */
  --hairline: #26452A; --hairline-soft: #1B2E1D;
  --line-strong: #8AC969;   /* leaf */
  --ink: #D4EDCC;           /* mint: body words */
  --head: #F4F0E5;          /* cream: headlines */
  --muted: #86A681;         /* moss */
  --accent: #B8FF53;        /* acid: labels, second lines, numbers */
  --twist: #CEFF3F;         /* lime: the Gelasio twist */
  --signal: #B8FF53; --on-signal: #080E0A;
  --lime-fill: #CEFF3F; --on-lime: #1C2119;
  --invert: #F4F0E5; --on-invert: #1C2119;
  --primary: #D4EDCC; --on-primary: #080E0A;
  --cta: #CEFF3F; --on-cta: #1C2119;
  --mark: #CEFF3F;
  --link: #F4F0E5; --underline: #B8FF53; --focus: #B8FF53;
  --band: #152316; --on-band: #F4F0E5; --tick-a: #B8FF53; --tick-b: #F4F0E5; --horizon-line: rgba(244, 240, 229, .22);
  --code-bg: #10180E; --code-ink: #D4EDCC;
  --glow: rgba(206, 255, 63, .14); --glow-soft: rgba(206, 255, 63, .1);
  --dash: rgba(212, 237, 204, .35); --glass: rgba(8, 14, 10, .5); --row-hover: rgba(21, 35, 22, .6);
}

/* Day (sun): the book's Humans mode under the same sky. Cream above, a peach-to-orange horizon, ink words. The accent is
   flinger.ai's ember (#A33D19, 6.6:1 on cream): orange itself is a fill here, never words. */
:root[data-theme="light"] {
  color-scheme: light;
  --sky-rise: linear-gradient(to bottom, #FFFBEE 0%, #F4F0E5 36%, #F7DCC2 62%, #FFB389 84%, #FF8A55 100%);
  --horizon: #FF8A55;
  --seam: #FF6B35;          /* Flinglet's orange field */
  --sky-grid: linear-gradient(transparent, transparent), linear-gradient(transparent, transparent);   /* no grid: two empty layers keep the sizes lined up */
  --stars: "";
  --bg: #F4F0E5;            /* cream */
  --surface: #FFFBEE;       /* paper */
  --surface-2: #E6E3D6;     /* sand */
  --surface-3: #ECE8DC;
  --hairline: #CFCCBF; --hairline-soft: #E6E3D6;
  --line-strong: #1C2119;
  --ink: #1C2119; --head: #1C2119; --muted: #55594E;
  --accent: #A33D19; --twist: #A33D19;
  --signal: #CEFF3F; --on-signal: #1C2119;
  --lime-fill: #CEFF3F; --on-lime: #1C2119;
  --invert: #1C2119; --on-invert: #F4F0E5;
  --primary: #1C2119; --on-primary: #F4F0E5;
  --cta: #FF6B35; --on-cta: #1C2119;
  --mark: #1C2119;
  --link: #1C2119; --underline: #FF6B35; --focus: #1C2119;
  --band: #1C2119; --on-band: #1C2119; --tick-a: #1C2119; --tick-b: #1C2119; --horizon-line: rgba(28, 33, 25, .28);   /* ink on the orange horizon */
  --code-bg: #10180E; --code-ink: #FFFBEE;
  --glow: rgba(255, 107, 53, .16); --glow-soft: rgba(206, 255, 63, .35);
  --dash: rgba(28, 33, 25, .4); --glass: rgba(255, 251, 238, .7); --row-hover: #ECE8DC;
}

/* Terminal (star): phosphor green on deep green, everything in mono, a grid for a sky (flinger.ai's Agents hero). */
:root[data-theme="terminal"] {
  color-scheme: dark;
  --font-display: var(--font-mono); --font-ui: var(--font-mono); --font-twist: var(--font-mono);
  --sky-rise: linear-gradient(to bottom, #05130C 0%, #061A10 40%, #0A3A22 76%, #0F5C35 100%);
  --horizon: #0F5C35;
  --seam: #0B2614;
  --sky-grid: linear-gradient(rgba(0, 255, 136, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, .06) 1px, transparent 1px);
  --stars: "0,255,136|201,247,216";
  --bg: #05130C; --surface: #08200F; --surface-2: #0B2614; --surface-3: #071A0D;
  --hairline: #10301F; --hairline-soft: #0B2614; --line-strong: #00FF88;
  --ink: #C9F7D8; --head: #C9F7D8; --muted: #5D9C77;
  --accent: #00FF88; --twist: #00FF88;
  --signal: #00FF88; --on-signal: #04180D;
  --lime-fill: #00FF88; --on-lime: #04180D;
  --invert: #C9F7D8; --on-invert: #04180D;
  --primary: #00FF88; --on-primary: #04180D;
  --cta: #00FF88; --on-cta: #04180D;
  --mark: #00FF88;
  --link: #C9F7D8; --underline: #00FF88; --focus: #00FF88;
  --band: #0B2614; --on-band: #C9F7D8; --tick-a: #00FF88; --tick-b: #C9F7D8; --horizon-line: rgba(0, 255, 136, .28);
  --code-bg: #021009; --code-ink: #C9F7D8;
  --glow: rgba(0, 255, 136, .1); --glow-soft: rgba(0, 255, 136, .08);
  --dash: rgba(0, 255, 136, .35); --glass: rgba(5, 19, 12, .6); --row-hover: #0B2614;
  --warn: #FFD479; --warn-bg: #2B2410;
}

/* ── base ───────────────────────────────────────────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--signal); color: var(--on-signal); }

.wrap { width: 100%; max-width: var(--frame); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
/* a band that runs edge to edge from inside the frame, with its content still on the frame's left edge */
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }

.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--signal); color: var(--on-signal); padding: .8rem .9rem; }
.skip:focus { left: 0; }

a { color: var(--link); text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; color: var(--head); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.04em; margin: 0 0 1.25rem; }
/* the word that turns: Gelasio italic in lime, as flinger.ai's "to live." */
h1 em { font-family: var(--font-twist); font-style: italic; font-weight: 400; letter-spacing: -.03em; color: var(--twist); }
h2 { font-size: 1.6rem; margin: 2.75rem 0 .75rem; }
h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--muted); }
ol > li::marker { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

.eyebrow, .kicker, .tag, th, .buildline {
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow, .kicker { margin: 0 0 1rem; color: var(--accent); }
.tag { margin: 0 0 .3rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 40rem; }
.muted, .note { color: var(--muted); }
.note { font-size: .92rem; }
.buildline { margin-top: 1.5rem; letter-spacing: .04em; text-transform: none; font-weight: 400; }

code, pre { font-family: var(--font-mono); font-size: .9rem; }
code { background: var(--surface-2); color: var(--ink); padding: .1em .35em; border-radius: var(--r-sm); overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 1rem 1.2rem; margin: 0 0 1rem; overflow-x: auto; line-height: 1.55; max-width: 100%; }
pre code { background: none; padding: 0; color: inherit; }

/* everything starts below the fixed bar */
main { padding: calc(var(--header-h) + 1.5rem) 0 3.5rem; }
main:has(> .sky:first-child), main:has(> .page-head:first-child) { padding-top: 0; }
/* inner pages: a reading column on the frame's left edge; a wide table may take the whole frame */
main.read > * { max-width: var(--read); }
main.read > .full, main.read > .page-head { max-width: none; }

/* the legal pages (scripts/sync_legal.mjs): wide tables take the frame; on a phone each row stacks, every value under
   its column's name */
main.read > .legal-table { max-width: none; margin: 1.25rem 0; }
.legal-table td { overflow-wrap: break-word; }
.legal-table td:first-child { min-width: 9rem; }
main[data-legal] li > p { margin: .5rem 0; }
@media (max-width: 45rem) {
  /* the banner is a sentence: it wraps before the sky's sun / moon button in the corner */
  main[data-legal] .draft { max-width: calc(100% - 4.5rem); line-height: 1.5; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { padding: .75rem 0; border-bottom: 1px solid var(--hairline-soft); }
  .legal-table td { padding: .2rem 0; border: 0; }
  .legal-table td::before { content: attr(data-label); display: block; font: 700 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

/* ── opening bands: the homepage sky and every page's head are a dusk sky with stars ─────────────────────────────── */
.sky, .page-head { position: relative; isolation: isolate; color: var(--ink); }
/* a sky in two layers: it rises to the theme's horizon, then fades from the horizon into the page over a fixed --fade, so
   the seam under every opening band is as long and soft as flinger.ai's, however tall the band is */
.sky, .page-head {
  --fade: clamp(110px, 14vw, 190px);
  background-image: var(--sky-grid), linear-gradient(to bottom, var(--horizon), var(--bg)), var(--sky-rise);
  background-size: 32px 32px, 32px 32px, 100% var(--fade), 100% calc(100% - var(--fade) + 1px);
  background-position: 0 0, 0 0, bottom, top;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}
/* the homepage sky does not fade back to the page: Flinglet's field follows it, so the horizon hands straight over to
   the field's colour (--seam) and there is one colour shift, not two back to back */
.sky { background-image: var(--sky-grid), linear-gradient(to bottom, var(--horizon), var(--seam)), var(--sky-rise); }
.sky { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: var(--fade); margin-bottom: 0; }
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: calc(var(--fade) + 1rem); margin-bottom: 1rem; }
.page-head > *:not(.stars):not(.orb), .sky > *:not(.stars):not(.orb) { position: relative; z-index: 1; }
.page-head .lede { margin-bottom: 0; }
.page-head h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .88; max-width: 16ch; }
/* a soft lime glow in the top corner, as flinger.ai's pricing head */
.page-head::after, .sky::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 90% 6%, var(--glow) 0%, transparent 38%); }
.stars { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

/* ── surfaces and controls ──────────────────────────────────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 2.4vw, 2rem) .75rem; margin: 0 0 1.5rem; }
.card > h2, .card > h3, .card > .tag + h2, .card > .tag + h3 { margin-top: 0; }
/* section heads on night: mono caps, the second line in acid (flinger.ai's "Already in orbit.") */
.card > h2, .sec, main.read > h2 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: -.03em; line-height: .95; color: var(--ink); }
.card > h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.card > h2 em, .sec em, main.read > h2 em { display: inline; color: var(--accent); }

/* every button is the same height, so a pair sits on one line */
.btn, .copy {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  font: 700 1rem/1.1 var(--font-ui); padding: 12px 22px; margin: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background-color: transparent; color: var(--ink); text-decoration: none;
}
.btn.big { min-height: 52px; font-size: 17px; padding: 14px 26px; }
.btn.primary { background-color: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.btn.start { background-color: var(--primary); color: var(--on-primary); border-color: var(--primary); }
/* the fill is a layer under the words, so it can wipe in from the left (see motion) instead of flicking on */
.btn, .copy { background-image: linear-gradient(var(--invert), var(--invert)); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; }
.btn:hover, .copy:hover { background-size: 100% 100%; color: var(--on-invert); border-color: var(--invert); }
.btn:active, .copy:active { transform: translateY(1px); }
.copy.done, .copy.done:hover, .btn.done, .btn.done:hover { background-color: var(--signal); background-size: 0% 100%; color: var(--on-signal); border-color: var(--signal); }
/* a tick draws itself in front of "Copied!" */
.copy.done::before, .btn.done::before { content: ""; flex: none; width: .8em; height: .42em; margin: -.2em .1em 0 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.btn small { font: 500 .7rem var(--font-mono); opacity: .7; }
.btn[download]::after { content: "\2193"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.1rem; }
.link-mono { font: 700 15px var(--font-mono); color: var(--head); }

.sticker, .draft {
  display: inline-block; font: 700 .76rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--lime-fill); color: var(--on-lime); border: 0; border-radius: var(--r-sm); padding: .45rem .65rem;
}
.draft { margin: 0 0 1.5rem; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: .7rem .95rem; margin: 0 0 1.25rem; font-size: .95rem; }
.warn { border-left: 3px solid var(--warn); padding: .1rem 0 .1rem .8rem; font-size: .92rem; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem 1rem .65rem 0; border-bottom: 1px solid var(--hairline-soft); }
th { font-size: .72rem; letter-spacing: .1em; color: var(--muted); }
tbody tr:hover td { background: var(--row-hover); }
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
.table-scroll table { margin: 0; }
#what-works-where table { min-width: 40rem; }
#what-works-where td:first-child { min-width: 11rem; }
#what-works-where td code { white-space: nowrap; overflow-wrap: normal; }

.pill { display: inline-block; font: 700 .72rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: .35rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); white-space: nowrap; }
.pill.ok { background: var(--signal); color: var(--on-signal); }
.pill.soon { background: var(--surface-2); color: var(--ink); }
.pill.maybe { background: transparent; color: var(--muted); border-style: dashed; }
.pill.no { background: var(--invert); color: var(--on-invert); }

details { border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--surface); margin: 0 0 1rem; }
details > summary { cursor: pointer; padding: .9rem 1.1rem; font: 700 .95rem var(--font-ui); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font: 700 1.2rem/1 var(--font-mono); color: var(--accent); }
details[open] > summary::after { content: "\2212"; }
details > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
details > :last-child { margin-bottom: 1rem; }
details dl { margin: 0 1rem 1rem; }
details dt { font-weight: 700; margin-top: .7rem; }
details dd { margin: 0; color: var(--muted); font-size: .95rem; }

.cmd { margin: .4rem 0 1rem; }
.cmd pre { margin: 0 0 .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* tool chips and the AI logos (each mark in its maker's own colour) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; font-weight: 700; font-size: .9rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 999px; padding: .3rem .85rem .3rem .35rem;
}
a.chip { text-decoration: none; padding-left: .85rem; border-color: var(--line-strong); }
a.chip:hover { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.chip .logo, .panel-title .logo, .tab .logo { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--invert); flex: none; }
.chip .logo svg { width: 16px; height: 16px; }
.letter { font: 700 .8rem var(--font-display); }
.b-claude { color: #D97757; }
.b-chatgpt { color: #10A37F; }
.b-gemini { color: #4285F4; }
.b-mistral { color: #FA520F; }
.b-llama { color: #0866FF; }
.b-deepseek { color: #4D6BFE; }
.b-qwen { color: #615CED; }
.b-muse { color: #0866FF; }
.b-grok, .b-glm, .b-editors, .b-developers { color: #1C2119; }

/* ── homepage ───────────────────────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.9rem, 6.8vw, 6.75rem); line-height: .88; margin: 1.25rem 0 1.4rem; }
.hero h1 em { display: block; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-tight { margin: 0; }
.hero-tight h1 { margin-top: 0; }

/* the little pretend chat: flinger.ai's screen, a terminal with a leaf edge; Rascal sits on top of it */
.demo { position: relative; min-width: 0; }
.chat { background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; border-bottom: 1px solid var(--hairline); background: var(--surface-3); font: 700 .8rem var(--font-mono); color: var(--muted); }
.chat-top i { width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; }
.chat-top span { margin-left: .5rem; }
.chat-body { padding: 1.1rem; display: grid; gap: .7rem; min-height: 17rem; align-content: start; }
.bubble { max-width: 92%; padding: 12px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; font-weight: 500; }
.bubble.ai { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.win { background: var(--lime-fill); color: var(--on-lime); font-weight: 700; }
.chat .typed { display: block; }
.file {
  display: flex; align-items: center; gap: .45rem; width: max-content; max-width: 100%; margin: 0 0 .5rem; padding: .35rem .55rem;
  font: 700 .78rem var(--font-mono); background: var(--bg); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-sm);
}
.file svg { flex: none; }
.chat-compose { display: flex; align-items: center; gap: .6rem; margin: 0 1.1rem 1.1rem; padding: .55rem .7rem; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.chat-compose b { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--signal); color: var(--on-signal); font-size: 1rem; line-height: 1; }
.demo-rascal { position: absolute; left: 1.5rem; top: -3.1rem; width: 5.5rem; aspect-ratio: 240 / 171; background: var(--mark); -webkit-mask: url("/rascal.svg") center / contain no-repeat; mask: url("/rascal.svg") center / contain no-repeat; pointer-events: none; }
.demo-note { margin: .85rem .25rem 0; font-size: .9rem; color: var(--ink); }
.scroll-hint { margin: 1.75rem 0 0; font: 700 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .85; }

/* a band of AI names that keeps scrolling: acid and cream on forest */
/* the band of AI names runs along the horizon at the foot of the sky: no strip of its own, just two thin lines, so the sky
   flows straight on into the page */
.ticker { position: relative; left: 50%; width: 100vw; margin: clamp(3.5rem, 8vw, 6rem) 0 0 -50vw; overflow: hidden; background: transparent; color: var(--on-band); border-block: 1px solid var(--horizon-line); }
.ticker-track { display: flex; width: max-content; gap: 2rem; padding: .8rem 0; font: 700 1rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span:nth-child(odd) { color: var(--tick-a); }
.ticker-track span:nth-child(3n) { color: var(--tick-b); }

/* section heads */
.sec { font-size: clamp(2rem, 4.6vw, 4.25rem); margin: 4.5rem 0 .75rem; }
.sec em { display: block; }
.sec + .note { margin-bottom: 1.75rem; font-size: 1.05rem; color: var(--ink); }

/* the four steps */
.steps { list-style: none; padding: 0; margin: 0 0 2rem; }
.step { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.25rem; position: relative; padding-bottom: 1.5rem; margin: 0; }
.step > .card { margin: 0; }
.step .num {
  position: relative; z-index: 1; width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--accent); font: 700 1.5rem var(--font-mono);
}
.step::before, .step::after { content: ""; position: absolute; left: calc(1.75rem - 1px); top: 3.5rem; bottom: 0; width: 2px; }
.step::before { background: var(--hairline); }
.step::after { background: repeating-linear-gradient(to bottom, var(--signal) 0 8px, transparent 8px 14px); transform-origin: top; }
.step:last-child { padding-bottom: 0; }
.step:last-child::before, .step:last-child::after { display: none; }
.step h3 { font-size: 1.45rem; margin: 0 0 .5rem; }

.prompt { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; margin: .3rem 0 1rem; }
.prompt .copy { min-height: 3.1rem; padding-inline: 1.3rem; }
.prompt-box {
  flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: .5rem; min-height: 3.1rem;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1.2rem; font-size: 1.05rem;
}
.prompt-box .pre { font: 700 1.05rem var(--font-display); white-space: nowrap; color: var(--accent); }
.prompt-in { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.05rem var(--font-ui); color: var(--ink); outline: 0; }
.prompt-in::placeholder { color: var(--muted); opacity: 1; }
.prompt-box:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.outcome { list-style: none; padding: 0; display: grid; gap: .5rem; }
.outcome li { display: flex; gap: .7rem; align-items: baseline; margin: 0; }
.outcome li::before {
  content: "\2713"; flex: none; align-self: start; margin-top: .15rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  font-weight: 700; font-size: .8rem; color: var(--on-signal); background: var(--signal); border-radius: 50%;
}

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.grid3 > * { min-width: 0; }
.grid3 .card { margin: 0; display: flex; flex-direction: column; }
.pick h3 { margin: 0 0 .4rem; font: 700 1.2rem var(--font-mono); text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
.pick p { color: var(--muted); font-size: .95rem; }
.pick p:last-child { margin-top: auto; padding-bottom: .5rem; }
.pick a { font: 700 .95rem var(--font-mono); color: var(--accent); }

/* ── install page: one tab per AI, each in that AI's own colour ─────────────────────────────────────────────────────── */
[data-ai="claude"]   { --brand: #D97757; --on-brand: #1C2119; }
[data-ai="chatgpt"]  { --brand: #10A37F; --on-brand: #1C2119; }
[data-ai="gemini"]   { --brand: #4285F4; --on-brand: #1C2119; }
[data-ai="le-chat"]  { --brand: #FA520F; --on-brand: #1C2119; }
[data-ai="llama"]    { --brand: #0866FF; --on-brand: #FFFFFF; }
[data-ai="deepseek"] { --brand: #4D6BFE; --on-brand: #FFFFFF; }
[data-ai="qwen"]     { --brand: #615CED; --on-brand: #FFFFFF; }
[data-ai="muse"]     { --brand: #0866FF; --on-brand: #FFFFFF; }   /* Meta's blue */
[data-ai="grok"], [data-ai="glm"], [data-ai="editors"], [data-ai="developers"] { --brand: var(--signal); --on-brand: var(--bg); }

.panel + .panel { margin-top: 2.5rem; }
.panel-title { display: flex; align-items: center; gap: .6rem; font-size: 1.7rem; margin: 0 0 1rem; }
.panel-title .logo { width: 2rem; height: 2rem; }
.panel-body > .card { margin-bottom: 1.5rem; }
.panel[hidden] { display: none; }
.tabs-on .panel-title { display: none; }

.tablist { position: relative; display: flex; gap: .15rem; overflow-x: auto; padding: .3rem .5rem 0; margin: 0 0 -1px; z-index: 2; align-items: flex-end; scrollbar-width: thin; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 44px;
  font: 700 .95rem var(--font-mono); color: var(--ink); background: var(--surface-3);
  border: 1px solid var(--hairline); border-radius: var(--r) var(--r) 0 0; padding: .5rem 1rem .5rem .55rem;
}
.tab:not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface-3)); }
.tab[aria-selected="true"] { position: relative; z-index: 3; background: var(--surface); border-color: var(--line-strong); border-bottom-color: var(--surface); box-shadow: inset 0 4px 0 var(--brand); padding-top: .7rem; }
.tab:focus-visible { outline-offset: -3px; }

.tabs-on .panel { background: var(--surface); border: 2px solid var(--line-strong); border-radius: 0 var(--r-xl) var(--r-xl) var(--r-xl); padding: clamp(1.1rem, 2.4vw, 2rem) clamp(.8rem, 2.4vw, 2rem) .4rem; margin: 0 0 2rem; position: relative; }
.tabs-on .panel .panel-body > .card { background: var(--bg); border-top: 4px solid var(--brand); }
.tabs-on .panel .btn.primary { background-color: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tabs-on .panel .btn.primary:hover { color: var(--on-invert); border-color: var(--invert); }

/* the install page's "start here" card: the one thing to do, on a leaf edge with a lime glow */
.card.start { border: 2px solid var(--line-strong); background: radial-gradient(circle at 100% 0%, var(--glow-soft) 0%, transparent 45%), var(--surface); }
.card.start h3 { font-size: 1.45rem; }

/* each method's label is a small tag with the AI's colour as a dot */
.tabs-on .panel .card > .tag:first-child {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .6rem; padding: .3rem .55rem;
  border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
.tabs-on .panel .card > .tag:first-child::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); flex: none; }

/* ── inner pages: contents, three-up cards, facts, checklists, chips ───────────────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2.25rem; }
.toc li { margin: 0; }
.toc a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .3rem .9rem; font: 700 .88rem var(--font-mono);
  color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
}
.toc a:hover { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }

.trio, .duo { display: grid; gap: 1rem; margin: 0 0 1.5rem; list-style: none; padding: 0; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio > *, .duo > * { min-width: 0; margin: 0; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 1.2rem 1.25rem .5rem; }
.card .tile { background: var(--bg); }
.tile h3 { font: 700 1.1rem var(--font-mono); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 .4rem; color: var(--ink); }
.tile p { font-size: .95rem; }
.tile .badge {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin: 0 0 .8rem;
  font: 700 1rem var(--font-mono); border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--accent);
}
.tile.alt .badge { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.tile.quiet .badge { color: var(--muted); border-color: var(--hairline); }
.tile h3 code { font-size: 1em; background: none; padding: 0; text-transform: none; }

/* numbers worth remembering: flinger.ai's telemetry readouts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 1.25rem; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.facts li { margin: 0; padding: 1.1rem 1.2rem; background: var(--bg); border-left: 1px solid var(--hairline); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1.05 var(--font-mono); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: .35rem; font-size: .88rem; line-height: 1.4; color: var(--muted); }

.checks { list-style: none; padding: 0; display: grid; gap: .55rem; margin: 0 0 1.1rem; }
.checks li { display: flex; gap: .7rem; align-items: baseline; margin: 0; }
.checks li::before {
  content: "\2713"; flex: none; align-self: start; margin-top: .15rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem;
  font-weight: 700; font-size: .75rem; color: var(--on-signal); background: var(--signal); border-radius: 50%;
}
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.5rem; }
.checks li > span { min-width: 0; }

.tokens { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.tokens li { margin: 0; padding: .35rem .7rem; font: 700 .85rem var(--font-mono); background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.tokens.no li { color: var(--muted); background: transparent; border-color: var(--hairline); border-style: dashed; }
.tokens.stop li { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }
.tokens.ask li { background: var(--surface-2); color: var(--ink); border-color: var(--hairline); }
.group { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--hairline-soft); }
.group:first-of-type { border-top: 0; padding-top: 0; }
.group > p { margin: 0; font: 700 .74rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .4rem; }
.group .tokens { margin: 0; }

.swap { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: 0; border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.swap li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: .75rem; align-items: baseline; margin: 0; padding: .85rem 1.1rem; background: var(--bg); border-top: 1px solid var(--hairline-soft); }
.swap li:first-child { border-top: 0; }
.swap s { text-decoration: none; font-weight: 700; color: var(--head); }
.swap i { font-style: normal; font-family: var(--font-mono); color: var(--accent); }

.source { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: 1.5rem 0 0; padding: .75rem 1rem; border: 1px dashed var(--dash); border-radius: var(--r); font-size: .92rem; color: var(--ink); background: var(--glass); max-width: 40rem; }
.source code { color: var(--accent); background: transparent; }

/* ── the sun / moon / star: which sky you are under, in the top corner of every opening band. Press it for the next one
      (Dusk → Day → Terminal). site.js adds it, so without script there is no button that does nothing ─────────────── */
.orb {
  position: absolute; z-index: 3; top: calc(var(--header-h) + .75rem); width: 4.5rem; height: 4.5rem; padding: 0; border: 0; background: none; cursor: pointer;
  right: max(16px, calc((100vw - var(--frame)) / 2 + 16px)); -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { .orb { right: max(40px, calc((100vw - var(--frame)) / 2 + 40px)); } }
.orb::before, .orb::after { content: ""; position: absolute; pointer-events: none; }
.orb:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 50%; }
/* Dusk: a cream crescent with two stars beside it */
.orb::before { width: 78%; height: 78%; inset: 11%; border-radius: 50%; background: transparent; box-shadow: inset -1.35rem .25rem 0 0 #F4F0E5; transform: rotate(-24deg); }
.orb::after { width: 3px; height: 3px; left: 6%; top: 16%; border-radius: 50%; background: #D4EDCC; box-shadow: 3.4rem -.15rem 0 #D4EDCC, 4.05rem 2.4rem 0 -.5px #B8FF53, .4rem 3.9rem 0 -.5px #B8FF53; }
/* Day: the orange sun */
:root[data-theme="light"] .orb::before { inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; transform: none; background: #FF6B35; clip-path: polygon(50% 0, 61% 14%, 79% 9%, 82% 28%, 100% 35%, 90% 50%, 100% 65%, 82% 72%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 18% 72%, 0 65%, 10% 50%, 0 35%, 18% 28%, 21% 9%, 39% 14%); }
:root[data-theme="light"] .orb::after { display: none; }
/* Terminal: a phosphor star with a prompt in it */
:root[data-theme="terminal"] .orb::before { inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; transform: none; background: #00FF88; clip-path: polygon(50% 0, 62% 35%, 98% 36%, 69% 58%, 80% 94%, 50% 72%, 20% 94%, 31% 58%, 2% 36%, 38% 35%); }
:root[data-theme="terminal"] .orb::after { content: ">_"; width: auto; height: auto; left: 50%; top: 54%; border-radius: 0; background: none; box-shadow: none; transform: translate(-50%, -50%); font: 700 .9rem var(--font-mono); color: #04180D; }
@media (max-width: 40rem) { .orb { width: 3.5rem; height: 3.5rem; top: calc(var(--header-h) + .5rem); } .orb::before { box-shadow: inset -1.05rem .2rem 0 0 #F4F0E5; } .orb::after { box-shadow: 2.6rem -.1rem 0 #D4EDCC, 3.1rem 1.85rem 0 -.5px #B8FF53, .3rem 3rem 0 -.5px #B8FF53; } }
/* in Day the stars give way to a plain sky */
:root[data-theme="light"] .stars { display: none; }

/* ── 404: Rascal, the creature from the logo, steals the page ───────────────────────────────────────────────────────── */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; }
.lost h1 { font-size: clamp(3rem, 9vw, 7rem); margin-bottom: .75rem; }
.lost .lede { margin-bottom: 1.75rem; }
.rascal { display: block; width: clamp(9rem, 26vw, 18rem); aspect-ratio: 240 / 171; background: var(--mark); -webkit-mask: url("/rascal.svg") center / contain no-repeat; mask: url("/rascal.svg") center / contain no-repeat; }

/* the staging pages say so at the top */
.staging-banner { margin: calc(var(--header-h) + .75rem) 0 0; padding: .55rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: .95rem; position: relative; z-index: 2; }
.staging-banner b { font: 700 .8rem/1 var(--font-mono); letter-spacing: .08em; margin-right: .6rem; padding: .2rem .4rem; border-radius: var(--r-sm); background: var(--signal); color: var(--on-signal); }
.staging-banner + main { padding-top: 1.5rem; }

/* ── review fixes and interactions (6 Nov), restyled for Dusk ─────────────────────────────────────────────────────── */
.endings { margin: 0 0 1rem; }
.endings .tile { padding-bottom: .6rem; }
.endings .tag { margin-bottom: .35rem; }
.endings h4 { font: 700 1.1rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 .25rem; color: var(--head); }
.endings .note { margin-bottom: .75rem; }
.endings .checks { margin-bottom: .5rem; }
.step .card .endings + .note { margin-bottom: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn, .copy { text-box: trim-both cap alphabetic; }

/* the AI tab row scrolls when it is wider than the page: the edge with more tabs behind it fades out */
.tablist.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent); }
.tablist.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 4rem), transparent); }
.tablist.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); }
/* install: one bar in the chosen AI's colour slides to the tab you pick */
.tab-ink { position: absolute; z-index: 4; top: .3rem; left: 0; height: 4px; width: 0; border-radius: var(--r) var(--r) 0 0; background: var(--ink-c, var(--signal)); pointer-events: none; }
.tabs-on .tablist.has-ink .tab[aria-selected="true"] { box-shadow: none; }

/* how it works: "which one are you?" */
.finder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: .75rem 1.25rem; align-items: end; margin: 0 0 1rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--dash); border-radius: var(--r-xl); }
.finder[hidden] { display: none; }
.finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder legend { padding: 0; margin: 0 0 .45rem; font-size: .92rem; font-weight: 700; color: var(--head); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 4.25rem; min-height: 2.75rem; padding: 0 1rem; font: 700 .95rem var(--font-mono); cursor: pointer; background: var(--bg); }
.seg label + label { border-left: 1px solid var(--line-strong); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--signal); color: var(--on-signal); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.finder fieldset:disabled { opacity: .4; }
.finder output { display: block; min-height: 2.75rem; font-size: .95rem; color: var(--muted); }
.finder output b { color: var(--head); }
.trio.picking > .tile { opacity: .4; }
.trio.picking > .tile.is-match { opacity: 1; border: 2px solid var(--signal); padding: calc(1.2rem - 1px) calc(1.25rem - 1px) calc(.5rem - 1px); }

/* rules: "will my stack run?" */
.stackcheck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .5rem 1.25rem; align-items: center; margin: 0 0 1.25rem; }
.stackcheck[hidden] { display: none; }
.stackcheck label { grid-column: 1 / -1; font-weight: 700; color: var(--head); }
.stackcheck input { width: 100%; min-height: 3rem; padding: .6rem .9rem; font: 400 1rem var(--font-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.stackcheck input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.stackcheck output { min-height: 3rem; display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.verdict { flex: none; padding: .3rem .55rem; font: 700 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-sm); }
.verdict.yes { background: var(--signal); color: var(--on-signal); }
.verdict.no { background: var(--invert); color: var(--on-invert); }
.verdict.maybe { background: var(--surface-2); color: var(--ink); border: 1px solid var(--hairline); }
.tokens li.hit { background: var(--signal); color: var(--on-signal); border-color: var(--signal); border-style: solid; }
.tokens.no li.hit { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }

/* rules: the list becomes a checklist you can tick, with a count (kept in this browser only) */
.tickable { margin: 0 0 1rem; }
.tick-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 .85rem; }
.tick-count { font: 700 .85rem var(--font-mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.tick-bar { flex: 1 1 10rem; height: 6px; max-width: 18rem; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--bg); }
.tick-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--signal); }
.tick-reset { margin-left: auto; min-height: 2.75rem; font: 700 .82rem var(--font-mono); color: var(--muted); background: none; border: 0; padding: .6rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.checks.tickable li { padding: 0; }
.checks.tickable li::before { content: none; }
.checks.tickable button {
  display: flex; gap: .7rem; align-items: baseline; width: 100%; min-height: 2.75rem; padding: .35rem .5rem .35rem 0; margin: 0;
  font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.checks.tickable button::before { content: ""; flex: none; align-self: start; margin-top: .25rem; width: 1.4rem; height: 1.4rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.checks.tickable button[aria-pressed="true"]::before { content: "\2713"; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--on-signal); background: var(--signal); border-color: var(--signal); }
.checks.tickable button[aria-pressed="true"] > span { color: var(--muted); }
.checks.tickable button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tick-card.all-done .tick-count::after { content: ". Ready to fling."; }

/* ── widths ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 60rem) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n + 3) { border-top: 1px solid var(--hairline); } }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 4.5rem; } }
@media (max-width: 46rem) {
  .trio, .duo, .checks.two { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); }
  .swap li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .swap i { display: none; }
  .finder, .stackcheck { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 16px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .actions .btn, .prompt .copy, .cmd .copy { flex: 1 1 100%; width: 100%; }
  .prompt-box { flex-basis: 100%; }
  th, td { padding: .5rem .8rem .5rem 0; font-size: .88rem; }
  .step { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; }
  .step .num { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; }
  .step::before, .step::after { left: calc(1.25rem - 1px); top: 2.5rem; }
  .step h3 { font-size: 1.25rem; }
  .chat-body { min-height: 0; }
  .lost { grid-template-columns: minmax(0, 1fr); }
  .lost .rascal { order: -1; }
  .demo-rascal { width: 4.25rem; top: -2.4rem; }
  /* links people tap get a 44px target without moving the text */
  main p a, main li a, main td a { padding-block: .85rem; }
  main .note a { padding-block: .95rem; }
  .chip { height: 2.75rem; }
}

/* ── motion: only for people who have not asked for less of it ─────────────────────────────────────────────────── */
.card[id], h2[id], section[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .chip, .tab, .toc a { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
  .btn, .copy { transition: background-size .32s var(--ease-out), color .2s ease .04s, border-color .2s ease, transform .08s ease; }
  .btn[download]::after { transition: transform .2s ease; }
  .btn[download]:hover::after { transform: translateY(2px); }
  .copy.done { animation: pop .3s ease; }
  .copy.done::before, .btn.done::before { animation: tick .3s ease-out; }

  /* the opening settles in on load, top to bottom */
  .hero > *, .page-head > *:not(.stars):not(.orb) { animation: rise .7s var(--ease-out) backwards; }
  .hero > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .08s; }
  .hero > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .16s; }
  .hero > :nth-child(4), .page-head > :nth-child(4) { animation-delay: .24s; }
  .hero > :nth-child(5), .page-head > :nth-child(5) { animation-delay: .32s; }
  .hero-grid > .demo { animation: rise .8s .2s var(--ease-out) backwards; }
  .demo-rascal { animation: perch 1s .9s var(--ease-out) backwards, bob 5s 2s ease-in-out infinite; }

  /* the pretend chat plays its little story once */
  .chat .m1 { animation: rise .4s .6s ease backwards; }
  .chat .m1 .typed { animation: type 1.5s 1.3s steps(26) backwards; }
  .chat .m2 { animation: rise .4s 3.2s ease backwards; }
  .chat .m3 { animation: rise .4s 4.6s ease backwards; }
  .chat .m4 { animation: rise .4s 6s ease backwards; }

  .ticker-track { animation: scroll 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  .card:target { animation: landed 1.6s ease; }

  /* things ease in as they scroll into view (the head script adds .js only when this can work) */
  .js .rv:not(.shown) { opacity: 0; transform: translateY(18px); }
  .js .rv:not(.settled) { transition: opacity .6s var(--ease-out) var(--d, 0ms), transform .6s var(--ease-out) var(--d, 0ms); }
  .grid3 > .rv:nth-child(3n + 2) { --d: 80ms; }
  .grid3 > .rv:nth-child(3n + 3) { --d: 160ms; }

  /* each step draws its dashed flight path to the next one */
  .js .step:not(.shown)::after { transform: scaleY(0); }
  .js .step::after { transition: transform .9s var(--ease-out) .25s; }

  .tabs-on .panel:not([hidden]) { animation: rise .3s ease; }
  .tab-ink { transition: transform .32s var(--ease-out), width .32s var(--ease-out), background-color .32s ease; }
  .trio > .tile { transition: opacity .25s ease, border-color .25s ease; }
  .tick-bar span { transition: width .35s var(--ease-out); }
  .checks.tickable button[aria-pressed="true"]::before { animation: pop .3s ease; }
  .tokens li { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
  .rascal { animation: bob 5s ease-in-out 1s infinite; }
  .orb { transition: transform .15s ease; }
  .orb:hover { transform: scale(1.06); }
  .orb:active { transform: scale(.94); }
  .orb.flip { animation: orbflip .5s var(--ease-out); }
  :root[data-theme="light"] .orb::before { animation: spin 24s linear infinite; }
  :root:not([data-theme="light"]):not([data-theme="terminal"]) .orb::before { animation: moonbob 6s ease-in-out infinite; }
  :root[data-theme="terminal"] .orb::after { animation: blink 1s steps(2, start) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: .25rem; }
  .ticker-track [aria-hidden] { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes landed { 0%, 100% { outline: 0 solid transparent; } 25% { outline: 4px solid var(--focus); } }
@keyframes tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes moonbob { 0%, 100% { transform: rotate(-24deg) translateY(0); } 50% { transform: rotate(-18deg) translateY(-.35rem); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes orbflip { 0% { transform: scale(1) rotate(0); } 45% { transform: scale(.5) rotate(180deg); } 100% { transform: scale(1) rotate(360deg); } }
@keyframes perch { from { opacity: 0; transform: translateY(2.5rem) scale(.8); } to { opacity: 1; transform: none; } }
