/* Football Tactics – marketing site. Static, no build step. */

:root {
  --green-950: #062414;
  --green-900: #0b3a20;
  --green-800: #11502c;
  --green-700: #1b6b3a;
  --grass-a: #2f9a45;
  --grass-b: #278a3c;
  --chalk: #f5f7f2;
  --chalk-2: #e9eee5;
  --ink: #0f1a13;
  --ink-soft: #4a5a4f;
  --red: #e2373f;
  --yellow: #ffd60a;
  --white: #ffffff;

  --radius: 20px;
  --wrap: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
.nb { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 36, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.badge-link { display: inline-block; transition: transform .2s ease, opacity .2s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 10px; }
.badge-small img { height: 36px; width: auto; }

/* ---------- Pitch background ---------- */
.hero, .final-cta {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 75% 30%, rgba(80, 200, 110, 0.22), transparent 60%),
    repeating-linear-gradient(90deg, var(--green-900) 0 120px, var(--green-800) 120px 240px);
  overflow: hidden;
}
/* Faint halfway line, centre circle and spot, as on the app's pitch. */
.pitch-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 168px, #fff 168px 171px, transparent 171px),
    radial-gradient(circle at 50% 50%, #fff 0 6px, transparent 7px),
    linear-gradient(90deg, transparent calc(50% - 1.5px), #fff calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}

/* ---------- Hero ---------- */
.hero-inner {
  position: relative;
  display: grid; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 24px;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 24px; padding-top: 88px; padding-bottom: 72px; min-height: 720px; }
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 18px;
}
.hero-copy { position: relative; z-index: 5; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.82); max-width: 34ch; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-row .badge-link img, .final-cta .badge-link img { height: 56px; width: auto; }
.cta-note { font-size: 15px; color: rgba(255,255,255,.7); }

/* ---------- iPhone frame ---------- */
.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #2c302e, #0c0e0d 45%, #1d201f);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    0 0 0 1px rgba(0,0,0,.6),
    0 30px 60px -12px rgba(0,0,0,.55),
    0 18px 36px -18px rgba(0,0,0,.6);
  transform-style: preserve-3d;
}
.phone img {
  width: 100%; aspect-ratio: 760 / 1652; object-fit: cover;
  border-radius: calc(var(--w) * 0.132);
  background: var(--grass-a);
}
/* Dynamic Island */
.phone::before {
  content: ""; position: absolute; z-index: 2;
  top: calc(var(--w) * 0.062); left: 50%; transform: translateX(-50%);
  width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.088);
  border-radius: 999px; background: #000;
}
/* Side buttons */
.phone::after {
  content: ""; position: absolute;
  right: calc(var(--w) * -0.012); top: 28%;
  width: calc(var(--w) * 0.014); height: 13%;
  border-radius: 0 3px 3px 0; background: #1a1d1c;
  box-shadow: calc(var(--w) * -1.01) calc(var(--w) * -0.1) 0 0 #1a1d1c;
}

/* ---------- Hero phone cluster ---------- */
.hero-phones {
  position: relative; height: 560px;
  perspective: 1800px;
  display: flex; justify-content: center; align-items: center;
}
.hero-phones .phone { position: absolute; }
.phone-front { --w: 250px; z-index: 3; transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); animation: float 7s ease-in-out infinite; }
.phone-back-left { --w: 210px; z-index: 1; transform: translateX(-56%) translateY(4%) rotateY(26deg) rotateX(6deg) rotateZ(-6deg); filter: brightness(.82); }
.phone-back-right { --w: 210px; z-index: 2; transform: translateX(64%) translateY(-6%) rotateY(-30deg) rotateX(6deg) rotateZ(5deg); filter: brightness(.88); }

@media (min-width: 560px) {
  .hero-phones { height: 640px; }
  .phone-front { --w: 290px; }
  .phone-back-left, .phone-back-right { --w: 240px; }
}
@media (min-width: 1100px) {
  .hero-phones { height: 680px; }
  .phone-front { --w: 310px; }
  .phone-back-left, .phone-back-right { --w: 255px; }
}
@media (max-width: 400px) {
  .hero-phones { height: 470px; }
  .phone-front { --w: 210px; }
  .phone-back-left, .phone-back-right { --w: 170px; }
}

@keyframes float {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg) translateY(0); }
  50% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg) translateY(-12px); }
}

/* ---------- Strip ---------- */
.strip { background: var(--green-950); color: var(--white); }
.strip-list {
  list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px;
}
@media (min-width: 860px) { .strip-list { grid-template-columns: repeat(4, 1fr); } }
.strip-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--red); }
.strip-list strong { font-size: 16px; }
.strip-list span { font-size: 14px; color: rgba(255,255,255,.66); }

/* ---------- Features ---------- */
.feature { padding: 72px 0; }
.feature-alt { background: var(--chalk-2); }
.feature-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) {
  .feature { padding: 112px 0; }
  .feature-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-inner.reverse .feature-copy { order: 2; }
}
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.feature h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.feature-copy p:not(.kicker) { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 44ch; }

.feature-shot { display: flex; justify-content: center; perspective: 1600px; padding: 12px 0 28px; }
.feature-shot .phone { --w: 260px; }
@media (min-width: 560px) { .feature-shot .phone { --w: 290px; } }
.tilt-left { transform: rotateY(18deg) rotateX(4deg) rotateZ(-3deg); }
.tilt-right { transform: rotateY(-18deg) rotateX(4deg) rotateZ(3deg); }
/* Soft floor shadow under each feature phone */
.feature-shot { position: relative; isolation: isolate; }
.feature-shot::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; max-width: 280px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 40, 20, .28), transparent);
  z-index: -1;
}

/* ---------- Why ---------- */
.why { padding: 88px 0; background: var(--chalk); }
.why h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-align: center; }
.why-grid {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -18px rgba(10, 50, 25, .35);
  border-top: 4px solid var(--grass-a);
}
.why-grid h3 { font-size: 19px; }
.why-grid p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { padding: 24px 0 96px; background: var(--chalk); }
.faq-inner { max-width: 820px; }
.faq h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-align: center; margin-bottom: 36px; }
.faq details {
  background: var(--white); border-radius: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -18px rgba(10, 50, 25, .35);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 500; color: var(--grass-a); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--grass-a); outline-offset: 2px; border-radius: 16px; }
.faq details p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Final CTA ---------- */
.final-inner { position: relative; text-align: center; padding-top: 96px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); }
.final-cta h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.7); font-size: 14px; }
.footer-inner { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 8px; }
.legal { font-size: 12px; color: rgba(255,255,255,.45); max-width: 80ch; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-front { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
