/* =========================================================================
   SomaNavi — design system
   Concept: "Clinical editorial". A calm ivory/ink base, one accent per job,
   and a single ownable graphic device: the SPINE — a timeline rail with
   event nodes, a delay gap and a return to baseline. The spine is drawn
   from what the product actually does, so it repeats across both pages.
   ========================================================================= */

:root {
  /* --- ground ------------------------------------------------------- */
  --ink: #0a1512;
  --ink-2: #10201b;
  --ink-3: #1a2e28;
  --forest: #0e4234;
  --forest-2: #135442;

  --paper: #f4f2ea;
  --paper-2: #fbfaf5;
  --paper-3: #eae7db;

  /* --- signal ------------------------------------------------------- */
  /* lime = available / live / primary action. Nothing else. */
  --lime: #c9ec4c;
  --lime-2: #dbfa72;
  --lime-dim: rgba(201, 236, 76, 0.14);
  /* clay = the body's own signal: symptom traces, and work still to come. */
  --clay: #d9613f;
  --clay-2: #ef7a58;
  --clay-dim: rgba(217, 97, 63, 0.12);

  /* --- text --------------------------------------------------------- */
  --tx: #0a1512;
  --tx-2: #4a5652;
  --tx-3: #78827d;
  --tx-on: #f3f1e9;
  --tx-on-2: #a9b6b0;
  --tx-on-3: #75837c;

  /* --- lines & fields ----------------------------------------------- */
  --hair: rgba(10, 21, 18, 0.13);
  --hair-soft: rgba(10, 21, 18, 0.07);
  --hair-on: rgba(255, 255, 255, 0.13);
  --hair-on-soft: rgba(255, 255, 255, 0.07);
  --field: rgba(255, 255, 255, 0.55);
  --field-on: rgba(255, 255, 255, 0.045);

  /* --- type --------------------------------------------------------- */
  --serif: "Iowan Old Style", "Charter", "Georgia", "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", "Cascadia Mono", ui-monospace, monospace;

  /* --- geometry ----------------------------------------------------- */
  --shell: min(1180px, 100% - 96px);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --header-h: 68px;
  --band: clamp(80px, 9.5vw, 136px);

  /* --- elevation ---------------------------------------------------- */
  --lift-1: 0 1px 2px rgba(10, 21, 18, 0.04), 0 8px 22px -14px rgba(10, 21, 18, 0.28);
  --lift-2: 0 2px 4px rgba(10, 21, 18, 0.05), 0 26px 50px -26px rgba(10, 21, 18, 0.36);
  --lift-dark: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 70px -34px rgba(0, 0, 0, 0.75);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================================
   base
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--tx);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-feature-settings: "kern" 1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine paper grain. Warmth without imagery. */
body::after {
  position: fixed;
  z-index: 60;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 650;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* =========================================================================
   type primitives
   ========================================================================= */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  flex: 0 0 auto;
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.kicker.on-dark {
  color: var(--lime);
}

.kicker .num {
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

/* Display type: the peak has been pulled down from 112px to 68px.
   Presence now comes from measure, weight contrast and space — not scale. */
.display {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display em {
  color: var(--forest);
  font-style: italic;
}

.on-dark .display em,
.display.on-dark em {
  color: var(--lime);
}

h2.display {
  font-size: clamp(32px, 4vw, 50px);
}

html[data-lang="zh"] .display {
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

html[data-lang="zh"] h2.display {
  font-size: clamp(28px, 3.5vw, 43px);
}

.lede {
  max-width: 56ch;
  color: var(--tx-2);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  text-wrap: pretty;
}

.lede.on-dark {
  color: var(--tx-on-2);
}

.meta {
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================================
   buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.btn .arw {
  font-size: 15px;
  transition: transform 220ms var(--ease);
}

.btn:hover .arw,
.btn:focus-visible .arw {
  transform: translateX(3px);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 10px 24px -12px rgba(94, 122, 20, 0.85);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--lime-2);
  box-shadow: 0 16px 30px -14px rgba(94, 122, 20, 0.9);
}

.btn-quiet {
  border-color: var(--hair);
  color: var(--tx);
  background: var(--field);
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  border-color: var(--tx);
  background: var(--paper-2);
}

.btn-quiet.on-dark {
  border-color: var(--hair-on);
  color: var(--tx-on);
  background: rgba(255, 255, 255, 0.05);
}

.btn-quiet.on-dark:hover,
.btn-quiet.on-dark:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13.5px;
  font-weight: 650;
  transition: opacity 180ms var(--ease);
}

.textlink:hover {
  opacity: 0.6;
}

/* =========================================================================
   status tokens — one visual grammar shared by both pages
   A descending ladder of "how real is this", legible at a glance:
   live  : solid lime, highest contrast   → open it right now
   beta  : lime outline                   → live, but explicitly unfinished
   dev   : clay, dashed                   → being built, nothing to open
   soon  : neutral, dotted, lowest weight → an intention, no date promised
   ========================================================================= */

.status {
  display: inline-flex;
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.status .dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: var(--ink);
  background: var(--lime);
}

.status-live .dot {
  position: relative;
  background: var(--forest);
}

.status-live .dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  content: "";
  animation: ping 2.6s var(--ease) infinite;
}

@keyframes ping {
  0% { opacity: 0.7; transform: scale(0.4); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

/* The pulse means "this is running right now". In a key or a diagram it is
   just noise, so only genuine product-status badges keep it. */
.legend .status-live .dot::after,
.arch .status-live .dot::after {
  display: none;
}

/* on paper */
.status-beta {
  border-color: rgba(14, 66, 52, 0.28);
  color: var(--forest);
  background: rgba(201, 236, 76, 0.34);
}

/* on any dark ground */
.band-dark .status-beta,
.band-forest .status-beta,
.panel .status-beta,
.arch .status-beta,
.applisting .status-beta {
  border-color: rgba(201, 236, 76, 0.55);
  color: var(--lime);
  background: var(--lime-dim);
}

.status-dev {
  border-style: dashed;
  border-color: rgba(217, 97, 63, 0.55);
  color: var(--clay);
  background: var(--clay-dim);
}

.status-dev .dot {
  border-radius: 1px;
  transform: rotate(45deg);
}

.status-soon {
  border-style: dotted;
  border-color: rgba(10, 21, 18, 0.3);
  color: var(--tx-3);
  background: transparent;
}

.band-dark .status-soon,
.band-forest .status-soon,
.arch .status-soon {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--tx-on-3);
}

.status-soon .dot {
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* =========================================================================
   the SPINE — shared timeline device
   ========================================================================= */

.spine {
  --rail: rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.spine.on-paper {
  --rail: rgba(10, 21, 18, 0.22);
}

.spine-stop {
  position: relative;
  padding-top: 30px;
  min-width: 0;
  text-align: center;
}

/* connector entering this stop from the previous one */
.spine-stop::before {
  position: absolute;
  z-index: 0;
  top: 10px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--rail);
  content: "";
  transform-origin: left center;
}

.spine-stop:first-child::before {
  display: none;
}

.spine-stop[data-link="delay"]::before {
  background: repeating-linear-gradient(90deg, var(--rail) 0 5px, transparent 5px 11px);
}

.spine-stop[data-link="episode"]::before {
  top: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--clay);
}

.spine-stop[data-link="fade"]::before {
  top: 9px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clay), rgba(217, 97, 63, 0.25));
}

.spine-node {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--rail);
  border-radius: 50%;
  background: var(--ink-2);
  transform: translateX(-50%);
}

.spine.on-paper .spine-node {
  background: var(--paper-2);
}

.spine-node.is-onset,
.spine-node.is-peak {
  border-color: var(--clay);
  background: var(--clay);
}

.spine-node.is-peak {
  box-shadow: 0 0 0 4px var(--clay-dim);
}

.spine-node.is-clear {
  border-color: var(--lime);
  background: transparent;
  box-shadow: 0 0 0 4px var(--lime-dim);
}

.spine-stop small {
  display: block;
  color: var(--tx-on-3);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.spine.on-paper .spine-stop small {
  color: var(--tx-3);
}

.spine-stop b {
  display: block;
  margin-top: 5px;
  padding-inline: 2px;
  color: var(--tx-on);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  text-wrap: balance;
}

.spine.on-paper .spine-stop b {
  color: var(--tx);
}

/* draw-in: rails wipe left→right, nodes settle after */
.has-js .spine-stop::before {
  transform: scaleX(0);
}

.has-js .spine-node {
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}

.has-js .is-visible .spine-stop::before,
.has-js .is-visible.spine .spine-stop::before {
  transform: scaleX(1);
  transition: transform 620ms var(--ease);
}

.has-js .is-visible .spine-node,
.has-js .is-visible.spine .spine-node {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition: opacity 300ms var(--ease), transform 420ms var(--ease);
}

.spine-stop:nth-child(2)::before { transition-delay: 120ms; }
.spine-stop:nth-child(3)::before { transition-delay: 340ms; }
.spine-stop:nth-child(4)::before { transition-delay: 560ms; }
.spine-stop:nth-child(5)::before { transition-delay: 760ms; }
.spine-stop:nth-child(1) .spine-node { transition-delay: 60ms; }
.spine-stop:nth-child(2) .spine-node { transition-delay: 420ms; }
.spine-stop:nth-child(3) .spine-node { transition-delay: 640ms; }
.spine-stop:nth-child(4) .spine-node { transition-delay: 860ms; }
.spine-stop:nth-child(5) .spine-node { transition-delay: 1040ms; }

/* =========================================================================
   header
   ========================================================================= */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(244, 242, 234, 0.72);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--hair);
  background: rgba(244, 242, 234, 0.9);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  color: var(--tx-2);
  transition: color 180ms var(--ease);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1.5px;
  background: var(--clay);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--tx);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

/* language: a real segmented control, not two loose glyphs */
.lang {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.lang span {
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--tx-3);
  line-height: 1.4;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.lang .lang-active {
  color: var(--paper-2);
}

.lang::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform 260ms var(--ease);
}

.lang[aria-pressed="true"]::before {
  transform: translateX(100%);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-2);
  background: var(--ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--forest);
  color: var(--paper-2);
  background: var(--forest);
}

.header-cta .cta-short {
  display: none;
}

/* =========================================================================
   HOME — hero
   ========================================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(44px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(52px, 6vw, 86px) clamp(64px, 7vw, 104px);
}

.hero-copy > * + * {
  margin-top: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
}

/* Each clause owns a line. Prevents the loose gap a full-width comma
   leaves at a Chinese line break, and stops "appointments." orphaning. */
.hero h1 > span,
.hero h1 > em,
.apps-hero h1 > span,
.apps-hero h1 > em {
  display: block;
}

html[data-lang="zh"] .hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}

.hero .lede {
  max-width: 30em;
}

html[data-lang="zh"] .hero .lede {
  max-width: 24em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* the honest availability strip: exactly what exists today */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 9px 18px 9px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.avail-text {
  color: var(--tx-2);
  font-size: 13px;
  line-height: 1.4;
}

.avail-text b {
  color: var(--tx);
  font-weight: 650;
}

/* --- the transform panel: chat → extraction → timeline ------------------ */

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair-on);
  border-radius: var(--r-lg);
  color: var(--tx-on);
  background:
    radial-gradient(90% 60% at 78% 0%, rgba(201, 236, 76, 0.1), transparent 70%),
    linear-gradient(178deg, var(--ink-3) 0%, var(--ink) 62%);
  box-shadow: var(--lift-dark);
}

.panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}

.panel-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair-on-soft);
  color: var(--tx-on-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-bar .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}

.panel-bar .tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.panel-body {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
}

/* numbered stage headings inside the panel */
.stage {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx-on-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--hair-on);
  border-radius: 50%;
  color: var(--lime);
  font-style: normal;
  font-size: 9px;
}

.stage + * {
  margin-top: 12px;
}

.stage:not(:first-child) {
  margin-top: 26px;
}

.said {
  padding: 16px 18px;
  border: 1px solid var(--hair-on);
  border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--hair-on);
  border-radius: 999px;
  background: var(--field-on);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
}

.chip small {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.has-js .chip {
  opacity: 0;
  transform: translateY(5px);
}

.has-js .is-visible .chip {
  opacity: 1;
  transform: none;
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}

.chip:nth-child(1) { transition-delay: 260ms; }
.chip:nth-child(2) { transition-delay: 360ms; }
.chip:nth-child(3) { transition-delay: 460ms; }
.chip:nth-child(4) { transition-delay: 560ms; }
.chip:nth-child(5) { transition-delay: 660ms; }

.panel-spine {
  padding: 22px 4px 4px;
  border-top: 1px solid var(--hair-on-soft);
  margin-top: 22px;
}

.panel-foot {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--hair-on-soft);
  color: var(--tx-on-3);
  background: rgba(0, 0, 0, 0.18);
  font-size: 11.5px;
  line-height: 1.5;
}

.panel-foot .mk {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--lime);
  font-weight: 700;
}

/* =========================================================================
   HOME — section shells
   ========================================================================= */

.band {
  padding-block: var(--band);
}

.band-dark {
  color: var(--tx-on);
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(201, 236, 76, 0.055), transparent 70%),
    var(--ink);
}

.band-forest {
  color: var(--tx-on);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(201, 236, 76, 0.08), transparent 70%),
    var(--forest);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 20px clamp(40px, 6vw, 88px);
  align-items: end;
}

.section-head > .kicker {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.section-head .lede {
  padding-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
}

/* --- 01 the missing days: 14-day strip ---------------------------------- */

.gap-copy > * + * {
  margin-top: 22px;
}

.gapstrip {
  padding: 22px 22px 18px;
  border: 1px solid var(--hair-on);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.gapstrip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-on-soft);
}

.gapstrip-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tx-on-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gapstrip-head span i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
}

.gapstrip-head span + span i {
  background: var(--clay);
}

.gapstrip-plot {
  position: relative;
  height: clamp(150px, 20vw, 210px);
  margin-top: 46px;
}

/* the shaded window: everything between two appointments */
.gapstrip-window {
  position: absolute;
  z-index: 0;
  top: -22px;
  right: calc(100% / 14 - 3px);
  bottom: 0;
  left: calc(100% / 14 - 3px);
  border-right: 1px dashed rgba(201, 236, 76, 0.4);
  border-left: 1px dashed rgba(201, 236, 76, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.gapstrip-window em {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 4px 11px;
  border: 1px solid var(--hair-on);
  border-radius: 999px;
  color: var(--tx-on-2);
  background: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.09em;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.gapstrip-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: clamp(2px, 0.6vw, 6px);
  height: 100%;
}

.gapstrip-bars li {
  position: relative;
  height: max(3px, calc(var(--v) * 100%));
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--clay), rgba(217, 97, 63, 0.32));
  transform-origin: bottom;
}

.gapstrip-bars li.visit {
  height: 100%;
  border-radius: 3px;
  background: rgba(201, 236, 76, 0.16);
  box-shadow: inset 0 0 0 1px rgba(201, 236, 76, 0.45);
}

.gapstrip-bars li.visit b {
  position: absolute;
  top: -18px;
  left: 50%;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.has-js .gapstrip-bars li {
  transform: scaleY(0.02);
}

.has-js .is-visible .gapstrip-bars li {
  transform: scaleY(1);
  transition: transform 560ms var(--ease);
}

/* the two appointment columns fade rather than scale — their labels sit
   outside the bar and would be squashed by a vertical scale */
.has-js .gapstrip-bars li.visit {
  opacity: 0;
  transform: none;
}

.has-js .is-visible .gapstrip-bars li.visit {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease);
}

.gapstrip-bars li:nth-child(1) { transition-delay: 0ms; }
.gapstrip-bars li:nth-child(2) { transition-delay: 40ms; }
.gapstrip-bars li:nth-child(3) { transition-delay: 80ms; }
.gapstrip-bars li:nth-child(4) { transition-delay: 120ms; }
.gapstrip-bars li:nth-child(5) { transition-delay: 160ms; }
.gapstrip-bars li:nth-child(6) { transition-delay: 200ms; }
.gapstrip-bars li:nth-child(7) { transition-delay: 240ms; }
.gapstrip-bars li:nth-child(8) { transition-delay: 280ms; }
.gapstrip-bars li:nth-child(9) { transition-delay: 320ms; }
.gapstrip-bars li:nth-child(10) { transition-delay: 360ms; }
.gapstrip-bars li:nth-child(11) { transition-delay: 400ms; }
.gapstrip-bars li:nth-child(12) { transition-delay: 440ms; }
.gapstrip-bars li:nth-child(13) { transition-delay: 480ms; }
.gapstrip-bars li:nth-child(14) { transition-delay: 520ms; }

.gapstrip figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-on-soft);
  color: var(--tx-on-2);
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 19px);
  font-style: italic;
  line-height: 1.5;
}

/* --- 02 why people use it ----------------------------------------------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 4.5vw, 64px);
}

.reason {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    background 240ms var(--ease), border-color 240ms var(--ease);
}

.reason:hover {
  border-color: rgba(10, 21, 18, 0.22);
  background: var(--paper-2);
  box-shadow: var(--lift-1);
  transform: translateY(-3px);
}

.reason-ico {
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  color: var(--forest);
}

.reason-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.reason h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.reason p {
  margin-top: 11px;
  color: var(--tx-2);
  font-size: 14px;
  line-height: 1.62;
}

.reason .n {
  margin-top: auto;
  padding-top: 22px;
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pledge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(201, 236, 76, 0.22), rgba(201, 236, 76, 0.07));
}

.pledge .meta {
  flex: 0 0 auto;
  color: var(--forest);
}

.pledge strong {
  flex: 1 1 380px;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* --- 03 POIS Compass ----------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.device {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.device-glow {
  position: absolute;
  z-index: 0;
  top: 6%;
  width: min(430px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 236, 76, 0.2), transparent 66%);
  pointer-events: none;
}

/* an honest URL bar — this is a real, reachable product */
.device-url {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--tx-on-2);
  background: rgba(0, 0, 0, 0.24);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.device-url svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--lime);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(300px, 82%);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  background: linear-gradient(160deg, #253a33, #0a1512 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 40px 70px -30px rgba(0, 0, 0, 0.7);
  transition: transform 500ms var(--ease);
}

.phone:hover {
  transform: translateY(-6px);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  aspect-ratio: 300 / 610;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* specular sheen — reads as glass, not a flat crop */
.phone-screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%);
  content: "";
  pointer-events: none;
}

.phone-island {
  position: absolute;
  z-index: 3;
  top: 19px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: 999px;
  background: #050b09;
  transform: translateX(-50%);
}

.device-note {
  position: relative;
  z-index: 2;
  max-width: 30ch;
  color: var(--tx-on-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.proof-copy > * + * {
  margin-top: 22px;
}

.proof-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.proof-title h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.proof-parent {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--hair-on);
  border-radius: var(--r-md);
  background: var(--hair-on);
}

.caps li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 17px 18px;
  background: rgba(10, 21, 18, 0.32);
  font-size: 14px;
  line-height: 1.5;
}

.caps li svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--lime);
}

.truth {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 9px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--tx-on-2);
  font-size: 12.5px;
}

/* --- 04 platform progression --------------------------------------------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(38px, 4.5vw, 60px);
}

.stepcard {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 26px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
}

.stepcard-now {
  border-color: transparent;
  color: var(--tx-on);
  background: var(--forest);
  box-shadow: var(--lift-2);
}

.stepcard-next {
  background: rgba(255, 255, 255, 0.55);
}

.stepcard-later {
  border-style: dashed;
  border-color: rgba(10, 21, 18, 0.2);
  background: transparent;
}

.stepcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stepcard-now .stepcard-top { border-bottom-color: var(--hair-on); }
.stepcard-next .stepcard-top,
.stepcard-later .stepcard-top { border-bottom-color: var(--hair); }

.stepcard-top .phase { color: var(--clay); }
.stepcard-now .stepcard-top .phase { color: var(--lime); }

.stepcard-top .rail {
  display: flex;
  gap: 4px;
}

.stepcard-top .rail i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.22;
}

.stepcard-now .rail i:nth-child(1) { opacity: 1; }
.stepcard-next .rail i:nth-child(1),
.stepcard-next .rail i:nth-child(2) { opacity: 0.9; }
.stepcard-later .rail i { opacity: 0.9; }

.stepcard h3 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.stepcard > p {
  margin-top: 12px;
  color: var(--tx-2);
  font-size: 14px;
  line-height: 1.62;
}

.stepcard-now > p {
  color: var(--tx-on-2);
}

.stepcard .sub {
  margin-top: 4px;
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stepcard-now .sub { color: rgba(255, 255, 255, 0.45); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags span {
  padding: 6px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--tx-2);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 550;
}

.roadmap-note {
  max-width: 62ch;
  margin: 24px 0 0 auto;
  color: var(--tx-2);
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  line-height: 1.55;
  text-align: right;
}

/* --- 05 patient value first ---------------------------------------------- */

.rules {
  border-top: 1px solid var(--hair-on-soft);
}

.rules > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair-on-soft);
}

.rules .n {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 2;
}

.rules b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rules small {
  display: block;
  margin-top: 5px;
  color: var(--tx-on-2);
  font-size: 13px;
  line-height: 1.55;
}

.rules .caution {
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(217, 97, 63, 0.45);
  border-radius: var(--r-md);
  background: var(--clay-dim);
}

.rules .caution .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  color: var(--clay);
  font-size: 13px;
  line-height: 1;
}

/* --- 06 closing ---------------------------------------------------------- */

.closing {
  display: grid;
  gap: clamp(30px, 4vw, 44px);
  justify-items: center;
  text-align: center;
}

.closing .display {
  max-width: 20ch;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.closing-spine {
  width: min(560px, 100%);
}

/* =========================================================================
   footer
   ========================================================================= */

.site-footer {
  padding: clamp(44px, 5vw, 62px) 0 34px;
  color: var(--tx-on-2);
  background: var(--ink);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 34px clamp(40px, 6vw, 90px);
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tx-on);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.footer-tag {
  margin-top: 12px;
  color: var(--tx-on-3);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  color: var(--tx-on-2);
  transition: color 180ms var(--ease);
}

.footer-links a:hover {
  color: var(--lime);
}

.disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--hair-on-soft);
  border-radius: var(--r-md);
  color: var(--tx-on-2);
  background: rgba(255, 255, 255, 0.028);
  font-size: 12.5px;
  line-height: 1.65;
}

.disclaimer b {
  display: block;
  margin-bottom: 6px;
  color: var(--tx-on);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(34px, 4vw, 50px);
  padding-top: 22px;
  border-top: 1px solid var(--hair-on-soft);
  color: var(--tx-on-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

/* =========================================================================
   APPS PAGE
   ========================================================================= */

.apps-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(44px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(52px, 6vw, 84px) clamp(56px, 6vw, 88px);
}

.apps-hero-copy > * + * {
  margin-top: 24px;
}

/* --- architecture diagram: fluid, no fixed pixel positioning ------------- */

.arch {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--hair-on);
  border-radius: var(--r-lg);
  color: var(--tx-on);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(201, 236, 76, 0.1), transparent 70%),
    linear-gradient(178deg, var(--ink-3), var(--ink) 60%);
  box-shadow: var(--lift-dark);
}

.arch-core {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 236, 76, 0.35);
  border-radius: var(--r-md);
  background: rgba(201, 236, 76, 0.07);
  text-align: center;
}

.arch-core img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.arch-core b {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.arch-core small {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arch-core p {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--tx-on-2);
  font-size: 12.5px;
  line-height: 1.5;
  text-wrap: balance;
}

/* Connectors hang off the cards themselves, so they stay centred on the
   branch at any width instead of guessing a percentage. */
.arch-fork {
  position: relative;
  height: 26px;
}

.arch-fork::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--hair-on);
  content: "";
}

.arch-branches {
  --arch-gap: clamp(12px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--arch-gap);
  padding-top: 26px;
}

.arch-branch {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--hair-on);
  border-radius: var(--r-md);
  background: var(--field-on);
}

/* stem down into each card */
.arch-branch::before {
  position: absolute;
  top: -26px;
  left: calc(50% - 1px);
  width: 2px;
  height: 26px;
  background: var(--hair-on);
  content: "";
}

/* each card draws its half of the crossbar, meeting exactly at the midpoint */
.arch-branch::after {
  position: absolute;
  top: -26px;
  height: 2px;
  background: var(--hair-on);
  content: "";
}

.arch-branch:first-child::after {
  left: 50%;
  right: calc(var(--arch-gap) / -2 - 1px);
}

.arch-branch:last-child::after {
  right: 50%;
  left: calc(var(--arch-gap) / -2 - 1px);
}

.arch-branch b {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.arch-branch .count {
  color: var(--tx-on-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch-branch.is-live {
  border-color: rgba(201, 236, 76, 0.4);
  background: rgba(201, 236, 76, 0.07);
}

.arch-branch.is-dev {
  border-style: dashed;
  border-color: rgba(217, 97, 63, 0.4);
}

/* --- status legend ------------------------------------------------------- */

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--hair);
}

.legend li {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 9px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
}

.legend p {
  color: var(--tx-2);
  font-size: 12.5px;
  line-height: 1.5;
}

/* --- tracks -------------------------------------------------------------- */

.track-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 18px clamp(40px, 6vw, 84px);
  align-items: end;
  padding-bottom: clamp(30px, 3.5vw, 44px);
  border-bottom: 1px solid var(--hair-on);
}

.track-head > .kicker {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.track-head h2 {
  color: inherit;
}

.track-head .lede {
  padding-bottom: 6px;
}

.symptom-track .track-head {
  border-bottom-color: var(--hair);
}

/* the live product — a real listing, not a concept tile */
.applisting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(26px, 3.5vw, 48px);
  align-items: center;
  margin-top: clamp(34px, 4vw, 52px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(201, 236, 76, 0.32);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(201, 236, 76, 0.09), transparent 70%),
    var(--ink);
  box-shadow: var(--lift-dark);
}

.applisting-id {
  display: flex;
  align-items: center;
  gap: 15px;
}

.applisting-id img {
  width: 58px;
  height: 58px;
  border: 1px solid var(--hair-on);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.applisting-id small {
  display: block;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.applisting-id b {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.applisting-main > * + * {
  margin-top: 18px;
}

.applisting-main p {
  max-width: 54ch;
  color: var(--tx-on-2);
  font-size: 15px;
  line-height: 1.68;
}

.applisting-side {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--hair-on-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
}

.applisting-side .btn {
  width: 100%;
}

.capline {
  display: grid;
  gap: 9px;
}

.capline li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--tx-on-2);
  font-size: 13px;
  line-height: 1.45;
}

.capline svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  color: var(--lime);
}

.track-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--hair-on);
  color: var(--tx-on-2);
  font-size: 13px;
}

.track-foot .count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-foot .count b {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* development notice */
.devnotice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(30px, 3.5vw, 44px);
  padding: 18px 22px;
  border: 1px dashed rgba(217, 97, 63, 0.5);
  border-radius: var(--r-md);
  background: var(--clay-dim);
}

.devnotice p {
  flex: 1 1 320px;
  color: var(--tx-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* in-development cards: deliberately demoted, non-interactive */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.soon {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px dashed rgba(10, 21, 18, 0.24);
  border-radius: var(--r-md);
  background: transparent;
  cursor: default;
}

.soon-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.soon-ico {
  width: 34px;
  height: 34px;
  margin: 26px 0 20px;
  color: var(--tx-3);
  opacity: 0.75;
}

.soon-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.soon h3 {
  color: var(--tx-2);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.soon > p {
  margin-top: 10px;
  margin-bottom: 22px;
  color: var(--tx-3);
  font-size: 13px;
  line-height: 1.58;
}

.soon .status {
  margin-top: auto;
  align-self: flex-start;
}

/* --- shared core loop ---------------------------------------------------- */

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(38px, 4.5vw, 58px);
}

.loop li {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 30px;
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
}

.loop li::after {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--tx-3);
  background: var(--paper);
  content: "→";
  font-size: 11px;
  transform: translateY(-50%);
}

.loop li:last-child::after {
  display: none;
}

.loop .n {
  color: var(--clay);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.loop b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.loop p {
  margin-top: 7px;
  color: var(--tx-2);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================================
   reveal
   ========================================================================= */

.reveal {
  opacity: 1;
  transform: none;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   responsive
   ========================================================================= */

@media (max-width: 1080px) {
  :root { --shell: min(100% - 56px, 900px); }

  .site-nav { display: none; }

  .hero,
  .apps-hero,
  .split,
  .proof,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .hero,
  .apps-hero { gap: clamp(38px, 6vw, 56px); }

  .panel,
  .arch { width: min(640px, 100%); margin-inline: auto; }

  .section-head,
  .track-head { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .section-head .lede,
  .track-head .lede { padding-bottom: 0; }

  .reasons,
  .symptom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .roadmap { grid-template-columns: minmax(0, 1fr); }

  .roadmap-note { margin-left: 0; text-align: left; }

  .device { order: -1; }

  .applisting { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop li:nth-child(2)::after { display: none; }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 36px);
    --band: clamp(64px, 12vw, 88px);
    --header-h: 62px;
  }

  body { font-size: 15.5px; }

  .brand { font-size: 19px; }
  .brand img { width: 28px; height: 28px; }

  .header-cta {
    height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }

  .hero { padding-block: 36px 52px; }
  .hero-actions .btn,
  .closing-actions .btn { flex: 1 1 100%; }

  .avail {
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-md);
    flex-direction: column;
  }

  .panel-body { padding: 16px; }
  .said { font-size: 16px; }

  /* the spine turns vertical on small screens — a timeline should never
     be squeezed into five 60px columns */
  .spine {
    grid-template-columns: minmax(0, 1fr);
  }

  .spine-stop {
    padding: 0 0 22px 32px;
    text-align: left;
  }

  .spine-stop::before {
    top: 8px;
    bottom: auto;
    left: 6px;
    width: 2px;
    height: 100%;
    transform-origin: top center;
  }

  .spine-stop:first-child::before { display: block; }
  .spine-stop:last-child::before { display: none; }

  /* Vertically the rail hangs *below* each stop, so a segment's look comes
     from the stop it leads into — one step later than in the row layout. */
  .spine-stop[data-link]::before {
    top: 8px;
    left: 6px;
    width: 2px;
    height: 100%;
    background: var(--rail);
  }

  .spine-stop:has(+ .spine-stop[data-link="delay"])::before {
    background: repeating-linear-gradient(180deg, var(--rail) 0 5px, transparent 5px 11px);
  }

  .spine-stop:has(+ .spine-stop[data-link="episode"])::before,
  .spine-stop:has(+ .spine-stop[data-link="fade"])::before {
    left: 5px;
    width: 4px;
    border-radius: 2px;
    background: var(--clay);
  }

  .spine-stop:has(+ .spine-stop[data-link="fade"])::before {
    background: linear-gradient(180deg, var(--clay), rgba(217, 97, 63, 0.3));
  }

  .spine-node {
    top: 1px;
    left: 0;
    transform: none;
  }

  .has-js .spine-node { transform: scale(0.4); }
  .has-js .is-visible .spine-node,
  .has-js .is-visible.spine .spine-node { transform: scale(1); }

  .has-js .spine-stop::before { transform: scaleY(0); }
  .has-js .is-visible .spine-stop::before,
  .has-js .is-visible.spine .spine-stop::before { transform: scaleY(1); }

  .spine-stop small { font-size: 9px; }
  .spine-stop b { margin-top: 3px; padding-inline: 0; font-size: 14px; }

  .gapstrip { padding: 18px 14px 16px; }
  .gapstrip-head { flex-wrap: wrap; gap: 8px 16px; }
  .gapstrip-plot { height: 132px; margin-top: 30px; }
  .gapstrip-window em { font-size: 8px; padding: 3px 8px; }
  .gapstrip-bars li.visit b { font-size: 8px; }

  .reasons,
  .symptom-grid { grid-template-columns: minmax(0, 1fr); }

  .reason,
  .soon { padding: 20px 18px; }

  .reason-ico { margin-bottom: 18px; }
  .soon-ico { margin: 18px 0 16px; }

  .pledge { padding: 20px; }

  .phone { width: min(260px, 78%); }
  .device-glow { top: 10%; }

  .caps { grid-template-columns: minmax(0, 1fr); }

  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop li { gap: 18px; }
  .loop li::after {
    top: auto;
    right: 50%;
    bottom: -20px;
    content: "↓";
    transform: translateX(50%);
  }
  .loop li:nth-child(2)::after { display: grid; }
  .loop li:last-child::after { display: none; }

  .applisting { padding: 22px 18px; }
  .applisting-side { padding: 18px; }
  .applisting-id img { width: 48px; height: 48px; border-radius: 13px; }

  .track-foot .count b { font-size: 24px; }

  .rules > li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }

  /* the closing spine is a decorative recap — at phone width the vertical
     version costs 200px of scroll for no new information */
  .closing-spine { display: none; }

  .footer-base { font-size: 9.5px; }
}

/* Below ~400px the header has to fit brand + language + CTA on one line.
   Everything gets a notch smaller rather than letting the wordmark collide. */
@media (max-width: 400px) {
  :root { --shell: calc(100% - 28px); }

  .site-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .brand { font-size: 17px; }
  .brand img { width: 26px; height: 26px; }

  .lang { font-size: 10px; }
  .lang span { padding: 4px 7px; }

  .header-cta {
    height: 34px;
    padding: 0 10px;
    gap: 6px;
    font-size: 11.5px;
  }
}

/* =========================================================================
   reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .has-js .reveal { opacity: 1; transform: none; }
  .has-js .spine-stop::before { transform: none; }
  .has-js .spine-node { opacity: 1; transform: translateX(-50%) scale(1); }
  .has-js .chip { opacity: 1; transform: none; }
  .has-js .gapstrip-bars li,
  .has-js .gapstrip-bars li.visit { opacity: 1; transform: none; }
  .btn:hover, .btn:focus-visible, .reason:hover, .phone:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .has-js .spine-node { transform: scale(1); }
}
