/* SportAmp — design tokens + components. Light by default, dark via prefers-color-scheme. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #0c1222;
  --muted: #5b6478;
  --border: #dfe3ec;
  /* Brand orange for the logo mark only; --accent is darkened so text and buttons meet WCAG AA (4.5:1). */
  --brand: #ff5a1f;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fff0e9;
  --ok: #047857;
  --ok-soft: #e3f7ef;
  --warn: #92400e;
  --warn-soft: #fff6e0;
  --danger: #be123c;
  --danger-soft: #ffe8ec;
  --info: #1d4ed8;
  --info-soft: #e7efff;
  --shadow: 0 1px 2px rgba(12, 18, 34, 0.06), 0 8px 24px rgba(12, 18, 34, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #111829;
    --surface-2: #182136;
    --text: #edf1fa;
    --muted: #9aa4ba;
    --border: #243049;
    --brand: #ff6a33;
    --accent: #ff6a33;
    --accent-ink: #160800;
    --accent-soft: #2a1710;
    --ok: #34d399;
    --ok-soft: #0f2a22;
    --warn: #fbbf24;
    --warn-soft: #2b2310;
    --danger: #ff5c77;
    --danger-soft: #2e1219;
    --info: #7aa7ff;
    --info-soft: #142040;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.86rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Header / nav ─── */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; letter-spacing: -0.03em; font-size: 1.15rem; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
}

/* ─── Buttons / forms ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; font: 650 0.95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform 0.06s ease, background 0.15s ease; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
label { font-weight: 650; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 1rem var(--font);
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

/* ─── Cards / sections ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-tight { padding: 14px 16px; }
.card h3 { margin-bottom: 6px; }
.section { padding: 56px 0; }
.section-sm { padding: 28px 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin: 28px 0 12px; letter-spacing: -0.01em; }
.section-title .count { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); background: var(--surface-2); }
.notice-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.notice-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.notice-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

/* ─── Hero ─── */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero-form { margin-top: 24px; max-width: 520px; }
.hero-form input { font-size: 1.05rem; padding: 14px 16px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 850; display: grid; place-items: center; }

/* ─── Briefing items ─── */
.item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: 0; }
.item-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; }
.item p { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; }
.item .impact { color: var(--text); font-weight: 600; font-size: 0.93rem; }
.item .impact::before { content: "→ "; color: var(--accent); font-weight: 850; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.8rem; color: var(--muted); }
.meta a { color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-weight: 850; font-size: 0.8rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; border: 1px solid transparent; white-space: nowrap; }
.chip-out { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.chip-q { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.chip-move { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.chip-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.conf-official { color: var(--ok); font-weight: 750; }
.conf-reported { color: var(--info); font-weight: 750; }
.conf-rumor { color: var(--warn); font-weight: 750; }
.league-tag { background: var(--surface-2); border-radius: 6px; padding: 1px 7px; font-size: 0.75rem; font-weight: 650; color: var(--muted); }
.league-tag.starter { color: var(--text); }
.move { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.move:last-child { border-bottom: 0; }
.move .arrow { color: var(--accent); font-weight: 900; font-size: 1.2rem; }
.move .who { font-weight: 750; }
.locked { position: relative; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked .unlock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; }
.empty { padding: 22px; text-align: center; color: var(--muted); }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* ─── Pricing ─── */
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card.highlight { border: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 5px 0 5px 26px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.feature-list li.no::before { content: "—"; color: var(--muted); }

/* ─── Ads / sponsors ─── */
.ad { border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.ad .ad-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; }
.ad .rg { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-cols h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 3px 0; }

/* ─── App shell ─── */
.app-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; scrollbar-width: none; }
.app-tabs a { text-decoration: none; padding: 8px 12px; border-radius: 9px; font-weight: 650; color: var(--muted); white-space: nowrap; font-size: 0.93rem; }
.app-tabs a.active { background: var(--text); color: var(--bg); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.6rem; font-weight: 850; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.85rem; }
.pill-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pill-toggle a { padding: 6px 12px; text-decoration: none; font-weight: 650; font-size: 0.88rem; color: var(--muted); }
.pill-toggle a.active { background: var(--surface-2); color: var(--text); }
.team-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-grid a, .team-grid label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.93rem; margin: 0; }
.team-grid input { accent-color: var(--accent); }
.team-abbr { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); min-width: 36px; }
.banner { background: var(--text); color: var(--bg); text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 650; }
.banner a { color: var(--bg); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .card { padding: 16px; }
  .section { padding: 40px 0; }
  .move { grid-template-columns: 1fr; }
  .move .arrow { transform: rotate(90deg); justify-self: start; }
}
