/* Footy Brain website – chunky, sticker-style, same look as the app */
@font-face { font-family: "Lilita One"; src: url(fonts/lilita.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --pitch: #1b5e30; --pitch-2: #237a3d; --pitch-dark: #0f3d22;
  --cream: #fff7ec; --ink: #141414; --label: #6b5b4b;
  --orange: #ff7a1a; --gold: #ffd21f; --pink: #ff8fb5; --green: #2ecc71; --blue: #2f6fe0;
  --radius: 22px; --line: 3px;
  --shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: Nunito, system-ui, sans-serif; font-weight: 700; color: var(--ink); line-height: 1.5;
  background: var(--pitch);
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 80px, transparent 80px 160px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .3px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--gold); padding: 8px 14px; border-radius: 12px; z-index: 99; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-family: "Lilita One", sans-serif; font-size: 1.25rem; text-decoration: none;
  padding: .7em 1.3em; border: var(--line) solid var(--ink); border-radius: 18px; background: var(--green); color: #fff;
  box-shadow: var(--shadow); text-shadow: 0 2px 0 rgba(0,0,0,.25); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn.orange { background: var(--orange); } .btn.white { background: #fff; color: var(--ink); text-shadow: none; } .btn.small { font-size: 1rem; padding: .5em 1em; border-radius: 14px; }
.appstore { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 10px 20px 10px 16px; border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.appstore svg { width: 28px; height: 28px; fill: #fff; }
.appstore small { display: block; font-size: .72rem; font-weight: 800; opacity: .85; line-height: 1; }
.appstore strong { display: block; font-family: "Lilita One"; font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.appstore.soon { cursor: default; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 61, 34, .92); backdrop-filter: blur(8px); border-bottom: var(--line) solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: "Lilita One"; font-size: 1.6rem; }
.brand img { width: 44px; height: 44px; }
.brand b { color: var(--pink); font-weight: 400; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 900; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--gold); }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .ctas { justify-content: center; } }
.kicker { display: inline-block; background: var(--gold); border: var(--line) solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 900; font-size: .9rem; box-shadow: 0 4px 0 rgba(0,0,0,.3); transform: rotate(-2deg); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 18px 0 16px; text-shadow: 0 5px 0 rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .pink { color: var(--pink); }
.lead { color: #eafbe9; font-size: 1.2rem; max-width: 34em; }
@media (max-width: 860px) { .lead { margin-inline: auto; } }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 18px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #fff; font-weight: 900; font-size: .95rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .ticks { justify-content: center; } }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; background: var(--green); border: 2px solid var(--ink); border-radius: 50%; font-size: .75rem; }

.stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone { position: relative; width: 280px; aspect-ratio: 9 / 19.5; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 0 rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.15); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.tilt { transform: rotate(4deg); }
.float { position: absolute; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); animation: bob 3.2s ease-in-out infinite; }
.float.d1 { animation-delay: -.8s; } .float.d2 { animation-delay: -1.6s; } .float.d3 { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
.burst { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,31,.35), transparent 62%); }

/* trust strip */
.strip { background: var(--gold); border-block: var(--line) solid var(--ink); padding: 14px 0; overflow: hidden; }
.strip ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; white-space: nowrap; font-family: "Lilita One"; font-size: 1.3rem; animation: marquee 32s linear infinite; width: max-content; }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip img { width: 30px; height: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section { padding: 84px 0; }
.center { text-align: center; }
.sub { color: #dff5df; font-size: 1.15rem; max-width: 40em; margin: 0 auto 36px; }
.card { background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-family: "Lilita One"; font-size: 1.5rem; border: var(--line) solid var(--ink); margin-bottom: 10px; }
.step img.ic { width: 64px; height: 64px; float: right; }
.feature { display: flex; flex-direction: column; gap: 6px; }
.feature img.ic { width: 58px; height: 58px; }
.feature p { color: var(--label); margin: 0; }
.pill { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: .85rem; margin: 2px; }

/* try it */
#try { background: var(--pitch-dark); border-block: var(--line) solid var(--ink); }
.tryit { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .tryit { grid-template-columns: 1fr; } }
.board { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 3 / 4; border: var(--line) solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #3fa64e; touch-action: manipulation; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl { position: absolute; width: 11.5%; transform: translate(-50%, -88%); transition: left .7s cubic-bezier(.3,.7,.3,1), top .7s cubic-bezier(.3,.7,.3,1); pointer-events: none; }
.pl.tap { pointer-events: auto; cursor: pointer; }
.pl.tap::after { content: ""; position: absolute; left: 50%; bottom: -6%; width: 90%; height: 22%; transform: translateX(-50%); border: 3px dashed #fff; border-radius: 50%; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.15); opacity: .6; } }
.pl img { width: 100%; }
.tag { position: absolute; left: 50%; top: -14%; transform: translateX(-50%); background: var(--gold); border: 2px solid var(--ink); border-radius: 8px; font-weight: 900; font-size: .7rem; padding: 0 6px; white-space: nowrap; }
.ball { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 45%, #ddd 46%); border: 2px solid var(--ink); transform: translate(-50%, -50%); transition: left .7s ease-in-out, top .7s ease-in-out; z-index: 200; }
.bubble { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 2px 8px; font-weight: 900; font-size: .8rem; white-space: nowrap; z-index: 201; animation: popin .25s ease-out; }
@keyframes popin { from { transform: translate(-50%, -100%) scale(.4); opacity: 0; } }
.coachsays { display: flex; gap: 12px; align-items: flex-start; }
.coachsays img { width: 60px; height: 60px; border-radius: 50%; border: var(--line) solid var(--ink); background: #ffe7c7; flex: none; }
.coachsays .card { padding: 14px 16px; font-size: 1.1rem; font-weight: 800; flex: 1; }
.result { margin-top: 16px; display: none; }
.result.show { display: block; animation: popin .3s ease-out; }
.result.good .card { background: #e8ffe9; } .result.bad .card { background: #fff0f0; }
.confetti { position: absolute; width: 8px; height: 12px; top: -10px; z-index: 10; animation: fall 1.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: .9; } }

/* levels */
.ladder { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ladder .card { width: 230px; text-align: center; }
.ladder img { width: 70px; height: 70px; margin: 0 auto 6px; }
.ladder .arrow { align-self: center; color: var(--gold); font-family: "Lilita One"; font-size: 2.4rem; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
@media (max-width: 760px) { .ladder .arrow { transform: rotate(90deg); } }

/* screenshots */
.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 30px; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: center; flex: none; text-align: center; color: #fff; font-weight: 900; }
.shots .phone { width: 230px; margin-bottom: 12px; }

/* characters */
.squad { display: flex; justify-content: center; align-items: flex-end; gap: 4px; flex-wrap: wrap; margin: 10px 0 20px; }
.squad img { width: 92px; height: auto; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); transition: transform .2s; }
.squad img:hover { transform: translateY(-8px) rotate(-4deg); }
.crests { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.crests img { width: 78px; height: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }

/* coaches */
.coach { display: flex; gap: 16px; align-items: center; }
.coach img { width: 96px; height: 96px; border-radius: 50%; border: var(--line) solid var(--ink); background: #ffe7c7; flex: none; }
.play { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.play[aria-pressed="true"] { background: var(--gold); }

/* audiences */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0 0 14px; }
.list li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.list img { width: 30px; height: 30px; flex: none; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--cream); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: "Lilita One"; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 16px; color: #3d2f22; }

/* cta band + footer */
.band { background: var(--orange); border-block: var(--line) solid var(--ink); text-align: center; padding: 70px 0; position: relative; overflow: hidden; }
.band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.band p { color: #fff; font-size: 1.2rem; font-weight: 900; }
footer { padding: 40px 0 60px; color: #cfe9d2; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: #fff; font-weight: 900; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* plain pages (privacy, support) */
.page { padding: 50px 0 80px; }
.page .card { max-width: 820px; margin-inline: auto; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { color: var(--ink); text-shadow: none; font-size: 1.6rem; margin-top: 1.4em; }
.page li { margin: .3em 0; }

/* demo result: on phones it sits over the bottom of the pitch so nothing moves */
.board .result { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; z-index: 300; }
.board .result .coachsays img { width: 44px; height: 44px; }
.board .result .coachsays .card { font-size: 1rem; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); }
.board .result h3 { font-size: 1.15rem; margin: 0 0 2px; }
.board .result p { margin-top: 8px !important; }
/* coaches: coming soon */
.soon-box { margin-top: 14px; padding: 14px 16px; border: 3px dashed var(--ink); border-radius: 18px; background: #fff6d9; }
.soon-box p { margin: 6px 0 12px; }
.soon-tag { display: inline-block; font-family: "Lilita One"; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; }
/* origin story */
.story { display: flex; gap: 22px; align-items: center; }
.story img { flex: none; }
@media (max-width: 600px) { .story { flex-direction: column; text-align: center; } .story h2 { text-align: center !important; } }
.story h2 { color: var(--ink); text-shadow: none; font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* never stretch art: icons and badges are trimmed to their own shapes */
img { object-fit: contain; }

/* launch mailing list */
.signup { max-width: 560px; margin: 34px auto 0; background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; text-align: left; color: var(--ink); }
.signup h3 { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 4px; color: var(--ink); text-shadow: none; }
.band .signup p { color: var(--label); font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.signup .role { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.signup .role label { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 900; cursor: pointer; }
.signup .role label:has(input:checked) { background: var(--gold); }
.signup .role input { accent-color: var(--ink); margin: 0; }
.signup-row { display: flex; gap: 10px; }
.signup-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: .65em .9em; border: var(--line) solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); }
.signup-row input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.signup-row .btn { flex: none; }
.signup-row .btn:disabled { opacity: .7; cursor: default; transform: none; }
.band .signup .signup-small { font-size: .85rem; margin: 12px 0 0; }
.signup-small a { color: var(--ink); }
.band .signup .signup-msg { margin: 10px 0 0; font-size: 1.05rem; font-weight: 900; }
.band .signup .signup-msg:empty { display: none; }
.band .signup .signup-msg.ok { color: #1a7f45; } .band .signup .signup-msg.err { color: #c0392b; }
@media (max-width: 520px) { .signup-row { flex-direction: column; } .signup-row .btn { justify-content: center; } }
.signup-row[hidden] { display: none; }
