/* InnoPair Health — pitch landing page (index.html)
   Soft sky gradient, faint plus-grid, glass cards. Tokens come from design-system.css. */

:root {
  --cyan-100: #cffafe;
  --page: min(1180px, calc(100% - 2.5rem));
}

.landing-body {
  position: relative;
  overflow-x: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 20v8M20 24h8' stroke='%2393c5fd' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f5faff 0%, #f8fafc 40%, #f8fafc 100%);
}
.bg-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 1400px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 50% 18%, rgb(56 189 248 / 0.22), transparent 70%),
    radial-gradient(30% 25% at 18% 30%, rgb(37 99 235 / 0.10), transparent 70%),
    radial-gradient(30% 25% at 85% 34%, rgb(34 211 238 / 0.14), transparent 70%);
}
.landing-body main { position: relative; }



/* ---------- Shared pieces ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-400), var(--primary));
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgb(37 99 235 / 0.22);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.3); }

.pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--ink-pill);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.18);
  transition: background-color 150ms ease, transform 150ms ease;
}
.pill-dark:hover { background: var(--slate-900); color: var(--white); transform: translateY(-1px); }
.pill-lg { min-height: 3.25rem; padding: 0 1.75rem; font-size: var(--text-base); }
.pill-arrow {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ink-pill);
  color: var(--white);
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.18);
  transition: transform 150ms ease, background-color 150ms ease;
}
.pill-arrow:hover { color: var(--white); background: var(--primary); transform: translateX(3px); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.section-intro { max-width: 40rem; margin: 0 auto var(--space-12); text-align: center; }
.section-intro h2 { margin: var(--space-4) 0 var(--space-3); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.section-intro p:not(.tag) { color: var(--text-muted); font-size: var(--text-lg); }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: var(--space-4); z-index: 50; width: var(--page); margin: var(--space-4) auto 0; }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-pill .brand-mark { width: 28px; height: 28px; }
.nav-pill .brand-bar-v { height: 14px; top: 7px; left: 12px; }
.nav-pill .brand-bar-h { width: 14px; top: 12px; left: 7px; }
.nav-links { display: flex; gap: var(--space-1); }
.nav-links a,
.nav-signin {
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-signin:hover { background: var(--sky-50); color: var(--primary-hover); }
.nav-actions { display: flex; align-items: center; gap: var(--space-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) 0 0;
  text-align: center;
}
.hero h1 {
  max-width: 15ch;
  margin: var(--space-6) auto var(--space-5);
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero h1 em { font-size: 1.08em; }
.hero-lede { max-width: 40rem; margin: 0 auto; color: var(--text-body); font-size: var(--text-lg); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.hero-secondary {
  margin-left: var(--space-4);
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}
.hero-secondary:hover { color: var(--primary); border-color: var(--primary); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
  animation: bob 6s ease-in-out infinite;
}
.float-chip b { display: block; color: var(--text); font-size: var(--text-xs); line-height: 1.3; }
.float-chip small { display: block; color: var(--text-muted); font-size: 0.6875rem; line-height: 1.3; }
.chip-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, var(--primary));
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
}
.chip-avatar.teal { background: linear-gradient(135deg, #5eead4, var(--success)); }
.chip-avatar.amber { background: linear-gradient(135deg, #fcd34d, #d97706); }
.cursor {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid var(--ink-pill);
}
.chip-a { top: 9.5rem; left: 0; }
.chip-a .cursor { right: -14px; bottom: -6px; transform: rotate(-35deg); }
.chip-b { top: 12rem; right: 0; animation-delay: -2s; }
.chip-b .cursor { left: -14px; bottom: -6px; transform: rotate(35deg); }
.chip-c { top: 23rem; left: 4%; animation-delay: -4s; }
.chip-c .cursor { right: -12px; top: -6px; transform: rotate(-100deg); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Product mockup */
.mockup {
  position: relative;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.5);
  box-shadow: 0 30px 80px rgb(37 99 235 / 0.14), 0 2px 6px rgb(15 23 42 / 0.04);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-align: left;
}
.mockup::after {
  content: "";
  position: absolute;
  inset: auto 8% -40px;
  height: 80px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(56 189 248 / 0.35), transparent);
  filter: blur(20px);
}
.mock-window { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--white); }
.mock-top {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
}
.mock-brand { display: flex; align-items: center; gap: var(--space-2); color: var(--text); font-weight: 700; }
.brand-mark.sm { width: 20px; height: 20px; border-radius: 6px; }
.brand-mark.sm .brand-bar-v { width: 3px; height: 10px; top: 5px; left: 8.5px; }
.brand-mark.sm .brand-bar-h { width: 10px; height: 3px; top: 8.5px; left: 5px; }
.mock-tabs { display: flex; gap: var(--space-2); color: var(--text-muted); }
.mock-tabs > * { padding: 0.25rem 0.75rem; border-radius: 999px; }
.mock-tabs b { background: linear-gradient(90deg, var(--sky-400), var(--primary)); color: var(--white); font-weight: 600; }
.mock-search { margin-left: auto; min-width: 200px; padding: 0.35rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; color: var(--slate-400); }

.mock-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-areas: "hello ring alert" "list list checks";
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(180deg, var(--white), var(--slate-50));
}
.mock-body > * { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); padding: var(--space-4) var(--space-5); }
.mock-kicker { color: var(--text-muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.mock-kicker.light { color: rgb(255 255 255 / 0.8); }
.mock-hello { grid-area: hello; }
.mock-hello h2 { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-xl); }
.mock-hello > p:not(.mock-kicker) { color: var(--text-muted); font-size: var(--text-xs); }
.mock-record { display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-3); margin-top: var(--space-4); }
.mock-record span { padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--sky-50); }
.mock-record small { display: block; color: var(--text-muted); font-size: 0.6875rem; }
.mock-record b { color: var(--text); font-size: var(--text-sm); }

.mock-ring-card { grid-area: ring; text-align: center; }
.ring { position: relative; width: 112px; height: 112px; margin: var(--space-2) auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--sky-100); }
.ring-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1) 0.3s;
}
.mockup.in .ring-fill { stroke-dashoffset: calc(314 - 314 * var(--p) / 100); }
.ring > span { position: absolute; inset: 0; display: grid; place-content: center; }
.ring b { color: var(--text); font-size: var(--text-xl); line-height: 1; }
.ring small { color: var(--text-muted); font-size: 0.6875rem; font-weight: 600; }
.mock-note { color: var(--text-muted); font-size: var(--text-xs); }

.mock-alert {
  grid-area: alert;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 0 !important;
  background: linear-gradient(140deg, var(--sky-400), var(--primary) 70%) !important;
  color: var(--white);
}
.mock-alert b { margin-top: var(--space-3); font-size: var(--text-lg); }
.mock-alert small { color: rgb(255 255 255 / 0.85); font-size: var(--text-xs); }
.mock-alert-btn { align-self: flex-start; margin-top: auto; padding: 0.35rem 0.9rem; border-radius: 999px; background: rgb(255 255 255 / 0.22); font-size: var(--text-xs); font-weight: 600; }

.mock-list { grid-area: list; margin: 0; padding: var(--space-2) var(--space-5) !important; list-style: none; }
.mock-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; font-size: var(--text-sm); color: var(--text-body); }
.mock-list li + li { border-top: 1px solid var(--border); }
.mock-list b { margin-right: var(--space-2); color: var(--text); }

.st { padding: 0.15rem 0.6rem; border: 1px solid; border-radius: 999px; font-size: var(--text-xs); font-style: normal; font-weight: 600; white-space: nowrap; }
.st.shortlist { color: var(--success); background: var(--success-soft); border-color: var(--success-border); }
.st.missing { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-border); }
.st.no { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }

.mock-checks { grid-area: checks; display: flex; flex-direction: column; gap: var(--space-2); }
.mock-checks span,
.mini-evidence span { display: flex; align-items: center; gap: var(--space-2); color: var(--text-body); font-size: var(--text-sm); }
.mock-checks b,
.mini-evidence b { margin-left: auto; color: var(--text); font-size: var(--text-xs); }
i.ok, i.warn, i.unk { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--success); position: relative; }
i.ok::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
i.warn { background: #f59e0b; }
i.warn::after { content: "!"; position: absolute; inset: 0; color: var(--white); font: 700 11px/16px var(--font-sans); text-align: center; font-style: normal; }
i.unk { background: var(--slate-300); }
i.unk::after { content: "?"; position: absolute; inset: 0; color: var(--white); font: 700 11px/16px var(--font-sans); text-align: center; font-style: normal; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
}
.stat-strip > div { padding: var(--space-6) var(--space-6); }
.stat-strip > div + div { border-left: 1px solid var(--border); }
.stat-strip b { display: block; color: var(--text); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-strip span { display: block; margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-normal); }

/* ---------- Story ---------- */
.story, .features, .how { width: var(--page); margin: 0 auto; padding-top: clamp(5rem, 10vw, 8rem); scroll-margin-top: 4rem; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); }
.story-stage-wrap { position: sticky; top: 6rem; align-self: start; }

.story-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding: var(--space-1);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
}
.story-nav button {
  position: relative;
  z-index: 1;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color 200ms ease;
}
.story-nav button span { margin-right: 0.35rem; font-size: var(--text-xs); opacity: 0.7; }
.story-nav button[aria-current="step"] { color: var(--white); }
.story-progress {
  position: absolute;
  top: var(--space-1);
  bottom: var(--space-1);
  left: var(--space-1);
  width: calc((100% - 0.5rem - 0.5rem) / 3);
  border-radius: 999px;
  background: var(--ink-pill);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), background-color 400ms ease;
}
.story-nav[data-active="solution"] .story-progress { transform: translateX(calc(100% + 0.25rem)); background: var(--primary); }
.story-nav[data-active="impact"] .story-progress { transform: translateX(calc(200% + 0.5rem)); background: var(--success); }

.stage {
  position: relative;
  aspect-ratio: 1 / 0.82;
  max-height: calc(100vh - 11rem);
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 50% at 50% 55%, rgb(56 189 248 / 0.16), transparent 70%),
    linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(240 249 255 / 0.8));
  box-shadow: var(--glass-shadow);
  transition: background 600ms ease;
}
.stage[data-chapter="problem"] { background: radial-gradient(50% 50% at 50% 55%, rgb(148 163 184 / 0.14), transparent 70%), linear-gradient(160deg, #fff, #f8fafc); }
.stage[data-chapter="impact"] { background: radial-gradient(50% 50% at 50% 55%, rgb(20 184 166 / 0.16), transparent 70%), linear-gradient(160deg, #fff, #f0fdfa); }

.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-lines line {
  stroke: var(--primary);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 5;
  opacity: 0;
  transition: opacity 500ms ease;
}
.stage[data-chapter="solution"] .stage-lines line { opacity: 0.55; animation: flow 1.2s linear infinite; }
.stage[data-chapter="impact"] .stage-lines line { opacity: 0.5; stroke: var(--success); animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.dot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--slate-300);
  opacity: 0.35;
  filter: blur(1.5px);
  transition: background-color 500ms ease, opacity 500ms ease, filter 500ms ease, transform 500ms ease, box-shadow 500ms ease;
}
.stage[data-chapter="problem"] .dot { animation: drift 5s ease-in-out infinite; }
.stage[data-chapter="problem"] .dot:nth-child(odd) { animation-delay: -2.5s; }
@keyframes drift { 50% { transform: translate(4px, -6px); opacity: 0.15; } }
.stage:not([data-chapter="problem"]) .dot { opacity: 0.55; filter: none; }
.stage[data-chapter="solution"] .dot.m { background: var(--primary); opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 6px rgb(37 99 235 / 0.15); }
.stage[data-chapter="impact"] .dot.m { background: var(--success); opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 6px rgb(15 118 110 / 0.15); }

.study-node {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 156px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.10);
  transform: translate(-50%, -50%);
  text-align: center;
}
.study-node b { display: block; color: var(--text); font-size: var(--text-sm); }
.study-node small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 0.6875rem; }
.enroll { display: block; height: 6px; margin-top: var(--space-1); overflow: hidden; border-radius: 99px; background: var(--slate-100); }
.enroll i { display: block; width: 18%; height: 100%; border-radius: inherit; background: var(--danger); transition: width 900ms cubic-bezier(.2,.7,.2,1), background-color 600ms ease; }
.stage[data-chapter="solution"] .enroll i { width: 62%; background: var(--primary); }
.stage[data-chapter="impact"] .enroll i { width: 100%; background: var(--success); }
.enroll-label { display: block; margin-top: var(--space-1); color: var(--text-body); font-size: 0.6875rem; font-style: normal; font-weight: 600; }
.stage[data-chapter="problem"] .enroll-label::after { content: "18% · under-enrolled"; }
.stage[data-chapter="solution"] .enroll-label::after { content: "62% · candidates surfacing"; }
.stage[data-chapter="impact"] .enroll-label::after { content: "100% · enrolled"; }

.finch-node {
  position: absolute;
  left: 50%;
  top: 22%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-400), var(--primary));
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: 0 8px 20px rgb(37 99 235 / 0.25);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.9);
  transition: opacity 400ms ease, transform 400ms ease;
}
.stage:not([data-chapter="problem"]) .finch-node { opacity: 1; transform: translate(-50%, 0) scale(1); }

.stage-card {
  position: absolute;
  min-width: 140px;
  max-width: 30%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.10);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}
.stage-card small { display: block; color: var(--text-muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.stage-card b { display: inline-block; margin-top: 2px; color: var(--text); font-size: var(--text-xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stage-card span { display: block; color: var(--text-muted); font-size: var(--text-xs); }
.stage-card.danger b { color: var(--danger); }
.card-problem-1 { left: 6%; bottom: 8%; }
.card-problem-2 { right: 6%; top: 8%; }
.card-solution { right: 3%; top: 37%; }
.card-impact { left: 3%; top: 40%; }
.card-impact b { color: var(--success); }
.stage[data-chapter="problem"] :is(.card-problem-1, .card-problem-2),
.stage[data-chapter="solution"] .card-solution,
.stage[data-chapter="impact"] :is(.card-impact, .card-solution) { opacity: 1; transform: none; }

.chapters { display: flex; flex-direction: column; }
.chapter {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) 0;
  opacity: 0.35;
  transition: opacity 400ms ease;
}
.chapter:first-child { min-height: 60vh; justify-content: flex-start; padding-top: var(--space-12); }
.chapter.active { opacity: 1; }
.chapter-num { color: var(--primary); font-size: var(--text-sm); font-weight: 600; }
.chapter h3 { margin: var(--space-3) 0 var(--space-4); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; }
.chapter > p:not(.chapter-num) { color: var(--text-body); font-size: var(--text-lg); }
.chapter-points { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.chapter-points li {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  color: var(--text-body);
  font-size: var(--text-sm);
}
.chapter-points b { color: var(--text); }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.92), rgb(240 249 255 / 0.7));
  box-shadow: var(--glass-shadow);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 20px 50px rgb(37 99 235 / 0.14); }
.f-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.f-full { grid-column: 1 / -1; }
.f-wide .feature-copy { flex: 1; }
.f-wide .mini { flex: 1; }
.feature h3 { font-size: var(--text-xl); }
.feature-copy p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }

.mini {
  margin: auto 0 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
}
.mini-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); color: var(--primary); font-size: var(--text-xs); font-weight: 600; }
.mini-consent label { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: var(--space-2) 0; color: var(--text-body); font-size: var(--text-sm); font-weight: 500; }
.mini-consent label + label { border-top: 1px solid var(--slate-100); }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--slate-200); transition: background-color 300ms ease; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgb(15 23 42 / 0.2); transition: transform 300ms ease; }
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(14px); }
.mini-btn { display: block; margin-top: var(--space-3); padding: var(--space-2); border-radius: 999px; background: var(--ink-pill); color: var(--white); font-size: var(--text-xs); font-weight: 600; text-align: center; }
.mini-evidence { display: flex; flex-direction: column; gap: var(--space-3); }
.mini-outcomes { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.mini-outcomes .st { font-size: var(--text-sm); padding: 0.3rem 0.8rem; }
.mini-agent { margin-top: auto; padding-left: var(--space-4); list-style: none; counter-reset: s; }
.mini-agent li { position: relative; padding: var(--space-1) 0 var(--space-1) var(--space-6); color: var(--text-body); font-size: var(--text-sm); }
.mini-agent li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--success); }
.mini-agent li.run::before { background: transparent; border: 2px solid var(--primary); border-right-color: transparent; animation: spin 900ms linear infinite; }
.mini-agent li.run { color: var(--primary-hover); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-alerts { display: flex; flex-direction: column; gap: var(--space-2); padding: 0; border: 0; background: transparent; box-shadow: none; }
.alert-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 6px 16px rgb(15 23 42 / 0.05); }
.alert-row:nth-child(2) { margin-left: var(--space-4); opacity: 0.85; }
.alert-row b { display: block; color: var(--text); font-size: var(--text-sm); line-height: 1.3; }
.alert-row small { display: block; color: var(--text-muted); font-size: var(--text-xs); }
.alert-row .bell { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--sky-400), var(--primary)); color: var(--white); }
.alert-row .bell.amber { background: linear-gradient(135deg, #fcd34d, #d97706); }
.mini-layers { position: relative; display: flex; flex-direction: column; gap: var(--space-2); background: transparent; border: 0; box-shadow: none; padding: 0; }
.layer { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 6px 16px rgb(15 23 42 / 0.05); }
.layer b { color: var(--text); font-size: var(--text-sm); }
.layer small { color: var(--text-muted); font-size: var(--text-xs); }
.layer.l1 { border-left: 3px solid var(--primary); }
.layer.l2 { border-left: 3px solid var(--sky-400); margin-left: var(--space-5); }
.layer.l3 { border-left: 3px solid var(--success); margin-left: var(--space-10); }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 2.75rem; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--sky-200), var(--primary), var(--sky-200)); z-index: -1; }
.steps li { padding: var(--space-6); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); background: var(--glass); box-shadow: var(--glass-shadow); text-align: center; }
.step-num { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: 0 auto var(--space-4); border-radius: 50%; background: linear-gradient(135deg, var(--sky-400), var(--primary)); color: var(--white); font-weight: 700; box-shadow: 0 0 0 6px var(--sky-50), 0 6px 16px rgb(37 99 235 / 0.25); }
.steps h3 { font-size: var(--text-lg); }
.steps p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- CTA ---------- */
.cta-band {
  width: var(--page);
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding: clamp(3rem, 6vw, 4.5rem) var(--space-6);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgb(56 189 248 / 0.25), transparent 70%),
    linear-gradient(160deg, #eff6ff, #ecfeff);
  box-shadow: var(--glass-shadow);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto var(--space-3); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.cta-band p { color: var(--text-body); font-size: var(--text-lg); }

/* ---------- Footer ---------- */
.landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: var(--page);
  margin: var(--space-12) auto 0;
  padding: var(--space-6) 0 var(--space-10);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.landing-footer a:not(.brand) { color: var(--text-body); text-decoration: none; }
.landing-footer a:not(.brand):hover { color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 80ms; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 160ms; }
.bento .reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .float-chip { display: none; }
  .mock-body { grid-template-columns: 1fr 1fr; grid-template-areas: "hello hello" "ring alert" "list list" "checks checks"; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .f-wide, .f-full { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage-wrap { top: 4.5rem; z-index: 5; margin: 0 -1rem; padding: var(--space-2) 1rem var(--space-3); background: #f7fafd; }
  .story-stage-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; background: linear-gradient(#f7fafd, transparent); pointer-events: none; }
  .story-nav { margin-bottom: var(--space-3); }
  .stage { aspect-ratio: auto; height: 220px; max-height: none; }
  .stage-card { display: none; }
  .finch-node { top: 13%; }
  .study-node { top: 60%; width: 140px; padding: var(--space-2) var(--space-3); }
  .chapter, .chapter:first-child { min-height: 0; padding: var(--space-10) 0; justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 2rem); }
  .nav-signin { display: none; }
  .nav-pill { padding-left: var(--space-4); }
  .hero-secondary { flex-basis: 100%; margin: var(--space-4) 0 0; border: 0; }
  .mock-top .mock-tabs, .mock-search { display: none; }
  .mock-body { grid-template-columns: 1fr 1fr; grid-template-areas: "hello hello" "ring alert" "list list"; gap: var(--space-2); padding: var(--space-2); }
  .mock-body > * { padding: var(--space-3); }
  .mock-checks { display: none !important; }
  .mock-hello h2 { font-size: var(--text-lg); }
  .mock-record { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .mock-record span { padding: var(--space-2); }
  .mock-record b { font-size: var(--text-xs); }
  .ring { width: 84px; height: 84px; }
  .ring b { font-size: var(--text-base); }
  .mock-alert b { margin-top: var(--space-2); font-size: var(--text-sm); }
  .mock-list li { font-size: var(--text-xs); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div { padding: var(--space-4); }
  .stat-strip b { font-size: 1.5rem; }
  .bento { grid-template-columns: 1fr; }
  .f-wide, .f-full { grid-column: auto; flex-direction: column; align-items: stretch; }
  .layer.l2 { margin-left: var(--space-3); }
  .layer.l3 { margin-left: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .float-chip, .dot, .stage-lines line, .mini-agent li.run::before { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ring-fill { transition: none; }
}

/* Decluttered layout: three stats, three features */
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .bento-3 { grid-template-columns: 1fr; }
}

/* Ollie peeks over the product preview */
.mock-otter { position: absolute; z-index: 3; top: -118px; right: 48px; width: 110px; height: auto; filter: drop-shadow(0 12px 18px rgb(15 23 42 / 0.18)); transform: translateY(30px); opacity: 0; transition: transform 700ms cubic-bezier(.2, .8, .2, 1.2) 400ms, opacity 400ms ease 400ms; }
.mockup.in .mock-otter { transform: none; opacity: 1; animation: mock-otter-bob 3s ease-in-out 1.4s infinite; }
@keyframes mock-otter-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@media (max-width: 720px) { .mock-otter { top: -84px; right: 20px; width: 78px; } }
@media (prefers-reduced-motion: reduce) { .mock-otter { transition: none; transform: none; opacity: 1; } .mockup.in .mock-otter { animation: none; } }
