/*
 * Matchpoint Stream marketing site: one stylesheet, no inline styles.
 * Same rules as the app (src/web/styles.css): colours are channel tokens in :root and nowhere else,
 * sizes are rem (1rem = 16px) except hairline borders, and every class is used by index.html (scripts/audit-site.mjs).
 * The layout is intrinsic (flex-wrap, auto-fit grids, clamp), so it needs no media queries.
 */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: 1 47 129;
  --sky: 0 156 252;
  --azure: 4 132 251;
  --cobalt: 0 104 184;
  --ice: 159 214 255;
  --haze: 220 230 247;
  --cloud: 242 246 252;
  --rule: 220 228 241;
  --ink: 43 50 64;
  --slate: 74 85 104;
  --steel: 143 166 204;
  --dusk: 159 180 218;
  --white: 255 255 255;
  --black: 0 0 0;
  --live: 229 36 59;
  /* the stream illustration */
  --deep: 10 30 74;
  --night: 11 42 94;
  --turf: 28 122 84;
  --post: 215 222 232;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: rgb(var(--white));
  color: rgb(var(--ink));
  font-family: 'Archivo', system-ui, sans-serif;
}

/* Zero-specificity defaults, so every component class below can set its own colours. */
:where(a) { color: rgb(var(--navy)); }
:where(a:hover) { color: rgb(var(--azure)); }
:where(a:focus-visible) { outline: 0.1875rem solid rgb(var(--azure)); outline-offset: 0.1875rem; }
:where(.hero, .section--navy) :where(a:focus-visible) { outline-color: rgb(var(--ice)); }

.wrap { max-width: 75rem; margin: 0 auto; padding-inline: 1.5rem; }

/* Buttons and links that look like buttons. */
.btn { text-decoration: none; border-radius: 0.375rem; }
.btn--navy { background: rgb(var(--navy)); color: rgb(var(--white)); font-weight: 600; padding: 0.75rem 1.125rem; min-height: 1.25rem; }
.btn--outline { font-weight: 800; display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid rgb(var(--navy)); color: rgb(var(--navy)); padding: 0.625rem 1.125rem; min-height: 1.25rem; }
.btn--sky { background: rgb(var(--sky)); color: rgb(var(--navy)); font-weight: 800; font-size: 1rem; padding: 1rem 1.625rem; }
.btn--ghost { color: rgb(var(--white)); font-weight: 700; font-size: 1rem; padding: 0.875rem 1.5rem; border: 2px solid rgb(var(--white) / 0.45); }
.btn--mail { background: rgb(var(--sky)); color: rgb(var(--navy)); font-weight: 800; font-size: 1.25rem; padding: 1.125rem 1.875rem; border-radius: 0.5rem; }

.icon { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon--user { width: 1.125rem; height: 1.125rem; stroke: currentColor; stroke-width: 2.2; }
.icon--card { width: 2.25rem; height: 2.25rem; stroke: rgb(var(--azure)); stroke-width: 2; }
.icon--download { width: 1.125rem; height: 1.125rem; stroke: rgb(var(--navy)); stroke-width: 2; }

/* Header */
.site-header { background: rgb(var(--white)); border-bottom: 3px solid rgb(var(--sky)); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; }
.brand__logo { height: 2.5rem; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; font-size: 0.9375rem; font-weight: 600; }
.nav__link { color: rgb(var(--navy)); text-decoration: none; }
.nav__link:hover { color: rgb(var(--azure)); }

/* Sections share a background and a vertical rhythm; the content sits in a .wrap. */
.section { background: rgb(var(--white)); }
.section--navy { background: rgb(var(--navy)); color: rgb(var(--white)); }
.section--cloud { background: rgb(var(--cloud)); border-top: 1px solid rgb(var(--rule)); }
.section__body { padding-block: 6rem; display: flex; flex-direction: column; gap: 3rem; }
.section__head { display: flex; flex-direction: column; gap: 0.875rem; max-width: 42.5rem; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--cobalt)); }
.eyebrow--ice { color: rgb(var(--ice)); }
.eyebrow--slate { color: rgb(var(--slate)); }
.title { margin: 0; font-stretch: 118%; font-weight: 800; font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.1; }
.title--navy { color: rgb(var(--navy)); }
.title--app { font-size: clamp(1.75rem, 3.5vw, 2.375rem); }
.title--cta { font-stretch: 125%; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; text-transform: uppercase; }
.lead { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.text { margin: 0; font-size: 1rem; line-height: 1.6; }
.text--haze { color: rgb(var(--haze)); }

/* Hero */
.hero { background: rgb(var(--navy)); color: rgb(var(--white)); position: relative; overflow: hidden; }
.hero__body { padding-block: 5.5rem 6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 3.5rem; }
.hero__copy { flex: 1 1 27.5rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.hero__tag { display: flex; align-items: center; gap: 0.625rem; }
.hero__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--sky)); display: inline-block; }
.hero__title { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
.hero__accent { color: rgb(var(--sky)); }
.hero__lede { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: rgb(var(--haze)); max-width: 32.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; padding-top: 0.5rem; }
.hero__visual { flex: 1 1 28.75rem; min-width: 0; }
.hero__caption { margin: 0.75rem 0 0; font-size: 0.8125rem; color: rgb(var(--dusk)); }
.hero__band { height: 0.625rem; background: rgb(var(--sky)); }

/* The stream illustration: a court, a LIVE tag, a court label and the score bug. */
.stream { position: relative; aspect-ratio: 16 / 10; background: rgb(var(--deep)); border-radius: 0.625rem; overflow: hidden; box-shadow: 0 1.875rem 3.75rem rgb(var(--black) / 0.35); }
.stream__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-sky { fill: rgb(var(--night)); }
.art-turf { fill: rgb(var(--turf)); }
.art-lines { fill: none; stroke: rgb(var(--white)); stroke-width: 2.5; stroke-opacity: 0.9; }
.art-net { stroke: rgb(var(--cloud)); stroke-width: 6; stroke-opacity: 0.55; }
.art-post { fill: rgb(var(--post)); }
.stream__live { position: absolute; top: 1rem; left: 1rem; display: flex; align-items: center; gap: 0.5rem; background: rgb(var(--live)); color: rgb(var(--white)); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; padding: 0.375rem 0.625rem; border-radius: 0.25rem; }
.stream__live-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: rgb(var(--white)); display: inline-block; }
.stream__court { position: absolute; top: 1rem; right: 1rem; background: rgb(var(--navy) / 0.85); color: rgb(var(--white)); font-size: 0.75rem; font-weight: 700; padding: 0.375rem 0.625rem; border-radius: 0.25rem; }
.scorebug { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: stretch; border-radius: 0.375rem; overflow: hidden; font-size: 0.875rem; box-shadow: 0 0.5rem 1.5rem rgb(var(--black) / 0.35); }
.scorebug__mark { background: rgb(var(--white)); display: flex; align-items: center; padding: 0.5rem; }
.scorebug__icon { width: 2.125rem; height: 2.125rem; display: block; }
.scorebug__grid { background: rgb(var(--navy)); color: rgb(var(--white)); display: grid; grid-template-columns: auto auto auto; column-gap: 1rem; row-gap: 0.25rem; padding: 0.5rem 0.875rem; align-items: center; }
.scorebug__name { font-weight: 700; }
.scorebug__set { color: rgb(var(--ice)); }
.scorebug__now { font-weight: 800; text-align: center; }
.scorebug__now--lead { background: rgb(var(--sky)); color: rgb(var(--navy)); padding: 0 0.375rem; border-radius: 0.1875rem; }

/* Sports strip */
.sports { background: rgb(var(--cloud)); border-bottom: 1px solid rgb(var(--rule)); }
.sports__bar { padding-block: 1.375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.sports__list { display: flex; flex-wrap: wrap; gap: 0.625rem 1.75rem; font-stretch: 112%; font-weight: 800; font-size: 1.25rem; color: rgb(var(--navy)); text-transform: uppercase; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card { border: 1px solid rgb(var(--rule)); border-radius: 0.625rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; }
.card__title { margin: 0; font-size: 1.25rem; font-weight: 800; color: rgb(var(--navy)); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14.375rem, 1fr)); gap: 1.75rem; }
.step { display: flex; flex-direction: column; gap: 0.75rem; border-top: 3px solid rgb(var(--sky)); padding-top: 1.25rem; }
.step__no { font-stretch: 125%; font-weight: 800; font-size: 2.125rem; color: rgb(var(--sky)); }
.step__title { margin: 0; font-size: 1.1875rem; font-weight: 800; }

/* Events and sponsors */
.events__body { padding-block: 6rem; display: flex; flex-wrap: wrap; gap: 3rem; }
.events__col { flex: 1 1 30rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.events__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.event { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1.125rem; border-bottom: 1px solid rgb(var(--rule)); }
.event__name { font-size: 1.125rem; font-weight: 700; color: rgb(var(--navy)); }
.event__sport { font-size: 0.875rem; color: rgb(var(--slate)); white-space: nowrap; }
.sponsor { flex: 1 1 21.25rem; min-width: 0; align-self: flex-start; background: rgb(var(--cloud)); border-radius: 0.75rem; padding: 2.25rem; display: flex; flex-direction: column; gap: 1rem; border-top: 6px solid rgb(var(--sky)); }
.sponsor__title { margin: 0; font-stretch: 112%; font-size: 1.625rem; font-weight: 800; line-height: 1.2; color: rgb(var(--navy)); }
.sponsor__link { font-weight: 800; font-size: 1rem; padding-block: 0.625rem; }

/* App */
.app__body { padding-block: 5.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }
.app__icon { width: 7.5rem; height: 7.5rem; border-radius: 1.625rem; box-shadow: 0 0.75rem 1.875rem rgb(var(--navy) / 0.18); display: block; }
.app__copy { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.app__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge-soon { display: inline-flex; align-items: center; gap: 0.625rem; background: rgb(var(--white)); border: 2px dashed rgb(var(--steel)); color: rgb(var(--navy)); font-weight: 800; font-size: 1rem; padding: 0.875rem 1.375rem; border-radius: 0.5rem; }

/* Contact */
.cta__body { padding-block: 6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.375rem; }
.cta__text { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: rgb(var(--haze)); max-width: 35rem; }

/* Footer */
.site-footer { background: rgb(var(--white)); border-top: 3px solid rgb(var(--sky)); }
.site-footer__bar { padding-block: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: rgb(var(--slate)); }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__icon { width: 2rem; height: 2rem; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.site-footer__link { font-weight: 600; }
.site-footer__mail { font-weight: 700; }

/* Privacy policy and terms: one readable column of long text. */
.legal { max-width: 46rem; padding-block: 4rem 6rem; display: flex; flex-direction: column; gap: 1rem; }
.legal__title { margin: 0; font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; color: rgb(var(--navy)); }
.legal__meta { margin: 0; color: rgb(var(--slate)); }
.legal h2 { margin: 1.25rem 0 0; font-weight: 800; font-size: 1.375rem; line-height: 1.2; color: rgb(var(--navy)); }
.legal p { margin: 0; font-size: 1rem; line-height: 1.7; }
.legal ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal li { line-height: 1.7; }
