/* ScoreX — the site.
 *
 * One stylesheet, no framework, no build step. The site is four pages; a
 * toolchain would cost more to keep alive than the thing it builds.
 *
 * The design is the app's, not a marketing skin over it: the same tokens
 * (Starter/AppConfig/Theme.swift), the same sport tints, the same fixture card
 * with two club colours meeting in the middle, the same drawn sky the app
 * launches on. Someone who scrolls this page and then opens the app should
 * recognise the second from the first.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────
 * Values are iOS system colours, written out. Same reasoning as the app:
 * a scores app is judged against the one Apple ships, and a palette that is
 * nearly the system's reads as a worse version of it.
 */
:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F2F7;
  --text: #000000;
  --text-2: rgba(60, 60, 67, 0.60);
  --text-3: rgba(60, 60, 67, 0.30);
  --line: rgba(60, 60, 67, 0.18);
  --accent: #34C759;
  --live: #FF3B30;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.10);

  /* The sport tints, from ScoreModels.swift. Grass, hardwood, turf. */
  --grass: #1B5A38;
  --court: #8A4419;
  --turf: #274B6E;

  /* The stage: the dark surface every mock sits on. It does not follow the
     appearance — a screenshot of a dark app should look the same in both,
     the way a photograph does. */
  --stage: #050706;
  --stage-2: #0E1512;
  --stage-text: #FFFFFF;
  --stage-text-2: rgba(235, 235, 245, 0.62);
  --stage-line: rgba(255, 255, 255, 0.12);

  --radius: 14px;
  --radius-lg: 22px;
  --page: 1140px;
  --measure: 720px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --text: #FFFFFF;
    --text-2: rgba(235, 235, 245, 0.60);
    --text-3: rgba(235, 235, 245, 0.30);
    --line: rgba(84, 84, 88, 0.65);
    --accent: #30D158;
    --live: #FF453A;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
  z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--stage) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--stage-line);
  color: var(--stage-text);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 800 20px/1 var(--rounded);
  letter-spacing: -0.02em;
  color: inherit;
}

.brand svg { width: 24px; height: 24px; display: block; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--stage-text-2);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--stage-text); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header .wrap > .store-cta { margin-left: auto; }
}

/* ── The store button ───────────────────────────────────────────────────
 * Not a real badge yet: there is no App Store id to point at, and a badge
 * linking to nothing is worse than one that says so. `README.md` has the
 * one-line change that turns this into a link the day the app is live.
 */
.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--stage-text);
  color: #000;
  text-decoration: none;
  font: 600 15px/1 var(--sans);
  white-space: nowrap;
  border: 0;
  transition: transform 0.15s ease, opacity 0.2s;
}
.store-cta:hover { transform: translateY(-1px); }
.store-cta svg { width: 16px; height: 16px; }

.store-cta[data-pending] {
  background: transparent;
  color: var(--stage-text);
  box-shadow: inset 0 0 0 1px var(--stage-line);
  cursor: default;
}
.store-cta[data-pending]:hover { transform: none; }

.store-cta--lg {
  padding: 14px 24px;
  font-size: 17px;
  gap: 11px;
}
.store-cta--lg svg { width: 19px; height: 19px; }

.site-nav-inline {
  font-size: 16px;
  color: var(--stage-text);
  text-decoration: none;
  border-bottom: 1px solid var(--stage-line);
  padding-bottom: 2px;
}
.site-nav-inline:hover { border-color: currentColor; }

/* ── The stage ──────────────────────────────────────────────────────────
 * The dark band the hero and the showcases sit on, tinted with the sport's
 * colour and lit from the top right — the same construction as the Today
 * screen's header (a flat fill reads as a painted rectangle; this reads as a
 * lit surface).
 */
.stage {
  position: relative;
  isolation: isolate;
  background: var(--stage);
  color: var(--stage-text);
  overflow: hidden;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stage::before {
  background:
    linear-gradient(180deg,
      var(--tint, var(--grass)) 0%,
      color-mix(in srgb, var(--tint, var(--grass)) 55%, var(--stage)) 26%,
      var(--stage) 62%);
}

.stage::after {
  background: radial-gradient(60% 42% at 84% 4%,
    rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 45%, transparent 70%);
}

.stage a { color: inherit; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stage-text-2);
  margin: 0 0 18px;
}

.hero h1 {
  font: 800 clamp(38px, 5.4vw, 62px)/1.05 var(--rounded);
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero .lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--stage-text-2);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.hero-note {
  font-size: 14px;
  color: var(--stage-text-2);
  margin: 16px 0 0;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 56px;
    justify-items: center;
    text-align: center;
  }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ── The facts strip ────────────────────────────────────────────────── */

.facts {
  border-top: 1px solid var(--stage-line);
  background: var(--stage);
  color: var(--stage-text);
}

.facts .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.fact dt {
  font: 700 30px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.fact dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--stage-text-2);
}

/* ── Sections ───────────────────────────────────────────────────────── */

section { scroll-margin-top: 80px; }

.band { padding: 92px 0; }
.band--tight { padding: 68px 0; }

.section-head { max-width: 640px; margin: 0 0 40px; }

h2 {
  font: 700 clamp(28px, 3.4vw, 40px)/1.12 var(--rounded);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
}

.stage .section-head p { color: var(--stage-text-2); }

h3 {
  font: 600 19px/1.3 var(--sans);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }

/* ── Feature cards ──────────────────────────────────────────────────── */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  /* Three across on a desk, two on a tablet, one on a phone. 260px let four
     fit at the page's full width and left the last two hanging on their own
     row. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (prefers-color-scheme: dark) {
  .features li { border-color: rgba(255, 255, 255, 0.10); }
}

.features p { color: var(--text-2); font-size: 15px; margin: 0; }

.f-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.f-icon svg { width: 20px; height: 20px; }

/* ── Showcase: text beside a device ─────────────────────────────────── */

.showcase .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.showcase--flip .wrap { grid-template-columns: auto minmax(0, 1fr); }
.showcase--flip .showcase-copy { order: 2; }

.showcase-copy p { color: var(--stage-text-2); }
.showcase-copy ul { margin: 0; padding: 0; list-style: none; }
.showcase-copy li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--stage-text-2);
  font-size: 16px;
}
.showcase-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 900px) {
  .showcase .wrap,
  .showcase--flip .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .showcase--flip .showcase-copy { order: 0; }
  .showcase-copy li { text-align: left; }
  .showcase-copy ul { max-width: 420px; }
}

/* ── The phone ──────────────────────────────────────────────────────────
 * A drawn device, not a screenshot. Screenshots go stale the week the app
 * changes and ship four times the bytes; this is the app's own layout in the
 * app's own tokens, so it stays honest as long as the tokens do.
 */
.phone {
  position: relative;
  /* Full size where there is room; on a phone it gives way to the margin
     rather than pressing against it. */
  width: min(302px, 76vw);
  flex: none;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #3A3A3C, #1C1C1E 40%, #000 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 40px 80px rgba(0, 0, 0, 0.55);
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 13px;
}

/* The island. Drawn, because a phone without one reads as an older phone. */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.screen-head {
  position: relative;
  padding: 42px 14px 10px;
  background:
    radial-gradient(50% 60% at 84% 8%, rgba(255,255,255,0.16), transparent 70%),
    linear-gradient(180deg, var(--tint, var(--grass)), #000);
}

.screen-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 26px/1 var(--rounded);
  letter-spacing: -0.03em;
}

.pill {
  margin-left: auto;
  font: 600 11px/1 var(--sans);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.days {
  display: flex;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.days span { flex: 1; text-align: center; padding-bottom: 2px; }
.days .on { color: #fff; font-weight: 600; }

.screen-body {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #000;
  overflow: hidden;
}

.screen-label {
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.42);
  padding: 4px 4px 0;
}

/* The fixture card, as the app draws it: two club colours meeting in the
   middle, the score against a fixed centre column, live in the signal red. */
.fixture {
  --home: #2C2C2E;
  --away: #2C2C2E;
  display: grid;
  grid-template-columns: 1fr 28px 72px 28px 1fr;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--home), var(--away));
  color: #fff;
}

.fixture .club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.crest {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--rounded);
  letter-spacing: 0;
}

.fixture .num {
  font: 600 24px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fixture .num.dim { opacity: 0.35; }

.fixture .mid {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fixture .comp {
  font: 600 8px/1 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.fixture .status {
  font: 600 12px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
}
.fixture .status.live { color: var(--live); }
.fixture .record {
  font: 600 11px/1 var(--rounded);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow .dot { background: var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tabbar {
  margin: auto 6px 8px;
  display: flex;
  justify-content: space-around;
  padding: 9px 6px;
  border-radius: 22px;
  background: rgba(28, 28, 30, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.tabbar svg {
  width: 19px;
  height: 19px;
  opacity: 0.42;
  color: #fff;
}
.tabbar svg.on { opacity: 1; color: var(--accent); }

/* ── The pitch ──────────────────────────────────────────────────────── */

.pitch {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 22px,
      transparent 22px 44px),
    var(--grass);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pitch::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.pitch::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.player {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font: 700 8px/16px var(--rounded);
  text-align: center;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ── Timeline rows ──────────────────────────────────────────────────── */

.timeline { display: flex; flex-direction: column; gap: 7px; }
.event {
  display: grid;
  grid-template-columns: 26px 16px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(235, 235, 245, 0.85);
}
.event .min {
  font: 600 10px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
  color: rgba(235, 235, 245, 0.45);
}

/* ── Standings ──────────────────────────────────────────────────────── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.table th {
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.42);
  text-align: right;
  padding: 0 0 6px;
}
.table th:nth-child(2) { text-align: left; }
.table td { padding: 5px 0; text-align: right; color: rgba(235, 235, 245, 0.85); }
.table td:nth-child(2) { text-align: left; }
.table tr.me td { color: #fff; font-weight: 600; }
.table tr.me td:first-child { color: var(--accent); }

/* ── Lock Screen ────────────────────────────────────────────────────────
 * On the app's own sky: a vertical gradient, blurred ellipses for cloud and
 * one wide highlight — drawn here for the same reason it is drawn there, that
 * a photograph does not survive both appearances and every screen size.
 */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #2E9BE0, #5FB8EC 45%, #9BD6F5);
}
.sky .cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(22px);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateX(-30%); }
  to { transform: translateX(130%); }
}
.sky .sun {
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 30% at 78% 14%,
    rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08) 50%, transparent 72%);
}

.lock {
  position: relative;
  z-index: 1;
  padding: 46px 16px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.lock .lock-date { font-size: 12px; opacity: 0.9; }
.lock .lock-time {
  font: 300 62px/1.05 var(--rounded);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* The Live Activity itself: a material card, the way the system renders it. */
.activity {
  margin-top: auto;
  width: 100%;
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(14, 18, 22, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  text-shadow: none;
}
.activity .comp {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.activity .line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.activity .abbr { font: 700 13px/1 var(--rounded); }
.activity .abbr.r { text-align: right; }
.activity .sc {
  font: 700 24px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
}
.activity .clock {
  margin-top: 8px;
  font: 600 12px/1 var(--rounded);
  /* Lighter than the app's signal red. That red is picked to carry on a solid
     surface; through the Lock Screen's blurred material it goes muddy. */
  color: #FF6B61;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Leagues ────────────────────────────────────────────────────────── */

.leagues { display: grid; gap: 26px; }

.league-group h3 {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.stage .league-group h3 { color: var(--stage-text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

/* The chips sit on the page, not on the stage, so they follow the page's
   appearance. Written against --text/--line for that reason: the stage's own
   white-on-dark values disappeared entirely on a white background. */
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stage .chips li {
  background: color-mix(in srgb, var(--stage-text) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--stage-line);
}
.chips i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tint, var(--grass));
}

/* ── Pro ────────────────────────────────────────────────────────────── */

.pro-card {
  border-radius: 26px;
  padding: 34px;
  /* A white card on a white page is only a border; the grouped-table grey is
     what iOS itself puts behind a panel in the light appearance. */
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .pro-card {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.10);
  }
}

@media (max-width: 820px) {
  .pro-card { grid-template-columns: minmax(0, 1fr); padding: 26px; }
}

.pro-card h2 { margin-bottom: 8px; }
.pro-card .badge {
  display: inline-block;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  color: var(--text-2);
}
.checks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

.fine { font-size: 13px; color: var(--text-2); margin: 22px 0 0; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq { max-width: var(--measure); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font: 600 17px/1.4 var(--sans);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font: 400 22px/1 var(--rounded);
  color: var(--text-3);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 16px;
  max-width: 62ch;
}

/* ── Closing call ───────────────────────────────────────────────────── */

.closer { text-align: center; }
.closer h2 { margin-inline: auto; max-width: 16ch; }
.closer p { color: var(--stage-text-2); max-width: 46ch; margin-inline: auto; }

/* ── Footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  font-size: 14px;
  color: var(--text-2);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.spacer { flex: 1; }

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal { max-width: var(--measure); margin: 0 auto; padding: 56px 20px 24px; }

.legal h1 {
  font: 700 clamp(30px, 4vw, 40px)/1.15 var(--rounded);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.legal h2 {
  font: 600 21px/1.3 var(--sans);
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}

.legal p, .legal li { color: var(--text-2); }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.updated { font-size: 14px; color: var(--text-3); }

/* The narrow header the legal pages and 404 carry: the same bar as the front
   page, with the stage colour behind it so the three pages open alike. */
.page-head {
  background: var(--stage);
  color: var(--stage-text);
  border-bottom: 1px solid var(--stage-line);
}

/* ── Entrance ────────────────────────────────────────────────────────────
 * Sections arrive as they scroll in. The hidden state is applied by the
 * script itself (`.js-reveal` on the root), so a page with no JavaScript —
 * or one whose script fails — renders everything visible rather than blank.
 * That failure mode is not hypothetical: a scroll-driven CSS animation whose
 * range never becomes active leaves its element at opacity zero forever, and
 * a tall viewport is enough to trigger it.
 */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js-reveal .reveal.in {
    opacity: 1;
    transform: none;
  }
}
