/* MapSprout marketing site — mapsprout.app (MAP-230)
   Plain static CSS, zero dependencies. Design tokens from the approved Figma
   (file W3dSSn5eOND5Oejt6uvAAk). See docs/superpowers/specs/2026-05-29-marketing-site-build-plan.md */

/* ---------- Fonts (self-hosted Nunito, latin) ---------- */
@font-face { font-family: Nunito; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/Nunito-Regular.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/Nunito-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/Nunito-Bold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 800; font-display: swap;
  src: url(assets/fonts/Nunito-ExtraBold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 900; font-display: swap;
  src: url(assets/fonts/Nunito-Black.woff2) format("woff2"); }
/* Tuned system fallback to minimize swap reflow (CLS) on the heavy hero H1 */
@font-face { font-family: "Nunito Fallback"; src: local("Arial"); ascent-override: 101%;
  descent-override: 35%; line-gap-override: 0%; size-adjust: 99%; }

/* ---------- Tokens ---------- */
:root {
  --cream: #FFF8E8;
  --cream-warm: #FFF4DB;
  --panel: #FFFFFF;
  --panel-soft: #FFFEFB;

  --navy: #0F172A;
  --slate: #475569;
  --gray: #5A6A80;          /* darkened from Figma #94A3B8; 5.2:1 on cream — passes AA */

  --blue: #4A90E2;          /* brand accent: route, tints, focus, dots */
  --blue-ink: #2f6fbf;
  --blue-btn: #3576C8;      /* button fill — white text 4.6:1, passes AA */
  --green: #3DBE6C;
  --gold: #FFAF19;
  --coral: #FF8A65;
  --purple: #6366F1;
  --amber-ink: #B45309;     /* passport eyebrow / chip text, AA on warm cream */

  --line: rgba(15, 23, 42, 0.08);
  --border-soft: rgba(15, 23, 42, 0.06);

  --shadow-card: 0 18px 44px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-device: 0 24px 60px rgba(15, 23, 42, 0.18);

  --font: Nunito, "Nunito Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1120px;
  --pad-x: clamp(20px, 5vw, 40px);
  --section-y: clamp(44px, 6vw, 80px);
  --radius-card: 20px;
  --radius-pill: 999px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-weight: 800; transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--warm { background: var(--cream-warm); }
/* clear the sticky nav (~68px) when jumping to in-page anchors */
:where(#main, #how-it-works, #features) { scroll-margin-top: 88px; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head .sub { margin-top: 16px; color: var(--slate); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray); margin: 0 0 14px;
}
.eyebrow--blue { color: var(--blue-ink); }
.eyebrow--amber { color: var(--amber-ink); }

h1.hero-title { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem); font-weight: 900; }
h2.section-title { font-size: clamp(1.75rem, 1.15rem + 2.7vw, 2.75rem); font-weight: 800; letter-spacing: -0.018em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1.0625rem; font-weight: 800; line-height: 1;
  padding: 17px 28px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-btn); color: #fff; box-shadow: 0 8px 20px rgba(53, 118, 200, 0.35); }
.btn--primary:hover { background: var(--blue-ink); box-shadow: 0 10px 26px rgba(53, 118, 200, 0.42); }
.btn--outline { background: var(--panel); color: var(--navy); border-color: rgba(15, 23, 42, 0.14); box-shadow: var(--shadow-soft); }
.btn--outline:hover { border-color: rgba(15, 23, 42, 0.26); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
.btn--white:hover { background: #f5faf6; }
.btn--sm { padding: 12px 20px; font-size: 0.9375rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 232, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 700; color: var(--slate); }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 48px); text-align: center; }
.hero__inner { max-width: 760px; margin-inline: auto; }
.hero .sub { margin: 20px auto 0; max-width: 620px; color: var(--slate); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.hero__map {
  position: relative; max-width: 1040px; margin: clamp(28px, 4vw, 52px) auto 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 1408 / 768; background: #cfe3e6;
}
.hero__map > img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__mascot {
  position: absolute; left: 22.5%; top: 46%; width: 11%; min-width: 40px; aspect-ratio: 1;
  filter: drop-shadow(0 7px 9px rgba(15, 23, 42, 0.28));
}
.hero__mascot img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); }
.trust .container { padding-block: 22px; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.trust__list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--slate); }
.trust__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(61, 190, 108, 0.16);
  color: var(--green); font-size: 0.75rem; font-weight: 900;
}

/* ---------- How it works (steps) ---------- */
.steps { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { text-align: center; }
.device {
  border-radius: 30px; box-shadow: var(--shadow-device); overflow: hidden;
  background: var(--cream); aspect-ratio: 640 / 1333; width: 100%;
}
.device > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step__label { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; color: var(--navy); font-weight: 900; font-size: 0.95rem; flex: none;
}
.step:nth-child(1) .step__num { background: var(--blue); }
.step:nth-child(2) .step__num { background: var(--gold); }
.step:nth-child(3) .step__num { background: var(--green); }
.step:nth-child(4) .step__num { background: var(--coral); }

/* ---------- Three ways to play ---------- */
.modes { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.modes__device { max-width: 300px; margin-inline: auto; }
.modes__list { display: grid; gap: 18px; }
.mode { display: flex; gap: 18px; align-items: flex-start; }
.mode__icon {
  flex: none; width: 54px; height: 54px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.mode__icon--coral { background: rgba(255, 138, 101, 0.18); }
.mode__icon--blue { background: rgba(74, 144, 226, 0.16); }
.mode__icon--green { background: rgba(61, 190, 108, 0.18); }
.mode__title { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.mode__body { color: var(--slate); font-size: 1rem; line-height: 1.55; }

/* state-profile callout */
.callout {
  margin-top: clamp(28px, 4vw, 48px); background: var(--panel-soft);
  border: 1px solid rgba(15, 23, 42, 0.06); border-radius: 24px;
  box-shadow: var(--shadow-soft); padding: clamp(28px, 4vw, 44px); text-align: center;
}
.callout h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); font-weight: 800; color: var(--navy); }
.callout .sub { margin: 14px auto 0; max-width: 640px; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.9375rem; color: var(--navy);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--coral { background: rgba(255, 138, 101, 0.12); color: var(--coral); }
.chip--blue { background: rgba(74, 144, 226, 0.12); color: var(--blue); }
.chip--purple { background: rgba(99, 102, 241, 0.12); color: var(--purple); }
.chip--green { background: rgba(61, 190, 108, 0.12); color: var(--green); }
.chip--gold { background: rgba(255, 175, 25, 0.14); color: #B7791F; }
.chip span { color: var(--navy); }

/* ---------- Passport ---------- */
.passport { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.passport__copy .body { margin-top: 18px; color: var(--slate); max-width: 520px; }
.passport__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pchip { padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.875rem;
  background: rgba(255, 175, 25, 0.16); color: #92400E; }   /* 6:1 on the gold tint — passes AA */
.passport__widgets { margin-top: 22px; color: var(--slate); font-size: 0.95rem; }
.passport__device { max-width: 300px; margin-inline: auto; }

/* ---------- For parents ---------- */
.trust-grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tcard { background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(24px, 3vw, 32px); }
.tcard__icon { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.tcard__icon--green { background: rgba(61, 190, 108, 0.16); }
.tcard__icon--gold { background: rgba(255, 175, 25, 0.18); }
.tcard__icon--coral { background: rgba(255, 138, 101, 0.18); }
.tcard__icon--blue { background: rgba(74, 144, 226, 0.16); }
.tcard h3 { font-size: 1.3rem; font-weight: 800; }
.tcard p { margin-top: 10px; color: var(--slate); font-size: 1rem; line-height: 1.55; }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: clamp(40px, 5vw, 64px); }   /* tighten the gap down to the footer */
.cta__panel {
  /* deepened from the Figma #43C66F→#269E56 so white text clears WCAG AA (4.65:1
     at the lightest point) across the whole panel — per the strict-AA decision */
  background: linear-gradient(105deg, #16863E 0%, #0E6E30 100%);
  border-radius: 28px; text-align: center; color: #fff;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px);
  box-shadow: 0 30px 70px rgba(14, 110, 48, 0.32);
}
.cta__icon { width: 84px; height: 84px; margin: 0 auto 26px; }
.cta__icon img { width: 84px; height: 84px; border-radius: 19px; display: block;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22); }
.cta__panel h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem); font-weight: 900; }
.cta__panel .sub { margin: 16px auto 0; max-width: 560px; color: #fff; }
.cta__panel .btn { margin-top: 30px; }
.cta__fine { margin-top: 22px; font-size: 0.85rem; color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #F4EBCF; border-top: 1px solid rgba(15, 23, 42, 0.10); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; flex-wrap: wrap; }
.footer .brand { font-size: 1.1rem; }
.footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer__copy { margin-top: 10px; color: var(--slate); font-size: 0.85rem; max-width: 520px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer__links a { font-weight: 700; color: var(--slate); }
.footer__links a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .modes { grid-template-columns: 1fr; }
  .modes__device { max-width: 280px; }
  .passport { grid-template-columns: 1fr; }
  .passport__device { order: 2; max-width: 280px; }
  .passport__copy .body { max-width: none; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .cta__panel .btn { width: 100%; }
  .trust__list { gap: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
