@font-face { font-family: "Plex Sans"; src: url("/fonts/sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f5f7fc;
  --card: #ffffff;
  --card-2: #f4f6fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #5b6478;
  --line: #e3e8f1;
  --line-strong: #cbd3e1;
  --grid: #edf1f7;

  --brand: #4f46e5;
  --brand-2: #2563eb;
  --brand-ink: #ffffff;
  --brand-bg: #eef0ff;
  --sun: #f59e0b;
  --sunrise: linear-gradient(100deg, #f59e0b 0%, #f97316 45%, #ec4899 100%);
  --brandline: linear-gradient(100deg, #4f46e5, #2563eb 55%, #06b6d4);
  --brand-grad: linear-gradient(135deg, #4f46e5, #2563eb);

  --hold: #e11d48;
  --hold-bg: #fff1f3;
  --hold-line: #fecdd6;
  --mid: #b45309;
  --mid-bg: #fff6e0;
  --ready: #047857;
  --ready-bg: #e6f8ef;
  --ready-line: #a7e3c9;
  --action: linear-gradient(135deg, #047857, #0a8f68);
  --action-flat: #047857;
  --action-hover: linear-gradient(135deg, #03694c, #08805d);
  --action-ink: #ffffff;
  --locked: #eceff5;
  --locked-ink: #5b6478;
  --series-peers: #2563eb;
  --series-own: #f97316;
  --band: #eef0ff;
  --focus: #4f46e5;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px -16px rgba(79, 70, 229, .28);
  --wash-a: rgba(79, 70, 229, .14);
  --wash-b: rgba(245, 158, 11, .16);
  --wash-c: rgba(6, 182, 212, .10);
  --glass: rgba(255, 255, 255, .72);

  --r-1: 8px;
  --r-2: 16px;
  --r-3: 24px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
/* One bright theme on purpose, whatever the system setting. */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 32rem at 8% -6%, var(--wash-a), transparent 60%),
    radial-gradient(44rem 28rem at 96% 2%, var(--wash-b), transparent 62%),
    radial-gradient(50rem 30rem at 60% 110%, var(--wash-c), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.top, main, .foot { max-width: 1200px; margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 720px) { .top, main, .foot { padding-inline: var(--s-5); } }
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); flex-wrap: wrap;
  background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  max-width: none; padding-inline: max(var(--s-4), calc((100% - 1200px) / 2 + var(--s-5)));
}
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; }
.brand img { border-radius: 7px; box-shadow: 0 4px 12px -4px rgba(79, 70, 229, .55); }
.mode { font: 500 12px/1.3 var(--mono); padding: 6px var(--s-3); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--card); display: inline-flex; align-items: center; gap: var(--s-2); }
.mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 25%, transparent); }
.foot { padding-block: var(--s-6) var(--s-7); color: var(--ink-3); font-size: 13px; display: grid; gap: var(--s-2); max-width: 1200px; }
.foot p { max-width: 90ch; }
.loading { color: var(--ink-3); padding-block: var(--s-7); }

.kicker { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: var(--r-1); padding: var(--s-2) var(--s-3); min-height: 44px; cursor: pointer; font-weight: 600; font-size: 14px; transition: border-color .15s, background-color .15s, box-shadow .15s, transform .1s; }
.btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-bg); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.go { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-lift); }
.release { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); width: 100%; min-height: 56px; padding-inline: var(--s-5); border-radius: var(--r-2); font: 600 18px/1.2 var(--sans); border: 0; text-decoration: none; transition: background .2s, box-shadow .2s, transform .1s; }
.release svg { flex: none; }
.release.locked { background: var(--locked); color: var(--locked-ink); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.release.ready { background: var(--action); color: var(--action-ink); cursor: pointer; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--action-flat) 70%, transparent); }
.release.ready:hover:not(:disabled) { background: var(--action-hover); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--action-flat) 80%, transparent); }
.release.ready:active:not(:disabled) { transform: translateY(1px); }
.release.ready:disabled { opacity: .7; cursor: progress; }
.start-btn { width: auto; }
.release.ready.start-btn { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lift); }
.release.ready.start-btn:hover:not(:disabled) { background: var(--brand-grad); filter: brightness(1.08); }
.linkish { background: none; border: 0; padding: var(--s-2) 0; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.linkish:hover { color: var(--brand); }

/* ---------- Landing and guided test ---------- */
.landing { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-4); }
.landing-copy { min-width: 0; }
.landing .kicker { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-3); border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow); }
.landing .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sunrise); }
.landing h1 { font-size: clamp(36px, 6.2vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; max-width: 16ch; margin-top: var(--s-4); }
.landing .lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 54ch; margin-top: var(--s-4); }
.start { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; margin-top: var(--s-5); }
.start small { color: var(--ink-3); font-size: 14px; max-width: 44ch; }
.landing .notice { max-width: 60ch; }
.guide-link { margin-top: var(--s-4); font-size: 15px; color: var(--brand); }
.guide-link a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-weight: 600; color: var(--brand); }

.landing-side { display: grid; gap: var(--s-4); min-width: 0; }
.hero-art { position: relative; border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--card); border: 1px solid var(--line); }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art figcaption { position: absolute; left: var(--s-3); bottom: var(--s-3); display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-3); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px/1.3 var(--mono); color: var(--ink); max-width: calc(100% - var(--s-5)); }
.hero-art .cap-hold { color: var(--hold); }
.hero-art .cap-ready { color: var(--ready); }
.hero-art .cap-arrow { color: var(--ink-3); }

.story { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--shadow); min-width: 0; }
.story-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--s-4); }
.story ol { display: grid; gap: 0; }
.story li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-1) var(--s-3); padding: var(--s-3) 0 var(--s-3) var(--s-4); border-left: 2px solid var(--line); position: relative; }
.story li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--hold); border: 2px solid var(--card); box-shadow: 0 0 0 3px var(--hold-bg); }
.story li.ready::before { background: var(--ready); box-shadow: 0 0 0 3px var(--ready-bg); }
.story .when { font-size: 14px; font-weight: 500; padding-top: 2px; }
.story .pill { justify-self: start; }
.story p { grid-column: 2; font-size: 15px; color: var(--ink-2); }

.steps { display: grid; gap: var(--s-3); counter-reset: step; }
.steps li { background: var(--card); padding: var(--s-5); border-radius: var(--r-2); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.steps li::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brandline); opacity: .9; }
.steps li:nth-child(2)::after { background: linear-gradient(100deg, #2563eb, #06b6d4); }
.steps li:nth-child(3)::after { background: linear-gradient(100deg, #8b5cf6, #ec4899); }
.steps li:nth-child(4)::after { background: linear-gradient(100deg, #10b981, #84cc16); }
.steps li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.steps .num, .checklist .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--brand); background: var(--brand-bg); margin-bottom: var(--s-3); }
.steps b { display: block; font-weight: 600; font-size: 17px; margin-bottom: var(--s-1); }
.steps span { color: var(--ink-2); font-size: 15px; }

.checklist { display: grid; gap: var(--s-2); counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow); }
.checklist .num { margin: 0; }
.checklist b { display: block; font-weight: 600; }
.checklist p { color: var(--ink-2); font-size: 15px; }

.people { display: grid; gap: var(--s-5); padding-top: var(--s-4); min-width: 0; }
.people-copy { min-width: 0; }
.people h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 20ch; }
.people-copy p { font-size: 17px; color: var(--ink-2); max-width: 52ch; margin-top: var(--s-3); }
.people-photos { display: grid; gap: var(--s-4); min-width: 0; }
.photo { margin: 0; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-3); border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--locked); }
.photo figcaption { margin-top: var(--s-2); font-size: 14px; color: var(--ink-2); }
.people .credit { font-size: 13px; color: var(--ink-3); max-width: 72ch; }

.neighbour-pitch { display: grid; gap: var(--s-5); padding-top: var(--s-6); min-width: 0; }
.neighbour-copy { min-width: 0; }
.neighbour-pitch .lede { font-size: 17px; margin-top: var(--s-3); }
.neighbour-pitch h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 20ch; margin-top: var(--s-3); }
.neighbour-pitch .start { margin-top: var(--s-4); }
.bill-rows { display: grid; }
.story .bill-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: var(--s-3); align-items: baseline; padding: var(--s-2) 0; border-left: 0; border-bottom: 1px solid var(--line); }
.story .bill-rows li::before { content: none; }
.bill-rows li b { text-align: right; font-weight: 500; }
.bill-rows li .mono { color: var(--ink-2); font-size: 14px; }
.bill-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-weight: 600; }
.bill-total span:last-child { color: var(--ready); }
.bill-preview .credit { margin-top: var(--s-3); font-size: 13px; color: var(--ink-3); }

.meter.bill .meter-top b { color: var(--ink); }
.limits ul { display: grid; gap: var(--s-2); margin-top: var(--s-3); font-size: 15px; color: var(--ink-2); }
.limits li { padding-left: var(--s-3); border-left: 3px solid var(--line-strong); }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .people-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .landing { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding-block: var(--s-7) var(--s-4); column-gap: var(--s-7); }
  .landing .steps { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .landing .people { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); column-gap: var(--s-6); align-items: center; padding-top: var(--s-6); }
  .people .credit { grid-column: 1 / -1; }
  .landing .neighbour-pitch { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); align-items: center; }
  .landing.judge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Replay rail ---------- */
.rail { display: grid; gap: var(--s-3); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); margin-block: var(--s-4); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rail::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sunrise); }
.rail .now { display: grid; gap: 2px; min-width: 0; }
.rail .now b { font: 500 clamp(20px, 2.6vw, 24px)/1.15 var(--mono); }
.rail .cap { font-size: 13px; color: var(--ink-3); }
.rail .controls { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.rail .jump { font-size: 13px; color: var(--ink-3); width: 100%; }
.stop { flex-direction: column; align-items: flex-start; gap: 0; text-align: left; line-height: 1.25; border-radius: 12px; }
.stop small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.btn.play { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-lift); min-width: 96px; justify-content: center; }
.btn.play:hover:not(:disabled) { background: var(--brand-grad); filter: brightness(1.08); }
.btn.play.on { background: var(--card); border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn.play.on:hover:not(:disabled) { background: var(--brand-bg); filter: none; }
@media (min-width: 900px) {
  .rail { grid-template-columns: minmax(220px, auto) minmax(0, 1fr); padding: var(--s-4) var(--s-5); }
  .rail .controls { justify-content: flex-end; }
  .rail .jump { width: auto; margin-right: var(--s-1); }
  .rail .play { margin-right: var(--s-3); }
}

/* ---------- Two rules, one month ---------- */
.card.race { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); position: relative; overflow: hidden; }
.card.race::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brandline); }
.card.race h2 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; max-width: 44ch; text-wrap: balance; }
.race-sub { color: var(--ink-2); font-size: 15px; max-width: 72ch; }
.race-rows { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.race-row { display: grid; gap: var(--s-1); min-width: 0; }
.race-label { display: flex; gap: var(--s-2); align-items: baseline; justify-content: space-between; font-size: 13px; min-width: 0; }
.race-label b { font-weight: 600; color: var(--ink); }
.race-label small { font: 500 12px/1.3 var(--mono); color: var(--ink-3); white-space: nowrap; }
.race-label small.held { color: var(--brand); }
.race-label small.paid { color: var(--hold); }
.race-label small.ready { color: var(--ready); }
.race-track, .race-axis { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); column-gap: 2px; min-width: 0; }
.race-track li { min-width: 0; border-radius: 3px; }
.race-track.bars { height: 44px; align-items: end; border-bottom: 1px solid var(--line-strong); }
.race-track.bars li { height: max(2px, calc(var(--h, 0) * 44px)); background: var(--series-own); border-radius: 3px 3px 0 0; }
.race-track.bars .mid { background: #fdba74; }
.race-track.bars .low { background: var(--hold); min-height: 4px; }
.race-track.bars .none { height: 10px; background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 4px); }
.race-track.bars .future { height: 2px; background: var(--line); }
.race-track.lane { height: 20px; }
.race-track.lane .held { background: #a5b4fc; }
.race-track.lane .paid { background: var(--hold); box-shadow: 0 0 0 2px var(--hold-line); position: relative; z-index: 1; }
.race-track.lane .gone { background: var(--hold-line); }
.race-track.lane .gone.low { background: #fb7185; }
.race-track.lane .gone.none { background: repeating-linear-gradient(135deg, #fb7185 0 2px, var(--hold-line) 2px 5px); }
.race-track.lane .ready { background: var(--ready); }
.race-track.lane .released { box-shadow: 0 0 0 2px var(--ready-line); position: relative; z-index: 1; }
.race-track.lane .future { background: var(--grid); }
.race-axis { font: 500 12px/1.3 var(--mono); color: var(--ink-3); }
.race-axis span { grid-row: 1; white-space: nowrap; }
.race-axis .a-from { grid-column: 1 / -1; justify-self: start; }
.race-axis .a-end { grid-column: 1 / -1; justify-self: end; }
.race-axis .a-paid { justify-self: start; color: var(--hold); }
.race-legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: 12px; color: var(--ink-3); margin-top: var(--s-2); }
.race-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.race-legend .k-held { background: #a5b4fc; }
.race-legend .k-paid { background: var(--hold); }
.race-legend .k-gone-low { background: #fb7185; }
.race-legend .k-gone-none { background: repeating-linear-gradient(135deg, #fb7185 0 2px, var(--hold-line) 2px 5px); }
.race-legend .k-ready { background: var(--ready); }
@media (min-width: 720px) {
  .race-row { grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--s-4); align-items: center; }
  .race-label { display: grid; gap: 0; justify-content: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .race-track.bars .is-new { animation: grow .35s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
  .race-track.lane .is-new { animation: blink .45s ease-out both; }
  @keyframes grow { from { transform: scaleY(0); } }
  @keyframes blink { from { opacity: .15; transform: scaleY(.4); } }
}

/* The same race on the landing page, playing by itself. Text boxes keep their height, so the tracks don't jump as the words change. */
.landing-race-slot { min-width: 0; }
.card.landing-race { margin-bottom: 0; padding: var(--s-5); }
.race-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.race-replaying { font-size: 13px; color: var(--ink-3); }
.race-now { color: var(--ink); font-weight: 500; font-size: 14px; }
.race-top .race-replay { margin-left: auto; min-height: 40px; }
.race-body { display: grid; gap: var(--s-2); min-width: 0; }
.landing-race h2 { min-height: 3.6em; }
.landing-race .race-sub { min-height: 4.5em; }
.race-note { font-size: 13px; color: var(--ink-3); max-width: 72ch; border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-2); }
@media (min-width: 720px) {
  .landing-race h2 { min-height: 2.4em; }
  .landing-race .race-sub { min-height: 3em; }
}
@media (min-width: 960px) {
  .landing .landing-race-slot { grid-column: 1 / -1; }
}

/* ---------- Page layout ---------- */
.stage { display: grid; gap: var(--s-4); padding-bottom: var(--s-4); }
.main-col, .side-col { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: var(--s-5); }
  .side-col { position: sticky; top: 84px; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); min-width: 0; box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: var(--s-5); } }
.card h2 { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.card h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.card-head .unit { font-size: 12px; color: var(--ink-3); padding: 2px var(--s-2); border-radius: 999px; background: var(--card-2); }

/* ---------- Verdict ---------- */
.verdict { display: grid; gap: 0; position: relative; overflow: hidden; }
.verdict::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--locked); }
.verdict.tone-hold::before { background: linear-gradient(90deg, #f43f5e, #fb923c); }
.verdict.tone-ready::before { background: linear-gradient(90deg, #10b981, #22d3ee); }
.verdict.tone-quiet::before { background: var(--brandline); }
.verdict.tone-hold { background: linear-gradient(180deg, color-mix(in srgb, var(--hold-bg) 70%, var(--card)) 0, var(--card) 180px); }
.verdict.tone-ready { background: linear-gradient(180deg, color-mix(in srgb, var(--ready-bg) 80%, var(--card)) 0, var(--card) 180px); }
.eyebrow { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: var(--s-3); }
.pill { display: inline-flex; align-items: center; gap: var(--s-1); padding: 4px var(--s-2); border-radius: 999px; font: 500 12px/1.3 var(--mono); letter-spacing: .02em; border: 1px solid transparent; }
.pill.hold { color: var(--hold); background: var(--hold-bg); border-color: var(--hold-line); }
.pill.ready { color: var(--ready); background: var(--ready-bg); border-color: var(--ready-line); }
.pill.quiet { color: var(--brand); background: var(--brand-bg); }
.verdict h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.verdict .sub { color: var(--ink-2); margin-top: var(--s-2); }
.verdict > .release { margin-top: var(--s-5); }
.reasons { margin-top: var(--s-4); display: grid; gap: var(--s-2); font-size: 15px; color: var(--ink-2); }
.reasons li { padding: var(--s-2) var(--s-3); border-left: 3px solid var(--hold); background: var(--card-2); border-radius: 0 var(--r-1) var(--r-1) 0; }
.verdict .after { margin-top: var(--s-3); font-size: 14px; color: var(--ink-3); }
.notice { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-1); font-size: 14px; background: var(--hold-bg); color: var(--hold); border: 1px solid var(--hold-line); overflow-wrap: anywhere; }
.notice.good { background: var(--ready-bg); color: var(--ready); border-color: var(--ready-line); }

/* The rule, drawn */
.meter { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-2); background: var(--card); border: 1px solid var(--line); display: grid; gap: var(--s-2); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: 14px; color: var(--ink-2); }
.meter-top b { font-size: 26px; font-weight: 500; color: var(--hold); }
.meter.is-ready .meter-top b { color: var(--ready); }
.meter-track { position: relative; height: 12px; border-radius: 6px; background: var(--locked); overflow: visible; }
.meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #f43f5e, #fb923c); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.meter.is-ready .meter-fill { background: linear-gradient(90deg, #10b981, #22d3ee); }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.meter-scale { position: relative; height: 16px; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }
.meter-scale .need { position: absolute; transform: translateX(-50%); color: var(--ink); font-weight: 500; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-1); margin-top: var(--s-2); }
.days li { display: grid; gap: 2px; justify-items: center; padding: var(--s-2) 2px; border-radius: 10px; border: 1px solid transparent; min-width: 0; }
.days .d { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.days b { font-size: 13px; font-weight: 500; }
.days .low { background: var(--hold-bg); border-color: var(--hold-line); color: var(--hold); }
.days .mid { background: var(--mid-bg); color: var(--mid); }
.days .ok { background: var(--ready-bg); border-color: var(--ready-line); color: var(--ready); }
.days .none { background: var(--locked); color: var(--ink-3); }
.meter-key { font-size: 12px; color: var(--ink-3); }
@media (max-width: 420px) { .days .d { font-size: 10px; } .days b { font-size: 12px; } }

/* ---------- Evidence chart ---------- */
.legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: 13px; color: var(--ink-2); margin-bottom: var(--s-3); }
.legend i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend .k-own { background: var(--series-own); }
.legend .k-peers { background: var(--series-peers); }
.legend .k-window { background: var(--band); height: 10px; border: 1px solid var(--line-strong); }
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 400 11px var(--mono); fill: var(--ink-3); }
.chart text.end { font-weight: 500; fill: var(--ink); font-size: 12px; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--ink-3); stroke-width: 1; }
.chart .band { fill: var(--band); }
.chart .own { fill: none; stroke: var(--series-own); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .peers { fill: none; stroke: var(--series-peers); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot-own { fill: var(--series-own); stroke: var(--card); stroke-width: 2; }
.chart .dot-peers { fill: var(--series-peers); stroke: var(--card); stroke-width: 2; }
.chart .sun { fill: var(--sun); }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: var(--card); padding: 6px var(--s-2); border-radius: var(--r-1); font: 400 12px/1.5 var(--mono); white-space: nowrap; z-index: 2; box-shadow: var(--shadow-lift); }
.tip b { font-weight: 500; display: block; }

/* ---------- Push on the verdict (tabs) ---------- */
.push-head { display: grid; gap: var(--s-1); margin-bottom: var(--s-3); }
.push .limit { font-size: 13px; color: var(--ink-3); }
.tabs { display: flex; gap: var(--s-1); padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: var(--s-4); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; background: none; border: 0; border-radius: 9px; padding: var(--s-2) var(--s-3); min-height: 40px; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand); background: var(--card); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 8px -2px rgba(79, 70, 229, .25); }
.panel { min-width: 0; }
.push .label { font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-bottom: var(--s-3); overflow-wrap: anywhere; }
.push .text { font-size: 16px; max-width: 68ch; }
.push .text.quiet { color: var(--ink-3); font-size: 14px; margin-top: var(--s-2); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.ask { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--brand-bg); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.ask b { display: block; font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: var(--s-1); }
.ask p { font-size: 15px; color: var(--ink-2); }

/* ---------- AI agent ---------- */
.agent .limit { font-size: 13px; color: var(--ink-3); }
.agent .label { font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-bottom: var(--s-3); overflow-wrap: anywhere; }
.agent .text { font-size: 16px; max-width: 68ch; }
.agent .text.quiet { color: var(--ink-3); font-size: 14px; margin-top: var(--s-2); }
.agent .note { font-size: 13px; color: var(--ink-3); }
.tool-steps { list-style: none; display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 0; min-width: 0; }
.tool-steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-items: baseline; padding-left: var(--s-4); position: relative; font-size: 14px; color: var(--ink-2); min-width: 0; }
.tool-steps li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--ready); }
.tool-steps li.no::before { background: var(--mid); }
.tool-steps code { font: 500 12px/1.6 var(--mono); color: var(--brand); background: var(--brand-bg); padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.tool-steps span { min-width: 0; overflow-wrap: anywhere; }
.proposal { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--card-2); border: 1px solid var(--line); }
.proposal.go { background: var(--ready-bg); border-color: var(--ready-line); }
.proposal b { font-size: 14px; font-weight: 600; color: var(--ink); }
.proposal.go b { color: var(--ready); }
.proposal p { font-size: 15px; color: var(--ink-2); max-width: 68ch; }
.ask .draft { white-space: pre-line; overflow-wrap: anywhere; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
@media (max-width: 520px) {
  .tool-steps li { grid-template-columns: 1fr; }
  .tool-steps code { justify-self: start; }
}

.excuse { display: grid; gap: var(--s-3); min-width: 0; }
.excuse .note { font-size: 13px; color: var(--ink-3); }
.excuse .presets { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.excuse .chip { font-size: 13px; min-height: 40px; padding: 6px var(--s-3); font-weight: 400; border-radius: 999px; }
.excuse textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: var(--s-2) var(--s-3); resize: vertical; transition: border-color .15s, box-shadow .15s; }
.excuse textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.excuse > .btn { justify-self: start; }
.excuse .said { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.still-locked { display: flex; align-items: center; gap: var(--s-2); }
.claims { display: grid; gap: var(--s-2); }
.claim { padding: var(--s-2) var(--s-3); border-radius: 12px; border: 1px solid var(--line); display: grid; gap: var(--s-1); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.claim-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); font-size: 13px; font-weight: 600; }
.claim .kind { color: var(--ink-2); }
.claim .quote { color: var(--ink-3); font-style: italic; }
.claim.not_supported { background: var(--hold-bg); border-color: var(--hold-line); }
.claim.not_supported .finding { color: var(--hold); }
.claim.supported { background: var(--ready-bg); border-color: var(--ready-line); }
.claim.supported .finding { color: var(--ready); }
.claim.mixed .finding, .claim.cant_check .finding { color: var(--ink-3); }

/* ---------- Money ---------- */
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.money div { min-width: 0; padding: var(--s-2) var(--s-3); border-radius: 12px; background: var(--card-2); }
.money dt { font-size: 12px; color: var(--ink-3); }
.money dd { font: 500 clamp(17px, 2vw, 20px)/1.3 var(--mono); }
.bar { display: flex; gap: 2px; height: 10px; margin-top: var(--s-3); border-radius: 5px; overflow: hidden; background: var(--locked); }
.bar span { min-width: 2px; }
.bar .b-held { background: linear-gradient(90deg, #f59e0b, #f97316); }
.bar .b-out { background: linear-gradient(90deg, #10b981, #22d3ee); }
.bar .b-back { background: var(--line-strong); }
.facts { margin-top: var(--s-3); display: grid; gap: var(--s-1); font-size: 13px; color: var(--ink-3); }
.facts span { overflow-wrap: anywhere; }
.miles-wrap { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.miles { display: grid; gap: var(--s-2); }
.miles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); padding: var(--s-2) var(--s-3); border-radius: 12px; border: 1px solid var(--line); }
.miles li.now { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-bg); }
.miles li.paid { background: var(--ready-bg); border-color: var(--ready-line); }
.miles .t { font-weight: 600; font-size: 14px; }
.miles .a { font: 500 14px var(--mono); text-align: right; }
.miles .s { font-size: 12px; color: var(--ink-3); grid-column: 1 / -1; overflow-wrap: anywhere; }
.paypal-record { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); min-width: 0; }
.record { display: grid; gap: var(--s-1); }
.record div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); min-width: 0; }
.record dt { font-size: 13px; color: var(--ink-3); }
.record dd { font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.paypal-record .match { font-size: 14px; padding: 6px var(--s-3); border-radius: 10px; }
.paypal-record .match.yes { background: var(--ready-bg); color: var(--ready); }
.paypal-record .match.no { background: var(--hold-bg); color: var(--hold); }
.paypal-record .note { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.void { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: 14px; }
.timeline { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-2); }
.timeline summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.timeline summary:hover { color: var(--brand); }
.feed { display: grid; gap: var(--s-2); font-size: 14px; padding-top: var(--s-2); }
.feed li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-2); }
.feed .src { font: 400 12px/1.7 var(--mono); color: var(--ink-3); }
.feed .tx { overflow-wrap: anywhere; }
.feed small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Ledger ---------- */
.ledger { margin-bottom: var(--s-4); }
.ledger-note { color: var(--ink-2); font-size: 14px; max-width: 76ch; }
.ledger-note + .ledger-note { margin-top: var(--s-2); }
.ledger-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); align-items: center; }
.ledger-tools .chip { font-size: 14px; border-radius: 999px; }
.ledger-tools .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ledger-tools .csv { margin-left: auto; font-size: 14px; }
.ledger-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.ledger-sum div { padding: var(--s-2) var(--s-3); border-radius: 12px; background: var(--card-2); }
.ledger-sum dt { font-size: 12px; color: var(--ink-3); }
.ledger-sum dd { font: 500 16px/1.3 var(--mono); }
.scroll { overflow-x: auto; margin-top: var(--s-3); }
.ledger-grid { height: 440px; }
.ledger-grid .g-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ledger-grid .g-low { color: var(--hold); font-weight: 500; }
.ledger-grid .g-hold { color: var(--hold); font-weight: 500; }
.ledger-grid .g-ready { color: var(--ready); font-weight: 500; }
.ledger-grid .g-judged { background: var(--band); }
.ledger-status { color: var(--ink-2); font-size: 14px; margin-top: var(--s-3); }

/* ---------- Entrance motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .landing-copy, .landing-side, .steps li, .checklist li { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
  .landing-side { animation-delay: .08s; }
  .steps li:nth-child(2) { animation-delay: .12s; }
  .steps li:nth-child(3) { animation-delay: .18s; }
  .steps li:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
