/* STANDS — brand palette from mobile/stadium-memory (Graphite Chassis, Floodlight
   Titanium, Signal Crimson, Pitch Emerald). Screens stay black, chrome is graphite,
   colour is role-based: emerald = found / attended, crimson = live / goals. */

@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/ArchivoExpanded-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo SemiExpanded";
  src: url("/assets/fonts/ArchivoSemiExpanded-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #000000;
  --graphite: #1E2024;
  --concrete: #2C2C2E;
  --titanium: #E8ECF0;
  --chalk: #FFFFFF;
  --mist: #8E8E93;
  --dim: #636366;
  --emerald: #00B16A;
  --crimson: #E63232;
  --line: #2C2C2E;

  --maxw: 1120px;
  --poster: "Archivo SemiExpanded", "Archivo", Impact, "Arial Black", sans-serif;
  --micro: "Archivo Expanded", "Archivo", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--titanium);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Type roles */
.eyebrow {
  font-family: var(--micro);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 16px;
}
.poster {
  font-family: var(--poster);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  color: var(--titanium);
  margin: 0;
}

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; }
.nav {
  display: flex;
  gap: 24px;
  font-family: var(--micro);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a { color: var(--mist); }
.nav a:hover { color: var(--titanium); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--titanium);
  color: var(--night);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.btn:hover { background: var(--chalk); text-decoration: none; }
.btn-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--mist);
}

/* Intro: a camera roll of stadium photos fills the screen, then gathers into
   the phone as the page scrolls. Transforms and opacity only; JS drives it from
   scroll position. No-JS and reduced-motion get the end state, unpinned. */
.intro { position: relative; height: 320vh; }
.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.mosaic { position: absolute; inset: 0; }
.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  background: var(--graphite);
  will-change: transform, opacity;
  transform-origin: center;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.intro-scrim {
  position: absolute; inset: 0;
  background: var(--night);
  opacity: 0.42;
  pointer-events: none;
}
.intro-open {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  will-change: transform, opacity;
}
.intro-open h1 {
  font-size: clamp(44px, 8vw, 112px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  max-width: 14ch;
}
.intro-open .eyebrow { color: var(--titanium); }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  font-family: var(--micro);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
  margin: 0;
  opacity: 0.8;
}

.intro-end {
  --copy: 0;
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  padding: 72px 24px 28px;
  gap: 18px;
  pointer-events: none;
}
.intro-end-top, .intro-end-bottom {
  opacity: var(--copy);
  transform: translate3d(0, calc((1 - var(--copy)) * 16px), 0);
  will-change: transform, opacity;
}
.intro-end-top h2 { font-size: clamp(28px, 3.6vw, 52px); }
.intro-end-top .eyebrow { margin-bottom: 10px; }
.intro-end-bottom { pointer-events: auto; }
.intro-end-bottom .btn-note { margin-top: 10px; }
.intro-phone {
  height: 100%;
  min-height: 0;
  aspect-ratio: 920 / 1977;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: auto;
}
.intro-phone .phone { height: 100%; display: flex; }
.intro-phone .phone img { height: 100%; width: auto; aspect-ratio: auto; }
.pitch-line { height: 2px; background: var(--emerald); }

/* Static fallback: no JS or reduced motion */
.no-js .intro, .static-intro .intro { height: auto; }
.no-js .intro-stage, .static-intro .intro-stage { position: relative; height: auto; }
.no-js .mosaic, .no-js .intro-scrim, .no-js .intro-open,
.static-intro .mosaic, .static-intro .intro-scrim, .static-intro .intro-open { display: none; }
.no-js .intro-end, .static-intro .intro-end {
  --copy: 1;
  position: relative;
  padding: 64px 24px 56px;
}
.no-js .intro-phone, .static-intro .intro-phone {
  opacity: 1; height: auto; width: min(78vw, 340px);
}
.no-js .intro-phone .phone, .static-intro .intro-phone .phone { height: auto; }
.no-js .intro-phone .phone img, .static-intro .intro-phone .phone img { width: 100%; height: auto; aspect-ratio: 900 / 1957; }

/* Phone frame: flat graphite chassis around the screenshot, no shadow */
.phone {
  background: var(--graphite);
  border: 1px solid var(--concrete);
  border-radius: 44px;
  padding: 10px;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1957;
  border-radius: 34px;
  background: var(--night);
  object-fit: cover;
}

/* How it works */
.how { padding: 80px 0; border-bottom: 1px solid var(--line); }
.how h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 40px; max-width: 760px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  border-top: 1px solid var(--concrete);
  padding-top: 20px;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--micro);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--emerald);
  margin-bottom: 12px;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--titanium);
}
.steps p { margin: 0; color: var(--mist); font-size: 15px; }

/* Screens */
.screens { padding: 80px 0 96px; }
.screens h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 48px; max-width: 760px; }
.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
.screen-card .phone { margin-bottom: 22px; }
.screen-card .eyebrow { color: var(--titanium); margin-bottom: 8px; }
.screen-card p { margin: 0; color: var(--mist); font-size: 15px; }

/* Closing call */
.cta {
  border-top: 1px solid var(--line);
  padding: 80px 0;
}
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 640px; }
.cta-icon { display: flex; align-items: center; gap: 20px; }
.cta-icon img { width: 72px; height: 72px; border-radius: 18px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--mist);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 16px; }
.site-footer .footer-brand img { height: 14px; width: auto; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--titanium); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal article { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.legal .updated { color: var(--mist); font-size: 14px; margin: 0 0 40px; }
.legal h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  color: var(--titanium);
}
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: var(--titanium); }
.legal p, .legal li { color: #C9CED3; font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--emerald); }
.legal strong { color: var(--titanium); }
.legal em { color: var(--mist); }

/* Responsive */
@media (max-width: 1000px) {
  .screen-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}
@media (max-width: 820px) {
  .intro { height: 280vh; }
  .intro-end { padding: 64px 16px 20px; gap: 12px; }
  .intro-end-bottom .btn { height: 46px; font-size: 15px; }
  .how, .screens, .cta { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card .phone { max-width: 300px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* Inline code on text pages */
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--titanium);
  background: var(--graphite);
  padding: 2px 6px;
  border-radius: 6px;
}
