/* Full Forward landing page. Tokens follow the app: public/src/brand.mjs and public/src/team-theme.mjs. */
/* Nunito comes from Google Fonts (one stylesheet in index.html). If that request fails, the bundled app faces below take over. */
@font-face { font-family: "Nunito Local"; src: url("fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Nunito Local"; src: url("fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600 900; font-display: swap; }

:root {
  --navy: #0B1D29;
  --navy-2: #10232F;
  --brand-green: #29975A;
  --coral: #FA634F;
  --pitch: #243C31;
  --pitch-2: #1D3229;
  --on-dark: #F2F6F7;
  --on-dark-muted: #B4C4CC;
  --on-dark-green: #7DD6A2;

  --bg: #F7F8F7;
  --panel: #FFFFFF;
  --text: #0B1D29;
  --muted: #4F606A;
  --green: #176B43;
  --line: #DCE5E0;
  --tint: #E7F4EB;
  --red: #BB303C;
  --shadow: 0 30px 60px -20px rgba(11, 29, 41, .35), 0 12px 24px -12px rgba(11, 29, 41, .25);

  --font: ui-rounded, "Nunito", "Nunito Local", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1720;
    --panel: #10232F;
    --text: #F2F6F7;
    --muted: #ABBDC7;
    --green: #7DD6A2;
    --line: #22394A;
    --tint: #143225;
    --red: #FF8E99;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
p + p { margin-top: 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Brand lockup, as in the app header */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mark { width: 48px; height: 26px; flex: none; }
.wordmark { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; line-height: .95; letter-spacing: -.04em; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(41, 151, 90, .22), transparent 65%),
    radial-gradient(600px 400px at 95% 85%, rgba(250, 99, 79, .14), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  padding-bottom: 56px;
}
.hero::before {
  /* Two forward-leaning bars, the same slant as the FF mark */
  content: "";
  position: absolute;
  right: -6%;
  top: 8%;
  width: 52%;
  height: 120%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(41, 151, 90, .13) 18% 38%, transparent 38% 52%, rgba(250, 99, 79, .10) 52% 72%, transparent 72%);
  transform: skewX(-26.6deg);
  pointer-events: none;
}
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); }
.nav .nav-cta { color: var(--on-dark); border: 1.5px solid rgba(242, 246, 247, .35); padding: 8px 14px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--on-dark); }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; padding-top: 36px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: var(--on-dark); background: rgba(242, 246, 247, .08); border: 1px solid rgba(242, 246, 247, .16); padding: 6px 14px 6px 12px; border-radius: 999px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(250, 99, 79, .25); }
.hero h1 { margin-top: 26px; font-size: clamp(2.7rem, 5.6vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.hero h1 .hl { color: var(--on-dark-green); }
.hero .lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--on-dark-muted); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 24px; border-radius: 999px; background: var(--brand-green); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(41, 151, 90, .8); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #22844E; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.text-link { font-weight: 700; color: var(--on-dark); text-decoration: none; border-bottom: 2px solid rgba(242, 246, 247, .3); padding-bottom: 2px; }
.text-link:hover { border-color: var(--on-dark); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--on-dark-muted); font-weight: 600; font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 12px; height: 8px; background: var(--brand-green); transform: skewX(-26.6deg); }

/* Phones */
.phone { position: relative; width: 300px; border-radius: 46px; padding: 9px; background: #05121A; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone img { border-radius: 38px; width: 100%; }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone-front { position: absolute; width: 312px; right: 4%; top: 10px; z-index: 2; }
.hero-phones .phone-back { position: absolute; width: 276px; right: 44%; top: 70px; transform: rotate(-6deg); opacity: .96; }

/* Numbers */
.numbers { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid rgba(242, 246, 247, .16); }
.numbers > div { padding: 22px 20px 0 0; }
.numbers > div + div { padding-left: 24px; border-left: 1px solid rgba(242, 246, 247, .16); }
.numbers dt { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.numbers dd { margin: 6px 0 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.numbers .to { font-size: .45em; font-weight: 700; color: var(--on-dark-muted); margin: 0 .35em; letter-spacing: 0; vertical-align: .35em; }
.numbers-note { position: relative; margin-top: 18px; color: var(--on-dark-muted); font-size: .92rem; }

/* Feature sections */
.feature { padding: 88px 0; background: var(--bg); }
.feature.flip { background: var(--panel); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 72px; max-width: 1040px; }
.feature.flip .feature-grid { grid-template-columns: 340px minmax(0, 1fr); }
.feature.flip .feature-copy { order: 2; }
.feature .phone { width: 340px; justify-self: center; }
.feature-copy { max-width: 34em; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 22px; }
.feature-copy p { color: var(--muted); font-size: 1.1rem; }
.feature-copy p.small { font-size: .92rem; margin-top: 12px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.feature-copy p.kicker { color: var(--green); font-size: .85rem; }
.kicker .n { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 8px; color: #fff; background: var(--coral); font-size: .8rem; letter-spacing: .02em; transform: skewX(-20deg); }
.kicker .n { font-variant-numeric: tabular-nums; }

.scoreline { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who tally" "pts tally"; align-items: center; gap: 0 20px; margin-top: 28px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--brand-green); border-radius: 14px; }
.feature.flip .scoreline { background: var(--bg); }
.scoreline .who { grid-area: who; font-weight: 700; font-size: 1.1rem; }
.scoreline .pts { grid-area: pts; color: var(--muted); font-size: .95rem; }
.scoreline .tally { grid-area: tally; font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.detail { margin-top: 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 30px -22px rgba(11, 29, 41, .5); max-width: 460px; }

.flags { display: flex; gap: 10px; margin-top: 26px; }
.flags li { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(11, 29, 41, .14); }

/* Pitch band: lineups */
.feature.pitch { background: linear-gradient(180deg, var(--pitch) 0%, var(--pitch-2) 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.feature.pitch::before { content: ""; position: absolute; inset: 40px 24px; border: 1.5px solid rgba(255, 255, 255, .1); border-radius: 8px; pointer-events: none; }
.feature.pitch .feature-grid { position: relative; z-index: 1; }
.feature.pitch .feature-copy p { color: #CFDDD5; }
.feature.pitch .kicker, .feature.pitch .feature-copy p.kicker { color: var(--on-dark-green); }
.feature.pitch .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }

/* Honest */
.honest { padding: 104px 0; background: var(--bg); border-top: 1px solid var(--line); }
.honest-head { max-width: 40em; }
.honest-head h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.honest-head .lede { margin-top: 16px; font-size: 1.2rem; color: var(--muted); }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: rule; }
.rules li { position: relative; padding: 26px 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; counter-increment: rule; }
.rules li::before { content: counter(rule, decimal-leading-zero); display: block; font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; color: var(--coral); line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.rules h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.015em; }
.rules p { color: var(--muted); font-size: 1rem; }

/* Coverage */
.coverage { padding: 104px 0; background: var(--panel); }
.coverage-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 56px; }
.coverage h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.lists h3 { font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -.01em; }
.lists h3.mt { margin-top: 34px; }
.lists p { color: var(--muted); }
.ticks li, .crosses li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li + li, .crosses li + li { margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 7px; border-left: 2.5px solid var(--brand-green); border-bottom: 2.5px solid var(--brand-green); transform: rotate(-45deg) translateY(-50%); }
.crosses li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 14px; height: 2.5px; background: var(--muted); border-radius: 2px; }

/* CTA */
.cta { padding: 110px 0; background: var(--navy); color: var(--on-dark); text-align: center; position: relative; overflow: hidden; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 120px; height: 65px; margin-bottom: 30px; }
.cta h2 { margin-top: 22px; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.cta .lede { margin: 18px 0 34px; max-width: 30em; color: var(--on-dark-muted); font-size: 1.15rem; }

/* Footer */
.footer { background: var(--navy-2); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .97rem; }
.footer .brand { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; }
.footer h3 { color: var(--on-dark); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer p + p { margin-top: 10px; }
.footer a { color: var(--on-dark); text-underline-offset: 3px; }
.footer .fine { font-size: .9rem; }
.footer .brand + .fine { margin-top: 14px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(242, 246, 247, .12); font-size: .9rem; }

/* Responsive */
@media (max-width: 1060px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; }
  .hero-phones { height: 560px; max-width: 460px; width: 100%; margin: 24px auto 0; }
  .hero-phones .phone-front { width: 264px; right: 2%; }
  .hero-phones .phone-back { width: 230px; right: auto; left: 0; top: 56px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .numbers > div:nth-child(n+3) { border-top: 1px solid rgba(242, 246, 247, .16); margin-top: 22px; }
  .feature, .honest, .coverage { padding: 72px 0; }
  .feature-grid, .feature.flip .feature-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-copy { order: 0; }
  .feature .phone { width: min(300px, 80vw); }
  .lists { grid-template-columns: 1fr; gap: 8px; }
  .lists > div + div { margin-top: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 1.02rem; }
  .mark { width: 42px; height: 23px; }
  .nav .nav-cta { padding: 7px 12px; font-size: .88rem; }
  .hero h1 { font-size: 2.65rem; }
  .btn { width: 100%; justify-content: center; }
  .hero h1 { margin-top: 20px; }
  .hero .lede { margin-top: 16px; font-size: 1.04rem; }
  .actions { margin-top: 22px; }
  .hero .text-link { display: none; }
  .hero-facts { margin-top: 18px; gap: 6px 16px; font-size: .9rem; }
  .hero-phones { height: 470px; margin-top: 14px; }
  .hero-phones .phone-front { width: 218px; right: 0; }
  .hero-phones .phone-back { width: 192px; left: 0; top: 48px; }
  .phone { border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .numbers > div { padding-right: 8px; }
  .numbers > div + div { padding-left: 16px; }
  .numbers > div:nth-child(3) { padding-left: 0; }
  .rules { grid-template-columns: 1fr; }
  .scoreline .tally { font-size: 2.1rem; }
}
@media (max-width: 400px) {
  .btn { padding: 14px 16px; gap: 10px; font-size: .98rem; }
  .nav .nav-cta { padding: 6px 11px; font-size: .84rem; }
}
