:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --raised: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, 0.10);
  --brand: #111827;
  --accent: #1baf7a;
  --accent-ink: #0a6e4b;
  --ours: #2a78d6;
  --espn: #eb6834;
  --up: #006300;
  --up-bg: #e3f4e3;
  --down: #b42c2c;
  --down-bg: #fbe5e5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --raised: #1f1f1d;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --ring: rgba(255, 255, 255, 0.10);
    --brand: #f0efec;
    --accent: #1baf7a;
    --accent-ink: #4fd3a2;
    --ours: #3987e5;
    --espn: #d95926;
    --up: #3fbf3f;
    --up-bg: #12301a;
    --down: #f07878;
    --down-bg: #3a1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ours); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ring); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 480px) { .top .btn { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--page); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--axis); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Example of the badges on an ESPN-like table */
.demo { background: var(--raised); border: 1px solid var(--ring); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 10px; }
.demo-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0 6px 8px; border-bottom: 1px solid var(--grid); }
.demo-row { display: grid; grid-template-columns: 1fr 76px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--grid); }
.demo-row:last-of-type { border-bottom: 0; }
.demo-name { font-weight: 600; }
.demo-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.demo-proj { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-bottom: 2px; }
.badge.up { color: var(--up); background: var(--up-bg); }
.badge.down { color: var(--down); background: var(--down-bg); }
.demo-proj .espn { display: block; color: var(--ink-2); font-size: 14px; }
.demo-note { font-size: 12px; color: var(--muted); margin: 8px 6px 4px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--ring); border-bottom: 1px solid var(--ring); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 32px; max-width: 46em; }

/* Scorecard */
.score-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; }
.score-hero .big { font-size: clamp(48px, 7vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.score-hero .what { font-size: 18px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--raised); border: 1px solid var(--ring); border-radius: 12px; padding: 14px 16px; }
.tile .label { font-size: 13px; color: var(--ink-2); }
.tile .value { font-size: 28px; font-weight: 650; line-height: 1.2; margin-top: 4px; }
.tile .value small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.tile .note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.key.ours { background: var(--ours); }
.key.espn { background: var(--espn); }

.panel { background: var(--raised); border: 1px solid var(--ring); border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; }
.legend .line { display: inline-block; width: 16px; height: 2px; border-radius: 1px; margin-right: 6px; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--raised); stroke-width: 2; }
.chart .endlabel { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.tip { position: absolute; pointer-events: none; background: var(--raised); border: 1px solid var(--ring); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -100%); }
.tip b { display: block; margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 6px; }
.tip .row span:last-child { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }

.empty { padding: 28px 8px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--ink-2); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.better { color: var(--up); font-weight: 600; }
.worse { color: var(--down); font-weight: 600; }
.table-scroll { overflow-x: auto; }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--raised); border: 1px solid var(--ring); border-radius: 12px; padding: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--ring); margin-bottom: 12px; }
.icon svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--raised); border: 1px solid var(--ring); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--page); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks b { color: var(--ink); }
.more { margin-top: 20px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

/* Privacy page */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-2); }
.doc table { margin: 12px 0; }
.doc th, .doc td { text-align: left; }
