/* ClinicRail website. Dark: near-black surfaces in a few steps of grey, thin borders, large tight headlines and one
   neon lime accent. The old token names stay so every rule keeps working: --ink is now the text colour, --paper the
   page, --soft a raised surface, and --brass/--brass-bright the lime. --deep is for the darkest bands. */
:root {
  --ink: #ffffff;
  --ink-soft: #c4c4c4;
  --ink-faint: #8c8c8c;
  --on-ink: #f2f2f2;
  --on-ink-soft: #b3b3b3;
  --paper: #151515;
  --soft: #1f1f1c;
  --panel: #282828;
  --deep: #111111;
  --line: #2e2e2e;
  --line-strong: #414141;
  --brass: #faff69;
  --brass-bright: #faff69;
  --brass-hover: #eef400;
  --brass-tint: rgb(250 255 105 / 0.1);
  --on-accent: #151515;
  --green-ink: #6ad6a0;
  --green-tint: rgb(106 214 160 / 0.13);
  --radius: 16px;
  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
/* Headings in Inter Tight, a crisp, tight sans; everything else in Instrument Sans. */
h1, h2, h3 { margin: 0; font-family: "Inter Tight", "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
h2.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.03em; max-width: none; }
h3 { font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
/* Section labels: small brass capitals. */
.pill { display: block; margin-bottom: 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.sub { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }

/* Buttons: flat, with small rounded corners, in the one accent colour. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--brass-bright); color: var(--on-accent); font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: filter 0.15s, background-color 0.15s;
}
.button:hover { background: var(--brass-hover); }
.button:active { filter: brightness(0.94); }
/* The quiet button: a lime outline. */
.button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #9fa300; }
.button.ghost:hover { background: rgb(40 40 40 / 0.8); box-shadow: inset 0 0 0 1px var(--brass); }
.button.big { padding: 12px 24px; font-size: 1rem; }
.button.small { padding: 7px 15px; font-size: 0.875rem; }
.button .chev { flex-shrink: 0; width: 10px; height: 10px; margin-left: 2px; transition: transform 0.15s; }
.button:hover .chev { transform: translateX(2px); }

/* Header: clear over the opening screen, white once the page has scrolled past it (motion.js adds .solid) or a
   menu is open. Other pages start solid. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo img { width: 118px; height: auto; }
.logo-dark { display: none; }
.main-nav { display: flex; align-items: center; gap: 6px; font-size: 0.93rem; font-weight: 500; }
.nav-link, .menu-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0;
  background: none; color: #fff; font: inherit; text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.menu-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.2s; }
.menu.open .menu-button svg { transform: rotate(180deg); }
.nav-link:hover, .menu-button:hover, .menu.open .menu-button { background: rgb(65 65 65 / 0.35); color: var(--brass); }
.main-nav .button.small { margin-left: 10px; }
.site-header.solid, .site-header.menu-open, .site-header.mobile-open { background: rgb(21 21 21 / 0.88); backdrop-filter: blur(12px); border-color: var(--line); }

/* Dropdowns: one panel the full width of the page, under the bar. Inside, on the page's grid: a card on the left,
   then columns of links under small capital headings. A link's title turns lime on hover. */
.menu, .menu:has(.mega) { position: static; }
.dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  max-height: calc(100dvh - 68px); overflow-y: auto;
  background: #282828; color: var(--ink); border-bottom: 1px solid #414141;
  box-shadow: 0 40px 60px -30px rgb(0 0 0 / 0.8); animation: drop 0.16s ease-out;
}
@keyframes drop { from { opacity: 0; } }
.dropdown[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: 270px 1fr 1fr 260px; gap: 40px; padding: 26px 0 30px; }
.mega-card { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 16px; border-radius: 10px; border: 1px solid #414141; background: #1d1d1d; color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.mega-card:hover { border-color: #5a5a5a; }
.mega-vials { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 132px; margin-bottom: 8px; border-radius: 6px; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 110%, rgb(250 255 105 / 0.22), transparent 65%), #151515; }
.mega-vials img { width: 54px; height: auto; margin-bottom: -26px; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.6)); transition: transform 0.25s; }
.mega-vials img:nth-child(1) { transform: rotate(-10deg) translate(10px, 4px); }
.mega-vials img:nth-child(2) { position: relative; z-index: 1; width: 68px; }
.mega-vials img:nth-child(3) { transform: rotate(10deg) translate(-10px, 4px); }
.mega-card:hover .mega-vials img:nth-child(2) { transform: translateY(-5px); }
.mega-card > strong { padding: 0 10px; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.mega-card > span:not(.mega-vials):not(.button) { padding: 0 10px; font-size: 0.84rem; color: #dfdfdf; }
.mega-card .button { align-self: stretch; margin: 10px 10px 0; }
.mega-col { display: flex; flex-direction: column; padding-top: 8px; }
.mega-side { padding-left: 32px; border-left: 1px solid #333; }
.mega-head { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a0a0a0; }
.mega-item { display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background 0.15s; }
.mega-item:hover { background: rgb(65 65 65 / 0.35); }
.mega-item img { flex-shrink: 0; width: 32px; height: 32px; }
.mega-item strong { display: block; font-size: 0.9rem; font-weight: 600; transition: color 0.15s; }
.mega-item span span { display: block; font-size: 0.78rem; line-height: 1.35; color: #b3b3b3; }
.mega-item:hover strong { color: var(--brass); }
@media (max-width: 1100px) { .mega-grid { grid-template-columns: 230px 1fr 1fr 220px; gap: 24px; } .mega-side { padding-left: 20px; } }
.mobile-menu em.avail { background: var(--green-tint); color: var(--green-ink); }
.mobile-menu em.soon { background: #262626; color: var(--ink-faint); }

/* Small screens: a burger and a full-height menu. */
.burger { display: none; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 10px; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s, top 0.2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { height: calc(100dvh - 68px); overflow-y: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 12px 0 40px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.button) { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); }
.mobile-menu em { font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
/* Treatments and Platform start closed; a tap opens one. */
.mobile-group { border-bottom: 1px solid var(--line); }
.mobile-group summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.2s; }
.mobile-group[open] summary svg { transform: rotate(180deg); }
.mobile-group[open] summary { color: var(--brass); }
.mobile-group a:not(.button) { padding-left: 14px; font-size: 0.98rem; }
.mobile-group a:last-child { border-bottom: 0; margin-bottom: 8px; }
.mobile-menu .button { display: block; margin-top: 24px; text-align: center; }

/* Phones: a dark frame around a real screen. */
.phone {
  width: 260px; aspect-ratio: 390 / 844; padding: 9px;
  border-radius: 42px; background: #0b1016;
  box-shadow: 0 30px 60px -20px rgb(8 12 18 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #f5f7fa; }
.phone-lg { width: 300px; }
.phone-sm { width: 220px; }

/* The opening screen: near-black with one slow warm glow, the pitch on the left, one order's story on the right. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 150px 0 96px;
  background: var(--deep); color: #fff;
}
.hero::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent, rgb(17 17 17 / 0.5)); }
.hero-glow { position: absolute; inset: -25%; z-index: -2; filter: blur(90px); }
.hero-glow i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.hero-glow i:nth-child(1) { left: 52%; top: -14%; width: 58%; background: rgb(250 255 105 / 0.16); }
.hero-glow i:nth-child(2) { left: -6%; top: 55%; width: 40%; background: rgb(106 214 160 / 0.14); animation-duration: 27s; animation-delay: -6s; }
/* The treatments' vials, floating at different depths: near ones large and sharp at the edges, far ones small and soft. */
.hero-vials { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hv { position: absolute; height: auto; transform: rotate(var(--r)); animation: bob 9s ease-in-out infinite alternate; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45)); }
.hv-1 { width: 190px; right: -40px; top: 90px; --r: 14deg; }
.hv-2 { width: 120px; right: 520px; top: 70px; opacity: 0.55; filter: blur(3px); --r: -10deg; animation-duration: 11s; }
.hv-3 { width: 150px; right: 230px; bottom: -110px; --r: -8deg; animation-duration: 10s; animation-delay: -3s; }
.hv-4 { width: 90px; right: 40px; bottom: 60px; opacity: 0.5; filter: blur(4px); --r: 18deg; animation-duration: 12s; animation-delay: -5s; }
.hv-5 { width: 80px; left: 46%; bottom: 40px; opacity: 0.35; filter: blur(5px); --r: 8deg; animation-duration: 13s; }
.hv-6 { width: 70px; right: 470px; top: 330px; opacity: 0.3; filter: blur(6px); --r: -16deg; animation-duration: 14s; animation-delay: -7s; }
@keyframes bob { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(-18px) rotate(calc(var(--r) + 4deg)); } }
/* On phones, two vials stay at the edges, clear of the text. */
@media (max-width: 760px) {
  .hv-2, .hv-4, .hv-5, .hv-6 { display: none; }
  .hv-1 { width: 120px; right: -46px; top: auto; bottom: 250px; opacity: 0.55; filter: blur(1.5px) drop-shadow(0 20px 30px rgb(0 0 0 / 0.45)); }
  .hv-3 { width: 96px; right: auto; left: -34px; bottom: 40px; opacity: 0.35; filter: blur(3px); }
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, 10%) scale(1.15); }
  100% { transform: translate(12%, -12%) scale(0.92); }
}
.hero-coil { position: absolute; right: -10vw; top: 50%; width: 60vw; max-width: 900px; aspect-ratio: 1; margin-top: -30vw; z-index: -1; color: rgb(255 255 255 / 0.05); pointer-events: none; animation: unwind 160s linear infinite; }
@keyframes unwind { to { transform: rotate(-360deg); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -0.035em; line-height: 1.0; }
.lede { margin-top: 24px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--on-ink); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-link { color: #fff; font-weight: 500; text-underline-offset: 5px; }
.hero-points { list-style: none; margin: 52px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.92rem; color: var(--on-ink-soft); }
.hero-points strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }

/* The brand preview: the intake on a phone, and a card to try your own name and colour on it. */
.hero-try { position: relative; display: grid; justify-items: end; }
.hero-phone { zoom: 0.8; margin-right: 30px; box-shadow: 0 50px 90px -30px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.08) inset; }
.hero-try-card { position: absolute; left: -24px; top: 54%; width: 330px; margin: 0; padding: 18px 20px; border-radius: 18px; border: 0;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.9); }
.hero-try-card label[for] { font-weight: 600; }
@media (max-width: 960px) {
  .hero-try { justify-items: center; margin-top: 8px; }
  .hero-phone { margin-right: 0; zoom: 0.72; }
  .hero-try-card { position: relative; left: auto; top: auto; width: 100%; max-width: 30rem; margin-top: -60px; }
}
/* Sections */
section { padding: 128px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-grid > *, .closing-grid > * { min-width: 0; }
.split-visual { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 56px 32px; border-radius: 32px; background: var(--soft); border: 1px solid var(--line); }
.stack { display: grid; gap: 10px; width: 210px; }
.layer { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.layer-label { font-weight: 600; font-size: 0.95rem; }
.layer-items { font-size: 0.78rem; color: var(--ink-soft); }
.layer.brand { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.layer.engine { background: var(--brass-bright); border-color: var(--brass-bright); }
.layer.engine { color: var(--on-accent); }
.layer.engine .layer-items { color: #3a3c00; }
.layer.care { background: var(--deep); border-color: var(--line-strong); color: #fff; }
.layer.care .layer-items { color: var(--on-ink-soft); }
.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-soft); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg);
}

/* "See it in your brand": restyles the example phones. */
.try { margin-top: 32px; padding: 18px 20px; max-width: 30rem; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.try > label { display: block; font-size: 0.92rem; font-weight: 600; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.try input:not([type=color]) {
  flex: 1 1 11rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
}
.try input::placeholder { color: var(--ink-faint); }
.try input:focus { outline: none; border-color: var(--brass); }
.swatches { display: flex; align-items: center; gap: 8px; }
.swatches button, .swatch-custom {
  width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-strong); background: var(--c); transition: transform 0.15s;
}
.swatches button:hover, .swatch-custom:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(#e5484d, #f5c518, #46a758, #3e63dd, #8e4ec6, #e5484d); }
.swatch-custom input { position: absolute; inset: -8px; width: 200%; height: 200%; opacity: 0; cursor: pointer; }

/* An example patient screen, drawn in the page so it can take any brand's colour and move. */
.mock {
  --b: #2f6b4f; --bs: #f1f6f2; --bc: #fff; --bt: #2f6b4f;
  height: 100%; border-radius: 33px; overflow: hidden;
  display: flex; flex-direction: column; gap: 13px; padding: 30px 18px 20px;
  background: var(--bs); color: #1c2420; font-size: 12.5px; line-height: 1.4; text-align: left;
  transition: background 0.6s;
}
.mock header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mock-word { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: var(--bt); transition: color 0.6s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-step { flex-shrink: 0; font-size: 11px; color: #6f7a75; }
.mock-progress { height: 3px; border-radius: 3px; background: rgb(0 0 0 / 0.1); }
.mock-progress i { display: block; height: 100%; width: 34%; border-radius: 3px; background: var(--b); transition: width 0.6s, background 0.6s; }
.mock-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; }
.mock .q { display: grid; gap: 7px; }
.mock .q p { font-weight: 500; }
.mock .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock .yn span {
  position: relative; padding: 8px 10px 8px 28px; border-radius: 9px; background: #fff; border: 1.5px solid rgb(0 0 0 / 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mock .yn span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -5.5px; border-radius: 50%; border: 1.5px solid #9aa5a0; transition: 0.3s; }
.mock .yn span.on { border-color: var(--b); box-shadow: 0 0 0 1px var(--b); }
.mock .yn span.on::before { border-color: var(--b); background: radial-gradient(var(--b) 45%, transparent 50%); }
.mock-btn {
  margin-top: auto; padding: 11px; border-radius: 9px; text-align: center; font-weight: 600;
  background: var(--b); color: var(--bc); opacity: 0.45; transition: opacity 0.4s, background 0.6s, color 0.6s, transform 0.4s;
}
.mock.ready .mock-btn { opacity: 1; transform: scale(1.02); }

/* The request-status screen. */
.timeline { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; color: #8a9590; transition: color 0.4s; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bs); border: 1.5px solid #b4bdb9; transition: 0.4s; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 14px; bottom: -4px; width: 1.5px; background: #cfd6d3; transition: background 0.4s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: #1c2420; }
.timeline li.done::before { background: var(--b); border-color: var(--b); }
.timeline li.done::after { background: var(--b); }
.timeline li.now { color: #1c2420; font-weight: 600; }
.timeline li.now::before { border-color: var(--b); background: var(--b); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 45%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.mock-note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid rgb(0 0 0 / 0.08); font-weight: 500; min-height: 3.4em; }
.mock-note:empty { display: none; }

/* How it works: the steps scroll past while one phone stays in view and plays the step being read. */
.how { padding-bottom: 40px; }
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 24px; }
.journey-steps { list-style: none; margin: 0; padding: 0; }
.journey-step { display: grid; justify-items: start; align-content: center; min-height: max(72vh, 720px); max-width: 30em; opacity: 0.35; transition: opacity 0.4s; }
.journey-step.current, .calm .journey-step { opacity: 1; }
.journey-step h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.journey-step p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.step-shot { display: none; margin-bottom: 30px; }
.journey-phone { position: relative; }
/* Steps are at least as tall as the phone, so it stays centred beside the first and last ones too. */
.journey-phone .phone { position: sticky; top: calc(50vh - 325px); margin: 35px auto; display: grid; }
.journey-phone .screen { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s, background 0.6s; }
#journey[data-step="1"] [data-screen="questions"], #journey:not([data-step="1"]) [data-screen="status"] { opacity: 1; }
.step-number {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brass); color: var(--on-accent); font-weight: 600; font-size: 0.95rem;
}

/* Who it's for: three short descriptions of the businesses ClinicRail suits. */
.audience { padding-bottom: 64px; }
.audience .sub { max-width: 38em; }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; }
.audience-grid article { padding: 30px 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.audience-grid h3 { font-size: 1.3rem; }
.audience-grid p { margin-top: 10px; color: var(--ink-soft); }

/* Built for regulated care: a strip of four commitments under the opening screen. */
.trust { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trust-title { margin: 0 0 22px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.trust-list strong { display: block; margin-bottom: 2px; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.trust-icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brass-tint); color: var(--brass); }
.trust-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Who it's for: a small picture of each kind of partner, drawn in the page. */
.audience-grid article { display: flex; flex-direction: column; }
.aud-ui { height: 150px; margin-bottom: 24px; padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 0.8rem; overflow: hidden; }
.aud-shop { display: grid; gap: 8px; align-content: center; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--soft); color: var(--ink-soft); }
.shop-row i { width: 22px; height: 22px; border-radius: 6px; background: #333; }
.shop-row span { flex: 1; }
.shop-row.new { background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
.shop-row.new i { background: var(--green-ink); opacity: 0.8; }
.shop-row em { font-style: normal; font-size: 0.68rem; padding: 1px 7px; border-radius: 999px; background: var(--green-ink); color: #0a0a0a; }
.aud-site { display: flex; flex-direction: column; gap: 7px; background: #f5f2fb; color: #1c2420; }
.site-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.site-bar b { flex: 1; color: #6d3fa0; font-weight: 700; letter-spacing: -0.01em; }
.site-bar span { width: 20px; height: 4px; border-radius: 4px; background: #d9d0ea; }
.aud-site p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; color: #1c2420; }
.aud-site i { height: 5px; width: 80%; border-radius: 5px; background: #e2daf0; }
.aud-site i + i { width: 60%; }
.site-btn { align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 8px; background: #6d3fa0; color: #fff; font-weight: 600; }
.aud-post { display: flex; flex-direction: column; gap: 9px; }
.post-head { display: flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, #faff69, #b4532a, #6d3fa0, #faff69); }
.aud-post p { margin: 0; color: var(--ink); line-height: 1.4; }
.post-link { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: auto; padding: 5px 11px; border-radius: 999px; background: var(--brass); color: var(--on-accent); font-weight: 600; }
.post-link svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* One clinic, any brand: three example brands side by side, just before the contact form. */
.brands-band { padding: 112px 0; background: var(--deep); color: var(--on-ink); border-block: 1px solid var(--line); overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.band-copy h2 { color: #fff; }
.band-copy .sub { color: var(--on-ink-soft); }
.band-copy .button { margin-top: 34px; }
.band-phones { display: flex; justify-content: center; align-items: center; gap: 22px; }
.phone.mini { width: 190px; padding: 7px; border-radius: 32px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.12) inset; }
.phone.mini:nth-child(2) { transform: translateY(-28px); }
.brand-mock { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px 14px 16px; border-radius: 26px; background: var(--bs); color: #1c2420; font-size: 12px; }
.brand-mock b { color: var(--b); font-size: 13px; letter-spacing: -0.01em; }
.brand-mock p { margin: 14px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.brand-mock i { height: 5px; border-radius: 5px; background: rgb(0 0 0 / 0.09); }
.brand-mock i:nth-of-type(2) { width: 85%; }
.brand-mock i:nth-of-type(3) { width: 60%; }
.brand-mock span { margin-top: auto; padding: 9px; border-radius: 8px; background: var(--b); color: #fff; text-align: center; font-weight: 600; }

/* Who does what: the partner's side and ours, next to each other. */
.roles { padding-top: 96px; padding-bottom: 64px; }
.roles-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-top: 56px; }
.duty { padding: 34px 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.duty h3 { font-size: 1.6rem; color: inherit; }
.duty .checks { margin-top: 20px; }
.duty-you { background: var(--soft); }
.duty-us { background: var(--deep); color: var(--on-ink); border-color: var(--line-strong); }
.duty-us .checks { color: var(--on-ink-soft); }
.duty-us .checks li::before { border-color: var(--brass-bright); }

/* Getting started: four steps from first conversation to going live. */
.launch { padding-top: 96px; padding-bottom: 32px; }
.launch-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.launch-steps li { padding: 28px 26px 30px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.launch-steps h3 { font-size: 1.3rem; }
.launch-steps p { margin-top: 10px; color: var(--ink-soft); }

/* Questions partners ask. */
.faq { padding-top: 96px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid > * { min-width: 0; }
.faq .sub a { color: var(--ink); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; line-height: 1; color: var(--ink-faint); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-soft); }
.faq-list details p a { color: var(--ink); }

/* Why ClinicRail: offering treatment on your own, next to what ClinicRail already runs. */
.compare { padding-top: 96px; padding-bottom: 32px; }
.compare .sub { max-width: 36em; }
.tl { margin-top: 56px; display: grid; gap: 44px; }
.tl-axis { display: flex; justify-content: space-between; margin: 0 0 -18px 170px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.tl-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.tl-who { font-size: 1.1rem; letter-spacing: -0.01em; }
.tl-row.us .tl-who { color: var(--brass); }
.tl-track { position: relative; display: flex; gap: 4px; height: 64px; margin: 0; padding: 0; list-style: none; }
.tl-seg { display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: #262624; color: var(--ink-soft); font-size: 0.84rem; font-weight: 500; line-height: 1.2; }
.tl-seg:nth-child(2n) { background: #2c2c2a; }
.tl-seg.gold { flex: 0 0 17%; background: var(--brass-bright); color: var(--on-accent); font-weight: 600; box-shadow: 0 10px 30px -12px rgb(250 255 105 / 0.45); }
.tl-flag { position: absolute; top: -24px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; }
.tl-flag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tl-flag.own { right: 4px; color: var(--ink-soft); }
.tl-flag.us { left: calc(17% - 58px); color: var(--brass); }
.tl-ready { flex: 1; display: flex; align-items: center; padding: 0 18px; border-radius: 10px; border: 1px dashed rgb(250 255 105 / 0.35);
  background: rgb(250 255 105 / 0.05); color: var(--brass); font-size: 0.84rem; font-weight: 500; }

/* Marketers' card: a campaign's funnel into the intake. */
.aud-ads { display: grid; gap: 9px; align-content: center; }
.ads-head { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-faint); }
.ads-head b { color: var(--ink); }
.ads-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 8px; color: var(--ink-soft); }
.ads-row i { height: 8px; border-radius: 4px; background: var(--brass-bright); }

/* What we handle: cards that each show a small piece of the product. */
.what { padding-top: 96px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.card { padding-bottom: 30px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card h3, .card > p { padding: 0 28px; }
.card > p { margin-top: 10px; color: var(--ink-soft); }
.card-ui { height: 208px; padding: 28px 28px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 0.86rem; }
.card-ui i { display: block; height: 8px; border-radius: 4px; background: #363636; }
.tag { flex-shrink: 0; font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #262626; color: var(--ink-soft); }
.tag.ok { background: var(--green-tint); color: var(--green-ink); }
.tag.ask { background: var(--brass-tint); color: var(--brass); }
.ui-review .row, .ui-rx .rx, .ui-pay .field, .ui-privacy .side { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ui-review .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ui-review .row span:nth-child(2) { flex: 1; font-weight: 500; }
.ui-review .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ui-review .row:first-child .dot { background: var(--green-ink); }
.ui-rx .rx { display: grid; gap: 2px; padding: 16px 18px; }
.ui-rx .rx strong { font-size: 1.05rem; font-weight: 600; }
.ui-rx .rx span { color: var(--ink-soft); }
.rx-sign { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink-soft); font-size: 0.82rem; }
.rx-sign i { width: 16px; height: 16px; border-radius: 50%; background: var(--green-ink); position: relative; }
.rx-sign i::after { content: ""; position: absolute; left: 4.5px; top: 5px; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.ui-ship ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ui-ship li { position: relative; padding-top: 26px; text-align: center; font-size: 0.8rem; color: var(--ink-faint); }
.ui-ship li::before { content: ""; position: absolute; left: 50%; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line-strong); z-index: 1; }
.ui-ship li:not(:last-child)::after { content: ""; position: absolute; left: 50%; right: -50%; top: 7px; height: 2px; background: var(--line-strong); }
.ui-ship li.done, .ui-ship li.now { color: var(--ink); font-weight: 500; }
.ui-ship li.done::before { background: var(--ink-soft); border-color: var(--ink-soft); }
.ui-ship li.done::after { background: var(--ink-soft); }
.ui-ship li.now::before { background: var(--brass-bright); border-color: var(--brass-bright); animation: beat 1.8s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgb(250 255 105 / 0.5); } 100% { box-shadow: 0 0 0 10px transparent; } }
.ui-pay .field { padding: 9px 12px; border-radius: 10px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ui-pay .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-pay .pay { padding: 9px; border-radius: 10px; background: var(--brass); color: var(--on-accent); text-align: center; font-weight: 600; }
.ui-note { gap: 11px; }
.note-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.ui-privacy { flex-direction: row; align-items: stretch; gap: 10px; }
.ui-privacy .side { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.ui-privacy .side b { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.ui-privacy .side:first-child i { filter: blur(1.5px); }
.ui-privacy .tag { align-self: flex-start; }

/* Sections ease in as they scroll into view (motion.js adds .reveal, then .in). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.journey-step.reveal.in:not(.current) { opacity: 0.35; }

/* Where we work */
.where { padding-top: 96px; }
.where .sub { max-width: 36em; }
.places { margin-top: 56px; }
/* As many columns as fit: one region or twenty, the grid adapts. */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.place-region { padding: 26px 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.place-region h3 { font-size: 1.25rem; }
.place-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.place-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.place-list li:first-child { border-top: 0; }
.place-name { font-weight: 500; }
.place-note { display: block; font-size: 0.82rem; font-weight: 400; color: var(--ink-faint); }
.place-list .pill { display: inline-block; flex-shrink: 0; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.place-list .pill::before { content: none; }
.pill-live { background: var(--green-tint); color: var(--green-ink); }
.pill-soon { background: var(--brass-tint); color: var(--brass); }
.places-ask { margin-top: 28px; color: var(--ink-soft); }
.places-ask a { color: var(--ink); font-weight: 500; }

/* Closing */
.closing { background: var(--soft); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.closing-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.closing-lede { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
.closing-alt { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.closing-alt a { color: var(--ink); }

/* Contact form */
.contact-form, .form-done { padding: 32px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.contact-form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; }
.contact-form .optional { font-weight: 400; color: var(--ink-faint); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
}
/* Text boxes and dropdowns are the same size, so fields in a row line up. */
.contact-form input, .contact-form select { min-height: 46px; width: 100%; }
.contact-form .row > * { min-width: 0; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgb(250 255 105 / 0.2); }
.contact-form [aria-invalid="true"] { border-color: #b42318; }
/* Programs: tick any number. */
.contact-form .choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form .choices legend { padding: 0; font-size: 0.92rem; font-weight: 500; }
.contact-form .hint { margin: 2px 0 10px; font-size: 0.85rem; color: var(--ink-faint); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-form .choice { position: relative; display: block; font-weight: 400; cursor: pointer; }
.contact-form .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); font-size: 0.92rem; line-height: 1.25; transition: border-color 0.15s, background-color 0.15s; }
.choice span::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--paper) center / 11px no-repeat; transition: 0.15s; }
.choice em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }
.choice:hover span { border-color: var(--ink-faint); }
.choice input:checked + span { border-color: var(--brass); background: var(--brass-tint); }
.choice input:checked + span::before { border-color: var(--brass); background-color: var(--brass); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23151515' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 3px solid var(--brass-bright); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice span { border-color: #b42318; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .consent { font-size: 0.85rem; color: var(--ink-soft); }
.contact-form .consent a { color: var(--ink); }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-error { padding: 12px 14px; border-radius: 10px; background: rgb(240 68 56 / 0.12); color: #ff8a80; font-size: 0.92rem; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 56px 0 34px; background: var(--deep); border-top: 1px solid var(--line); color: var(--on-ink-soft); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row img { width: 104px; height: auto; }

/* Smaller screens */
@media (max-width: 960px) {
  .main-nav > .button.small { display: none; }
  .main-nav .menu, .main-nav .nav-link { display: none; }
  .burger { display: block; }
}
@media (max-width: 960px) {
  section { padding: 84px 0; }
  .split-grid, .closing-grid, .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 120px 0 72px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .audience-grid, .roles-grid, .faq-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 56px; }
  .brands-band { padding: 84px 0; }
  .faq-grid { gap: 32px; }
  .launch-steps { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .contact-form, .form-done { padding: 22px; }
  /* No room for a phone that stays put: each step shows its own still instead. */
  .journey { grid-template-columns: 1fr; margin-top: 48px; }
  .journey-phone { display: none; }
  .step-shot { display: block; }
  .journey-step, .journey-step.reveal.in:not(.current) { min-height: 0; opacity: 1; margin-bottom: 56px; }
  .how { padding-bottom: 16px; }
}
@media (max-width: 640px) {
  .logo img { width: 108px; }
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .launch-steps { grid-template-columns: 1fr; }
  .duty { padding: 28px 24px; }
  .stack { display: none; }
  .split-visual { padding: 32px 16px; }
  .phone-lg { width: 260px; }
  /* On phones the proof points close the hero, under the brand preview, as one compact row. */
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-try { order: 1; margin-top: 40px; }
  .hero-points { order: 2; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; padding-top: 20px; font-size: 0.76rem; line-height: 1.35; }
  .hero-points strong { font-size: 0.84rem; margin-bottom: 2px; }
  .trust-list { grid-template-columns: 1fr; gap: 18px; }
  .band-phones { gap: 10px; }
  .phone.mini { width: 31%; min-width: 0; padding: 4px; border-radius: 20px; }
  .phone.mini:nth-child(2) { transform: translateY(-14px); }
  .brand-mock { padding: 14px 8px 10px; gap: 6px; border-radius: 16px; font-size: 9px; }
  .brand-mock b { font-size: 9px; }
  .brand-mock p { margin: 6px 0 2px; font-size: 10.5px; }
  .brand-mock span { padding: 6px; border-radius: 6px; }
  .button.big { padding: 12px 22px; }
}

/* Privacy notice and other plain text pages */
.prose { max-width: 44rem; padding-top: 40px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-size: 1.25rem; margin-top: 36px; max-width: none; }
.prose p { margin-top: 12px; color: var(--ink-soft); }
.prose a { color: var(--ink); }

/* Less motion for people who've asked their device for it. */
@media (prefers-reduced-motion: reduce) {
  .hero-glow i, .hero-coil, .hv, .timeline li.now::before, .ui-ship li.now::before { animation: none; }
  .mock, .mock *, .card, .journey-step, .site-header { transition: none; }
}

/* Other pages: treatments, blog, careers. */
.subpage main { padding-top: 68px; }
.page-head { padding: 88px 0 64px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link { color: var(--brass); }
.text-link:hover { color: var(--brass-hover); }
.status { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status.live { background: var(--green-tint); color: var(--green-ink); }
.status.soon { background: #262626; color: var(--ink-soft); }
.treatment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.treatment-card { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s; }
.treatment-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.treatment-card .status { margin-top: 6px; justify-self: start; }
.treatment-tag { font-size: 0.85rem; color: var(--ink-faint); }
.treatment-card h3 { font-size: 1.25rem; }
/* Each program as a vial with its name on the label (tools/vials.py). */
.card-vial { display: grid; place-items: center; height: 240px; margin: -6px -6px 14px; border-radius: 12px; background: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 75%), #1a1a18; }
.card-vial img { width: 112px; height: auto; transition: transform 0.25s; }
.treatment-card:hover .card-vial img { transform: translateY(-4px) rotate(-3deg); }
.treatment .section-vial { width: 140px; height: auto; margin-bottom: 26px; }
.treatment { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 68px; }
.treatment-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.treatment .sub { margin-top: 0; }
.treatment .text-link { display: inline-block; margin-top: 28px; }
.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; }
.cta-band .sub { margin: 18px auto 0; }
.cta-band .button { margin-top: 32px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 48px; }
.post-card { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
/* Careers: the page head with the team around the clinic: four groups joined to the ClinicRail mark. */
.careers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.careers-art { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 100% at 85% 0%, rgb(250 255 105 / 0.2), transparent 60%), radial-gradient(60% 70% at 0% 110%, rgb(106 214 160 / 0.16), transparent 70%), var(--deep); border: 1px solid var(--line); }
.ca-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ca-lines line { stroke: rgb(250 255 105 / 0.6); stroke-width: 1.8; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: ca-flow 1.6s linear infinite; }
@keyframes ca-flow { to { stroke-dashoffset: -9; } }
.ca-mark { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; translate: -50% -50%; border-radius: 20px;
  box-shadow: 0 0 0 10px rgb(250 255 105 / 0.1), 0 0 0 22px rgb(250 255 105 / 0.05), 0 20px 40px -12px rgb(0 0 0 / 0.6); }
.ca-chip { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.6); animation: chip-float 7s ease-in-out infinite alternate; }
.ca-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--d); }
.ca-1 { left: 24%; top: 24%; }
.ca-2 { left: 76%; top: 30%; animation-delay: -2s; }
.ca-3 { left: 24%; top: 74%; animation-delay: -4s; }
.ca-4 { left: 76%; top: 70%; animation-delay: -1s; }
@keyframes chip-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ca-chip, .ca-lines line { animation: none; } }
@media (max-width: 960px) { .careers-head { grid-template-columns: 1fr; gap: 36px; } .careers-art { height: 340px; } }
@media (max-width: 640px) { .ca-chip { padding: 6px 11px; font-size: 0.78rem; } .ca-mark { width: 64px; height: 64px; border-radius: 17px; } .ca-1, .ca-3 { left: 27%; } .ca-2, .ca-4 { left: 73%; } }
/* Banners: a post's own image, or the default one (assets/blog/default.jpg). */
.post-card-img { width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: -24px -24px 10px; }
.post-banner { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin-top: 24px; border-radius: 18px; }
.post-card time { font-size: 0.78rem; color: var(--ink-faint); }
.post-card h2 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; max-width: none; }
.post-card p { font-size: 0.92rem; color: var(--ink-soft); }
.post-card .text-link { font-size: 0.9rem; }
.post { padding: 56px 0 96px; }
.post .prose { max-width: 40rem; font-size: 0.98rem; }
.post .prose h1 { margin-top: 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.015em; line-height: 1.12; }
.post-meta { margin-top: 24px; font-size: 0.82rem; color: var(--ink-faint); }
.lede-dark { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.post .prose h2 { font-size: 1.15rem; margin-top: 32px; letter-spacing: -0.015em; }
/* Code on the developer page. */
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--soft); font: 500 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.prose pre { margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: #e8e4da; font-size: 0.82rem; }
.prose h3 { margin-top: 26px; font-size: 1.05rem; }
.prose h3 code { font-size: 0.95em; }
.dev ol li + li { margin-top: 8px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.prose li strong { color: var(--ink); }
.prose li { margin-top: 6px; }
.post-cta { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.post-cta p { margin: 0; font-weight: 600; color: var(--ink); }

/* The blog's own page head is smaller than the other pages'. */
.page-head:has(.post-grid) h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.page-head:has(.post-grid) .sub { font-size: 1rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.value-grid article { padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.value-grid p { margin-top: 10px; color: var(--ink-soft); }
.roles { padding-top: 0; }
.role-list { margin-top: 28px; }
.role { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.role strong { display: block; }
.role span span { color: var(--ink-faint); font-size: 0.9rem; }
.no-roles { padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); color: var(--ink-soft); }
.no-roles a { color: var(--ink); }

/* Footer, on every page. */
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 32px; }
.footer-note { margin-top: 14px; max-width: 22em; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links p { margin-bottom: 10px; color: #fff; font-weight: 600; }
.footer-links a { display: block; padding: 4px 0; color: var(--on-ink-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-base { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .treatment-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .value-grid { grid-template-columns: 1fr; }
  .treatment-cards { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 56px 0 44px; }
  .treatment { padding: 64px 0; }
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .treatment-cards { grid-template-columns: 1fr; }
}
.prose .updated { margin-top: 8px; font-size: 0.92rem; color: var(--ink-faint); }

/* The timeline stacks on phones: each track's steps run down the page, ending at its launch flag. */
@media (max-width: 760px) {
  .tl { gap: 32px; }
  .tl-axis { display: none; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
  .tl-track { flex-direction: column; height: auto; }
  .tl-seg, .tl-ready { flex: none !important; min-height: 46px; padding: 10px 14px; }
  .tl-seg.gold { flex: none; }
  .tl-flag { position: static; order: 9; margin-top: 6px; }
  .tl-row.us .tl-flag { order: 1; margin: 2px 0 6px; }
  .tl-ready { order: 2; }
}
