/* Streamer Sidekick site (DESIGN.md is the spec): Grape on a near-black purple page, Archivo, hairline-ruled sections.
   --brand for headings/logo, --accent for things you click, --accent-ink for links and numbers. Colors live on :root
   only; the shared ones come from design/ (see build.py --sync). No gradients, no pure black, no glow shadows. Every motion block is gated on reduced motion and can be
   deleted on its own (search "MOTION:"). */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ==== shared tokens: generated from design/tokens.css by `python3 site/build.py --sync`, edit there ==== */
/* Shared design tokens: the website (site/src/styles.css) and the dashboard (sidekick/static/dash.css). DESIGN.md is
   the spec. Edit here, then run `python3 site/build.py --sync` to copy this into both stylesheets (a test checks they
   match). Colors live only on :root. Dark for everyone; light only when the visitor turns it on in the footer (the
   sk_theme cookie: the server adds data-theme="light" to <html>, no script). */
:root {
  color-scheme: dark;
  --brand: #E4D9FA;       /* headings, logo */
  --brand-deep: #2E1657;  /* footer, trust band (stays deep purple in both schemes) */
  --accent: #6D3FD6;      /* buttons, bars, toggles (Grape, matches the bot) */
  --accent-deep: #5A30BC; /* hover, pressed */
  --accent-ink: #9B7BF0;  /* accent as text: links, numbers, focus rings, quiet-button edges */
  --on-accent: #FFFFFF;   /* text on accent buttons and on the deep purple footer */
  --ink: #ECE8F2;         /* body text */
  --muted: #ADA6B8;       /* secondary text */
  --paper: #15111C;       /* page */
  --stone: #1E1928;       /* panels, cards and bands */
  --soft: #2A2140;        /* Free pills, inline code, the current tab */
  --line: #342C40;        /* quiet rules and borders */
  --line-strong: #4A3F5C; /* card edges and row dividers you need to see */
  --field: #7A6F8C;       /* edges of things you type in (3:1) */
  --live: #D6453D;        /* the live dot, nothing else */
  --live-ink: #FF8A80;    /* the LIVE label text */
  --ok: #4FC48A;          /* check marks, connected, done */
  --win: #E9C46A;         /* wins only (Honey): milestones, every box ticked */
  --warn: #F29B5C;        /* heads-up notes (orange, darker than Honey): 8.5:1 page, 7.9:1 panels, 6.9:1 soft */
  --foot-ink: #E6DDF0;    /* text on the deep purple footer and trust band */
  --foot-line: #4A3270;   /* rules on the deep purple footer */
  --shadow: none;         /* card lift: flat in dark, soft in light */
  --radius: 10px;         /* every corner */
  --tap: 44px;            /* smallest tap target */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* every UI transition */
  --dur-press: 160ms;     /* button press */
  --dur-ui: 200ms;        /* color changes, open and close */
  --dur-swap: 240ms;      /* page crossfade */
  /* Redesign A, Calm manager (2026-11): app shell, chart kit, spacing (shared since the dashboard uses them too) */
  --sidebar: #110D17;     /* dashboard sidebar and phone top bar, a step below the page */
  --sidebar-w: 248px;     /* dashboard sidebar width, labels always shown */
  --rank-name-w: 132px;   /* ranked-bar name column (charts.ranked, r20); 96px under 560px wide */
  --chart-1: #9B7BF0;     /* series order 1-4; they differ in lightness as well as hue */
  --chart-2: #5FA8E8;
  --chart-3: #F29B5C;
  --chart-4: #4FC48A;
  --heat-0: #272135;      /* best-time heat strip, empty slot */
  --heat-1: #392861;
  --heat-2: #4A3086;
  --heat-3: #5C38AE;
  --heat-4: #6D3FD6;      /* best slot (Grape) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem;
  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem; --t-xl: 1.25rem;
  --t-stat: 2.25rem;      /* big numbers on stat tiles (800, tabular) */
  /* Contrast pass (2026-11-13, canvas 8RR3sfdzs9pxFH31yx37nL remix): each dashboard area has a key colour (the dot in
     its card header bars) and a tint (the header bar fill). Never text colours, never a status. */
  --key-stats: #A88BFA;   /* numbers and charts: Home tiles, Streams, Reports */
  --key-today: #4CC3D9;   /* Today, Discord, Community, Tools, Settings, server pages */
  --key-goal: #F28DB2;    /* goals, Road to Affiliate, Growth, Coach, Plan (rose: kept clear of --warn and --win) */
  --tint-stats: #2B2342;
  --tint-today: #19303A;
  --tint-goal: #3A2233;
  --tint-plain: #262033;  /* header bar of a card outside any area */
  --nav-current: #33275A; /* the current page in the dashboard sidebars (13:1 under --strong text) */
  /* Home "B Cockpit" (r24, #731): the three status fills the canvas added. Its --track is --soft, --focus is
     --accent-ink and --honey-text is --win here; --raise isn't used. */
  --ok-bg: #173326;       /* behind an up chip: --ok on it 6.2:1 */
  --warn-bg: #34231A;     /* heads-up rows: --ink 11:1, --accent-ink links 4.6:1, --warn icons 6.9:1 */
  --win-bg: #3A3018;      /* the Honey row (road done): --win on it 7.8:1 */
}
:root[data-theme="light"] {
  color-scheme: light;
  --brand: #2E1657;
  --accent-ink: #5434B8;
  --ink: #1F1A28;
  --muted: #5B536A;
  --paper: #F7F4FB;
  --stone: #FFFFFF;
  --soft: #ECE5F6;
  --line: #DDD5E8;
  --line-strong: #CFC5DD;
  --field: #8A7FA0;
  --live: #C23A33;
  --live-ink: #B3261E;
  --ok: #1A754A;
  --win: #7A5F00;         /* dark gold: 5.6:1 page, 6.1:1 panels, 4.9:1 soft */
  --warn: #8C3B00;        /* burnt orange, darker than --win: 7.0:1 page, 7.7:1 panels, 6.2:1 soft */
  --shadow: 0 1px 2px rgba(46, 22, 87, .08), 0 10px 30px rgba(46, 22, 87, .07);
  --sidebar: #EEE9F5;
  --chart-1: #6D3FD6;
  --chart-2: #2F78C4;
  --chart-3: #B85F22;
  --chart-4: #1C7F4E;
  --heat-0: #F0ECF6;
  --heat-1: #CFC1EE;
  --heat-2: #AF96E6;
  --heat-3: #8E6ADE;
  --heat-4: #6D3FD6;
  --key-stats: #6D3FD6;
  --key-today: #0B7285;
  --key-goal: #A3305E;
  --tint-stats: #F1ECFD;
  --tint-today: #E3F2F5;
  --tint-goal: #FBE9F0;
  --tint-plain: #F4F0F9;
  --nav-current: #E1D8FA;
  --ok-bg: #E1F3E9;       /* --ok 4.9:1 */
  --warn-bg: #FCEBDD;     /* --ink 14.6:1, --accent-ink 7.1:1, --warn 6.6:1 */
  --win-bg: #FBF1D6;      /* --win 5.4:1 */
}
/* ==== end shared tokens ==== */

/* Site-only tokens */
:root {
  --wrap: 68rem;
  --reveal-shift: 12px; /* scroll reveals: how far a mock rises while it fades in */
  --hero-rise: 500ms;   /* hero: the dashboard preview rises in once on load */
  /* product mocks only: Discord's own theme (dark here, light below), so the posts look like the real ones */
  --discord: #313338; --discord-embed: #2B2D31; --discord-edge: #1E1F22; --discord-ink: #DBDEE1;
  --discord-head: #F2F3F5; --discord-muted: #949BA4; --discord-rule: #3F4147; --discord-link: #00A8FC;
  --discord-app: #5865F2; --discord-button: #4E5058;
  --grow: #5E8C61;      /* the bot's "grow" post edge (Road to Affiliate), sidekick/style.py */
  /* product mocks only: the share cards (sidekick/cards/), the same in both schemes */
  --card-paper: #15111C; --card-ink: #ECE8F2; --card-muted: #ADA6B8; --card-stone: #1E1928; --card-line: #342C40;
  --card-brand: #E4D9FA; --card-accent: #6D3FD6; --card-number: #9B7BF0; --card-win: #E9C46A;
}
:root[data-theme="light"] {   /* Discord's own light theme */
  --discord: #FFFFFF; --discord-embed: #F2F3F5; --discord-edge: #E3E5E8; --discord-ink: #313338;
  --discord-head: #060607; --discord-muted: #5C5E66; --discord-rule: #E1E2E4; --discord-link: #0068DE;
  --discord-button: #E3E5E8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Archivo", "Atkinson Hyperlegible", system-ui, sans-serif; color: var(--ink);
  background: var(--paper); line-height: 1.55; font-size: 1.0625rem;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
p a, li a { overflow-wrap: anywhere; }   /* a long address in running text wraps instead of widening the page (#424) */
a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
h1, h2, h3 { color: var(--brand); line-height: 1.15; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
code { font-size: .92em; background: var(--soft); border-radius: 4px; padding: .05em .3em; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent-ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.fine { color: var(--muted); font-size: .9rem; }

/* header (DESIGN.md "Site > Nav"): logo, Home, Relay, Pricing, the Free tools menu, Dashboard, Log in. Under 52rem it
   is one row of logo, Log in and Menu, and the same <details> menu holds the whole nav. No script: the summary
   opens and closes it. */
.top { border-bottom: 1px solid var(--line); position: relative; z-index: 10; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 4.5rem; }
.brand { font-weight: 800; color: var(--brand); text-decoration: none; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; min-height: var(--tap); }
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--brand); display: inline-block; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: .45rem; top: .45rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--paper); }
.top nav { display: flex; align-items: center; gap: var(--s-1); flex: 1; }
.top .nav-top { display: contents; }
.top nav a, .nav-menu summary { text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--radius); }
.top nav a:hover, .nav-menu summary:hover, .nav-menu[open] > summary { background: var(--soft); }
.top nav > a[aria-current="page"], .top .nav-top a[aria-current="page"], .nav-menu.here > summary { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.top .nav-dash { margin-left: auto; }
.top .nav-cta { order: 1; padding: .5rem 1rem; white-space: nowrap; flex: none; }   /* right after the logo in the page, so phones tab logo, Log in, Menu; shown last on wide screens */
.top a:focus-visible, .nav-menu summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary .icon { color: currentColor; width: 1rem; height: 1rem; }
.nav-menu[open] > summary > .icon:last-child { transform: rotate(180deg); }
.nav-menu .menu { position: absolute; top: calc(100% + var(--s-2)); left: 0; width: min(36rem, calc(100vw - 2rem)); background: var(--stone); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-2); }
.menu-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-2); }
.menu-group { display: flex; flex-direction: column; padding: var(--s-2); min-width: 0; }
.menu-group p { margin: 0 0 var(--s-1); padding: 0 var(--s-3); font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.top .menu a { justify-content: flex-start; gap: var(--s-3); font-size: var(--t-sm); white-space: normal; border-radius: 8px; }
.top .menu a[aria-current="page"] { background: var(--soft); color: var(--brand); }
.top .menu a.soon { color: var(--muted); }
.menu .pill { margin-left: auto; font-size: var(--t-xs); padding: 0 .5rem; color: var(--muted); }
.top .menu .menu-all { display: flex; color: var(--accent-ink); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: var(--s-1); }
.menu-all .icon { width: 1rem; height: 1rem; }
@media (max-width: 72rem) and (min-width: 52.01rem) {   /* tablets and small laptops: the menu hangs from the header's right edge */
  .top .wrap { position: relative; }
  .nav-menu { position: static; }
  .nav-menu .menu { left: auto; right: 1rem; top: calc(100% - var(--s-2)); }
}
.top .menu .menu-top, .nav-menu .short { display: none; }
@media (max-width: 52rem) {
  .top .wrap { min-height: 3.75rem; gap: var(--s-2); }
  .brand { font-size: 1.05rem; }
  .top nav { flex: none; }
  .top .nav-cta { order: 0; margin-left: auto; padding: .5rem .875rem; }
  .nav-menu summary { padding: 0 var(--s-2); }
  .top .nav-top, .top .nav-dash, .nav-menu .long, .nav-menu summary > .icon:last-child { display: none; }
  .nav-menu .short { display: inline-flex; align-items: center; gap: .4rem; }
  .nav-menu { position: static; }
  .nav-menu.here > summary { box-shadow: none; }
  .nav-menu .menu { top: 100%; left: 0; right: 0; width: auto; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: var(--paper);
    padding: var(--s-2) var(--s-4) var(--s-6); max-height: calc(100dvh - 3.75rem); overflow-y: auto; }
  .top .menu .menu-top { display: flex; font-size: var(--t-lg); min-height: 52px; border-radius: 0; border-bottom: 1px solid var(--line); padding: 0 var(--s-1); }
  .menu-groups { grid-template-columns: 1fr; gap: 0; }
  .menu-group { padding: var(--s-3) 0 0; }
  .menu-group p { padding: 0 var(--s-1); }
  .top .menu a { font-size: var(--t-base); padding: 0 var(--s-1); }
  .top .menu .menu-all { margin-top: var(--s-2); border-radius: 0; border-top: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 22.5rem) {   /* 320-360px phones */
  .brand { font-size: .95rem; gap: .4rem; }
  .brand-mark { width: 1.4rem; height: 1.4rem; }
  .brand-mark::after { left: .4rem; top: .4rem; width: .6rem; height: .6rem; }
  .top .wrap { gap: var(--s-1); }
  .top .nav-cta { padding: .5rem .75rem; }
}
@media (max-width: 26rem) {   /* phones: the menu is its icon; "Menu" stays as its accessible name */
  .nav-menu .short { font-size: 0; gap: 0; }
  .nav-menu summary { min-width: var(--tap); justify-content: center; }
}

/* ==== shared components: generated from design/components.css by `python3 site/build.py --sync`, edit there ==== */
/* Shared components (DESIGN.md "Shared components"): button, pill, plan badge, card, progress bar, Example tag,
   status dot. Same source as tokens.css: edit here, then `python3 site/build.py --sync`. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap);
  padding: .7rem 1.2rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent);
  color: var(--on-accent); font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; user-select: none; }
.button.quiet { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
@media (hover: hover) {
  .button:hover { background: var(--accent-deep); border-color: var(--accent-ink); }
  .button.quiet:hover { background: var(--soft); }
}
.button:active { background: var(--accent-deep); }
.button.quiet:active { background: var(--soft); }
.button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.button[disabled] { opacity: .5; cursor: not-allowed; }

/* pills: a word in a rounded box. In a list (li.pill) it is a status and gets a dot; ok = connected or done */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .65rem; border: 1px solid var(--line-strong);
  border-radius: 99px; font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--muted); background: var(--stone);
  white-space: nowrap; }
li.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); flex: none; }
.pill.ok { color: var(--ok); }
li.pill.ok::before { background: var(--ok); }
.pill.free { background: var(--soft); color: var(--accent-ink); border-color: var(--soft); }
.plan-badge { display: inline-flex; align-items: center; padding: .15rem .65rem; border: 1px solid var(--line-strong);
  border-radius: 99px; font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--muted); background: var(--stone); }
.plan-badge.plus, .plan-badge.trial { color: var(--brand); border-color: var(--accent-ink); background: var(--soft); }
.plan-badge.trial { border-style: dashed; }
.status-line { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }

/* status dot: a state next to its word, never alone. Red is only ever the live dot */
.status-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.ok { background: var(--ok); }
.status-dot.live { background: var(--live); }

/* card: one feature area on a panel */
.card { background: var(--stone); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }

/* progress bar: a real <progress>; a finished box turns ok green. Bars never animate their value */
progress { display: block; width: 100%; height: .45rem; appearance: none; -webkit-appearance: none; border: 0;
  border-radius: 99px; background: var(--line); color: var(--accent-ink); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--accent-ink); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent-ink); border-radius: 99px; }
progress.done, .met progress { color: var(--ok); }
progress.done::-webkit-progress-value, .met progress::-webkit-progress-value { background: var(--ok); }
progress.done::-moz-progress-bar, .met progress::-moz-progress-bar { background: var(--ok); }

/* Example tag: marks a mock filled with made-up numbers */
.example-tag { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 .4rem; line-height: 1.5; }

/* MOTION: buttons change color in 200ms, lift 1px on hover and press to .97 (gated, deletable) */
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease,
    transform var(--dur-press) var(--ease-out); }
  .button:active { transform: scale(.97); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button:hover { transform: translateY(-1px); }
  .button:hover:active { transform: translateY(0) scale(.97); }
}

/* light mode switch (footer, deep purple in both schemes): a form, no script. Both buttons are in the page; the one
   for the look you already have is hidden. Posts to /theme (site) or the dashboard's theme path, which set sk_theme */
.theme-switch { margin: 0; }
.theme-switch button { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0;
  background: none; color: var(--on-accent); font: inherit; text-decoration: underline; text-underline-offset: .18em;
  cursor: pointer; }
.theme-switch button:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 2px; }
.theme-switch .to-dark, [data-theme="light"] .theme-switch .to-light { display: none; }
[data-theme="light"] .theme-switch .to-dark { display: inline-flex; }
/* ==== end shared components ==== */
.actions { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 .5rem; }
.actions > a:not(.button) { display: inline-flex; align-items: center; min-height: var(--tap); }   /* text links in a button row are tap targets too */

/* hero: words left, the real post on the right */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); }
.hero .actions { margin: 1.3rem 0 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.facts li::before, .built-list li::before { content: "\2713  "; color: var(--ok); font-weight: 800; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); } }
/* phones (600px and under): Log in with Twitch stays the one button; Add to Discord becomes a plain text link
   (same element and link, CSS only) so the hero has one main action */
@media (max-width: 37.5rem) {
  .hero .actions .button.quiet { flex: 0 0 auto; min-height: var(--tap); padding: 0; border: 0; background: none;
    color: var(--accent-ink); text-decoration: underline; text-underline-offset: .18em; justify-content: flex-start; }
  .hero .actions .button.quiet:hover, .hero .actions .button.quiet:active { background: none; transform: none; }
}
/* hero: the free checker, first thing under the lede (GET /checker?name=, the checker page prefills it) */
.hero .welcome { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); color: var(--muted); }   /* r14 A: ?s=twitchcon welcome line (functions/index.js) */
.hero-check { margin: var(--s-6) 0 0; max-width: 32rem; padding: var(--s-4); }   /* look: shared .card */
.hero-check label { display: block; font-weight: 600; color: var(--brand); margin-bottom: var(--s-2); }
.hero-check .row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero-check input { flex: 1 1 12rem; min-width: 0; font: inherit; font-size: max(1rem, 16px); padding: .7rem .9rem; min-height: 48px;
  border: 2px solid var(--field); border-radius: var(--radius); background: var(--stone); color: var(--ink); }
.hero-check input::placeholder { color: var(--muted); }
.hero-check input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); }
.hero-check .button { flex: none; }
.hero-check .fine { margin: var(--s-2) 0 0; }
@media (max-width: 36rem) {
  .hero { padding: var(--s-6) 0 var(--s-8); }
  .hero .lede { font-size: var(--t-lg); }
  .lede-more { display: none; }   /* phones: one-sentence intro so the post shows sooner */
  .hero .actions { margin: var(--s-4) 0 var(--s-3); }
  .hero .actions .button { flex: 1 1 100%; text-align: center; }
  .hero-check { margin-top: var(--s-4); padding: var(--s-3); }
  .hero-check input, .hero-check .button { flex: 1 1 100%; }   /* the name gets the full row; the button sits under it */
}

/* frames: the console around the hero post, pricing plans, checker side card (Linear-style product chrome) */
.console, .frame { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--stone); overflow: hidden; min-width: 0; }
.console, .frame { box-shadow: var(--shadow); }
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: .55rem .9rem;
  border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.console-bar .chan { color: var(--brand); font-weight: 600; }
.console-body { padding: .9rem; display: grid; gap: .8rem; }
.frame-body { padding: var(--s-4) 1.2rem 1.2rem; }

/* hero: the creator's Sidekick home (sidekick/dash.py me(): "Hi, name", plan badge + status pills, the Road to Affiliate
   and Recent streams cards), filled in with the example streamer */
.hero-dash { margin: 0; min-width: 0; }
.hero-dash figcaption { margin-top: var(--s-2); }
.dash-body { padding: var(--s-3) var(--s-4) var(--s-4); display: grid; gap: var(--s-3); background: var(--paper); }   /* the dashboard page */
.dash-hi { margin: 0; font-weight: 800; font-size: var(--t-xl); color: var(--brand); letter-spacing: -.01em; }
.dash-card { padding: var(--s-3) var(--s-4); min-width: 0; }   /* look: shared .card */
.dash-card-h { margin: 0 0 var(--s-1); font-weight: 800; color: var(--brand); }
.dash-post-t { margin: 0 0 var(--s-2); font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.dash-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); font-size: var(--t-sm); }
.dash-road li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s-2); min-width: 0; }
.dash-road .num { font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.dash-road .met .num::after { content: " \2713"; color: var(--ok); }
.dash-road progress { grid-column: 1 / -1; }   /* look: shared progress (a done box is ok green) */
.dash-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1) var(--s-3); margin: 0; font-size: var(--t-sm); }
.dash-fields .wide { grid-column: 1 / -1; }
.dash-fields dt { color: var(--muted); font-size: var(--t-xs); }
.dash-fields dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-fields .wide dd { font-weight: 400; }
.dash-fields .dl { color: var(--accent-ink); }
.tw-says { display: block; color: var(--muted); margin-bottom: var(--s-1); }   /* Twitch's own words, then why Sidekick asks */
.tw-says q { color: var(--ink); }
@media (max-width: 36rem) {
  .dash-body { padding: var(--s-3); }
  .dash-card { padding: var(--s-3); }
}

/* "Running today": the honest proof strip, hairline-ruled */
.built { border-top: 1px solid var(--line); padding: var(--s-8) 0; }
.built-for { color: var(--ink); font-weight: 600; }
.built-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-weight: 600; color: var(--brand); }
.later { color: var(--muted); }
.later::before { content: "\25CB  "; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.asks { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-3); }
.asks li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s-1) var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.asks code { align-self: start; width: fit-content; overflow-wrap: anywhere; }
@media (max-width: 36rem) { .asks li { grid-template-columns: 1fr; } }
.share { margin-top: var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.share h2 { font-size: var(--t-xl); }
.pick { user-select: all; overflow-wrap: anywhere; }

/* sections */
section.band { padding: 3rem 0; border-top: 1px solid var(--line); }
section.band.stone { background: var(--stone); border-top: 0; }
.kit-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--s-6); }
.kit-head h2 { margin: 0; }
.kit-head p { color: var(--muted); max-width: 30rem; margin: 0; }
.steps { margin: 0; padding-left: 1.3rem; }
.steps li { margin-bottom: .8rem; padding-left: .3rem; }
.steps li::marker { color: var(--accent-ink); font-weight: 800; }

/* homepage (DESIGN.md Direction A > Site): five blocks, readable in under a minute */
/* what it does: four tiles, icon + short title + one line */
.does { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-12) 0; }
.does h2 { margin-bottom: var(--s-6); }
.does-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: var(--s-8) var(--s-6); }
.does-grid li { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.does-grid .icon { width: 2.5rem; height: 2.5rem; padding: .625rem; border-radius: var(--radius); background: var(--soft); }
.does-grid h3 { margin: var(--s-1) 0 0; font-weight: 800; font-size: var(--t-lg); }
.does-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
/* trust strip: three points and the permissions link */
.trust-strip { padding: var(--s-12) 0 var(--s-8); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--s-6); }
.trust-strip li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-content: start; }
.trust-strip .icon { grid-row: span 2; margin-top: .15rem; }
.trust-strip b { color: var(--brand); }
.trust-strip span { color: var(--muted); font-size: .95rem; }
.trust-more { margin: var(--s-4) 0 0; }
.trust-more a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
/* plans in one line */
.plans-line { padding: 0 0 var(--s-12); }
.plans-card { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4) var(--s-6); }
.plans-card p { margin: 0; font-weight: 600; color: var(--ink); }
/* top-4 FAQ beside the closing call to action */
.end-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); gap: var(--s-12); align-items: start; }
.closer-card { padding: var(--s-8); }
.closer-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.closer-card p { color: var(--muted); }
.closer-card .actions { margin-bottom: 0; }
@media (max-width: 36rem) {
  .does { padding: var(--s-8) 0; }
  .trust-strip { padding-top: var(--s-8); }
  .plans-card, .closer-card { padding: var(--s-4); }
}

/* FAQ */
/* two independent columns: opening an answer only moves the questions under it, never the other column */
.qs { max-width: 48rem; margin-top: 1rem; }   /* one column: read top to bottom, most-asked first */
.qs details { border-top: 1px solid var(--line); padding: .3rem 0 .6rem; min-width: 0; }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; color: var(--accent-ink); font-weight: 800; font-size: 1.2rem; }
.qs details[open] summary::after { content: "\2212"; }
.qs summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.qs p { color: var(--muted); font-size: .95rem; margin: .2rem 0 0; }

/* closing call to action */
.closer { border-top: 1px solid var(--line); padding: var(--s-12) 0; }
.closer h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }
.closer .actions { margin: var(--s-4) 0 0; }

@media (max-width: 36rem) { .tools { grid-template-columns: 1fr; } }

/* toolkit-style rows (pricing, checker): Raycast-like compact label rows */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.tools li { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); min-width: 0; }
.tools h3 { margin: 0; font-size: 1.02rem; }
.tools p { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; margin: 0; }
.tools.one { grid-template-columns: 1fr; }
.tools.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); margin-bottom: var(--s-2); }
.tools .pill { align-self: start; }   /* look: shared .pill (free = soft, soon = the plain one) */

/* inner pages (pricing, checker, result) in the homepage look */
.page-head { padding: 2.5rem 0 2rem; }
.page-head + .band { border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.price-grid #later { grid-column: 1 / -1; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }   /* /chat-bots: your chat bot | Sidekick */
.plan-card .price, .quiet-card .price { font-size: 2.4rem; font-weight: 800; color: var(--accent-ink); line-height: 1; margin: .2rem 0 1rem; font-variant-numeric: tabular-nums; }
.plan-card .price small, .quiet-card .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.quiet-card { background: transparent; }
.check-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.cta-card, .type-card { max-width: 40rem; margin-top: 1.5rem; }
.cta-card h2, .type-card h2 { font-size: 1.3rem; }
.result.sample { margin: 0 0 var(--s-4); }
@media (max-width: 52rem) { .price-grid, .pair-grid, .check-grid { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .tools.two { grid-template-columns: 1fr; } }
/* pricing: each plan's list in named groups, each a collapsed <details> */
.feat-group { border-top: 1px solid var(--line); }
.feat-group:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.feat-group summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem var(--s-3); padding: var(--s-3) 0; min-height: var(--tap); }
.feat-group summary::-webkit-details-marker { display: none; }
.feat-group summary::after { content: "+"; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--accent-ink); font-weight: 800; font-size: 1.2rem; }
.feat-group[open] summary::after { content: "\2212"; }
.feat-group summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.feat-name { font-weight: 800; color: var(--brand); }
.feat-line { color: var(--muted); font-size: .95rem; }
.feat-group .tools { margin-bottom: var(--s-3); }
.feat-group .tools li:first-child { border-top: 0; padding-top: 0; }
.plan-card .actions, .quiet-card .price + p { margin-top: 0; }
.founders-head { margin-bottom: var(--s-2); }
.founders-lines { margin: 0 0 var(--s-2); padding-left: 1.2rem; }
.founders-lines li { margin-bottom: var(--s-1); }
.report-sample { margin: 0 0 var(--s-4); max-width: 16rem; }
.report-img { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }   /* #100: the real card's SVG */
.sample-svg { display: block; width: 100%; height: auto; }
.report-sample figcaption { margin-top: var(--s-2); }

/* Affiliate checker */
.checker { max-width: 34rem; margin: 1.5rem 0 .5rem; }
.checker label { display: block; font-weight: 600; margin-bottom: .4rem; }
.checker .row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.checker input { flex: 1 1 14rem; font: inherit; font-size: max(1rem, 16px); padding: .75rem .9rem; border: 2px solid var(--field);
  border-radius: var(--radius); background: var(--stone); color: var(--ink); min-height: 44px; }
.checker input::placeholder { color: var(--muted); }
.checker input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); }
.result { list-style: none; padding: 0; margin: 1.5rem 0; max-width: 40rem; }
.result li { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.result progress { grid-column: 1 / -1; }   /* look: shared progress */
.result .num { font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.result .met .num::after { content: " \2713"; color: var(--ok); }

/* public creator page (#188, functions/[login].js): one column, a link-in-bio read; live red only on the live dot */
.creator .wrap { max-width: 40rem; }
.creator-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.creator-head h1 { margin: 0; overflow-wrap: anywhere; }
.live-badge { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line);
  border-radius: 99px; font-weight: 800; color: var(--live-ink); text-decoration: none; }
.live-badge .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--live); }
.pill-link { min-height: 44px; display: inline-flex; align-items: center; }   /* the Wrapped badge: a full tap target */
.creator .lede { margin: var(--s-4) 0 0; }
.creator-sect { margin-top: var(--s-8); }
.creator-sect h2 { font-size: 1.2rem; margin: 0 0 var(--s-2); }
.creator-list, .creator-links, .trophies { list-style: none; margin: 0; padding: 0; }
.creator-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.creator-list a { display: inline-block; min-height: 44px; padding-block: .6rem; margin-block: -.6rem; }
.sched-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .2rem 1rem; }
.sched-list .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.sched-list small { display: block; color: var(--muted); }
.creator-links { display: grid; gap: var(--s-2); }
.creator-links a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--stone); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s-2); }
.trophies li { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; background: var(--stone); }
.trophies .trophy-n { display: block; color: var(--win); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; text-wrap: balance; }   /* word types ("Marathoner") must not spill out of a narrow tile */
.made-with { margin-top: var(--s-12); font-size: var(--t-sm); color: var(--muted); }
.made-with a { color: inherit; }
@media (max-width: 30rem) { .sched-list li { grid-template-columns: 1fr; } }

/* Sidekick Relay (/relay): the free phone-to-OBS app. Real app screenshots, the same console frames as the homepage */
.app-tag { display: flex; align-items: center; gap: var(--s-3); font-weight: 800; color: var(--brand); margin: 0 0 var(--s-4); }
.app-tag img { width: 2.5rem; height: 2.5rem; border-radius: 9px; }
.app-tag span:not(.brand-mark) { font-weight: 400; color: var(--muted); }
.relay-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.relay-hero h1 { max-width: 14ch; }
.button:has(.icon) { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); }
.button .icon { color: currentColor; }
.shot-frame { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.shot-frame img { display: block; width: 100%; height: auto; }
.relay-hero .fine { max-width: 34rem; }
.relay-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }   /* tool pages */
.relay-steps { list-style: none; counter-reset: step; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-6); }
.relay-steps.across { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }   /* /relay: one row */
.relay-steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 var(--s-3); }
.relay-steps li::before { content: counter(step); grid-row: span 2; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent-ink); color: var(--accent-ink); font-weight: 800; }
.relay-steps h3, .relay-steps p { margin: 0; }
.relay-steps h3 { padding-top: .35rem; }
.relay-steps.across h3 { font-size: var(--t-lg); }
.relay-steps p { color: var(--muted); font-size: .95rem; }
.nets { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: var(--s-4); }
.nets .card { padding: 20px; min-width: 0; }
.nets .icon { color: var(--accent-ink); }
.nets h3 { font-size: var(--t-lg); margin: var(--s-2) 0 var(--s-1); }
.nets p { margin: 0; color: var(--muted); font-size: .95rem; }
.feats { list-style: none; margin: var(--s-6) 0 var(--s-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0 var(--s-8); }
.feats li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-content: start; border-top: 1px solid var(--line); padding: var(--s-4) 0; min-width: 0; }
.feats .icon { grid-row: span 2; margin-top: .15rem; color: var(--accent-ink); }
.feats b { color: var(--brand); }
.feats span { color: var(--muted); font-size: .95rem; }
.relay-closer .app-tag { font-weight: 600; color: var(--muted); font-size: var(--t-sm); }
.relay-closer .lede { margin: var(--s-4) 0; }
.relay-closer .built-list { margin-bottom: var(--s-2); }
@media (max-width: 52rem) { .relay-hero .wrap, .relay-split, .nets { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 36rem) {
  .feats { grid-template-columns: 1fr; }
  .files a { flex-direction: column; align-items: flex-start; }
  .net-rows div { grid-template-columns: 1fr; }
  .relay-hero .lede { font-size: var(--t-lg); }
}
.relay-hero .actions [hidden] { display: none; }   /* the second button shows only once functions/relay.js knows the system */
.relay-files { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }
.relay-files a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); }
.relay-connect { max-width: 46rem; margin: var(--s-8) auto 0; }

/* free tools (#201): /tools and /tools/<slug>, both built from site/build.py TOOLS */
.tools-hero .wrap { grid-template-columns: 1fr; }
.tools-hero .lede { max-width: 40rem; }
.tool-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; overflow: hidden; margin-bottom: var(--s-12); }
.tool-feature .tool-text { padding: var(--s-8); }
.tool-feature h2 { margin: 0; }
.tool-feature .actions { margin: var(--s-2) 0 0; }
.tool-feature .tool-pic { margin: 0; align-self: stretch; border-left: 1px solid var(--line); background: var(--paper); }
.tool-feature .tool-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tool-group { margin-bottom: var(--s-12); }
.tool-group h2 { margin: 0; }
.tool-group > .fine { margin: var(--s-1) 0 var(--s-4); }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: var(--s-4); }
.tool-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); padding: 20px; min-width: 0; }
.tool-card .tool-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--soft); }
.tool-icon { color: var(--accent-ink); }
.tool-card .tool-icon .icon { width: 1.25rem; height: 1.25rem; }
.card-sample { position: relative; }
.card-sample .example-tag { position: absolute; top: var(--s-2); right: var(--s-2); }
.tool-text { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.tool-text h2, .tool-text h3 { font-size: var(--t-lg); margin: 0; }
.tool-feature .tool-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tool-text h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.tool-text h3 a { color: var(--brand); text-decoration: none; }
.tool-text h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link, one tab stop */
.tool-text h3 a:focus-visible { outline: none; }
.tool-card:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.tool-card .pill { font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.tool-card.soon h3 a, .tool-card.soon .tool-icon { color: var(--muted); }   /* not out yet: muted, still AA text */
.tool-text p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-text .tool-kind { font-size: var(--t-sm); font-weight: 600; color: var(--accent-ink); }
.tool-text .tool-go { margin-top: auto; display: flex; align-items: center; gap: var(--s-1); color: var(--accent-ink); font-weight: 600; }
.tool-go .icon { width: 1rem; height: 1rem; }
@media (max-width: 52rem) {
  .tool-feature { grid-template-columns: 1fr; }
  .tool-feature .tool-text { padding: var(--s-6) 20px; }
  .tool-feature .tool-pic { border-left: 0; border-top: 1px solid var(--line); order: -1; }
}
.tool-hero .wrap:has(> .tool-icon) { grid-template-columns: 1fr auto; }
.tool-hero .actions { align-items: center; }
.tool-shot { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tool-shot.tool-icon { border: 0; box-shadow: none; padding: var(--s-6); }
.tool-shot.tool-icon .icon { width: 8rem; height: 8rem; opacity: .9; }
.tool-shot .sample-svg { display: block; width: 100%; height: auto; }
.tool-split { align-items: start; }
.tool-who { color: var(--muted); }
.tool-who b { color: var(--brand); }
@media (max-width: 52rem) { .tool-hero .wrap, .tool-hero .wrap:has(> .tool-icon) { grid-template-columns: 1fr; gap: var(--s-6); } .tool-shot.tool-icon { display: none; } }

/* Sidekick Best Time (#186): /best-time, the form and the week drawn by functions/_lib/besttime.js */
.tool-run { padding: var(--s-12) 0 var(--s-8); }
.tool-run h1 { margin: 0 0 var(--s-2); }
.tool-run .lede { max-width: 44rem; }
.bt-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s-3); align-items: end; margin: var(--s-6) 0 var(--s-8); }
.bt-form label { display: grid; gap: var(--s-1); font-weight: 600; color: var(--brand); font-size: var(--t-sm); }
.bt-form label span { font-weight: 400; color: var(--muted); }
.bt-form select, .bt-form input { font: inherit; font-size: max(1rem, 16px); min-height: 48px; padding: .6rem .8rem; color: var(--ink);
  background: var(--stone); border: 1px solid var(--field); border-radius: var(--radius); min-width: 0; width: 100%; }
.bt-form select:focus-visible, .bt-form input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); }
.bt-form .button { min-height: 48px; }
.bt-result h2 { margin: 0 0 var(--s-1); }
.bt-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; margin: var(--s-6) 0; }
.bt-best { list-style: none; counter-reset: slot; margin: var(--s-3) 0; padding: 0; display: grid; gap: var(--s-2); }
.bt-best li { counter-increment: slot; display: grid; grid-template-columns: 2rem 1fr; gap: 0 var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-2); }
.bt-best li::before { content: counter(slot); grid-row: span 2; color: var(--accent-ink); font-weight: 800; font-size: var(--t-xl); }
.bt-best b { color: var(--brand); font-size: var(--t-lg); }
.bt-best span { color: var(--muted); font-size: var(--t-sm); }
.bt-share { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-6); }
.bt-share a { display: inline-flex; align-items: center; min-height: var(--tap); }
.bt-card { margin: 0; }
.bt-card img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.bt-yours { margin: 0 0 var(--s-6); }
.bt-yours ul { margin: var(--s-2) 0; padding-left: 1.2rem; }
.heat-wrap { max-width: 44rem; }
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.heat caption { text-align: left; color: var(--muted); font-size: var(--t-sm); padding-bottom: var(--s-2); }
.heat th { color: var(--muted); font-weight: 600; text-align: center; }
.heat th[scope="row"] { text-align: right; padding-right: var(--s-2); white-space: nowrap; width: 3.5rem; }
.heat td { height: 1.75rem; text-align: center; border-radius: 4px; color: var(--ink); }
.heat .l0, .heat-key .l0 { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.heat .l1, .heat-key .l1 { background: color-mix(in srgb, var(--accent) 18%, var(--stone)); }
.heat .l2 { background: color-mix(in srgb, var(--accent) 40%, var(--stone)); }
.heat .l3 { background: color-mix(in srgb, var(--accent) 65%, var(--stone)); }   /* --ink stays: 5.6:1 light, 7.6:1 dark */
.heat .l4, .heat-key .l4 { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.heat .mine, .heat-key .mine { outline: 2px solid var(--brand); outline-offset: -2px; }
.heat-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-sm); }
.heat-key span { width: 1rem; height: 1rem; border-radius: 3px; display: inline-block; margin-left: var(--s-2); }
@media (max-width: 52rem) { .bt-form { grid-template-columns: 1fr 1fr; } .bt-top { grid-template-columns: 1fr; gap: var(--s-4); } }
@media (max-width: 36rem) { .bt-form { grid-template-columns: 1fr; } .heat { border-spacing: 2px; } .heat th[scope="row"] { width: 3rem; } }

/* Sidekick Schedule (#187): /schedule, the forms and the three images drawn by functions/_lib/schedtool.js */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sch-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; margin-bottom: var(--s-4); }
.sch-manual { margin: 0 0 var(--s-8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sch-manual summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); min-height: var(--tap); display: flex; align-items: center; }
.sch-manual summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.sch-manual form { padding: var(--s-2) 0 var(--s-6); }
.sch-who { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 0 var(--s-4); }
.sch-rows { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.sch-row { display: grid; grid-template-columns: 6rem 8.5rem minmax(0, 1fr); gap: var(--s-2); }
.sch-row select, .sch-row input { font: inherit; font-size: max(1rem, 16px); min-height: 48px; padding: .5rem .7rem; color: var(--ink);
  background: var(--stone); border: 1px solid var(--field); border-radius: var(--radius); width: 100%; min-width: 0; }
.sch-row select:focus-visible, .sch-row input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); }
.sch-row input::placeholder { color: var(--muted); }
.sch-result h2 { margin: var(--s-6) 0 var(--s-3); }
.sch-looks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); }
.sch-looks span { color: var(--muted); }
.sch-looks a { display: inline-flex; align-items: center; min-height: var(--tap); }
.sch-looks a[aria-current] { color: var(--brand); font-weight: 800; text-decoration: none; }
.sch-pics { display: grid; grid-template-columns: 2fr 1.2fr .75fr; gap: var(--s-6); align-items: start; margin: var(--s-4) 0; }
.sch-pic { margin: 0; min-width: 0; }
.sch-pic img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.sch-pic figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-top: var(--s-2); color: var(--muted); font-size: var(--t-sm); }
.sch-pic figcaption b { color: var(--brand); }
.sch-pic .button { margin-left: auto; }
@media (max-width: 52rem) { .sch-form { grid-template-columns: 1fr 1fr; } .sch-pics { grid-template-columns: 1fr 1fr; } .sch-wide { grid-column: 1 / -1; } }
@media (max-width: 36rem) { .sch-form, .sch-who { grid-template-columns: 1fr; } .sch-row { grid-template-columns: 5.5rem 1fr; } .sch-row label:last-child { grid-column: 1 / -1; } }

/* legal + plain pages */
.doc { padding: 2.5rem 0 3rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2rem; scroll-margin-top: 1rem; }
.doc li { margin-bottom: .4rem; max-width: 62ch; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; margin-top: 1.5rem; max-width: 62ch; background: var(--stone); }
.toc p { margin: 0 0 .3rem; font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--accent-ink); }
@media (max-width: 36rem) { .toc ul { columns: 1; } }
.note { background: var(--stone); border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 62ch; }

/* long code strings (OAuth scope URLs, EventSub types on /privacy) wrap instead of widening the page on phones */
main code { overflow-wrap: anywhere; }

/* footer */
footer { background: var(--brand-deep); color: var(--foot-ink); padding: var(--s-8) 0 var(--s-6); font-size: .95rem; }
footer a { color: var(--on-accent); }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-8); }
footer .brand { color: var(--on-accent); }
footer .brand-mark { background: var(--foot-ink); }   /* the footer stays deep purple in both schemes */
footer .brand-mark::after { background: var(--brand-deep); }
footer .about p { margin: var(--s-2) 0 0; font-size: var(--t-sm); }
footer nav { display: grid; align-content: start; }
footer nav h2 { font-size: var(--t-sm); font-weight: 600; color: var(--foot-ink); margin: 0 0 var(--s-1); letter-spacing: 0; }
footer nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; overflow-wrap: anywhere; }
footer nav a:hover { text-decoration: underline; }
footer a:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 2px; }
footer .disclaimer { grid-column: 1 / -1; margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--foot-line); font-size: var(--t-sm); max-width: none; }
@media (max-width: 52rem) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .about { grid-column: 1 / -1; } }
@media (max-width: 52rem), (pointer: coarse) {   /* phones, tablets and any touch screen: 44px rows (mobile pass r11) */
  footer nav a { min-height: var(--tap); padding: var(--s-1) 0; line-height: 1.3; }
}

/* ---- Motion (DESIGN.md "Motion"). Each block stands alone: delete one and the page still works. ---- */

/* (button press, lift and color motion live in the shared components block) */

/* MOTION: links, nav and form fields change color in 200ms instead of snapping */
@media (prefers-reduced-motion: no-preference) {
  a, .qs summary { transition: color var(--dur-ui) ease; }
  .hero-check input, .checker input { transition: border-color var(--dur-ui) ease; }
  .feat-group summary { transition: color var(--dur-ui) ease; }
}

/* MOTION: the hero dashboard preview rises in once on load (opacity + 12px, 500ms, no loop) */
@media (prefers-reduced-motion: no-preference) {
  .hero .console { animation: sk-rise var(--hero-rise) var(--ease-out) both; }
}

/* MOTION: FAQ answers open smoothly where ::details-content exists; elsewhere they open instantly */
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .qs details::details-content, .feat-group::details-content { block-size: 0; overflow: clip; opacity: 0;
    transition: block-size var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out),
      content-visibility var(--dur-ui) allow-discrete; }
  .qs details[open]::details-content, .feat-group[open]::details-content { block-size: auto; opacity: 1; }
}

/* MOTION: page-to-page crossfade (cross-document View Transitions). The header and logo are named, so they hold
   still while only the page body fades. Browsers without support just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: site-header; }
  .top .brand { view-transition-name: site-logo; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-ui); animation-timing-function: var(--ease-out); }
}

@keyframes sk-rise { from { opacity: 0; transform: translateY(var(--reveal-shift)); } to { opacity: 1; transform: none; } }


/* one top rhythm (#581 cohesion): the first section of every page starts the same distance under the header, whatever
   its kind (hero, tool, page head, legal, band) */
main > section:first-child { padding-top: var(--s-12); }
@media (max-width: 36rem) { main > section:first-child { padding-top: var(--s-8); } }
