/* Kickoff Club – marketing site
   Colours, type and shapes mirror the app's "Heritage Football Ledger"
   design system (lib/core/theme/app_theme.dart): parchment, vintage forest,
   heritage amber and terrace oxblood, with hairline borders and hard offset
   shadows instead of soft elevation. */

:root {
  --canvas: #F9F6F0;
  --card: #FFFFFF;
  --inset: #EDE8DC;
  --border: #D8D1C0;
  --ink: #121E16;
  --muted: #5A605A;
  --accent: #1B3022;
  --on-accent: #F9F6F0;
  --highlight: #B45F06;   /* amber, darkened for legible text on parchment */
  --amber: #D97706;       /* decorative amber (rules, icons) */
  --stamp: #991B1B;
  --shadow: rgba(27, 48, 34, 0.85);

  /* Fixed forest band colours – the same in both themes. */
  --forest: #1B3022;
  --forest-deep: #0D1611;
  --forest-ink: #F9F6F0;
  --forest-muted: #A9C2AE;
  --gold: #D9A05B;

  --radius: 4px;
  --wrap: 1120px;
  --gutter: 20px;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Space Mono", ui-monospace, "Courier New", monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0D1611;
    --card: #18261E;
    --inset: #213129;
    --border: #34453B;
    --ink: #DAE5DC;
    --muted: #94A398;
    --accent: #D9A05B;
    --on-accent: #0D1611;
    --highlight: #D9A05B;
    --amber: #D9A05B;
    --stamp: #FF8A8A;
    --shadow: rgba(217, 160, 91, 0.55);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

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

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: var(--forest-ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand { gap: 12px; }
/* The cream "KOC" stub reads on the dark header; the green app icon would vanish. */
.brand-stub { width: 58px; height: 40px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
/* Footer: green app icon on the light theme, cream stub on the dark theme. */
.brand-footer { width: 40px; height: 40px; }
@media (prefers-color-scheme: dark) { .brand-footer { width: 52px; height: 36px; } }
/* Wordmark from the Kickoff Club logo sheet: Bebas Neue caps. */
.wordmark {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 32px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
  padding-top: 3px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { opacity: 1; }
.brand, .nav .btn { white-space: nowrap; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 400px) { .wordmark { font-size: 26px; } .brand-stub { width: 48px; height: 33px; } }

/* Header on plain (non-hero) pages */
.site-header.solid { position: static; background: var(--forest); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-gold { background: var(--gold); color: var(--forest-deep); box-shadow: 2px 2px 0 var(--forest-deep); }
.btn-gold:hover { box-shadow: 3px 3px 0 var(--forest-deep); }
.btn-ghost { border-color: rgba(249, 246, 240, 0.6); color: var(--forest-ink); }

/* Store buttons. Swap for the official Apple / Google badges once the
   listings are live – see README.md. */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--forest-deep); color: var(--forest-ink);
  border: 1px solid rgba(249, 246, 240, 0.35); border-radius: 8px;
  text-decoration: none; line-height: 1.15;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.store-btn:hover { transform: translate(-1px, -1px); border-color: var(--gold); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.store-btn strong { display: block; font-size: 18px; font-weight: 600; }

.launch-note { margin-top: 14px; color: var(--forest-muted); }

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

.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding: 140px 0 180px;
  color: var(--forest-ink);
  background: var(--forest-deep);
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 22, 17, 0.75) 0%, rgba(13, 22, 17, 0.25) 35%, rgba(13, 22, 17, 0.55) 65%, rgba(13, 22, 17, 0.96) 100%),
    linear-gradient(90deg, rgba(13, 22, 17, 0.7) 0%, rgba(13, 22, 17, 0) 70%);
}
.hero > .wrap { width: 100%; }
.hero-content { max-width: 640px; }
.hero .label { color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.hero .label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lede { font-size: clamp(18px, 2vw, 21px); color: rgba(249, 246, 240, 0.88); max-width: 34em; margin-bottom: 32px; }

/* ── Screens (phone mockups) ────────────────────────────────────────── */

.screens {
  position: relative; z-index: 2;
  margin-top: -130px; padding-bottom: 40px;
}
.screens .wrap {
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 5vw, 64px);
}
.screens figure { margin: 0; }
.screens figcaption { margin-top: 18px; text-align: center; color: var(--muted); }
.screens figure:nth-child(2) { margin-top: 56px; }
@media (max-width: 760px) {
  .screens .wrap { flex-direction: column; align-items: center; }
  .screens figure:nth-child(2) { margin-top: 24px; }
}

.phone {
  width: 300px; max-width: calc(100vw - 2 * var(--gutter));
  aspect-ratio: 300 / 620;
  padding: 10px;
  background: #0b0f0d;
  border-radius: 44px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 6px 6px 0 var(--shadow), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.phone-screen {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 34px;
  display: flex; flex-direction: column;
  /* The mockups always use the app's light theme. */
  --p-canvas: #F9F6F0; --p-card: #FFFFFF; --p-inset: #EDE8DC; --p-border: #D8D1C0;
  --p-ink: #121E16; --p-muted: #5A605A; --p-accent: #1B3022; --p-amber: #D97706;
  --p-amber-text: #B45F06; --p-stamp: #991B1B;
  background: var(--p-canvas); color: var(--p-ink);
  font-size: 12px; line-height: 1.35;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }

.app-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 4px; font-size: 11px; font-weight: 700;
}
.app-status .island { width: 76px; height: 20px; background: #0b0f0d; border-radius: 12px; }
.app-bar {
  padding: 6px 14px 10px; border-bottom: 1px solid var(--p-border);
  display: flex; align-items: center; justify-content: space-between;
}
.app-bar h3 { font-size: 19px; font-weight: 600; }
.app-bar .mono { font-family: var(--font-label); font-size: 8.5px; letter-spacing: 0.12em; color: var(--p-muted); text-transform: uppercase; }
.app-body { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mono { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; }

.app-nav {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--p-border); padding: 7px 6px 14px; background: var(--p-canvas);
}
.app-nav span {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-label); font-size: 7px; font-weight: 700; letter-spacing: 0.08em; color: var(--p-muted);
}
.app-nav i {
  display: grid; place-items: center; width: 40px; height: 22px; border-radius: var(--radius);
}
.app-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-nav .on { color: var(--p-ink); }
.app-nav .on i { background: var(--p-accent); color: var(--p-canvas); }

/* Ticket stub */
.stub {
  background: var(--p-card); border: 1px solid var(--p-border); border-radius: var(--radius);
  box-shadow: 2px 2px 0 rgba(27, 48, 34, 0.85); overflow: hidden; flex: none;
}
.stub-band {
  background: var(--p-accent); color: var(--p-canvas);
  display: flex; justify-content: space-between; padding: 4px 10px;
  font-family: var(--font-label); font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
}
.stub-band.planned { background: #B45F06; }
.stub-band span:last-child { font-weight: 400; }
.stub-body { padding: 8px 10px 10px; }
.stub-fixture { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stub-home { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.1; }
.stub-away { font-family: var(--font-label); font-size: 8px; letter-spacing: 0.1em; color: var(--p-muted); text-transform: uppercase; margin-top: 2px; }
.stub-score {
  background: var(--p-inset); border-radius: var(--radius); padding: 3px 8px;
  font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--p-stamp); letter-spacing: 0.04em; white-space: nowrap;
}
.stub-venue { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 10.5px; font-weight: 500; }
.stub-venue svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--p-amber); stroke-width: 2; }
.stub-venue .grow { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stub-venue .mono { font-size: 8px; color: var(--p-muted); }
.stub-photo {
  position: relative; margin-top: 8px; height: 92px; border-radius: var(--radius); overflow: hidden;
  background: #223 url("../img/hero-floodlights-1000.jpg") center 55% / cover;
}
.stub-photo .weather {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(249, 246, 240, 0.92); border-radius: var(--radius); padding: 2px 6px;
  font-family: var(--font-label); font-size: 7.5px; font-weight: 700; letter-spacing: 0.08em;
}
.stub-fields { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.stub-fields .chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { background: var(--p-inset); border-radius: var(--radius); padding: 2px 6px; }
.chip b { display: block; font-family: var(--font-label); font-size: 6.5px; font-weight: 400; letter-spacing: 0.1em; color: var(--p-muted); text-transform: uppercase; }
.chip span { font-family: var(--font-label); font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ink-stamp {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--p-stamp); color: var(--p-stamp);
  display: grid; place-content: center; text-align: center; transform: rotate(-12deg);
  font-family: var(--font-label); font-size: 5.5px; letter-spacing: 0.08em; line-height: 1.4; opacity: 0.85;
  box-shadow: 0 0 0 2px var(--p-card), 0 0 0 3px var(--p-stamp);
}
.ink-stamp strong { font-size: 10px; letter-spacing: 0.12em; }
.perf { border-top: 1.5px dashed var(--p-border); margin: 9px -10px 8px; }
.note { background: var(--p-inset); border-radius: var(--radius); padding: 7px 8px; }
.note .mono { font-size: 7.5px; font-weight: 700; color: var(--p-amber-text); }
.note p { font-style: italic; font-size: 10.5px; line-height: 1.45; margin-top: 3px; }

/* Passport */
.passport-head {
  background: var(--p-accent); color: var(--p-canvas);
  border-radius: var(--radius); padding: 12px; position: relative; overflow: hidden; flex: none;
}
.passport-head .mono { font-size: 7px; color: #D9A05B; }
.passport-head h4 { margin: 4px 0 0; font-family: var(--font-head); font-size: 10px; font-weight: 500; font-style: italic; opacity: 0.85; }
.passport-id { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.avatar {
  width: 46px; height: 46px; border-radius: var(--radius); flex: none;
  background: #D9A05B; color: var(--p-accent); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  border: 2px solid var(--p-canvas);
}
.passport-id .name { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.passport-id .mono { color: #A9C2AE; font-size: 7.5px; }
.passport-mrz { margin-top: 10px; font-family: var(--font-label); font-size: 6.5px; letter-spacing: 0.18em; color: rgba(249, 246, 240, 0.5); word-break: break-all; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: none; }
.stat { background: var(--p-card); border: 1px solid var(--p-border); border-radius: var(--radius); padding: 7px 6px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.1; }
.stat span { font-family: var(--font-label); font-size: 6.5px; letter-spacing: 0.08em; color: var(--p-muted); text-transform: uppercase; }
.progress { background: var(--p-card); border: 1px solid var(--p-border); border-radius: var(--radius); padding: 8px 10px; flex: none; }
.progress .row { display: flex; justify-content: space-between; align-items: baseline; }
.progress .mono { font-size: 7.5px; font-weight: 700; color: var(--p-muted); }
.progress .row strong { font-family: var(--font-head); font-size: 14px; }
.bar { height: 6px; background: var(--p-inset); border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 51%; background: var(--p-amber); }
.progress small { font-size: 9px; color: var(--p-muted); }
.stamps { background: var(--p-card); border: 1px solid var(--p-border); border-radius: var(--radius); padding: 8px 10px 10px; flex: none; }
.stamps > .mono { font-size: 7.5px; font-weight: 700; color: var(--p-muted); }
.stamp-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cstamp {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-label); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.1;
}
.cstamp small { font-size: 5px; font-weight: 400; letter-spacing: 0.1em; }
.cstamp:nth-child(3n+1) { color: var(--p-stamp); transform: rotate(-8deg); }
.cstamp:nth-child(3n+2) { color: var(--p-accent); transform: rotate(6deg); }
.cstamp:nth-child(3n) { color: var(--p-amber-text); transform: rotate(-3deg); }

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

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .label { color: var(--highlight); }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.features {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: 2px 2px 0 var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--inset); color: var(--accent); margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature .label { color: var(--muted); font-size: 11px; }
.feature h3 { font-size: 25px; margin: 6px 0 10px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--border); }
.step { padding: 28px 24px 8px 0; }
.step .num { font-family: var(--font-head); font-size: 56px; font-style: italic; line-height: 1; color: var(--highlight); }
.step h3 { font-size: 23px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Travel band */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--forest-ink); background: var(--forest-deep);
  padding: clamp(96px, 14vw, 180px) 0;
}
.band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 22, 17, 0.92) 0%, rgba(13, 22, 17, 0.7) 45%, rgba(13, 22, 17, 0.15) 100%);
}
.band-content { max-width: 540px; }
.band .label { color: var(--gold); }
.band h2 { font-size: clamp(34px, 4.5vw, 52px); margin: 12px 0 18px; }
.band p { color: rgba(249, 246, 240, 0.85); font-size: 18px; }
.band ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; }
.band li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }

/* Download CTA */
.cta {
  background: var(--forest); color: var(--forest-ink);
  border-radius: var(--radius); padding: clamp(40px, 6vw, 72px);
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr auto;
  box-shadow: 6px 6px 0 var(--amber);
}
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }
.cta .label { color: var(--gold); }
.cta-ticket { display: block; width: 100%; max-width: 300px; height: auto; margin-bottom: 28px; }
.cta-ticket .notch { fill: var(--forest); }
.cta h2 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 12px; }
.cta p { color: rgba(249, 246, 240, 0.82); }

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

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .brand { color: var(--ink); }
.site-footer .wordmark { font-size: 27px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.credits { margin-top: 28px; font-size: 12px; line-height: 1.7; }
.credits a { text-underline-offset: 2px; }

/* ── Plain pages (privacy, support) ─────────────────────────────────── */

.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin: 10px 0 12px; }
.page .label { color: var(--highlight); }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.page h2 { font-size: 28px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.page h3 { font-size: 21px; margin: 24px 0 8px; }
.page p, .page li { color: var(--ink); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; margin: 12px 0; }
.page li + li { margin-top: 6px; }
.page a { color: var(--highlight); text-underline-offset: 3px; }
.callout {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); }
