/* =============================================================================
   LabAMI — Tech Week marketing site
   CODA-system grounded. Paper, ink, italic display, mono caps.
   ============================================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/playfair-display-italic-400-900-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('./fonts/dm-sans-roman-100-1000-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/dm-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/dm-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Neutra Text';
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/NeutraText-Book.otf') format('opentype');
}
@font-face {
  font-family: 'Neutra Text';
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/NeutraText-Demi.otf') format('opentype');
}
@font-face {
  font-family: 'Neutra Text Alt';
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/NeutraText-BookAlt.otf') format('opentype');
}

/* ---------- TOKENS (CODA) ---------- */
:root {
  --bg-paper:    #F7F5F1;
  --bg-warm:     #EDE9E1;
  --bg-elevated: #FEFCF8;
  --pill-fill:   rgba(254,252,248,0.92); /* bg-elevated @ 92% — nav pill / ghost-button fill */
  --charcoal:    #343838;
  --coffee:      #AD9E8F;
  --brown:       #774F36;
  --ink:         #2C3E6B;
  --lavender:    #635F88;
  --pencil:      #5C5C5C;
  --pencil-lt:   #8A8A8A;
  --success:     #4A6741;
  --warning:     #B8860B;
  --yellow:      #F1FF0A;
  --ink-on-yellow: #343838;

  --border-soft:  rgba(173,158,143,0.35);
  --border-faint: rgba(173,158,143,0.20);
  --rule-line:    rgba(173,158,143,0.10);
  --scrim:        rgba(52,56,56,0.30);
  --glow-warning: rgba(184,134,11,0.20);

  --shadow-paper:    0 1px 2px rgba(52,56,56,0.04), 0 2px 4px rgba(52,56,56,0.04), 0 4px 8px rgba(52,56,56,0.03);
  --shadow-elevated: 0 4px 12px rgba(52,56,56,0.08), 0 8px 24px rgba(52,56,56,0.06);
  --shadow-pressed:  0 1px 2px rgba(52,56,56,0.06);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-nav:     'Neutra Text', 'DM Sans', system-ui, sans-serif;

  --r-card: 14px;
  --r-pill: 999px;
  --r-input: 12px;

  --ease-spring: cubic-bezier(.4, 1.4, .6, 1);
  --ease-soft:   ease-in-out;
  --ease-snap:   ease-out;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg-paper:    #16140F;
  --bg-warm:     #1F1C16;
  --bg-elevated: #232019;
  --pill-fill:   rgba(35,32,25,0.92);
  --charcoal:    #EDE7DA;
  --coffee:      #6B5F52;
  --brown:       #D4B89A;
  --ink:         #97A8D9;
  --lavender:    #B0ACD7;
  --pencil:      #BDB7AB;
  --pencil-lt:   #908A7E;
  --border-soft:  rgba(173,158,143,0.20);
  --border-faint: rgba(173,158,143,0.12);
  --rule-line:    rgba(212,184,154,0.09);
  --shadow-paper:    0 1px 2px rgba(0,0,0,0.30), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.30);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 250ms var(--ease-soft), color 250ms var(--ease-soft);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
::selection { background: var(--yellow); color: var(--ink-on-yellow); }

/* ---------- AMBIENT TEXTURE (paper grain + ruled lines) ---------- */
.paper-grain,
.ruled-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.paper-grain {
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.40  0 0 0 0 0.35  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.ruled-lines {
  /* Music-staff rhythm: 5 visible rule lines, every 6th line silent (162px period). */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 26px,
    var(--rule-line) 26px,
    var(--rule-line) 27px,
    transparent 27px,
    transparent 53px,
    var(--rule-line) 53px,
    var(--rule-line) 54px,
    transparent 54px,
    transparent 80px,
    var(--rule-line) 80px,
    var(--rule-line) 81px,
    transparent 81px,
    transparent 107px,
    var(--rule-line) 107px,
    var(--rule-line) 108px,
    transparent 108px,
    transparent 134px,
    var(--rule-line) 134px,
    var(--rule-line) 135px,
    transparent 135px,
    transparent 162px
  );
  /* background-position-y is driven by the parallax scroll script */
  will-change: background-position;
}

/* ---------- TYPOGRAPHY ---------- */
.t-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--charcoal);
}
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
}
.t-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brown);
}
.t-numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--charcoal);
}
.t-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.brand-coda {
  font-family: 'Neutra Text Alt', 'Neutra Text', sans-serif;
  letter-spacing: -0.01em;
}

/* ---------- LAYOUT ---------- */
.shell { position: relative; z-index: 2; }
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { position: relative; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  /* End gaps match the 42px LabAMI->Product gap: left 42px; right
     28px + the last nav-link's own 14px padding = 42px. Top/bottom
     12/8 nudges the text down ~2px so Neutra's ink (which sits high
     in the line box) lands on the exact vertical center. */
  padding: 12px 28px 8px 42px;
  background: var(--pill-fill);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-paper);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Neutra Text Alt', 'Neutra Text', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--charcoal);
  transition: background 150ms var(--ease-soft), color 150ms var(--ease-soft);
}
.nav-link:hover { background: var(--bg-warm); color: var(--charcoal); }
/* Scroll-spy "current section" state — yellow pill, both themes. */
.nav-link[aria-current] { background: var(--yellow); color: var(--ink-on-yellow); }
/* ---------- DARK-MODE TOGGLE (floating — outside the nav) ---------- */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 40px;
  z-index: 100;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--pill-fill);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-paper);
  cursor: pointer;
  transition: transform 120ms var(--ease-spring),
              background 150ms var(--ease-soft), color 150ms var(--ease-soft);
}
.theme-toggle:hover  { transform: scale(1.06); }
.theme-toggle:active { transform: scale(0.96); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  /* Uniform sizing: all .btn instances match the widest label
     ("Request Investor Deck"). border-box + transparent border on the
     base means primary, ghost, and yellow variants all share identical
     outer dimensions. */
  box-sizing: border-box;
  border: 1.5px solid transparent;
  min-width: 240px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 120ms var(--ease-spring), background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--charcoal); color: var(--bg-paper); }
.btn-primary:hover { background: var(--brown); }
.btn-ghost {
  /* Fill matches the top-nav pill (.nav-inner) */
  background: var(--pill-fill);
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--bg-paper); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink-on-yellow);
  border: 1.5px solid var(--ink-on-yellow);
}
.btn-yellow:hover { background: var(--ink-on-yellow); color: var(--yellow); }
.btn-arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-paper);
  padding: 24px;
}
.card-accent { border-left: 3px solid var(--brown); }

/* ---------- SECTION HEADER ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--brown);
  max-width: 580px;
  line-height: 1.5;
}

/* Spacing rule: no padding / margin / gap value on this page
   exceeds 100px. Keep section padding ≤ 100px top/bottom. */

/* ---------- HERO COMMON ---------- */
.hero {
  position: relative;
  padding: 100px var(--gutter) 80px;
  overflow: hidden;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }

/* hero A — editorial */
.heroA {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 560px;
}
.heroA-text { position: relative; z-index: 2; }
.heroA-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}
.heroA-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--glow-warning);
  animation: lr-pulse 1800ms var(--ease-soft) infinite;
}
.heroA h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 28px;
  text-wrap: balance;
}
.heroA h1 .yellow-mark {
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  padding: 0 6px;
}
.heroA h1 em { font-style: italic; color: var(--brown); }
.heroA p.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--brown);
  max-width: 520px;
  margin-bottom: 36px;
}
.heroA-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.heroA-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brown);
}
.heroA-meta .sep { width: 4px; height: 4px; background: var(--coffee); border-radius: 50%; }

.heroA-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.heroA-octo {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 18px 32px rgba(52,56,56,0.18));
  animation: octo-float 6s var(--ease-soft) infinite;
}
[data-theme="dark"] .heroA-octo { filter: drop-shadow(0 18px 32px rgba(0,0,0,0.4)) invert(0.92) hue-rotate(180deg); }
.heroA-margin-note {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  max-width: 180px;
  opacity: 0;
  transform: translateY(8px);
  animation: lr-fade-in 800ms var(--ease-snap) forwards;
}
.heroA-margin-note .arrow {
  display: block;
  margin-top: 4px;
  color: var(--coffee);
}
.heroA-margin-note.mn-1 { top: 8%; left: -5%; animation-delay: 600ms; }
.heroA-margin-note.mn-2 { top: 38%; right: -3%; animation-delay: 900ms; text-align: right; }
.heroA-margin-note.mn-3 { bottom: 8%; left: 5%; animation-delay: 1200ms; }

/* hero B — split teacher/student */
.heroB { padding-top: 100px; }
.heroB-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 40px;
}
.heroB-head h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.heroB-head p {
  font-size: 18px;
  color: var(--brown);
  max-width: 700px;
  margin: 0 auto 28px;
}
.heroB-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.heroB-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px;
  min-height: 340px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 250ms var(--ease-spring), box-shadow 250ms;
}
.heroB-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.heroB-card .role-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--bg-warm);
  border-radius: 50%;
  margin-bottom: 18px;
  color: var(--brown);
}
.heroB-card .role-icon img { width: 32px; height: 32px; }
.heroB-card .role-icon svg { height: 30px; width: auto; display: block; }
.heroB-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.heroB-card .role-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px; align-self: flex-start; background: var(--yellow); padding: 3px 7px; }
/* Dark mode: drop the highlight, keep the eyebrow plain. */
[data-theme="dark"] .heroB-card .role-meta { background: transparent; color: var(--brown); padding: 0; }
.heroB-card p { color: var(--charcoal); font-size: 15px; margin-bottom: 18px; }
.heroB-card ul { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; margin-bottom: 22px; }
.heroB-card li { font-size: 14px; color: var(--charcoal); padding-left: 18px; position: relative; }
.heroB-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.heroB-card.is-teacher { border-right: 3px solid var(--brown); }
.heroB-card.is-student { border-left: 3px solid var(--ink); }
/* Dark mode: the For-Students edge highlight matches the For-Teachers one. */
[data-theme="dark"] .heroB-card.is-student { border-left-color: var(--brown); }

.heroB-divider {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 18px;
  position: relative;
}
.heroB-divider .line { width: 1px; flex-grow: 1; background: var(--border-soft); }
.heroB-divider .badge {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--brown);
  padding: 12px 0;
}
/* Octopus circle — corner accent inside the For Teachers card */
.heroB-octo-mini {
  position: absolute;
  top: 20px; right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink-on-yellow);
  display: grid; place-items: center;
  overflow: hidden;
}
.heroB-octo-mini img { width: 86%; height: 86%; object-fit: contain; }

/* hero C — data driven (fitness inspired) */
.heroC {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 560px;
}
.heroC h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.heroC .lead {
  font-size: 18px;
  color: var(--brown);
  max-width: 480px;
  margin-bottom: 28px;
}
.heroC-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.heroC-stat .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.03em;
}
.heroC-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 6px;
  display: block;
}

.heroC-dataviz {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}
.heroC-dv-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.heroC-dv-head h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
}
.heroC-dv-rings {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 12px;
}
.dv-ring {
  --pct: 78;
  --size: 110px;
  --stroke: 14px;
  width: var(--size); height: var(--size);
  position: relative;
}
.dv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dv-ring .track { stroke: var(--bg-warm); }
.dv-ring .fill { stroke-linecap: round; transition: stroke-dashoffset 1500ms var(--ease-spring); }
.dv-ring .label {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  text-align: center;
}
.dv-ring .label .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
}
.dv-ring .label .l {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 2px;
}
.heroC-dv-chart {
  margin-top: 18px;
  height: 110px;
  display: flex; align-items: flex-end; gap: 5px;
  padding: 0 4px;
}
.heroC-dv-chart .bar {
  flex: 1;
  background: var(--bg-warm);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 6px;
  transition: height 600ms var(--ease-spring);
}
.heroC-dv-chart .bar.active { background: var(--brown); }
.heroC-dv-chart .bar.today { background: var(--yellow); border: 1px solid var(--ink-on-yellow); border-bottom: none; }
.heroC-dv-week {
  display: flex; justify-content: space-around;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
}
.heroC-dv-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.heroC-dv-foot .delta { font-family: var(--font-body); font-size: 13px; color: var(--success); font-weight: 600; }
.heroC-dv-foot .stamp { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brown); }

/* ---------- SPONSOR / PARTNER STRIP ---------- */
.sponsors {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-warm);
  overflow: hidden;
}
.sponsors-inner { max-width: var(--maxw); margin: 0 auto; }
.sponsors-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 22px;
}
.sponsors-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
}
.sponsors-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--brown);
  opacity: 0.7;
  transition: opacity 200ms, color 200ms;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sponsors-logo:hover { opacity: 1; color: var(--charcoal); }

/* ---------- FEATURES ---------- */
.features {
  padding: 100px var(--gutter) 96px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-soft);
}
.features-inner { max-width: var(--maxw); margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 250ms var(--ease-spring), box-shadow 250ms;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}
.feature-illu {
  height: 110px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
  margin-bottom: 10px;
  text-wrap: balance;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--brown);
  line-height: 1.5;
  flex-grow: 1;
}
.feature-card .feature-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-faint);
}

/* sketch icon strokes draw-in */
.sketch-stroke {
  stroke: var(--charcoal);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch-stroke-brown { stroke: var(--brown); }
.sketch-stroke.draw-in {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.in-view .sketch-stroke.draw-in {
  animation: draw-stroke 1800ms var(--ease-soft) forwards;
}

/* ---------- WHY (pain → solution tabs) ---------- */
.why { padding: 96px var(--gutter); background: var(--bg-warm); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.why-inner { max-width: var(--maxw); margin: 0 auto; }
.why-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.why-tabs::-webkit-scrollbar { display: none; }
.why-tab {
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}
.why-tab.active { color: var(--charcoal); border-bottom-color: var(--charcoal); font-weight: 600; }
.why-tab:hover:not(.active) { color: var(--charcoal); }
.why-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-block { padding: 22px; border-radius: 14px; }
.why-block-pain { background: rgba(173,158,143,0.10); border-left: 3px solid var(--coffee); }
.why-block-solution { background: var(--bg-elevated); border-left: 3px solid var(--brown); margin-top: 18px; box-shadow: var(--shadow-paper); }
.why-block .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
  display: block;
}
.why-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.why-block p { font-size: 15.5px; color: var(--charcoal); line-height: 1.5; }
.why-arrow {
  display: flex; justify-content: center; padding: 6px 0;
  color: var(--brown);
}

.why-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 24px;
}
.why-phone {
  width: 280px;
  background: var(--bg-elevated);
  border: 8px solid var(--charcoal);
  border-radius: 38px;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}
.why-phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 20px;
  background: var(--charcoal);
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

/* ---------- INTERACTIVE DEMO ---------- */
.demo { padding: 96px var(--gutter); position: relative; }
.demo-inner { max-width: var(--maxw); margin: 0 auto; }
.demo-stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.demo-controls { display: flex; flex-direction: column; gap: 12px; }
.demo-step {
  padding: 18px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 200ms var(--ease-soft);
  overflow: hidden;
}
.demo-step:hover { border-color: var(--brown); }
.demo-step.active {
  border-color: var(--charcoal);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-paper);
}
.demo-step.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brown);
}
.demo-step .head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.demo-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--brown);
  font-weight: 500;
}
.demo-step h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--charcoal);
}
.demo-step p { font-size: 14px; color: var(--brown); margin-left: 0; }
.demo-step .progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--brown);
  width: 0;
}
.demo-step.active .progress { animation: demo-progress 5000ms linear forwards; }

.demo-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-width: 420px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 30px 60px rgba(52,56,56,0.25);
}
.demo-screen-inner {
  width: 100%; height: 100%;
  background: var(--bg-paper);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.demo-pane {
  position: absolute;
  inset: 0;
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-spring);
}
.demo-pane.active { opacity: 1; transform: translateY(0); }

.demo-pane .pane-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}
.demo-pane .pane-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--brown);
  margin-bottom: 4px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 96px var(--gutter); background: var(--bg-warm); border-top: 1px solid var(--border-soft); }
.testimonials-inner { max-width: var(--maxw); margin: 0 auto; }
/* Carousel — auto-rotating horizontal scroll-snap, replaces the old grid. */
.tquote-carousel { position: relative; }
.tquote-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 20px;
  scrollbar-width: none;
}
.tquote-track::-webkit-scrollbar { display: none; }
.tquote-track > .tquote {
  flex: 0 0 clamp(280px, 80vw, 380px);
  scroll-snap-align: start;
}
.tquote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.tquote-arrow {
  width: 36px; height: 36px;
  box-sizing: border-box;
  padding-bottom: 6px;            /* shifts the grid-centered glyph up ~3px so the ‹/› reads optically centred */
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--charcoal);
  display: grid; place-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  transition: background 150ms var(--ease-soft), transform 150ms var(--ease-soft);
}
.tquote-arrow:hover { background: var(--bg-warm); transform: scale(1.06); }
.tquote-arrow:active { transform: scale(0.96); }
.tquote-dots {
  display: flex;
  gap: 8px;
  padding: 0 8px;
}
.tquote-dot {
  width: 8px; height: 8px;
  border: none; border-radius: 50%;
  background: var(--border-soft);
  cursor: pointer;
  padding: 0;
  transition: background 200ms var(--ease-soft), transform 200ms var(--ease-spring);
}
.tquote-dot.is-active { background: var(--brown); transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .tquote-track { scroll-behavior: auto; }
}
.tquote {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 200ms var(--ease-spring);
}
.tquote:hover { transform: translateY(-3px); }
.tquote .role-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
}
.tquote .role-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brown); }
.tquote .role-tag.student .dot { background: var(--ink); }
.tquote q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 24px;
  flex-grow: 1;
  text-wrap: balance;
  quotes: '“' '”';
}
.tquote .meta {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-faint);
}
.tquote .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brown);
  font-size: 18px;
  border: 1px solid var(--border-soft);
}
.tquote .who { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.tquote .what { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brown); }

/* ---------- JOURNEY ---------- */
.journey { padding: 96px var(--gutter); }
.journey-inner { max-width: var(--maxw); margin: 0 auto; }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.journey-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--coffee) 0, var(--coffee) 4px, transparent 4px, transparent 10px);
  z-index: 0;
}
.journey-item {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px;
}
.journey-year {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--brown);
  margin-bottom: 4px;
}
.journey-item .stage-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
  display: block;
}
.journey-item h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.journey-item ul { display: flex; flex-direction: column; gap: 8px; }
.journey-item li {
  font-size: 14px;
  color: var(--charcoal);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.journey-item li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--brown);
  border-radius: 50%;
}
.journey-item.current { border-color: var(--charcoal); box-shadow: var(--shadow-paper); }
.journey-item.current .journey-year { color: var(--charcoal); }
.journey-item.current::after {
  content: 'NOW';
  position: absolute;
  top: -10px; right: 18px;
  background: var(--yellow);
  border: 1px solid var(--ink-on-yellow);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--ink-on-yellow);
  font-weight: 600;
}

/* ---------- AWARDS / PRESS ---------- */
.awards { padding: 64px var(--gutter); background: var(--bg-paper); border-top: 1px solid var(--border-soft); }
.awards-inner { max-width: var(--maxw); margin: 0 auto; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.award-card {
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.award-card .tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; display: block; }
.award-card h4 { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--charcoal); margin-bottom: 6px; line-height: 1.2; }
.award-card .yr { font-family: var(--font-mono); font-size: 10px; color: var(--brown); letter-spacing: 1.2px; }

/* ---------- INVESTOR PANEL (toggleable) ---------- */
.investor-band {
  padding: 80px var(--gutter);
  background: var(--charcoal);
  color: var(--bg-paper);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .investor-band { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.investor-band .ruled {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 26px, rgba(255,255,255,0.04) 26px, rgba(255,255,255,0.04) 27px);
  pointer-events: none;
}
.investor-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.investor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.investor-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.98;
  color: var(--bg-paper);
  max-width: 720px;
  text-wrap: balance;
}
.investor-head .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--coffee); }
[data-theme="dark"] .investor-head h2 { color: var(--charcoal); }
.investor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(255,255,255,0.15);
}
[data-theme="dark"] .investor-grid { border-color: var(--border-soft); }
.investor-stat {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
}
[data-theme="dark"] .investor-stat { border-color: var(--border-soft); }
.investor-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--coffee);
  display: block;
  margin-bottom: 12px;
}
.investor-stat .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
[data-theme="dark"] .investor-stat .num { color: var(--brown); }
.investor-stat .desc {
  font-size: 13px;
  color: rgba(247,245,241,0.7);
  line-height: 1.4;
}
[data-theme="dark"] .investor-stat .desc { color: var(--brown); }
.investor-cta { margin-top: 32px; display: flex; gap: 14px; }
.investor-cta .btn-yellow { background: var(--yellow); color: var(--ink-on-yellow); border: 1.5px solid var(--yellow); }
.investor-cta .btn-yellow:hover { background: transparent; color: var(--yellow); border-color: var(--yellow); }
[data-theme="dark"] .investor-cta .btn-yellow { color: var(--ink-on-yellow); border-color: var(--ink-on-yellow); }
/* Email-the-founders button — the investor band is dark in BOTH themes,
   so these colors are fixed: default = white stroke + white text;
   hover = white fill + black text. */
.investor-cta .btn-ghost {
  background: transparent;
  color: #F7F5F1;
  border-color: #F7F5F1;
}
.investor-cta .btn-ghost:hover {
  background: #F7F5F1;
  color: #16140F;
  border-color: #F7F5F1;
}

/* ---------- CTA ---------- */
.cta-download { padding: 100px var(--gutter); }
.cta-download-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-download h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 18px;
  text-wrap: balance;
}
.cta-download p { font-size: 17px; color: var(--brown); max-width: 460px; margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: var(--charcoal);
  color: var(--bg-paper);
  border-radius: 14px;
  transition: transform 120ms var(--ease-spring);
}
.appstore-btn:hover { transform: scale(1.03); }
.appstore-btn .sm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.7; }
.appstore-btn .lg { font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
/* app-icon tile under the middle phone */
.cta-appicon { margin-top: 28px; }
.cta-appicon-tile {
  display: grid; place-items: center;
  width: 90px; height: 90px;
  border-radius: 10px;
  background: var(--yellow);
  border: 1px solid var(--ink-on-yellow);
  overflow: hidden;
}
.cta-appicon-tile img { width: 100%; height: 100%; object-fit: cover; }

.cta-phones-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.cta-phone {
  width: 180px;
  aspect-ratio: 9/19.5;
  background: var(--charcoal);
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-elevated);
  flex-shrink: 0;
  transition: transform 400ms var(--ease-spring);
}
.cta-phone:nth-child(1) { transform: translateY(20px) rotate(-3deg); }
.cta-phone:nth-child(2) { transform: translateY(-12px) rotate(0); z-index: 2; }
.cta-phone:nth-child(3) { transform: translateY(20px) rotate(3deg); }
.cta-phone:hover { transform: translateY(-8px) rotate(0); }
.cta-phone-inner {
  width: 100%; height: 100%;
  border-radius: 24px;
  background: var(--bg-paper);
  overflow: hidden;
  padding: 24px 14px 14px;
  display: flex;
  flex-direction: column;
}

/* ---------- FAQ ---------- */
.faq { padding: 96px var(--gutter); background: var(--bg-warm); border-top: 1px solid var(--border-soft); }
.faq-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0;
  text-align: left;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--charcoal);
  transition: color 150ms;
}
.faq-q:hover { color: var(--brown); }
.faq-toggle {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--brown);
  transition: transform 250ms var(--ease-spring);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-soft), padding 350ms var(--ease-soft);
}
.faq-item.open .faq-a {
  padding-top: 14px;
  max-height: 400px;
}
.faq-a p { font-size: 15.5px; color: var(--charcoal); line-height: 1.5; max-width: 640px; }
.faq-a a { color: var(--brown); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 80px var(--gutter) 36px;
  background: var(--bg-paper);
  border-top: 1px solid var(--border-soft);
}
.site-footer-inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.site-footer .footer-brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-brand .lockup { display: flex; align-items: center; gap: 12px; }
.site-footer .footer-brand h4 {
  font-family: 'Neutra Text Alt', 'Neutra Text', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.site-footer .footer-brand p { font-size: 14px; color: var(--brown); max-width: 320px; }
.site-footer .footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}
/* Light-mode yellow highlight on card / block eyebrow labels
   (footer column headings, CTA eyebrow, award tags, why-block labels). */
.site-footer .footer-col h5,
.cta-download-inner > div > .t-eyebrow,
.award-card .tag,
.why-block .label {
  display: inline-block;
  background: var(--yellow);
  padding: 3px 7px;
}
[data-theme="dark"] .site-footer .footer-col h5,
[data-theme="dark"] .cta-download-inner > div > .t-eyebrow,
[data-theme="dark"] .award-card .tag,
[data-theme="dark"] .why-block .label {
  background: transparent;
  padding: 0;
}
/* Light-mode yellow highlight on the Features / Demo / Journey
   section eyebrows. (.section-head is a flex column, so align-self
   shrinks the eyebrow to hug its text.) */
.features .section-head .t-eyebrow,
.demo .section-head .t-eyebrow,
.journey .section-head .t-eyebrow {
  align-self: flex-start;
  background: var(--yellow);
  padding: 3px 7px;
}
[data-theme="dark"] .features .section-head .t-eyebrow,
[data-theme="dark"] .demo .section-head .t-eyebrow,
[data-theme="dark"] .journey .section-head .t-eyebrow {
  background: transparent;
  padding: 0;
}
/* Inline yellow highlight for a phrase within an eyebrow (light mode only). */
.eyebrow-mark {
  background: var(--yellow);
  padding: 2px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[data-theme="dark"] .eyebrow-mark { background: transparent; padding: 0; }
/* "The pain" eyebrow — dark-gray highlight + cream text (overrides the
   yellow .why-block .label highlight; light mode only). */
.why-block-pain .label { background: var(--charcoal); color: var(--bg-paper); }
[data-theme="dark"] .why-block-pain .label { color: var(--brown); }
.site-footer .footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer .footer-col li a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  transition: color 150ms;
}
.site-footer .footer-col li a:hover { color: var(--brown); }
.site-footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-bottom .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brown);
}
.site-footer-bottom .legal { display: flex; gap: 20px; font-family: var(--font-body); font-size: 13px; color: var(--brown); }
.site-footer-bottom .legal a:hover { color: var(--charcoal); }

/* ---------- INK TRAIL ---------- */
#ink-canvas {
  position: fixed; inset: 0;
  z-index: 99;
  pointer-events: none;
  mix-blend-mode: multiply;
}
[data-theme="dark"] #ink-canvas { mix-blend-mode: screen; }

/* ---------- SCROLL ANIM HOOK ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-spring); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- KEYFRAMES ---------- */
@keyframes lr-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--glow-warning); }
  50% { box-shadow: 0 0 0 8px rgba(184,134,11,0.10); }
}
@keyframes lr-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes octo-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}
@keyframes demo-progress {
  to { width: 100%; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .heroA, .heroC, .demo-stage, .cta-download-inner, .why-panel { grid-template-columns: 1fr; gap: 40px; }
  .heroB-split { grid-template-columns: 1fr; }
  .heroB-divider { padding: 18px 0; flex-direction: row; }
  .heroB-divider .line { width: auto; height: 1px; flex-grow: 1; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid::before { display: none; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { top: 8px; }
  .theme-toggle { top: 8px; right: 16px; width: 40px; height: 40px; }
  .nav-inner { padding: 8px 10px 8px 14px; gap: 6px; }
  .nav-links { display: none; }
  .heroA h1 { font-size: clamp(40px, 12vw, 64px); }
  .features-grid, .investor-grid, .awards-grid { grid-template-columns: 1fr; }
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  /* Real width reduction (not scale) so the row no longer pushes the
     page wider than the viewport on mobile. */
  .cta-phones { gap: 10px; transform: none; }
  .cta-phone { width: 96px; border-radius: 20px; padding: 6px; }
  .cta-phone-inner { border-radius: 14px; padding: 14px 8px 8px; }
  .cta-phone:nth-child(1),
  .cta-phone:nth-child(2),
  .cta-phone:nth-child(3) { transform: none; }
  .heroA-margin-note { display: none; }
}

/* ---------- EXPLORE — interactive role-switcher stage ---------- */
.explore {
  padding: 96px var(--gutter) 100px;
  background: var(--bg-paper);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.explore-inner { max-width: var(--maxw); margin: 0 auto; }

/* --- The big 3-segment toggle --- */
.explore-toggle {
  display: inline-flex;
  margin: 0 auto 100px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-paper);
  gap: 4px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.explore-toggle-seg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: background 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
              color 200ms var(--ease-soft),
              transform 200ms var(--ease-soft);
}
.explore-toggle-seg:hover { background: var(--bg-warm); }
.explore-toggle-seg .seg-icon svg { width: 18px; height: 18px; display: block; }
.explore-toggle-seg .seg-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  color: var(--brown);
}
.explore-toggle-seg.is-active {
  background: var(--yellow);
  color: var(--ink-on-yellow);
  transform: scale(1.02);
}
.explore-toggle-seg.is-active .seg-amp { color: var(--ink-on-yellow); }

/* --- The stage that swaps between states --- */
/* Grid stack: all three states share the same grid cell, so the cell
   auto-sizes to the tallest state (Together). Inactive states stay in
   the same cell but fade out — content of every state stays inside the
   stage's box, so the section's padding-bottom is the only thing below
   the bullets. */
.explore-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  scroll-margin-top: 100px;
}
.explore-state {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 280ms var(--ease-soft),
              transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.explore-state.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* --- Side states (teacher / student) --- */
.explore-side {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 56px;
  align-items: start;
}
.explore-side.is-reversed { grid-template-columns: 1fr minmax(260px, 320px); }
.explore-side .explore-text { display: flex; flex-direction: column; gap: 16px; }

/* --- Together state --- */
.explore-together { display: flex; flex-direction: column; }
.explore-bridge {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr minmax(240px, 300px);
  gap: 12px;
  align-items: stretch;
  min-height: 520px;
}
.explore-particles-wrap { position: relative; height: 100%; min-height: 460px; }
.explore-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bridge-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--brown);
  text-align: center;
}
.explore-connect-head { text-align: center; margin: 56px 0 14px; }
.explore-connect-head .role-meta { display: inline-block; }
.explore-connect-bullets {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px 32px;
  max-width: 1100px;
  margin: 14px auto 0 !important;
}

/* --- Role-meta + headings shared --- */
.explore .role-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--charcoal);
  align-self: flex-start;
  background: var(--yellow);
  padding: 3px 7px;
}
[data-theme="dark"] .explore .role-meta {
  background: transparent;
  color: var(--brown);
  padding: 0;
}
.explore-text h3,
.explore-connect-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}

/* --- Bullets --- */
.explore-bullets {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.explore-bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(8px);
  animation: explore-stagger-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.explore-state:not(.is-active) .explore-bullets li { animation: none; opacity: 0; }
.explore-bullets li strong { font-weight: 600; color: var(--charcoal); }
.explore-bullets .item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--brown);
}
@keyframes explore-stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Phone frames --- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19;
  background: var(--charcoal);
  border-radius: 38px;
  padding: 9px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  animation: explore-float 6s ease-in-out infinite;
}
.phone-frame.is-teacher { animation-delay: 0s; }
.phone-frame.is-student { animation-delay: 1.2s; }
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 18px;
  background: var(--charcoal);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg-paper);
  border-radius: 30px;
  overflow: hidden;
  padding: 26px 14px 14px;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-dots { display: flex; gap: 6px; margin-top: 14px; }
.phone-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-soft);
  transition: background 200ms, transform 200ms;
}
.phone-dots i.is-active { background: var(--brown); transform: scale(1.3); }
@keyframes explore-float {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(4px); }
}

/* --- Phone screens: shared bits --- */
.tv-screen, .sv-screen {
  display: flex; flex-direction: column;
  gap: 8px;
  height: 100%;
  font-family: var(--font-body);
  color: var(--charcoal);
}
.tv-eyebrow, .sv-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--brown);
  text-transform: uppercase;
}
.tv-title, .sv-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.tv-row-t, .sv-rank-name { font-size: 11px; font-weight: 600; color: var(--charcoal); }
.tv-row-s { font-size: 9px; color: var(--brown); font-family: var(--font-mono); letter-spacing: 0.6px; text-transform: uppercase; }
.tv-row-time { font-family: var(--font-mono); font-size: 10px; color: var(--brown); letter-spacing: 1.2px; }

/* --- Teacher home --- */
.tv-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.tv-greeting em { font-style: italic; color: var(--brown); }
.tv-hero {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.tv-hero-ring { position: relative; width: 50px; height: 50px; }
.tv-hero-ring svg { width: 100%; height: 100%; }
.tv-hero-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--charcoal);
}
.tv-hero-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.2px; color: var(--brown); }
.tv-hero-sub { font-size: 11px; color: var(--charcoal); margin-top: 2px; }
.tv-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.tv-stat-grid > div {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 6px 8px;
}
.tv-stat-n { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--charcoal); }
.tv-stat-l { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px; color: var(--brown); text-transform: uppercase; }
.tv-list-head {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.4px; color: var(--brown);
  text-transform: uppercase; margin-top: 4px;
}
.tv-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border-radius: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
}

/* --- Teacher schedule --- */
.tv-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px; }
.tv-day {
  text-align: center; padding: 5px 0; border-radius: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px; color: var(--charcoal);
}
.tv-day-n { font-family: var(--font-display); font-style: italic; font-size: 13px; margin-top: 1px; }
.tv-day.is-today { background: var(--charcoal); color: var(--bg-paper); border-color: var(--charcoal); }
.tv-day.is-today .tv-day-n { color: var(--bg-paper); }
.tv-lesson {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center;
  padding: 8px; border-radius: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brown);
}
.tv-lesson.is-live { border-left-color: var(--warning); }
.tv-tag {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 1px;
  padding: 2px 5px; border-radius: 99px;
  background: var(--bg-warm); color: var(--brown);
}
.tv-tag.is-pending { background: rgba(184,134,11,0.15); color: var(--warning); }
.tv-tag.is-live { background: var(--warning); color: var(--bg-paper); }

/* --- Teacher review --- */
.tv-review-count {
  font-family: var(--font-display); font-style: italic;
  font-size: 38px; color: var(--charcoal); line-height: 1; margin: 6px 0 2px;
}
.tv-review-count span { font-size: 18px; color: var(--brown); }
.tv-sub-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brown);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.tv-sub-head { display: flex; justify-content: space-between; align-items: baseline; }
.tv-sub-piece { font-size: 10px; color: var(--brown); font-style: italic; }
.tv-mini-wave { display: flex; align-items: flex-end; gap: 1px; height: 26px; }
.tv-mini-wave i { flex: 1; background: var(--brown); border-radius: 1px; opacity: 0.7; }
.tv-actions { display: flex; gap: 6px; margin-top: auto; }
.tv-pill {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1px; padding: 8px; border-radius: 99px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--charcoal);
}
.tv-pill.is-primary { background: var(--charcoal); color: var(--bg-paper); border-color: var(--charcoal); }

/* --- Student practice --- */
.sv-guide {
  display: flex; flex-direction: column; gap: 4px;
  margin: 4px 0 6px;
}
.sv-guide > div {
  display: grid; grid-template-columns: 48px 1fr; gap: 6px; align-items: baseline;
  padding: 6px 8px; border-radius: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
}
.sv-guide span { font-family: var(--font-mono); font-size: 7px; letter-spacing: 1.2px; color: var(--brown); }
.sv-guide b { font-size: 10px; font-weight: 600; color: var(--charcoal); }
.sv-timer {
  font-family: var(--font-display); font-style: italic;
  font-size: 56px; text-align: center; color: var(--charcoal); line-height: 1; margin-top: 4px;
}
.sv-status {
  text-align: center;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; color: var(--brown);
  margin-bottom: 6px;
}
.sv-buttons { display: flex; gap: 6px; margin-bottom: 6px; }
.sv-btn {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1px; padding: 10px; border-radius: 99px;
  background: var(--charcoal); color: var(--bg-paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.sv-btn.is-rec { background: #635F88; color: var(--bg-paper); }
.sv-btn.is-rec i {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg-paper);
}
.sv-tools { display: flex; gap: 4px; margin-top: auto; }
.sv-tools span {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 8px;
  padding: 5px; border-radius: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--brown);
  letter-spacing: 0.8px;
}

/* --- Student playback --- */
.sv-wave { display: flex; align-items: center; gap: 2px; height: 60px; margin: 14px 0 6px; justify-content: center; }
.sv-wave i {
  display: inline-block; width: 3px; height: 6px;
  background: #635F88; border-radius: 1.5px;
  animation: sv-bounce 0.9s ease-in-out infinite alternate;
}
@keyframes sv-bounce {
  from { height: 5px; opacity: 0.6; }
  to   { height: 40px; opacity: 1; }
}
.sv-times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; color: var(--brown); letter-spacing: 1px;
  margin-bottom: 6px;
}
.sv-play {
  margin: 6px auto 8px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--charcoal); color: var(--bg-paper);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: var(--shadow-paper);
}
.sv-play span { margin-left: 3px; }
.sv-row-actions { display: flex; gap: 4px; margin-top: auto; }
.sv-row-actions span {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 8px;
  padding: 6px; border-radius: 99px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--charcoal);
  letter-spacing: 0.8px;
}
.sv-row-actions .is-primary { background: var(--charcoal); color: var(--bg-paper); border-color: var(--charcoal); }

/* --- Student leaderboard --- */
.sv-tabs { display: flex; gap: 4px; margin: 6px 0 8px; }
.sv-tabs span {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 8px;
  padding: 5px; border-radius: 99px; color: var(--brown);
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
}
.sv-tabs .is-active { background: var(--yellow); color: var(--ink-on-yellow); border-color: var(--yellow); }
.sv-rank {
  display: grid; grid-template-columns: 18px 24px 1fr auto;
  gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
}
.sv-rank.is-top { border-left: 3px solid var(--yellow); }
.sv-rank-n { font-family: var(--font-mono); font-size: 10px; color: var(--brown); }
.sv-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brown); color: var(--bg-paper);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9px;
}
.sv-rank-stat { font-family: var(--font-mono); font-size: 10px; color: var(--brown); letter-spacing: 1px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .explore-stage { min-height: 0; }
  .explore-state { position: relative; inset: auto; }
  .explore-state:not(.is-active) { display: none; }
  .explore-side, .explore-side.is-reversed {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .explore-side .phone-wrap { order: -1; }
  .explore-bridge {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .explore-particles-wrap { min-height: 80px; }
  .explore-particles { display: none; }
  .explore-connect-bullets { grid-template-columns: 1fr !important; }
  .explore-toggle { width: auto; }
  .explore-toggle-seg { padding: 10px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame, .sv-wave i { animation: none !important; }
  .explore-state { transition: opacity 150ms linear; transform: none !important; }
  .explore-bullets li { animation: none; opacity: 1; transform: none; }
  .explore-particles { display: none; }
}
