/* ==========================================================================
   FootyHub — site layout and components.
   Reads tokens.css for every colour, radius and shadow.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-btn);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); }

/* --- Type ---------------------------------------------------------------- */

/* Oswald, uppercase, tracked wider as it grows — the app's display voice. */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.375rem, 6vw, 4.25rem); letter-spacing: 1px; }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); letter-spacing: 1px; }
h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: 1px; }

/* The small tracked label the app puts above panels (ball_knowledge_bar.dart). */
.overline {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-dark-54);
  margin: 0 0 var(--sp-3);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--on-dark-80);
  max-width: 54ch;
  margin: var(--sp-4) 0 0;
}

.section { padding-block: clamp(var(--sp-12), 9vw, var(--sp-20)); }
.section-head { margin-bottom: var(--sp-8); }
.section-head p { color: var(--on-dark-70); max-width: 60ch; margin: var(--sp-3) 0 0; }

/* --- Buttons -------------------------------------------------------------
   Radius 16, colour-matched glow under the primary CTA (home_page.dart:377). */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0 var(--sp-8);
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(76, 175, 80, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--hairline-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn-sm { min-height: 42px; padding: 0 var(--sp-5); font-size: 0.8125rem; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 21, 41, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: var(--r-sm); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a {
  color: var(--on-dark-70);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}
.site-nav a:hover { color: var(--on-dark); text-decoration: none; }
.site-nav .btn { margin-left: var(--sp-1); }

.stadium-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(76, 175, 80, 0.65);
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition:
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}
.stadium-toggle:hover {
  background: rgba(76, 175, 80, 0.14);
  border-color: var(--accent);
}
.stadium-toggle-icon {
  width: 16px;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transition: color 220ms var(--ease), opacity 220ms var(--ease);
}
.stadium-toggle-night {
  color: var(--accent);
  opacity: 1;
}
.stadium-toggle-day {
  color: #fff;
  opacity: 0.48;
}
.stadium-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22) inset;
  transition: background-color 220ms var(--ease);
}
.stadium-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease);
}
.stadium-toggle[aria-checked='true'] {
  background: rgba(76, 175, 80, 0.18);
}
.stadium-toggle[aria-checked='true'] .stadium-toggle-track {
  background: var(--accent);
}
.stadium-toggle[aria-checked='true'] .stadium-toggle-knob {
  transform: translateX(16px);
  background: #fff;
}
.stadium-toggle[aria-checked='true'] .stadium-toggle-night {
  color: #fff;
  opacity: 0.48;
}
.stadium-toggle[aria-checked='true'] .stadium-toggle-day {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}
@media (max-width: 520px) {
  .site-nav.has-stadium-switch {
    gap: var(--sp-2);
  }
  .site-nav.has-stadium-switch .header-cta { display: none; }
}

/* --- Hero ----------------------------------------------------------------
   Stadium photo + the app's own scrim gradient over the navy canvas. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--sp-12), 8vw, 110px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* App scrim, plus extra darkening so display type stays legible on photo. */
  background:
    var(--scrim-night),
    linear-gradient(105deg, rgba(6, 21, 41, 0.94) 0%, rgba(6, 21, 41, 0.72) 52%, rgba(6, 21, 41, 0.5) 100%);
}
.hero-stadium,
.stadium-layer {
  position: absolute;
  inset: 0;
}
.hero-stadium {
  z-index: -2;
  background: var(--navy);
}
.stadium-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 450ms var(--ease);
}
.stadium-night {
  opacity: 1;
}
.stadium-day {
  opacity: 0;
}
html[data-stadium='day'] .stadium-night { opacity: 0; }
html[data-stadium='day'] .stadium-day { opacity: 1; }
html[data-stadium='day'] .hero::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(6, 21, 41, 0.08) 48%, rgba(3, 20, 11, 0.28) 100%),
    linear-gradient(105deg, rgba(6, 21, 41, 0.88) 0%, rgba(6, 21, 41, 0.6) 52%, rgba(6, 21, 41, 0.34) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(var(--sp-8), 6vw, 72px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  margin-bottom: var(--sp-5);
  border: 1px solid var(--accent-edge);
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* "Fun. Fast. Football." — Poppins with the app's 2px tracking. */
.hero-sub {
  margin: var(--sp-4) 0 0;
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  letter-spacing: 2px;
  color: var(--on-dark-80);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  font-size: 0.8125rem;
  color: var(--on-dark-54);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { display: none; }
}

/* --- Phone mockup --------------------------------------------------------
   A DOM reproduction of the app's home screen at the real proportions, so it
   stays crisp at any density instead of shipping a screenshot bitmap. */

.phone {
  width: 296px;
  height: 604px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2b3444, #10161f);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  flex: none;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--navy);
  font-size: 11px;
}
.phone-stadium {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 450ms var(--ease);
}
.phone-stadium-night { opacity: 1; }
.phone-stadium-day { opacity: 0; }
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim-night), rgba(6, 21, 41, 0.42);
  transition: background-color 450ms var(--ease);
}
html[data-stadium='day'] .phone-stadium-night { opacity: 0; }
html[data-stadium='day'] .phone-stadium-day { opacity: 1; }
html[data-stadium='day'] .phone-screen::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(6, 21, 41, 0.28)),
    rgba(6, 21, 41, 0.18);
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 18px;
  border-radius: var(--r-pill);
  background: #0a0f16;
  z-index: 3;
}
.phone-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 34px 14px 0;
  display: flex;
  flex-direction: column;
}
.pm-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.pm-scroll::-webkit-scrollbar { display: none; }

.pm-top { display: flex; align-items: center; gap: 8px; }
.pm-top img { width: 26px; height: 26px; border-radius: 6px; }
.pm-top b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pm-xp {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: var(--r-chip);
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid var(--hairline);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.pm-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 22px 0 0;
}
.pm-tag {
  margin: 6px 0 0;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--on-dark-80);
}
.pm-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  background: var(--accent);
  box-shadow: var(--shadow-cta);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-self: flex-start;
}
.pm-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

/* Miniature of game_card.dart: square card with a 60/40 art-and-copy split. */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pm-card {
  display: grid;
  grid-template-rows: 3fr 2fr;
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.32);
}
.pm-card > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.pm-card-copy {
  min-height: 0;
  padding: 4px 7px 5px;
  background: #fff;
  overflow: hidden;
}
.pm-card-title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.pm-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.pm-card-title strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text-dark);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-card-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
.pm-card-sub {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-dark);
  color: #9e9e9e;
  font-size: 6px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-card-simple {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 11px;
}
.pm-card-simple-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.pm-card-simple-copy {
  min-width: 0;
  margin-top: auto;
}
.pm-card-simple-copy strong,
.pm-card-simple-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-card-simple-copy strong {
  color: var(--text-dark);
  font-size: 8px;
  line-height: 1.25;
}
.pm-card-simple-copy span {
  margin-top: 2px;
  color: #9e9e9e;
  font-size: 6px;
  line-height: 1.25;
}
.pm-card-simple-go {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 20px;
  height: 20px;
  margin-top: 5px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* The floating bottom bar — radius 28, panel navy at 95%. */
.pm-bar {
  flex: none;
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 42px;
  border-radius: var(--r-bar);
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 13px;
}
.pm-bar i { font-style: normal; opacity: 0.45; }
.pm-bar .on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--r-btn);
  background: var(--accent-wash);
  color: var(--accent);
  opacity: 1;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Game cards ----------------------------------------------------------
   Direct port of lib/widgets/game_card.dart. */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-6);
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--text-dark);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.game-card-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-pill);
  background: rgba(6, 21, 41, 0.88);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: var(--shadow-panel);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.game-card > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.game-card-body {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 0;
  padding: var(--sp-3) var(--sp-4);
  overflow: hidden;
}
/* The accent-tinted icon square from the real card. */
.game-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  font-size: 1rem;
}
.game-card-text {
  min-width: 0;
  align-self: center;
}
.game-card-text strong {
  display: block;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card-text span {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9e9e9e;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.game-card-go {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
}

.tag {
  display: inline-block;
  margin-left: var(--sp-2);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --- Glass panel ---------------------------------------------------------
   lib/widgets/narrow_match_info_panel.dart: tinted navy, thin green edge. */

.panel {
  background: var(--panel-glass);
  border: 1.3px solid var(--accent-edge);
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-panel);
  padding: clamp(var(--sp-5), 4vw, var(--sp-8));
}
.panel-quiet { border-color: var(--hairline); background: var(--panel-glass-2); }

/* --- Ball Knowledge ladder ------------------------------------------------ */

.xp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.xp-head .rank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.xp-head .num { margin-left: auto; font-size: 0.8125rem; color: var(--on-dark-54); }

.xp-track {
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  width: 62%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

.xp-rules {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  list-style: none;
  padding: 0;
}
.xp-rules li {
  padding: 5px var(--sp-3);
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: var(--on-dark-70);
}
.xp-rules b { color: var(--accent); }

/* Wide content scrolls inside its own container, never the page. */
.ladder {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-edge) transparent;
}
.ladder::-webkit-scrollbar { height: 6px; }
.ladder::-webkit-scrollbar-thumb { background: var(--accent-edge); border-radius: var(--r-pill); }

.rank-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.rank-chip small {
  font-size: 0.625rem;
  letter-spacing: 1px;
  color: var(--on-dark-38);
}
.rank-chip span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rank-chip.is-elite {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.1);
}
.rank-chip.is-elite span { color: var(--gold); }

/* --- Feature tiles -------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.feature {
  padding: var(--sp-5);
  border-radius: var(--r-btn);
  background: var(--panel-glass-2);
  border: 1px solid var(--hairline);
}
.feature .icon { font-size: 1.5rem; }
.feature strong {
  display: block;
  margin: var(--sp-3) 0 var(--sp-1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.feature p { margin: 0; font-size: 0.875rem; color: var(--on-dark-70); }
.feature .stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* --- Download ------------------------------------------------------------- */

.download { background: var(--navy-deep); border-top: 1px solid var(--hairline); }
.download .panel { text-align: center; max-width: 720px; margin-inline: auto; }
.download .hero-actions { justify-content: center; }
.download-note {
  margin: var(--sp-5) 0 0;
  font-size: 0.8125rem;
  color: var(--on-dark-54);
}

/* --- Prose (privacy / support) -------------------------------------------- */

.page-head {
  padding-block: clamp(var(--sp-12), 7vw, 88px) var(--sp-8);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.07), transparent);
}
.page-head p { color: var(--on-dark-54); margin: var(--sp-3) 0 0; font-size: 0.875rem; }

.prose { max-width: 68ch; padding-block: var(--sp-12); color: var(--on-dark-70); }
.prose h2 {
  font-size: 1.375rem;
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-3);
  color: var(--on-dark);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-size: 1rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  color: var(--on-dark);
}
.prose p, .prose li { font-size: 0.9375rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--on-dark); }
.prose .panel { margin-top: var(--sp-6); }
.prose .panel p:last-child { margin-bottom: 0; }

.faq { border-top: 1px solid var(--hairline); padding-top: var(--sp-4); margin-top: var(--sp-4); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--on-dark);
}
.faq summary::marker { color: var(--accent); }
.faq p { margin: var(--sp-3) 0 var(--sp-4); }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-12) var(--sp-8);
  font-size: 0.875rem;
  color: var(--on-dark-54);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-links a { color: var(--on-dark-70); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--on-dark-38);
}

/* --- Not found ------------------------------------------------------------ */

.notfound {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--sp-5);
}

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