/* ==========================================================================
   Koren Capital — styles
   1. Fonts & tokens   2. Base   3. Layout & type   4. Components
   5. Header           6. Hero   7. Sections        8. Waitlist form
   9. FAQ             10. Footer 11. Motion
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand (sampled from the logo) */
  --logo-ink: #0E0E0E;
  --logo-blue: #0042AF;

  --blue: #0042AF;
  --blue-hover: #00378F;
  --blue-50: #EEF3FC;
  --blue-100: #DCE6F8;
  --blue-on-dark: #8DB0FF;

  /* Neutrals */
  --text: #12151C;
  --text-2: #444B58;
  --text-3: #5D6471;
  --line: #E6E8EC;
  --line-2: #D5D9DF;
  --bg: #FFFFFF;
  --bg-tint: #F6F7F9;
  --dark: #0A0C11;
  --dark-text: #A9B0BD;
  --error: #B42318;
  --error-bg: #FEF3F2;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.04);
  --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 12px 32px -16px rgb(16 24 40 / 0.14);
  --shadow-lg: 0 2px 4px rgb(16 24 40 / 0.04), 0 28px 64px -28px rgb(16 24 40 / 0.28);

  /* Motion (strong custom curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1200px;
  --section-y: clamp(88px, 11vw, 144px);
}

/* 2. Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--blue-100); color: var(--text); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 3. Layout & type -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section { position: relative; padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.lead {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

.split { display: grid; gap: 24px; }
.split-body { display: grid; gap: 16px; max-width: 36rem; }

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
}

.fineprint { color: var(--text-3); font-size: 0.875rem; }

/* 4. Components ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn[disabled] { cursor: not-allowed; opacity: 0.5; }
.btn[hidden] { display: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 30 90 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line-2);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:not([disabled]):hover { background: var(--blue-hover); }
  .btn-ghost:hover { background: var(--bg-tint); border-color: #C6CBD3; }
  .btn:hover .btn-icon { transform: translateX(3px); }
}

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out);
}

@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Status labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--dev { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.tag--soon { background: var(--bg-tint); border-color: var(--line); color: #3D4451; }
.tag--planned { background: var(--bg); border-color: var(--line-2); color: #3D4451; }
.tag--considering { background: transparent; border: 1px dashed #BCC2CB; color: var(--text-3); }

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.status-dot--live { background: var(--blue); }
.status-dot--live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue);
  animation: ping 2.4s var(--ease-out) infinite;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 5. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.84);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header[data-scrolled="true"],
.site-header[data-menu-open="true"] {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-radius: 8px;
  text-decoration: none;
}
.brand-mark { width: 41.7px; height: 30px; }
.brand-word { width: 139.5px; height: 10.5px; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.site-nav a[aria-current="true"] { color: var(--text); background: var(--bg-tint); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); background: var(--bg-tint); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-login {
  padding: 8px 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.header-login[hidden] { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle-bars { position: relative; width: 18px; height: 10px; }
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-in-out);
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(4.125px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { transform: translateY(-4.125px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity 150ms ease,
    transform 150ms var(--ease-out),
    visibility 0s linear 150ms;
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s;
}
.mobile-menu nav { padding-block: 8px 24px; }
.mobile-menu ul { margin: 0 0 20px; padding: 0; list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: none;
}
.mobile-menu li:has(> a[hidden]) { display: none; }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(10 12 17 / 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.menu-scrim[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s;
}

.cta-short { display: none; }

@media (max-width: 419px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta { padding-inline: 14px; font-size: 0.8125rem; }
  .header-actions { gap: 6px; }
  .brand-mark { width: 33.4px; height: 24px; }
  .brand-word { width: 106.3px; height: 8px; }
  .brand { gap: 8px; }
}

@media (min-width: 960px) {
  .site-nav { display: block; margin-inline: auto; }
  .header-actions { margin-left: 0; }
  .menu-toggle, .mobile-menu, .menu-scrim { display: none; }
}

/* 6. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(56px, 9vw, 112px) clamp(80px, 10vw, 136px);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(18 21 28 / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(18 21 28 / 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 32%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 32%, #000 15%, transparent 72%);
}
.hero::before {
  content: "";
  position: absolute;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  top: -10%;
  right: -12%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 66 175 / 0.11), transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 56px;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 760;
}
.hero-title .accent { display: block; color: var(--blue); }

.hero-lead {
  max-width: 35rem;
  margin: 26px 0 38px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 559px) {
  .hero-actions .btn { width: 100%; padding-inline: 20px; }
}
@media (max-width: 399px) {
  .hero-actions .btn-icon { display: none; }
}

/* Hero visual: a stack of course cards */
.hero-visual { position: relative; }

.stack {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  padding-top: 72px;
}

.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.stack-card--back1,
.stack-card--back2 {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 650;
  transition: transform 400ms var(--ease-out);
}
.stack-card--back2 { top: 0; margin-inline: 40px; background: #F9FAFB; }
.stack-card--back1 { top: 36px; margin-inline: 20px; background: #FCFCFD; }
.stack-card--back1 .tag,
.stack-card--back2 .tag { padding: 2px 8px; font-size: 0.6875rem; }
.stack-card-label { display: inline-flex; gap: 8px; align-items: baseline; }
.stack-card-label .mono { color: var(--text-3); font-size: 0.75rem; }

.stack-card--front {
  position: relative;
  padding: 22px 22px 14px;
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) and (pointer: fine) {
  .stack:hover .stack-card--back2 { transform: translateY(-8px); }
  .stack:hover .stack-card--back1 { transform: translateY(-4px); }
}

.stack-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { color: var(--text-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stack-card-title {
  margin-top: 16px;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stack-card-sub { margin-top: 2px; color: var(--text-3); font-size: 0.9375rem; }

.mini-chart {
  width: 100%;
  height: 84px;
  margin: 18px 0 12px;
  overflow: visible;
}
.mini-chart-grid line { stroke: #EEF0F3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-chart-level {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
}
.candles .c line,
.candles .c rect { stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.candles .up line { stroke: var(--blue); }
.candles .up rect { fill: var(--blue); stroke: var(--blue); }
.candles .down line { stroke: #9AA1AD; }
.candles .down rect { fill: var(--bg); stroke: #9AA1AD; }

.stack-modules { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stack-modules li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.stack-modules li .mono { color: var(--blue); font-size: 0.8125rem; padding-top: 2px; }
.stack-modules .stack-modules-more {
  border-bottom: 0;
  padding-bottom: 4px;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}

/* 7. Sections ------------------------------------------------------------- */

/* About */
.pillars {
  display: grid;
  gap: 8px 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pillar { padding: 28px 0 24px; border-top: 1px solid var(--line); }
.pillar h3 { margin: 20px 0 8px; font-size: 1.0625rem; letter-spacing: -0.01em; }
.pillar p { font-size: 0.9375rem; color: var(--text-2); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue);
}
.pillar-icon svg { width: 22px; height: 22px; }

/* Beginner course */
.course-head { display: grid; gap: 20px; max-width: 46rem; }
.course-head .eyebrow { margin: 0; }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.course-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 1024px) {
  .course-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: start;
  }
  .audience { position: sticky; top: calc(var(--header-h) + 24px); }
}

.checklist { display: grid; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; color: var(--text); font-size: 0.9875rem; }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; color: var(--blue); }

.audience-note {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
}
.audience-note svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--text-3); }
.audience .btn { margin-top: 24px; }

.curriculum-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 8px;
}
.curriculum-note { color: var(--text-3); font-size: 0.875rem; }

.modules { margin: 0; padding: 0; list-style: none; }
.module {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.module:last-child { padding-bottom: 0; }
.module-num { padding-top: 3px; color: var(--blue); font-size: 0.8125rem; }
.module h4 { margin-bottom: 4px; font-size: 1.0625rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.4; }
.module p { color: var(--text-2); font-size: 0.9375rem; }

.section-cta { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 559px) {
  .section-cta .btn { width: 100%; padding-inline: 20px; }
}

/* Learning path */
.path {
  position: relative;
  display: grid;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.path-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  gap: 20px;
  padding-bottom: 40px;
}
.path-step:last-child { padding-bottom: 0; }

/* Connector between steps (vertical on mobile, horizontal on desktop) */
.path-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 60px;
  bottom: 12px;
  width: 1px;
  background: var(--line-2);
  transform-origin: top;
}
.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20.5px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}

.path-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.path-step.is-current .path-node {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px var(--blue-50);
}

.path-body { padding-top: 9px; }
.path-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.path-top h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.path-body p { max-width: 30rem; margin-top: 10px; color: var(--text-2); font-size: 0.9875rem; }
.path-body .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-step { grid-template-columns: 1fr; gap: 0; padding: 0 40px 0 0; }
  .path-step:not(:last-child)::before {
    left: 64px;
    right: 18px;
    top: 23.5px;
    bottom: auto;
    width: auto;
    height: 1px;
    transform-origin: left;
  }
  .path-step:not(:last-child)::after {
    left: auto;
    right: 18px;
    top: 20.5px;
    bottom: auto;
    transform: rotate(-45deg);
  }
  .path-body { padding-top: 24px; }
}

.beyond { margin-top: 88px; }
.beyond-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.beyond-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.beyond-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .beyond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offering { display: flex; flex-direction: column; }
.offering-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.offering p { margin-top: 14px; color: var(--text-2); font-size: 0.9875rem; }
.offering .btn { align-self: flex-start; margin-top: 20px; }
.beyond .fineprint { margin-top: 24px; }

/* Teaching approach */
.approach {
  display: grid;
  gap: 16px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .approach { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.approach-item {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.approach-num {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 0.75rem;
}
.approach-item h3 { margin: 18px 0 10px; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.35; }
.approach-item p { color: var(--text-2); font-size: 0.9375rem; }

.callout {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--text);
  font-size: 0.9875rem;
  line-height: 1.6;
}
.callout-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: var(--blue); }
.callout strong { font-weight: 700; }

/* 8. Waitlist ------------------------------------------------------------- */

.section--dark {
  overflow: clip;
  background: var(--dark);
  color: var(--dark-text);
}
.section--dark .section-title { color: #fff; }
.section--dark .lead { color: var(--dark-text); }
.section--dark :focus-visible { outline-color: var(--blue-on-dark); }
.section--dark .waitlist-card :focus-visible { outline-color: var(--blue); }
.eyebrow--light { color: var(--blue-on-dark); }

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 10%, transparent 70%);
}
.waitlist-glow {
  position: absolute;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  right: -18%;
  top: -40%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 66 175 / 0.5), transparent);
}

.waitlist-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.waitlist-copy { display: grid; gap: 20px; max-width: 34rem; }
.waitlist-copy .eyebrow { margin: 0; }

@media (min-width: 1024px) {
  .waitlist-inner { grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; }
}

.waitlist-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--text-2);
  box-shadow: 0 40px 80px -32px rgb(0 0 0 / 0.65);
}

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming into the field */
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(0 66 175 / 0.14);
}
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:focus { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(180 35 24 / 0.12); }

.field-error { margin-top: 6px; color: var(--error); font-size: 0.8125rem; font-weight: 600; }
.field-error:empty { display: none; }

.field--check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 22px 0 24px;
}
.field--check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid #BCC2CB;
  border-radius: 6px;
  background: var(--bg) center / 15px no-repeat;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.field--check input:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field--check input[aria-invalid="true"] { border-color: var(--error); }
.field--check label { color: var(--text-2); font-size: 0.875rem; line-height: 1.55; cursor: pointer; }
.field--check .field-error { grid-column: 2; margin-top: 0; }

.submit { position: relative; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}
.submit[aria-busy="true"] { opacity: 1; cursor: progress; }
.submit[aria-busy="true"] .spinner { display: inline-block; }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-error { background: var(--error-bg); color: var(--error); font-weight: 600; }

.form-success { padding: 16px 4px 8px; text-align: center; outline: none; }
.form-success:not([hidden]) { animation: rise 500ms var(--ease-out) both; }
.form-success p { color: var(--text); font-size: 1.125rem; font-weight: 650; line-height: 1.5; }
.form-success .form-success-note { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; font-weight: 500; }
.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
}
.success-icon svg { width: 26px; height: 26px; }

/* 9. FAQ ------------------------------------------------------------------ */

.faq-layout { display: grid; gap: 40px; }
.faq-head { display: grid; gap: 18px; max-width: 30rem; }
.faq-head .eyebrow { margin: 0; }

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 200ms var(--ease-out), color 150ms ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--blue); }

@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover .faq-icon { color: var(--text); }
}

.faq-answer { padding: 0 44px 24px 0; color: var(--text-2); }
.faq-answer p + p, .faq-answer ul + p { margin-top: 12px; }
.faq-answer ul { margin: 10px 0 0; padding-left: 20px; }
.faq-answer li { padding: 2px 0; }

/* Smooth open/close where the browser supports it; instant elsewhere. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 220ms var(--ease-out), content-visibility 220ms allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* 10. Footer -------------------------------------------------------------- */

.site-footer {
  padding-block: 72px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  font-size: 0.9375rem;
}

.footer-top { display: grid; gap: 40px; }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

.footer-brand .brand { display: inline-flex; }
.footer-name { margin-top: 20px; color: var(--text); font-weight: 650; }
.footer-tagline { margin-top: 4px; color: var(--text-3); }

.footer-heading {
  margin-bottom: 16px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-col a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover, .footer-legal a:hover { color: var(--text); text-decoration: underline; }
}

.footer-bottom {
  display: grid;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.disclaimer { max-width: 62rem; color: var(--text-3); font-size: 0.8125rem; line-height: 1.6; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: var(--text-3); text-decoration: none; }

[data-footer-connect][hidden], [data-footer-legal][hidden] { display: none; }

/* Legal pages (privacy policy, terms) ------------------------------------ */

.legal-page { padding-block: clamp(56px, 8vw, 104px) var(--section-y); }
.legal { max-width: 46rem; margin-inline: auto; }
.legal-head { margin-bottom: 40px; }
.legal-head .eyebrow { margin-bottom: 14px; }
.legal-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.legal-updated { margin-top: 14px; color: var(--text-3); font-size: 0.9375rem; }
.legal-summary {
  margin-bottom: 40px;
  padding: 24px 28px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--text);
}
.legal .legal-summary h2 { margin: 0 0 12px; font-size: 1.0625rem; }
.legal-summary ul { margin: 0; }
.legal h2 { margin: 48px 0 14px; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.3; }
.legal h3 { margin: 24px 0 8px; font-size: 1.0625rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li { padding: 3px 0; }
.legal ul + p { margin-top: 14px; }
.legal strong { color: var(--text); font-weight: 650; }
.legal-contact { margin-top: 12px; color: var(--text); font-weight: 600; line-height: 1.7; }

/* 11. Motion -------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes candle {
  from { opacity: 0; transform: scaleY(0.4); }
  to { opacity: 1; transform: none; }
}

/* Hero entrance: runs once on load, staggered */
.hero-item {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
.candles .c {
  transform-box: fill-box;
  transform-origin: center;
  animation: candle 500ms var(--ease-out) both;
  animation-delay: calc(var(--c) * 40ms + 520ms);
}

/* Scroll reveal: fires once per element (see main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Learning path connectors draw in, step by step */
.js .path .path-step:not(:last-child)::before {
  transform: scaleY(0);
  transition: transform 700ms var(--ease-in-out);
}
.js .path .path-step:nth-child(1)::before { transition-delay: 250ms; }
.js .path .path-step:nth-child(2)::before { transition-delay: 650ms; }
.js .path.is-visible .path-step::before { transform: none; }
@media (min-width: 900px) {
  .js .path .path-step:not(:last-child)::before { transform: scaleX(0); }
  .js .path.is-visible .path-step::before { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-item, .candles .c { animation-name: fade; animation-duration: 400ms; }
  .status-dot--live::after { animation: none; }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
  .js .path .path-step:not(:last-child)::before { transform: none; transition: none; }
  .form-success:not([hidden]) { animation-name: fade; }
  .faq-item::details-content { transition: none; }
  .stack-card--back1, .stack-card--back2 { transition: none; }
}
