:root {
  --bg: #000000;
  --bg-elevated: #0d0d0f;
  --surface: #1c1c1e;
  --surface-hover: #232326;
  --ink: #f5f5f7;
  --muted: #86868b;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.14);
  --accent-glow: rgba(41, 151, 255, 0.22);
  --good: #30d158;
  --bad: #ff453a;
  --warn: #ffd60a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
html { color-scheme: dark; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.glow {
  pointer-events: none;
  position: fixed;
  inset: -20% auto auto 30%;
  width: 70vw;
  height: 50vh;
  background: radial-gradient(ellipse at top, rgba(41, 151, 255, 0.16), transparent 62%);
  z-index: 0;
}

.shell { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 28px 96px; }

header.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
}
header.top .shell { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-bottom: 0; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.wordmark span { color: var(--muted); font-weight: 500; }
.nav {
  display: flex; align-items: center; gap: 22px;
}
.nav-link {
  font-size: 13px; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.current { color: var(--ink); }

.hero { padding: 48px 0 28px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  color: var(--ink);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0; text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 21px; line-height: 1.4; font-weight: 400;
  color: var(--muted); letter-spacing: -0.02em;
}

.method {
  margin: 8px 0 0;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--line);
}
.method h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 0 0 8px;
}
.method p {
  margin: 0;
  max-width: 36em;
  font-size: 17px; line-height: 1.45; color: var(--muted);
}
.method .open { margin-top: 16px; }
.list-label {
  margin: 40px 0 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.list { display: grid; gap: 18px; margin-top: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.stat {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
}
.stat span {
  display: block; margin-top: 6px;
  font-size: 13px; color: var(--muted); line-height: 1.35;
}
.trio, .split { display: grid; gap: 14px; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: 1fr 1fr; }
.note {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.note .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.note .kicker.accent { color: var(--accent); }
.caveat a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.caveat a:hover { color: var(--ink); }
section.block .note h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  text-transform: none; color: var(--ink); margin: 0 0 8px;
}
.note p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.diagram {
  margin-top: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram + .caveat { margin-top: 16px; }
.figure.follow { margin-top: 22px; }
.figure {
  margin: 0 0 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}
.figure.fit {
  background: #f7f8fb;
}
.figure.fit img {
  aspect-ratio: auto;
  object-fit: contain;
}
.claims { display: grid; gap: 12px; }
.claim {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.claim .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.claim.no .kicker { color: var(--faint); }
.claim.yes .kicker { color: var(--good); }
.claim.win .kicker { color: var(--good); }
.claim.loss .kicker { color: var(--bad); }
.claim.warn .kicker { color: var(--warn); }
.claim p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.claim strong { color: var(--ink); font-weight: 600; }
.plan {
  margin-top: 8px;
  padding: 32px 28px 20px;
  background: linear-gradient(180deg, var(--accent-soft), transparent 42%), var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
}
.plan-head {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.plan h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 10px;
}
.plan .lede {
  margin: 0 0 22px;
  font-size: 18px;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3;
  color: var(--ink);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent);
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catalog-grid .note h3 { font-variant-numeric: tabular-nums; }

.card {
  position: relative;
  display: block;
  padding: 32px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
.card:hover::before { opacity: 1; }
.card:active { transform: translateY(-2px) scale(0.995); }
.card > * { position: relative; z-index: 1; }

.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 14px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--good); font-weight: 500;
}
.status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.status.partial { color: #ffd60a; }
.status.partial::before { background: #ffd60a; animation: none; box-shadow: none; }

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.blurb {
  margin: 0;
  font-size: 17px; line-height: 1.5; color: var(--muted);
  max-width: 46em;
}
.blurb + .blurb { margin-top: 14px; }
.split.after-copy { margin-top: 18px; }
.split + .blurb { margin-top: 18px; }
.claims.after-copy { margin-top: 18px; }
.blurb + .catalog-grid { margin-top: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
}

.open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.01em;
}
.open::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.card:hover .open::after { transform: translateX(4px); }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 28px 0 8px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s ease, transform 0.3s var(--ease);
}
.back::before { content: "←"; }
.back:hover { color: var(--ink); transform: translateX(-3px); }

.summary {
  margin: 18px 0 0;
  font-size: 19px; line-height: 1.5; color: var(--muted);
  max-width: 40em; letter-spacing: -0.018em;
}

.takeaway {
  margin: 40px 0 8px;
  padding: 24px 26px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-radius: 0 18px 18px 0;
}
.takeaway .label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.takeaway p {
  margin: 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3;
}

section.block { margin-top: 56px; }
section.block h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 14px; align-items: center; }
.bar-label { font-size: 14px; color: var(--ink); }
.bar-track {
  height: 8px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: fill 1.1s var(--ease) forwards;
}
.bar-row.best .bar-fill { background: var(--good); }
.bar-val { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 4.5em; text-align: right; }

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.results th, table.results td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
table.results th {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
table.results td.num { font-variant-numeric: tabular-nums; }
table.results tr.best td { color: var(--good); font-weight: 600; }
table.results tr.best td:first-child { color: var(--ink); }

.caveat {
  margin-top: 40px;
  font-size: 14px; line-height: 1.55; color: var(--faint);
  max-width: 42em;
}

.bullets { margin: 0; padding: 0 0 0 20px; list-style: none; }
.bullets li {
  position: relative;
  margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--muted);
}
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before {
  content: ""; position: absolute; left: -20px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.bullets li strong { color: var(--ink); font-weight: 600; }
.bullets + .bullets { margin-top: 12px; }

.formula {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elevated);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px; line-height: 1.7; color: var(--ink);
  overflow-x: auto;
}
.formula .where {
  display: block; margin-top: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.55; color: var(--faint);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fill {
  from { width: 0; }
  to { width: var(--w); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

@media (max-width: 720px) {
  .shell { padding: 0 20px 72px; }
  .hero { padding-top: 48px; }
  .lede, .summary { font-size: 17px; }
  .card { padding: 24px; border-radius: 22px; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-label { grid-column: 1 / -1; }
  .trio, .split, .stats, .catalog-grid { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px 12px; }
  .steps li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .bar-fill, .status::before { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
  .bar-fill { width: var(--w); }
  .card, .open::after, .back { transition: none; }
}

/* Rows a run could not produce: reported as n/a with a reason, never blank. */
.results tr.muted td { color: var(--faint); }
.results tr.muted td.num { font-variant-numeric: normal; letter-spacing: 0.02em; }
