/* Mystery FC — campaign landing page.
   Palette, type and imagery lifted from mysteryfc.com (same owner).
   Navy #0C1B33 / gold #C9A227 / cream #F5EFE6, Manrope + Inter.
   No framework, no build step. */

:root {
  --navy:      #0C1B33;
  --navy-2:    #16294a;
  --slate:     #3A465C;
  --gold:      #C9A227;
  --gold-lift: #e0b93c;
  /* Brand gold measures 2.42:1 on white and 2.12:1 on cream — both fail WCAG
     2.2 AA for text (4.5:1) and for state/non-text cues (3:1). It passes only
     against navy (7.11:1). So: --gold for fills, and on navy; --gold-ink for
     gold-coloured TEXT or state cues sitting on a light background, where it
     measures 5.14:1 on white and 4.50:1 on cream. Palette is unchanged. */
  --gold-ink:  #846a2e;
  --cream:     #F5EFE6;
  --cream-2:   #E8E2DB;
  --white:     #ffffff;
  --ink:       var(--navy);
  --ink-dim:   #5b667a;
  --danger:    #b3261e;
  --radius:    12px;
  --wrap:      1080px;
  --head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

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

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

.muted  { color: var(--ink-dim); }
.small  { font-size: .85rem; }
.centre { text-align: center; }

section { padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
section > * { max-width: var(--wrap); margin-inline: auto; }

/* ------------------------------------------------------------------ nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.25rem; background: var(--navy);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; max-width: var(--wrap); margin-inline: auto;
}
.nav img { height: 34px; width: auto; }
.nav-cta {
  color: var(--navy); background: var(--gold); text-decoration: none;
  font-weight: 700; font-size: .88rem; padding: .5rem 1.05rem; border-radius: 999px;
  font-family: var(--head); white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-lift); }

/* ----------------------------------------------------------------- hero */
.hero {
  background: var(--navy); color: var(--cream);
  text-align: center; padding-top: clamp(2.5rem, 6vw, 4rem);
}
.hero h1 { color: var(--white); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
  font-weight: 800; color: var(--gold); margin-bottom: 1.1rem;
  font-family: var(--head);
}
.lede {
  font-size: clamp(1rem, 1.9vw, 1.13rem); color: #c9d2e0;
  max-width: 54ch; margin: 0 auto 2rem;
}
.hero-shot { max-width: 460px; margin: 2.5rem auto 0; }
.trustbar {
  list-style: none; padding: 0; margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem;
  font-size: .85rem; color: #c9d2e0;
}
.trustbar li::before { content: "✓ "; color: var(--gold); font-weight: 800; }

/* --------------------------------------------------------------- button */
.btn {
  display: inline-block; border: 0; border-radius: 999px;
  font-family: var(--head); font-weight: 800; text-decoration: none;
  cursor: pointer; transition: background .12s ease, transform .12s ease;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-lift); }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-ink); outline-offset: 3px;
}

/* ----------------------------------------------------------- nav links */
.nav-links { display: none; gap: 1.5rem; margin-left: auto; margin-right: 1.5rem; }
.nav-links a {
  color: #c9d2e0; text-decoration: none; font-size: .88rem; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
@media (min-width: 800px) { .nav-links { display: flex; } }

/* --------------------------------------------------------- trust cards */
.promises ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.promises li {
  background: var(--white); border: 1px solid var(--cream-2);
  border-radius: var(--radius); padding: 1.5rem;
}
.promises h3 { margin-bottom: .4rem; }
.promises p { margin: 0; color: var(--ink-dim); font-size: .93rem; }

/* -------------------------------------------------------------- eyebrow */
/* The hero eyebrow sits on navy; these sit on light backgrounds. */
.eyebrow-dark { color: var(--slate); }

/* -------------------------------------------------------------- leagues */
.leagues { background: var(--navy); color: var(--cream); text-align: center; }
.leagues h2 { color: var(--white); }
.leagues .lede { color: #c9d2e0; }

/* ----------------------------------------------------------- categories */
.categories {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.category {
  display: flex; gap: 1.25rem; align-items: center;
  background: var(--white); border: 1px solid var(--cream-2);
  border-radius: var(--radius); padding: 1.25rem;
}
.category img { width: 110px; height: auto; border-radius: 10px; flex: none; }
.category h3 { margin-bottom: .3rem; }
.category p { color: var(--ink-dim); font-size: .92rem; margin-bottom: .9rem; }
.category .eyebrow { margin-bottom: .35rem; font-size: .68rem; }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy); background: transparent;
  padding: .5rem 1.1rem; font-size: .88rem;
}
.btn-outline:hover { background: var(--navy); color: var(--gold); }

/* ---------------------------------------------------------------- steps */
.steps h2 { text-align: center; margin-bottom: 2.5rem; }
.steps ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.steps li {
  background: var(--white); border: 1px solid var(--cream-2);
  border-radius: var(--radius); padding: 1.75rem;
}
.step-n {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--navy); color: var(--gold);
  font-family: var(--head); font-weight: 800; font-size: .9rem; margin-bottom: 1rem;
}
.steps p { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* ----------------------------------------------------------------- pick */
.pick { background: var(--white); }
.pick > * { max-width: 640px; }
.pick h2 { text-align: center; margin-bottom: .35rem; }
.pick .sub { text-align: center; color: var(--ink-dim); margin-bottom: 2rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend {
  font-family: var(--head); font-weight: 700; font-size: .95rem; padding: 0 0 .75rem;
}

.bundles { display: grid; gap: .75rem; }
.bundle { position: relative; display: block; cursor: pointer; }
.bundle input { position: absolute; opacity: 0; width: 0; height: 0; }
.bundle-body {
  display: grid; grid-template-columns: 62px 1fr auto;
  align-items: center; gap: .35rem .9rem;
  border: 2px solid var(--cream-2); border-radius: var(--radius);
  background: var(--white); padding: .85rem 1rem;
  transition: border-color .12s ease;
}
.bundle-body img { grid-row: span 2; border-radius: 8px; }
.bundle:hover .bundle-body { border-color: var(--slate); }
/* `~` not `+`: the "Most popular" flag sits between the input and the card on
   one of these, which an adjacent-sibling selector would skip. */
.bundle input:checked ~ .bundle-body { border-color: var(--navy); background: #fbf7ee; box-shadow: inset 0 0 0 1px var(--navy); }
.bundle input:focus-visible ~ .bundle-body { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.bundle-n     { font-family: var(--head); font-weight: 700; font-size: 1.02rem; }
.bundle-price { font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.bundle-note  { grid-column: 2 / -1; color: var(--ink-dim); font-size: .84rem; }
.bundle-flag {
  position: absolute; top: -.6rem; left: 1rem; z-index: 1;
  background: var(--navy); color: var(--gold);
  font-family: var(--head); font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 999px;
}

/* One block per jersey in the bag, rendered by app.js. */
.jersey {
  border: 1px solid var(--cream-2); border-radius: var(--radius);
  padding: 1.1rem 1.1rem .1rem; margin-bottom: 1rem; background: #fcfaf6;
}
.jersey legend {
  padding: 0 .5rem; margin-left: -.5rem;
  color: var(--navy); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
}
.jersey .field { margin-bottom: 1.1rem; }

.field { margin-bottom: 1.6rem; }
.field label {
  display: block; font-family: var(--head); font-weight: 700;
  font-size: .93rem; margin-bottom: .45rem;
}
.field select, .field input[type=text] {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border-radius: 10px;
  border: 2px solid var(--cream-2); background: var(--white);
}
.field input::placeholder { color: #98a2b3; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.check { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--navy); flex: none; }
.check span { font-size: .94rem; }
.check b { font-family: var(--head); }
.check small { display: block; color: var(--ink-dim); font-size: .81rem; }

.total {
  text-align: center; font-family: var(--head); font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}
.total b { font-weight: 800; }
.error {
  background: #fdecea; border: 1px solid var(--danger); color: var(--danger);
  border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; margin-top: 1rem;
}

/* --------------------------------------------------------------- quotes */
.quotes h2 { text-align: center; margin-bottom: 2.5rem; }
.quote-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
blockquote {
  margin: 0; background: var(--white); border: 1px solid var(--cream-2);
  border-radius: var(--radius); padding: 1.4rem;
}
blockquote p { font-size: .95rem; }
blockquote::before { content: "★★★★★"; color: var(--gold-ink); letter-spacing: .1em; font-size: .8rem; }
cite { color: var(--ink-dim); font-size: .84rem; font-style: normal; }

/* ------------------------------------------------------------------ faq */
.faq { background: var(--white); }
.faq > * { max-width: 720px; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--cream-2); padding: 1rem 0; }
summary { cursor: pointer; font-family: var(--head); font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold-ink); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--ink-dim); font-size: .94rem; }

/* --------------------------------------------------------------- closer */
.closer { background: var(--navy); color: var(--cream); text-align: center; }
.closer h2 { color: var(--white); }
.closer p { color: #c9d2e0; margin-bottom: 2rem; }

/* ---------------------------------------------------------------- legal */
.legal { background: var(--white); }
.legal > * { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .35rem; }
.legal .updated { color: var(--ink-dim); font-size: .88rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-size: 1.18rem; margin: 2.5rem 0 .75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--cream-2);
}
.legal h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { font-size: .96rem; color: #33405a; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--navy); }
.legal .callout {
  background: #fffdf6; border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 2rem;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- footer */
footer {
  background: var(--navy); color: #8f9cb0;
  padding: 2.25rem 1.25rem; text-align: center; font-size: .86rem;
}
footer nav { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin: .75rem 0; }
footer a { color: #c9d2e0; }
footer a:hover { color: var(--gold); }
footer .small { max-width: 48ch; margin-inline: auto; }

/* --------------------------------------------------------------- bridge */
/* This audience bought from Jersey Loco and has never seen "Mystery FC".
   Naming the relationship above the fold is the cheapest way to stop the
   From: line reading as a stranger. */
.bridge {
  color: var(--cream); font-size: .95rem; margin: -.75rem 0 1.75rem;
}
.bridge strong { color: var(--gold); }

/* --------------------------------------------------- risk-bounding box --- */
.controls-box {
  background: #fbf7ee; border: 1px solid var(--cream-2);
  border-left: 3px solid var(--navy);
  border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1.75rem;
}
.controls-box p { margin: 0; font-size: .93rem; }
.controls-box p + p { margin-top: .4rem; color: var(--ink-dim); }

/* ------------------------------------------------------- CTA assurance --- */
.cta-assurance {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem;
  font-size: .84rem; color: var(--ink-dim);
}
.cta-assurance li::before { content: "✓ "; color: var(--gold-ink); font-weight: 800; }

/* ------------------------------------------------------------- buy bar --- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--navy); border-top: 1px solid var(--slate);
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.22);
}
.buybar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--wrap); margin-inline: auto;
}
.buybar-total {
  font-family: var(--head); font-weight: 800; font-size: 1.15rem;
  color: var(--white);
}
.buybar .btn { padding: .8rem 1.6rem; font-size: .98rem; }
/* Desktop has the form's own button in view; the bar is mobile-only. */
@media (min-width: 800px) { .buybar { display: none !important; } }
/* Stop the bar covering the end of the page. */
body.has-buybar { padding-bottom: 5.5rem; }
@media (min-width: 800px) { body.has-buybar { padding-bottom: 0; } }

/* -------------------------------------------------------- touch targets -- */
/* Nine selects in a row on a phone: undersized controls here cost real money.
   WCAG 2.2 AA requires 24x24; 44px is the platform guidance and the one that
   actually matters for mis-taps. */
@media (max-width: 799px) {
  .field select, .field input[type=text] { min-height: 44px; }
  .check input { width: 1.4rem; height: 1.4rem; }
  .check { padding: .6rem 0; }
  .bundle-body { padding: 1rem; }
  .nav-cta { padding: .6rem 1.1rem; }
}

/* ------------------------------------------------------- field errors ---- */
.field-error {
  display: block; color: var(--danger); font-size: .84rem;
  margin-top: .35rem; font-weight: 500;
}
[aria-invalid="true"] { border-color: var(--danger) !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
