@font-face {
  font-family: 'Plex';
  font-weight: 400;
  font-display: swap;
  src: url('assets/plex-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex';
  font-weight: 600;
  font-display: swap;
  src: url('assets/plex-600.woff2') format('woff2');
}
@font-face {
  font-family: 'PlexMono';
  font-weight: 500;
  font-display: swap;
  src: url('assets/plex-mono-500.woff2') format('woff2');
}

:root {
  --bg: #050608;
  --surface: #0B0E12;
  --surface-2: #10141A;
  --panel-top: #0E1218;
  --panel-bottom: #090C10;
  --line: #1C222B;
  --line-soft: #141922;
  --line-bright: #2A323D;
  --teal: #49E5C2;
  --teal-dim: #2E9B86;
  --teal-glow: rgba(73, 229, 194, 0.14);
  --text: #EAEEF2;
  --dim: #96A0AB;
  --faint: #5D6773;
  --silver: #A7AFBA;
  --radius: 6px;
  /* vertical rhythm — one scale, used everywhere */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 540px at 50% -160px, rgba(73, 229, 194, 0.055), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: 'Plex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(73, 229, 194, 0.22); color: var(--text); }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
/* Sections that are themselves .wrap must set padding-top/-bottom, never the
   `padding` shorthand — it resets the gutter above and the content goes
   edge-to-edge on narrow screens. */

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: 'PlexMono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

/* ============================================================
   METAL — one material, used as structure.
   Reference: the submit button. Monotonic light→dark face,
   crisp 1px top highlight, 1px bottom shade, fine brushed grain.
   No gloss bands, no sheen sweeps, no bevels.
   ============================================================ */

/* engraved silver — structural labels (section kickers, category names) */
.metal-text {
  color: var(--silver);
}
@supports (-webkit-background-clip: text) {
  .metal-text {
    background: linear-gradient(180deg, #D6DCE3 0%, #A4ADB8 58%, #8A939F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* machined hairline between major sections — catches light at centre */
hr.metal-rule {
  border: none;
  height: 1px;
  margin: 0;
  position: relative;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 209, 218, 0.28) 30%,
    rgba(230, 235, 241, 0.6) 50%,
    rgba(201, 209, 218, 0.28) 70%,
    transparent);
}
hr.metal-rule::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55) 50%, transparent);
}

/* the one panel surface — machined lip on the top edge */
.panel {
  position: relative;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom)) padding-box,
    linear-gradient(180deg,
      rgba(213, 220, 228, 0.4),
      rgba(255, 255, 255, 0.06) 42%,
      rgba(255, 255, 255, 0.03)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(234, 238, 243, 0.06),
    0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 34px 0 var(--sp-5);
  overflow: hidden;
}
/* teal signal glow, pulled up behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -46%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 640px;
  background: radial-gradient(ellipse at center, var(--teal-glow), transparent 66%);
  pointer-events: none;
  filter: blur(22px);
}
/* engineering grid, masked so it fades before it becomes decoration */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 238, 242, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 238, 242, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 92% at 50% -8%, #000 32%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 92% at 50% -8%, #000 32%, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.logo {
  display: block;
  width: 232px;
  max-width: 62%;
  height: auto;
}

@media (max-width: 640px) {
    .topbar { margin-bottom: 48px; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1 {
  font-size: clamp(32px, 5.6vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 17ch;
  text-wrap: balance;
}
h1 .accent {
  color: var(--teal);
  text-shadow: 0 0 34px rgba(73, 229, 194, 0.35);
}

.lede {
  font-size: 17.5px;
  color: var(--dim);
  margin: 0 0 36px;
  max-width: 58ch;
}
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- capability panels ---------- */
.caps-section { padding-bottom: var(--sp-5); }
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cap { padding: 24px 22px 26px; }
.cap h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 13px 0 7px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.cap p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.6; }
@media (max-width: 680px) { .caps { grid-template-columns: 1fr; } }

/* ---------- integrations ---------- */
.integrations { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.integrations .mono { display: block; margin-bottom: var(--sp-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.chip {
  font-family: 'PlexMono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dim);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- form ---------- */
.form-section { padding-top: var(--sp-5); padding-bottom: 112px; scroll-margin-top: var(--sp-3); }
.form-head { margin-bottom: 48px; }
.form-head h2 {
  font-size: clamp(24px, 3.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 13px 0 13px;
  line-height: 1.18;
  text-wrap: balance;
}
.form-head p { color: var(--dim); margin: 0; max-width: 60ch; font-size: 15.5px; }

/* ---------- the three steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.step {
  position: relative;
  padding-left: 68px;
}
/* machined step plate — same material as the submit button */
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: 'PlexMono', ui-monospace, Menlo, monospace;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #161A20;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      rgba(0, 0, 0, 0.016) 1px 2px),
    linear-gradient(180deg,
      #F4F6F9 0%,
      #DEE3E9 34%,
      #C6CCD4 66%,
      #B0B7C0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.34);
}
/* metal rail connecting the plates */
.step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 54px;
  bottom: calc(-1 * var(--sp-5) + 10px);
  width: 1px;
  background: linear-gradient(180deg,
    rgba(201, 209, 218, 0.34),
    rgba(201, 209, 218, 0.06));
}
.step:last-child::before { display: none; }

.step-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 6px;
  padding-top: 8px;
  margin-bottom: var(--sp-3);
}
.step-head h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.step-sub {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  max-width: 58ch;
}
.step-head .stack-count { justify-self: end; }

.step-body { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 719px) {
  .step { padding-left: 0; }
  .step::before { display: none; }
  .step-num {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 12px;
    margin-bottom: 14px;
  }
  .step-head { padding-top: 0; }
}

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-1); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

label, .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
}
label .req, .field-label .req { color: var(--teal); margin-left: 3px; }
label .hint, .field-label .hint {
  display: block;
  font-weight: 400;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 3px;
  letter-spacing: 0;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #4A535E; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-dim);
  box-shadow: 0 0 0 3px rgba(73, 229, 194, 0.1);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B949F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

/* ---------- stack (the big list) ---------- */
fieldset.stack-field { border: none; margin: 0; padding: 0; min-width: 0; }

.stack-count { color: var(--faint); visibility: hidden; }
.stack-count.on { visibility: visible; }
.stack-count.live { color: var(--teal); }

.stack-group { overflow: hidden; }
.stack-cat {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: var(--sp-1) 20px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  padding: var(--sp-2) 20px;
}
.stack-cat:last-of-type { border-bottom: none; }
.stack-cat > .mono {
  font-size: 10.5px;
  line-height: 1.5;
  padding-top: 7px;
}
@media (max-width: 719px) {
  .stack-cat { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .stack-cat > .mono { padding-top: 0; }
}

.opts { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dim);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.opt span:hover { border-color: var(--line-bright); color: var(--text); }
.opt input:checked + span {
  border-color: var(--teal-dim);
  color: var(--teal);
  background: rgba(73, 229, 194, 0.08);
  box-shadow: 0 0 14px rgba(73, 229, 194, 0.12);
}
.opt input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--teal);
}

/* "Other" — part of the same question, visibly its own block */
.stack-other {
  display: block;
  border-top: 1px solid rgba(73, 229, 194, 0.18);
  background: linear-gradient(180deg, rgba(73, 229, 194, 0.045), rgba(73, 229, 194, 0.012));
  padding: var(--sp-2) 20px 20px;
}
.stack-other label { display: block; color: var(--teal); margin-bottom: 9px; }
.stack-other label .hint { color: var(--dim); }
.stack-other input[type="text"] {
  background: rgba(5, 6, 8, 0.6);
  border-color: rgba(73, 229, 194, 0.22);
}
.stack-other input[type="text"]:focus {
  border-color: var(--teal-dim);
  box-shadow: 0 0 0 3px rgba(73, 229, 194, 0.12);
}
@media (max-width: 719px) { .stack-other { padding: 14px 16px 18px; } }

/* ---------- metallic buttons — the reference material ---------- */
.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}

.btn-metal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.012em;
  color: #161A20;
  padding: 13px 30px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background:
    /* fine brushed grain */
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      rgba(0, 0, 0, 0.016) 1px 2px),
    /* monotonic machined face — no gloss horizon */
    linear-gradient(180deg,
      #F4F6F9 0%,
      #DEE3E9 34%,
      #C6CCD4 66%,
      #B0B7C0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.34);
  transition: background .18s ease, box-shadow .22s ease, transform .09s ease;
}
.btn-metal:hover {
  text-decoration: none;
  color: #161A20;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      rgba(0, 0, 0, 0.014) 1px 2px),
    linear-gradient(180deg,
      #FAFCFE 0%,
      #E7ECF1 34%,
      #D0D6DD 66%,
      #B9C0C9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(73, 229, 194, 0.16);
}
.btn-metal:active {
  transform: translateY(1px);
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      rgba(0, 0, 0, 0.02) 1px 2px),
    linear-gradient(180deg,
      #C3CAD2 0%,
      #D4DAE1 60%,
      #E2E7EC 100%);
  box-shadow:
    inset 0 2px 4px rgba(10, 14, 20, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 1px rgba(0, 0, 0, 0.45);
}
.btn-metal:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.btn-metal .arrow {
  font-family: 'PlexMono', monospace;
  color: #39424D;
}

a.hero-cta { padding: 12px 22px; font-size: 14px; }

.fineprint { font-size: 12.5px; color: var(--faint); margin: 0; max-width: 46ch; line-height: 1.55; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.6);
  position: relative;
  padding: 28px 0 44px;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 226, 233, 0.4), transparent);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .mono { color: var(--faint); }

/* ---------- scroll reveal (gated: html.reveal added by JS only) ---------- */
html.reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .7s cubic-bezier(0.19, 0.6, 0.26, 1);
}
html.reveal [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
html.reveal .caps [data-reveal]:nth-child(2) { transition-delay: .08s; }
html.reveal .caps [data-reveal]:nth-child(3) { transition-delay: .16s; }

/* ---------- thanks page ---------- */
.thanks { min-height: 78vh; display: flex; align-items: center; padding: 72px 0; }
.thanks .logo { margin-bottom: 58px; }
.thanks h1 { margin-bottom: 16px; }
.check {
  width: 44px; height: 44px;
  border: 1px solid rgba(73, 229, 194, 0.45);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 28px;
  background: rgba(73, 229, 194, 0.05);
  box-shadow: 0 0 28px var(--teal-glow), inset 0 0 14px rgba(73, 229, 194, 0.08);
}
.next {
  margin-top: 34px;
  border-left: 1px solid rgba(201, 209, 218, 0.38);
  padding: 4px 0 4px 18px;
  color: var(--dim);
  font-size: 15px;
  max-width: 54ch;
}
.back {
  margin-top: 40px;
}
.back a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.back a:hover {
  text-decoration: none;
  border-color: var(--teal-dim);
  box-shadow: 0 0 22px rgba(73, 229, 194, 0.12);
}
.back .arrow { color: var(--teal); font-family: 'PlexMono', monospace; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  html.reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- canvas sizing ----------
   fitCanvas() sets canvas.width from getBoundingClientRect(). Without an
   explicit CSS size the element's layout width falls back to that pixel
   attribute, so at dpr 2 it renders double-width and overflows the viewport.
   Pinning layout size to the container breaks that feedback loop. */
#hero-canvas,
#stack-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
canvas { max-width: 100%; }

/* ---------- visual sizing ----------
   Without an explicit container height the canvas resolved its own height
   circularly off the default 300x150 intrinsic ratio, pinning both visuals to
   2:1. That's fine at 812px wide and far too short at 342 — the node ring had
   no vertical room and labels collided. Heights are now declared, and the
   ratio gets squarer as the screen narrows so the ring keeps its space. */
.hero-viz {
  position: relative;
  width: 100%;
  height: clamp(300px, 33vw, 420px);
}
#stack-canvas { height: clamp(250px, 30vw, 400px); }

@media (max-width: 760px) {
  /* a near-square field gives seven labelled nodes room to breathe */
  .hero-viz { height: 330px; }
  #stack-canvas { height: 270px; }
}
@media (max-width: 400px) {
  .hero-viz { height: 310px; }
  #stack-canvas { height: 255px; }
}

/* ---------- collapsible categories ----------
   Native <details> so the list still works with JS off and stays keyboard
   accessible. Rendered open; a script below collapses them on narrow screens. */
details.stack-cat > .cat-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  user-select: none;
}
details.stack-cat > .cat-sum::-webkit-details-marker { display: none; }
.cat-sum:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.cat-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.cat-count {
  font-family: 'PlexMono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--faint);
  min-width: 18px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cat-count.has {
  color: var(--teal);
  font-weight: 500;
}
/* chevron — only meaningful once the panel can collapse */
.cat-chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
  display: none;
}
details.stack-cat[open] > .cat-sum .cat-chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

@media (max-width: 760px) {
  .cat-chev { display: block; }
  /* give the whole summary row a tap target and a hairline to read as a list */
  details.stack-cat > .cat-sum { min-height: 48px; }
  details.stack-cat > .opts { padding-bottom: 6px; }
}

/* ---------- mobile sticky submit ---------- */
.sticky-send {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .26s cubic-bezier(.16,1,.3,1);
}
.sticky-send.show { transform: translateY(0); }
.sticky-count { font-size: 11px; color: var(--dim); white-space: nowrap; }
.sticky-btn { padding: 11px 20px; font-size: 14px; }

@media (max-width: 760px) {
  .sticky-send { display: flex; }
  /* keep the bar from covering the last field */
  form[name="program-intake"] { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-send { transition: none; }
}

/* ---------- tighten collapsed rows on mobile ----------
   .stack-cat kept its original block padding; combined with the 48px summary
   min-height that made each collapsed row ~87px. Let the summary own the row
   height and keep only horizontal padding on the container. */
@media (max-width: 760px) {
  details.stack-cat {
    padding-top: 0;
    padding-bottom: 0;
  }
  details.stack-cat > .cat-sum {
    min-height: 52px;
    padding: 0;
  }
  details.stack-cat[open] > .opts {
    padding-top: 2px;
    padding-bottom: 14px;
  }
  .cat-name { font-size: 10.5px; }
}

/* the two labels in the stack map header ran together on narrow screens */
.stack-viz-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   PROOF BAND / PLATFORM / USER VIEWS
   These sections shipped without styles — grid, spacing and the
   number-vs-badge separation are all defined here.
   ============================================================ */

/* ---------- proof band ---------- */
.proof { padding-top: var(--sp-4, 56px); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
}
.proof-num {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
  line-height: 1.4;
}
@media (max-width: 860px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 359px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- platform ---------- */
.platform { padding-top: var(--sp-5, 72px); }
.plat-head { max-width: 62ch; margin-bottom: 28px; }
.plat-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin: 12px 0 12px;
}
.plat-head p { color: var(--dim); margin: 0; font-size: 15.5px; line-height: 1.62; }
.plat-head strong { color: var(--text); font-weight: 600; }

.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feat {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  min-height: 0;
}
/* the number and the Live badge were colliding — this is the separation */
.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.feat-top .mono { font-size: 11px; letter-spacing: 0.16em; }
.feat h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
}
.feat p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); }

.tag-live {
  font-family: 'PlexMono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(73, 229, 194, 0.3);
  background: rgba(73, 229, 194, 0.07);
  border-radius: 2px;
  padding: 3px 7px;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 900px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plat-grid { grid-template-columns: 1fr; } }

/* ---------- user views ---------- */
.views {
  margin-top: 12px;
  padding: 22px 24px 24px;
}
.views > .mono { display: block; font-size: 10px; letter-spacing: 0.16em; margin-bottom: 16px; }
.views-rows { display: flex; flex-direction: column; gap: 10px; }
.views-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
/* the timeline label needs to read as a label, not another chip */
.views-when {
  font-family: 'PlexMono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 86px;
  flex: none;
  color: var(--faint);
}
.views-when.live { color: var(--teal); }
.view-chip {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--dim);
  line-height: 1.3;
}
.view-chip.live {
  color: var(--text);
  border-color: rgba(73, 229, 194, 0.28);
}
.view-chip.up { opacity: 0.62; }
@media (max-width: 520px) {
  .views-when { width: 100%; margin-bottom: 2px; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal);
  color: #04120E;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 0 3px 0;
}
.skip:focus { left: 0; text-decoration: none; }

/* scroll progress — a hairline, not a bar */
#scrollbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
#scrollbar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-dim), var(--teal));
  box-shadow: 0 0 10px rgba(73, 229, 194, 0.5);
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
/* only gains a surface once you've left the hero */
.nav.stuck {
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { display: block; width: 158px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: 'PlexMono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 9px 12px;
  border-radius: 3px;
  transition: color .18s ease, background .18s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* scroll-spy */
.nav-links a.current { color: var(--teal); }
.nav-links a.current::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1px;
  background: var(--teal);
  opacity: .65;
}
.nav-cta { padding: 9px 18px; font-size: 13px; flex: none; }
.nav-cta:hover { text-decoration: none; }

/* anchors must clear the fixed bar */
#platform, #how, #partners, #intake, #top { scroll-margin-top: 78px; }

/* the hero sat under the removed topbar — restore its breathing room */
.hero { padding-top: 104px; }

@media (max-width: 680px) {
  .nav-inner { padding: 9px 16px 0; gap: 10px; flex-wrap: wrap; }
  .nav-logo img { width: 128px; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 12.5px; }
  /* Four links now, and Softball is a separate page — dropping them left a
     phone with no way to reach it at all. They get their own row instead. */
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    margin: 0 -16px;
    padding: 1px 16px 0;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    padding: 9px 10px 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .nav-links a.current::after { left: 10px; right: 10px; bottom: 4px; }
  .hero { padding-top: 116px; }
  #platform, #how, #partners, #intake, #top { scroll-margin-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- how it runs ---------- */
.runs { padding-top: var(--sp-5, 72px); }
.runs-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .runs-grid { grid-template-columns: 1fr; } }
/* Skycoach is a partner name, not a status — don't dress it as a Live pill */
.runs-grid .tag-live {
  color: var(--dim);
  border-color: var(--line);
  background: transparent;
}

/* ============================================================
   STATE GLOW + NAVIGATION FEEDBACK
   Glow is reserved for live state — selected, complete, active.
   Nothing here glows just to decorate.
   ============================================================ */

/* a chosen tool should read as switched on */
.opt input:checked + span {
  box-shadow: 0 0 0 1px rgba(73,229,194,.25), 0 0 16px rgba(73,229,194,.22);
  text-shadow: 0 0 12px rgba(73,229,194,.35);
}

/* category that contains a selection */
.cat-count.has {
  text-shadow: 0 0 12px rgba(73,229,194,.5);
}
details.stack-cat:has(input:checked) > .cat-sum .cat-name {
  color: var(--text);
}

/* live counter, once it's actually counting */
.stack-count.active,
.sticky-count.active {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(73,229,194,.45);
}

/* ---- step markers: light up as each step is satisfied ---- */
.step-num {
  transition: color .3s ease, border-color .3s ease, box-shadow .35s ease, background .3s ease;
}
.step.done .step-num {
  color: var(--teal);
  border-color: var(--teal-dim);
  background: rgba(73,229,194,.07);
  box-shadow: 0 0 0 1px rgba(73,229,194,.2), 0 0 22px rgba(73,229,194,.22);
}
.step-check {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s ease, transform .3s ease;
}
.step.done .step-check { opacity: 1; transform: translateX(0); }

/* ---- active nav gets a real signal ---- */
.nav-links a.current {
  text-shadow: 0 0 14px rgba(73,229,194,.45);
}

/* ---- hero accent + CTA ---- */
.nav-cta:hover,
.hero-cta:hover { box-shadow: 0 0 28px rgba(73,229,194,.26), inset 0 1px 0 rgba(255,255,255,.85); }

/* ---- back to top ---- */
#totop {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease;
}
#totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#totop:hover {
  color: var(--teal);
  border-color: var(--teal-dim);
  box-shadow: 0 0 20px rgba(73,229,194,.2);
}
#totop:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* don't collide with the mobile submit bar */
@media (max-width: 760px) { #totop { bottom: 78px; right: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .step-num, .step-check, #totop { transition: none; }
}

/* ============================================================
   EMISSIVE PASS — the elements that carry weight actually emit.
   Teal reads as backlit on near-black; these are the load-bearing
   numbers, status pills and partner marks, not decoration.
   ============================================================ */

/* hero accent — stronger, two-stage falloff */
.hero h1 .accent {
  text-shadow: 0 0 18px rgba(73,229,194,.55), 0 0 52px rgba(73,229,194,.32);
}

/* ---- credibility numbers ----
   A halo on a numeral just softens its edges. The figure is the point, so
   it stays sharp and the card gets real structure instead: a machined top
   edge and a teal rule that locks every label to the same baseline. */
.proof-num {
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}
.proof-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, background-color .25s ease;
}
.proof-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent,
    rgba(255,255,255,.11) 24%, rgba(255,255,255,.11) 76%, transparent);
}
.proof-rule {
  width: 24px;
  height: 2px;
  margin: 13px 0 12px;
  background: var(--teal);
  transition: width .28s ease;
}
.proof-item:hover {
  border-color: var(--teal-dim);
  background-color: rgba(73,229,194,.025);
}
.proof-item:hover .proof-rule { width: 40px; }

/* ---- LIVE status pills ----
   A status reads faster as a lit indicator than as a glowing word, so the
   signal moves into a solid dot and the type just stays legible. */
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: none;
  text-shadow: none;
  border-color: rgba(73,229,194,.34);
}
.tag-live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
/* Skycoach pill is a partner name, not a live status — no indicator */
.runs-grid .tag-live { border-color: rgba(73,229,194,.3); }
.runs-grid .tag-live::before { display: none; }

/* ---- connected partners ---- */
.chip {
  transition: color .22s ease, border-color .22s ease, background-color .22s ease;
}
.chip:hover {
  color: var(--teal);
  border-color: var(--teal-dim);
  background-color: rgba(73,229,194,.05);
}

/* ---- live user-view roles ---- */
.view-chip.live {
  box-shadow: none;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(73,229,194,.34);
}
.view-chip.live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* step markers — faint at rest so the lit state reads as a change */
.step-num { box-shadow: 0 0 0 1px rgba(73,229,194,.06); }
.step.done .step-num {
  box-shadow: 0 0 0 1px rgba(73,229,194,.35), 0 0 30px rgba(73,229,194,.35);
  text-shadow: 0 0 14px rgba(73,229,194,.6);
}

/* selected tool — unmistakably switched on */
.opt input:checked + span {
  box-shadow: 0 0 0 1px rgba(73,229,194,.45), 0 0 22px rgba(73,229,194,.38);
  text-shadow: 0 0 14px rgba(73,229,194,.55);
}
.cat-count.has { text-shadow: 0 0 16px rgba(73,229,194,.7); }

/* primary actions carry a permanent low glow so they read as the way forward */
.btn-metal { box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.34), 0 0 24px rgba(73,229,194,.1); }
.nav-cta, .hero-cta { position: relative; }

/* intake section heading */
.form-head .mono { text-shadow: 0 0 14px rgba(73,229,194,.4); }

@media (prefers-reduced-motion: reduce) {
  .proof-item, .chip { transition: none; }
}

/* ============================================================
   MOBILE REFINEMENT
   ============================================================ */

/* The viz panel is deliberately unpadded so the canvas can bleed to its
   rounded edges — but that left the header type sitting on the border. */
.stack-viz-head {
  padding: 13px 16px 12px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 680px) {
  /* The nav is sticky and its logo returns to the top, so a floating
     back-to-top is redundant here — and it was covering form fields
     and footer text on the way down. */
  #totop { display: none; }

  /* a primary action should be a full-width thumb target on a phone */
  .submit-row .btn-metal { width: 100%; justify-content: center; }

  /* 112px of dead space before the footer reads as a broken page end */
  .form-section { padding-bottom: 56px; }

  .stack-viz-head { padding: 12px 14px 11px; }
}

/* At 320px the four nav links overflowed their scroller and "Partners" sat
   half off-screen with no affordance. Tightening the tracking fits all four. */
@media (max-width: 374px) {
  .nav-inner { padding-left: 12px; padding-right: 12px; }
  .nav-links { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .nav-links a { padding-left: 6px; padding-right: 6px; letter-spacing: 0.06em; font-size: 9.5px; }
  .nav-links a.current::after { left: 6px; right: 6px; }
  .nav-logo img { width: 116px; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
}

/* ---------- problem picker (step 03) ----------
   Same chip language as the stack selector so the form reads as one system. */
.problems { border: 0; padding: 0; margin: 0; }
.problems legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.field-hint {
  font-size: 13.5px;
  color: var(--dim);
  margin: 0 0 12px;
  max-width: 56ch;
}
