/* ==========================================================================
   Hyperdrive Bio — site stylesheet
   All page styling lives here. Pages contain no inline styles.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:            #07091D;
  --surface:       #0F1330;
  --surface-quiet: #0B0E24;
  --text:          #FBFFFF;
  --text-body:     #E5E6E8;
  --muted:         #ABB9CE;
  --faint:         #7F8191;
  --accent:        #3771FF;
  --accent-200:    #D9E7FF;
  --accent-300:    #8EBBFF;
  --accent-700:    #1438E1;
  --accent-800:    #172EB6;
  --accent-900:    #141D57;
  --section:       #06205B;
  --section-ink:   #C0E1FD;
  --signal:        #F75A3C;
  --ink-dark:      #090F31;
  --ink-dark-soft: #4A4B55;
  --hairline:      #414149;
  --divider:       rgba(251, 255, 255, 0.14);   /* fallback: Safari < 16.2, older Edge */
  --grad:          linear-gradient(100deg, #8ECCFB, #3771FF);
  --pulse:         #F75A3C;   /* Pulse Orange: sparing accent only */
  --hd-blue:       #0B30BD;   /* Hyperdrive Blue */

  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --leading: 28px;            /* baseline unit; all vertical rhythm derives from it */
  --half:    14px;
  --edge:    clamp(20px, 5vw, 72px);
  --measure: 1240px;          /* content column max width */
  --radius:  14px;
}

@supports (color: color-mix(in srgb, white 14%, transparent)) {
  :root { --divider: color-mix(in srgb, #FBFFFF 14%, transparent); }
}

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

html {
  -webkit-text-size-adjust: 100%; /* stop iOS Safari inflating type in landscape */
  scroll-behavior: smooth;
}

/* Anchor targets get breathing room above them when jumped to */
[id] { scroll-margin-top: calc(var(--leading) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-300); text-underline-offset: 3px; }
a:hover { color: var(--accent-200); }

hr.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, transparent, var(--divider) 48px calc(100% - 48px), transparent);
}

/* --- Page shell ----------------------------------------------------------- */
.page {
  position: relative;
  overflow-x: hidden;   /* fallback */
  overflow-x: clip;     /* clip does not create a scroll container, so #anchors still work */
  background:
    radial-gradient(1200px 760px at 84% -200px, var(--accent-900), transparent 62%),
    radial-gradient(1000px 800px at -8% 104%, #070708, transparent 58%),
    var(--bg);
}
.page--tall {
  min-height: 100vh;
  min-height: 100dvh;             /* mobile browsers: excludes the retracting URL bar */
  display: flex;
  flex-direction: column;
}

.wrap {
  position: relative;
  max-width: var(--measure);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* --- Decorative orbitals -------------------------------------------------- */
.orbitals {
  position: absolute;
  top: -360px;
  right: -320px;
  width: 1100px;
  height: 1100px;
  pointer-events: none;
  opacity: 0.5;
}
.orbitals svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbitals .spin     { animation: orbit 120s linear infinite; }
.orbitals .spin-rev { animation: orbit-rev 200s linear infinite; }

@keyframes orbit     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 14px max(var(--edge), calc((100% - var(--measure)) / 2 + var(--edge)));
  border-bottom: 1px solid var(--divider);
}
.nav__brand { display: block; flex: 0 0 auto; padding: 4px 50px 4px 0; }
.nav__brand img { width: 183px; height: 32px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
  font-size: 14px;
}
.nav__links a { color: var(--text); text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--accent-200); }
.nav__links .btn { color: var(--text); }
.nav__login { font-family: var(--font-heading); font-weight: 500; }

/* --- Nav dropdown -------------------------------------------------------- */
.menu { position: relative; }
.menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}
.menu__btn:hover { color: var(--accent-200); }
.menu__btn::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}
.menu__btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 232px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--divider), 0 20px 46px rgba(7, 7, 8, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.menu__panel a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.menu__panel a:hover { background: var(--surface-quiet); color: var(--text); }
.menu__panel a[aria-current="page"] { color: var(--text); }
.menu__btn[aria-expanded="true"] + .menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* no-JS fallback: hover and keyboard focus still open the panel, but only
   while aria-expanded is untouched by script (it sets data-js on the menu) */
.menu:not([data-js]):hover .menu__panel,
.menu:not([data-js]):focus-within .menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--primary { background: var(--accent); color: var(--text); }
.btn--primary:hover { background: var(--accent-700); color: var(--text); }
.btn--ghost { background: transparent; border-color: var(--divider); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-300); color: var(--accent-200); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--leading); }

/* --- Tags ----------------------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--leading); }
ul.tag-row, ul.stats__grid, ul.rows, ul.tour-list { list-style: none; margin-bottom: 0; padding: 0; }
ul.tour-list { margin-top: 0; }
ul.stats__grid { margin-top: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--muted);
}

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 13px;
  line-height: var(--half);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: var(--half);
}
.eyebrow--code {
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  margin-bottom: var(--leading);
  font-variant-numeric: tabular-nums;
}

.display {
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-left: -0.04em;
  max-width: 20ch;
}
.display--md { font-size: clamp(38px, 5.4vw, 72px); max-width: 22ch; }
.display--sm { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.022em; max-width: 18ch; }
.display > span { display: block; }
.display .grad { color: var(--accent-300); }  /* fallback if background-clip:text is unsupported */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .display .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* the paint box ends at the line box, so tight leading cuts descenders
       (g, y, p) out of the gradient; pad the box back out below them */
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
  }
}

.h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -0.015em; }
.h2--lg { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -0.018em; }

.lede {
  font-size: 18px;
  line-height: var(--leading);
  color: var(--text-body);
  max-width: 56ch;
  margin-top: calc(1.5 * var(--leading));
}
.lede--sm { font-size: 17px; max-width: 52ch; }

.body {
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--muted);
  max-width: 56ch;
}
.body + .body { margin-top: var(--half); }
.measure-50 { max-width: 50ch; }
.measure-52 { max-width: 52ch; }
.measure-58 { max-width: 58ch; }
.tight-24 { max-width: 24ch; }
.tight-26 { max-width: 26ch; }
.tight-22 { max-width: 22ch; }
.gap-half { margin-top: var(--half); }
.gap-line { margin-top: var(--leading); }

/* --- Product lockup ------------------------------------------------------- */
.lockup {
  display: block;
  width: clamp(168px, 19vw, 232px);
  height: auto;
  margin-bottom: var(--leading);
}

/* --- Product name in a headline ------------------------------------------ */
.product {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .product { color: var(--accent-300); }
}

/* --- Rotating word -------------------------------------------------------- */
/* two lines are reserved so a short word cannot collapse the headline to one
   and shift everything below it; 1.2 is the .h2 line-height */
.rotator__line { color: var(--muted); max-width: 30ch; min-height: 2.4em; }
.rotator {
  display: inline-block;
  position: relative;
  color: var(--text);
  white-space: nowrap;
  /* site.js sets an exact per-word px width and animates between them, so
     the tail slides instead of jumping or leaving a gap */
  transition: width 300ms cubic-bezier(.22, .61, .36, 1);
}
.rotator__word {
  display: inline-block;
  font-style: italic;
  /* italic overhangs its box to the right; the pad keeps the last glyph
     from clipping against the width-animated container */
  padding-right: 0.08em;
  transition: opacity 260ms ease, transform 260ms ease;
}
/* inherit the headline's leading so descenders are not clipped */
.display .rotator,
.display .rotator__word { line-height: inherit; }
.rotator__word.is-out { opacity: 0; transform: translateY(-6px); }

/* --- Flow list (sequenced statements) ------------------------------------ */
.flow {
  list-style: none;
  margin: var(--leading) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--half);
  max-width: 52ch;
}
.flow li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--muted);
}
.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--leading) / 2 - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.flow li:first-child { color: var(--text-body); }

/* --- Sections ------------------------------------------------------------- */
.section        { padding-block: calc(2.5 * var(--leading)); }
.section--hero  { padding: calc(3.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.section--head  { padding: calc(3.5 * var(--leading)) 0 calc(2 * var(--leading)); }
.section--flush { padding: 0 0 calc(2.5 * var(--leading)); }
.section--last  { padding: 0 0 calc(2 * var(--leading)); }

.section--center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-block: calc(3 * var(--leading));
}

/* --- Stat band ------------------------------------------------------------ */
.stats {
  position: relative;
  background:
    radial-gradient(900px 420px at 86% -40%, var(--accent-800), transparent 64%),
    var(--section);
  padding-block: calc(2.5 * var(--leading));
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: calc(1.85 * var(--leading)) var(--leading);
}
.stats__grid > *, .split > *, .split--top > * { min-width: 0; }
.stat__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  /* wrap-safe: several labels run to two lines, and var(--half) gives a
     ratio of 1.077, which overlaps the line boxes */
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--section-ink);
  margin-top: var(--half);
}

/* --- Stat carousel -------------------------------------------------------
   Desktop shows all items at once — a proof band is strongest when nothing
   is hidden. Below 760px it becomes a native scroll-snap carousel driven by
   the thumb, with dots as position indicators (site.js syncs them). It
   auto-advances while visible and stops for good once the reader touches it. */
.ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: calc(1.85 * var(--leading)) var(--leading);
}
.ticker .stat__label {
  font-size: 14px;
  line-height: 1.45;
  max-width: 30ch;
}
/* dots exist only for the mobile carousel */
@media (min-width: 761px) {
  .ticker__dots { display: none; }
}
/* 190px tracks fit only 3 across the 816px column, stranding a 4th; pair
   them up through the mid range instead */
@media (min-width: 761px) and (max-width: 1040px) {
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ticker {
    display: flex;
    gap: 0;
    margin-inline: calc(-1 * var(--edge));
    padding-inline: var(--edge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding-right: var(--leading);
  }
  .ticker .stat__num { font-size: clamp(38px, 11vw, 52px); }
  .ticker .stat__label { max-width: 26ch; }

  .ticker__dots {
    display: flex;
    gap: 8px;
    margin-top: var(--leading);
  }
  .ticker__dot {
    width: 26px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: color-mix(in srgb, var(--section-ink) 30%, transparent);
    cursor: pointer;
    transition: background-color 200ms ease;
  }
  .ticker__dot[data-on] { background: var(--section-ink); }
}

/* --- Numbered feature rows ------------------------------------------------ */
.rows { margin-top: calc(1.5 * var(--leading)); }
.row {
  display: grid;
  grid-template-columns: minmax(56px, 120px) minmax(0, 360px) minmax(0, 1fr);
  gap: var(--leading) clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding-block: calc(1.25 * var(--leading));
}
.row + .row { border-top: 1px solid var(--divider); }
.row__num {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: var(--leading);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.row__title { font-size: 24px; line-height: var(--leading); letter-spacing: -0.01em; }
.row__body { font-size: 15.5px; line-height: var(--leading); color: var(--muted); max-width: 52ch; }

@media (max-width: 720px) {
  .row { grid-template-columns: 34px minmax(0, 1fr); }
  .row__num { grid-row: span 2; }
}

/* --- Demo page ------------------------------------------------------------
   Own classes: the generic .steps/.step were later redefined as a 3-up card
   grid for campaign pages, which squeezed these into a half-width column. */
.demo-steps {
  list-style: none;
  margin: calc(1.75 * var(--leading)) 0 0;
  padding: 0;
  border-top: 1px solid var(--divider);
}
.demo-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}
.demo-step__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pulse);
  font-variant-numeric: tabular-nums;
}
.demo-step__title { font-size: 18px; line-height: 1.4; letter-spacing: -0.008em; color: var(--text); }
.demo-step__body { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: 4px; }
.form-frame--demo { height: 735px; border: 0; border-radius: 8px; background: transparent; }
@media (min-width: 1080px) {
  .split--top > .stack--sticky { position: sticky; top: var(--leading); }
}

/* --- Split (text + figure) ----------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--leading) clamp(24px, 5vw, 88px);
  align-items: center;
  padding: calc(2 * var(--leading)) 0 calc(3 * var(--leading));
}
.split--top {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(1.5 * var(--leading)) clamp(28px, 5vw, 88px);
  padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading));
}
@media (min-width: 1080px) {
  .split--top { grid-template-columns: minmax(340px, 1fr) minmax(0, clamp(360px, 40vw, 520px)); }
  .split--top > :first-child { grid-column: 1; grid-row: 1; }
  .split--top > .stack      { grid-column: 2; grid-row: 1; }
}
.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure img.provider { aspect-ratio: 2560 / 2087; }
@supports not (aspect-ratio: 1 / 1) {
  .figure img.provider { height: auto; }
}

/* --- Product tour -------------------------------------------------------- */
.tour__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  line-height: var(--half);
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--half);
}
.figure img.shot {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 44px rgba(7, 7, 8, 0.5);
}

/* Placeholder for imagery not yet supplied. Replace the .figure--slot div with
   an <img class="shot"> when the real capture arrives. */
.figure--slot .slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--divider);
  border-radius: 10px;
  background: var(--surface-quiet);
  text-align: center;
  padding: var(--leading);
}
.slot__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}
.slot__note {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Zoomable figure ------------------------------------------------------
   site.js adds the dialog; without JS the image is just an image. */
.shot--zoom { cursor: zoom-in; }
.zoom-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: zoom-in;
}
.zoom-btn:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 3px;
}
.figure__cap {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--divider), 0 30px 80px rgba(7, 7, 8, 0.7);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 5, 14, 0.82); }
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 9, 29, 0.72);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.lightbox__close:hover { background: var(--accent); }

/* --- Even two-column prose ----------------------------------------------- */
.split--even {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--leading) clamp(28px, 5vw, 72px);
  margin-top: var(--leading);
}
@media (min-width: 860px) {
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* grid gap owns the spacing here; the stacked .body + .body rule would
   otherwise push the second column down by 14px */
.split--even > .body + .body { margin-top: 0; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { margin-top: calc(1.5 * var(--leading)); border-top: 1px solid var(--divider); }
.faq__item { border-bottom: 1px solid var(--divider); }
.faq__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: var(--leading) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.008em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-200); }
.faq__q::before {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  transform: translateY(1px);
}
.faq__item[open] .faq__q::before { content: "\2013"; }
.faq__a { padding: 0 0 var(--leading) 32px; }
.faq__a p {
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--muted);
  /* wide enough to track the question line; capped so long answers stay readable */
  max-width: 88ch;
  text-wrap: pretty;
}

/* --- Case callouts -------------------------------------------------------- */
.cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--leading);
  margin-top: var(--leading);
}
@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cases {
    display: flex;
    gap: 0;
    margin-inline: calc(-1 * var(--edge));
    padding-inline: var(--edge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .cases::-webkit-scrollbar { display: none; }
  .cases > .case {
    flex: 0 0 82%;
    scroll-snap-align: start;
    margin-right: var(--half);
  }
}

.case {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.3vw, 30px);
  border-radius: var(--radius);
  background: var(--surface-quiet);
  box-shadow: 0 0 0 1px var(--hairline);
}
.case__kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  line-height: var(--half);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: var(--half);
}
.case__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 62ch;
}

/* --- Offer cards ---
   Linked cards for the company homepage's capability and audience grids. */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--leading);
  margin-top: calc(1.75 * var(--leading));
}
@media (min-width: 900px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the lead card carries the product shot, so it owns the full row */
.offers--lead { grid-template-columns: minmax(0, 1fr); }
.offers--lead + .offers { margin-top: var(--leading); }
@media (min-width: 900px) {
  .offers--lead { grid-template-columns: minmax(0, 1fr); }
}
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.3vw, 30px);
  border-radius: var(--radius);
  background: var(--surface-quiet);
  box-shadow: 0 0 0 1px var(--hairline);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
/* accent rule that wipes in from the left edge on hover */
.offer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
}
.offer:hover::before,
.offer:focus-visible::before { transform: scaleX(1); }
.offer:hover {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 38px rgba(7, 7, 8, 0.45);
  transform: translateY(-2px);
}

/* --- Featured offer: copy beside a real product screenshot --------------- */
.offer--feature { padding: 0; gap: 0; }
.offer__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px);
}
.offer__shot {
  /* the shot is cropped to the card corner rather than letterboxed, so the
     card reads as product rather than as an illustrated tile */
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.offer__shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
}
.offer--feature:hover .offer__shot img { transform: scale(1.03); }
/* logo variant: the mark sits centred at its own scale rather than cropped */
.offer__shot--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: var(--leading);
  background: var(--surface-quiet);
}
.offer__shot--mark img {
  position: static;
  width: min(300px, 70%);
  height: auto;
  object-fit: contain;
}
.offer--feature:hover .offer__shot--mark img { transform: none; }
@media (min-width: 900px) {
  .offer--feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: stretch;
  }
  .offer__text { justify-content: center; }
  .offer__shot {
    min-height: 0;
    box-shadow: inset 1px 0 0 var(--hairline);
  }
}
@media (prefers-reduced-motion: reduce) {
  .offer, .offer::before, .offer__shot img, .offer__more { transition: none; }
  .offer:hover { transform: none; }
  .offer--feature:hover .offer__shot img { transform: none; }
}
.offer__kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  line-height: var(--half);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.offer__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.24;
  letter-spacing: -0.012em;
  color: var(--text);
}
.offer__title--lg {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
}
.offer__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.offer__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--accent-300);
  transition: color 180ms ease;
}
.offer__more::after {
  content: "\2192";
  display: inline-block;
  /* spaced with box metrics: a leading space inside an inline-block collapses */
  margin-left: .3em;
  transition: transform 260ms cubic-bezier(.22, .61, .36, 1);
}
.offer:hover .offer__more { color: var(--accent-200); }
.offer:hover .offer__more::after { transform: translateX(4px); }

/* --- Cards ---------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: var(--leading); }

.card--light {
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--radius);
  background: var(--text);
  box-shadow: 0 0 0 1px var(--accent-800), 0 18px 44px rgba(7, 7, 8, 0.55);
  color: var(--ink-dark);
}
.card--light h2 { font-size: 22px; line-height: 1.24; letter-spacing: -0.012em; margin-bottom: 6px; }
.card--light p { font-size: 14.5px; line-height: 1.55; color: var(--ink-dark-soft); margin-bottom: 20px; }

.card--quiet {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius);
  background: var(--surface-quiet);
  box-shadow: 0 0 0 1px var(--hairline);
}
.card--quiet h2 { font-size: 17px; line-height: 1.35; letter-spacing: -0.008em; }
.card--quiet p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 40ch; margin-top: 8px; }
.card--quiet .btn-row { margin-top: 18px; }

.stack { position: relative; min-width: 0; }

/* Embedded third-party form iframe (LeadConnector). The script rewrites the
   iframe height once the form renders; min-height stops the card collapsing
   before that happens. */
.form-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 735px;
}
.form-frame--tall {
  min-height: 981px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}


/* --- Legal / long-form document pages ------------------------------------ */
.legal {
  flex: 1 1 auto;
  max-width: 820px;          /* narrower than .wrap: a readable measure for prose */
  padding-block: calc(2.5 * var(--leading)) calc(3 * var(--leading));
}
.legal__head { padding-bottom: calc(1.25 * var(--leading)); border-bottom: 1px solid var(--divider); }
.legal__meta {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: var(--half);
}
.legal__section { padding-top: calc(1.5 * var(--leading)); }
.legal__h {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.008em;
  margin-bottom: 10px;
}
.legal p {
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--text-body);
}
.legal p + p { margin-top: var(--half); }
.legal strong { font-weight: 500; color: var(--text); }
.legal__list {
  margin: var(--half) 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--text-body);
}
.legal__list li::marker { color: var(--accent); }
.legal__address {
  font-style: normal;
  font-size: 15.5px;
  line-height: var(--leading);
  color: var(--text-body);
  margin-top: var(--half);
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--half) clamp(16px, 3vw, 32px);
  align-items: center;
  padding-block: calc(2 * var(--leading));
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--faint);
}
.footer img { width: 126px; height: 22px; margin-right: 34px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent-200); }
.footer__copy { margin-left: auto; }

/* --- Scroll reveal (progressive enhancement; see site.js) ---------------- */
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal] {
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1), transform 620ms cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   The layout is fluid by default: clamp() type, auto-fit grids, ch-based
   measures. These breakpoints handle the things fluidity cannot — the nav,
   the decorative orbitals, and vertical rhythm on small screens.
   ========================================================================== */

/* Tablet and below */
@media (max-width: 900px) {
  .orbitals { width: 760px; height: 760px; top: -280px; right: -260px; opacity: 0.36; }
  .split, .split--top { align-items: start; }
  .figure { order: 2; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --leading: 22px; --half: 11px; }

  .nav {
    flex-wrap: wrap;
    row-gap: 12px;
    padding-block: 12px;
  }
  .nav__brand { padding-right: 0; }
  .nav__brand img { width: 148px; height: 26px; }
  .nav__links { width: 100%; margin-left: 0; justify-content: flex-start; gap: 16px; flex-wrap: wrap; row-gap: 12px; }
  .nav__links .btn { margin-left: auto; }

  .rotator { width: auto !important; }
  .rotator__line { max-width: none; }
  .display    { font-size: clamp(30px, 8.4vw, 44px); max-width: none; }
  .display--md,
  .display--sm { font-size: clamp(28px, 7.6vw, 40px); max-width: none; }
  .lede, .lede--sm { font-size: 16.5px; }
  .h2, .h2--lg { max-width: none; }
  .tight-22, .tight-24, .tight-26 { max-width: none; }

  .btn { width: 100%; }             /* full-bleed, comfortable tap targets */
  .btn-row { gap: 8px; }
  .nav__links .btn { width: auto; }
  .nav__login { margin-left: auto; }
  .menu { width: 100%; }
  .menu__panel {
    position: static;
    left: auto;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    background: none;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu__btn[aria-expanded="true"] + .menu__panel { display: flex; }
  .menu:not([data-js]):focus-within .menu__panel { display: flex; }
  .menu__panel a { padding: 9px 0; }

  /* stacked rows need more air than the desktop grid — the row gap is the
     only thing separating one stat's label from the next stat's number */
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: calc(2.2 * var(--leading)); }
  .stat__num { font-size: 30px; }

  .footer { row-gap: 10px; }
  /* own row, but the image keeps its intrinsic size — flex-basis:100% on the
     img itself stretched it across the page */
  .footer img { margin-right: 0; width: 126px; height: 22px; flex: 0 0 auto; }
  .footer a:first-of-type { margin-left: 0; }
  .footer__copy { margin-left: 0; flex: 0 0 100%; }

  .card--light, .card--quiet { border-radius: 12px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Short landscape phones: stop utility pages forcing a tall empty column */
@media (max-height: 520px) and (orientation: landscape) {
  .section--center { padding-block: calc(1.5 * var(--leading)); }
  .orbitals { display: none; }
}

/* Wide displays: the column stops growing, so only the gutter opens up */
@media (min-width: 1600px) {
  :root { --edge: 96px; }
}


/* --- Campaign landing pages ------------------------------------------------
   Standalone pages for paid and social traffic (ros1-alerts.html). Not linked
   from the site nav; the header carries only the brand and one CTA. */
.nav--campaign .nav__links { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .nav--campaign { flex-wrap: nowrap; }
  .nav--campaign .nav__links { width: auto; margin-left: auto; }
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(2 * var(--leading));
  align-items: center;
  padding: calc(3 * var(--leading)) 0 calc(3 * var(--leading));
}
@media (min-width: 980px) {
  .hero--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(2.5 * var(--leading)); }
}

/* Illustrative alert, drawn in markup so it stays sharp and editable */
.alert-mock { display: flex; flex-direction: column; gap: var(--half); }
.alert-mock__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius);
  background: rgba(15, 19, 48, 0.78);
  box-shadow: 0 0 0 1px rgba(142, 187, 255, 0.22), 0 24px 60px -20px rgba(3, 5, 20, 0.8);
}
.alert-mock__head { display: flex; justify-content: space-between; align-items: center; gap: var(--half); flex-wrap: wrap; }
.alert-mock__flag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.alert-mock__flag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.alert-mock__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
@media (max-width: 480px) { .alert-mock__fields { grid-template-columns: minmax(0, 1fr); } }
.alert-mock__label, .alert-mock__meta {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.alert-mock__value {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  color: var(--text);
}
.alert-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--half);
  flex-wrap: wrap;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: rgba(11, 14, 36, 0.7);
  box-shadow: 0 0 0 1px var(--divider);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-body);
}
.alert-mock__row--1 { margin-left: clamp(0px, 3vw, 40px); }
.alert-mock__row--2 { margin-left: clamp(0px, 6vw, 80px); color: var(--muted); opacity: 0.8; }

/* Numbered steps and plain feature cards */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--leading);
  margin-top: calc(1.5 * var(--leading));
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius);
  background: var(--surface-quiet);
  box-shadow: 0 0 0 1px var(--divider);
}
.step__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.step__title {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--text);
}
.step__body { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Dot-led checklist */
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: var(--leading); list-style: none; padding: 0; }
.checks li {
  display: flex;
  gap: 14px;
  font-size: 16.5px;
  line-height: var(--leading);
  color: var(--muted);
}
.checks li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.checks--row { margin-top: 0; }
@media (min-width: 900px) {
  .checks--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.5 * var(--leading)); }
}
.checks--row li { color: var(--text-body); }
.band--quiet {
  padding-block: calc(2 * var(--leading));
  background: var(--surface-quiet);
  border-block: 1px solid var(--divider);
}


/* --- Customer onboarding (onboarding.html) --------------------------------
   Unlisted page sent to new Voyager customers after signature. Single 900px
   column, no nav, nothing sticky: the form and the calendar are the page. */
.onb { background: linear-gradient(180deg, var(--bg) 0%, var(--ink-dark) 100%); }
.onb__col {
  width: 100%;
  max-width: calc(900px + 2 * var(--edge));
  margin-inline: auto;
  padding-inline: var(--edge);
}
/* 50px clear space around the mark, per the logo rules */
.onb__header { padding-block: 50px 0; }
.onb__logo { display: inline-block; padding: 0 50px 50px 0; }
.onb__logo img { display: block; width: clamp(150px, 18vw, 188px); height: auto; }

.onb__hero { padding-block: calc(1 * var(--leading)) calc(3 * var(--leading)); }
.onb__hero .display { font-size: clamp(44px, 7vw, 84px); line-height: 1.05; letter-spacing: -0.03em; }
.onb__hero .lede { margin-top: var(--leading); max-width: 40em; }

.onb__section { padding-block: calc(2.5 * var(--leading)); }
.onb__section + .onb__section { border-top: 1px solid var(--divider); }
.onb__h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.onb__intro { margin-top: var(--half); max-width: 40em; font-size: 17px; line-height: var(--leading); color: var(--text-body); }

/* Frosted glass card, dark */
.glass {
  border-radius: 18px;
  background: rgba(15, 19, 48, 0.55);
  box-shadow: inset 0 0 0 1px rgba(251, 255, 255, 0.10), 0 30px 70px -30px rgba(3, 5, 20, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* Welcome from Kyle */
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(1.25 * var(--leading));
  padding: clamp(18px, 3vw, 32px);
}
@media (min-width: 760px) {
  .welcome { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}
.welcome__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, var(--accent-900) 0%, var(--ink-dark) 70%);
  box-shadow: inset 0 0 0 1px rgba(142, 187, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
/* thank-you page: capped so the copy below is visible on load */
.onb__video--compact { width: min(100%, 560px); }
.welcome__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(251, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(251, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome__play::before {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--text);
}
.welcome__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.welcome__note { font-size: 17px; line-height: var(--leading); color: var(--text-body); }
.welcome__sig { margin-top: var(--leading); }
.welcome__name { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--text); }
.welcome__role { margin-top: 2px; font-size: 14.5px; color: var(--muted); }

/* What happens next: 4-step timeline, vertical on mobile */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(1.25 * var(--leading));
  margin-top: calc(1.5 * var(--leading));
  list-style: none;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(142, 204, 251, 0.5), rgba(55, 113, 255, 0.15));
}
.tstep { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; align-content: start; }
.tstep__num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-dark);
  box-shadow: inset 0 0 0 1px rgba(247, 90, 60, 0.55);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--pulse);
  font-variant-numeric: tabular-nums;
}
.tstep__title { font-family: var(--font-heading); font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--text); padding-top: 8px; }
.tstep__body { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--leading); }
  .timeline::before {
    left: 20px;
    right: calc(25% - 20px);
    top: 20px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(142, 204, 251, 0.5), rgba(55, 113, 255, 0.15));
  }
  .tstep { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tstep__title { padding-top: 0; }
}

/* Light frosted panel for third-party embeds (light-background forms) */
.embed-panel {
  margin-top: calc(1.5 * var(--leading));
  padding: clamp(10px, 2vw, 20px);
  border-radius: 18px;
  background: rgba(251, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(251, 255, 255, 0.4), 0 30px 70px -30px rgba(3, 5, 20, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.embed-panel iframe { display: block; width: 100%; border: 0; border-radius: 10px; }
/* Onboarding intake embed. The form draws its own light surface, so no panel
   here. Height comes only from the form's voyager:resize messages (site.js). */
.intake { margin-top: calc(1.5 * var(--leading)); padding: 8px; }
.intake__frame { display: block; width: 100%; max-width: 672px; margin: 0 auto; border: 0; overflow: hidden; }
/* Placeholder until the GHL embed code is pasted in */
.embed-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(9, 15, 49, 0.28);
  border-radius: 10px;
  text-align: center;
  padding: var(--leading);
}
.embed-slot--form { min-height: 1400px; }
.embed-slot--cal { min-height: 700px; }
@media (max-width: 760px) {
  .embed-slot--form { min-height: 1100px; }
  .embed-slot--cal { min-height: 640px; }
}
.embed-slot__label { font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; color: var(--ink-dark); }
.embed-slot__note { font-size: 14px; color: var(--ink-dark-soft); }

.onb__footer {
  padding-block: calc(2.5 * var(--leading)) calc(2 * var(--leading));
  border-top: 1px solid var(--divider);
  text-align: center;
}
.onb__footer p { font-size: 17px; color: var(--text-body); }
.onb__footer a { color: var(--accent-300); }
.onb__footer a:hover { color: var(--accent-200); }
.onb__fine { font-size: 13px !important; color: var(--faint) !important; }

/* --- Funnel page (join-network.html): one narrow column, video then form --- */
.funnel {
  max-width: 880px;
  margin: 0 auto;
  padding-block: calc(2.5 * var(--leading)) calc(2 * var(--leading));
}
.funnel__intro { margin-bottom: calc(1.5 * var(--leading)); }
.funnel__cta { margin-top: calc(1.25 * var(--leading)); }
/* .rule relies on .section padding elsewhere; the funnel has none */
.funnel .rule { margin-block: calc(2 * var(--leading)); }
.funnel__form { padding-top: var(--leading); }
.funnel__card { margin-top: calc(1.25 * var(--leading)); }


/* --- Lab Data Network page ------------------------------------------------ */
/* Hero network diagram: abstract, no lab names or locations */
.netviz { width: 100%; max-width: 560px; margin-inline: auto; }
.netviz svg { display: block; width: 100%; height: auto; }
.netviz__link { stroke: var(--accent); stroke-opacity: .32; stroke-width: 1; }
.netviz__link--soft { stroke: var(--accent-300); stroke-opacity: .14; }
.netviz__ring { fill: none; stroke: var(--accent-300); stroke-opacity: .16; }
.netviz__lab { fill: var(--surface); stroke: var(--accent-300); stroke-opacity: .7; stroke-width: 1.2; }
.netviz__lab--lit { fill: var(--accent); stroke: var(--accent-200); }
.netviz__core { fill: var(--accent-900); stroke: var(--accent); stroke-width: 1.5; }
.netviz__label { fill: var(--text); font-family: var(--font-heading); font-weight: 500; font-size: 17px; letter-spacing: .02em; }
.netviz__sub { fill: var(--accent-300); font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.netviz__signal { fill: var(--pulse); }
.netviz__pulse { fill: var(--accent-200); animation: netpulse 3.6s ease-in-out infinite; }
.netviz__pulse:nth-of-type(2n) { animation-delay: 1.2s; }
.netviz__pulse:nth-of-type(3n) { animation-delay: 2.4s; }
@keyframes netpulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .netviz__pulse { animation: none; opacity: .6; } }

/* Five-figure band: 3 + 2 on tablet, one row on desktop, carousel on mobile */
@media (min-width: 761px) { .stats__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* At-a-glance: figures plus three descriptive tiles */
.glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--leading);
  margin-top: calc(1.75 * var(--leading));
}
@media (min-width: 900px) { .glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.glance__tile {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius);
  background: rgba(9, 15, 49, 0.55);
  box-shadow: 0 0 0 1px rgba(192, 225, 253, 0.18);
}
.glance__tile .stat__label { margin-top: 0; margin-bottom: 12px; }
.glance__tile .tag-row { margin-top: 0; }
.glance__tile .tag { color: var(--text-body); border-color: rgba(192, 225, 253, 0.28); }

/* Icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--leading);
  margin-top: calc(1.5 * var(--leading));
}
.icon-tile { display: flex; flex-direction: column; gap: 14px; }
.icon-tile__mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--divider);
  color: var(--accent-300);
}
.icon-tile__mark svg { width: 24px; height: 24px; }
.icon-tile__label { font-family: var(--font-heading); font-weight: 500; font-size: 17px; line-height: 1.35; color: var(--text); }

/* Governance points */
.checks--grid { margin-top: calc(1.25 * var(--leading)); }
@media (min-width: 760px) {
  .checks--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px calc(1.5 * var(--leading)); }
}
.checks--grid li { color: var(--text-body); }

/* Biopharma band: light, so it reads as a different audience at a glance */
.band--pharma {
  padding-block: calc(3 * var(--leading));
  background: var(--text);
  color: var(--ink-dark);
}
.band--pharma .eyebrow { color: var(--hd-blue); }
.band--pharma .h2--lg { color: var(--ink-dark); max-width: 26ch; }
.band--pharma .btn-row { margin-top: var(--leading); }
.band__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--leading); align-items: end; }
@media (min-width: 900px) { .band__inner { grid-template-columns: minmax(0, 1fr) auto; } }

/* GHL sets the final height via form_embed.js; this reserves the space first */
.form-frame--lab { height: 896px; border: 0; border-radius: 8px; background: transparent; }

/* Join form: GHL embed slot with a field preview until the code arrives */
.ghl-slot { position: relative; }
.ghl-slot__flag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px dashed var(--accent-800);
  border-radius: 6px;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-800);
}
.mock-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .mock-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mock-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mock-form__field--full { grid-column: 1 / -1; }
.mock-form__label { font-size: 13px; font-weight: 500; color: var(--ink-dark); }
.mock-form__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #C9CDD8;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink-dark);
}
.mock-form__chips { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.mock-form__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #C9CDD8;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-dark);
}
.mock-form .btn { justify-self: start; min-height: 44px; }

/* --- Tumor-type bar chart (hcp-alerts) ------------------------------------
   Bar widths are classes so pages carry no inline styles. */
.tumors {
  list-style: none;
  margin: calc(1.25 * var(--leading)) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tumors__more .tumors { margin-top: 12px; }
.tumor {
  display: grid;
  grid-template-columns: minmax(150px, 15rem) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 18px;
}
.tumor__name { font-size: 15.5px; line-height: 1.35; color: var(--text-body); }
.tumor__track { height: 10px; border-radius: 5px; background: var(--surface-quiet); box-shadow: inset 0 0 0 1px var(--divider); overflow: hidden; }
.tumor__bar { display: block; height: 100%; border-radius: 5px; background: var(--grad); }
.tumor__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.tbar--100 { width: 100%; }
.tbar--64 { width: 64%; }
.tbar--51 { width: 51%; }
.tbar--41 { width: 41%; }
.tbar--38 { width: 38%; }
.tbar--18 { width: 18%; }
.tbar--13 { width: 13%; }
.tbar--10 { width: 10%; }
.tbar--8 { width: 8%; }
.tbar--5 { width: 5%; }
.tbar--3 { width: 3%; }
.tumors__more { margin-top: 12px; }
.tumors__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent-300);
  cursor: pointer;
  list-style: none;
}
.tumors__toggle::-webkit-details-marker { display: none; }
.tumors__toggle::after { content: "+"; font-size: 18px; line-height: 1; }
.tumors__more[open] .tumors__toggle::after { content: "\2212"; }
.tumors__more[open] .tumors__toggle { order: 2; }
.tumors__toggle:hover { color: var(--accent-200); }
@media (max-width: 600px) {
  .tumor { grid-template-columns: minmax(0, 1fr) 3rem; gap: 6px 12px; }
  .tumor__track { grid-column: 1 / -1; grid-row: 2; }
}

/* FAQ inside the demo page's left column */
.demo-faq { margin-top: calc(2 * var(--leading)); }
.demo-faq .faq { margin-top: var(--half); }

/* --- About page ----------------------------------------------------------- */
.about-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(1.5 * var(--leading));
  align-items: center;
  padding-block: calc(2.5 * var(--leading));
}
@media (min-width: 900px) {
  .about-founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(2.5 * var(--leading)); }
}
.about-founder__photo { margin: 0; max-width: 420px; }
.about-founder__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--divider), 0 24px 60px -24px rgba(3, 5, 20, 0.8);
}
.about-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--leading);
  margin: 0 0 calc(2.5 * var(--leading));
  padding-top: calc(1.5 * var(--leading));
  border-top: 1px solid var(--divider);
}
@media (min-width: 760px) { .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-facts dt {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.about-facts dd {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}
.footer__flag { flex: 0 0 auto; border-radius: 1px; }

/* Keep compound markers (HR+/HER2-) from splitting at the slash or hyphen */
.nowrap { white-space: nowrap; }

/* Print */
@media print {
  .orbitals, .nav__links .btn, .form-frame { display: none; }
  .page, .stats { background: #fff !important; }
  body { background: #fff; color: #111; }
  .body, .lede, .row__body, .step__body, .stat__label { color: #333; }
  .display .grad { color: #1438E1; -webkit-text-fill-color: #1438E1; }
  a { color: #1438E1; }
}
