/* Sports Challenges — static site stylesheet
   Palette: bib red + bib blue (the two team colours on our scoreboards),
   slate ink, court-line white, scoreboard amber. Type: Barlow / Barlow Condensed. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #1b2430;
  --ink-soft: #4a5566;
  --line: #d9dee5;
  --paper: #ffffff;
  --court: #f1f4f7;
  --red: #d61d2f;
  --red-dark: #b0162a;
  --blue: #1e5aa8;
  --amber: #ffb627;
  --board: #17202b;
  --board-2: #222d3a;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { font-family: var(--font-cond); font-weight: 700; font-size: 1.45rem; line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-cond); font-weight: 600; font-size: 1.08rem;
  color: var(--ink); text-decoration: none; padding: 8px 11px; border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { background: var(--court); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 1.25rem; border-bottom: 1px solid var(--court); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem;
  padding: 11px 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--red); color: #fff; border: 2px solid var(--red); cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.on-dark.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn.on-dark.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); background: var(--court); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero p.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The scoreboard */
.board {
  background: var(--board); color: #fff; border-radius: 10px; padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(23,32,43,.55);
  font-family: var(--font-cond);
}
.board-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; color: #b7c1cd; padding: 0 4px 12px; }
.board-top .clock { font-size: 1.6rem; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.board-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team { border-radius: 6px; padding: 14px 16px 10px; position: relative; overflow: hidden; }
.team.home { background: var(--red); }
.team.away { background: var(--blue); }
.team .name { font-size: 1.2rem; font-weight: 600; opacity: .95; }
.team .score { font-size: clamp(4.5rem, 11vw, 7.5rem); font-weight: 700; line-height: .95; font-variant-numeric: tabular-nums; }
.team .score.bump { animation: bump .6s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); color: var(--amber); } 100% { transform: scale(1); } }
.board-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.board-foot div { background: var(--board-2); border-radius: 6px; padding: 9px 14px; font-size: 1rem; color: #cfd6de; }
.board-foot strong { color: #fff; font-weight: 600; }
.board-caption { font-family: var(--font); font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .team .score.bump { animation: none; } }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.block.tint { background: var(--court); }
section.block.dark { background: var(--board); color: #fff; }
section.block.dark p { color: #cfd6de; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.dark .section-head p { color: #cfd6de; }

/* Free vs subscription ladder */
.ladder { display: grid; grid-template-columns: 1fr 1.35fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ladder > div { padding: 30px clamp(20px, 3vw, 36px); }
.ladder .free { background: var(--paper); }
.ladder .pro { background: var(--ink); color: #fff; }
.ladder .pro p { color: #cfd6de; }
.ladder .tag { display: inline-block; font-family: var(--font-cond); font-weight: 700; font-size: 1rem; padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; }
.ladder .free .tag { background: var(--court); color: var(--ink-soft); }
.ladder .pro .tag { background: var(--red); color: #fff; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding: 7px 0 7px 30px; position: relative; border-top: 1px solid var(--line); }
.pro .ticks li { border-top-color: rgba(255,255,255,.12); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}
.pro .ticks li::before { border-color: var(--amber); }
@media (max-width: 820px) { .ladder { grid-template-columns: 1fr; } }

/* Modules: a list, each row its own weight */
.modules { border-top: 2px solid var(--ink); }
.module {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.module:hover { color: var(--ink); background: linear-gradient(90deg, var(--court), transparent 70%); }
.module h3 { margin: 0; font-size: 2rem; }
.module p { margin: 0; color: var(--ink-soft); }
.module .more { font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; color: var(--red); white-space: nowrap; }
@media (max-width: 760px) { .module { grid-template-columns: 1fr; gap: 6px; } }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-left: 1px solid rgba(255,255,255,.14); }
.client { padding: 6px 28px 10px; border-right: 1px solid rgba(255,255,255,.14); }
.client h3 { font-size: 1.75rem; margin-bottom: 4px; }
.client h3 a { color: #fff; text-decoration: none; }
.client h3 a:hover { color: var(--amber); }
.client .uses { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
.client .uses li { font-family: var(--font-cond); font-size: .98rem; font-weight: 600; background: rgba(255,255,255,.08); color: #e6eaee; padding: 2px 9px; border-radius: 4px; }
@media (max-width: 900px) { .clients { grid-template-columns: 1fr; border-left: 0; } .client { border-right: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 24px 0; } }

.stat-line { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 40px; font-family: var(--font-cond); font-size: 1.3rem; color: #cfd6de; }
.stat-line strong { color: #fff; font-size: 1.6rem; margin-right: 6px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 18em; }
.cta-band p { margin: 8px 0 0; color: #ffe3e5; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band a.phone { color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 1.6rem; text-decoration: none; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--court); border-bottom: 1px solid var(--line); padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-head p { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-family: var(--font-cond); font-weight: 600; font-size: 1.02rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--red); color: var(--red); }

.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.feature:last-child { border-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.feature-text { position: sticky; top: 96px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-text { order: 0; } .feature-text { position: static; } }

.shot { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--court); box-shadow: 0 18px 40px -28px rgba(23,32,43,.5); }
.shot .chrome { display: flex; gap: 6px; padding: 9px 12px; background: #e6eaef; border-bottom: 1px solid var(--line); }
.shot .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c3cad3; }
.shot img { width: 100%; }
.shot.missing img { display: none; }
.shot .ph { display: none; min-height: 240px; place-items: center; text-align: center; padding: 24px; color: var(--ink-soft); font-size: .95rem; }
.shot.missing .ph { display: grid; }
.shot figcaption { padding: 10px 14px; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--paper); }

.callout { border-left: 4px solid var(--red); background: var(--court); padding: 18px 22px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }

.formats { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.formats li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.formats strong { font-family: var(--font-cond); font-size: 1.2rem; }
.formats span { color: var(--ink-soft); }

.link-tiers { list-style: none; padding: 0; margin: 16px 0; }
.link-tiers li { padding: 10px 0 10px 18px; border-left: 4px solid var(--line); margin-bottom: 8px; }
.link-tiers li:nth-child(1) { border-color: #2e9d5b; }
.link-tiers li:nth-child(2) { border-color: var(--amber); }
.link-tiers li:nth-child(3) { border-color: var(--red); }

/* Sport chips (scoreboards) */
.sports { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.sports li { font-family: var(--font-cond); font-weight: 600; font-size: 1.05rem; padding: 4px 12px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; background: var(--paper); }
.plan.featured { border: 2px solid var(--red); position: relative; }
.plan.featured .badge { position: absolute; top: -14px; left: 24px; background: var(--red); color: #fff; font-family: var(--font-cond); font-weight: 700; padding: 2px 12px; border-radius: 4px; }
.plan h3 { font-size: 2rem; margin-bottom: 4px; }
.plan .for { color: var(--ink-soft); min-height: 3.2em; }
.plan .price { font-family: var(--font-cond); font-weight: 700; font-size: 2.6rem; line-height: 1; margin: 10px 0 2px; }
.plan .price small { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.plan .ticks { flex: 1; margin-bottom: 24px; }
.plan .btn { text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-cond); font-size: 1.2rem; border-bottom: 2px solid var(--ink); }
.compare td.y { color: #2e9d5b; font-weight: 700; }
.compare td.n { color: #9aa4b1; }
.table-scroll { overflow-x: auto; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.person { font-family: var(--font-cond); font-size: 2rem; font-weight: 700; margin: 0; }
.contact-lines { list-style: none; padding: 0; margin: 14px 0 28px; }
.contact-lines li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.contact-lines a { font-weight: 600; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #b9c2cd; border-radius: var(--radius); padding: 11px 13px;
}
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); }
form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--board); color: #b7c1cd; padding: 56px 0 28px; font-size: .98rem; }
.site-footer a { color: #e6eaee; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 1.2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-brand .brand span { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* header button keeps button colours inside the nav */
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav a.btn[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }

/* Real logo */
.brand img { height: 46px; width: auto; flex: none; }
.site-footer .brand img { height: 56px; }

/* Client banners */
.client-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.12); }

/* Pricing */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.tiers > div { padding: 18px 20px 6px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.tiers > div:first-child { padding-left: 0; }
.tiers > div:last-child { border-right: 0; }
.tiers h3 { margin-bottom: 4px; }
.tiers p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } .tiers > div { padding: 14px 12px 10px 0 !important; border-right: 0; } }

.price-table { width: 100%; min-width: 640px; border-collapse: collapse; margin-top: 12px; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-family: var(--font-cond); font-size: 1.3rem; border-bottom: 2px solid var(--ink); }
.price-table td { width: 17%; }
.price-table small { display: block; color: var(--ink-soft); font-size: .82rem; font-weight: 400; }
.price-table tr.mod th, .price-table tr.mod td { background: var(--court); border-top: 12px solid var(--paper); }
.price-table tr.mod th { font-family: var(--font-cond); font-size: 1.35rem; }
.price-table tr.mod th a { color: var(--ink); text-decoration: none; }
.price-table tr.mod th a:hover { color: var(--red); }
.price-table .amt { font-family: var(--font-cond); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.price-table tr.sub th { font-weight: 400; padding-left: 24px; color: var(--ink-soft); }
.price-table tr.group th { font-family: var(--font-cond); font-size: 1.35rem; padding-top: 32px; border-bottom: 2px solid var(--ink); }
.price-table td.y { color: #2e9d5b; font-weight: 600; }
.price-table td.n { color: #9aa4b1; }
