/* =========================================================================
   SchoolPal marketing site
   Design system: trust-blue (#0078D4) + warm accents, Baloo 2 + Inter.
   Calm, accessible (WCAG 2.2 AA), reduced-motion first-class.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #EAF4FB;

  /* Brand */
  --primary: #0078D4;
  --primary-hover: #005FBA;

  /* Warm accents (decorative only — never behind text) */
  --soft-blue: #A8D0E6;
  --warm-yellow: #F9E79F;
  --peach: #FFDAB9;
  --accent-deep: #C77B3A;

  /* Text */
  --ink: #0B3D66;       /* headings / display */
  --text: #333333;      /* body */
  --muted: #666666;     /* secondary */

  /* Lines */
  --border: #E2E6EA;
  --success: #107C10;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 102, 0.05);
  --shadow: 0 4px 16px rgba(11, 61, 102, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 61, 102, 0.10);

  /* Rhythm */
  --container: 1140px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- Reset / base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: 84px; } /* offset sticky header for anchor jumps */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.ic {
  width: 1.5em; height: 1.5em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Elements meant to be solid (play triangle, conversation/target dots) opt back in via their own fill/stroke attributes. */

/* ----------------------------- Helpers ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container.narrow { max-width: 820px; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.microcopy { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.microcopy.center { text-align: center; max-width: 60ch; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--primary-hover); margin: 0 0 0.6rem;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--surface); color: var(--primary-hover);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- Focus visibility ----------------------------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  line-height: 1; text-align: center; text-decoration: none;
  border-radius: var(--pill); border: 1.5px solid transparent;
  padding: 0.85rem 1.5rem; min-height: 48px; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 1rem 1.75rem; min-height: 54px; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.95rem; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--primary-hover); border-color: var(--primary); }
.btn-secondary:hover { background: var(--surface-alt); transform: translateY(-1px); }
.btn .ic { width: 1.2em; height: 1.2em; }

/* ----------------------------- Header / nav ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-logo { display: block; border-radius: 9px; }
.brand-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 1rem; position: relative; }
.nav-links a:not(.btn):hover { color: var(--primary-hover); text-decoration: none; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: right .2s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { right: 0; }
.nav-cta { color: #fff !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; padding: 10px; background: transparent;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(249, 231, 159, 0.55), transparent 60%),
    radial-gradient(55% 60% at 96% 70%, rgba(255, 218, 185, 0.5), transparent 60%),
    linear-gradient(135deg, rgba(168, 208, 230, 0.55) 0%, rgba(250, 250, 250, 0.2) 45%, rgba(250, 250, 250, 0) 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: 0.6rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #2c3e50; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.6rem; }
.hero-sub { margin-top: 0.4rem; }
.hero-trust { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.hero-trust li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--text); }
.hero-trust .ic { color: var(--primary); width: 1.25rem; height: 1.25rem; }

/* ----------------------------- Device frame (screenshots) ----------------------------- */
.device-frame {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.device-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #f4f6f8; border-bottom: 1px solid var(--border); }
.device-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d4dae0; }
.device-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-alt); }
.device-frame figcaption { padding: 0.85rem 1.1rem 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ----------------------------- Sections ----------------------------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 48rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head .eyebrow { text-align: center; }
.section-intro { font-size: 1.1rem; color: var(--text); line-height: 1.6; margin-bottom: 0; }
.subhead { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: clamp(1.35rem, 2.6vw, 1.7rem); text-align: center; max-width: 42rem; margin: clamp(2.4rem, 5vw, 3.4rem) auto 1.6rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.9rem;
  font-family: var(--font-head); font-weight: 600; color: var(--primary-hover);
  background: rgba(0,120,212,0.08); padding: 0.35rem 0.85rem; border-radius: var(--pill); font-size: 0.98rem;
}
.section-tag .ic { width: 1.15rem; height: 1.15rem; color: var(--primary); }

.prose-2col {
  columns: 2; column-gap: clamp(2rem, 5vw, 4rem); max-width: 60rem; margin: 0 auto;
  font-size: 1.05rem; color: var(--text);
}
.prose-2col p { break-inside: avoid; }

/* ----------------------------- Stat band ----------------------------- */
.stat-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center;
}
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--primary); line-height: 1; margin-bottom: 0.6rem; }
.stat-label { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ----------------------------- Cards ----------------------------- */
.card-grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card.feature h3 { margin-bottom: 0.4rem; }
.card.feature h4 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.card.feature p, .card.audience p { margin: 0; color: var(--text); font-size: 0.98rem; }

.feature-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--surface-alt); color: var(--primary);
}
.feature-ic.sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.feature-ic .ic { width: 26px; height: 26px; }
.card.feature.warm .feature-ic { background: #fdf0e2; color: var(--accent-deep); }

.card.audience h3 { margin-bottom: 0.5rem; }

/* ADHD section layout: cards + sticky figure */
.adhd-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.adhd-figure { position: sticky; top: 92px; }
.callout {
  display: flex; align-items: center; gap: 0.8rem; max-width: 60rem; margin: 2.5rem auto 0;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; color: var(--text); box-shadow: var(--shadow-sm);
}
.callout .ic { color: var(--primary); width: 1.6rem; height: 1.6rem; }

/* ----------------------------- Split layout ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.split-copy h2 { margin-bottom: 0.8rem; }
.split-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.split-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.split-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; margin-bottom: 0.15rem; }
.split-list span { color: var(--text); font-size: 0.96rem; }

/* ----------------------------- Showcase pair ----------------------------- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); margin-top: clamp(2rem, 4vw, 3rem); }

/* ----------------------------- Research mini-cards ----------------------------- */
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm); }
.mini-card .feature-ic.sm { margin-bottom: 0.8rem; }
.mini-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.mini-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ----------------------------- Inline CTA ----------------------------- */
.inline-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.6rem; justify-items: center; }

/* ----------------------------- Video cards ----------------------------- */
.video-card { margin: 0; }
.video-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface-alt);
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.video-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.96; }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%; box-shadow: var(--shadow-md);
}
.video-thumb .play .ic { width: 30px; height: 30px; margin-left: 3px; }
.video-thumb:hover .play { background: var(--primary-hover); }
.video-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(11,61,102,0.85); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; padding: 0.25rem 0.6rem; border-radius: var(--pill);
}
.video-card figcaption { padding: 0.9rem 0.3rem 0; font-size: 0.9rem; color: var(--muted); }

/* ----------------------------- FAQ ----------------------------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; color: var(--ink);
  padding: 1.15rem 1.3rem; line-height: 1.4;
}
.faq-q:hover { color: var(--primary-hover); }
.faq-q .chev { width: 22px; height: 22px; color: var(--primary); transition: transform .2s ease; flex: none; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.25rem; color: var(--text); font-size: 0.98rem; }
/* JS-enhanced collapse; fallback (no-JS) shows answers open */
.js .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.js .faq-a > p { min-height: 0; overflow: hidden; padding-bottom: 0; transition: padding-bottom .22s ease; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; }
.js .faq-item.open .faq-a > p { padding-bottom: 1.25rem; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band {
  background: linear-gradient(135deg, #0a6bc0 0%, #005FBA 55%, #0b3d66 100%);
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-inner { max-width: 640px; }
.eyebrow.on-dark { color: #e6f1fb; text-align: center; }
.cta-lead { font-size: 1.15rem; color: #eaf4fb; max-width: 36rem; margin: 0 auto 2rem; line-height: 1.55; }
.cta-note { max-width: 34rem; margin: 1.1rem auto 0; padding: 0.85rem 1.1rem; font-size: 0.98rem; line-height: 1.55; color: #eaf4fb; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 12px; }
.cta-note[hidden] { display: none; }
.cta-note a { color: #fff; font-weight: 600; text-decoration: underline; }
.cta-note:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.microcopy.on-dark { color: #cfe1f0; }

.signup { max-width: 540px; margin: 0 auto; }
.signup-row { display: flex; gap: 0.6rem; }
.signup input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 1rem;
  padding: 0.95rem 1.1rem; border-radius: var(--pill); border: 1.5px solid transparent;
  background: #fff; color: var(--text);
}
.signup input[type="email"]::placeholder { color: #6b7480; }
.signup input[type="email"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.signup .btn-primary { background: #fff; color: var(--primary-hover); border-color: #fff; white-space: nowrap; }
.signup .btn-primary:hover { background: #eaf4fb; }
#signup-help { margin-top: 0.8rem; }
.signup-status { margin: 0.8rem 0 0; font-weight: 600; min-height: 1.2em; }
.signup-status.ok { color: #c6f6c6; }
.signup-status.err { color: #ffd5d5; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
.footer-brand .brand { margin-bottom: 0.8rem; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 26rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h3 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; font-family: var(--font-body); font-weight: 600; }
.footer-col a { color: var(--text); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary-hover); }
.footer-legal { margin-top: clamp(2rem, 4vw, 2.5rem); padding-top: 1.4rem; border-top: 1px solid var(--border); }
.disclaimer { font-size: 0.82rem; color: var(--muted); max-width: 70ch; margin: 0 0 0.6rem; }
.patent-note, .trademark-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.6rem; }
.tm { font-size: 0.5em; vertical-align: super; font-weight: 600; }
.copyright { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Lightbox (click a screenshot to enlarge) ----------------------------- */
.device-frame img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 61, 102, 0.92);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); background: #fff;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox-hint { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; margin: 0; pointer-events: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: 0.5rem 1.1rem 1.2rem; transform: translateY(-130%); transition: transform .25s ease;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .split, .split.reverse, .adhd-layout, .showcase { grid-template-columns: 1fr; }
  .adhd-figure { position: static; }
  .split.reverse .device-frame { order: -1; }
  .prose-2col { columns: 1; }
}

@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-5, .stat-band { grid-template-columns: 1fr; }
  .signup-row { flex-direction: column; }
  .signup .btn-primary { width: 100%; }
  .callout { flex-direction: column; text-align: center; align-items: center; }
}

@media (min-width: 681px) and (max-width: 980px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { background: linear-gradient(135deg, rgba(168,208,230,0.4), rgba(255,218,185,0.25)); }
}

/* ----------------------------- Print ----------------------------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .video-thumb .play { display: none !important; }
  body { background: #fff; }
}
