/* Hunch — dark-first glass UI. Light theme via prefers-color-scheme; all motion off with prefers-reduced-motion. */
:root {
  --bg: #07080a; --bg-2: #0c0e12; --panel: rgba(255, 255, 255, 0.035); --panel-2: rgba(255, 255, 255, 0.06); --panel-solid: #101217;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16); --text: #f3f2ed; --muted: #a3a097; --faint: #8a887f;
  --accent: #ff6b2c; --accent-2: #ffb347; --accent-soft: rgba(255, 107, 44, 0.12); --accent-line: rgba(255, 107, 44, 0.45);
  --brand: #ff6b2c; --accent-fill: #ff6b2c; --on-accent: #1a0d05; --grad-a: #ff6b2c; --grad-b: #ffb347;
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, 0.12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.12); --info: #8ab4ff; --info-soft: rgba(138, 180, 255, 0.12); --idle: #7c7a72;
  --d1: #3d3b36; --d2: #77746b; --grid: rgba(255, 255, 255, 0.045); --blob-a: rgba(255, 107, 44, 0.22); --blob-b: rgba(99, 102, 241, 0.16); --blob-c: rgba(255, 179, 71, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 70px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 107, 44, 0.12);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 18px; --r-sm: 12px; --max: 1360px; color-scheme: dark;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f5f1; --bg-2: #ffffff; --panel: rgba(255, 255, 255, 0.7); --panel-2: rgba(20, 18, 12, 0.04); --panel-solid: #ffffff;
    --line: rgba(20, 18, 12, 0.09); --line-2: rgba(20, 18, 12, 0.18); --text: #15140f; --muted: #5d5a51; --faint: #6b685f;
    --accent: #c2410c; --accent-2: #f59e0b; --accent-soft: rgba(194, 65, 12, 0.06); --accent-line: rgba(194, 65, 12, 0.35);
    --brand: #e8590c; --accent-fill: #f97316; --on-accent: #1a0d05; --grad-a: #c2410c; --grad-b: #b45309;
    --ok: #15803d; --ok-soft: rgba(21, 128, 61, 0.09); --warn: #b45309; --warn-soft: rgba(180, 83, 9, 0.09);
    --bad: #c81e1e; --bad-soft: rgba(200, 30, 30, 0.07); --info: #2563eb; --info-soft: rgba(37, 99, 235, 0.08); --idle: #6b685f;
    --d1: #d6d2c6; --d2: #9a968b; --grid: rgba(20, 18, 12, 0.05); --blob-a: rgba(255, 107, 44, 0.16); --blob-b: rgba(99, 102, 241, 0.1); --blob-c: rgba(245, 158, 11, 0.12);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -26px rgba(40, 30, 10, 0.35);
    --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 26px 60px -28px rgba(40, 30, 10, 0.45), 0 0 0 1px rgba(232, 89, 12, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--accent-fill); color: var(--on-accent); }
[id] { scroll-margin-top: 90px; }

/* ── backdrop: fine grid + three drifting glows ───────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gridlines { position: absolute; inset: -1px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.backdrop::after { content: ""; position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.b1 { width: 620px; height: 620px; background: var(--blob-a); top: -220px; right: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 520px; height: 520px; background: var(--blob-b); top: 240px; left: -220px; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 420px; height: 420px; background: var(--blob-c); top: 60%; right: 10%; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 90px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-80px, -120px) scale(1.08); } }

/* ── buttons ──────────────────────────────────────────────────────────────────────────────────── */
button { font: 600 14px/1 var(--sans); color: var(--text); border: 1px solid var(--line-2); background: var(--panel); border-radius: 12px; padding: 12px 18px; cursor: pointer; position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
button:hover { transform: translateY(-1px); border-color: var(--accent-line); }
button:active { transform: translateY(0); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.primary { color: var(--on-accent); border-color: transparent; background: linear-gradient(135deg, var(--accent-fill), var(--accent-2)); box-shadow: 0 10px 30px -10px var(--accent-line), 0 1px 0 rgba(255, 255, 255, .35) inset; }
button.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
button.primary:hover::after { transform: translateX(120%); }
button.primary:hover { box-shadow: 0 14px 40px -10px var(--accent-line), 0 1px 0 rgba(255, 255, 255, .35) inset; }
button.ghost { background: transparent; border-color: var(--line); backdrop-filter: none; }
button.small { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
button.danger { color: var(--bad); }
button.danger:hover { border-color: var(--bad); }

/* ── nav ──────────────────────────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; color: var(--text); text-decoration: none; }
.logo { height: 30px; width: auto; display: block; }
.logo .d1 { fill: var(--d1); } .logo .d2 { fill: var(--d2); } .logo .d3 { fill: var(--brand); }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: var(--panel-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gh { color: var(--muted); display: inline-flex; padding: 8px; border-radius: 10px; border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.gh:hover { color: var(--text); border-color: var(--line-2); }
.phase { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; padding: 8px 12px 8px 26px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); position: relative; color: var(--muted); }
.phase::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--idle); }
.phase.busy { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.phase.busy::before { background: var(--accent); animation: ping 1.2s ease-out infinite; }
.phase.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.phase.ok::before { background: var(--ok); }
.phase.bad { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.phase.bad::before { background: var(--bad); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* ── hero ─────────────────────────────────────────────────────────────────────────────────────── */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px 28px 40px; overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; margin: 26px 0 22px; }
.grad { background: linear-gradient(92deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-a) 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 600px; margin: 0 0 30px; line-height: 1.6; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta button { padding: 14px 22px; font-size: 15px; }
.mission-line { margin: 26px 0 6px; font-size: 13.5px; color: var(--muted); }
.k { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-right: 8px; }
.fineprint { color: var(--faint); font-size: 12.5px; max-width: 620px; margin: 0; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); inset: 0; animation: spin 60s linear infinite; }
.o2 { inset: 13%; border-style: solid; border-color: var(--line); animation-duration: 45s; animation-direction: reverse; }
.o3 { inset: 27%; border-color: var(--accent-line); opacity: .5; animation-duration: 30s; }
@keyframes spin { to { transform: rotate(360deg); } }
.halo { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.dots { position: absolute; inset: 22%; width: 56%; height: 56%; overflow: visible; }
.dots .d1 { fill: var(--d1); } .dots .d2 { fill: var(--d2); } .dots .d3 { fill: var(--brand); filter: drop-shadow(0 0 6px var(--accent-line)); }
.f1 { animation: bob 5s ease-in-out infinite; } .f2 { animation: bob 5s ease-in-out -1.2s infinite; } .f3 { animation: bob 5s ease-in-out -2.4s infinite; }
@keyframes bob { 50% { transform: translateY(-2.5px); } }
.float-chip { position: absolute; font: 500 12px/1 var(--mono); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 75%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); white-space: nowrap; color: var(--muted); }
.float-chip b { color: var(--text); margin-right: 6px; }
.c1 { left: -4%; top: 64%; animation: floaty 7s ease-in-out infinite; }
.c2 { left: 2%; top: 16%; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); animation: floaty 8s ease-in-out -2s infinite; }
.c3 { right: -6%; top: 36%; color: var(--accent); border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 28px -6px var(--accent-line); animation: floaty 6.5s ease-in-out -4s infinite; }
.c4 { right: 6%; bottom: 6%; color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); animation: floaty 9s ease-in-out -1s infinite; }
@keyframes floaty { 50% { translate: 0 -12px; } }

/* ── KPI strip and how-it-works ───────────────────────────────────────────────────────────────── */
.kpis { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-line), transparent); opacity: .6; }
.kpi-label { display: block; font-size: 12.5px; color: var(--muted); }
.kpi-value { display: block; font: 700 1.9rem/1.2 var(--mono); letter-spacing: -0.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-hint { font: 500 11px/1.3 var(--mono); color: var(--faint); }
.how { max-width: var(--max); margin: 18px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.step:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 38px; width: 14px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent-line)); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); }
.step.paid .step-icon { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.step.chain .step-icon { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.step-n { font: 600 12px/1 var(--mono); color: var(--faint); }
.step h3 { margin: 14px 0 6px; font: 650 16px/1.3 var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--text); }
.step p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cost { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.cost.paid { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cost.chain { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }

/* ── state machine ────────────────────────────────────────────────────────────────────────────── */
.machine { max-width: var(--max); margin: 30px auto 0; padding: 0 28px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.machine span { font: 600 11px/1 var(--mono); letter-spacing: .07em; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--faint); transition: all .3s ease; }
.machine span.done { color: var(--muted); border-color: var(--line-2); }
.machine span.on { color: var(--on-accent); border-color: transparent; background: linear-gradient(135deg, var(--accent-fill), var(--accent-2)); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px -6px var(--accent-line); transform: translateY(-1px); }
.machine i { color: var(--faint); font-style: normal; font-size: 12px; }

/* ── layout and cards ─────────────────────────────────────────────────────────────────────────── */
.grid { max-width: var(--max); margin: 0 auto; padding: 18px 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.grid3 { max-width: var(--max); margin: 0 auto; padding: 18px 28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid3 #spend { grid-column: 1 / -1; }
.col { display: grid; gap: 18px; min-width: 0; }
.card { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); box-shadow: var(--shadow); padding: 22px; min-width: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s ease; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 45%); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }
.card h2 { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px var(--accent-line); }
.card h2 .right { margin-left: auto; }
.empty { color: var(--muted); padding: 6px 0; margin: 0 0 8px; }
.empty b { color: var(--text); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
h3 { font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reveal { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { animation: section-enter .65s ease both; }
@keyframes section-enter { from { opacity: .65; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card.reveal.in:hover { transform: translateY(-3px); }

/* ── signal ───────────────────────────────────────────────────────────────────────────────────── */
.claim { font-size: 1.45rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; margin: 2px 0 18px; }
.claim::before, .claim::after { color: var(--accent); }
.claim::before { content: "“"; } .claim::after { content: "”"; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.stat .v { font: 700 1.5rem/1.2 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12px; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.decision { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel-2); }
.decision .act { font: 800 1.55rem/1 var(--mono); letter-spacing: .02em; grid-row: span 2; }
.decision .why { font-weight: 600; }
.decision .sub { color: var(--muted); font-size: 13px; }
.decision.IGNORE .act { color: var(--idle); }
.decision.WATCH { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.decision.WATCH .act { color: var(--warn); }
.decision.INVESTIGATE { border: 1px solid transparent; background: linear-gradient(color-mix(in srgb, var(--panel-solid) 88%, var(--accent)), color-mix(in srgb, var(--panel-solid) 88%, var(--accent))) padding-box, conic-gradient(from var(--angle), var(--accent), var(--accent-2), transparent 35%, transparent 65%, var(--accent)) border-box; animation: rotate-border 4s linear infinite; box-shadow: 0 0 40px -12px var(--accent-line); }
.decision.INVESTIGATE .act { color: var(--accent); text-shadow: 0 0 18px var(--accent-line); }
@keyframes rotate-border { to { --angle: 360deg; } }
.history { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; align-items: center; }
.chip { font: 500 11.5px/1 var(--mono); padding: 7px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.chip.WATCH { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip.INVESTIGATE { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.arrow { color: var(--faint); }
.factor { display: grid; grid-template-columns: 96px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.bar { height: 7px; background: var(--panel-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-line); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.factor .n { font: 500 12px/1 var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.scoreline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 12px/1.4 var(--mono); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.checks { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 4px 0; }
.checks .y, .checks .x { font-weight: 800; }
.checks .y { color: var(--ok); } .checks .x { color: var(--bad); }
.checks .d { display: block; color: var(--muted); font-size: 12px; }
details { margin-top: 14px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details summary::before { content: "+"; font-family: var(--mono); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; }
details[open] summary::before { content: "−"; }
details summary::-webkit-details-marker { display: none; }
.posts { list-style: none; padding: 0; margin: 10px 0 0; }
.posts li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.posts .m { color: var(--faint); font: 500 11.5px/1.4 var(--mono); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { padding: 6px 10px; font: 500 11.5px/1 var(--mono); border-radius: 8px; }
.tabs button.on { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ── badges ───────────────────────────────────────────────────────────────────────────────────── */
.badge { font: 600 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok, .badge.complete, .badge.supported, .badge.active, .badge.done, .badge.confirmed { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.warn, .badge.partially_supported, .badge.watching, .badge.unclear, .badge.skipped, .badge.unconfirmed { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge.bad, .badge.failed, .badge.rejected, .badge.revoked, .badge.unsupported, .badge.retired { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.badge.busy, .badge.running, .badge.investigating, .badge.funded, .badge.verifying, .badge.resolved { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

/* ── investigation ────────────────────────────────────────────────────────────────────────────── */
.budgetline { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.budgetline b { font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.auctions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 14px; }
.auction { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.auction table { font-size: 12.5px; }
.auction th, .auction td { padding: 5px 4px; }
.auction tr.won td { color: var(--ok); font-weight: 650; }
.auction tr.out td { color: var(--faint); text-decoration: line-through; }
.workers { list-style: none; padding: 0; margin: 0 0 16px; }
.workers li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.workers li:first-child { border-top: 0; }
.workers .who { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.workers .role { color: var(--muted); font-size: 12.5px; }
.workers .money { font: 500 12px/1.5 var(--mono); text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.workers .money b { color: var(--text); }
.pip { width: 10px; height: 10px; border-radius: 50%; background: var(--idle); }
.pip.running { background: var(--accent); animation: ping 1.1s ease-out infinite; }
.pip.done { background: var(--ok); box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 60%, transparent); }
.pip.failed { background: var(--bad); } .pip.skipped { background: var(--warn); }
.grade { font: 500 11.5px/1.4 var(--mono); margin-top: 4px; }
.grade span { display: block; font-family: var(--sans); color: var(--muted); font-size: 12px; }
.grade.hi { color: var(--ok); } .grade.mid { color: var(--warn); } .grade.lo { color: var(--bad); }
.verdict { border-radius: 14px; padding: 16px 18px; margin: 4px 0 16px; border: 1px solid var(--line); background: var(--panel-2); }
.verdict.supported { border-color: color-mix(in srgb, var(--ok) 50%, transparent); box-shadow: 0 0 36px -16px var(--ok); }
.verdict.partially_supported, .verdict.unclear { border-color: color-mix(in srgb, var(--warn) 50%, transparent); box-shadow: 0 0 36px -16px var(--warn); }
.verdict.unsupported { border-color: color-mix(in srgb, var(--bad) 50%, transparent); box-shadow: 0 0 36px -16px var(--bad); }
.verdict .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict .st { font: 800 1.2rem/1 var(--mono); letter-spacing: .02em; }
.verdict.supported .st { color: var(--ok); } .verdict.partially_supported .st, .verdict.unclear .st { color: var(--warn); } .verdict.unsupported .st { color: var(--bad); }
.conf { flex: 1; min-width: 140px; }
.finding { margin: 12px 0 0; padding-left: 18px; }
.finding li { margin: 5px 0; }
.ev { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.ev li { padding: 8px 0; border-top: 1px solid var(--line); }
.ev li:first-child { border-top: 0; }
.ev .src { font-size: 12px; color: var(--faint); }
.ref { font: 700 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); margin-right: 6px; }
.for h3 { color: var(--ok); } .against h3 { color: var(--bad); }

/* ── wallet, fuel, key ────────────────────────────────────────────────────────────────────────── */
.money-big { font: 700 2.5rem/1.05 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 60%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0; }
.stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); margin: 8px 0 6px; }
.stack .spent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.stack .avail { background: color-mix(in srgb, var(--ok) 55%, transparent); }
.stack .reserve { background: repeating-linear-gradient(45deg, var(--faint) 0 3px, transparent 3px 7px); opacity: .7; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 13px; margin: 14px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.fuel { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); background: linear-gradient(160deg, var(--ok-soft), transparent 60%), var(--panel-2); display: grid; gap: 8px; }
.fuelrow { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.refuel { font-size: 12.5px; }
.fuel button { justify-self: start; }
.keybox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); margin-top: 14px; }
.keybox code { font: 500 13px/1 var(--mono); }
.keybox .btns { margin-left: auto; display: flex; gap: 6px; }
.keyevents { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.keyevents li { padding: 3px 0; }
.keyevents b { font-family: var(--mono); color: var(--text); font-weight: 600; }

/* ── log, tables, lists ───────────────────────────────────────────────────────────────────────── */
.log { font: 12px/1.5 var(--mono); max-height: 620px; overflow: auto; margin: 0; padding: 0; list-style: none; mask-image: linear-gradient(180deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); }
.log li { padding: 7px 0; border-top: 1px solid var(--line); }
.log li:first-child { animation: slidein .45s ease; }
.log li:first-child { border-top: 0; }
@keyframes slidein { from { opacity: 0; transform: translateX(-6px); } }
.log .t { color: var(--faint); }
.log .a { font-weight: 700; }
.log .msg { overflow-wrap: anywhere; color: var(--text); opacity: .88; }
.a.WATCHER, .a.SIGNAL { color: var(--info); }
.a.COORDINATOR, .a.BUDGET { color: var(--accent); }
.a.KEY { color: var(--warn); }
.a.WORKER, .a.VERIFIER { color: var(--text); }
.a.SPEND, .a.BALANCE, .a.FUEL, .a.PAY { color: var(--ok); }
.a.WATCH { color: var(--accent-2); }
.a.MARKET { color: var(--info); }
.a.ERROR { color: var(--bad); }
.a.DEMO, .a.AGENT { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; border-top: 0; }
td.num, th.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; }
.bg { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.bg li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.bg li:first-child { border-top: 0; }
.bg .s { font: 600 13px/1.4 var(--mono); color: var(--muted); }
.bg .m { color: var(--faint); font-size: 12px; }

/* ── footer, toast ────────────────────────────────────────────────────────────────────────────── */
footer { margin-top: 64px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot-inner .logo { height: 24px; }
.foot-inner p { margin: 0; }
.foot-inner a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; max-width: calc(100vw - 32px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); z-index: 30; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ── ticker ───────────────────────────────────────────────────────────────────────────────────── */
.ticker { max-width: var(--max); margin: 0 auto 18px; padding: 0 28px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tk i { font-style: normal; font-weight: 700; margin-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── console heading ──────────────────────────────────────────────────────────────────────────── */
.console-head { max-width: var(--max); margin: 64px auto 0; padding: 0 28px; }
.console-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; font-weight: 800; margin: 18px 0 10px; line-height: 1.05; }
.console-head p { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.02rem; }

/* ── signal gauge ─────────────────────────────────────────────────────────────────────────────── */
.sig-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 16px; }
.sig-head .claim { margin: 0; }
.gauge { position: relative; width: 132px; height: 132px; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.gauge .track { stroke: var(--panel-2); }
.gauge .val { stroke: var(--idle); stroke-dashoffset: var(--off); animation: gauge-draw 1.3s cubic-bezier(.2, .8, .2, 1); transition: stroke-dashoffset .8s ease; }
.gauge.WATCH .val { stroke: var(--warn); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--warn) 50%, transparent)); }
.gauge.INVESTIGATE .val { stroke: var(--accent-fill); filter: drop-shadow(0 0 8px var(--accent-line)); }
@keyframes gauge-draw { from { stroke-dashoffset: var(--len); } }
.gauge .tick { stroke-width: 2; stroke-linecap: round; }
.gauge .tick.w { stroke: var(--warn); } .gauge .tick.i { stroke: var(--accent); }
.gv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gv b { font: 800 1.7rem/1 var(--mono); letter-spacing: -0.04em; }
.gv span { font: 500 10px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.gauge.INVESTIGATE .gv b { color: var(--accent); } .gauge.WATCH .gv b { color: var(--warn); }

/* ── investigation pipeline ───────────────────────────────────────────────────────────────────── */
.pipe { list-style: none; margin: 6px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.pipe li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.pipe li::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.pipe li:first-child::before { display: none; }
.pipe li.done::before, .pipe li.run::before { background: linear-gradient(90deg, var(--ok), var(--ok)); }
.pipe li.run::before { background: linear-gradient(90deg, var(--ok), var(--accent), var(--ok)); background-size: 200% 100%; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.pipe .node { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel-solid); }
.pipe li.done .node { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.pipe li.run .node { border-color: var(--accent); background: var(--accent-soft); animation: ping 1.1s ease-out infinite; }
.pipe li.fail .node { border-color: var(--bad); background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.pipe li.skip .node { border-color: var(--warn); }
.pipe b { font-size: 12.5px; font-weight: 650; margin-top: 4px; }
.pipe span { font: 500 10.5px/1.3 var(--mono); color: var(--faint); overflow-wrap: anywhere; }

/* ── terminal ─────────────────────────────────────────────────────────────────────────────────── */
.card.term { --text: #e8e6df; --muted: #a3a097; --faint: #8a887f; --line: rgba(255, 255, 255, 0.07); --info: #8ab4ff; --accent: #ff6b2c; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  padding: 0; overflow: hidden; color: var(--text); background: linear-gradient(180deg, #111318, #0a0b0e); border-color: rgba(255, 255, 255, 0.1); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.term-title { margin-left: 10px; font: 600 12px/1 var(--mono); color: var(--muted); }
.term-meta { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--faint); }
.card.term .log { padding: 6px 16px; max-height: 560px; }
.term-prompt { padding: 10px 16px 14px; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--muted); }
.caret { color: var(--ok); margin-right: 6px; }
.cursor { display: inline-block; width: 7px; height: 13px; margin-left: 6px; vertical-align: -2px; background: var(--ok); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── fuel gauge ───────────────────────────────────────────────────────────────────────────────── */
.fuelgauge { display: grid; gap: 6px; }
.fg-bar { position: relative; height: 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); }
.fg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 60%, var(--accent-2))); box-shadow: 0 0 12px color-mix(in srgb, var(--ok) 45%, transparent); }
.fg-bar i.low { background: linear-gradient(90deg, var(--bad), var(--accent-2)); }
.fg-tick { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--text); opacity: .7; border-radius: 2px; }
.fg-labels { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); }
.fg-labels b { color: var(--text); }

/* ── loading skeletons ────────────────────────────────────────────────────────────────────────── */
.sk-wrap { display: grid; gap: 12px; }
.sk { border-radius: 8px; height: 12px; background: linear-gradient(90deg, var(--panel-2) 0%, var(--line-2) 50%, var(--panel-2) 100%); background-size: 200% 100%; animation: shimmer-sk 1.4s ease-in-out infinite; }
.sk-title { width: 40%; height: 14px; } .sk-line { width: 90%; } .sk-line.short { width: 60%; } .sk-block { height: 90px; border-radius: 12px; }
@keyframes shimmer-sk { to { background-position: -200% 0; } }
.card.term .sk-wrap { padding: 20px; }

/* ── footer columns ───────────────────────────────────────────────────────────────────────────── */
.foot-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand p { margin: 12px 0 0; max-width: 320px; color: var(--muted); line-height: 1.5; }
.foot-col { display: grid; gap: 8px; }
.foot-col h4 { margin: 0 0 4px; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.foot-col a, .foot-col span { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-col a:hover { color: var(--text); }
.foot-base { max-width: var(--max); margin: 0 auto; padding: 16px 28px 28px; border-top: 1px solid var(--line); color: var(--faint); font: 500 12px/1.4 var(--mono); }

/* ── responsive ───────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis, .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .pipe li:nth-child(4)::before { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 20px; }
  .hero-art { max-width: 320px; order: 0; }
  .links { display: none; }
  .two, .auctions { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-inner, .hero, .kpis, .how, .machine, .grid, .grid3, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .kpis, .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 18px; }
  .hero h1 { font-size: 2.9rem; }
  .c1 { left: 0; } .c3 { right: 0; }
  .kpi-value { font-size: 1.45rem; }
  .ticker, .console-head { padding-left: 16px; padding-right: 16px; }
  .sig-head { grid-template-columns: 1fr; }
  .gauge { width: 112px; height: 112px; justify-self: start; }
  .foot-inner { grid-template-columns: 1fr; }
  .gh { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Final responsive and keyboard polish. */
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 50; padding: 12px 18px; background: var(--panel-solid); border: 1px solid var(--accent); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.theme-toggle { font-size: 12px; padding: 10px 12px; min-height: 40px; white-space: nowrap; }
.noscript-note { margin: 24px; padding: 20px; border: 1px solid var(--accent); border-radius: 12px; }
.auction { min-width: 0; overflow-x: auto; }
.workers .who { flex-wrap: wrap; }
.card, .kpi, .step { overflow-wrap: anywhere; }
.bg li { grid-template-columns: 48px minmax(0, 1fr); }
@media (max-width: 640px) {
  .nav-inner { gap: 8px; }
  .nav-right { gap: 6px; }
  .logo { height: 25px; }
  .phase { font-size: 9px; padding-right: 8px; }
  .hero { padding-top: 36px; }
  .hero-art { max-width: 250px; }
  .lede { font-size: 16px; }
  .cta { gap: 8px; }
  .cta button { min-height: 44px; }
  .decision { grid-template-columns: 1fr; }
  .decision .act { grid-row: auto; margin-bottom: 8px; }
  .workers li { grid-template-columns: 10px minmax(0, 1fr); }
  .workers .money { grid-column: 2; text-align: left; }
  .factor { grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 6px; }
  .theme-toggle { font-size: 11px; padding: 8px; }
}
@media (hover: none) {
  .card:hover, .step:hover, .card.reveal.in:hover { transform: none; }
  .card::before { display: none; }
}

/* ── the watch page: buying a watch ─────────────────────────────────────────────────────────── */
.watch-page .wrap { max-width: 1120px; margin: 0 auto; padding: 96px 20px 40px; }
.w-hero { text-align: center; padding: 26px 0 34px; }
.w-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 14px 0 16px; }
.w-hero .lede { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.w-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 26px; }
.w-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.w-step .n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.w-step h3 { margin: 8px 0 6px; font-size: 1rem; }
.w-step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.w-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.watch-page form { display: grid; gap: 16px; margin-top: 6px; }
.watch-page label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.watch-page .opt { color: var(--faint); font-weight: 400; }
.watch-page input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 0.95rem;
}
.watch-page input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.watch-page small { color: var(--faint); font-weight: 400; font-size: 0.8rem; line-height: 1.45; }
.watch-page .err:empty { display: none; }
.watch-page .err { color: var(--bad); font-size: 0.9rem; margin: 0; }
.w-pay, .w-status { margin-top: 16px; }
.w-calls { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.w-calls li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.w-call-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.w-calls code { display: block; margin: 8px 0 4px; font-size: 0.82rem; color: var(--accent-2); }
.wrap-any { overflow-wrap: anywhere; }
.w-invs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.w-invs li { border-left: 2px solid var(--accent-line); padding: 6px 0 6px 12px; font-size: 0.9rem; }
.w-invs .claim { color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .w-grid, .w-how { grid-template-columns: 1fr; }
  .watch-page .wrap { padding-top: 84px; }
}

.w-payform { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.w-payform h3 { margin: 0 0 10px; font-size: .95rem; }
.w-payrow { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.w-payrow label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; }
.w-payrow select, .w-payrow input {
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: .95rem; min-width: 120px;
}
.w-payrow button { white-space: nowrap; }
@media (max-width: 560px) { .w-payrow { flex-direction: column; align-items: stretch; } }
