/* Touchlinewise — website styles.
   Design system mirrors the app's Theme.swift "Palette": a bright stadium pitch —
   grass greens, a gold star accent, cream text, and team blue/red highlights.
   One idea runs through it all: "pull, aim, release — thread the perfect throw-in." */

:root {
  /* Surfaces (pitch greens, mirror Palette) */
  --pitch:       #0C2417;   /* background base */
  --pitch-lift:  #11331F;   /* gradient top */
  --pitch-edge:  #071A0F;   /* vignette edge */
  --surface:     #143A24;   /* card */
  --surface-top: #1A4A2E;   /* card gradient top */
  --hairline:    #245A39;   /* borders */
  --hairline-soft: rgba(255,247,230,0.10);

  /* Grass (primary action) */
  --grass:       #2FBF4E;
  --grass-dark:  #1E8E3E;
  --grass-deep:  #14632B;

  /* Light — gold star accent */
  --gold:        #FFC42E;
  --gold-bright: #FFD45E;
  --gold-deep:   #E8A400;
  --pitch-ink:   #102A18;   /* text on bright buttons */

  /* Text */
  --cream:       #FFF7E6;   /* primary text */
  --muted:       #A9C3B1;   /* secondary text */
  --muted-soft:  rgba(169,195,177,0.65);

  /* Teams / highlights */
  --team-blue:   #2E7BFF;
  --team-red:    #E23B3B;

  --accent: var(--grass);
}

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

body {
  background: var(--pitch);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Stadium gradient + floodlight glow + vignette. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(560px 420px at 50% 8%, rgba(255,196,46,0.10), transparent 60%),
    radial-gradient(900px 700px at 50% -10%, rgba(47,191,78,0.10), transparent 55%),
    radial-gradient(1100px 800px at 50% 120%, var(--pitch-edge), transparent 60%),
    linear-gradient(180deg, var(--pitch-lift) 0%, var(--pitch) 42%, var(--pitch-edge) 100%);
}

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

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

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.002em;
}

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

.masthead { padding: 22px 0 16px; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark .badge { width: 28px; height: 28px; flex: none; }
.wordmark .hot { color: var(--gold); }
.tagline {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 500;
}
.nav { margin-left: auto; font-size: 14px; font-weight: 600; }
.nav a {
  color: var(--cream);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--gold-bright); border-bottom-color: var(--gold); }

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

.hero { text-align: center; padding: 48px 0 14px; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(255,196,46,0.10);
  border: 1px solid rgba(255,196,46,0.35);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 74px;
  line-height: 0.98;
  margin: 0 0 18px;
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(47,191,78,0.22);
}
.hero-title .hot { color: var(--gold); }
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* ---- Mechanic chips (hero visual) ---- */

.sticker-pack {
  margin: 38px auto 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 560px;
}
.sticker {
  background: linear-gradient(180deg, var(--surface-top), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.9);
}
.sticker .emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.sticker .label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--cream); line-height: 1.2; letter-spacing: 0.02em; }
.sticker.aim   { border-top: 3px solid var(--grass); }
.sticker.arc   { border-top: 3px solid var(--team-blue); }
.sticker.pass  { border-top: 3px solid var(--team-red); }
.sticker.stars { border-top: 3px solid var(--gold); }

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

.cta-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-block;
  background: linear-gradient(180deg, var(--grass), var(--grass-dark));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 12px 28px -12px rgba(47,191,78,0.7);
}
.cta:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.cta.ghost {
  background: var(--surface);
  color: var(--cream);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.cta.ghost:hover { background: var(--surface-top); }

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

main { padding: 26px 0 12px; }

.card {
  background: linear-gradient(180deg, var(--surface-top), var(--surface));
  color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.kicker.red   { color: var(--team-red); }
.kicker.gold  { color: var(--gold); }
.kicker.blue  { color: var(--team-blue); }

h1 { font-size: 46px; line-height: 1.04; margin-bottom: 6px; color: var(--cream); }
h2 { font-size: 31px; line-height: 1.1; margin: 4px 0 12px; color: var(--cream); }
h3 { font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 700; margin: 18px 0 6px; color: var(--cream); }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 700; color: var(--cream); }

.card p { color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); }
.updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---- How-it-plays rows ---- */

.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: flex-start;
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--pitch-lift);
  border: 1px solid var(--hairline);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 4px 0 3px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- Mode cards ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mode {
  background: var(--pitch-lift);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  border-top: 4px solid var(--grass);
}
.mode .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grass);
}
.mode .emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.mode h3 { margin: 6px 0 6px; font-size: 20px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
.mode.red    { border-top-color: var(--team-red); }   .mode.red .tag    { color: var(--team-red); }
.mode.gold   { border-top-color: var(--gold); }       .mode.gold .tag   { color: var(--gold); }

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

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

/* ---- Callout / fineprint / FAQ ---- */

.callout {
  background: rgba(47,191,78,0.08);
  border-left: 3px solid var(--grass);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p { color: var(--cream); }
.callout p:last-child { margin-bottom: 0; }

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

.faq-q { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--cream); margin-top: 22px; margin-bottom: 4px; font-size: 18px; }
.rule { border: 0; border-top: 1px solid var(--hairline-soft); margin: 24px 0; }

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

.footer { margin-top: 30px; padding: 28px 0 48px; }
.footer p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer a { color: var(--gold-bright); }
.footer .nav-foot { font-weight: 700; letter-spacing: 0.02em; }
.footer .nav-foot a { margin-right: 16px; }
.footer .copy { font-size: 12px; letter-spacing: 0.04em; color: var(--muted-soft); }

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

@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 8px; }
  .hero-title { font-size: 46px; }
  .card { padding: 22px; }
  h1 { font-size: 33px; }
  h2 { font-size: 25px; }
  .sticker-pack { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sticker { padding: 14px 8px; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
}
