/* Helm — Night Drive v2 reference surface.
   Light body (Off White / Soft Fog), Navy reserved for hero, door, footer.
   Signal Mint is the single accent: CTAs, focus, live motion — never body text on light. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #032A63;
  --slate: #232D39;
  --mint: #49C98C;
  --fog: #EDF1F5;
  --off: #FAFBFC;
  --live: #E5484D;
  --ink: #232D39;
  --muted: #5C6B7A;
  --muted-on-navy: #B9C7DC;
  --line: #DCE3EA;
  --line-navy: rgba(250, 251, 252, 0.16);
  --radius: 10px;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--off);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

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

h1, h2, h3 { font-family: var(--display); margin: 0 0 0.5rem; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.tabular, time, .kick-time, .score { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.6rem;
}
.on-navy .eyebrow, .eyebrow.mint { color: var(--mint); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lockup { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.lockup img, .lockup svg { width: 30px; height: 30px; display: block; }
.lockup strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.045em;
  color: var(--slate);
}
.lockup span { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

.nav { margin-left: auto; display: flex; gap: 0.25rem; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.nav a:hover { background: var(--fog); }
.nav a.active { background: var(--navy); color: var(--off); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.72rem 1.4rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn-mint { background: var(--mint); color: #06321F; }
.btn-mint:hover { box-shadow: 0 6px 18px rgba(73, 201, 140, 0.35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--off); border-color: rgba(250, 251, 252, 0.4); }
.btn-ghost:hover { border-color: var(--off); }
.btn-navy { background: var(--navy); color: var(--off); }
.btn-navy:hover { box-shadow: 0 6px 18px rgba(3, 42, 99, 0.25); transform: translateY(-1px); }

/* ---------- Hero (navy) ---------- */

.hero {
  background: var(--navy);
  color: var(--off);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* grid motif — thin strokes, engineered not decorated */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(250, 251, 252, 0.05) 119px 120px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(250, 251, 252, 0.05) 119px 120px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.2rem 1.25rem 4.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: center;
}
.hero p.lead { color: var(--muted-on-navy); font-size: 1.12rem; max-width: 34rem; }
.hero .cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* data as atmosphere — today's kickoffs */
.kickoff-strip {
  background: rgba(35, 45, 57, 0.55);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.9rem;
  backdrop-filter: blur(4px);
}
.kickoff-strip .eyebrow { margin-bottom: 0.8rem; }
.kick-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-navy);
  font-size: 0.95rem;
  text-decoration: none;
}
.kick-row:first-of-type { border-top: 0; }
.kick-time { color: var(--muted-on-navy); min-width: 4.2rem; font-weight: 500; font-size: 0.88rem; }
.kick-match {
  color: var(--off);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
}
.kick-net { color: var(--muted-on-navy); font-size: 0.85rem; }
.kick-more { display: block; margin-top: 0.6rem; color: var(--mint); font-size: 0.88rem; font-weight: 600; text-decoration: none; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 0.45rem;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* SPA tile reuse on the home page (component CSS comes from /assets/tiles.css) */
.kickoff-strip .slate-row { display: block; text-decoration: none; margin-bottom: 0.6rem; }
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.today-grid .flip-card { min-height: 240px; }

/* ---------- Light sections ---------- */

.section { padding: 3.4rem 0; }
.section.alt { background: var(--fog); }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- The door (navy panel — the Pro moment) ---------- */

.door {
  background: var(--navy);
  color: var(--off);
  border-radius: 14px;
  padding: 2.6rem 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 2.2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.door::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(250, 251, 252, 0.07) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(250, 251, 252, 0.07) 59px 60px);
  pointer-events: none;
}
.door h2 { color: var(--off); }
.door p { color: var(--muted-on-navy); max-width: 32rem; }
.door-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--off);
  line-height: 1;
}
.door-price small { font-size: 1.05rem; font-weight: 500; color: var(--muted-on-navy); }
.door-side { text-align: center; display: grid; gap: 0.9rem; justify-items: center; position: relative; }
.door-fine { font-size: 0.82rem; color: var(--muted-on-navy); margin: 0; }

/* ---------- Forms ---------- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 2.2rem;
}
.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.field > span { font-weight: 600; font-size: 0.92rem; }
.field small { color: var(--muted); font-weight: 400; }
input[type="email"], input[type="text"], input[type="number"] {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--off);
  min-height: 44px;
}
input:focus-visible { outline: 3px solid rgba(3, 42, 99, 0.35); outline-offset: 1px; border-color: var(--navy); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.45rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--fog);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.choice:hover { border-color: var(--line-strong, #BCC8D4); }
.choice input { accent-color: var(--navy); width: 16px; height: 16px; }
.choice.checked { border-color: var(--navy); background: #fff; }

.form-msg { font-size: 0.92rem; min-height: 1.4em; margin-top: 0.4rem; }
.form-msg.error { color: var(--live); }
.form-msg.ok { color: var(--navy); font-weight: 600; }

.consent { font-size: 0.82rem; color: var(--muted); }

/* ---------- VW / thanks ---------- */

.vw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.shot-placeholder {
  border: 1px dashed var(--line-strong, #BCC8D4);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(35, 45, 57, 0.06) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(35, 45, 57, 0.06) 119px 120px),
    var(--fog);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Taxonomy page chrome ---------- */

.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1.4rem 0 0.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.page-head { padding: 0.4rem 0 1.6rem; }
.page-head .sub { color: var(--muted); max-width: 44rem; }

.answer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}
.cov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.cov-row:first-child { border-top: 0; }
a.cov-row:hover { background: var(--fog); }
.cov-left { display: grid; gap: 0.15rem; min-width: 0; }
.cov-left strong { font-family: var(--display); font-size: 1.02rem; color: var(--slate); }
.cov-meta { color: var(--muted); font-size: 0.85rem; }
.cov-price { color: var(--slate); font-weight: 600; }
.cov-truth { font-size: 0.9rem; color: var(--slate); }
.watch-chip {
  flex: 0 0 auto;
  background: var(--mint);
  color: #06321F;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
}
a.cov-row:hover .watch-chip { box-shadow: 0 4px 12px rgba(73, 201, 140, 0.35); }
.watch-chip.chip-quiet { background: var(--fog); color: var(--ink); border: 1px solid var(--line); }
a.cov-row:hover .watch-chip.chip-quiet { box-shadow: none; border-color: var(--ink); }
.cov-note { color: var(--muted); font-size: 0.78rem; padding: 0.7rem 1.2rem 0.2rem; margin: 0; }
.cov-disclaimer { color: var(--muted); font-size: 0.66rem; line-height: 1.5; margin: 0.55rem 0 2rem; }
.free-flag { color: var(--navy); font-weight: 700; }

.vw-grid #vw-form .field > span { white-space: nowrap; font-size: 0.92rem; }
@media (max-width: 860px) {
  .vw-grid #vw-form .field > span { white-space: normal; }
  .vw-grid #vw-form .field > span br { display: none; }
}

.provides-intro { font-weight: 700; margin: 0 0 0.6rem; }
.provides { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.85rem; }
.provides li { padding-left: 1.1rem; position: relative; line-height: 1.55; }
.provides li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); }
.provides-sub { display: block; margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }

.ea-hero { align-items: center; }
.door-hero {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-navy);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 330px;
  justify-self: end;
  align-self: center;
}
.door-hero .door-price { font-size: 2.7rem; font-weight: 700; color: var(--off); line-height: 1; }
.door-hero .door-price small { font-size: 1.05rem; font-weight: 500; color: var(--muted-on-navy); margin-left: 0.2rem; }
.door-hero .btn { text-align: center; }
.door-hero .door-fine { color: var(--muted-on-navy); font-size: 0.78rem; margin: 0; }
.provides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.6rem; margin-top: 1.2rem; max-width: 62rem; }
@media (max-width: 760px) {
  .provides-grid { grid-template-columns: 1fr; }
  .door-hero { justify-self: stretch; max-width: none; }
}

.hero-inner.on-navy { align-items: stretch; }
.hero-brand { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.5rem; }
.hero-side { display: flex; flex-direction: column; height: 100%; }
.hero-side > .eyebrow { margin: 0.6rem 0 0; }
.hero-side .kickoff-strip {
  margin-top: 1.35rem;
  margin-bottom: 4.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-side #kickoffs { display: flex; flex-direction: column; flex: 1; }
.hero-side #kickoffs .kick-row { flex: 1; align-items: center; }
.hero-side #kickoffs .kick-more { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line-navy); }
@media (max-width: 900px) {
  .hero-side { height: auto; }
  .hero-side .kickoff-strip { margin-top: 1rem; margin-bottom: 0; flex: initial; }
}
.kick-team { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.kick-team .mi-flag { margin-right: 0; }
.hero-brand img { width: 42px; height: 42px; }
.hero-brand span {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.hero-callout { font-weight: 600; font-size: 1.18rem; color: #fff; margin: 0 0 0.55rem; }

.h1-team { white-space: nowrap; }
.h1-flag {
  height: 0.72em;
  width: auto;
  border-radius: 3px;
  margin-right: 0.32em;
  vertical-align: -0.04em;
  box-shadow: 0 0 0 1px rgba(35, 45, 57, 0.22);
}
.h1-vs { color: var(--muted); font-weight: 500; }
.mi-flag {
  height: 13px;
  width: auto;
  border-radius: 2px;
  margin-right: 0.38rem;
  vertical-align: -1px;
  box-shadow: 0 0 0 1px rgba(35, 45, 57, 0.18);
}
.mi-vs { color: var(--muted); font-weight: 500; }

.related-tiles { display: grid; gap: 0.7rem; }
.related-tiles .related-tile { display: block; text-decoration: none; }

.match-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.match-aside { display: grid; gap: 1rem; position: sticky; top: 4.5rem; }
.aside-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.aside-panel h3 { margin-bottom: 0.5rem; }
.aside-panel a { color: var(--navy); font-weight: 600; }
.aside-panel .match-list { margin: 0; }
@media (max-width: 980px) {
  .match-layout { grid-template-columns: 1fr; }
  .match-aside { position: static; }
}

.asof { font-size: 0.78rem; color: var(--muted); padding: 0.5rem 1.2rem 0.7rem; border-top: 1px solid var(--line); background: var(--fog); margin: 0; }
.asof a { color: var(--muted); }

.match-list { display: grid; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.match-item {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-decoration: none;
}
.match-item:hover { border-color: var(--navy); }
.match-item .kick-time { color: var(--muted); min-width: 5.4rem; font-size: 0.92rem; }
.match-item strong { flex: 1; font-weight: 600; }
.match-item .net { color: var(--muted); font-size: 0.85rem; }
.match-item .tag { font-size: 0.75rem; font-weight: 600; color: var(--navy); background: var(--fog); border-radius: 6px; padding: 0.15rem 0.5rem; }

.day-group h3 { margin: 1.6rem 0 0.6rem; font-size: 1.02rem; color: var(--slate); }

table.fixtures { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.94rem; }
table.fixtures th, table.fixtures td { text-align: left; padding: 0.6rem 0.9rem; border-top: 1px solid var(--line); }
table.fixtures thead th { background: var(--fog); border-top: 0; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.linkwall { columns: 3; gap: 1.5rem; font-size: 0.92rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.linkwall li { margin: 0 0 0.45rem; break-inside: avoid; }
.linkwall a { color: var(--slate); text-decoration: none; }
.linkwall a:hover { color: var(--navy); text-decoration: underline; }

/* early-access banner on taxonomy pages */
.ea-banner {
  background: var(--navy);
  color: var(--off);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 2.4rem 0 0;
}
.ea-banner p { margin: 0; color: var(--muted-on-navy); flex: 1; min-width: 16rem; }
.ea-banner strong { color: var(--off); display: block; font-family: var(--display); font-size: 1.05rem; }

/* ---------- Footer (navy) ---------- */

.footer { background: var(--navy); color: var(--muted-on-navy); margin-top: 3.5rem; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer img { width: 26px; height: 26px; }
.footer a { color: var(--muted-on-navy); text-decoration: none; }
.footer a:hover { color: var(--off); }
.footer .spacer { flex: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .door { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .vw-grid { grid-template-columns: 1fr; }
  .linkwall { columns: 2; }
  .nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .lockup span { display: none; }
}
@media (max-width: 560px) {
  .linkwall { columns: 1; }
  .answer-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .panel { padding: 1.4rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .btn { transition: none; }
}
