/* Scramble FC — website styles. "Floodlit Pitch" per DESIGN.md.
   Deep night-green pitch, letter tiles lit like a scoreboard, a single
   electric-lime accent that "burns". Type & palette match the iOS app canon.
   Dark only — the night-pitch atmosphere IS the product. */

:root {
  --bg:        #06120B;   /* deep night pitch */
  --surface:   #0E2018;   /* raised panels above the pitch */
  --surface2:  #13291E;   /* nested surface */
  --line:      #1E3A2B;   /* hairlines on the pitch */
  --accent:    #D7FF3E;   /* electric lime — the signature */
  --accent-deep:#BBE52F;
  --tile:      #FFD23F;   /* warm golden-ball yellow */
  --placed:    #2BD66A;   /* confirmed / goal green */
  --error:     #FF4D4D;   /* foul red */
  --ink:       #F2F5F0;   /* near-white */
  --dim:       #7C9588;   /* muted labels */
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Floodlight from above + faint diagonal grass stripes across the pitch */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(820px 460px at 50% -160px, rgba(215,255,62,0.10), transparent 66%),
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 2px,
      transparent 2px,
      transparent 46px),
    radial-gradient(1200px 720px at 50% 120%, rgba(0,0,0,0.55), transparent 60%);
}

.wrap {
  max-width: 760px;
  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: "SF Pro Rounded", ui-rounded, "SF Pro Text",
               -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}

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

.masthead {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark .dot { color: var(--accent); }
.tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}
.nav {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  margin-right: 18px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
}
.nav a:hover { text-decoration: none; color: var(--accent); }

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

.hero { text-align: center; padding: 56px 0 30px; }
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Scramble → answer tile motif ---- */

.scramble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.tiles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tile {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: "SF Pro Rounded", ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  background: var(--tile);
  color: #2A2300;
  box-shadow: 0 4px 0 rgba(0,0,0,0.35);
}
.tiles.answer .tile {
  background: var(--placed);
  color: #06170D;
  box-shadow: 0 0 16px rgba(43,214,106,0.45), 0 4px 0 rgba(0,0,0,0.35);
}
.scramble .arrow { color: var(--dim); font-size: 20px; }

/* ---- Cards ---- */

main { padding: 30px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1 { font-size: 34px; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 6px; }
h2 { font-size: 22px; font-weight: 800; margin: 28px 0 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 700; color: var(--ink); }

.lede { font-size: 18px; color: var(--dim); }
.updated {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 18px;
}

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

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

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

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

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

.faq-q { font-weight: 700; color: var(--ink); margin-top: 20px; margin-bottom: 4px; }

/* ---- CTA ---- */

.cta {
  display: inline-block;
  background: var(--accent);
  color: #11200A;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(215,255,62,0.35);
}
.cta:hover { text-decoration: none; background: var(--accent-deep); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

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

.footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 24px 0 44px;
}
.footer p { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.footer .nav-foot { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.footer .nav-foot a { color: var(--ink); margin-right: 14px; }
.footer .copy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 22px; }
  .hero-title { font-size: 36px; }
  .card { padding: 20px; }
  h1 { font-size: 28px; }
  .nav a { margin-right: 12px; }
  .tile { width: 40px; height: 40px; font-size: 19px; }
}
