@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Sora:wght@400;500;600;700&display=swap");

/* ─────────────────────────────────────────────────────────────────────────────
   CricBoss — public site ("sporty" redesign)
   ─────────────────────────────────────────────────────────────────────────────
   The :root block immediately below is copied VERBATIM from
   ../../design-system/cricboss.css (CricBoss Design System v1.0).
   Do not edit it here. Edit the design system, then re-copy — the same rule the
   dashboard follows, so the relationship stays auditable.

   Everything after it is the site's own layer. This redesign recreates the
   direction drafted in ../../sporty-site/ (a ChatGPT draft, kept as reference):
   navy canvas, Barlow Condensed display headlines set large and uppercase, and
   a lime accent. The lime is NOT a v1.0 token — see the --sp-* block for where
   the site deliberately steps outside the system, and why.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* Brand */
  --cb-navy-950: #0b1220;
  --cb-navy-900: #111b2e;
  --cb-navy-800: #1a2942;
  --cb-navy-700: #263b5c;
  --cb-pitch-700: #10563d;
  --cb-pitch-600: #176b4d;
  --cb-pitch-500: #1f825e;
  --cb-pitch-100: #dcece5;
  --cb-pitch-50: #edf6f1;
  --cb-cream: #f5f2ea;
  --cb-white: #ffffff;

  /* Neutrals */
  --cb-slate-950: #141a24;
  --cb-slate-800: #2b3442;
  --cb-slate-700: #414c5d;
  --cb-slate-600: #5d6878;
  --cb-slate-500: #747f8e;
  --cb-slate-400: #9aa3af;
  --cb-slate-300: #c3c9d1;
  --cb-slate-200: #dce0e5;
  --cb-slate-100: #ebedf0;
  --cb-slate-50: #f6f7f8;

  /* Semantic */
  --cb-info-700: #165d88;
  --cb-info-100: #dceef8;
  --cb-success-700: #176b4d;
  --cb-success-100: #dcece5;
  --cb-warning-700: #8a5b13;
  --cb-warning-100: #f7e9c9;
  --cb-danger-700: #a23b3b;
  --cb-danger-100: #f8dddd;

  /* Surfaces and text */
  --cb-bg: var(--cb-cream);
  --cb-surface: var(--cb-white);
  --cb-surface-subtle: #faf9f5;
  --cb-text: var(--cb-slate-950);
  --cb-text-secondary: var(--cb-slate-600);
  --cb-text-inverse: var(--cb-white);
  --cb-border: var(--cb-slate-200);
  --cb-border-strong: var(--cb-slate-300);
  --cb-focus: #2684ff;

  /* Type */
  --cb-font-ui: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --cb-font-sport: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cb-weight-regular: 400;
  --cb-weight-medium: 500;
  --cb-weight-semibold: 600;
  --cb-weight-bold: 700;
  --cb-text-xs: 0.6875rem;
  --cb-text-sm: 0.75rem;
  --cb-text-md: 0.875rem;
  --cb-text-lg: 1rem;
  --cb-text-xl: 1.25rem;
  --cb-text-2xl: 1.75rem;
  --cb-text-3xl: 2.5rem;
  --cb-text-4xl: 4rem;

  /* Spacing: 4px base */
  --cb-space-0: 0;
  --cb-space-1: 0.25rem;
  --cb-space-2: 0.5rem;
  --cb-space-3: 0.75rem;
  --cb-space-4: 1rem;
  --cb-space-5: 1.25rem;
  --cb-space-6: 1.5rem;
  --cb-space-8: 2rem;
  --cb-space-10: 2.5rem;
  --cb-space-12: 3rem;
  --cb-space-16: 4rem;
  --cb-space-20: 5rem;

  /* Shape and elevation */
  --cb-radius-sm: 0.25rem;
  --cb-radius-md: 0.5rem;
  --cb-radius-lg: 0.75rem;
  --cb-radius-pill: 999px;
  --cb-border-width: 1px;
  --cb-shadow-1: 0 1px 2px rgb(11 18 32 / 8%);
  --cb-shadow-2: 0 8px 24px rgb(11 18 32 / 10%);

  /* Motion */
  --cb-duration-fast: 120ms;
  --cb-duration-base: 180ms;
  --cb-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ── Sporty extension ────────────────────────────────────────────────────────
   Deliberate departures from v1.0, all named here so they can be found and
   reverted in one place.

   --sp-lime   The campaign accent. v1.0 says "brand green is deliberately
               restrained"; this redesign wants a loud one for eyebrows,
               numbers, the marquee strip and the primary button. It reads
               13.3:1 against navy, so it is also the most legible colour on
               the page. Pitch green (--cb-pitch-600) still carries the
               accent on light sections, where lime would not hold up.
   --sp-*      Light-section surfaces and secondary text, plus the photo
               scrims. These are set to hit AA against their own backgrounds
               (checked: every text pair on the page is ≥ 5.6:1). */

:root {
  --sp-lime: #c2f34f;
  --sp-lime-hover: #d7ff80;
  --sp-lime-ink: #263b24;          /* secondary text on lime, 9.4:1 */
  --sp-muted: #adb8c7;             /* secondary text on navy, 8.6:1 */
  --sp-light: #f7f9fa;             /* light section canvas */
  --sp-light-alt: #eef1ef;         /* alternate light canvas */
  --sp-light-ink: #53606e;         /* secondary text on light, 6.1:1 */
  --sp-hairline-dark: rgb(255 255 255 / 14%);
  --sp-hairline-light: #cbd2d7;
  --sp-scrim: #081321;
  --sp-header: #0d1625;
  --sp-finish: #0b1423;

  --mark-ink: var(--cb-white);
  --mark-seam: var(--sp-lime);

  --gutter: 6%;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cb-navy-900);
  color: var(--sp-light);
  font-family: var(--cb-font-ui);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--sp-lime);
  outline-offset: 6px;
}
.light :focus-visible,
.lime :focus-visible { outline-color: var(--cb-navy-900); }

.skip {
  position: absolute;
  left: var(--cb-space-4);
  top: -6rem;
  z-index: 100;
  padding: var(--cb-space-3) var(--cb-space-4);
  background: var(--cb-navy-900);
  color: var(--cb-white);
  font-weight: var(--cb-weight-semibold);
  border: 1px solid var(--sp-lime);
  transition: top var(--cb-duration-base) var(--cb-ease);
}
.skip:focus { top: var(--cb-space-4); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Type roles ──────────────────────────────────────────────────────────── */

.display {
  font-family: var(--cb-font-sport);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 var(--cb-space-6);
  font-size: 0.8125rem;
  font-weight: var(--cb-weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-lime);
}
.light .eyebrow { color: var(--cb-pitch-600); }
.lime  .eyebrow { color: var(--sp-lime-ink); }

h2.display {
  font-size: clamp(3.25rem, 6vw, 5.375rem);
  font-weight: var(--cb-weight-semibold);
}

h3 { font-size: 1.375rem; line-height: 1.3; font-weight: var(--cb-weight-semibold); }

.muted { color: var(--sp-muted); }
.light .muted { color: var(--sp-light-ink); }
.lime  .muted { color: var(--sp-lime-ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cb-space-8);
  padding: 1.0625rem 1.625rem;
  background: var(--sp-lime);
  color: var(--cb-navy-900);
  border: 1px solid var(--sp-lime);
  font-size: 0.9375rem;
  font-weight: var(--cb-weight-semibold);
  transition: background var(--cb-duration-base) var(--cb-ease);
}
.button:hover { background: var(--sp-lime-hover); }
.button .arrow { font-size: 1.375rem; line-height: 1; }
.button.small { padding: 0.625rem 1.25rem; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: var(--cb-space-8);
  padding: var(--cb-space-3) 0;
  border-bottom: 1px solid currentColor;
  font-size: var(--cb-text-md);
  font-weight: var(--cb-weight-medium);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 6rem;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cb-space-6);
  background: var(--sp-header);
  border-bottom: 1px solid var(--sp-hairline-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--cb-white);
}
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; }
.brand span { font-weight: var(--cb-weight-medium); }
.brand b { font-weight: var(--cb-weight-bold); }

.site-nav { display: flex; gap: var(--cb-space-8); font-size: var(--cb-text-md); }
.site-nav a { padding-block: var(--cb-space-2); color: var(--sp-light); }
.site-nav a:hover { color: var(--sp-lime); }

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 47.5rem;
  height: calc(100svh - 6rem);
  max-height: 62.5rem;
  display: flex;
  align-items: center;
  padding: 3.75rem var(--gutter);
  background: var(--cb-navy-800) url("/assets/hero-1600.webp") 60% center / cover no-repeat;
}
/* Legibility scrim over the photograph — not a decorative gradient. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 19 33 / 93%) 0%, rgb(8 19 33 / 67%) 42%, rgb(8 19 33 / 0%) 80%),
    linear-gradient(0deg, rgb(8 19 33 / 68%), transparent 40%);
}

.hero-content { max-width: 44.375rem; }

h1.display {
  margin: 0 0 var(--cb-space-8);
  font-size: clamp(5.5rem, 11vw, 11rem);
  font-weight: var(--cb-weight-bold);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
h1 em, .finish em { font-style: normal; color: var(--sp-lime); }

.intro {
  max-width: 31.25rem;
  margin-bottom: var(--cb-space-8);
  font-size: 1.125rem;
  color: #e0e5eb;
}

.hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Marquee strip ───────────────────────────────────────────────────────── */

.strip {
  display: flex;
  justify-content: space-between;
  gap: var(--cb-space-6);
  padding: var(--cb-space-6) var(--gutter);
  background: var(--sp-lime);
  color: var(--cb-navy-900);
  font-family: var(--cb-font-sport);
  font-size: 1.375rem;
  font-weight: var(--cb-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.section { padding: 6.25rem var(--gutter); }
.light { background: var(--sp-light); color: var(--cb-navy-900); }
.light-alt { background: var(--sp-light-alt); color: var(--cb-navy-900); }
.lime { background: var(--sp-lime); color: var(--cb-navy-900); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5rem;
  align-items: end;
  margin-bottom: 3.25rem;
}
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading > p:last-child { max-width: 33.75rem; }

/* 01 — Platform: three columns split by hairlines */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sp-hairline-dark);
}
.features article { padding: 2.25rem 2rem 1.25rem 0; }
.features article + article { padding-left: 2rem; border-left: 1px solid var(--sp-hairline-dark); }
.number {
  display: block;
  font-family: var(--cb-font-sport);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--sp-lime);
}
.features h3 { margin-top: var(--cb-space-5); }
.features p { margin-top: var(--cb-space-3); font-size: 0.9375rem; }
.tag {
  display: block;
  margin-top: var(--cb-space-8);
  font-size: var(--cb-text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-lime);
}

/* 02 — Tracks: two full-bleed photo cards */
.tracks { padding: 5.625rem 0 0; }
.tracks > .section-heading { padding: 0 var(--gutter); }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; }
.track {
  position: relative;
  isolation: isolate;
  min-height: 40rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cb-white);
}
.track > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(7 18 32 / 96%) 0%, rgb(7 18 32 / 65%) 35%, rgb(7 18 32 / 0%) 85%);
}
.track-copy { padding: 3rem 10%; max-width: 40.625rem; }
.track-copy .eyebrow { margin-bottom: var(--cb-space-4); color: var(--sp-lime); }
.track h3.display {
  font-size: clamp(2.25rem, 3.5vw, 3.375rem);
  font-weight: var(--cb-weight-semibold);
  line-height: 1;
}
.track-copy p:not(.eyebrow) { margin-top: var(--cb-space-4); font-size: 0.9375rem; color: #e3e9ef; }
.track-copy .link-line { margin-top: var(--cb-space-5); }

/* 03 — Season: intro + numbered timeline */
.season {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10%;
}
.season-intro > p:last-child { max-width: 23.75rem; margin-top: var(--cb-space-8); }
.timeline li {
  display: flex;
  gap: 1.75rem;
  padding: 1.5625rem 0;
  border-top: 1px solid var(--sp-hairline-light);
}
.timeline li:first-child { padding-top: 0; border-top: 0; }
.timeline li > span {
  flex: none;
  font-family: var(--cb-font-sport);
  font-size: 2rem;
  line-height: 1;
  color: var(--cb-pitch-600);
}
.timeline h3 { font-size: 1.1875rem; }
.timeline p { margin-top: 0.625rem; font-size: 0.9375rem; }

/* 04 — Control: the escalation boundary, on lime */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgb(17 27 46 / 32%);
}
.rule-label {
  display: block;
  font-size: var(--cb-text-sm);
  font-weight: var(--cb-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rules h3 { margin-top: var(--cb-space-4); }
.rules p { margin-top: var(--cb-space-3); font-size: 0.9375rem; }

/* 05 — Dashboard: three views + paperwork line */
.view-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--sp-hairline-dark);
}
.view-list span {
  display: block;
  font-family: var(--cb-font-sport);
  font-size: var(--cb-text-md);
  font-weight: var(--cb-weight-semibold);
  letter-spacing: 0.1em;
  color: var(--sp-lime);
}
.view-list h3 { margin-top: var(--cb-space-3); }
.view-list p { margin-top: var(--cb-space-3); font-size: 0.9375rem; }

.paperwork {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sp-hairline-dark);
}
.paperwork > p:last-child {
  max-width: 62.5rem;
  font-family: var(--cb-font-sport);
  font-size: 1.75rem;
  font-weight: var(--cb-weight-medium);
  line-height: 1.6;
}
.paperwork i { padding: 0 var(--cb-space-3); font-style: normal; color: var(--sp-lime); }

/* 06 — Demo reel */
.demo-reel {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 6%;
  align-items: center;
}
.demo-copy > p:not(.eyebrow) { max-width: 26.25rem; }
.demo-note {
  display: inline-block;
  margin-top: var(--cb-space-5);
  font-family: var(--cb-font-sport);
  font-size: var(--cb-text-sm);
  font-weight: var(--cb-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-pitch-600);
}
.demo-screen {
  padding: 0.75rem;
  background: var(--cb-navy-950);
  box-shadow: 1.25rem 1.25rem 0 var(--sp-lime);
}
.demo-screen img { display: block; width: 100%; height: auto; border: 1px solid var(--cb-navy-700); }

/* Finish */
.finish {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 5rem;
  align-items: end;
  padding: 6rem var(--gutter);
  background: var(--sp-finish);
}
.finish h2.display { font-size: clamp(4rem, 8vw, 7.25rem); }
.finish > div > p:not(.eyebrow) { margin: 1.75rem 0; }
.finish aside { padding: var(--cb-space-3) 0 var(--cb-space-3) 2.75rem; border-left: 1px solid var(--sp-hairline-dark); }
.finish aside h3 { font-size: 1.75rem; }
.finish aside p { margin-top: var(--cb-space-3); font-size: 0.9375rem; }
.finish aside > a {
  display: inline-block;
  margin-top: var(--cb-space-4);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--sp-lime);
  font-size: var(--cb-text-md);
}
.finish .button { max-width: 100%; gap: var(--cb-space-4); overflow-wrap: anywhere; }

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--sp-hairline-dark);
  font-size: 0.8125rem;
  color: var(--sp-muted);
}
.site-footer .brand { font-size: 1.5rem; }
.site-footer > a:not(.brand) { text-decoration: underline; text-underline-offset: 0.3125rem; }
.site-footer > p:last-child { grid-column: 1 / -1; margin-top: var(--cb-space-6); font-size: var(--cb-text-sm); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 43.75rem) {
  .site-header { height: 5rem; }
  .site-nav { display: none; }
  .brand { font-size: 1.5rem; }
  .button.small { padding: 0.5rem 0.75rem; gap: 0.75rem; font-size: 0.8125rem; }

  .hero {
    min-height: 45rem;
    height: calc(100svh - 5rem);
    padding: 3.5rem var(--gutter) 6.25rem;
    background-image: url("/assets/hero-900.webp");
    background-position: 63% center;
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgb(8 19 33 / 93%), rgb(8 19 33 / 33%)),
      linear-gradient(0deg, rgb(8 19 33 / 73%), transparent);
  }
  .hero-content { padding-top: 2.5rem; }
  .hero-bottom { font-size: 0.625rem; }
  .hero-bottom span:last-child { display: none; }
  .intro { font-size: 1rem; }

  .strip { flex-wrap: wrap; gap: 0.75rem 1.5rem; font-size: 1.125rem; }
  .strip span:first-child { width: 100%; }

  .section { padding: 4rem var(--gutter); }
  .section-heading { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .eyebrow { font-size: var(--cb-text-sm); letter-spacing: 0.1em; }

  .features { grid-template-columns: 1fr; }
  .features article { padding: 1.75rem 0; }
  .features article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--sp-hairline-dark); }

  .tracks { padding-top: 4rem; }
  .track-grid, .season, .rules, .view-list, .finish, .demo-reel, .site-footer { grid-template-columns: 1fr; }
  .track { min-height: 35rem; }
  .track-copy { padding: 2.25rem var(--gutter); }
  .season { gap: 2.25rem; }
  .rules, .view-list { gap: 1.75rem; }

  .demo-reel { gap: 2.25rem; }
  .demo-screen { padding: 0.5rem; box-shadow: 0.625rem 0.625rem 0 var(--sp-lime); }

  .finish { gap: 3rem; padding: 4rem var(--gutter); }
  .finish aside { padding: 1.75rem 0 0; border-left: 0; border-top: 1px solid var(--sp-hairline-dark); }
  .finish .button { padding: 1rem; font-size: 0.8125rem; }
  .finish .button .arrow { display: none; }

  .site-footer a { overflow-wrap: anywhere; }
}

/* ── Motion and print ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .skip, .hero-bottom, .button { display: none; }
  body, .hero, .section, .finish { background: #fff !important; color: #000 !important; }
  .hero::after, .track::after { display: none; }
}
