/* Footy AI — website styles.
   Design system "Trophy Cabinet" (see DESIGN.md): warm paper ground, one
   pitch-green accent, a metallic rarity tier system, and the app's three-font
   identity — Cabinet Grotesk (display), Geist (body), JetBrains Mono (data /
   labels / "scouting report"). Tokens mirror Theme.swift so the site reads as
   the same product as the app. */

:root {
  /* Light "Trophy Cabinet" tokens (DESIGN.md) */
  --bg:        #F5F2EB;  /* warm paper ground */
  --surface:   #FFFFFF;  /* cards, sheets */
  --surfaceAlt:#FBF9F4;  /* inset / secondary surface */
  --raised:    #FBF9F4;  /* raised card / option / chip */
  --ink:       #1B1714;  /* warm near-black */
  --dim:       #6E675C;  /* muted / captions */
  --hairline:  #E4DFD4;  /* borders, dividers */
  --accent:    #1E7A46;  /* pitch green — brand / actions / correct */
  --accent-2:  #155C34;  /* pressed green */
  --accent-wash: rgba(30,122,70,0.08);
  --green:     #1E7A46;
  --success:   #1E7A46;
  --error:     #C0392B;  /* wrong guess */
  --warning:   #D08A1E;
  /* Metallic rarity tiers — the signature system */
  --gold:      #C9A227;
  --silver:    #9AA0A6;
  --bronze:    #B07A3C;
  --rare-blue: #2E6FD6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft warm bloom from the top — the "cabinet opening" warmth, not neon. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 560px at 50% -240px, rgba(30,122,70,0.07), transparent 64%),
    radial-gradient(900px 600px at 50% 120%, rgba(201,162,39,0.05), transparent 60%);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

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

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Cabinet Grotesk', 'Geist', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- Shared bits ---- */

.stamp {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.stamp.red { color: var(--error); }
.stamp.sage { color: var(--dim); }
.stamp.green { color: var(--accent); }

/* Redaction chip — the mystery "WHO ARE YA?" panel. */
.redact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: rgba(245,242,235,0.55);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  border-radius: 8px;
  border: 1px solid rgba(27,23,20,0.2);
  padding: 9px 14px;
}

/* ---- Masthead ---- */

.masthead {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark .badge {
  width: 26px; height: 26px; flex: none;
  position: relative; top: 1px;
}
.tagline {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav {
  margin-left: auto;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 60px 0 30px; }
.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--hairline);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 70px;
  line-height: 0.96;
  margin: 0 0 18px;
}
.hero-title .hot { color: var(--accent); }
.hero-sub {
  font-size: 18.5px;
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 30px;
}

/* The guess-board hero prop */
.casefile {
  max-width: 540px;
  margin: 30px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 60px -34px rgba(27,23,20,0.45);
  position: relative;
  overflow: hidden;
}
.casefile .cf-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cf-mystery { margin-bottom: 18px; }
.cf-mystery .redact { width: 100%; height: 52px; font-size: 14px; letter-spacing: 0.22em; }
.cf-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cf-teams .redact { width: 100%; height: 44px; font-size: 13px; }
.cf-vs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cf-evidence { display: flex; flex-direction: column; gap: 8px; }
.cf-clue {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px; color: var(--ink);
  background: var(--surfaceAlt);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 13px;
}
.cf-clue b { color: var(--accent); font-weight: 700; margin-left: auto; }
.cf-clue .dot { color: var(--accent); flex: none; }
.cf-clue.locked { color: var(--dim); }
.cf-clue.locked .dot { color: var(--silver); }
.cf-clue.locked .locktag { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ---- Buttons ---- */

.cta-row { margin-top: 32px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Cabinet Grotesk', 'Geist', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  padding: 15px 30px;
  border-radius: 12px;
  border-top: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 24px -10px rgba(30,122,70,0.5);
}
.cta:hover { text-decoration: none; background: var(--accent-2); }
.cta.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: none;
  margin-left: 10px;
}
.cta.ghost:hover { background: var(--surfaceAlt); }

/* ---- Cards & layout ---- */

main { padding: 26px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px -32px rgba(27,23,20,0.4);
}

.kicker {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 { font-size: 42px; line-height: 1.04; margin-bottom: 6px; }
h2 { font-size: 30px; line-height: 1.06; margin: 4px 0 12px; }
h3 { font-size: 17px; font-family: 'Cabinet Grotesk', 'Geist', sans-serif; font-weight: 700; letter-spacing: -0.01em; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: 19px; color: var(--dim); }
.updated {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 18px;
}

/* ---- Numbered steps ---- */

.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-wash);
  border: 1px solid var(--hairline);
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 5px 0 3px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- The hint grid ---- */

.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.call {
  background: var(--surfaceAlt);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.call .n {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent); font-size: 18px;
}
.call h3 { margin: 8px 0 8px; font-size: 16px; }
.call .opts { display: flex; flex-direction: column; gap: 6px; }
.call .opt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--dim);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 7px;
}
.call .opt.on { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---- Two-mode grid ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  background: var(--surfaceAlt);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px;
}
.mode .tag {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.mode.daily { border-top: 3px solid var(--accent); }
.mode.cold { border-top: 3px solid var(--gold); }
.mode.cold .tag { color: var(--bronze); }
.mode h3 { margin: 8px 0 6px; font-size: 19px; font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.mode p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Scoreboard (scoring) ---- */

.board {
  background: var(--surfaceAlt);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.board .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.board .row:last-child { border-bottom: 0; }
.board .row .what { font-size: 15px; }
.board .row .pts {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 5px 13px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.board .row.bonus .pts { color: var(--bronze); background: rgba(176,122,60,0.1); }

/* ---- Achievements grid ---- */

.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surfaceAlt);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 15px 16px;
}
.badge-card.gold   { border-color: rgba(201,162,39,0.5); }
.badge-card.silver { border-color: rgba(154,160,166,0.55); }
.badge-card.bronze { border-color: rgba(176,122,60,0.5); }
.badge-card .em { font-size: 20px; flex: none; line-height: 1.2; }
.badge-card h3 { margin: 0 0 2px; font-size: 15px; }
.badge-card p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.45; }

/* ---- Feature rows ---- */

.feature {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature:last-child { border-bottom: 0; }
.feature .ico {
  font-size: 22px; flex: none; width: 30px; text-align: center; line-height: 1.4;
}
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Programme card (the AI scout voice) ---- */

.programme {
  background: var(--ink);
  color: #F3EFE6;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 16px 40px -20px rgba(27,23,20,0.6);
}
.programme .ptag {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.programme .quote {
  font-family: 'Cabinet Grotesk', 'Geist', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.programme .by { font-size: 13px; color: #A39B8C; margin: 0; }

/* ---- Callout ---- */

.callout {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

.fineprint {
  font-size: 13px;
  color: var(--dim);
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 6px;
}
.fineprint p:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */

.faq-q { font-family: 'Cabinet Grotesk', 'Geist', sans-serif; font-weight: 700; color: var(--ink); margin-top: 22px; margin-bottom: 4px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }

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

.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 30px;
  padding: 26px 0 46px;
}
.footer p { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.footer .nav-foot { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.footer .nav-foot a { color: var(--ink); margin-right: 16px; }
.footer .copy {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 22px; }
  .hero-title { font-size: 44px; }
  .card { padding: 22px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .modes { grid-template-columns: 1fr; }
  .calls { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
  .cta.ghost { margin-left: 0; margin-top: 10px; }
  .cf-teams { gap: 8px; }
}
