/* ==========================================================================
   The public landing page. Values come from tokens.css only.

   One signature moment: a heartbeat trace drawn in the zone colours runs
   behind the phone, with six readouts set on an ellipse around it.
   ========================================================================== */

.landing { overflow: hidden; }
.landing h1, .landing h2, .landing h3 { margin: var(--space-0); text-wrap: balance; text-transform: none; letter-spacing: var(--tracking-display); }
.landing p, .landing li { text-wrap: pretty; }
.landing em { font-style: italic; color: var(--mark); }
.landing .on-dark em, .on-dark em { color: var(--sky); }

.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--space-6); }

/* glass: frosted white over the aura */
.glass {
  background: var(--veil);
  -webkit-backdrop-filter: var(--veil-filter); backdrop-filter: var(--veil-filter);
  border: var(--hairline) solid var(--veil-edge);
  box-shadow: var(--shadow-glass);
}
.glass--dark {
  background: var(--veil-dark);
  border-color: var(--veil-dark-edge);
  box-shadow: var(--shadow-glass-dark);
}

/* buttons on the landing page are a size up from the sign-in capsule */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tile); padding: var(--space-0) var(--space-6); border-radius: var(--radius-full);
  font: var(--weight-medium) var(--text-md) / var(--leading-none) var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.cta svg { width: var(--icon); height: var(--icon); }
.cta--ink { background: var(--ink); color: var(--paper); }
.cta--ink:hover { background: var(--lilac); transform: translateY(-1px); }
.cta--line { background: var(--veil); color: var(--ink); box-shadow: inset 0 0 0 var(--hairline) var(--pebble); }
.cta--line:hover { box-shadow: inset 0 0 0 var(--hairline) var(--ink); }
.cta--paper { background: var(--paper); color: var(--ink); }
.cta--paper:hover { background: var(--white); }
.cta--ghost { color: var(--paper); box-shadow: inset 0 0 0 var(--hairline) var(--text-on-dark-quiet); }
.cta--ghost:hover { box-shadow: inset 0 0 0 var(--hairline) var(--paper); }
.cta--sm { min-height: var(--control-md); padding: var(--space-0) var(--space-4); font-size: var(--text-sm); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-row--center { justify-content: center; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: relative; z-index: var(--layer-nav);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6);
  padding-block: var(--space-5);
}
.site-nav__links { display: flex; gap: var(--space-6); margin-inline: auto; }
.site-nav__end { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.nav-link {
  padding: var(--space-3) var(--space-1); color: var(--text-quiet); text-decoration: none;
  font: var(--weight-medium) var(--text-sm) / var(--leading-none) var(--font-body);
}
.nav-link:hover { color: var(--text-primary); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: var(--space-12); padding-bottom: var(--space-18); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.hero__title {
  font: var(--weight-regular) var(--text-hero) / var(--leading-display) var(--font-serif);
  white-space: nowrap;
}
.hero__lede { max-width: var(--measure); font-size: var(--text-lede); line-height: var(--leading-normal); color: var(--text-quiet); }
.hero__aura {
  position: absolute; left: 50%; top: 45%; z-index: 0; width: var(--aura-size); height: var(--aura-size);
  border-radius: 50%; background: var(--aura-hero); filter: var(--blur-wide);
  transform: translateX(-50%); animation: drift var(--duration-aura) ease-in-out infinite alternate;
}

.orbit {
  position: relative; z-index: 1; width: 100%; max-width: var(--orbit-max); height: var(--orbit-height);
  margin-top: var(--space-8); text-align: left;
}
.orbit__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__rings .outer { fill: none; stroke: var(--pebble); stroke-dasharray: 2 7; }
.orbit__rings .inner { fill: none; stroke: var(--border); }
.orbit__trace { position: absolute; left: -10%; top: 38%; z-index: 0; width: 120%; height: 23%; }
.orbit__trace path {
  fill: none; stroke: url(#zone-trace); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
.zone-stop-0 { stop-color: var(--zone-0); }
.zone-stop-0.fade { stop-opacity: 0; }
.zone-stop-1 { stop-color: var(--zone-1); }
.zone-stop-2 { stop-color: var(--zone-2); }
.zone-stop-3 { stop-color: var(--zone-3); }
.zone-stop-4 { stop-color: var(--zone-4); }
.zone-stop-5 { stop-color: var(--zone-5); }
.zone-stop-5.fade { stop-opacity: 0; }

.orbit-card {
  position: absolute; z-index: 3; width: var(--orbit-card-width); height: var(--orbit-card-height);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translate(-50%, -50%);
}
/* six stations on the outer ellipse: upper, middle and lower on each side */
.orbit-card--1 { left: 25%; top: 23%; }
.orbit-card--2 { left: 12.5%; top: 50%; }
.orbit-card--3 { left: 25%; top: 77%; }
.orbit-card--4 { left: 75%; top: 23%; }
.orbit-card--5 { left: 87.5%; top: 50%; }
.orbit-card--6 { left: 75%; top: 77%; }
.orbit-card__head { display: flex; justify-content: space-between; align-items: center; }
.orbit-card__tag { font: var(--weight-medium) var(--text-xs) / var(--leading-none) var(--font-body); }
.orbit-card__figure { display: flex; align-items: baseline; gap: var(--space-1); }
.orbit-card__figure .serif { font-size: var(--text-2xl); line-height: 0.9; }
.orbit-card__note { font-size: var(--text-xs); color: var(--text-quiet); }
.tag-positive { color: var(--positive); }
.tag-mark { color: var(--mark); }
.tag-sleep { color: var(--score-sleep); }

.pulse-dot { position: relative; width: var(--dot); height: var(--dot); }
.pulse-dot::before, .pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--coral); }
.pulse-dot::before { animation: pulse 1.05s ease-out infinite; }

/* the phone in the middle of the orbit */
.phone {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: var(--phone-width); height: var(--phone-height); padding: var(--space-2);
  border-radius: var(--radius-phone); background: var(--ink); box-shadow: var(--shadow-phone);
  transform: translate(-50%, -50%);
}
.phone__screen {
  height: 100%; overflow: hidden; border-radius: var(--radius-screen); background: var(--paper);
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-12) var(--space-4) var(--space-4);
}
.phone__bar { display: flex; justify-content: space-between; align-items: center; }
.phone__title { font: var(--weight-regular) var(--text-display) / var(--leading-none) var(--font-serif); }
.chip {
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-full); background: var(--white);
  box-shadow: inset 0 0 0 var(--hairline) var(--border); font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-body);
}
.phone__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-0); text-align: center; font-size: var(--text-xs); color: var(--text-faint); }
.phone__week span { display: flex; flex-direction: column; padding-block: var(--space-1); border-radius: var(--radius-sm); }
.phone__week b { font-weight: var(--weight-regular); color: var(--ink); }
.phone__week .is-today { background: var(--ink); color: var(--paper); }
.phone__week .is-today b { color: var(--paper); font-weight: var(--weight-medium); }
.phone__week .is-future { opacity: var(--opacity-disabled); }
.phone__bpm { text-align: center; }
.phone__bpm .serif { display: block; font-size: var(--text-giant); line-height: 0.85; }
.phone__live { display: flex; justify-content: center; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--text-faint); }
.phone__live::before { content: ""; width: var(--space-1); height: var(--space-1); border-radius: 50%; background: var(--coral); }
.phone__spark { width: 100%; height: var(--spark-height); }
.phone__rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.phone__ring { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-1); border-radius: var(--radius-md); background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.phone__ring svg { width: var(--ring-xs); height: var(--ring-xs); }
.phone__ring span { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.phone__rows { border-radius: var(--radius-md); background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.phone__row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
.phone__row + .phone__row { border-top: var(--hairline) solid var(--border); }
.phone__row b { flex: 1; font-weight: var(--weight-medium); }
.phone__row small { display: block; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--text-faint); }

/* ── shared section scaffolding ─────────────────────────────────────────── */
.section { position: relative; padding-block: var(--space-18); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6) var(--space-12); margin-bottom: var(--space-12); }
.section-head__title { flex: 1 1 var(--basis-lg); max-width: var(--measure-head); display: flex; flex-direction: column; gap: var(--space-4); }
.section-head__lede { flex: 0 1 var(--basis-sm); font-size: var(--text-md); line-height: var(--leading-normal); color: var(--text-quiet); }
.section-title { font: var(--weight-regular) var(--text-section) / 0.98 var(--font-serif); }
.lede { font-size: var(--text-md); line-height: var(--leading-normal); color: var(--text-quiet); max-width: var(--measure); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); gap: var(--space-5); }
.cards + .cards { margin-top: var(--space-5); }

/* ── principles strip ───────────────────────────────────────────────────── */
.principles { border-block: var(--hairline) solid var(--border); background: var(--veil); }
.principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cell-min)), 1fr)); gap: var(--space-6); padding-block: var(--space-6); }
.principle { display: flex; gap: var(--space-4); align-items: flex-start; }
.principle__n { width: var(--space-8); font: var(--weight-regular) var(--text-stat) / var(--leading-none) var(--font-serif); color: var(--mark); }
.principle__title { font-weight: var(--weight-medium); }
.principle__text { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-faint); }

/* ── how it works ───────────────────────────────────────────────────────── */
.step {
  display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8);
  border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border);
}
.step__top { display: flex; justify-content: space-between; align-items: center; height: var(--tile); }
.icon-tile {
  display: grid; place-items: center; flex: none; width: var(--tile); height: var(--tile);
  border-radius: var(--radius-sm); background: var(--paper); box-shadow: inset 0 0 0 var(--hairline) var(--border);
}
.icon-tile svg { width: var(--icon); height: var(--icon); }
.step__n { font: var(--weight-regular) var(--text-2xl) / var(--leading-none) var(--font-serif); color: var(--pebble); }
.step__title { font: var(--weight-regular) var(--text-stat) / var(--leading-none) var(--font-serif); }
.step__text { min-height: calc(var(--text-md) * var(--leading-normal) * 3); color: var(--text-quiet); }
.step__foot {
  display: flex; align-items: center; gap: var(--space-2); height: var(--space-8); margin-top: auto;
  padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); font-size: var(--text-sm); color: var(--text-quiet);
}
.step__foot--positive { color: var(--positive); }
.step__foot .progress { flex: 1; }
.pill {
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--paper);
  box-shadow: inset 0 0 0 var(--hairline) var(--border); font-size: var(--text-xs); color: var(--text-primary);
}

/* ── score cards ────────────────────────────────────────────────────────── */
.aura-blob { position: absolute; z-index: 0; border-radius: 50%; filter: var(--blur-soft); pointer-events: none; }
.aura-blob--sky { left: -15%; top: 10%; width: var(--aura-size-md); height: var(--aura-size-md); background: var(--aura-sky); }
.aura-blob--peach { right: -12%; bottom: 3%; width: var(--aura-size-sm); height: var(--aura-size-sm); background: var(--aura-peach); }
.section > .wrap { position: relative; z-index: 1; }

.feature { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6); border-radius: var(--radius-lg); }
.feature__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: var(--ring-lg); }
.feature__head > div { display: flex; flex-direction: column; gap: var(--space-2); }
.feature__title { font: var(--weight-regular) var(--text-stat) / var(--leading-none) var(--font-serif); }
.feature__ring { width: var(--ring-lg); height: var(--ring-lg); flex: none; }
.feature__body { min-height: var(--chart-sm); }
.feature__foot { margin-top: auto; font-size: var(--text-sm); color: var(--text-quiet); }
.lift { transition: transform var(--duration-base) var(--ease-out); }
.lift:hover { transform: translateY(calc(var(--space-1) * -1)); }

.rows { margin: var(--space-0); display: flex; flex-direction: column; font-size: var(--text-sm); }
.rows > div {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3);
  height: var(--space-8); border-top: var(--hairline) solid var(--border);
}
.rows > div:last-child { border-bottom: var(--hairline) solid var(--border); }
.rows dt { display: flex; align-items: center; gap: var(--space-2); color: var(--text-quiet); }
.rows dd { margin: var(--space-0); font-variant-numeric: tabular-nums; }
.rows--stages > div { grid-template-columns: var(--stage-label) 1fr var(--stage-value); }
.rows--stages dd { text-align: right; }


.insight { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--veil-strong); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.insight + .insight { margin-top: var(--space-4); }
.insight .icon-tile { width: var(--tile-sm); height: var(--tile-sm); border: 0; box-shadow: none; color: var(--white); }
.insight .icon-recovery { background: var(--mint); }
.insight .icon-danger { background: var(--coral); }
.insight__text { flex: 1; font-size: var(--text-sm); line-height: var(--leading-snug); }
.insight__text small { display: block; margin-top: var(--space-1); font-size: var(--text-xs); color: var(--text-faint); }
.insight__delta { font: var(--weight-regular) var(--text-display) / var(--leading-none) var(--font-serif); }

.trend-figure { display: flex; align-items: baseline; gap: var(--space-2); }
.trend-figure .serif { font-size: var(--text-2xl); line-height: var(--leading-none); }
.trend-chart { width: 100%; height: auto; display: block; margin-top: var(--space-4); }

/* ── live workouts: the dark band ───────────────────────────────────────── */
.on-dark { color: var(--paper); }
.band-dark { background: var(--ocean-deep); overflow: hidden; }
.aura-blob--coral { left: 50%; top: 40%; width: var(--aura-size-md); height: var(--aura-size-md); background: var(--aura-coral); filter: var(--blur-wide); }
.split-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.split-row > * { flex: 1 1 var(--basis-md); min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: var(--space-6); }
.on-dark .lede { color: var(--text-on-dark-quiet); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cell-min)), 1fr)); column-gap: var(--space-6); max-width: var(--measure); font-size: var(--text-sm); }
.check-grid li { display: flex; align-items: center; gap: var(--space-3); height: var(--tile); border-top: var(--hairline) solid var(--rule-on-dark); }
.check-grid li::before { content: ""; width: var(--space-1); height: var(--space-1); border-radius: 50%; background: var(--sky); flex: none; }

.instrument { width: min(100%, var(--instrument-width)); margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-xl); }
.instrument__status { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.instrument__status span:first-child { display: flex; align-items: center; gap: var(--space-2); }
.instrument__status span:first-child::before { content: ""; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--sky); }
.instrument__status span:last-child { color: var(--text-on-dark-quiet); }
.instrument__clock { font: var(--weight-regular) var(--text-figure) / var(--leading-none) var(--font-serif); font-variant-numeric: tabular-nums; }
.instrument__main { display: flex; align-items: center; gap: var(--space-6); }
.instrument__main svg { width: var(--ring-xl); height: var(--ring-xl); flex: none; }
.instrument__side { display: flex; flex-direction: column; gap: var(--space-3); }
.zone-chip { align-self: flex-start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--paper); color: var(--lilac); font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-body); }
.stat-label { font-size: var(--text-xs); color: var(--text-on-dark-quiet); }
.stat-value { font: var(--weight-regular) var(--text-stat) / var(--leading-tight) var(--font-serif); }
.zone-strip { width: 100%; height: var(--space-3); display: block; border-radius: var(--radius-full); overflow: hidden; }
.instrument__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.instrument__tiles div { padding: var(--space-3); border-radius: var(--radius-md); background: var(--veil-dark-fill); }
.instrument__tiles .stat-value { font-size: var(--text-display); }

/* ── span ───────────────────────────────────────────────────────────────── */
.aura-blob--teal { inset: 10% 0 0 10%; background: var(--aura-teal); filter: var(--blur-mid); }
.span-card { position: relative; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-xl); }
.span-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6); }
.span-card__age { font: var(--weight-regular) var(--text-giant) / 0.9 var(--font-serif); font-variant-numeric: tabular-nums; }
.span-card__badges { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-quiet); }
.badge-positive { padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--wash-positive); color: var(--positive); font-weight: var(--weight-medium); }
.range-rows { display: flex; flex-direction: column; font-size: var(--text-sm); }
.range-row { display: grid; grid-template-columns: var(--label-col) 1fr var(--tile); align-items: center; gap: var(--space-4); height: var(--control-md); border-top: var(--hairline) solid var(--border); }
.range-row:last-child { border-bottom: var(--hairline) solid var(--border); }
.range-row svg { width: 100%; height: auto; display: block; }
.range-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-md); align-self: flex-start; color: var(--mark); font-weight: var(--weight-medium); text-decoration: none; }
.text-link svg { width: var(--icon); height: var(--icon); }
.text-link:hover { color: var(--lilac); }
.order-first { order: -1; }

/* ── web dashboard preview ──────────────────────────────────────────────── */
.aura-blob--pair { left: 50%; top: 30%; width: var(--aura-size); height: var(--aura-size-sm); background: var(--aura-pair); filter: var(--blur-wide); transform: translateX(-50%); }
.center-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; margin-bottom: var(--space-12); }
.browser { max-width: var(--browser-max); margin-inline: auto; padding: var(--space-2); border-radius: var(--radius-lg); }
.browser__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); }
.browser__bar i { width: var(--space-3); height: var(--space-3); border-radius: 50%; background: var(--border); }
.browser__url { margin-inline: auto; padding: var(--space-1) var(--space-4); border-radius: var(--radius-full); background: var(--veil-strong); font-size: var(--text-xs); color: var(--text-faint); }
.browser__page { display: flex; min-height: var(--orbit-card-width); overflow: hidden; border-radius: var(--radius-md); background: var(--paper); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.browser__side { width: var(--browser-side); flex: none; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-3); border-right: var(--hairline) solid var(--border); font-size: var(--text-sm); color: var(--text-quiet); }
.browser__side .brand__name { padding: var(--space-0) var(--space-2) var(--space-3); font-size: var(--text-display); color: var(--ink); }
.browser__side span { padding: var(--space-2); border-radius: var(--radius-sm); }
.browser__side .is-current { background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); color: var(--ink); font-weight: var(--weight-medium); }
.browser__main { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cell-min)), 1fr)); gap: var(--space-3); align-content: start; padding: var(--space-6); }
.browser__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.browser__head .serif { font-size: var(--text-page); }
.browser__head small { font-size: var(--text-xs); color: var(--text-faint); }
.mini-score { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.mini-score svg { width: var(--ring-sm); height: var(--ring-sm); flex: none; }
.mini-score small { display: block; font-size: var(--text-xs); color: var(--text-quiet); }
.mini-score .serif { font-size: var(--text-stat); line-height: var(--leading-none); }
.mini-chart { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.mini-chart > div { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-quiet); }
.mini-chart svg { width: 100%; height: var(--chart-sm); display: block; }

/* ── ownership and MCP: twin cards ──────────────────────────────────────── */
.pair-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-12) var(--space-8); border-radius: var(--radius-xl); }
.pair-card--light { background: var(--white); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.pair-card--dark { background: var(--night); }
.pair-card__title { font: var(--weight-regular) var(--text-pair) / var(--leading-none) var(--font-serif); }
.pair-card .lede { min-height: calc(var(--text-md) * var(--leading-normal) * 2); }
.pair-card > * { position: relative; }
.pair-card .aura-blob { position: absolute; right: -20%; bottom: -25%; width: var(--aura-size-xs); height: var(--aura-size-xs); background: var(--aura-sky); filter: var(--blur-card); }
.chain { margin: var(--space-0); margin-top: auto; padding: var(--space-0); list-style: none; }
.chain li { display: flex; align-items: center; gap: var(--space-4); height: var(--row-tall); border-top: var(--hairline) solid var(--border); }
.chain li:last-child { border-bottom: var(--hairline) solid var(--border); }
.chain b { display: grid; place-items: center; width: var(--tile-sm); height: var(--tile-sm); flex: none; border-radius: var(--radius-sm); font: var(--weight-medium) var(--text-xs) / var(--leading-none) var(--font-body); }
.chain span { flex: 1; }
.chain small { font-size: var(--text-sm); color: var(--text-faint); }
.chain-1 { background: var(--night); color: var(--sky); }
.chain-2 { background: var(--lilac); color: var(--sky); }
.chain-3 { background: var(--mint); color: var(--white); }
.chain-4 { background: var(--sky); color: var(--lilac); }
.chat { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); min-height: var(--chart-md); padding: var(--space-5); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: var(--leading-normal); }
.chat__ask { align-self: flex-end; max-width: 80%; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md) var(--radius-md) var(--space-1) var(--radius-md); background: var(--paper); color: var(--ink); }
.chat__tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat__tools code { padding: var(--space-1) var(--space-2); border-radius: var(--space-1); background: var(--veil-dark-fill); color: var(--sky); font: var(--text-xs) / var(--leading-snug) var(--font-mono); }

/* ── good to know ───────────────────────────────────────────────────────── */
.notes { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-12); padding-top: var(--space-12); border-top: var(--hairline) solid var(--pebble); }
.notes__title { flex: 1 1 var(--basis-xs); font: var(--weight-regular) var(--text-2xl) / var(--leading-none) var(--font-serif); }
.notes__grid { flex: 3 1 var(--basis-xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cell-min)), 1fr)); gap: var(--space-8); }
.notes__grid h3 { margin-bottom: var(--space-2); font: var(--weight-medium) var(--text-md) / var(--leading-snug) var(--font-body); letter-spacing: var(--tracking-normal); }
.notes__grid p { font-size: var(--text-sm); color: var(--text-quiet); }

/* ── final call ─────────────────────────────────────────────────────────── */
.finale { padding: var(--space-0) var(--space-6) var(--space-6); }
.finale__card {
  position: relative; overflow: hidden; max-width: var(--page-max-wide); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
  padding: var(--space-18) var(--space-8); border-radius: var(--radius-2xl); background: var(--ocean-deep); text-align: center;
}
.finale__card > * { position: relative; }
.finale__title { font: var(--weight-regular) var(--text-cta) / 0.9 var(--font-serif); }
.finale .lede { font-size: var(--text-lg); color: var(--text-on-dark-quiet); }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); padding-block: var(--space-12); font-size: var(--text-sm); color: var(--text-faint); }
.site-footer a { color: var(--text-quiet); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }
.site-footer .brand__name { font-size: var(--text-xl); color: var(--ink); }
.site-footer__end { margin-left: auto; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes drift { 0% { transform: translate(-50%, 0) scale(1); } 100% { transform: translate(-50%, var(--space-8)) scale(1.06); } }

@media (max-width: 860px) {
  .site-nav__links { display: none; }
  .orbit { height: var(--orbit-height-sm); }
  .orbit-card, .orbit__rings { display: none; }
  .hero__title { white-space: normal; }
  .browser__side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit__trace path { stroke-dashoffset: 0; }
}
