/* Ancizar Serif (SIL OFL 1.1, licence alongside the file): display face for headings. */
@font-face {
  font-family: "Ancizar Serif";
  src: url("assets/fonts/ancizar-serif/AncizarSerif-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17201D;
  --ink-soft: #333E3A;
  --muted: #6B7772;
  --mist: #E2E6E3;
  --surface: #F6F6F3;
  --white: #FFFFFF;
  --sage: #58675D;
  --sage-dark: #4A574F;
  --sage-soft: #A7B89F;
  --sage-wash: #F6F8F5;
  --cream: #F6E3D9;
  --rose: #C98288;
  --rose-dark: #B56B72;
  --surface-soft: #EEF2EC;
  /* The dark stage (header, hero, journey): ink with graphite hardware and soft text. */
  --graphite: #2B3431;
  --graphite-dark: #1D2522;
  --on-dark-muted: #A9B4AE;
  --line-dark: rgba(255, 255, 255, 0.12);
  --display: "Ancizar Serif", Georgia, "Times New Roman", serif;
  --border: var(--mist);
  --shadow: none;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}

.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header-sticky { position: sticky; top: 0; }
:target, #join { scroll-margin-top: 6rem; }

.brand { display: inline-flex; }
.brand img { width: 11.5rem; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.primary-nav > a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-nav > a:not(.button):hover { color: var(--ink); }

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { background: var(--sage-dark); }
.button-small { min-height: 2.65rem; padding: 0.65rem 1.1rem; font-size: 0.92rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
  background: var(--surface);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.hero-title,
.section h2,
.principles h2,
.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero-eyebrow { margin: 0 0 1.1rem; color: var(--sage-dark); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.hero-title { font-size: clamp(3.2rem, 5.2vw, 5rem); text-wrap: balance; }
.hero-title .title-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .title-line > span { display: block; }
.hero-title .title-accent { color: var(--sage); }

.hero-lead {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}


/* Why it's safe to switch: three short reassurances on ink, directly above the waitlist form. */
.trust-strip { padding: clamp(3rem, 5vw, 4rem) 0; color: var(--white); background: var(--ink); }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.trust-list article { position: relative; padding-left: 1.3rem; }
.trust-list article::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--sage-soft); }
.trust-list h3 { margin: 0 0 0.45rem; color: var(--white); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.2; }
.trust-list p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; }

.section { padding: clamp(5.5rem, 9vw, 8rem) 0; }
.section-intro { max-width: 46rem; }
.section h2 { font-size: clamp(2.55rem, 4.7vw, 4.45rem); }
.section-intro > p:last-child { max-width: 42rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.section-soft { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.feature-grid-pairs { grid-template-columns: repeat(2, 1fr); }
.feature-card { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--border); border-top: 3px solid var(--sage); border-radius: var(--radius-lg); background: var(--white); }
.feature-card h3 { margin: 0 0 0.6rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 400; line-height: 1.2; }
.feature-card p { margin: 0; color: var(--muted); }

/* The drug book leads compliance: its copy beside the vial demo, linking to the drug book page. */
.drugbook-lead { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); margin-top: 3.5rem; }
.drugbook-lead h3 { margin: 0 0 0.8rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.12; }
.drugbook-lead p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.drugbook-lead .section-link { margin-top: 1.6rem; }
.drugbook-lead + .feature-grid { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Vial demo: a vial's Zennette sticker is scanned and the dose writes itself into the drug book.
   site.js adds .is-ready (held at the start) and then .is-playing once it is in view. Without the
   script, or with reduced motion, the finished state shows. Data shown is illustrative. */
.vial-demo { position: relative; margin: 0; display: grid; grid-template-columns: minmax(10rem, 0.75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); padding: clamp(1.25rem, 3vw, 2.25rem); color: var(--white); border-radius: var(--radius-lg); background: var(--ink); }
.vial-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 1.1rem; min-height: 16.5rem; }
.vial { position: relative; width: 6.4rem; height: 12.5rem; }
.vial > span { position: absolute; left: 50%; translate: -50% 0; }
.vial-cap { top: 0; width: 4rem; height: 2.3rem; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, var(--rose-dark), var(--rose) 45%, var(--rose-dark)); }
.vial-neck { top: 2.2rem; width: 3.1rem; height: 1.1rem; background: linear-gradient(90deg, #AEB8B2, #E9EEEA 40%, #A3ADA7); }
.vial-body { top: 3.2rem; bottom: 0; width: 100%; overflow: hidden; border-radius: 0.6rem 0.6rem 0.95rem 0.95rem; background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.3) 28%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.vial-body::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: rgba(167, 184, 159, 0.35); }
.sticker { position: absolute; top: 4.6rem; left: 50%; width: 9.2rem; translate: -50% 0; padding: 0.5rem 0.6rem 0.4rem; color: var(--ink); border-radius: 3px; background: var(--white); box-shadow: 0 0.5rem 1.2rem -0.6rem rgba(0, 0, 0, 0.55); font-size: 0.62rem; line-height: 1.3; }
.sticker-brand { display: flex; align-items: center; gap: 0.3rem; color: var(--sage-dark); font-weight: 800; }
.sticker-brand img { width: 0.85rem; height: 0.85rem; }
.sticker-product { display: block; margin-top: 0.2rem; font-size: 0.74rem; font-weight: 800; }
.sticker-meta { display: block; color: var(--ink-soft); }
.sticker-barcode { position: relative; display: block; height: 1.55rem; margin-top: 0.35rem; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 7px), repeating-linear-gradient(90deg, transparent 0 4px, var(--ink) 4px 5px, transparent 5px 11px); }
.sticker-code { display: block; margin-top: 0.15rem; font-size: 0.6rem; font-variant-numeric: tabular-nums; letter-spacing: 0.14em; text-align: center; }
.scan-line { position: absolute; top: -0.35rem; bottom: -0.35rem; left: 0; width: 2px; opacity: 0; background: var(--rose); box-shadow: 0 0 0.6rem 0.15rem rgba(201, 130, 136, 0.8); }
/* Camera brackets around the sticker. */
.scan-frame { position: absolute; top: 3.85rem; left: 50%; width: 11rem; height: 7rem; translate: -50% 0; color: var(--sage-soft); background: linear-gradient(currentColor, currentColor) 0 0 / 1.1rem 2px, linear-gradient(currentColor, currentColor) 0 0 / 2px 1.1rem, linear-gradient(currentColor, currentColor) 100% 0 / 1.1rem 2px, linear-gradient(currentColor, currentColor) 100% 0 / 2px 1.1rem, linear-gradient(currentColor, currentColor) 0 100% / 1.1rem 2px, linear-gradient(currentColor, currentColor) 0 100% / 2px 1.1rem, linear-gradient(currentColor, currentColor) 100% 100% / 1.1rem 2px, linear-gradient(currentColor, currentColor) 100% 100% / 2px 1.1rem; background-repeat: no-repeat; }
.scan-result { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem 0.3rem 0.5rem; color: var(--ink); border-radius: 999px; background: var(--sage-soft); font-size: 0.8rem; font-weight: 750; }
.scan-result svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.demo-replay { display: none; padding: 0.2rem 0.7rem; color: var(--white); border: 1px solid var(--rose); border-radius: 999px; background: var(--rose); font: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.demo-replay:hover { border-color: var(--rose-dark); background: var(--rose-dark); }
.vial-demo.is-ready .demo-replay { display: inline-block; }

/* The drug book as a ledger card. */
.ledger { min-width: 0; overflow: hidden; color: var(--ink); border-radius: var(--radius-md); background: var(--white); font-size: 0.8rem; line-height: 1.4; }
.ledger-head, .ledger-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0.75rem 1rem; }
.ledger-head { border-bottom: 1px solid var(--mist); }
.ledger-head strong { font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
.ledger-head span { color: var(--muted); font-size: 0.74rem; font-weight: 650; }
.ledger-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 0 0.85rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--mist); }
.ledger-row time { color: var(--muted); font-size: 0.74rem; }
.ledger-row b { display: block; font-weight: 750; }
.ledger-row small { display: block; color: var(--muted); font-size: 0.74rem; }
.ledger-qty { text-align: right; white-space: nowrap; }
.ledger-qty b { font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ledger-new { overflow: hidden; }
.ledger-new > .ledger-row { background: var(--sage-wash); box-shadow: inset 3px 0 0 var(--sage); }
.ledger-foot { color: var(--muted); font-size: 0.76rem; }
.ledger-balance { display: inline-grid; color: var(--ink); font-weight: 800; }
.ledger-balance > span { grid-area: 1 / 1; }
.ledger-balance .balance-old { visibility: hidden; }
.ledger-lock { display: inline-flex; align-items: center; gap: 0.35rem; }
.ledger-lock svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: var(--sage); stroke-width: 2; }

/* Held at the start until it plays. */
.vial-demo.is-ready .ledger-new { max-height: 0; }
.vial-demo.is-ready .scan-result, .vial-demo.is-ready .ledger-lock { opacity: 0; }
.vial-demo.is-ready .balance-old { visibility: visible; }
.vial-demo.is-ready .balance-new { visibility: hidden; }
.vial-demo.is-playing .scan-line { animation: scan-sweep 900ms 500ms ease-in-out both; }
.vial-demo.is-playing .scan-frame { animation: scan-lock 900ms 500ms ease both; }
.vial-demo.is-playing .scan-result { animation: demo-pop 320ms 1450ms cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.vial-demo.is-playing .ledger-new { animation: row-open 420ms 1800ms ease both; }
.vial-demo.is-playing .ledger-new > .ledger-row > * { animation: row-write 600ms 2150ms ease both; }
.vial-demo.is-playing .balance-old { animation: balance-out 260ms 2700ms ease both; }
.vial-demo.is-playing .balance-new { animation: balance-in 260ms 2700ms ease both; }
.vial-demo.is-playing .ledger-lock { animation: demo-fade 400ms 3100ms ease both; }
@keyframes scan-sweep { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes scan-lock { 0%, 70% { color: var(--sage-soft); } 80%, 90% { color: var(--rose); } 100% { color: var(--sage-soft); } }
@keyframes demo-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes row-open { from { max-height: 0; } to { max-height: 10rem; } }
@keyframes row-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes balance-out { from { visibility: visible; opacity: 1; transform: none; } to { visibility: hidden; opacity: 0; transform: translateY(-0.6em); } }
@keyframes balance-in { from { visibility: visible; opacity: 0; transform: translateY(0.6em); } to { visibility: visible; opacity: 1; transform: none; } }
@keyframes demo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Script demo: a small Zennette window. site.js steps data-scene (record, record-open, request,
   request-consent, requested, call-ringing, call-live, call-approved, approved) and moves the cursor
   onto each [data-target]. The markup's data-scene="approved" is the finished state. */
.app-demo { box-shadow: 0 1.5rem 3rem -2rem rgba(23, 32, 29, 0.35); }
.app-demo .shot-bar { justify-content: space-between; }
.script-replay { display: none; padding: 0.1rem 0.6rem; color: var(--white); border: 1px solid var(--rose); border-radius: 999px; background: var(--rose); font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.script-replay:hover { border-color: var(--rose-dark); background: var(--rose-dark); }
.app-demo.is-ready .script-replay { display: inline-block; }
.script-screen { position: relative; aspect-ratio: 16 / 11; min-height: 21rem; overflow: hidden; color: var(--ink); background: var(--white); font-size: 0.78rem; line-height: 1.4; }
.scene { position: absolute; inset: 0; padding: 1.1rem 1.25rem; background: var(--white); }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding-bottom: 0.75rem; margin-bottom: 0.85rem; border-bottom: 1px solid var(--mist); }
.app-head b { font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
.app-head > span { color: var(--muted); }
.record-sections { margin: 0; padding: 0; list-style: none; }
.record-sections li { display: flex; justify-content: space-between; padding: 0.6rem 0.75rem; border: 1px solid var(--mist); border-top: 0; }
.record-sections li:first-child { border-top: 1px solid var(--mist); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.record-sections li:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.record-sections em { min-width: 1.4rem; color: var(--muted); border-radius: 999px; background: var(--surface-soft); font-style: normal; font-weight: 700; text-align: center; }
.record-scripts { font-weight: 750; }
.record-sections .record-scripts-body { display: block; max-height: 4rem; overflow: hidden; padding-block: 0.7rem; background: var(--sage-wash); transition: max-height 300ms ease, padding 300ms ease; }
.script-demo[data-scene="record"] .record-sections .record-scripts-body { max-height: 0; padding-block: 0; border-bottom-width: 0; }
.app-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; color: var(--white); border-radius: var(--radius-md); background: var(--sage); font-weight: 700; transition: background 150ms ease, transform 150ms ease; }
.app-button.is-pressed { background: var(--sage-dark); transform: scale(0.96); }
.app-button svg, .app-file svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
/* Panels slide in from the right over the treatment record, as the booking drawers do. */
.scene-panel { left: auto; width: min(64%, 26rem); border-left: 1px solid var(--mist); box-shadow: -1rem 0 2rem -1.5rem rgba(23, 32, 29, 0.4); transform: translateX(105%); transition: transform 380ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.script-demo[data-scene^="request"]:not([data-scene="requested"]) .scene-request,
.script-demo[data-scene="requested"] .scene-requested,
.script-demo[data-scene="approved"] .scene-approved { transform: none; }
.scene-record::after { content: ""; position: absolute; inset: 0; background: rgba(23, 32, 29, 0.18); opacity: 0; transition: opacity 300ms ease; }
.script-demo:not([data-scene^="record"]) .scene-record::after { opacity: 1; }
.app-group { display: grid; gap: 0.4rem; margin-bottom: 0.95rem; }
.app-label { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.app-product { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0.75rem; align-items: end; padding: 0.55rem 0.65rem; border: 1px solid var(--mist); border-radius: var(--radius-md); }
.app-product small { display: block; color: var(--muted); font-size: 0.66rem; }
.app-toggle { display: block; width: 1.9rem; height: 1.05rem; margin-top: 0.1rem; border-radius: 999px; background: var(--sage); position: relative; transition: background 200ms ease; }
.app-toggle::after { content: ""; position: absolute; top: 0.15rem; left: 1rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--white); transition: left 200ms ease; }
.script-demo[data-scene="request"] .app-toggle { background: var(--mist); }
.script-demo[data-scene="request"] .app-toggle::after { left: 0.15rem; }
.app-choice, .app-person, .app-line, .app-file { display: flex; align-items: center; gap: 0.45rem; }
.app-choice i { width: 0.8rem; height: 0.8rem; border: 0.22rem solid var(--sage); border-radius: 50%; }
.app-person { padding: 0.45rem 0.6rem; border: 1px solid var(--mist); border-radius: var(--radius-md); font-weight: 700; }
.app-person small { color: var(--muted); font-weight: 500; }
.app-person .online { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4E9A62; }
.app-head .app-status { padding: 0.1rem 0.55rem; color: var(--ink-soft); border-radius: 999px; background: var(--surface-soft); font-size: 0.7rem; font-weight: 750; }
.app-head .app-status.is-approved { color: var(--white); background: var(--sage); }
.app-file { padding: 0.5rem 0.6rem; color: var(--sage-dark); border: 1px solid var(--sage-soft); border-radius: var(--radius-md); background: var(--sage-wash); font-weight: 750; }
.app-line { color: var(--ink-soft); }
/* The video call fills the window, as the real call screen does. */
.scene-call { display: grid; grid-template-rows: 1fr auto auto; gap: 0.75rem; padding: 0.9rem; color: var(--white); background: var(--ink); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s 300ms; }
.script-demo[data-scene^="call"] .scene-call { opacity: 1; visibility: visible; transition-delay: 0s; }
.call-tiles { position: relative; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--graphite); }
.call-tile { display: grid; justify-items: center; gap: 0.35rem; }
.call-avatar { position: relative; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; color: var(--ink); border-radius: 50%; background: var(--cream); font-family: var(--display); font-size: 1.35rem; }
.call-ring { position: absolute; inset: 0; border: 2px solid var(--rose); border-radius: 50%; opacity: 0; }
.script-demo[data-scene="call-ringing"] .call-ring { animation: call-ring 1.4s ease-out infinite; }
.script-demo[data-scene="call-ringing"] .call-ring + .call-ring { animation-delay: 0.7s; }
.call-state { color: var(--on-dark-muted); font-size: 0.74rem; }
.state-live, .script-demo[data-scene="call-ringing"] .state-ringing { display: inline; }
.state-ringing, .script-demo[data-scene="call-ringing"] .state-live { display: none; }
.call-wave { display: flex; align-items: center; gap: 3px; height: 1.1rem; }
.call-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--sage-soft); }
.script-demo[data-scene="call-ringing"] .call-wave { visibility: hidden; }
.script-demo[data-scene="call-live"] .call-wave i, .script-demo[data-scene="call-approved"] .call-wave i { animation: call-wave 900ms ease-in-out infinite alternate; }
.call-wave i:nth-child(2) { animation-delay: -300ms !important; }
.call-wave i:nth-child(3) { animation-delay: -600ms !important; }
.call-wave i:nth-child(4) { animation-delay: -150ms !important; }
.call-wave i:nth-child(5) { animation-delay: -450ms !important; }
.call-me { position: absolute; right: 0.6rem; bottom: 0.6rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-md); background: var(--graphite-dark); font-size: 0.7rem; }
.call-me .call-avatar { width: 2.2rem; height: 2.2rem; background: var(--sage-soft); font-size: 0.8rem; }
.call-details { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.07); }
.call-details small { display: block; color: var(--on-dark-muted); font-size: 0.66rem; }
.call-approve { padding: 0.4rem 0.85rem; color: var(--on-dark-muted); border: 1px solid var(--line-dark); border-radius: var(--radius-md); font-weight: 750; transition: background 200ms ease, color 200ms ease; }
.script-demo[data-scene="call-approved"] .call-approve { color: var(--ink); border-color: var(--sage-soft); background: var(--sage-soft); }
.call-hangup { justify-self: center; padding: 0.4rem 1.2rem; border-radius: 999px; background: var(--rose-dark); font-weight: 750; }
.demo-cursor { position: absolute; top: 0; left: 0; z-index: 5; width: 1.35rem; height: 1.35rem; opacity: 0; transform: translate(var(--x, 60%), var(--y, 80%)); transition: transform 750ms cubic-bezier(0.45, 0, 0.2, 1), opacity 250ms ease; pointer-events: none; }
.demo-cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: var(--white); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.app-demo.has-cursor .demo-cursor { opacity: 1; }
.demo-cursor.is-pressing svg { transform: scale(0.85); transform-origin: 20% 10%; }
@keyframes call-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes call-wave { from { height: 25%; } to { height: 100%; } }

/* Campaign demo: site.js steps data-scene (campaigns, audience, audience-upcoming, audience-six,
   message, delivery, review, review-audience, scheduled, results). The markup's "results" is the
   finished state. */
.split-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.app-head .app-button { padding: 0.35rem 0.8rem; color: var(--white); font-size: 0.74rem; }
.app-pill { padding: 0.1rem 0.55rem; color: var(--ink-soft); border-radius: 999px; background: var(--surface-soft); font-size: 0.68rem; font-weight: 750; white-space: nowrap; }
.app-pill.is-good { color: var(--white); background: var(--sage); }
.campaign-filters { display: flex; gap: 0.35rem; margin-bottom: 0.8rem; }
.campaign-filters span { padding: 0.15rem 0.6rem; color: var(--muted); border: 1px solid var(--mist); border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.campaign-filters .is-on { color: var(--ink); border-color: var(--sage-soft); background: var(--sage-wash); }
.campaign-list { margin: 0; padding: 0; list-style: none; }
.campaign-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--mist); }
.campaign-list b { display: block; font-weight: 700; }
.campaign-list small { color: var(--muted); font-size: 0.7rem; }
/* The campaign drawer covers the list, as the app's full campaign drawer does. */
.campaign-editor { transform: translateX(105%); box-shadow: -1rem 0 2rem -1.5rem rgba(23, 32, 29, 0.4); transition: transform 380ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.campaign-demo:not([data-scene="campaigns"]) .campaign-editor { transform: none; }
.status-scheduled, .campaign-demo:is([data-scene="scheduled"], [data-scene="results"]) .status-draft { display: none; }
.campaign-demo:is([data-scene="scheduled"], [data-scene="results"]) .status-scheduled { display: inline; }
.campaign-steps { display: flex; gap: 0.25rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: campaign-step; }
.campaign-steps li { flex: 1; padding: 0.35rem 0.2rem; color: var(--muted); border-bottom: 2px solid var(--mist); font-size: 0.72rem; font-weight: 700; text-align: center; counter-increment: campaign-step; }
.campaign-steps li::before { content: counter(campaign-step) " "; color: var(--sage-soft); }
.step-results, .campaign-pane { display: none; }
.campaign-demo:is([data-scene="scheduled"], [data-scene="results"]) .step-results { display: block; }
.campaign-demo:is([data-scene="campaigns"], [data-scene^="audience"]) .step-audience,
.campaign-demo[data-scene="message"] .step-message,
.campaign-demo[data-scene="delivery"] .step-delivery,
.campaign-demo:is([data-scene^="review"], [data-scene="scheduled"]) .step-review,
.campaign-demo[data-scene="results"] .step-results { color: var(--ink); border-bottom-color: var(--sage); }
.campaign-demo:is([data-scene="campaigns"], [data-scene^="audience"]) .pane-audience,
.campaign-demo[data-scene="message"] .pane-message,
.campaign-demo[data-scene="delivery"] .pane-delivery,
.campaign-demo:is([data-scene^="review"], [data-scene="scheduled"]) .pane-review,
.campaign-demo[data-scene="results"] .pane-results { display: grid; gap: 0.8rem; align-content: start; }
.app-switch-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.7rem; border: 1px solid var(--mist); border-radius: var(--radius-md); font-weight: 650; }
.campaign-demo:is([data-scene="campaigns"], [data-scene="audience"]) .toggle-upcoming { background: var(--mist); }
.campaign-demo:is([data-scene="campaigns"], [data-scene="audience"]) .toggle-upcoming::after { left: 0.15rem; }
.month-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.month-chips span { padding: 0.2rem 0.6rem; color: var(--ink-soft); border: 1px solid var(--mist); border-radius: var(--radius-md); font-weight: 650; }
.month-chips .chip-six { color: var(--white); border-color: var(--sage); background: var(--sage); transition: background 200ms ease, color 200ms ease; }
.campaign-demo:is([data-scene="campaigns"], [data-scene="audience"], [data-scene="audience-upcoming"]) .chip-six { color: var(--ink-soft); border-color: var(--mist); background: transparent; }
.email-preview { display: grid; gap: 0.5rem; max-width: 22rem; padding: 0.9rem 1rem; border: 1px solid var(--mist); border-top: 4px solid var(--rose); border-radius: var(--radius-md); color: var(--ink-soft); }
.email-preview b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; font-weight: 400; }
.email-brand { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.email-brand img { width: 0.9rem; height: 0.9rem; }
.email-book { justify-self: start; padding: 0.35rem 0.9rem; color: var(--white); border-radius: var(--radius-md); background: var(--rose); font-weight: 750; }
.email-preview small { color: var(--muted); font-size: 0.66rem; text-decoration: underline; }
.app-button-quiet { justify-self: start; color: var(--sage-dark); border: 1px solid var(--sage-soft); background: var(--white); }
.app-button-quiet.is-pressed { color: var(--white); background: var(--sage-dark); }
.pane-review > .app-button { justify-self: start; }
.audience-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; padding: 0.6rem 0.7rem; border-radius: var(--radius-md); background: var(--sage-wash); transition: opacity 250ms ease; }
.audience-preview b { flex-basis: 100%; }
.audience-preview span { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--white); font-size: 0.72rem; }
.campaign-demo[data-scene="review"] .audience-preview { opacity: 0; }
.result-row { display: grid; grid-template-columns: 5.5rem 2.5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.result-row span { color: var(--muted); font-weight: 650; }
.result-row b { font-size: 1rem; font-variant-numeric: tabular-nums; text-align: right; }
.result-row i { height: 0.6rem; width: var(--w); border-radius: 999px; background: var(--sage-soft); }
.result-row.is-bookings i { background: var(--rose); }
.result-row.is-bookings b { color: var(--rose-dark); }
.campaign-demo.is-ready[data-scene="results"] .result-row i { animation: result-grow 900ms ease both; }
.campaign-demo.is-ready[data-scene="results"] .result-row:nth-child(2) i { animation-delay: 250ms; }
.campaign-demo.is-ready[data-scene="results"] .result-row:nth-child(3) i { animation-delay: 500ms; }
.campaign-demo.is-ready[data-scene="results"] .result-row:nth-child(4) i { animation-delay: 750ms; }
.result-note { color: var(--muted); font-size: 0.7rem; }
@keyframes result-grow { from { width: 0; } }

/* AI section: two rows, each copy beside a demo. */
.ai-row { margin-top: clamp(3rem, 6vw, 5rem); }
.ai-copy h3 { margin: 0 0 0.8rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.12; }
.ai-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.ai-points { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ai-points li { position: relative; padding: 0.3rem 0 0.3rem 1.4rem; color: var(--ink-soft); font-weight: 600; }
.ai-points li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); }

/* Dictation demo: data-scene idle, listening, stopped, saved. */
.notes-field { position: relative; min-height: 8.5rem; padding: 0.75rem 0.85rem; border: 1px solid var(--mist); border-radius: var(--radius-md); transition: border-color 200ms ease, box-shadow 200ms ease; }
.notes-field p { margin: 0; color: var(--ink); font-size: 0.86rem; line-height: 1.6; }
.dictation-demo[data-scene="listening"] .notes-field { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-wash); }
.dictation-demo[data-scene="listening"] .notes-field p::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--sage); animation: caret 900ms steps(1) infinite; }
.notes-wave { position: absolute; right: 0.75rem; bottom: 0.6rem; display: none; align-items: center; gap: 3px; height: 1.1rem; }
.notes-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--rose); animation: call-wave 700ms ease-in-out infinite alternate; }
.notes-wave i:nth-child(2n) { animation-delay: -350ms; }
.notes-wave i:nth-child(3n) { animation-delay: -200ms; }
.dictation-demo[data-scene="listening"] .notes-wave { display: flex; }
.notes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.85rem; }
.mic-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; color: var(--sage-dark); border: 1px solid var(--sage-soft); border-radius: var(--radius-md); font-weight: 700; transition: background 150ms ease, color 150ms ease, transform 150ms ease; }
.mic-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mic-button.is-pressed { transform: scale(0.96); }
.mic-stop, .dictation-demo[data-scene="listening"] .mic-start { display: none; }
.dictation-demo[data-scene="listening"] .mic-stop { display: inline; }
.dictation-demo[data-scene="listening"] .mic-button { color: var(--white); border-color: var(--rose-dark); background: var(--rose-dark); }
.notes-saved { opacity: 0; transition: opacity 250ms ease; }
.dictation-demo[data-scene="saved"] .notes-saved { opacity: 1; }
@keyframes caret { 50% { opacity: 0; } }

/* Assistant demo: a neutral chat window, not styled as any one assistant. */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.75rem; background: var(--surface); }
.chat-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 2.5rem); mask-image: linear-gradient(transparent, #000 2.5rem); }
.dictation-demo .script-screen { aspect-ratio: 16 / 9; min-height: 16rem; }
.chat-log > * { flex-shrink: 0; margin: 0; }
.chat-user { align-self: flex-end; max-width: 80%; padding: 0.5rem 0.8rem; color: var(--white); border-radius: 0.9rem 0.9rem 0.2rem 0.9rem; background: var(--ink-soft); }
.chat-reply { align-self: flex-start; max-width: 88%; padding: 0.6rem 0.8rem; border: 1px solid var(--mist); border-radius: 0.9rem 0.9rem 0.9rem 0.2rem; background: var(--white); }
.chat-reply p { margin: 0; }
.chat-reply ul { margin: 0.4rem 0 0; padding-left: 1rem; }
.chat-reply li { color: var(--ink-soft); }
.chat-reply .app-button { margin-top: 0.5rem; }
.chat-done { border-color: var(--sage-soft); background: var(--sage-wash); }
.chat-tool { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.chat-tool i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sage-soft); }
.chat-input { display: flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.35rem 0.4rem 0.35rem 0.85rem; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); }
.chat-input [data-chat-input] { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.chat-input [data-chat-input]:empty::before { content: "Ask anything"; color: var(--muted); }
.chat-send { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex-shrink: 0; color: var(--white); border-radius: 50%; background: var(--sage); transition: transform 150ms ease; }
.chat-send.is-pressed { transform: scale(0.9); }
.chat-send svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-demo.is-ready [data-from]:not(.is-on) { display: none; }
.app-demo.is-ready [data-from].is-on { animation: demo-pop 280ms ease both; }

/* Drug book feature page */
.feature-hero { padding-block: clamp(3.5rem, 7vw, 6rem); }
.stage.feature-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.feature-hero-title { margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(2.7rem, 4.6vw, 4.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.feature-hero .vial-demo { background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line-dark); }
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step-list > li { display: grid; grid-template-rows: 9.5rem auto; gap: 1.25rem; counter-increment: step; }
.step-visual { display: grid; place-items: center; padding: 1rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.step-list h3 { margin: 0 0 0.45rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.2; }
.step-list h3::before { content: counter(step) ". "; color: var(--rose-dark); }
.step-list p { margin: 0; color: var(--muted); }
.sticker.is-static { position: static; translate: none; width: 6.4rem; box-shadow: 0 0 0 1px var(--mist); }
.sticker-meta.is-expired { color: var(--rose-dark); font-weight: 800; }
.blocked-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: 1.25rem; border-radius: var(--radius-md); background: var(--surface); }
.blocked-visual .sticker.is-static { width: 8rem; }
.sticker-sheet { display: flex; gap: 0.4rem; }
.sticker-sheet .sticker:nth-child(n+3) { display: none; }
.step-visual .scan-result { font-size: 0.85rem; }
.step-note { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.76rem; text-align: center; }
.dose-field { display: block; width: 100%; max-width: 12rem; font-size: 0.78rem; }
.dose-field > span { display: block; margin-bottom: 0.25rem; font-weight: 700; }
.dose-input { display: flex; justify-content: space-between; padding: 0.45rem 0.6rem; border: 1px solid var(--sage); border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 750; }
.dose-meter { display: block; height: 0.4rem; margin-top: 0.7rem; border-radius: 999px; background: linear-gradient(90deg, var(--sage) 56%, var(--mist) 56%); }
.step-visual .ledger, .proof-card .ledger { width: 100%; box-shadow: 0 0 0 1px var(--mist); }
.step-visual .ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.proof-card { display: grid; align-content: start; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.proof-card h3 { margin: 0 0 0.5rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.6rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.15; }
.proof-card p { margin: 0; color: var(--muted); }
.ledger-row.is-adjustment { background: var(--surface); box-shadow: inset 3px 0 0 var(--rose); }
.scan-result.is-blocked { color: var(--white); background: var(--rose-dark); }
.column-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.column-list li { padding: 0.35rem 0.85rem; color: var(--ink-soft); border: 1px solid var(--sage-soft); border-radius: 999px; background: var(--white); font-size: 0.88rem; font-weight: 650; }

/* Scripting and dictation: copy beside an optional shot, then three short points. */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.point-grid-pairs { grid-template-columns: repeat(2, minmax(0, 24rem)); }
.point-card { padding-top: 1.25rem; border-top: 2px solid var(--sage); }
.point-card h3 { margin: 0 0 0.5rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.2; }
.point-card p { margin: 0; color: var(--muted); }
.section-link { margin: 2.5rem 0 0; font-weight: 700; }
.section-link a { color: var(--sage-dark); text-underline-offset: 0.25em; }
.section-link a:hover { color: var(--ink); }

/* Founders */
.founders-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.founders-photo { width: 100%; height: auto; margin-top: 2.5rem; border-radius: var(--radius-lg); }
.founders-copy p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: 1.08rem; }
.founders-copy .founders-signature { margin: 2rem 0 0; color: var(--sage-dark); font-family: var(--display); font-size: 1.35rem; }

/* Waitlist forms */
.button-primary { color: var(--white); background: var(--rose); font-size: 1.02rem; font-weight: 650; }
.button-primary:hover { background: var(--rose-dark); }
.button-primary.button-small { font-size: 0.95rem; }
.button:disabled { cursor: progress; opacity: 0.7; }
.hero-actions { margin-top: 2.2rem; }
.waitlist-form { max-width: 40rem; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 0.35rem; }
.field > span { color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.field > span em { font-style: normal; font-weight: 500; opacity: 0.8; }
.field:has(> :required) > span::after {
  content: "*" / "";
  margin-inline-start: 0.25em;
}
.field input { width: 100%; min-height: 3.15rem; padding: 0.7rem 0.9rem; color: var(--ink); border: 1px solid var(--sage-soft); border-radius: var(--radius-md); background: var(--white); font: inherit; }
.field input:focus-visible { outline: 3px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.82rem; }
.form-note a { color: inherit; text-underline-offset: 0.2em; }
.form-status { margin: 0.6rem 0 0; font-size: 0.92rem; font-weight: 650; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--rose-dark); }
.waitlist-form.is-complete .form-fields,
.waitlist-form.is-complete .button,
.waitlist-form.is-complete .form-note { display: none; }
.waitlist-form.is-complete .form-status { margin: 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--sage); color: var(--ink); background: var(--sage-wash); font-size: 1.05rem; }
.waitlist-form-light .field > span { color: var(--white); }
.waitlist-form-light .form-note { color: var(--mist); }
.waitlist-form-light .form-status[data-state="error"] { color: var(--cream); }
.cta-eyebrow { margin: 0 0 1rem; color: var(--cream); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }
/* Fill-in-the-blanks waitlist: the fields sit inline in a sentence, each with a visually hidden label. */
.form-sentence { display: block; margin: 0 0 2rem; color: var(--white); font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 2.15; }
.blank { display: inline-block; position: relative; max-width: 100%; vertical-align: baseline; }
.blank-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blank input { width: var(--w, 10ch); max-width: 100%; padding: 0 0.2em; color: var(--white); border: 0; border-bottom: 1px solid var(--cream); border-radius: 0; background: transparent; font: inherit; font-style: italic; line-height: 1.25; text-align: center; -moz-appearance: textfield; appearance: textfield; transition: border-color 160ms ease; }
/* Where supported, each blank grows with what is typed; --w stays as its minimum. */
@supports (field-sizing: content) {
  .blank input { field-sizing: content; width: auto; min-width: var(--w, 10ch); }
}
.blank input::-webkit-inner-spin-button, .blank input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.blank input::placeholder { color: #EBC0C2; opacity: 1; }
.blank input:hover { border-bottom-color: var(--white); }
.blank input:focus-visible { outline: 0; border-bottom: 2px solid var(--white); }
.blank input:user-invalid { border-bottom: 2px solid var(--rose); }
.blank-name { --w: 9ch; }
.blank-clinic { --w: 9ch; }
.blank-count { --w: 2.5ch; }
.blank-software { --w: 11ch; }
.blank-email { --w: 14ch; }

/* The patient journey. Without site.js the tabs are hidden and every step is shown in turn. */
.journey { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.journey-tabs { display: none; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.js .journey-tabs { display: grid; }
.journey-tabs button { position: relative; display: flex; align-items: baseline; gap: 0.6rem; padding: 1rem 0.25rem; color: var(--muted); border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; cursor: pointer; }
.journey-tabs button span { color: var(--sage-soft); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; }
.journey-tabs button:hover { color: var(--ink); }
.journey-tabs button[aria-selected="true"] { color: var(--ink); }
.journey-tabs button[aria-selected="true"] span { color: var(--rose-dark); }
.journey-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.journey-step[hidden] { display: none; }
.journey-roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.journey-roles span { padding: 0.2rem 0.65rem; color: var(--sage-dark); background: var(--surface-soft); border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.journey-step h3 { margin: 1rem 0 0.8rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; }
.journey-copy > p:not(.journey-roles) { margin: 0; color: var(--muted); font-size: 1.05rem; }
.journey-copy ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.journey-copy li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; color: var(--ink-soft); font-weight: 600; }
.journey-copy li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); }
.shot { margin: 0; overflow: hidden; border: 1px solid var(--mist); border-radius: 8px; background: var(--white); }
.shot-bar { display: flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-bottom: 1px solid var(--mist); color: var(--muted); font-size: 0.74rem; font-weight: 650; }
.shot-bar::before { content: ""; width: 0.6rem; height: 0.6rem; margin-right: 0.6rem; border-radius: 50%; background: var(--sage); }
.shot-screen { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--sage-wash); }
.shot-screen video, .shot-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-switch { display: none; gap: 0.3rem; margin-left: auto; }
.js .shot-switch { display: inline-flex; }
.shot-switch button { padding: 0.15rem 0.6rem; color: var(--muted); border: 1px solid var(--mist); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.shot-switch button:hover { color: var(--ink); border-color: var(--sage-soft); }
.shot-switch button[aria-pressed="true"] { color: var(--white); border-color: var(--sage); background: var(--sage); }
.shot-view { position: absolute; inset: 0; }
.shot-view[hidden] { display: none; }
.shot-placeholder { padding: 0 1.5rem; color: var(--muted); font-size: 0.9rem; font-weight: 650; text-align: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0 0 1.35rem; max-width: 40rem; color: var(--muted); }

/* Final call to action */
.cta-band { padding: clamp(5rem, 8vw, 7rem) 0; color: var(--white); background: var(--sage); }
.cta-grid[hidden] { display: none; }
.cta-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.cta-band h2 { margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(2.6rem, 4.8vw, 4.2rem); font-weight: 400; line-height: 1.08; }
.cta-band .cta-grid > div > p:last-child { margin: 1.4rem 0 0; color: var(--mist); font-size: 1.1rem; }

/* Scroll reveal: only hidden when site.js is running, so the page reads without it. */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 600ms ease, transform 600ms ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.principles { color: var(--white); background: var(--sage); }
.principles-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.principles h2 { color: var(--white); font-size: clamp(2.6rem, 4.8vw, 4.5rem); }
.principle-list { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.principle-list article { display: grid; grid-template-columns: 2.3rem 1fr; gap: 1.15rem; padding: 1.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.principle-list article > span { color: var(--cream); font-size: 0.72rem; font-weight: 800; }
.principle-list h3 { margin: 0; font-size: 1.05rem; }
.principle-list p { margin: 0.35rem 0 0; color: var(--mist); font-size: 0.93rem; }

.site-footer { padding: 3.3rem 0; border-top: 1px solid var(--border); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: start; }
.footer-brand img { width: 9rem; height: auto; }
.footer-brand p { margin: 0.55rem 0 0; color: var(--muted); font-family: var(--display); font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.35rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; font-weight: 700; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.76rem; }

/* Legal pages */
.legal-header { position: sticky; top: 0; backdrop-filter: blur(14px); }
.legal-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 3.5rem; background: var(--surface); }
.legal-hero .shell { max-width: 760px; }
.legal-hero h1 { max-width: 800px; font-size: clamp(3rem, 6vw, 5.2rem); }
.legal-hero .updated { margin: 1.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.legal-layout { max-width: 900px; display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4rem; align-items: start; padding: 3.5rem 0 6rem; }
.legal-layout-single { max-width: 760px; grid-template-columns: minmax(0, 1fr); }
.legal-content { min-width: 0; }
.legal-content > p:first-child { margin-top: 0; font-size: 1.07rem; }
.legal-content section { scroll-margin-top: 7.5rem; padding-top: 1.25rem; }
.legal-content h2 { margin: 2.2rem 0 0.75rem; color: var(--ink); font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1.25; }
.legal-content h3 { margin: 1.5rem 0 0.4rem; color: var(--ink); font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li + li { margin-top: 0.42rem; }
.legal-content a { color: var(--sage); text-underline-offset: 0.2em; }
.legal-content a:hover { color: var(--sage-dark); }
.placeholder { padding: 0.04rem 0.25rem; color: var(--ink); background: var(--surface-soft); border-radius: 0.2rem; font-weight: 700; }

/* Dark stage: the home page hero sits on ink and the journey on sage, with the
   product shown on graphite hardware. */
.stage :focus-visible { outline-color: var(--cream); }

.stage { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.side-caption { position: absolute; right: clamp(1.1rem, 2.6vw, 2.1rem); top: 50%; margin: 0; color: var(--on-dark-muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); opacity: 0.7; }

.hero.stage { min-height: min(54rem, calc(100svh - 5.5rem)); display: grid; align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.stage .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
/* The copy sits in front of the laptop where the deck reaches under it. */
.stage .hero-copy { position: relative; z-index: 1; }
.stage .hero-eyebrow { color: var(--sage-soft); }
.stage .hero-title { color: var(--white); font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: 1; letter-spacing: -0.02em; }
.stage .hero-title .title-accent { color: var(--white); }
.hero-title mark { padding: 0 0.12em; color: var(--ink); background: var(--cream); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* The creasing headline (site.js): while the pointer is over it, a canvas draws the headline over
   the real text, which stays selectable but transparent. */
.hero-title-surface { position: absolute; z-index: 1; pointer-events: none; visibility: hidden; }
.hero-title-surface.is-on { visibility: visible; }
.hero-title.is-surface, .hero-title.is-surface mark { color: transparent; background: transparent; }
.stage .hero-lead { max-width: 34rem; color: var(--on-dark-muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); }
.stage .button-quiet { color: var(--white); }
.stage .button-quiet:hover { color: var(--cream); }
.stage .button-quiet circle { stroke: var(--sage-soft); }
.stage .button-quiet path { fill: var(--sage-soft); }
.stage .button-quiet:hover circle { fill: var(--cream); stroke: var(--cream); }
.stage .button-quiet:hover path { fill: var(--ink); }

.section-dark h2 { color: var(--white); }
.section-dark .section-intro > p:last-child { color: var(--on-dark-muted); }
.section-dark .journey-tabs { border-bottom-color: var(--line-dark); }
.section-dark .journey-tabs button { color: var(--on-dark-muted); }
.section-dark .journey-tabs button:hover, .section-dark .journey-tabs button[aria-selected="true"] { color: var(--white); }
.section-dark .journey-tabs button span { color: var(--sage); }
.section-dark .journey-tabs button[aria-selected="true"] span { color: var(--rose); }
.section-dark .journey-tabs button.is-done::after { background: var(--sage); }
.section-dark .journey-roles span { color: var(--sage-soft); background: rgba(255, 255, 255, 0.07); }
.section-dark .journey-step h3 { color: var(--white); }
.section-dark .journey-copy > p:not(.journey-roles) { color: var(--on-dark-muted); }
.section-dark .journey-copy li { color: #DDE3DF; }
.section-dark .journey-copy li::before { background: var(--sage-soft); }
/* Each shot is a graphite screen that tips back as it rises and settles flat by mid-screen (--tilt). */
.section-dark .shot { border: 0; border-radius: 0.9rem; padding: 0.6rem; background: linear-gradient(160deg, #3A4440, var(--graphite-dark) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.25); transform: perspective(1800px) rotateX(calc(var(--tilt, 0) * 16deg)) rotateY(calc(var(--tilt, 0) * -14deg)); transform-origin: 50% 100%; }
.section-dark .shot-bar { border-bottom: 0; color: var(--on-dark-muted); }
.section-dark .shot-bar::before { background: var(--sage-soft); }
.section-dark .shot-screen { overflow: hidden; border-radius: 0.3rem; }
.section-dark .shot-switch button { color: var(--on-dark-muted); border-color: var(--line-dark); background: transparent; }
.section-dark .shot-switch button:hover { color: var(--white); border-color: var(--sage-soft); }
.section-dark .shot-switch button[aria-pressed="true"] { color: var(--ink); border-color: var(--cream); background: var(--cream); }
/* The journey sits on sage, a step lighter than the hero, with lighter supporting text to keep contrast. */
#how-it-works { background: var(--sage); }
#how-it-works .section-intro > p:last-child, #how-it-works .journey-copy > p:not(.journey-roles), #how-it-works .journey-tabs button, #how-it-works .shot-bar, #how-it-works .shot-switch button:not([aria-pressed="true"]) { color: var(--mist); }
#how-it-works .journey-tabs { border-bottom-color: rgba(255, 255, 255, 0.2); }
#how-it-works .journey-tabs button span, #how-it-works .journey-roles span { color: var(--cream); }
#how-it-works .journey-tabs button[aria-selected="true"] span { color: var(--cream); }
#how-it-works .journey-tabs button.is-done::after { background: var(--sage-soft); }
#how-it-works .journey-copy li::before, #how-it-works .shot-bar::before { background: var(--cream); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage .hero-grid { grid-template-columns: 1fr; }
  .hero.stage { min-height: 0; }
  .side-caption { display: none; }
  .hero-copy { max-width: 44rem; }
  .split-reverse .section-intro { order: -1; }
  .principles-grid, .founders-grid, .split, .drugbook-lead, .stage.feature-hero .hero-grid, .proof-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .point-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .journey-step { grid-template-columns: 1fr; }
  .journey-step .shot { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .header-inner { min-height: 4.7rem; align-items: center; }
  .brand img { width: 8.8rem; }
  .primary-nav { gap: 0.8rem; }
  .primary-nav > a:not(.button) { display: none; }
  .hero { padding-top: 4.2rem; }
  .hero-title { font-size: clamp(3rem, 16vw, 4.5rem); }
  .trust-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .script-screen { aspect-ratio: auto; height: 25rem; min-height: 0; }
  .dictation-demo .script-screen { aspect-ratio: auto; height: 19rem; }
  .scene-panel { width: 88%; }
  .app-product { grid-template-columns: repeat(3, auto); }
  .app-product > :first-child { grid-column: 1 / -1; }
  .vial-demo { grid-template-columns: 1fr; }
  .vial-stage { min-height: 15rem; }
  .step-list { grid-template-columns: 1fr; }
  .journey-tabs button { flex-direction: column; gap: 0.1rem; font-size: 0.92rem; }
  .form-fields { grid-template-columns: 1fr; }
  .waitlist-form .button { width: 100%; }
  .primary-nav .button-small { min-height: 2.4rem; padding: 0.5rem 0.85rem; font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-direction: column; gap: 0.65rem; }
  .copyright { grid-column: 1; }
}

/* Motion. Each animation says something about the product: the hero line settles from frantic to
   calm, the journey tabs fill as the patient moves through the visit, and the feature icons act
   out what the feature does. Everything ends on the static design and is off for reduced motion. */
::selection { color: var(--ink); background: var(--cream); }

.site-header { transition: box-shadow 200ms ease; }
.header-inner { transition: min-height 240ms ease; }
.site-header.is-scrolled .header-inner { min-height: 4.4rem; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rose); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.primary-nav > a[data-spy] { position: relative; padding: 0.35rem 0; transition: color 160ms ease; }
.primary-nav > a[data-spy]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 260ms ease; }
.primary-nav > a[data-spy][aria-current] { color: var(--ink); }
.primary-nav > a[data-spy][aria-current]::after, .primary-nav > a[data-spy]:hover::after { transform: scaleX(1); }

.button-primary::after { content: "\2192"; display: inline-block; width: 0; margin-left: 0; overflow: hidden; opacity: 0; transition: width 200ms ease, margin-left 200ms ease, opacity 200ms ease; }
.button-primary:hover::after, .button-primary:focus-visible::after { width: 1em; margin-left: 0.45rem; opacity: 1; }
.button:active { transform: translateY(1px); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }
.button-quiet { gap: 0.6rem; padding-inline: 0.2rem; color: var(--ink); border: 0; background: none; font: inherit; font-weight: 650; cursor: pointer; }
.button-quiet:hover { color: var(--sage-dark); background: none; }
.button-quiet svg { width: 2.1rem; height: 2.1rem; }
.button-quiet circle { fill: none; stroke: var(--sage); stroke-width: 1.4; transition: fill 200ms ease; }
.button-quiet path { fill: var(--sage); transition: fill 200ms ease; }
.button-quiet:hover circle { fill: var(--sage); }
.button-quiet:hover path { fill: var(--white); }
.film-open { display: none; }
.js .film-open { display: inline-flex; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(1.1rem); } }
@keyframes line-up { from { transform: translateY(110%); } }
.hero-title .title-line > span { animation: line-up 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both; }
.hero-title .title-accent > span { animation-delay: 300ms; }
.hero-lead { animation: rise 800ms ease 560ms both; }
.hero-actions { animation: rise 800ms ease 700ms both; }
.hero-eyebrow { animation: rise 800ms ease both; }
.hero-visual { position: relative; animation: rise 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 320ms both; }


/* The hero laptop, built in CSS 3D. The lid opens once on load; the body turns with the pointer
   (--px, --py) and as the hero scrolls away (--turn), both set by site.js. */
.hero-visual { perspective: 2400px; }
.laptop { --yaw: -26deg; position: relative; width: 112%; margin-bottom: 18%; transform-style: preserve-3d; transform: rotateX(calc(-14deg - var(--turn, 0) * 16deg + var(--py, 0) * 3deg)) rotateY(calc(var(--yaw) + var(--turn, 0) * 30deg + var(--px, 0) * 5deg)) rotateZ(calc(3deg - var(--turn, 0) * 3deg)); transition: transform 500ms ease-out; }
.laptop-lid { position: relative; aspect-ratio: 16 / 10.4; padding: 2.4% 2.4% 3.6%; border-radius: 1.1rem 1.1rem 0.35rem 0.35rem; background: linear-gradient(160deg, #3A4440, var(--graphite-dark) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); transform-origin: 50% 100%; transform: rotateX(6deg); animation: lid-open 1500ms cubic-bezier(0.3, 0.65, 0.15, 1) 250ms both; }
@keyframes lid-open { from { transform: rotateX(-86deg); } }
.laptop-screen { position: relative; height: 100%; overflow: hidden; border-radius: 0.3rem; background: var(--sage-wash); }
.laptop-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Glass glare across the screen. */
.laptop-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.laptop-base { position: absolute; left: -3%; right: -3%; top: 100%; height: 66%; border-radius: 0.35rem 0.35rem 1.1rem 1.1rem; background: linear-gradient(var(--graphite), var(--graphite-dark)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform-origin: 50% 0; transform: rotateX(90deg); }
/* Keyboard keys and trackpad, drawn as gradients on the deck. */
.laptop-base::before { content: ""; position: absolute; left: 9%; right: 9%; top: 9%; height: 43%; border-radius: 0.3rem; background: repeating-linear-gradient(90deg, transparent 0 0.25%, var(--graphite-dark) 0.25% 6.6%, transparent 6.6% 7.15%), #141B18; background-size: 100% 16.7%; opacity: 0.9; }
.laptop-base::after { content: ""; position: absolute; left: 33%; right: 33%; top: 59%; height: 33%; border-radius: 0.4rem; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
/* Soft shadow pooled under the laptop. */
.hero-visual::after { content: ""; position: absolute; left: 4%; right: -10%; bottom: 0; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); filter: blur(10px); z-index: -1; }

/* The 00-100% count shown once per visit while the logo draws. Created by site.js: creased lines
   across the curtain flatten as the count rises, then it lifts away under the header to start the
   hero. Hero animations wait for it (.is-intro). */
.intro-lines { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: min(40vh, 22rem); transform: translateY(-50%); overflow: visible; }
.intro-lines path { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.intro { position: fixed; inset: 0; z-index: 9; display: flex; align-items: flex-end; padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 6vh, 4rem); color: var(--white); background: var(--ink); transition: transform 800ms cubic-bezier(0.7, 0, 0.2, 1); }
.intro.is-done { transform: translateY(-100%); }
.intro-count { position: relative; margin: 0; font-family: var(--display); font-size: clamp(6rem, 18vw, 15rem); font-variant-numeric: tabular-nums; line-height: 0.85; }
.intro-count sup { margin-left: 0.08em; font-size: 0.3em; vertical-align: top; }
.is-intro .hero, .is-intro .hero * { animation-play-state: paused !important; }

@media (max-width: 900px) {
  .laptop { --yaw: -12deg; width: 90%; margin: 0 auto 16%; }
  /* Stacked hero: the laptop comes first, above the headline. */
  .stage .hero-visual { order: -1; }
}

/* Journey: the selected tab's underline fills, and the steps already passed stay marked. */
.journey-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 320ms ease, background-color 320ms ease; }
.journey-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.journey-tabs button.is-done::after { transform: scaleX(1); background: var(--sage-soft); }
.journey.is-touring .journey-tabs button[aria-selected="true"]::after { transition: none; animation: tour-fill 8s linear both; }
.journey.is-touring:hover .journey-tabs button::after, .journey.is-paused .journey-tabs button::after { animation-play-state: paused; }
@keyframes tour-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .journey-step:not([hidden]) .journey-copy > * { animation: rise 520ms ease both; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(2) { animation-delay: 70ms; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(3) { animation-delay: 140ms; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(4) { animation-delay: 210ms; }
.js .journey-step:not([hidden]) .shot { animation: shot-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes shot-in { from { opacity: 0; translate: 1.5rem 0; scale: 0.985; } }
.shot-view:not([hidden]) { animation: view-in 400ms ease both; }
@keyframes view-in { from { opacity: 0; } }

/* Feature cards: the icon draws itself when the card arrives, then acts out the feature. */
.feature-card, .js .feature-card.reveal { transition: opacity 600ms ease calc(var(--i, 0) * 70ms), transform 600ms ease calc(var(--i, 0) * 70ms), border-color 200ms ease; }
.feature-card:hover { border-color: var(--sage-soft); border-top-color: var(--rose); }
.feature-icon { display: block; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; overflow: visible; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon .thick { stroke-width: 2.8; }
.js .feature-icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1000ms ease calc(var(--i, 0) * 70ms + 250ms); }
.js .is-visible .feature-icon .draw { stroke-dashoffset: 0; }
.feature-icon .bar { stroke: none; fill: var(--sage-soft); transform-box: fill-box; transform-origin: 50% 100%; }
.feature-icon .bar.accent { fill: var(--rose); }
.is-playing .icon-stock .bar.accent { animation: restock 1500ms cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes restock { 0%, 25% { transform: scaleY(1); fill: var(--rose); } 70%, 100% { transform: scaleY(2.2); fill: var(--sage-soft); } }
.icon-scan .accent { stroke: var(--rose); stroke-width: 2; opacity: 0; }
.is-playing .icon-scan .accent { animation: scan 1500ms ease-in-out both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-10px); } 15%, 85% { opacity: 1; } 50% { transform: translateY(10px); } 100% { opacity: 0; transform: translateY(-10px); } }
.icon-ledger .accent path { stroke-dasharray: 1; }
.is-playing .icon-ledger .accent path { animation: write 500ms ease both; }
.is-playing .icon-ledger .accent path:nth-child(2) { animation-delay: 380ms; }
.is-playing .icon-ledger .accent path:nth-child(3) { animation-delay: 760ms; }
@keyframes write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.icon-receipt .accent circle { stroke: none; fill: var(--sage); transform-box: fill-box; transform-origin: center; }
.icon-receipt .accent path { stroke: var(--white); stroke-width: 2; stroke-dasharray: 1; }
.is-playing .icon-receipt .accent circle { animation: pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.is-playing .icon-receipt .accent path { animation: write 400ms ease 350ms both; }
@keyframes pop { from { transform: scale(0); } }
.icon-roster .accent rect { stroke: none; fill: var(--sage-soft); }
.icon-roster .accent rect:nth-child(2), .icon-roster .accent rect:nth-child(4) { fill: var(--sage); }
.is-playing .icon-roster .accent rect { animation: rise-cell 400ms ease both; }
.is-playing .icon-roster .accent rect:nth-child(2) { animation-delay: 120ms; }
.is-playing .icon-roster .accent rect:nth-child(3) { animation-delay: 240ms; }
.is-playing .icon-roster .accent rect:nth-child(4) { animation-delay: 360ms; }
.is-playing .icon-roster .accent rect:nth-child(5) { animation-delay: 480ms; }
@keyframes rise-cell { from { opacity: 0; transform: translateY(3px); } }
.icon-document .accent, .icon-calendar .accent, .icon-chart .accent { stroke: var(--rose); stroke-width: 2; stroke-dasharray: 1; }
.is-playing .icon-document .accent, .is-playing .icon-calendar .accent, .is-playing .icon-chart .accent { animation: write 700ms ease both; }

/* Principles: each rule draws across as its principle arrives. */
.principle-list { position: relative; }
.principle-list article { position: relative; border-bottom-color: transparent; }
.principle-list article::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(255, 255, 255, 0.18); transform-origin: left; transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 70ms + 150ms); }
.js .principle-list article.reveal:not(.is-visible)::after { transform: scaleX(0); }

/* FAQ: the plus turns into a minus; site.js eases the answer open and closed. */
.faq-list details { overflow: hidden; }
.faq-list summary { transition: color 160ms ease; }
.faq-list summary:hover { color: var(--sage-dark); }
.faq-list summary::after { content: ""; flex: none; width: 0.9rem; height: 0.9rem; margin-top: 0.35rem; background: linear-gradient(var(--sage), var(--sage)) center / 100% 2px no-repeat, linear-gradient(var(--sage), var(--sage)) center / 2px 100% no-repeat; transition: transform 300ms ease, background-size 300ms ease; }
.faq-list details[open] summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.faq-list details.is-closing summary::after { background-size: 100% 2px, 2px 100%; transform: none; }

/* Waitlist form */
.field input { transition: border-color 160ms ease, background-color 160ms ease; }
.field input:hover { border-color: var(--sage); }
.waitlist-form.is-complete .form-status { position: relative; display: flex; align-items: center; gap: 1rem; animation: rise 600ms ease both; }
.form-tick { flex: none; width: 2.6rem; height: 2.6rem; overflow: visible; }
.form-tick circle { fill: var(--sage); transform-box: fill-box; transform-origin: center; animation: pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.4) 150ms both; }
.form-tick path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: write 450ms ease 500ms both; }
.form-tick .spark { fill: var(--rose); stroke: none; transform-box: fill-box; transform-origin: center; animation: spark 800ms cubic-bezier(0.2, 0.8, 0.3, 1) 450ms both; }
.form-tick .spark:nth-of-type(even) { fill: var(--sage-soft); }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }

/* Launch film dialog */
.film-dialog { width: min(92vw, 1120px); padding: 0; border: 0; border-radius: 8px; overflow: visible; background: var(--ink); }
.film-dialog::backdrop { background: rgba(23, 32, 29, 0.82); }
.film-dialog[open] { animation: film-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.film-dialog[open]::backdrop { animation: view-in 300ms ease both; }
@keyframes film-in { from { opacity: 0; transform: translateY(1rem) scale(0.97); } }
.film-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: var(--ink); }
.film-close { position: absolute; right: 0; top: -2.6rem; padding: 0.35rem 0.2rem; color: var(--white); border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.film-close:hover { text-decoration: underline; text-underline-offset: 0.25em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

@media print {
  .site-header, .site-footer { display: none; }
  .legal-hero { padding: 0 0 1rem; background: none; }
  .legal-layout { display: block; padding: 0; }
  .legal-content section { break-inside: avoid-page; }
  body { font-size: 10.5pt; }
}
