/* ============================================================
   SensFit · Design System
   Tokens are OKLCH; light + dark; spacing in 4px multiples;
   fluid type with clamp(); content-derived palette
   (matte black + engineering titanium + biometric cyan).
   ============================================================ */

:root {
  /* ─── COLOR — DARK (default) ─────────────────────────────── */
  --bg:            oklch(13% 0.005 250);  /* matte near-black  #0A0A0B */
  --surface:      oklch(16.5% 0.006 250); /* card               #111214 */
  --surface-alt:  oklch(20% 0.008 250);   /* raised             #161719 */
  --border:       oklch(28% 0.008 250);   /* dividers           #2A2C2F */
  --border-strong:oklch(38% 0.01 250);

  --text:         oklch(96% 0.005 250);   /* clinical white     #F5F5F7 */
  --text-muted:   oklch(70% 0.008 250);   /* secondary          #A1A1A6 */
  --text-faint:   oklch(52% 0.008 250);   /* tertiary           #7A7A82 */

  /* Engineering Titanium — primary accent (warm metal) */
  --primary:      oklch(74% 0.025 240);   /* #8C9BAB titanium   */
  --primary-hover:oklch(82% 0.025 240);

  /* Biometric Cyan — signal accent (data layer) */
  --signal:       oklch(82% 0.13 195);    /* #00D4C8 cyan       */
  --signal-deep:  oklch(68% 0.14 195);

  --success:      oklch(72% 0.15 150);
  --warning:      oklch(74% 0.14 70);
  --error:        oklch(66% 0.18 25);

  /* ─── TYPE — fluid scale (clamp) ─────────────────────────── */
  --font-sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --text-sm:   clamp(0.84rem, 0.80rem + 0.18vw, 0.94rem);
  --text-base: clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --text-lg:   clamp(1.12rem, 1.05rem + 0.35vw, 1.30rem);
  --text-xl:   clamp(1.35rem, 1.20rem + 0.65vw, 1.65rem);
  --text-2xl:  clamp(1.70rem, 1.40rem + 1.30vw, 2.30rem);
  --text-3xl:  clamp(2.10rem, 1.65rem + 2.00vw, 3.20rem);
  --text-hero: clamp(2.80rem, 1.80rem + 4.60vw, 6.00rem);

  --leading-tight: 1.05;
  --leading-snug:  1.20;
  --leading-body:  1.60;

  /* ─── SPACE — 4px scale ──────────────────────────────────── */
  --s-1:  4px;
  --s-2:  8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ─── RADII / SHADOWS ────────────────────────────────────── */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 0 oklch(100% 0 0 / 0.04) inset, 0 8px 30px oklch(0% 0 0 / 0.35);
  --shadow-glow: 0 0 0 1px oklch(82% 0.13 195 / 0.25), 0 0 40px oklch(82% 0.13 195 / 0.15);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms;
  --t-med:  280ms;
}

/* ─── LIGHT MODE ─────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:            oklch(97% 0.003 250);  /* paper-warm white   */
  --surface:       oklch(99% 0.002 250);
  --surface-alt:   oklch(95% 0.004 250);
  --border:        oklch(86% 0.005 250);
  --border-strong: oklch(72% 0.008 250);

  --text:          oklch(18% 0.01 250);
  --text-muted:    oklch(45% 0.008 250);
  --text-faint:    oklch(60% 0.008 250);

  --primary:       oklch(38% 0.04 240);  /* darkened titanium  */
  --primary-hover: oklch(28% 0.04 240);

  --signal:        oklch(55% 0.16 195);   /* deeper cyan on white */
  --signal-deep:   oklch(45% 0.16 195);

  --shadow-soft: 0 1px 2px oklch(0% 0 0 / 0.04), 0 8px 24px oklch(0% 0 0 / 0.06);
  --shadow-glow: 0 0 0 1px oklch(55% 0.16 195 / 0.30), 0 0 30px oklch(55% 0.16 195 / 0.15);
}

/* ============================================================ */
/* RESET + BASE                                                  */
/* ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--signal); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute; top: -100px; left: var(--s-4);
  background: var(--surface); color: var(--text);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--border);
  z-index: 1000;
}
.skip-link:focus { top: var(--s-4); }

/* ============================================================ */
/* LAYOUT                                                        */
/* ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(var(--s-8), 12vw, var(--s-10)); position: relative; }
.section--problem { background: linear-gradient(180deg, transparent, oklch(from var(--bg) calc(l * 0.92) c h) 30%, transparent); }

.two-col {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 8vw, 120px); }
  .two-col--reverse > *:first-child { order: 2; }
}

.section__head { margin-bottom: var(--s-7); max-width: 920px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 var(--s-4);
}

/* ============================================================ */
/* TYPOGRAPHY                                                    */
/* ============================================================ */
.h-display {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); font-weight: 700; margin: 0 0 var(--s-3); letter-spacing: -0.015em; }
h4 { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--s-2); }
p  { margin: 0 0 var(--s-4); color: var(--text-muted); }
.lede { font-size: var(--text-lg); color: var(--text); max-width: 60ch; line-height: 1.5; }
.lede.center { text-align: center; }
.muted { color: var(--text-muted); }
.mono  { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ============================================================ */
/* NAV                                                           */
/* ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--bg) l c h / 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.6);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 64px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--text); font-weight: 700; letter-spacing: -0.02em;
  font-size: var(--text-lg);
}
.logo-mark { width: 36px; height: 22px; color: var(--signal); }
.logo-word { font-family: var(--font-sans); }

.nav__links { display: none; margin-inline: auto; gap: var(--s-6); }
.nav__links a {
  font-size: var(--text-sm); color: var(--text-muted);
  position: relative; padding-block: var(--s-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__controls { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav__cta { display: none; }
.nav__burger { display: inline-flex; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__controls { margin-left: 0; }
}

.nav.is-open .nav__links {
  display: flex; position: absolute; top: 64px; left: 0; right: 0;
  flex-direction: column; gap: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: var(--s-4) var(--gutter);
}
.nav.is-open .nav__links a { padding-block: var(--s-3); }

/* Chips & buttons */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 36px; min-width: 36px;
  padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip--icon { width: 36px; padding: 0; }
.chip--icon svg { width: 16px; height: 16px; }

.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-md);
  font-weight: 500; font-size: var(--text-sm);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover { background: var(--signal); color: var(--bg); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--lg { height: 52px; padding: 0 var(--s-6); font-size: var(--text-base); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--signal);
  font-weight: 500; font-size: var(--text-sm);
  border-bottom: 1px solid oklch(from var(--signal) l c h / 0.4);
  padding-bottom: 2px;
  transition: gap var(--t-fast) var(--ease), border-color var(--t-fast);
}
.link-arrow:hover { gap: var(--s-3); border-bottom-color: var(--signal); }

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(80px, 14vw, 200px) clamp(60px, 10vw, 140px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  color: var(--signal);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 30%, transparent 90%);
}
.emg-bg { width: 100%; height: 100%; }
.emg-path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: drawEMG 6s var(--ease) forwards; }
.emg-path--2 { animation-delay: 0.4s; }
.emg-path--3 { animation-delay: 0.8s; }
@keyframes drawEMG { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; max-width: 980px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px var(--s-3);
  margin-bottom: var(--s-6);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.dot--pulse { box-shadow: 0 0 0 0 oklch(from var(--signal) l c h / 0.4); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(from var(--signal) l c h / 0.6); }
  70%  { box-shadow: 0 0 0 12px oklch(from var(--signal) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--signal) l c h / 0); }
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 var(--s-6);
  text-wrap: balance;
}
.hero__title-1 { display: block; }
.hero__title-2 { display: block; color: var(--text-muted); font-weight: 500; }
.hero__title-2 em { font-style: normal; color: var(--signal); font-weight: 900; }

.hero__lede {
  font-size: var(--text-lg);
  color: var(--text);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: var(--s-7);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); }

.hero__meta {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
@media (min-width: 640px) { .hero__meta { grid-template-columns: repeat(3, 1fr); } }
.hero__meta li { display: flex; flex-direction: column; gap: 2px; }
.hero__meta strong {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-xl); color: var(--text);
  letter-spacing: -0.02em;
}
.hero__meta span { color: var(--text-muted); font-size: var(--text-sm); }

/* ============================================================ */
/* PROBLEM / pullquote                                          */
/* ============================================================ */
.pullquote {
  margin: var(--s-7) 0 0;
  padding: var(--s-5) var(--s-6);
  border-left: 2px solid var(--signal);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pullquote p {
  font-size: var(--text-xl); color: var(--text);
  margin: 0; font-style: italic; line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ============================================================ */
/* PILLARS (asymmetric, intentionally NOT uniform 3-col)         */
/* ============================================================ */
.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: 1.1fr 0.95fr 1fr;
    align-items: stretch;
  }
  .pillar--01 { transform: translateY(0); }
  .pillar--02 { transform: translateY(28px); }
  .pillar--03 { transform: translateY(-12px); }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative; isolation: isolate;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.pillar:hover { border-color: var(--signal); }
.pillar__num {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.18em; color: var(--text-faint);
  margin-bottom: var(--s-4);
}
.pillar__viz {
  height: 110px; margin-bottom: var(--s-5); color: var(--text-muted);
}
.pillar__viz svg { height: 100%; width: 100%; }
.pillar__title { font-size: var(--text-xl); }
.pillar__body { color: var(--text-muted); margin-bottom: var(--s-4); }
.pillar__meta { font-size: var(--text-xs); color: var(--signal); letter-spacing: 0.08em; }

/* ============================================================ */
/* PRODUCT                                                       */
/* ============================================================ */
.garment-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  color: var(--text-muted);
  display: grid; place-items: center;
  position: relative;
}
.garment-viz::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, oklch(from var(--signal) l c h / 0.10), transparent 60%);
  pointer-events: none; border-radius: inherit;
}
.garment-viz svg { width: 100%; max-width: 320px; height: auto; }
.sensor-nodes circle { animation: nodePulse 3.5s var(--ease) infinite; }
.sensor-nodes circle:nth-of-type(2n) { animation-delay: 0.4s; }
.sensor-nodes circle:nth-of-type(3n) { animation-delay: 0.8s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.specs {
  display: grid; gap: var(--s-4) var(--s-6);
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
  margin: var(--s-6) 0 var(--s-5);
}
@media (min-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs > div { display: flex; flex-direction: column; gap: 2px; }
.specs dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.specs dd { margin: 0; color: var(--text); font-size: var(--text-sm); }

.honest {
  font-size: var(--text-sm);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  color: var(--text-muted);
}
.honest strong { color: var(--text); }

/* ============================================================ */
/* COMPARISON TABLE                                              */
/* ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.cmp-table {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.cmp-table th,
.cmp-table td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500;
  background: var(--surface);
}
.cmp-table tbody th {
  font-weight: 500; color: var(--text);
  background: oklch(from var(--surface) calc(l * 0.92) c h);
  width: 200px;
}
.cmp-table td { color: var(--text-muted); }
.cmp-table .is-us {
  background: oklch(from var(--signal) l c h / 0.07);
  color: var(--text);
  border-left: 1px solid oklch(from var(--signal) l c h / 0.3);
}
.cmp-table thead .is-us { color: var(--signal); }
.mark { font-family: var(--font-mono); font-size: 14px; }
.mark--yes { color: var(--signal); }
.mark--no  { color: var(--text-faint); }

/* ============================================================ */
/* AUDIENCE — NOT a uniform 3-col grid; 4 cards in 2×2 / staggered */
/* ============================================================ */
.audience {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .audience {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1080px) {
  .audience {
    grid-template-columns: 1.15fr 0.85fr 0.85fr 1.15fr;
    grid-template-rows: auto;
  }
  .aud-card--athlete  { grid-column: 1 / span 2; }
  .aud-card--clinic   { grid-column: 3; }
  .aud-card--research { grid-column: 4; }
  .aud-card--investor { grid-column: 1 / span 4; }
}

.aud-card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color var(--t-med), transform var(--t-med);
  overflow: hidden;
}
.aud-card:hover { border-color: var(--signal); }
.aud-card::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, oklch(from var(--signal) l c h / 0.12), transparent 70%);
  pointer-events: none;
}
.aud-card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--signal);
  margin-bottom: var(--s-2);
}
.aud-card__icon svg { width: 22px; height: 22px; }
.aud-card h3 { margin-bottom: var(--s-1); }
.aud-card p { flex: 1; }
.aud-card .link-arrow { margin-top: auto; }

/* ============================================================ */
/* SCIENCE                                                       */
/* ============================================================ */
.papers {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-8);
}
@media (min-width: 720px) { .papers { grid-template-columns: 1fr 1fr; } }
.paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--t-med);
}
.paper:hover { border-color: var(--signal); }
.paper__tag {
  font-size: var(--text-xs); color: var(--signal);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.paper h3 { font-size: var(--text-lg); }
.paper p { font-size: var(--text-sm); }

.roadmap {
  border-top: 1px solid var(--border);
  padding-top: var(--s-6);
}
.roadmap__title { font-size: var(--text-xl); margin-bottom: var(--s-5); }
.roadmap__steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .roadmap__steps { grid-template-columns: repeat(3, 1fr); } }
.roadmap__steps li {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: oklch(from var(--surface) calc(l * 0.96) c h);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.roadmap__steps li .mono { font-size: var(--text-xs); letter-spacing: 0.15em; color: var(--signal); text-transform: uppercase; }
.roadmap__steps li strong { font-size: var(--text-base); color: var(--text); }
.roadmap__steps li span:not(.mono) { color: var(--text-muted); font-size: var(--text-sm); }

/* ============================================================ */
/* FOUNDER                                                        */
/* ============================================================ */
.founder__story p { color: var(--text-muted); }
.founder__phase {
  color: var(--signal); font-size: var(--text-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: var(--s-5) 0 var(--s-2);
}
.founder__story > .founder__phase:first-child { margin-top: 0; }
.founder__mission {
  color: var(--text); font-size: var(--text-lg);
  font-style: italic;
  border-left: 2px solid var(--signal);
  padding-left: var(--s-4);
  margin-top: var(--s-2);
}

/* ============================================================ */
/* TRUST — fears                                                  */
/* ============================================================ */
.fears {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .fears { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .fears { grid-template-columns: 1fr 1fr 1fr; } }
.fears li {
  display: flex; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.fears__rank {
  font-size: var(--text-lg); color: var(--signal); flex-shrink: 0;
  width: 32px;
}
.fears li strong { display: block; color: var(--text); margin-bottom: 4px; }
.fears li p { font-size: var(--text-sm); margin: 0; }

/* ============================================================ */
/* APPLY                                                          */
/* ============================================================ */
.apply-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .apply-grid { grid-template-columns: 240px 1fr; } }

.apply-tabs {
  display: flex; flex-direction: column; gap: var(--s-2);
}
@media (max-width: 879px) {
  .apply-tabs { flex-direction: row; flex-wrap: wrap; }
}
.apply-tab {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
  flex: 1;
}
.apply-tab:hover { color: var(--text); border-color: var(--border-strong); }
.apply-tab.is-active {
  border-color: var(--signal);
  color: var(--text);
  background: oklch(from var(--signal) l c h / 0.08);
}
.apply-tab__num { font-size: var(--text-xs); color: var(--signal); letter-spacing: 0.12em; }
.apply-tab__label { font-weight: 500; }

.apply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: var(--s-4);
  position: relative;
}
.apply-panel { display: none; }
.apply-panel.is-active { display: block; margin-bottom: var(--s-3); }
.apply-panel h3 { font-size: var(--text-xl); margin-bottom: var(--s-2); }
.apply-panel p { font-size: var(--text-sm); margin: 0; }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-faint);
}
.field input {
  height: 48px;
  padding: 0 var(--s-4);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit; font-size: var(--text-base);
  transition: border-color var(--t-fast);
}
.field input:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 3px oklch(from var(--signal) l c h / 0.15); }

.form-meta {
  font-size: var(--text-xs); color: var(--text-faint);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: var(--s-3); margin: 0;
}
.form-status {
  margin: calc(var(--s-2) * -1) 0 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: oklch(from var(--signal) l c h / 0.08);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.form-status[hidden] { display: none; }
.form-status.is-error {
  background: oklch(from var(--error) l c h / 0.10);
  border-color: oklch(from var(--error) l c h / 0.45);
  color: var(--text);
}
.apply-form.is-submitting {
  cursor: progress;
}
.apply-form.is-submitting input,
.apply-form.is-submitting button {
  opacity: 0.72;
}

/* Success state — designed, not empty */
.apply-success {
  position: absolute; inset: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: var(--s-4);
}
.apply-success[hidden] { display: none; }
.apply-success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: oklch(from var(--signal) l c h / 0.08);
  display: grid; place-items: center;
  color: var(--text-muted);
}
.apply-success__icon svg { width: 40px; height: 40px; }
.apply-success h4 { font-size: var(--text-xl); margin: 0; }
.apply-success p { max-width: 50ch; margin: 0; }

.beta-progress {
  margin-top: var(--s-7);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.beta-progress__bar {
  width: min(420px, 90%);
  height: 6px; background: var(--surface-alt);
  border-radius: var(--r-pill); overflow: hidden;
  border: 1px solid var(--border);
}
.beta-progress__bar span {
  display: block; height: 100%; width: var(--p, 50%);
  background: linear-gradient(90deg, var(--signal-deep), var(--signal));
  border-radius: inherit;
  animation: barRise 1.6s var(--ease);
}
@keyframes barRise { from { width: 0; } }
.beta-progress p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.beta-progress strong { color: var(--text); font-weight: 500; }

/* ============================================================ */
/* FINAL CTA                                                      */
/* ============================================================ */
.section--final {
  background:
    radial-gradient(ellipse at 50% 0%, oklch(from var(--signal) l c h / 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.final { text-align: center; max-width: 780px; margin-inline: auto; }
.final .h-display { font-size: var(--text-3xl); }

/* ============================================================ */
/* FOOTER                                                         */
/* ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-8) var(--s-5);
  background: var(--bg);
}
.footer__inner {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 1.1fr 2fr; }
}
.footer__brand p { font-size: var(--text-sm); }
.footer__nav {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer__nav > div { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__nav p { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 var(--s-2); }
.footer__nav a { color: var(--text-muted); font-size: var(--text-sm); transition: color var(--t-fast); }
.footer__nav a:hover { color: var(--text); }

.footer__base {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: 11px;
}

/* ============================================================ */
/* SCROLL-IN ANIMATIONS — opt-in via .js-reveal on <html>        */
/* ============================================================ */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ============================================================ */
/* SMALL SCREENS — tighten paddings                              */
/* ============================================================ */
@media (max-width: 540px) {
  .hero { padding-block: 80px 60px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .pillar--02, .pillar--03 { transform: none; }
  .pullquote { padding: var(--s-4); }
  .pullquote p { font-size: var(--text-lg); }
  .cmp-table th, .cmp-table td { padding: var(--s-3); }
  .nav__logo { font-size: var(--text-base); }
  .logo-mark { width: 30px; height: 18px; }
}
