/* tokens: the only place a colour value may appear (tools/gate.mjs checks). Matches the Synago app. */
:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --line: #e4dfd5;
  --field-line: #767a83;
  --ink: #1a1c20;
  --ink-2: #3d4047;
  --muted: #5f636c;
  --accent: #2f4f86;
  --accent-hover: #26426f;
  --accent-ink: #ffffff;
  --sol: #d9772b;
  --acc-1: #3b6fd8;
  --acc-2: #d9534f;
  --acc-3: #2e9e6b;
  --acc-4: #8a5cd6;
  --acc-5: #e0a020;
  --acc-6: #1f9fb4;
  --panel: #efece5;
  --sol-glow: rgba(217, 119, 43, 0.2);
  --tile-ink: #ffffff;
  --tile-shine: rgba(255, 255, 255, 0.24);

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 5.5rem);
  --measure: 44rem;
  --shadow: rgba(26, 28, 32, 0.18);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1d2026;
    --line: #2e323a;
    --field-line: #8b909a;
    --ink: #eceae5;
    --ink-2: #cfcdc7;
    --muted: #a3a7b0;
    --accent: #9bb8ee;
    --accent-hover: #b6cbf3;
    --accent-ink: #10131a;
    --shadow: rgba(0, 0, 0, 0.55);
    --panel: #101216;
    --sol-glow: rgba(240, 160, 90, 0.22);
  }
}
/* end tokens */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--step-2); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--space-2); }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 0.75rem 1rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* site bar */
.site { border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--font-display); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.mark path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.mark .m1 { stroke: var(--acc-1); } .mark .m2 { stroke: var(--acc-2); } .mark .m3 { stroke: var(--acc-3); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sol); text-decoration-thickness: 2px; }
.nav { margin-left: auto; }
/* Log in: the way into the app (app.synago.ca), a quiet button beside the menu */
.login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border: 1px solid var(--field-line); border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--font-body); white-space: nowrap; }
.login:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .login { order: 1; margin-left: auto; } .nav { order: 2; flex-basis: 100%; margin-left: 0; } }

.crumbs { padding-top: var(--space-3); font-size: 0.95rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; padding-inline: 0.5rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* the opening (src/opening.js): the name, twelve accounts dropping in, one line */
.opening { position: relative; display: grid; grid-template-rows: minmax(11rem, 1fr) auto; min-height: max(calc(100svh - 4.75rem), 36rem); padding-block: var(--space-2) var(--space-4); }
@media (max-width: 720px) { .opening { min-height: max(calc(100svh - 7rem), 38rem); grid-template-rows: minmax(13rem, 1fr) auto; } }
.opening-art { position: absolute; inset: 0; pointer-events: none; }
.opening-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.opening-text { grid-row: 2; position: relative; display: grid; justify-items: center; text-align: center; gap: var(--space-2); }
.opening-mark { font: 600 clamp(4.5rem, 2.6rem + 8.5vw, 11rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.opening-join { display: block; width: 1px; height: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem); }
.opening-line { font: 600 clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem)/1.15 var(--font-display); }
.opening-sub { max-width: 36rem; color: var(--ink-2); }
.opening-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-1); }
.opening-more { display: inline-flex; align-items: center; min-height: 44px; }
.opening-replay { position: absolute; right: 0; bottom: var(--space-2); min-height: 44px; padding: 0.5rem 1rem; font: 600 0.95rem/1 var(--font-body); color: var(--ink-2); background: transparent; border: 1px solid var(--field-line); border-radius: 999px; cursor: pointer; }
.opening-replay:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 640px) { .opening-replay { position: static; justify-self: center; margin-top: var(--space-2); grid-row: 3; } }

/* An account card: an app-style tile in the account's colour, the service named in words. No company logo. */
.token { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.3em 0.85em 0.3em 0.3em; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px var(--shadow); font: 600 clamp(12px, 0.55rem + 0.45vw, 15px)/1.1 var(--font-body); color: var(--ink); white-space: nowrap; opacity: 0; }
.token small { font: 500 0.86em/1 var(--font-body); color: var(--muted); }
.token .tile { width: 1.8em; height: 1.8em; border-radius: 999px; }
@media (max-width: 640px) { .token small { display: none; } .token { padding: 0.25em 0.65em 0.25em 0.25em; } }
.dot-5 { background: var(--acc-5); } .dot-6 { background: var(--acc-6); }

.tile { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; flex: none; border-radius: 0.5em; background-image: linear-gradient(to bottom, var(--tile-shine), transparent); }
.tile .g { width: 58%; height: 58%; fill: none; stroke: var(--tile-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-1 { background-color: var(--acc-1); } .tile-2 { background-color: var(--acc-2); } .tile-3 { background-color: var(--acc-3); }
.tile-4 { background-color: var(--acc-4); } .tile-5 { background-color: var(--acc-5); } .tile-6 { background-color: var(--acc-6); }
@media (forced-colors: active) { .tile { forced-color-adjust: none; } }

.opening-lines path { fill: none; stroke-linecap: round; }
/* dash 1, gap 2: at offset 1 nothing shows, not even a round cap at the far end */
.strand { stroke-width: 2.5; stroke-dasharray: 1 2; }
/* a bright bead rides the tip of each thread as it draws, then fades at Sol */
.bead { stroke-width: 6; stroke-dasharray: 0.035 2; stroke-dashoffset: 0.05; }
.strand.a1, .bead.a1 { stroke: var(--acc-1); } .strand.a2, .bead.a2 { stroke: var(--acc-2); } .strand.a3, .bead.a3 { stroke: var(--acc-3); }
.strand.a4, .bead.a4 { stroke: var(--acc-4); } .strand.a5, .bead.a5 { stroke: var(--acc-5); } .strand.a6, .bead.a6 { stroke: var(--acc-6); }
.seed.a1 { fill: var(--acc-1); } .seed.a2 { fill: var(--acc-2); } .seed.a3 { fill: var(--acc-3); }
.seed.a4 { fill: var(--acc-4); } .seed.a5 { fill: var(--acc-5); } .seed.a6 { fill: var(--acc-6); }
.seed, .sol-c, .ring { transform-box: fill-box; transform-origin: center; }
.one { stroke: var(--accent); stroke-width: 6; stroke-dasharray: 1 2; }
.sol-c { fill: var(--sol); stroke: var(--bg); stroke-width: 4; }
.ring { fill: none; stroke: var(--sol); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }

/* the site bar steps aside for the first play, and comes back at once on keyboard focus */
.opening-play .site { opacity: 0; translate: 0 -0.75rem; }
.opening-play .site:focus-within { opacity: 1; translate: 0 0; }
.js .site { transition: opacity 500ms var(--ease), translate 500ms var(--ease); }
.opening-play .opening.playing .opening-replay { visibility: hidden; }
.opening-play .opening:not(.done) .opening-line, .opening-play .opening:not(.done) .opening-sub, .opening-play .opening:not(.done) .opening-actions { opacity: 0; }

/* story: the hero and the first two chapters beside one stage (src/stage.mjs, src/stage.js) */
.story { display: grid; column-gap: var(--space-5); }
.hero { padding-block: var(--space-5) var(--space-4); }
.hero-text { display: grid; gap: var(--space-3); }
.hero-actions { margin-top: var(--space-1); }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story > :not(.stage) { grid-column: 1; }
  .stage { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: 7svh; height: min(84svh, 46rem); margin-top: var(--space-4); }
  .chapter { min-height: 72svh; align-content: center; }
}
@media (max-width: 959.98px) {
  .stage { position: sticky; top: 0; z-index: 2; height: 46svh; min-height: 18rem; margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); background: var(--bg); border-bottom: 1px solid var(--line); }
  html:has(.stage) { scroll-padding-top: calc(46svh + 1rem); }
}
@media (max-width: 959.98px) and (max-height: 520px) {
  .stage { position: relative; height: 80svh; }
  html:has(.stage) { scroll-padding-top: 0; }
}

/* the stage: an illustration, aria-hidden. Without script --t, --u and --ti are 1: the sorted picture. */
.stage { container-type: size; --t: 1; --u: 1; overflow: hidden; }
.js .stage { --t: 0; --u: 0; }
.js .stage:not(.ready) { visibility: hidden; }
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-lines path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lane-path.a1 { stroke: var(--acc-1); } .lane-path.a2 { stroke: var(--acc-2); }
.lane-path.a3 { stroke: var(--acc-3); } .lane-path.a4 { stroke: var(--acc-4); }
/* Once Sol starts sorting, the threads have done their work and give the left side to Sol's views. */
.lane-path { opacity: clamp(0, calc(1 - var(--u) * 5), 1); }
.junction { stroke: var(--accent); stroke-width: 5; opacity: clamp(0, min(calc(var(--t) * 3 - 2), calc(1 - var(--u) * 5)), 1); }
.spine { stroke: var(--accent); stroke-width: 5; opacity: clamp(0, calc(var(--t) * 3 - 2), 1); }

/* The Synago window: opens as the email starts to arrive. Its left edge is the one thread (.spine). */
.win {
  --open: clamp(0, calc(var(--t) * 3 - 0.3), 1);
  position: absolute; left: calc(var(--win-x) * 1cqw); right: 1cqw; top: 1.5cqh; bottom: 2cqh; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0;
  /* a tucked shadow (negative spread), so the stage's edge never cuts it off */
  box-shadow: 0 8px 18px -8px var(--shadow);
  opacity: var(--open); scale: calc(0.96 + 0.04 * var(--open)); transform-origin: left center;
}
.win-head {
  position: absolute; inset: 0 0 auto 0; height: 7cqh; display: flex; align-items: center; gap: 0.5em; padding: 0 0.8em 0 1.1em;
  background: var(--surface); border-bottom: 1px solid var(--line);
  font: 600 clamp(11px, 2.2cqw, 14px)/1 var(--font-body); color: var(--ink); white-space: nowrap;
}
.win-accounts { display: inline-flex; gap: 0.3em; margin-left: auto; }
.win-count { min-width: 1.7em; padding: 0.25em 0.45em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.85em; text-align: center; font-variant-numeric: tabular-nums; }
/* Sol reads down the inbox before anything moves (u 0.02 to 0.27, SORT_START in stage.js). */
.scan {
  --s: clamp(0, calc((var(--u) - 0.02) * 4), 1);
  position: absolute; left: 0; right: 0; top: 0; height: 20cqh; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--sol-glow) 45%, var(--sol-glow) 55%, transparent);
  translate: 0 calc(-20cqh + var(--s) * 118cqh); opacity: calc(var(--s) * (1 - var(--s)) * 4);
}

.item, .chip, .view, .rail { position: absolute; left: 0; top: 0; }
.item {
  --ti: 1;
  --ui: 1;
  /* Gathering, each email swoops through the meeting point (a curve from its lane via --qx, --qy to its row).
     Sorting, emails heading down drift right and emails heading up drift left, so they pass beside each other. */
  --x: calc((1 - var(--ti)) * (1 - var(--ti)) * var(--ax) + 2 * (1 - var(--ti)) * var(--ti) * var(--qx) + var(--ti) * var(--ti) * var(--bx) + var(--dx, 0) * var(--ui) * (1 - var(--ui)) * 12);
  --y: calc((1 - var(--ti)) * (1 - var(--ti)) * var(--ay) + 2 * (1 - var(--ti)) * var(--ti) * var(--qy) + var(--ti) * var(--ti) * var(--by) + (var(--cy) - var(--by)) * var(--ui));
  --lift: calc(var(--ti) * (1 - var(--ti)) * 4 + var(--ui) * (1 - var(--ui)) * 4);
  z-index: calc(1 + var(--lift) * 5);
  box-shadow: 0 calc(var(--lift) * 6px) calc(var(--lift) * 18px) var(--shadow);
  translate: calc(var(--x) * 1cqw) calc(var(--y) * 1cqh - 50%);
  scale: calc(1 + var(--lift) * 0.03);
  width: 44cqw; display: flex; align-items: center; gap: 0.5em; padding: 0.42em 0.65em;
  font: 500 clamp(11px, 2.3cqw, 14px)/1.2 var(--font-body); color: var(--ink); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.js .item { --ti: 0; --ui: 0; }
.item .text { flex: 1; min-width: 0; display: grid; }
.item .from, .item .label { overflow: hidden; text-overflow: ellipsis; }
.item .from { display: none; font-weight: 700; font-size: 0.9em; }
.item .meta { color: var(--muted); font-size: 0.86em; }
.stage .dot { width: 0.6em; height: 0.6em; flex: none; transform: none; }
.dot-4 { background: var(--acc-4); }
@container (max-width: 520px) { .item .meta { display: none; } .item { padding: 0.35em 0.55em; } }
/* A tall stage has room for the sender, as in the app's own rows. */
@container (min-height: 640px) { .item .from { display: block; } .item .label { color: var(--ink-2); } .item { line-height: 1.15; } }

/* An account rides its lane, travels with the gather to head its section of the one inbox, and gives
   way to Sol's views while Sol reads. */
.chip {
  translate: calc((3 + 51 * var(--t)) * 1cqw) calc((var(--ay) + (var(--by) - var(--ay)) * var(--t)) * 1cqh - 50%);
  opacity: clamp(0, calc(1 - var(--u) * 4), 1);
  display: flex; align-items: center; gap: 0.45em; font: 600 clamp(11px, 2.1cqw, 13px)/1 var(--font-body); color: var(--ink); white-space: nowrap;
}
.chip small { font: 500 1em/1 var(--font-body); color: var(--muted); }
.stage .g { flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.view .g, .rail .g { width: 1.1em; height: 1.1em; stroke: var(--sol); }
/* Sol's views head the rows once sorted. */
.view {
  translate: calc(var(--bx) * 1cqw) calc(var(--cy) * 1cqh - 50%); opacity: clamp(0, calc((var(--u) - 0.27) * 4), 1);
  display: inline-flex; align-items: center; gap: 0.4em; padding-left: 0.2em; white-space: nowrap;
  font: 700 clamp(11px, 2.1cqw, 13px)/1 var(--font-body); color: var(--ink-2);
}
/* The views pinned beside the inbox, as in the app's side rail. Each count climbs as Sol files the email. */
.rail {
  --r: clamp(0, calc((var(--u) - 0.05) * 5), 1);
  --pulse: calc(clamp(0, calc((var(--u) - 0.02) * 4), 1) * (1 - clamp(0, calc((var(--u) - 0.02) * 4), 1)) * 4);
  width: 42cqw; translate: calc(4cqw - 3cqw * (1 - var(--r))) calc(50cqh - 50%); opacity: var(--r);
  display: grid; grid-auto-rows: 6.5cqh; align-items: center;
  font: 600 clamp(11px, 2.1cqw, 13px)/1.1 var(--font-body); color: var(--ink);
}
.rail-head { display: flex; align-items: center; gap: 0.5em; color: var(--ink-2); }
.rail-head .sol-dot { width: 0.85em; height: 0.85em; scale: calc(1 + var(--pulse) * 0.5); box-shadow: 0 0 0 calc(var(--pulse) * 6px) var(--sol-glow); }
.rail-row { display: flex; align-items: center; gap: 0.5em; height: 5.2cqh; padding: 0 0.6em; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.rail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-count { min-width: 1.7em; padding: 0.2em 0.4em; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.9em; text-align: center; font-variant-numeric: tabular-nums; }
.sol-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--sol); }

.badge { display: none; margin-left: auto; padding: 0.15em 0.5em; border: 1px solid var(--sol); border-radius: 999px; font-size: 0.82em; color: var(--ink); }
.badge > span { display: none; }
.stage.asking[data-ask="waiting"] .badge, .stage[data-ask="approve"] .badge, .stage[data-ask="decline"] .badge { display: inline-flex; }
.stage[data-ask="waiting"] .badge-draft, .stage[data-ask="approve"] .badge-sent, .stage[data-ask="decline"] .badge-kept { display: inline; }
.stage.asking[data-ask="waiting"] .item-ask .meta, .stage[data-ask="approve"] .item-ask .meta, .stage[data-ask="decline"] .item-ask .meta { display: none; }
.stage.asking .item-ask { border-color: var(--sol); box-shadow: 0 0 0 1px var(--sol); }

@media (prefers-reduced-motion: no-preference) {
  .js .stage.ready .stage-lines { animation: wipe 900ms var(--ease) both; }
  /* backwards, not both: a held end frame would pin opacity at 1 and stop the labels fading during the sort */
  .js .stage.ready .item, .js .stage.ready .chip { animation: settle 420ms var(--ease) backwards; animation-delay: calc(250ms + var(--n, 0) * 70ms); }
  .badge, .item-ask { transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
  /* the answer lands on the email itself */
  .stage[data-ask="approve"] .badge-sent, .stage[data-ask="decline"] .badge-kept { display: inline-block; animation: pop 420ms var(--ease); }
}
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
@keyframes pop { 0% { scale: 0.6; opacity: 0; } 60% { scale: 1.15; opacity: 1; } 100% { scale: 1; } }

/* the demonstration: real buttons, the result in a status line */
.try { max-width: var(--measure); margin-block: var(--space-2) var(--space-4); display: grid; gap: var(--space-2); }
.try-kicker { font: 600 var(--step-1)/1.3 var(--font-display); }
.proposal { display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sol); border-radius: var(--radius); }
.proposal-from { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.proposal-actions:not(:has(button:not([hidden]))) { display: none; }
.proposal-result { font-weight: 600; }
.proposal-result:empty { display: none; }
.button.button-quiet { background: transparent; color: var(--accent); border: 1px solid var(--field-line); }
.button.button-quiet:hover { background: var(--bg); color: var(--accent-hover); }
.try-note { font-size: 0.95rem; color: var(--muted); }

.page-head { display: grid; gap: var(--space-3); max-width: var(--measure); padding-block: var(--space-4) var(--space-4); }
.answer { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.byline { font-size: 0.95rem; color: var(--muted); }
.byline a { color: var(--muted); }

/* content bands */
.band { max-width: var(--measure); padding-block: var(--space-4); border-top: 1px solid var(--line); display: grid; gap: var(--space-2); }
.band > h2 { margin-bottom: var(--space-1); }
.lead { color: var(--ink); }

.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.kinds li { display: grid; grid-template-columns: 0.85rem 1fr; gap: 0.85rem; align-items: baseline; }
.dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; transform: translateY(0.05em); }
.dot-1 { background: var(--acc-1); } .dot-2 { background: var(--acc-2); } .dot-3 { background: var(--acc-3); }

/* tables: real rows on wide screens, labelled stacks on phones */
.facts { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; margin-top: var(--space-1); }
.facts caption { text-align: left; font-weight: 600; color: var(--ink-2); padding-bottom: var(--space-1); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.facts thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--field-line); }
.facts tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .facts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .facts tr { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  .facts th, .facts td { display: block; border: 0; padding: 0.15rem 0; }
  .facts tbody th { font-size: 1.05rem; padding-bottom: 0.35rem; }
  .facts td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

/* buttons and the early access form */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.75rem 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font: 600 1.05rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.button:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

.join { max-width: var(--measure); margin-block: var(--space-4) var(--space-5); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); display: grid; gap: var(--space-2); scroll-margin-top: var(--space-3); }
.join-form { display: grid; gap: var(--space-3); margin-top: var(--space-1); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field input {
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--surface);
  padding: 0.75rem 0.9rem; min-height: 48px; border: 1px solid var(--field-line); border-radius: 8px; width: 100%; max-width: 26rem;
}
.consent { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; font-size: 1rem; line-height: 1.5; }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.fine { font-size: 0.95rem; color: var(--muted); }
.fine a { color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.trap input { font-size: 16px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--space-4); padding-block: var(--space-4); font-size: 0.95rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: var(--space-2); }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; padding: 0; list-style: none; }
.site-foot a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .dot { forced-color-adjust: none; }
}

/* stage positions, generated from src/stage.mjs */
.stage { --bx: 54; --qx: 40; --qy: 50; --win-x: 52; }
.item-budget { --ax: 4; --ay: 12; --by: 19.98; --cy: 39.92; --dx: 1; --n: 1; }
.item-timesheet { --ax: 50; --ay: 12; --by: 26.63; --cy: 46.58; --dx: 1; --n: 4; }
.item-quote { --ax: 27; --ay: 23; --by: 33.28; --cy: 53.23; --dx: 1; --n: 7; }
.item-hydro { --ax: 4; --ay: 45; --by: 46.58; --cy: 19.98; --dx: -1; --n: 2; }
.item-report { --ax: 50; --ay: 45; --by: 53.23; --cy: 66.53; --dx: 1; --n: 5; }
.item-photos { --ax: 27; --ay: 56; --by: 59.88; --cy: 93.13; --dx: 1; --n: 8; }
.item-phone { --ax: 4; --ay: 78; --by: 73.18; --cy: 26.63; --dx: -1; --n: 3; }
.item-pizza { --ax: 50; --ay: 78; --by: 79.83; --cy: 73.18; --dx: -1; --n: 6; }
.item-trip { --ax: 27; --ay: 89; --by: 86.48; --cy: 79.83; --dx: -1; --n: 9; }
.chip-work { --ay: 4; --by: 13.32; --n: 0; }
.chip-personal { --ay: 37; --by: 39.92; --n: 1; }
.chip-family { --ay: 70; --by: 66.53; --n: 2; }
.view-bills { --cy: 13.32; }
.view-work { --cy: 33.28; }
.view-school { --cy: 59.88; }
.view-family { --cy: 86.48; }
