:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #14161b;
  --muted: #5d6270;
  --line: #e2e3e8;
  --live: #e62b3d;
  --home: #e62b3d;
  --away: #8a90a0;
  --focus: #2b6be6;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --surface: #1d2027;
    --text: #f2f3f5;
    --muted: #a3a8b5;
    --line: #2c3039;
    --away: #6d7385;
    --focus: #7aa5ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.lang { font-size: 15px; color: var(--muted); }

.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 16em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.dot { color: var(--live); }

.button {
  display: inline-block; border: 0; border-radius: 12px; padding: 14px 22px;
  background: var(--live); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button[disabled] { opacity: 0.6; cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

section { padding: 40px 0; }
section h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; margin: 0 0 8px; }
section > .wrap > p.lead { color: var(--muted); margin: 0 0 24px; max-width: 40em; }

.alerts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.alert { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.alert .rule { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.alert .rule b { color: var(--text); font-weight: 600; }
.push { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 12px; }
.push svg { flex: none; width: 28px; height: 28px; border-radius: 7px; }
.push strong { display: block; font-size: 15px; }
.push span { font-size: 14px; color: var(--muted); }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .h { fill: var(--home); }
.chart .a { fill: var(--away); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .goal { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.chart .tick { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.legend .lh { background: var(--home); }
.legend .la { background: var(--away); }
.legend .lg { border: 2px solid var(--text); border-radius: 50%; }
.caption { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
/* The chart scales down with the screen; its labels and marks must not. */
@media (max-width: 600px) {
  .chart { padding: 14px 10px; }
  .chart .tick { font-size: 22px; }
  .chart .goal { stroke-width: 4; }
}

.points { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; margin: 0; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.points b { display: block; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: 15px; }

form.waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 560px; }
form.waitlist label.field { display: block; font-weight: 600; margin-bottom: 6px; }
form.waitlist input[type=email] {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text);
}
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.choices input { accent-color: var(--live); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 14px; color: var(--muted); margin: 20px 0; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: #1f9d55; }
.status.err { color: var(--live); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.doc { max-width: 720px; padding-bottom: 48px; }
.doc h1 { font-size: 32px; letter-spacing: -0.01em; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc p, .doc li { color: var(--text); }
