/* =============================================================================
   BOLA90 — official site
   Tokens mirror the app's design system (src/constants/theme.ts): green is the
   brand and drives every active state, orange marks what deserves attention,
   red is reserved for "live" so it never competes with the brand.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Light palette — the app's light theme */
  --bg: #f1f8ef;
  --surface: #ffffff;
  --surface-sunken: #e7f1e4;
  --border: #d7e6d2;
  --text: #0e1a0c;
  --text-2: #53664e;
  --text-3: #7c8f77;
  --accent: #2e9e42;
  --accent-soft: #dcf1de;
  --on-accent: #ffffff;
  --secondary: #ee7a18;
  --secondary-soft: #fcead6;
  --live: #de2010;
  --live-soft: #fbe4e1;

  /* The night-pitch ground used by the hero and CTA in both schemes */
  --pitch-1: #06120a;
  --pitch-2: #0d2415;
  --pitch-3: #113a1f;
  --on-pitch: #ffffff;
  --on-pitch-2: #9bae97;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --pill: 999px;

  --wrap: 1140px;
  --pad: 24px;

  --font: "Outfit", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgb(14 26 12 / 0.04), 0 8px 24px rgb(14 26 12 / 0.06);
  --shadow-lg: 0 24px 60px rgb(6 18 10 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a110b;
    --surface: #141d15;
    --surface-sunken: #0f170f;
    --border: #253326;
    --text: #ffffff;
    --text-2: #9bae97;
    --text-3: #71856d;
    --accent: #57d468;
    --accent-soft: #12301a;
    --on-accent: #04150c;
    --secondary: #ff9a3d;
    --secondary-soft: #34200d;
    --live: #ff5a4e;
    --live-soft: #2e1412;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / 0.55);
  }
}

/* ============================= base ============================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.skip:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================= brand ============================= */

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #1d7f31);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2px;
  height: 12px;
  background: var(--secondary);
  border-radius: var(--pill);
}

.brand__word {
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.045em;
}
.brand__accent { color: var(--secondary); }

/* ============================= nav ============================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav__links > a:not(.btn) { color: var(--text-2); transition: color 0.15s; }
.nav__links > a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.18s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= buttons ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

.btn--ghost {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.22);
  color: var(--on-pitch);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); }

/* ============================= hero ============================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--pitch-3) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, #123f22 0%, transparent 60%),
    linear-gradient(165deg, var(--pitch-2), var(--pitch-1));
  color: var(--on-pitch);
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 112px);
}

/* A real strike behind the phone. Anchored right so it never sits under the
   copy, and masked away to the left before it reaches the headline. */
.hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(70%, 900px);
  pointer-events: none;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
/* Keep the ground dark enough for white text and the phone mock to sit on. */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgb(6 18 10 / 0.45), rgb(6 18 10 / 0.72));
}

/* Mown pitch stripes, kept far back */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgb(255 255 255 / 0.022) 0 60px,
    transparent 60px 120px
  );
  pointer-events: none;
}

.hero__pitch {
  position: absolute;
  inset: -10% -5% auto auto;
  width: 70%;
  min-width: 620px;
  color: rgb(255 255 255 / 0.055);
  pointer-events: none;
}
.hero__pitch svg { width: 100%; height: auto; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy { max-width: 610px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-pitch-2);
  margin-bottom: 20px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.04);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

.eyebrow--dark {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--on-pitch-2);
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  list-style: none;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--on-pitch);
}
.hero__meta span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-pitch-2);
}

/* ============================= phone mock ============================= */

.hero__device { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b3a2d, #101a12);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: var(--pill);
  background: #0b120c;
  z-index: 2;
}

.phone__screen {
  border-radius: 34px;
  background: #0a110b;
  color: #fff;
  padding: 46px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  line-height: 1.35;
}

.ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 2px;
}
.ui-brand { font-weight: 900; font-size: 15px; letter-spacing: -0.04em; }
.ui-bell { color: #71856d; font-size: 14px; }

.ui-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #71856d;
  padding-left: 3px;
  margin-top: 3px;
}

.ui-card {
  background: #141d15;
  border: 1px solid #253326;
  border-radius: 14px;
  padding: 10px;
}
.ui-card--live { border-color: color-mix(in srgb, #ff5a4e 45%, #253326); }

.ui-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.ui-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ui-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
  flex: 1;
  min-width: 0;
}
.ui-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-team--right { justify-content: flex-end; text-align: right; }
.ui-score {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.03em;
  padding-inline: 6px;
}

.crest {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.15);
}
.crest--a { background: linear-gradient(150deg, #57d468, #1d7f31); }
.crest--b { background: linear-gradient(150deg, #ff9a3d, #c0560a); }

.ui-table { padding: 4px 10px; }
.ui-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 11px;
  border-top: 1px solid #1e2a1f;
}
.ui-row:first-child { border-top: 0; }
.ui-row b { width: 14px; color: #9bae97; font-weight: 700; }
.ui-row > span:not(.pos) { flex: 1; font-weight: 600; }
.ui-row em { font-style: normal; font-weight: 800; }
.ui-row i { color: #ff9a3d; font-style: normal; }
.ui-row--fav > span:not(.pos) { color: #57d468; }

.pos { width: 3px; height: 16px; border-radius: 2px; flex: none; }
.pos--ucl { background: #57d468; }
.pos--uel { background: #ff9a3d; }
.pos--rel { background: #ff5a4e; }

.ui-listing {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #141d15;
  border: 1px solid #253326;
  border-radius: 14px;
  padding: 9px 10px;
}
.ui-listing__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ui-listing__body strong { font-size: 11px; font-weight: 700; }
.ui-listing__body span { font-size: 10px; color: #9bae97; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  background: #12301a;
  color: #57d468;
}
.avatar--orange { background: #34200d; color: #ff9a3d; }

.ui-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #1e2a1f;
  margin-top: auto;
  padding-top: 9px;
  color: #71856d;
  font-size: 15px;
}
.ui-tabs .on { color: #57d468; }

/* chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--pill);
  padding: 3px 9px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: #1c271d;
  color: #9bae97;
  white-space: nowrap;
}
.chip--live { background: #2e1412; color: #ff5a4e; }
.chip--muted { background: #1c271d; color: #9bae97; }
.chip--free { background: #12301a; color: #57d468; }
.chip--sale { background: #34200d; color: #ff9a3d; }

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

/* ============================= sections ============================= */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--surface-sunken); }

.section__head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head h2 { margin-top: 6px; }
.section__sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.06rem;
}

/* feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 12px 34px rgb(14 26 12 / 0.1);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 18px;
}
.card__icon--orange { background: var(--secondary-soft); color: var(--secondary); }
.card__icon--live { background: var(--live-soft); color: var(--live); }
.card p { margin-top: 10px; color: var(--text-2); font-size: 0.97rem; }

/* split sections */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split__copy > p { margin-top: 18px; color: var(--text-2); }
.split__copy h2 { margin-top: 6px; }
.split--flip .split__copy { order: 2; }
/* Grid children default to min-width:auto, which lets the chip row push the
   panel past its column. */
.split__visual { min-width: 0; }

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--text-2);
  font-size: 0.98rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* panels */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.panel .chip {
  font-size: 12px;
  padding: 7px 14px;
  background: var(--surface-sunken);
  color: var(--text-2);
}
.panel .chip--on { background: var(--accent); color: var(--on-accent); }
.panel .chip--free { background: var(--accent-soft); color: var(--accent); }
.panel .chip--sale { background: var(--secondary-soft); color: var(--secondary); }
.panel .chip--muted { background: var(--surface-sunken); color: var(--text-2); }

.ui-listing--flat {
  background: var(--surface-sunken);
  border-color: var(--border);
  padding: 13px 14px;
  border-radius: var(--radius-lg);
}
.ui-listing--flat .ui-listing__body strong { font-size: 14px; color: var(--text); }
.ui-listing--flat .ui-listing__body span { font-size: 12.5px; color: var(--text-3); }
.ui-listing--flat .avatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ui-listing--flat .avatar--orange { background: var(--secondary-soft); color: var(--secondary); }

/* store tiles */

.panel--store { grid-template-columns: 1fr 1fr; gap: 14px; }

.tile {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tile strong { font-size: 0.92rem; }
.tile__img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgb(255 255 255 / 0.16) 0 14px,
    transparent 14px 28px
  );
}
.tile__img--a { background: linear-gradient(150deg, #2e9e42, #16652a); }
.tile__img--b { background: linear-gradient(150deg, #ee7a18, #a94f07); }
.tile__img--c { background: linear-gradient(150deg, #4b6f52, #24382a); }
.tile__img--d { background: linear-gradient(150deg, #1f6f8b, #123f52); }

.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.price { font-weight: 900; letter-spacing: -0.02em; color: var(--accent); }

/* legend */

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.legend__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.legend__item strong { display: block; font-size: 1rem; }
.legend__item p { margin-top: 5px; color: var(--text-2); font-size: 0.94rem; }

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.swatch--live { background: var(--live-soft); color: var(--live); }
.swatch--live .pulse { width: 12px; height: 12px; }
.swatch--orange { background: var(--secondary-soft); color: var(--secondary); }
.swatch--green { background: var(--accent-soft); color: var(--accent); }
.swatch--bars {
  background: var(--surface-sunken);
  gap: 3px;
  grid-auto-flow: column;
}
.swatch--bars i { width: 4px; height: 20px; border-radius: 2px; }
.swatch--bars i:nth-child(1) { background: var(--accent); }
.swatch--bars i:nth-child(2) { background: var(--secondary); }
.swatch--bars i:nth-child(3) { background: var(--live); }

/* ============================= matchday band ============================= */

/* The night-pitch ground again, so the photo lands between two light sections
   rather than fighting them. */
.pitch-band {
  background:
    radial-gradient(85% 110% at 78% 0%, var(--pitch-3) 0%, transparent 58%),
    linear-gradient(170deg, var(--pitch-2), var(--pitch-1));
  color: var(--on-pitch);
  padding-block: clamp(56px, 8vw, 96px);
}

.pitch-band__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.pitch-band__photo {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: var(--shadow-lg);
}
.pitch-band__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* The action sits above centre; bias the crop up so no heads are lost. */
  object-position: 50% 38%;
}

.pitch-band__copy h2 { margin-top: 6px; }
.pitch-band__copy p { margin-top: 18px; color: var(--on-pitch-2); }
.pitch-band__copy .eyebrow { color: var(--accent); }

/* ============================= cta ============================= */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% 0%, var(--pitch-3) 0%, transparent 60%),
    linear-gradient(175deg, var(--pitch-2), var(--pitch-1));
  color: var(--on-pitch);
  padding-block: clamp(64px, 8vw, 104px);
  text-align: center;
}

/* Township pitch behind the download band. The scrim does the heavy lifting —
   the buttons have to stay readable, the photo is only atmosphere. */
.cta__photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0.3;
}
.cta__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 50% 50%, rgb(6 18 10 / 0.82) 0%, rgb(6 18 10 / 0.6) 100%),
    linear-gradient(180deg, rgb(6 18 10 / 0.5), rgb(6 18 10 / 0.5));
}

.cta__inner { position: relative; max-width: 660px; margin-inline: auto; }
.cta p { margin-top: 16px; color: var(--on-pitch-2); font-size: 1.06rem; }

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.07);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.store-btn:hover {
  background: rgb(255 255 255 / 0.13);
  border-color: rgb(255 255 255 / 0.35);
  transform: translateY(-2px);
}
.store-btn__icon { font-size: 22px; color: var(--on-pitch); line-height: 1; }
.store-btn__text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-btn small { font-size: 0.7rem; color: var(--on-pitch-2); font-weight: 600; }
.store-btn strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }

.cta__note { font-size: 0.85rem !important; opacity: 0.7; margin-top: 20px !important; }

/* ============================= footer ============================= */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 34ch;
}

.rule {
  display: flex;
  width: 64px;
  height: 3px;
  border-radius: var(--pill);
  overflow: hidden;
  margin-top: 12px;
}
.rule i:first-child { flex: 1.6; background: var(--accent); }
.rule i:last-child { flex: 1; background: var(--secondary); }

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__links h4 {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer__links a {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }

.footer__base {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--text-3);
}
.footer__note { max-width: 62ch; }

/* ============================= reveal ============================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================= responsive ============================= */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .pitch-band__inner { grid-template-columns: 1fr; }
  .pitch-band__photo img { aspect-ratio: 3 / 2; }
  .hero__copy { max-width: none; }
  .hero__device { margin-top: 8px; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__copy { order: 0; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--pad) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 11px 2px; font-size: 1rem; }
  .nav__links .btn { margin-top: 8px; }

  .hero__meta { gap: 18px 28px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .footer__base { flex-direction: column; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .panel--store { grid-template-columns: 1fr; }
}
