@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/spectral-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap; src: url("/fonts/spectral-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
/* Two worlds, on purpose. The site (site.css) is the clinic's daylight: warm paper, navy ink.
   The guide is night: wherever the guide speaks or the labels are shown (the hero, the glass
   box, every answer pane, the full-screen theater) the surface is dark glass, light on darkness
   like a microscope's dark field. Those surfaces carry the class "night" and are dark in either
   theme. Colour is reserved for the labels (see labels.ts).

   This file is the guide: the theater that opens over the site. One screen, built in layers: a
   live 3D scene at the back, the guide standing in it with the FDA labels in orbit, and the
   conversation on a pane of glass in front. On a phone the guide becomes a band across the top. */
:root {
  --void: #04050b;
  --deep: #0c1230;
  --ink: #f3f5fc;
  --soft: #b9c1dc;
  --faint: #838dae;
  --glass: rgb(196 208 255 / 0.055);
  --glass-strong: rgb(196 208 255 / 0.1);
  --panel: rgb(7 10 24 / 0.6);
  --edge: rgb(214 224 255 / 0.13);
  --edge-strong: rgb(214 224 255 / 0.3);
  --light: #ffffff;
  --on-light: #070a16;
  --amber: #ffc56b;
  --rose: #ff7a86;
  --hue: #c9d3f5;
  --voice: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --code: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* The site around the guide. */
  --bg: #faf8f5;
  --bg-2: #f0f4f9;
  --surface: #ffffff;
  --text: #12243d;
  --text-2: #47586e;
  --text-3: #6c7a8d;
  --line: #e3dfd7;
  --brand: #12345a;
  --on-brand: #ffffff;
  --accent: #3b7cbd;
  --focus: #2f6fae;
  --lift: 18 52 90;
  /* The guide's face, a still until live video starts. The build sets it when it has one. */
  --face: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b16;
    --bg-2: #0b1222;
    --surface: #0f172b;
    --text: #eef2fb;
    --text-2: #b6c1d8;
    --text-3: #8492ad;
    --line: rgb(214 224 255 / 0.13);
    --brand: #dbe7f8;
    --on-brand: #0a1426;
    --accent: #7db2e8;
    --focus: #ffffff;
    --lift: 0 0 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b16;
  --bg-2: #0b1222;
  --surface: #0f172b;
  --text: #eef2fb;
  --text-2: #b6c1d8;
  --text-3: #8492ad;
  --line: rgb(214 224 255 / 0.13);
  --brand: #dbe7f8;
  --on-brand: #0a1426;
  --accent: #7db2e8;
  --focus: #ffffff;
  --lift: 0 0 0;
  color-scheme: dark;
}
/* A night surface: dark glass in either theme. */
.night,
.sheet,
.anatomy {
  --focus: #ffffff;
  color: var(--ink);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* An element marked hidden stays hidden, whatever display its class sets. */
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* While the guide is open the page behind it holds still. */
html.guide-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.muted {
  color: var(--faint);
}

/* ---- The theater: the guide, full screen, opening out of whatever was pressed ---- */
.theater {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 27% 36%, #141d4a 0%, rgb(12 18 48 / 0.6) 34%, transparent 70%),
    var(--void);
  clip-path: circle(0 at var(--px, 50%) var(--py, 50%));
  transition: clip-path 0.62s var(--ease);
}
.theater.open {
  clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%));
}

/* ---- Layer 0: the scene ---- */
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Layer 1: the app ---- */
.app {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 14px 18px;
  max-width: 1560px;
  margin-inline: auto;
  overflow: hidden;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.brand {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand small {
  font-weight: 500;
  color: var(--faint);
  font-size: 0.82rem;
  margin-left: 10px;
}
.notice {
  margin: 0 auto 0 0;
  padding: 3px 10px;
  border: 1px dashed var(--edge-strong);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.76rem;
  min-width: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--glass);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 600;
}
.notice:not([hidden]) + .pill {
  margin-left: 0;
}
#theater-close {
  width: 36px;
  height: 36px;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 8px var(--light);
}

.deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 620px);
  gap: 22px;
  min-height: 0;
}

/* ---- The stage: where the guide stands ---- */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
.presence {
  position: relative;
  flex: 1 1 0;
  container-type: size;
  min-height: 0;
}
/* An instrument ring around the guide, like the scale around a microscope stage. */
.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96cqw, 96cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(214 224 255 / 0.5) 0deg 0.22deg, transparent 0.22deg 3deg);
  -webkit-mask: radial-gradient(closest-side, transparent 97.2%, #000 97.4% 99.6%, transparent 99.8%);
  mask: radial-gradient(closest-side, transparent 97.2%, #000 97.4% 99.6%, transparent 99.8%);
  opacity: 0.28;
  pointer-events: none;
}
.app.no-gl .reticle {
  opacity: 0.4;
}

/* Without WebGL the guide is drawn in CSS: the same glass form, with three still orbits. */
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(38cqw, 38cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0%, rgb(214 232 255 / 0.85) 14%, transparent 46%),
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.55), transparent 22%),
    radial-gradient(circle at 50% 50%, rgb(40 60 140 / 0.5), rgb(8 12 30 / 0.7) 70%);
  box-shadow:
    inset 0 0 0 1px rgb(214 224 255 / 0.35),
    inset 0 0 44px rgb(150 190 255 / 0.4),
    0 0 90px rgb(140 175 255 / 0.3);
}
.orb i {
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  border: 1px solid #5b93ff;
  opacity: 0.55;
  transform: rotateX(72deg) rotateY(18deg);
}
.orb i:nth-child(2) {
  inset: -62%;
  border-color: #48efb2;
  transform: rotateX(64deg) rotateY(-28deg);
}
.orb i:nth-child(3) {
  inset: -92%;
  border-color: #ff9e4d;
  transform: rotateX(76deg) rotateY(6deg);
}
.stage[data-state="listening"] .orb {
  box-shadow:
    inset 0 0 0 1px rgb(255 197 107 / 0.5),
    inset 0 0 44px rgb(255 197 107 / 0.45),
    0 0 90px rgb(255 197 107 / 0.3);
}

/* The guide's face, as a still, until live video takes its place in the same porthole. */
.portrait {
  background: var(--face) center / cover no-repeat;
  border-radius: 50%;
}
.presence .portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54cqw, 54cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  box-shadow:
    0 0 0 1px var(--edge-strong),
    0 0 0 9px rgb(196 208 255 / 0.05),
    0 0 110px rgb(150 185 255 / 0.35);
  transition: box-shadow 0.4s;
}
.presence .portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(60% 46% at 30% 16%, rgb(255 255 255 / 0.22), transparent 60%),
    radial-gradient(closest-side, transparent 82%, rgb(160 195 255 / 0.3) 100%);
  pointer-events: none;
}
.presence.has-video .portrait {
  display: none;
}
.stage[data-state="speaking"] .presence .portrait,
.stage[data-state="thinking"] .presence .portrait {
  animation: breathe 1.5s ease-in-out infinite;
}
.stage[data-state="listening"] .presence .portrait {
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 0 9px rgb(255 197 107 / 0.1),
    0 0 110px rgb(255 197 107 / 0.4);
}
@keyframes breathe {
  50% {
    box-shadow:
      0 0 0 1px var(--light),
      0 0 0 14px rgb(196 208 255 / 0.1),
      0 0 150px rgb(170 200 255 / 0.6);
  }
}

/* Live video takes the guide's place as a porthole; the orbits keep turning around it. */
.presence video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54cqw, 54cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--void);
  box-shadow:
    0 0 0 1px var(--edge-strong),
    0 0 0 9px rgb(196 208 255 / 0.05),
    0 0 110px rgb(150 185 255 / 0.35);
}
.caption {
  align-self: center;
  margin: 0;
  width: fit-content;
  max-width: min(100%, 46ch);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-family: var(--voice);
  font-size: 0.98rem;
  line-height: 1.35;
  max-height: 4.3em;
  overflow: hidden;
  text-align: center;
  z-index: 2;
}

.ident {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.who h1 {
  margin: 0;
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-shadow: 0 2px 30px var(--void);
}
.who span {
  color: var(--soft);
  font-size: 0.98rem;
}
.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-size: 0.88rem;
  min-height: 1.4em;
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 10px var(--light);
}
.stage[data-state="thinking"] .status::before,
.stage[data-state="speaking"] .status::before {
  animation: beat 0.9s ease-in-out infinite;
}
.stage[data-state="listening"] .status::before {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: beat 0.9s ease-in-out infinite;
}
.stage[data-state="urgent"] .status::before {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}
@keyframes beat {
  50% {
    transform: scale(1.7);
    opacity: 0.5;
  }
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ctl {
  appearance: none;
  border: 1px solid var(--edge-strong);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.ctl:hover {
  background: var(--glass-strong);
  border-color: var(--light);
}
.ctl[aria-pressed="true"],
.ctl.primary {
  background: var(--light);
  border-color: var(--light);
  color: var(--on-light);
}
.ctl:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- The atlas: what is in orbit ---- */
.atlas {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
  min-width: 0;
}
.atlas-head {
  margin: 0;
  max-width: 62ch;
  color: var(--soft);
  font-size: 0.86rem;
}
.atlas-head b {
  color: var(--ink);
  font-weight: 600;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.key {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--glass);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.key::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue);
}
.key small {
  font-family: var(--code);
  font-size: 0.68rem;
  color: var(--faint);
}
.key:hover,
.key:focus-visible,
.key.lit {
  border-color: var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--hue) 35%, transparent);
}
.readout {
  margin: 0;
  min-height: 1.35em;
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--faint);
}

/* ---- The conversation: a pane of glass over the scene ---- */
.talk {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 26px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgb(196 208 255 / 0.075), rgb(196 208 255 / 0.03));
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.09),
    0 30px 90px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
/* The tour narrates itself in a band across the top of the glass. */
.tour-note {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--edge);
  background: rgb(255 255 255 / 0.94);
  color: var(--on-light);
}
.tour-note p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-wrap: balance;
}
.tour-note .link {
  flex: none;
  color: var(--on-light);
  font-size: 0.8rem;
}
.thread {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 24px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgb(214 224 255 / 0.25) transparent;
}
.thread:focus-visible {
  outline-offset: -4px;
}
.turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: 22px;
}
.turn.user {
  align-items: flex-end;
}
.q {
  margin: 0;
  max-width: 86%;
  padding: 9px 15px;
  border-radius: 18px 18px 5px 18px;
  border: 1px solid var(--edge);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}
/* What the guide says is set as speech, in the one serif on the page. */
.voice {
  margin: 0;
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(1.14rem, 1.04rem + 0.42vw, 1.36rem);
  line-height: 1.44;
  letter-spacing: -0.004em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.turn.lead .voice {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  line-height: 1.26;
  letter-spacing: -0.014em;
}
.voice .w {
  animation: surface 0.5s var(--ease) both;
  animation-delay: calc(var(--n) * 18ms);
}
@keyframes surface {
  from {
    opacity: 0;
    filter: blur(5px);
  }
}
.turn[data-route="urgent"] .voice {
  font-weight: 400;
}

/* How the reply was produced: four gates, the one that answered lit. */
.trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  font-size: 0.78rem;
  color: var(--faint);
}
.rail {
  display: inline-flex;
  gap: 3px;
}
.rail i {
  width: 15px;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.4);
}
.rail i[data-s="hit"] {
  background: var(--light);
  box-shadow: 0 0 10px var(--light);
}
.rail i[data-s="skip"] {
  background: rgb(255 255 255 / 0.12);
}
.turn[data-route="urgent"] .rail i[data-s="hit"] {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}
.trace b {
  color: var(--ink);
  font-weight: 600;
}
.trace .ms {
  font-family: var(--code);
  font-size: 0.72rem;
}
.layers-btn {
  appearance: none;
  margin-left: auto;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.layers-btn:hover {
  background: var(--light);
  border-color: var(--light);
  color: var(--on-light);
}

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cites button {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--hue) 46%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hue) 9%, transparent);
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.cites button::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
  translate: 0 -1px;
}
.cites button:hover {
  background: color-mix(in srgb, var(--hue) 24%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hue) 35%, transparent);
}
.more {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Cards: detail, one layer above the glass ---- */
.card {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  font-size: 0.93rem;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.card ul,
.card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card ul > li {
  position: relative;
  padding-left: 18px;
  color: var(--soft);
}
.card ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px color-mix(in srgb, var(--hue) 70%, transparent);
}
.card ul > li b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.card .foot {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}
.card.caution {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 7%, var(--panel));
  --hue: var(--amber);
}
.card.caution h3 {
  color: var(--amber);
}
.scroll {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgb(214 224 255 / 0.25) transparent;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 470px;
  font-size: 0.85rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid var(--edge);
  color: var(--soft);
}
thead th {
  color: var(--ink);
  font-size: 0.92rem;
  border-bottom: 2px solid var(--hue);
}
thead td {
  border-bottom-color: transparent;
}
tbody th {
  color: var(--faint);
  font-weight: 600;
  font-size: 0.76rem;
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
.steps {
  counter-reset: step;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  column-gap: 12px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--edge-strong);
  font-family: var(--code);
  font-size: 0.76rem;
  display: grid;
  place-items: center;
}
.steps b {
  font-weight: 600;
}
.steps span {
  color: var(--soft);
  font-size: 0.9rem;
}
/* The FDA prints its most serious warning inside a heavy ruled box. Urgent cards borrow it. */
.card.boxed {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: color-mix(in srgb, var(--rose) 12%, var(--panel));
}
.card.boxed h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: var(--rose);
}
.card.boxed p {
  margin: 0;
  color: var(--ink);
}
.lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.lines a,
.lines span {
  display: inline-block;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--on-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  user-select: all;
}
.card.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border-color: var(--edge-strong);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.03));
}
.card.action div {
  flex: 1 1 220px;
  min-width: 0;
}
.card.action h3 {
  margin-bottom: 4px;
}
.card.action p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}
.go {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--light);
  color: var(--on-light);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 34px rgb(190 210 255 / 0.35);
}
blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--hue);
}
blockquote + blockquote {
  margin-top: 14px;
}
blockquote p {
  margin: 0;
  font-family: var(--voice);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
blockquote cite {
  display: block;
  margin-top: 5px;
  font-family: var(--code);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--faint);
}

/* Dose schedule: each label's steps as a staircase with depth. Height shows order within one
   medicine only; doses are never drawn to a shared scale, because they are not comparable. */
.ladder {
  display: grid;
  gap: 10px;
  padding-block: 12px 4px;
  border-top: 1px solid var(--edge);
}
.ladder:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ladder-name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.ladder-name b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ladder-name b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue);
}
.ladder-name span {
  color: var(--faint);
  font-size: 0.8rem;
}
.stairs,
.card .stairs {
  display: grid;
  grid-auto-flow: column;
  /* Wide enough that a dose and its caption never break mid-word; a long schedule scrolls. */
  grid-auto-columns: minmax(66px, 1fr);
  align-items: end;
  gap: 0;
  min-height: 112px;
  padding: 12px 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stairs li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  min-height: calc(38px + 58px * var(--rise));
  padding: 7px 6px 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) calc(18% + 30% * var(--rise)), #0a0e22), color-mix(in srgb, var(--hue) 8%, #0a0e22));
  border-left: 1px solid color-mix(in srgb, var(--hue) 55%, transparent);
}
/* The tread and the riser that give each step its depth. */
.stairs li::before {
  content: "";
  position: absolute;
  left: -1px;
  right: 0;
  bottom: 100%;
  height: 10px;
  background: color-mix(in srgb, var(--hue) calc(55% + 35% * var(--rise)), #ffffff 12%);
  transform-origin: bottom;
  transform: skewX(-45deg);
  translate: 5px 0;
}
.stairs li:last-child::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 10px;
  background: color-mix(in srgb, var(--hue) 26%, #060814);
  transform-origin: left;
  transform: skewY(-45deg);
}
.stairs b {
  font-family: var(--code);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  /* Wraps between a number and its unit if it must, never inside either. */
  overflow-wrap: normal;
}
.stairs span {
  color: var(--soft);
  font-size: 0.64rem;
  line-height: 1.2;
}

/* Where the medicines act: a figure with the three sites the labels describe. */
.signal-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
}
.figure {
  width: 112px;
  height: auto;
  overflow: visible;
}
.figure .outline {
  fill: rgb(196 208 255 / 0.05);
  stroke: var(--edge-strong);
  stroke-width: 1;
}
.figure .site {
  fill: var(--light);
}
.figure .ping {
  fill: none;
  stroke: var(--light);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.8s ease-out infinite;
}
.figure .ping:nth-of-type(2) {
  animation-delay: 0.9s;
}
.figure .ping:nth-of-type(3) {
  animation-delay: 1.8s;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}
.nodes,
.card .nodes {
  gap: 12px;
}
.card .nodes > li {
  padding-left: 0;
  display: grid;
  gap: 2px;
}
.card .nodes > li::before {
  display: none;
}
.nodes b {
  color: var(--ink);
  font-weight: 600;
}
.nodes span {
  color: var(--soft);
  font-size: 0.88rem;
}

/* ---- The dock: chips and the composer ---- */
.dock {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 14px 16px 14px;
  border-top: 1px solid var(--edge);
  background: rgb(5 7 18 / 0.35);
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}
.chips:empty {
  display: none;
}
.chip {
  appearance: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--glass);
  color: var(--ink);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.chip:hover {
  background: var(--glass-strong);
  border-color: var(--light);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: rgb(4 6 16 / 0.6);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: var(--light);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.07);
}
.composer input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  outline: none;
}
.composer input::placeholder {
  color: var(--faint);
}
.icon {
  appearance: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--light);
  color: var(--on-light);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon.ghost {
  background: var(--glass-strong);
  color: var(--ink);
}
.icon[aria-pressed="true"] {
  background: var(--amber);
  color: var(--on-light);
}
.icon:disabled {
  opacity: 0.5;
  cursor: default;
}
.icon svg {
  width: 20px;
  height: 20px;
}
.fine {
  margin: 0;
  color: var(--faint);
  font-size: 0.76rem;
}
.link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: var(--soft);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Lead form ---- */
.lead {
  display: grid;
  gap: 10px;
  width: 100%;
}
.lead .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.lead label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--soft);
}
.lead input[type="text"],
.lead input[type="email"],
.lead input[type="tel"] {
  padding: 10px 12px;
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  background: rgb(4 6 16 / 0.6);
  color: var(--ink);
}
.lead .agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--soft);
}
.lead .trap {
  position: absolute;
  left: -9999px;
}
.lead output {
  font-size: 0.86rem;
  color: var(--soft);
}

/* ---- The sheet: label lens, labels and notices, visit summary ---- */
.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(500px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--edge-strong);
  background: rgb(8 11 26 / 0.84);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  color: var(--ink);
  box-shadow: -30px 0 90px rgb(0 0 0 / 0.55);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: slide 0.42s var(--ease);
}
@keyframes slide {
  from {
    transform: translateX(46px);
    opacity: 0;
  }
}
.sheet::backdrop,
.anatomy::backdrop {
  background: rgb(3 4 10 / 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 16px;
  border-bottom: 1px solid var(--edge);
  border-top: 3px solid var(--hue);
}
.sheet h2,
.anatomy h2 {
  margin: 2px 0 0;
  font-family: var(--voice);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-wrap: balance;
}
.eyebrow {
  margin: 0;
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--soft);
}
.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px;
  display: grid;
  align-content: start;
  gap: 13px;
  font-family: var(--voice);
  font-size: 1.04rem;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgb(214 224 255 / 0.25) transparent;
}
.sheet-body p,
.sheet-body ul,
.sheet-body h3 {
  margin: 0;
}
.sheet-body ul {
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}
.sheet-body h3 {
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--soft);
}
.sheet-body .muted,
.sheet-body .plain {
  font-family: var(--ui);
  font-size: 0.9rem;
}
.label-row {
  display: grid;
  gap: 2px;
  padding: 11px 0 11px 16px;
  border-left: 3px solid var(--hue);
  font-family: var(--ui);
}
.label-row a {
  font-size: 0.95rem;
  font-weight: 600;
}
.label-row span {
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--faint);
}
.sheet > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px calc(env(safe-area-inset-bottom, 0px) + 15px);
  border-top: 1px solid var(--edge);
  font-size: 0.8rem;
}
.sheet > footer:empty {
  display: none;
}
.copy-fallback {
  width: 100%;
  min-height: 9em;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  background: rgb(4 6 16 / 0.6);
  border: 1px solid var(--edge-strong);
  border-radius: 8px;
  padding: 8px;
}

/* ---- Answer anatomy: the layers of one reply, pulled apart ---- */
.anatomy {
  width: min(1020px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 28px;
  background: rgb(8 11 26 / 0.88);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 40px 140px rgb(0 0 0 / 0.7);
  overflow: hidden;
}
.anatomy[open] {
  display: flex;
  flex-direction: column;
  animation: lift 0.45s var(--ease);
}
@keyframes lift {
  from {
    transform: translateY(26px) scale(0.98);
    opacity: 0;
  }
}
.anatomy > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 4px;
}
.anatomy > header p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 0.88rem;
}
.anatomy-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 26px;
  padding: 8px 24px 24px;
  overflow-y: auto;
}
.stack-view {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1700px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.stack-view:active {
  cursor: grabbing;
}
.stack {
  --rx: 60deg;
  --rz: -38deg;
  --gap: 78px;
  --open: 0;
  position: relative;
  width: min(290px, 56vw);
  aspect-ratio: 1.42;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
}
.stack.open {
  --open: 1;
}
.plane {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgb(214 224 255 / 0.42);
  background: linear-gradient(135deg, rgb(52 66 132 / 0.9), rgb(20 27 62 / 0.9));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.03) inset;
  text-align: center;
  transform: translateZ(calc((var(--mid) - var(--i)) * var(--gap) * var(--open)));
  transition:
    transform 1s var(--ease),
    background 0.3s,
    border-color 0.3s,
    opacity 0.3s;
  transition-delay: calc(var(--i) * 40ms), 0s, 0s, 0s;
}
.plane b {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.plane span {
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--soft);
}
.plane[data-s="hit"] {
  background: rgb(255 255 255 / 0.94);
  border-color: var(--light);
  color: var(--on-light);
  box-shadow: 0 0 70px rgb(190 210 255 / 0.65);
}
.plane[data-s="hit"] span {
  color: #3c4466;
}
.plane[data-s="skip"] {
  border-style: dashed;
  background: transparent;
  opacity: 0.38;
}
.plane.on:not([data-s="hit"]) {
  background: linear-gradient(135deg, rgb(86 104 190 / 0.95), rgb(40 52 110 / 0.95));
  border-color: var(--light);
  opacity: 1;
}
.stack[data-route="urgent"] .plane[data-s="hit"] {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 70px rgb(255 122 134 / 0.6);
}
.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  counter-reset: layer;
}
.layers > li {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.layers > li::before {
  content: counter(layer);
  grid-row: span 2;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--edge-strong);
  font-family: var(--code);
  font-size: 0.74rem;
  display: grid;
  place-items: center;
}
.layers > li.on,
.layers > li:hover {
  background: var(--glass);
  border-color: var(--edge);
}
.layers > li[data-s="hit"]::before {
  background: var(--light);
  border-color: var(--light);
  color: var(--on-light);
  box-shadow: 0 0 16px rgb(190 210 255 / 0.7);
}
.layers > li[data-s="skip"] {
  opacity: 0.5;
}
.layers b {
  font-weight: 600;
  font-size: 0.95rem;
}
.layers b em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--code);
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--faint);
}
.layers > li[data-s="hit"] b em {
  color: var(--ink);
}
.layers p {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
}
.layers .cites {
  grid-column: 2;
  margin-top: 6px;
}

/* ---- Arrival: the layers settle into place once ---- */
@media (prefers-reduced-motion: no-preference) {
  .booting .bar,
  .booting .ident,
  .booting .atlas,
  .booting .talk {
    animation: settle 0.9s var(--ease) both;
  }
  .booting .ident {
    animation-delay: 0.5s;
  }
  .booting .atlas {
    animation-delay: 0.8s;
  }
  .booting .talk {
    animation-delay: 0.25s;
  }
  .booting .key {
    animation: settle 0.6s var(--ease) both;
    animation-delay: calc(1s + var(--k) * 110ms);
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Narrow: the guide stands beside its name, the conversation runs below ---- */
@media (max-width: 900px) {
  .theater {
    background:
      radial-gradient(90% 40% at 78% 16%, #141d4a 0%, rgb(12 18 48 / 0.6) 40%, transparent 78%),
      var(--void);
  }
  .presence.has-face {
    height: 136px;
  }
  .presence.has-face .portrait {
    width: min(92cqw, 92cqh);
  }
  .app {
    gap: 6px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 10px 10px;
  }
  .bar {
    gap: 4px 10px;
  }
  .brand small {
    display: none;
  }
  .notice {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.7rem;
    color: var(--faint);
  }
  .pill {
    padding: 3px 9px;
    font-size: 0.72rem;
  }
  .deck {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
  }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-areas: "who presence" "status presence" "controls controls";
    align-items: end;
    gap: 5px 0;
  }
  .presence {
    grid-area: presence;
    flex: none;
    height: 112px;
    align-self: stretch;
  }
  .reticle {
    width: min(150cqw, 150cqh);
  }
  /* The name, the status and the controls become rows of the stage itself. */
  .ident {
    display: contents;
  }
  .who {
    grid-area: who;
    flex-direction: column;
    gap: 2px;
  }
  .status {
    grid-area: status;
  }
  .who h1 {
    font-size: 2.5rem;
  }
  .who span {
    font-size: 0.82rem;
  }
  .status {
    font-size: 0.78rem;
  }
  .controls {
    grid-area: controls;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ctl {
    flex: none;
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .caption {
    display: none;
  }
  /* Live video needs room: the porthole takes the full width and the name moves under it. */
  .stage:has(.has-video) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "presence" "who" "status" "controls";
  }
  .presence.has-video {
    height: min(52vw, 260px);
  }
  .presence.has-video video {
    width: min(86cqw, 96cqh);
  }
  .atlas {
    display: none;
  }
  .talk {
    border-radius: 22px;
  }
  .thread {
    padding: 18px 16px 16px;
    gap: 22px;
  }
  .voice {
    font-size: 1.1rem;
  }
  .turn.lead .voice {
    font-size: 1.32rem;
  }
  .dock {
    gap: 7px;
    padding: 10px 12px 10px;
  }
  .fine {
    font-size: 0.68rem;
  }
  .anatomy-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 16px 18px;
  }
  .anatomy > header {
    padding: 18px 16px 2px;
  }
  .stack-view {
    position: relative;
    min-height: 400px;
  }
  .stack {
    --gap: 54px;
    width: min(210px, 54vw);
  }
  .plane b {
    font-size: 0.92rem;
  }
  .signal-body {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 14px;
  }
  .figure {
    width: 84px;
  }
}
@media (max-height: 620px) and (min-width: 901px) {
  .atlas-head {
    display: none;
  }
}

/* ---- Embedded in a client page: the guide is the whole frame, narrow, without the bar ---- */
:root[data-embed] {
  color-scheme: dark;
}
:root[data-embed],
:root[data-embed] body {
  height: 100%;
  overflow: hidden;
  background: var(--void);
}
:root[data-embed] .site,
:root[data-embed] .launch {
  display: none;
}
:root[data-embed] .theater {
  clip-path: none;
  transition: none;
}
:root[data-embed] .bar {
  display: none;
}
:root[data-embed] .app {
  grid-template-rows: minmax(0, 1fr);
  padding-block: 8px;
}
:root[data-embed] .presence {
  height: 96px;
}
:root[data-embed] .who h1 {
  font-size: 2rem;
}

/* The site around the guide. Daylight for the clinic's own words; night glass wherever the guide
   speaks or the labels are shown. Depth is used for meaning, not decoration: the hero is the
   knowledge base itself in orbit, cards lean toward the pointer in three layers, and the glass
   box pulls one answer apart into the layers that made it. */

:root {
  --gut: clamp(16px, 4vw, 44px);
  --nav-space: 78px;
  --wide: 1220px;
}
html {
  scroll-padding-top: 92px;
}
.site {
  overflow-x: clip;
}
.site h1,
.site h2,
.site h3 {
  margin-block: 0;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.site h1 em,
.site h2 em {
  font-family: var(--voice);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.site p {
  margin-block: 0;
}
.kicker {
  font-family: var(--code);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.night .kicker {
  color: #9cc4f2;
}

/* ---- Buttons ---- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.solid {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 26px rgb(var(--lift) / 0.22);
}
.btn.outline {
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  color: var(--brand);
}
.btn.outline:hover {
  border-color: var(--brand);
}
.btn.light {
  background: #ffffff;
  color: #0a1426;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.35);
}
.btn.glassy {
  border-color: rgb(214 224 255 / 0.34);
  background: rgb(196 208 255 / 0.08);
  color: #f3f5fc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.glassy:hover {
  border-color: #ffffff;
}
.btn.quiet {
  padding: 9px 14px;
  background: none;
  color: inherit;
  border-color: rgb(214 224 255 / 0.28);
  font-size: 0.9rem;
}

/* ---- The concept ribbon and the bar ---- */
.ribbon {
  padding: 7px var(--gut);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.78rem;
  text-align: center;
}
.nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  width: min(var(--wide), 100% - 20px);
  height: 58px;
  margin: 10px auto 0;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.16);
  background: rgb(8 13 30 / 0.84);
  color: #f3f5fc;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 14px 44px rgb(4 8 24 / 0.28);
  color-scheme: dark;
  --focus: #ffffff;
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgb(8 13 30 / 0.92);
}
.logo {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #c7d0e6;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.links a:hover,
.links a[aria-current] {
  background: rgb(196 208 255 / 0.12);
  color: #ffffff;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav .btn.solid {
  background: #ffffff;
  color: #0a1426;
  padding: 10px 18px;
  box-shadow: none;
}
.menu-btn {
  appearance: none;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(214 224 255 / 0.28);
  background: none;
  place-items: center;
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- The hero: the guide, standing in the labels she answers from ---- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-space));
  padding: calc(var(--nav-space) + clamp(8px, 2.4svh, 34px)) var(--gut) 22px;
  min-height: min(100svh, 1000px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(52% 58% at 73% 40%, #1b3a7c 0%, rgb(16 30 74 / 0.6) 36%, transparent 72%),
    radial-gradient(40% 40% at 12% 90%, rgb(40 90 170 / 0.22), transparent 70%),
    linear-gradient(180deg, #04060f 0%, #070c1d 55%, #0a1330 100%);
  border-radius: 0 0 40px 40px;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: min(var(--wide), 100%);
  margin-inline: auto;
}
/* Words sit in front of the scene; the face sits behind its glass. Neither wrapper may make a
   stacking context of its own, or that ordering is lost. */
.hero-copy,
.plate,
.command {
  position: relative;
  z-index: 2;
}
.hero-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 4.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 40px #04060f;
}
/* The emphasised half of a split headline takes a line of its own. */
.site h1.split em {
  display: block;
}
.hero .lede {
  max-width: 50ch;
  color: #c3cde6;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.16rem);
  text-shadow: 0 1px 20px #04060f;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.price {
  font-family: var(--code);
  font-size: 0.8rem;
  color: #b9c1dc;
  padding: 7px 12px;
  border: 1px dashed rgb(214 224 255 / 0.3);
  border-radius: 999px;
}
.hero-stage {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}
.portal {
  position: relative;
  z-index: 0;
  width: min(100%, 500px, 50svh);
  aspect-ratio: 1;
  container-type: size;
}
.portal .reticle {
  width: 97cqw;
}
/* The face fills the glass form exactly: the scene draws that form's skin over it. */
.portal .portrait {
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 63.6cqw;
  aspect-ratio: 1;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgb(214 224 255 / 0.28),
    0 0 120px rgb(120 165 255 / 0.4);
  transition: box-shadow 0.4s;
}
.portal .portrait:hover {
  box-shadow:
    0 0 0 1px #ffffff,
    0 0 150px rgb(150 190 255 / 0.6);
}
.portal .orb {
  width: 50cqw;
}
.hero.no-gl .portal .portrait {
  box-shadow:
    0 0 0 1px rgb(214 224 255 / 0.5),
    0 0 0 12px rgb(196 208 255 / 0.06),
    0 0 120px rgb(120 165 255 / 0.5);
}
.plate {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  margin-top: -18px;
}
.plate-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.plate-name b {
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 30px #04060f;
}
.plate-name span {
  color: #b9c1dc;
  font-size: 0.92rem;
}
.plate-live {
  max-width: 46ch;
  color: #b9c1dc;
  font-size: 0.84rem;
  text-shadow: 0 1px 14px #04060f;
}
.plate-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: 1px;
  background: #7dffb0;
  box-shadow: 0 0 10px #7dffb0;
}
.plate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* The command bar: one question from anywhere on the page opens the guide with it. */
.command {
  width: min(880px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.askbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.3);
  background: rgb(7 11 28 / 0.66);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 20px 60px rgb(0 0 0 / 0.45),
    0 0 90px rgb(96 150 255 / 0.14);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.askbar:focus-within {
  border-color: #ffffff;
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 0.08),
    0 20px 60px rgb(0 0 0 / 0.45),
    0 0 110px rgb(120 170 255 / 0.25);
}
.askbar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: none;
  font-size: 1.06rem;
}
.askbar input::placeholder {
  color: #8f9bbb;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-chips .chip {
  background: rgb(7 11 28 / 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.orbit-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding-top: 6px;
  color: #8f9bbb;
  font-size: 0.8rem;
}
.orbit-key b {
  color: #dfe6f8;
  font-weight: 600;
}
.orbit-key .legend {
  justify-content: center;
}

/* ---- By the numbers ---- */
.proof {
  padding: clamp(36px, 6vw, 64px) var(--gut) 0;
}
.stats {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 26px 22px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat dt {
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.stat dd {
  margin: 10px 0 0;
  max-width: 26ch;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---- Sections ---- */
.sec {
  padding: clamp(64px, 9vw, 124px) var(--gut);
}
.sec.tinted {
  background: var(--bg-2);
}
.sec.page-top {
  padding-top: clamp(40px, 6vw, 72px);
  min-height: 70svh;
}
.sec > * {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}
.sec-head {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.sec-head h2,
.glass h2,
.cta h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem);
}
.sec-head > p:not(.kicker) {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 1.06rem;
}
.sec-foot {
  margin-top: 30px;
  text-align: center;
}

/* ---- Cards that lean toward the pointer, in three layers ---- */
.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.tilt.leaning {
  transition:
    transform 0.08s linear,
    box-shadow 0.3s,
    border-color 0.3s;
}

/* A specimen: the medicine's form, floating over two orbits in its label's colour. */
.specimen {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--hue) 26%, transparent), transparent 66%);
  transform: translateZ(54px);
  transform-style: preserve-3d;
}
.specimen i {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--hue);
  opacity: 0.7;
  transform: rotateX(70deg) rotateZ(0deg);
  animation: spin 16s linear infinite;
}
.specimen i:nth-child(2) {
  inset: -4%;
  opacity: 0.35;
  transform: rotateX(62deg) rotateY(26deg) rotateZ(0deg);
  animation-duration: 26s;
  animation-direction: reverse;
}
.specimen i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 14px var(--hue);
}
@keyframes spin {
  to {
    rotate: z 360deg;
  }
}
.specimen svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  filter: drop-shadow(0 18px 22px rgb(var(--lift) / 0.28));
  transform: translateZ(30px);
}
.g-body {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2.4;
}
.g-window {
  fill: var(--hue);
  opacity: 0.85;
}
.g-cap {
  fill: var(--brand);
}
.g-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.night .g-body {
  fill: rgb(196 208 255 / 0.1);
  stroke: #eef2fb;
}
.night .g-cap {
  fill: #eef2fb;
}
.night .g-line {
  stroke: #eef2fb;
}

/* ---- Two ways to take it ---- */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.way {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgb(var(--lift) / 0.1);
}
.way:hover {
  border-color: color-mix(in srgb, var(--hue) 60%, var(--line));
  box-shadow: 0 40px 100px rgb(var(--lift) / 0.16);
}
.way-text {
  display: grid;
  gap: 12px;
  justify-items: start;
  transform: translateZ(22px);
}
.tag {
  font-family: var(--code);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.way h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: -0.025em;
}
.way-body {
  color: var(--text-2);
}
.dots,
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dots li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
}
.dots li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px var(--hue);
}
.points {
  display: grid;
  gap: 5px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.points li {
  padding-left: 20px;
  position: relative;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
}
.way-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* ---- How it works: four steps that rise, like a dose schedule ---- */
.path {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.path li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 22px 26px;
  min-height: calc(190px + var(--n) * 34px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 60px rgb(var(--lift) / 0.08);
}
.path .num {
  font-family: var(--code);
  font-size: 0.78rem;
  color: var(--accent);
}
.path h3 {
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}
.path p {
  color: var(--text-2);
  font-size: 0.94rem;
}
.path-note {
  margin-top: 26px;
  color: var(--text-2);
  font-family: var(--voice);
  font-style: italic;
  font-size: 1.2rem;
}

/* ---- The glass box ---- */
.glass {
  margin: 0 10px;
  padding: clamp(56px, 8vw, 110px) var(--gut);
  border-radius: 40px;
  background:
    radial-gradient(46% 60% at 78% 46%, #16306c 0%, rgb(14 26 66 / 0.5) 40%, transparent 74%),
    linear-gradient(180deg, #050814, #080e22);
  overflow: hidden;
}
.glass-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.glass-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  min-width: 0;
}
.glass .lede {
  max-width: 54ch;
  color: #c3cde6;
  font-size: 1.06rem;
}
.tries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.try {
  appearance: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.3);
  background: rgb(196 208 255 / 0.06);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.try:hover {
  border-color: #ffffff;
}
.try[aria-pressed="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: #070a16;
}
.glass-out {
  width: 100%;
  min-height: 220px;
}
.glass-said {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgb(214 224 255 / 0.14);
  background: rgb(196 208 255 / 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-said .card {
  display: none; /* the stack is the picture here; the cards open in the full guide */
}
.glass-stage {
  position: sticky;
  top: 90px;
  display: grid;
  justify-items: center;
}
.glass-stage .stack-view {
  position: relative;
  width: 100%;
  min-height: 540px;
}
.hint {
  color: #8f9bbb;
  font-size: 0.8rem;
}

/* ---- An answer pane: wherever the site shows a live reply ---- */
.screen {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  border: 1px solid rgb(214 224 255 / 0.14);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(40 70 150 / 0.28), transparent 60%),
    linear-gradient(180deg, #0b1228, #070b1a);
  box-shadow: 0 26px 70px rgb(var(--lift) / 0.22);
  min-width: 0;
}
.screen-q {
  font-family: var(--code);
  font-size: 0.8rem;
  color: #9cc4f2;
}
.screen-q::before {
  content: "Asked live: ";
  color: #838dae;
}
.screen-wait {
  color: #b9c1dc;
  font-family: var(--voice);
  font-size: 1.1rem;
  animation: wait 1.2s ease-in-out infinite;
}
@keyframes wait {
  50% {
    opacity: 0.45;
  }
}
.screen-more {
  appearance: none;
  justify-self: start;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.3);
  background: rgb(196 208 255 / 0.08);
  color: #f3f5fc;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.screen-more:hover {
  border-color: #ffffff;
}

/* ---- Medications ---- */
.meds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.med-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 24px 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--hue) 16%, transparent), transparent 62%),
    var(--surface);
  box-shadow: 0 24px 64px rgb(var(--lift) / 0.09);
  text-decoration: none;
  overflow: hidden;
}
.med-card:hover {
  border-color: var(--hue);
  box-shadow:
    0 34px 90px rgb(var(--lift) / 0.16),
    0 0 0 1px var(--hue);
}
.med-card h3 {
  font-size: 1.9rem;
  letter-spacing: -0.035em;
  transform: translateZ(26px);
}
.med-for {
  font-weight: 600;
  color: var(--text);
}
.med-form {
  color: var(--text-2);
  font-size: 0.92rem;
}
.mini-stairs {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
  height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  transform: translateZ(40px);
}
.mini-stairs li {
  flex: 1 1 0;
  height: calc(18% + var(--rise) * 82%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--hue), color-mix(in srgb, var(--hue) 34%, transparent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--hue) 30%, transparent);
}
.med-go {
  font-family: var(--code);
  font-size: 0.74rem;
  color: var(--text-3);
}
.med-go::after {
  content: "  \2192";
}

/* ---- Questions ---- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 940px);
  gap: 10px;
}
.faq details {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 1.5px 12px no-repeat;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq .screen {
  margin: 0 12px 12px;
}

/* ---- The closing band ---- */
.cta {
  margin: clamp(40px, 6vw, 80px) 10px 0;
  padding: clamp(60px, 9vw, 120px) var(--gut);
  border-radius: 40px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(40% 70% at 20% 30%, rgb(72 239 178 / 0.14), transparent 70%),
    radial-gradient(44% 80% at 82% 70%, rgb(91 147 255 / 0.3), transparent 70%),
    linear-gradient(180deg, #050814, #0a1330);
}
.cta p {
  max-width: 54ch;
  color: #c3cde6;
  font-size: 1.08rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ---- Footer ---- */
.site-foot {
  padding: clamp(40px, 6vw, 72px) var(--gut) 96px;
}
.foot-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-foot h3 {
  margin-bottom: 12px;
  font-family: var(--code);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-foot nav a,
.site-foot .link {
  display: block;
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 0.94rem;
  text-decoration: none;
  text-align: left;
}
.site-foot nav a:hover,
.site-foot .link:hover {
  color: var(--text);
  text-decoration: underline;
}
.foot-line {
  margin-top: 10px;
  max-width: 34ch;
  color: var(--text-2);
}
.foot-fine {
  width: min(var(--wide), 100%);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.78rem;
}

/* ---- The launcher: the guide, one tap away on every page ---- */
.launch {
  appearance: none;
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.3);
  background: rgb(8 13 30 / 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 18px 50px rgb(4 8 24 / 0.45),
    0 0 60px rgb(96 150 255 / 0.25);
  text-align: left;
  cursor: pointer;
  animation: arrive 0.5s var(--ease) both;
}
.launch:hover {
  border-color: #ffffff;
}
.launch-face {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    var(--face) center / cover no-repeat,
    radial-gradient(circle at 50% 50%, #ffffff 0%, rgb(214 232 255 / 0.85) 16%, #243a86 62%, #0a1030 100%);
  box-shadow: 0 0 0 1px rgb(214 224 255 / 0.5);
}
.launch-face::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7dffb0;
  border: 2px solid #080d1e;
}
.launch-text {
  display: grid;
  line-height: 1.2;
}
.launch-text b {
  font-size: 0.98rem;
}
.launch-text small {
  color: #b9c1dc;
  font-size: 0.74rem;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

/* ---- One medication ---- */
.med-top {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-space));
  padding: calc(var(--nav-space) + clamp(28px, 5vw, 64px)) var(--gut) clamp(36px, 5vw, 64px);
  border-radius: 0 0 40px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(50% 80% at 82% 46%, color-mix(in srgb, var(--hue) 34%, transparent), transparent 72%),
    linear-gradient(180deg, #04060f 0%, #080e22 100%);
}
.med-top > * {
  min-width: 0;
}
.med-words {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: min(760px, 100%);
  margin-left: max(0px, (100vw - var(--wide)) / 2 - var(--gut));
}
.crumb {
  font-size: 0.84rem;
  color: #b9c1dc;
}
.med-top h1 {
  font-size: clamp(3.2rem, 1.6rem + 7vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.med-sub {
  font-family: var(--code);
  font-size: 0.86rem;
  color: #c3cde6;
}
.med-tag {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  font-weight: 600;
  font-size: 0.92rem;
}
.med-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.med-meta {
  font-family: var(--code);
  font-size: 0.72rem;
  color: #8f9bbb;
}
.med-top .specimen {
  transform: none;
  perspective: 900px;
}
.med-jump {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: flex;
  gap: 6px;
  width: min(900px, 100% - 2 * var(--gut));
  margin: 18px auto 0;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.16);
  background: rgb(8 13 30 / 0.78);
  color: #f3f5fc;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-x: auto;
  scrollbar-width: none;
  color-scheme: dark;
}
.med-jump .chip {
  flex: none;
  border-color: transparent;
  background: none;
  white-space: nowrap;
}
.med-jump .chip:hover {
  background: rgb(196 208 255 / 0.12);
}
.med-body {
  width: min(900px, 100% - 2 * var(--gut));
  margin: 0 auto;
  padding: 12px 0 40px;
}
.med-sec {
  padding-top: 44px;
  scroll-margin-top: 130px;
}
.med-sec h2,
.med-next h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.025em;
}
.med-next {
  width: min(900px, 100% - 2 * var(--gut));
  margin: 0 auto;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

/* ---- Compare ---- */
.pickers {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.versus {
  padding-left: 6px;
  font-family: var(--voice);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-3);
}
.pick {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.pick::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 9px var(--hue);
}
.pick:hover:not(:disabled) {
  border-color: var(--hue);
}
.pick[aria-pressed="true"] {
  border-color: var(--hue);
  box-shadow:
    0 0 0 1px var(--hue),
    0 10px 30px color-mix(in srgb, var(--hue) 30%, transparent);
}
.pick:disabled {
  opacity: 0.35;
  cursor: default;
}
.compare-out {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

/* ---- Arrival: things settle into place as they come into view ---- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .reveal {
    opacity: 0;
    transform: perspective(1100px) translateY(30px) rotateX(9deg);
    transform-origin: 50% 100%;
    transition:
      opacity 0.7s var(--ease),
      transform 0.9s var(--ease),
      box-shadow 0.3s,
      border-color 0.3s;
    transition-delay: calc(var(--n, 0) * 70ms);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .tilt.reveal.in {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition-delay: 0s;
  }
  .tilt.reveal.in.leaning {
    transition:
      transform 0.08s linear,
      box-shadow 0.3s,
      border-color 0.3s;
  }
}

/* ---- Narrow ---- */
@media (max-width: 1020px) {
  .links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgb(214 224 255 / 0.16);
    background: rgb(8 13 30 / 0.96);
  }
  .links.open {
    display: flex;
  }
  .links a {
    padding: 12px 14px;
  }
  .menu-btn {
    display: grid;
  }
  .nav-cta {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  :root {
    --nav-space: 74px;
  }
  .nav {
    height: 54px;
    padding-left: 18px;
    gap: 8px;
  }
  .nav .btn.quiet {
    display: none;
  }
  .nav .btn.solid {
    padding: 9px 14px;
    font-size: 0.86rem;
  }
  .hero {
    min-height: 0;
    padding-bottom: 22px;
    border-radius: 0 0 28px 28px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .hero-copy {
    gap: 14px;
  }
  .portal {
    width: min(100%, 320px);
  }
  .plate {
    margin-top: -10px;
  }
  .hero-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
  }
  .hero-chips .chip {
    flex: none;
    white-space: nowrap;
  }
  .orbit-key .legend {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }
  .orbit-key .legend li {
    flex: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 20px 14px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .ways,
  .glass-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .way {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    border-radius: 24px;
  }
  .path {
    grid-template-columns: minmax(0, 1fr);
  }
  .path li {
    min-height: 0;
  }
  .glass,
  .cta {
    margin-inline: 6px;
    border-radius: 28px;
  }
  .glass-stage {
    position: relative;
    top: 0;
    order: -1;
  }
  .glass-stage .stack-view {
    min-height: 400px;
  }
  .meds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .med-card {
    padding: 18px 16px;
    border-radius: 22px;
  }
  .med-card h3 {
    font-size: 1.5rem;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .med-top {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 0 0 28px 28px;
  }
  .med-top .specimen {
    position: absolute;
    right: -40px;
    top: 80px;
    width: 200px;
    opacity: 0.5;
    pointer-events: none;
  }
  .med-words {
    position: relative;
    margin-left: 0;
  }
  .med-jump {
    top: 70px;
  }
  .launch {
    padding: 5px 16px 5px 5px;
  }
  .launch-face {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 520px) {
  .launch-text small {
    display: none;
  }
  .meds {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo {
    font-size: 1rem;
  }
}

:root { --face: url("/guide.webp"); }
