/* ---------- tokens (shared with IEP Coach app and pitch decks) ---------- */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --ink: #17202a;
  --ink-2: #4a5663;
  --muted: #5e6a77;
  --line: #e1e6eb;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0f7;
  --amber: #f5b301;
  --cta: #15803d;
  --cta-hover: #166534;
  --cta-ink: #ffffff;
  --band: #22303f;
  --band-ink: #ffffff;
  --band-ink-2: #c9d3de;
  --shadow: 0 1px 2px rgba(23, 32, 42, 0.05), 0 4px 16px rgba(23, 32, 42, 0.05);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #11151a;
    --surface: #181e25;
    --surface-2: #202832;
    --ink: #e9eef3;
    --ink-2: #b5c0cb;
    --muted: #8d99a6;
    --line: #2a333d;
    --accent: #6cb4e6;
    --accent-ink: #0c1620;
    --accent-soft: #16304a;
    --cta: #4ade80;
    --cta-hover: #6ee7a0;
    --cta-ink: #0c1620;
    --band: #1a2531;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #11151a;
  --surface: #181e25;
  --surface-2: #202832;
  --ink: #e9eef3;
  --ink-2: #b5c0cb;
  --muted: #8d99a6;
  --line: #2a333d;
  --accent: #6cb4e6;
  --accent-ink: #0c1620;
  --accent-soft: #16304a;
  --cta: #4ade80;
  --cta-hover: #6ee7a0;
  --cta-ink: #0c1620;
  --band: #1a2531;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--cta);
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--cta); }
.btn-ghost:hover { background: transparent; color: var(--cta-hover); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-light, .btn-light:hover { background: #ffffff; color: #17202a; border-color: #ffffff; }
.link { color: var(--cta); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 600px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
/* Phones: natural height, no scroll cue; the next section's heading peeks above the fold.
   Larger screens: the hero fills the first screen and the cue signals content below. */
.hero { padding: 32px 0 0; }
@media (min-width: 720px) {
  .hero {
    min-height: calc(100svh - 64px);
    display: flex;
    flex-direction: column;
    padding: 96px 0 28px;
  }
  .hero > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; }
}
.scroll-cue {
  display: none;
  align-self: center;
  margin-top: 40px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.scroll-cue:hover { color: var(--ink); }
@media (min-width: 720px) { .scroll-cue { display: flex; } }
.scroll-cue svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } html { scroll-behavior: auto; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 16px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
/* Wide screens: copy on the left, demo video on the right. Narrower screens show the video only in Products. */
.hero-media { display: none; }
@media (min-width: 1024px) {
  .hero > .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
  .hero-grid h1 { font-size: clamp(44px, 4.2vw, 52px); text-wrap: balance; }
  .hero-media { display: block; }
  .hero-media .video { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 20px 48px rgba(23, 32, 42, 0.12); }
  .hero-media .play, .hero-media .play:hover { left: auto; top: auto; right: 16px; bottom: 16px; width: 60px; height: 60px; }
  .hero-media .play { transform: none; }
  .hero-media .play:hover { transform: scale(1.06); }
  .hero-media-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
}
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 40em; margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.promise { margin-top: 28px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; }
.section-lede { color: var(--ink-2); font-size: 18px; max-width: 36em; margin-top: 12px; }

/* stats */
.stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 32px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.stats li { display: flex; flex-direction: column; gap: 8px; }
.stat {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  align-self: flex-start;
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 100% 5px no-repeat;
  padding-bottom: 6px;
}
@media (min-width: 720px) { .stat { font-size: 40px; } }
.stat-label { color: var(--ink-2); }
.source { font-size: 13px; color: var(--muted); }

/* principle cards */
.cards { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 720px) { .card { padding: 24px; } }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-2); }

/* steps */
.steps-title { font-size: 18px; font-weight: 600; margin-top: 56px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* products */
.products { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .products { grid-template-columns: 2fr 1fr; } }
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.video { position: relative; border-bottom: 1px solid var(--line); background: #11151a; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(23, 32, 42, 0.25);
  transition: transform 0.15s, background-color 0.15s;
}
.play:hover { background: var(--cta-hover); transform: scale(1.06); }
.play svg { width: 22px; height: 22px; }
@media (min-width: 720px) {
  .play { right: auto; bottom: auto; left: 50%; top: 74%; transform: translate(-50%, -50%); width: 72px; height: 72px; }
  .play:hover { transform: translate(-50%, -50%) scale(1.06); }
  .play svg { width: 28px; height: 28px; }
}
.play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.play svg { margin-left: 4px; }
.video.playing .play { display: none; }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.product-body h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.product-body p:not(.tag) { color: var(--ink-2); }
.product-body .btn, .product-body .link { margin-top: 8px; }
.product-soon { background: var(--surface-2); box-shadow: none; align-self: start; }
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-muted { color: var(--ink-2); background: var(--surface); }

/* CTA band */
.cta-band { background: var(--band); color: var(--band-ink); padding: 72px 0; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 36px); max-width: 22ch; margin: 0 auto; }
.cta-band p { color: var(--band-ink-2); margin: 16px auto 28px; max-width: 34em; font-size: 17px; }

/* footer */
.site-footer { padding: 20px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 12px 0; }
.site-footer a:hover { color: var(--ink); }

/* legal pages */
.legal { padding: 56px 0 72px; }
@media (min-width: 720px) { .legal { padding: 88px 0 104px; } }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; }
.legal-meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal-lede { font-size: 18px; color: var(--ink-2); margin-top: 24px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.site-footer a[aria-current="page"] { color: var(--ink); }
