@font-face {
  font-family: "STK Bureau Sans";
  src: url("../fonts/STKBureauSans-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "STK Bureau Sans";
  src: url("../fonts/STKBureauSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1b2430;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --surface: #ffffff;
  --bg-soft: #f8f8f6;
  --bg-faint: #f8fafc;
  --bg-product: #f4f4f1;
  --focus-blue: #eef4ff;
  --royal: #2d5ae2;
  --royal-deep: #2144af;
  --brand-subtle: #5e89d8;
  --altitude-blue: #7fa4e8;
  /* Products countdown tabs — Figma: idle #f4f4f1, fill #d5e4ff */
  --step-active: #d5e4ff;
  --step-idle: #f4f4f1;
  --orange-dash: #f2c4a2;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --pad: clamp(20px, 4.5vw, 64px);
  --fs-hero: clamp(32px, 4.6vw, 62px);
  --fs-h2: clamp(24px, 3vw, 42px);
  --fs-h3: clamp(22px, 2.5vw, 36px);
  --fs-lead: clamp(16px, 1.7vw, 22px);
  --fs-body: clamp(14px, 1.4vw, 18px);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --w-light: 300;
  --w-book: 350;
  --w-reg: 400;
  --w-med: 500;
  --header-h: 72px;
  --z-header: 40;
  --z-loader: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "STK Bureau Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: var(--w-book);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { text-wrap: balance; font-weight: var(--w-light); line-height: 1.15; margin: 0; }
p { text-wrap: pretty; margin: 0; }

/* Keyboard focus — visible everywhere, white inside the dark nav pill */
:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}
.header-bubble :focus-visible {
  outline-color: #fff;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: var(--w-med);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.btn-primary {
  background: var(--royal);
  color: #fff;
}
.btn-primary:hover { background: var(--royal-deep); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 12px; font-size: 16px; line-height: 24px; }
.btn-lg { padding: 16px 24px; font-size: 20px; line-height: 28px; height: 52px; }
/* Mobile: large CTA pills read oversized at narrow widths — compact them
   while keeping a ~44px tap target. */
@media (max-width: 767px) {
  .btn-lg { padding: 10px 20px; font-size: 17px; line-height: 24px; height: 44px; }
}

/* —— Floating CTA — desktop only, revealed once the hero leaves the viewport —— */
.fab-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: calc(var(--z-header) - 1);
  display: none;
  padding: 16px 24px;
  font-size: 18px;
  line-height: 24px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 10px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), background 200ms var(--ease);
}
.fab-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .fab-cta { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-cta { transform: none; transition: opacity 250ms var(--ease); }
}

/* —— Loader —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 500ms var(--ease);
}
.page-loader.is-done {
  opacity: 0;
  pointer-events: none;
}
.page-loader__lottie { width: 120px; height: 120px; }
html:not(.page-ready) body > :not(.page-loader) { opacity: 0; }
/* .fab-cta manages its own opacity (scroll-triggered) */
html.page-ready body > :not(.page-loader):not(.fab-cta) {
  opacity: 1;
  transition: opacity 500ms var(--ease);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  /* Zero-height shell — the bubble is independently viewport-fixed below */
  height: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}
.header-bubble {
  /* Pin to the viewport directly so sticky sections / compositing can’t drag it */
  position: fixed;
  /* --band-off lets an announcement bar (extend page) push the bubble down while visible */
  top: calc(24px + var(--band-off, 0px));
  left: var(--pad);
  right: auto;
  z-index: calc(var(--z-header) + 1);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  box-sizing: border-box;
  width: var(--bubble-full-w, fit-content);
  height: var(--bubble-h, auto);
  max-width: calc(100% - (2 * var(--pad)));
  margin: 0;
  padding: 16px 48px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 9999px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    width 600ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 600ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 600ms cubic-bezier(0.22, 1, 0.36, 1),
    background 400ms var(--ease),
    backdrop-filter 400ms var(--ease),
    box-shadow 400ms var(--ease);
}
.site-header.is-scrolled .header-bubble {
  background: rgba(27, 36, 48, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 8px 24px rgba(27, 36, 48, 0.12);
}
.site-header--solid .header-bubble {
  background: var(--ink);
}
.site-header--solid.is-scrolled .header-bubble {
  background: rgba(27, 36, 48, 0.7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}
.logo-wordmark-clip {
  display: block;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 180ms ease;
}
.logo-wordmark-clip__inner {
  display: block;
}
.logo-wordmark {
  display: block;
  height: 29px;
  width: 134px;
  max-width: none;
}
.logo--dark img { height: 27px; width: auto; }

.header-cluster {
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 180ms ease;
}
.header-cluster__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a:not(.btn) {
  color: #fff;
  font-size: 16px;
  font-weight: var(--w-med);
  line-height: 24px;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/*
  Compact: height & top/left stay put. Content fades out fast; width collapses
  to a same-height circle around the arrows mark. Reverse on scroll back up.
*/
.site-header.is-compact .header-bubble {
  width: var(--bubble-h, 72px);
  /* height unchanged — stays --bubble-h */
  padding-left: calc((var(--bubble-h, 72px) - 32px) / 2);
  padding-right: calc((var(--bubble-h, 72px) - 32px) / 2);
  gap: 0;
  box-shadow: 0 10px 28px rgba(27, 36, 48, 0.18);
}
.site-header.is-compact .logo { gap: 0; }
.site-header.is-compact .logo-wordmark-clip,
.site-header.is-compact .header-cluster {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

/* Hover / focus / tap: re-expand while still past the hero */
.site-header.is-compact.is-expanded .header-bubble,
.site-header.is-compact .header-bubble:hover,
.site-header.is-compact .header-bubble:focus-within {
  width: var(--bubble-full-w, 803px);
  padding: 16px 48px;
  gap: 40px;
}
.site-header.is-compact.is-expanded .logo,
.site-header.is-compact .header-bubble:hover .logo,
.site-header.is-compact .header-bubble:focus-within .logo {
  gap: 10px;
}
.site-header.is-compact.is-expanded .logo-wordmark-clip,
.site-header.is-compact.is-expanded .header-cluster,
.site-header.is-compact .header-bubble:hover .logo-wordmark-clip,
.site-header.is-compact .header-bubble:hover .header-cluster,
.site-header.is-compact .header-bubble:focus-within .logo-wordmark-clip,
.site-header.is-compact .header-bubble:focus-within .header-cluster {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease 180ms;
}

/* Fade content back in after width opens when leaving compact via scroll */
.site-header:not(.is-compact) .logo-wordmark-clip,
.site-header:not(.is-compact) .header-cluster {
  transition: opacity 220ms ease 160ms;
}

/* Coarse pointers: ignore sticky :hover, expand only via .is-expanded */
@media (hover: none) {
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover {
    width: var(--bubble-h, 72px);
    padding-left: calc((var(--bubble-h, 72px) - 32px) / 2);
    padding-right: calc((var(--bubble-h, 72px) - 32px) / 2);
    gap: 0;
  }
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover .logo { gap: 0; }
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover .logo-wordmark-clip,
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover .header-cluster {
    opacity: 0;
    pointer-events: none;
  }
  .site-header.is-compact.is-expanded .header-bubble,
  .site-header.is-compact .header-bubble:focus-within {
    width: var(--bubble-full-w, 803px);
    padding: 16px 48px;
    gap: 40px;
  }
  .site-header.is-compact.is-expanded .logo,
  .site-header.is-compact .header-bubble:focus-within .logo {
    gap: 10px;
  }
  .site-header.is-compact.is-expanded .logo-wordmark-clip,
  .site-header.is-compact.is-expanded .header-cluster,
  .site-header.is-compact .header-bubble:focus-within .logo-wordmark-clip,
  .site-header.is-compact .header-bubble:focus-within .header-cluster {
    opacity: 1;
    pointer-events: auto;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 600ms var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Soft top vignette for text + black fade at the bottom of the video */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      transparent 28%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.5) 12%,
      rgba(0, 0, 0, 0.22) 28%,
      rgba(0, 0, 0, 0) 48%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  /* Extra left/bottom inset vs. page pad so copy isn’t flush to the frame */
  padding: 0 clamp(32px, 6vw, 80px) clamp(52px, 9.5vh, 104px);
  /* Must clear ~784px at 62px type for “Patients get healthier, faster.” + side pads */
  max-width: 1100px;
  will-change: transform, opacity;
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--w-book);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: none;
}
.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  margin-bottom: 24px;
  /* Wide enough for the Figma 2-line wrap (break after “between”) */
  max-width: 46rem;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* —— Products (Perform + Extend, stacked modules) —— */
.products {
  position: relative;
  background: var(--surface);
  /* Bottom padding is half the panels gap; the testimonial's top padding is
     the other half, so Extend→Mary spacing equals the Perform→Extend gap */
  padding: clamp(56px, 7vw, 104px) var(--pad) clamp(20px, 2.5vw, 36px);
}
.products-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.products-panels {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}
.products-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  background: var(--bg-product);
  border-radius: 8px;
  padding: 24px;
}
/* —— "Plain" variant: no warm card behind Perform/Extend ——
   Content keeps the exact same width/position (padding stays); only the
   beige box is hidden. UNDO: remove the products--plain class from
   <section id="products"> in index.html — every rule here is scoped to it. */
.products--plain .products-panel { background: none; }
@media (max-width: 720px) {
  /* The full-bleed seam treatment zeroes the hero gap and module gap so the
     warm bands touch; with no band that reads cramped, so the plain variant
     restores normal breathing room */
  .products--plain { padding-top: 32px; }
  .products--plain .products-panels { gap: 24px; }
}
.products-panel__copy,
.products-panel__media {
  min-width: 0;
}
.products-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
/* Desktop: narrower text measure (~15%) — the freed space sits between the
   copy and the viz column, whose size and position stay put */
@media (min-width: 1025px) {
  .products-panel__copy { max-width: 85%; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--slate-400);
  border-radius: 8px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
.products-panel h2 {
  /* One notch under --fs-h3 (~10%) */
  font-size: clamp(20px, 2.25vw, 32px);
  font-weight: var(--w-book);
  line-height: 1.2;
}
.products-panel__copy > p {
  /* Same size/color as the Mary story paragraphs */
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  /* Pull the description closer to the headline (column gap is 16px) */
  margin-top: -6px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.feature-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 16px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}
.feature-list__dash {
  display: none;
}
.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-list__icon img {
  width: 24px;
  height: 24px;
  display: block;
}
.feature-list--plain .feature-list__icon {
  display: none;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 420px;
}
.product-card__msg {
  align-self: flex-end;
  max-width: 90%;
  padding: 8px 16px;
  border-radius: 16px 16px 0 16px;
  background: linear-gradient(90deg, #1fbea4, #1d78ac);
  color: #fff;
  font-size: 16px;
}
.product-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-card__burst {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(127, 164, 232, 0.3);
  position: relative;
}
.product-card__burst::after {
  content: "";
  position: absolute;
  inset: 4.5px;
  border-radius: 50%;
  background: var(--brand-subtle);
  filter: blur(2.36px);
}
.product-card__name {
  font-size: 14px;
  font-weight: var(--w-med);
  color: var(--slate-500);
}
.product-card__steps {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  border-left: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card__steps li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--slate-400);
}
.product-card__answer {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 16px;
}
.product-card__answer p {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 12px;
}
.product-card__sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-200);
  font-size: 12px;
  color: var(--slate-500);
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 9999px;
  background: var(--focus-blue);
  border: 1px solid #a9c7fe;
  font-size: 12px;
  color: var(--slate-500);
}
.muted { color: var(--slate-500); font-size: 14px; margin-top: 12px; }

/* —— Extend interaction feed (Extend panel media) ——
   Chat-style loop of care-journey turns (PCP → agent → patient → clinician),
   built from the Website-2026 Figma "content" comp (node 714:2043). Turns
   load at the bottom and push earlier ones up past the fixed card's top edge.
   Rendered by initExtendFeed() in site.js. */
.product-card--feed {
  height: 565px;
  padding: 0;
  overflow: hidden;
}
.extend-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 24px 24px;
  transition: opacity 0.45s ease;
}
.extend-feed.is-resetting { opacity: 0; }
/* Each turn/arrow sits in a slot that expands from zero height so the
   stack above rides up smoothly, like a text thread receiving a message */
.xf-slot {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.3, 0, 0.2, 1);
}
.xf-slot.on { grid-template-rows: 1fr; }
.xf-slot > div {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.12s;
}
.xf-slot.on > div { opacity: 1; }
.xf-turn {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding-top: 16px;
}
.xf-avatar {
  width: 50px;
  height: 50px;
  flex: none;
}
.xf-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xf-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xf-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}
.xf-badge {
  font-size: 12px;
  line-height: 16px;
  color: var(--slate-500);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.xf-badge--warm {
  background: rgba(229, 138, 73, 0.1);
  border-color: rgba(229, 138, 73, 0.1);
}
.xf-badge--agent {
  background: #eef4ff;
  border-color: #a9c7fe;
}
.xf-badge--green {
  background: rgba(31, 193, 107, 0.1);
  border-color: rgba(31, 193, 107, 0.1);
}
.xf-via {
  font-size: 12px;
  line-height: 16px;
  color: #94a3b8;
}
.xf-msg {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink, #1b2430);
}
.xf-steps {
  margin-left: 8px;
  padding: 8px 12px;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.xf-step {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-top: 8px;
}
.xf-step:first-child { padding-top: 0; }
/* Step rows inside a live turn reveal with the same slot mechanic */
.xf-slot .xf-step { padding-top: 0; }
.xf-steps .xf-slot + .xf-slot .xf-step,
.xf-steps .xf-step + .xf-slot .xf-step { padding-top: 8px; }
.xf-step img {
  width: 18px;
  height: 18px;
  flex: none;
}
.xf-step span {
  font-size: 12px;
  line-height: 16px;
  color: #94a3b8;
}
.xf-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 8px 8px 16px;
  margin: 8px 0;
  max-width: 393px;
}
.xf-cta > span:first-child {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink, #1b2430);
}
.xf-cta-btn {
  background: #2d5ae2;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.xf-arrow {
  padding: 16px 0 0 17px;
}
.xf-arrow img {
  width: 14px;
  height: 17px;
  display: block;
}

/* —— Praxis chat simulation (Perform panel media) ——
   Ported from the ehr-demo repo's right-side Praxis panel. Scripted,
   non-interactive, auto-plays while on screen. Accent mapped to --royal.
   System font stack on purpose: this is a product-UI facsimile, not
   marketing type. */
.praxis-sim {
  /* Fixed height — the conversation scrolls inside; the card never grows */
  height: 565px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.praxis-sim .psim-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
/* Patient identity, styled after the live extension header:
   bold ink name, muted meta beside it */
.praxis-sim .psim-ptname {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #1b2430;
  white-space: nowrap;
}
.praxis-sim .psim-ptmeta {
  font-size: 12.5px;
  font-weight: 500;
  color: #68717f;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.praxis-sim .psim-ctx {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: #15803d;
  background: #effaf2;
  border: 1px solid #bbe7c9;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 5px;
  vertical-align: 1px;
}
.praxis-sim .psim-ctx-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1fc16b;
  flex: none;
}
.praxis-sim .psim-page {
  flex: 1;
  background: #eef4ff;
  padding: 10px;
  display: flex;
  min-height: 0;
}
.praxis-sim .psim-chat {
  flex: 1;
  background: #fff;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  min-height: 0;
}
.praxis-sim .psim-snap {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  padding: 9px 11px;
  margin-bottom: 9px;
}
.praxis-sim .psim-snap-l {
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
  color: #2e2f42;
  display: block;
}
.praxis-sim .psim-pills {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.praxis-sim .psim-pill {
  font-size: 10px;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f8fafc;
}
.praxis-sim .psim-conv {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  overflow-y: auto;
  padding: 12px 6px 2px 2px;
  margin-right: -6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px);
  scrollbar-width: none;
}
.praxis-sim .psim-conv::-webkit-scrollbar { display: none; }
.praxis-sim .psim-row { display: flex; }
.praxis-sim .psim-row-u { justify-content: flex-end; }
.praxis-sim .psim-bub-u {
  max-width: 85%;
  background: var(--royal);
  color: #fff;
  border-radius: 16px;
  padding: 7px 11px;
  font-size: 11.5px;
  line-height: 1.45;
}
.praxis-sim .psim-bub-a {
  max-width: 92%;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  padding: 8px 11px;
  white-space: pre-line;
}
.praxis-sim .psim-bub-a b { color: var(--ink); }
.praxis-sim .psim-feed { display: flex; flex-direction: column; gap: 4px; }
.praxis-sim .psim-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.5;
}
.praxis-sim .psim-spin {
  width: 9px;
  height: 9px;
  border: 1.5px solid #c7d2fe;
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: pxspin 0.8s linear infinite;
  flex: none;
}
@keyframes pxspin {
  to { transform: rotate(360deg); }
}
.praxis-sim .psim-done {
  color: #1fc16b;
  font-size: 10px;
  font-weight: 800;
  width: 9px;
  text-align: center;
  flex: none;
}
.praxis-sim .psim-mdtbl {
  border-collapse: collapse;
  margin: 7px 0;
  font-size: 10.5px;
  line-height: 1.4;
}
.praxis-sim .psim-mdtbl th,
.praxis-sim .psim-mdtbl td {
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.praxis-sim .psim-mdtbl th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
}
.praxis-sim .psim-acts {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 6px;
}
.praxis-sim .psim-act {
  border: none;
  background: none;
  padding: 3px;
  border-radius: 6px;
  color: #64748b;
  display: inline-flex;
  transition: color 250ms, background 250ms;
}
.praxis-sim .psim-act svg { width: 12.5px; height: 12.5px; }
.praxis-sim .psim-act.on {
  color: #1fc16b;
  background: rgba(31, 193, 107, 0.14);
  box-shadow: 0 0 0 1px rgba(31, 193, 107, 0.4);
}
.praxis-sim .psim-copy2 {
  gap: 4px;
  font-size: 9.5px;
  font-weight: 650;
  color: #475569;
  border: 1px solid #d6dbe4;
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
  align-items: center;
}
.praxis-sim .psim-copy2 em { font-style: normal; }
.praxis-sim .psim-composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 10px;
}
.praxis-sim .psim-clip {
  color: #94a3b8;
  display: inline-flex;
  flex: none;
  padding-bottom: 8px;
}
.praxis-sim .psim-clip svg { width: 15px; height: 15px; }
/* Block flow (not flex) so long questions wrap and the box grows,
   with the caret riding inline after the last character */
.praxis-sim .psim-input {
  display: block;
  flex: 1;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 17px;
  color: #334155;
  min-height: 17px;
  background: #fff;
  overflow-wrap: break-word;
}
.praxis-sim .psim-ph:empty + .psim-caret { display: none; }
.praxis-sim .psim-caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  vertical-align: -2px;
  background: var(--royal);
  margin-left: 1px;
  animation: pxcaret 1s steps(1) infinite;
}
@keyframes pxcaret {
  50% { opacity: 0; }
}
.praxis-sim .psim-send {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* —— Clinicians — white panel, circular ringed portraits (ref screenshot) —— */
.clinicians {
  padding: 80px var(--pad);
  text-align: center;
  background: #fff;
  color: var(--ink);
}
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 4px; }
.section-head p { font-size: clamp(18px, 2vw, 24px); font-weight: var(--w-book); }
.clinicians .section-head h2 { color: var(--ink); }
.clinicians .section-head p { font-size: 18px; color: var(--ink); }
.clinicians-viewport {
  overflow: hidden;
  cursor: grab;
  /* Horizontal drags run the carousel; vertical swipes still scroll the page */
  touch-action: pan-y;
  /* Soften the right edge so partially visible cards fade out instead of
     cutting off hard */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
}
.clinicians-viewport.is-dragging { cursor: grabbing; }
.clinicians-viewport.is-dragging .clinicians-track { transition: none; }
.clinicians-track {
  display: flex;
  gap: clamp(16px, 3vw, 53px);
  transition: transform 500ms var(--ease);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.clinician-card img { -webkit-user-drag: none; }
.clinician-card {
  flex: 0 0 200px;
  text-align: center;
}
.clinician-card__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  /* thin offset ring around the circular photo */
  padding: 7px;
  border: 1px solid var(--slate-200);
  margin-bottom: 20px;
}
.clinician-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.clinician-card h3 { font-size: 18px; font-weight: var(--w-med); color: var(--ink); }
.clinician-card .cred { font-size: 16px; font-weight: var(--w-med); margin-top: 2px; color: var(--slate-500); }
.clinician-card .spec { font-size: 14px; color: var(--slate-500); margin-top: 6px; }
.clinicians-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.clinicians-dots { display: flex; gap: 8px; }
.clinicians-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slate-200);
  padding: 0;
  transition: background 200ms var(--ease);
}
.clinicians-dots button:hover { background: var(--slate-400); }
.clinicians-dots button.is-active { background: var(--royal); }

/* —— Utilization (dot plot + daily sessions bars) — dark panel —— */
.util {
  padding: clamp(56px, 7vw, 104px) var(--pad);
  background: var(--ink);
  color: #fff;
}
.util-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.util__title {
  margin: 0 0 clamp(32px, 4vw, 56px);
  font-size: var(--fs-h3);
  font-weight: var(--w-book);
  line-height: 1.2;
  text-align: center;
}
.util__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.util__col {
  margin: 0;
  min-width: 0;
}
.util__col figcaption {
  margin: 0 0 16px;
  text-align: center;
  font-size: var(--fs-body);
  color: var(--slate-400);
  line-height: 1.4;
}
.util__viz {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
  background: #fbfcfd;
}
.util__viz svg { display: block; width: 100%; height: auto; }
.util__viz .util__svg--mobile { display: none; }
@media (max-width: 767px) {
  .util__viz .util__svg--desktop { display: none; }
  .util__viz .util__svg--mobile { display: block; }
}
.util__source {
  margin: 32px 0 0;
  text-align: center;
  font-size: var(--fs-body);
  color: var(--slate-400);
}
@media (min-width: 900px) {
  .util__grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 3.5vw, 56px); align-items: start; }
}

/* —— Marquee —— */
.marquee {
  padding: 48px 0 96px;
}
.marquee-label {
  display: block;
  width: fit-content;
  margin: 0 auto 56px;
  padding: 8px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate-500);
  white-space: nowrap;
}
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track.animate-marquee {
  animation: marquee 40s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 5vw, 80px);
  padding: 0 40px;
  flex-shrink: 0;
}
.marquee-set img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Testimonial (patient story carousel) —— */
.testimonial {
  background: var(--surface);
  /* Top padding pairs with the products section's bottom padding (see above) */
  padding: clamp(20px, 2.5vw, 36px) var(--pad) clamp(56px, 7vw, 104px);
}
.testimonial-inner {
  /* Match the Perform/Extend modules above: same max width, same column
     split (copy left, media right at the viz width), same padding */
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: start;
  padding: 24px;
}
.testimonial__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
/* Same text measure as .products-panel__copy on desktop */
@media (min-width: 1025px) {
  .testimonial__copy { max-width: 85%; }
}
.testimonial-viewport {
  overflow: hidden;
  width: 100%;
  /* Swipe: horizontal drags belong to the carousel, vertical to the page */
  touch-action: pan-y;
}
.testimonial-track {
  display: flex;
  transition: transform 550ms var(--ease);
  will-change: transform;
}
.testimonial-pane {
  flex: 0 0 100%;
  min-width: 0;
}
.testimonial-pane h3 {
  /* Same size as .products-panel h2 */
  font-size: clamp(20px, 2.25vw, 32px);
  font-weight: var(--w-book);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 8px;
}
.testimonial-pane p {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.testimonial-pane p:last-child { margin-bottom: 0; }
/* Image stack: scenes crossfade in place, synced to the text carousel */
.testimonial__media {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1024 / 641;
  background: var(--bg-faint);
}
.testimonial__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 550ms var(--ease);
}
.testimonial__media img.is-active { opacity: 1; }
.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
/* Lighter take on the specialists arrows: white pill, blue stroke and glyph.
   Desktop-only — hidden at the mobile breakpoint below. */
.testimonial-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 28px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--royal);
  transition: background 200ms var(--ease);
}
.testimonial-arrow:hover { background: #eef2fd; }
.testimonial-arrow img { width: 17px; height: 17px; }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slate-200);
  padding: 0;
  transition: background 200ms var(--ease);
}
.testimonial-dots button:hover { background: var(--slate-400); }
.testimonial-dots button.is-active { background: var(--royal); }

/* —— Clinician testimonial quote band (Figma 720:2836) —— */
.clin-quote {
  background: var(--ink);
  padding: 64px var(--pad);
}
.clin-quote__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.clin-quote__label {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
}
.clin-quote__quote {
  margin: 0;
  width: min(740px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
}
.clin-quote__quote blockquote {
  margin: 0;
}
.clin-quote__quote blockquote p {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3;
}
.clin-quote__quote figcaption {
  font-size: 16px;
  line-height: 1.3;
  font-style: italic;
  text-align: right;
}
/* —— Testimonial card carousel below the quote (Watermelon UI testimonials-1,
   rebuilt vanilla and restyled for the dark band) —— */
.clinq-cards {
  width: min(1160px, 100%);
  margin-top: 16px;
}
.clinq-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.clinq-viewport.is-dragging { cursor: grabbing; }
.clinq-viewport.is-dragging .clinq-track { transition: none; }
.clinq-track {
  display: flex;
  gap: 20px;
  padding: 2px;
  transition: transform 500ms var(--ease);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.clinq-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}
.clinq-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: var(--w-med);
  line-height: 1.25;
  color: #fff;
}
.clinq-card > div:first-child > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-400);
}
.clinq-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.clinq-who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-user-drag: none;
}
.clinq-who p { margin: 0; }
.clinq-name { font-size: 16px; font-weight: var(--w-med); color: #fff; }
.clinq-role { font-size: 14px; color: var(--slate-400); margin-top: 2px; }
/* Same outlined-pill arrows as elsewhere — white stroke/glyph on the dark band */
.clinq-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
/* Dots pagination — same style as .clinicians-dots */
.clinq-dots { display: flex; gap: 8px; }
.clinq-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slate-200);
  padding: 0;
  transition: background 200ms var(--ease);
}
.clinq-dots button:hover { background: var(--slate-400); }
.clinq-dots button.is-active { background: var(--royal); }
@media (max-width: 1024px) {
  .clinq-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
  .clinq-card { flex-basis: 100%; }
}

/* —— Footer —— */
.site-footer {
  background: var(--surface);
  padding: 16px var(--pad) 32px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-badges img { height: 40px; width: auto; opacity: 0.85; }
.footer-hiring {
  text-align: center;
  font-size: 16px;
  margin: 16px 0;
}
.footer-hiring a {
  color: var(--ink);
  text-decoration: none;
}
.footer-hiring a:hover { opacity: 0.7; }
.footer-meta {
  text-align: center;
  font-size: 12px;
  color: var(--slate-500);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.footer-meta a:hover { color: var(--ink); }
@media (max-width: 767px) {
  .footer-meta { row-gap: 8px; }
  .footer-meta__copy { flex: 0 0 100%; text-align: center; }
}

/* —— News —— */
.page-news .header-bubble,
.page-post .header-bubble { top: 16px; }
.news-main,
.post-main {
  padding: calc(var(--header-h) + 48px) clamp(24px, 8vw, 128px) 64px;
  max-width: 1440px;
  margin: 0 auto;
}
.news-main { padding-top: calc(var(--header-h) + 96px); }
.news-intro h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 48px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
  border-radius: 8px;
  transition: background 200ms var(--ease);
}
.news-card:hover { background: var(--focus-blue); }
.news-card__img {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-faint);
}
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card h2 {
  font-size: 26px;
  font-weight: var(--w-book);
  line-height: 1.15;
}
.news-card p {
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.post-back {
  display: inline-block;
  font-size: 16px;
  font-weight: var(--w-med);
  margin-bottom: 24px;
  color: var(--slate-500);
}
.post-back:hover { color: var(--royal); }
.post-hero {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-faint);
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-header { margin-bottom: 40px; }
.post-header h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: var(--w-book);
  margin-bottom: 12px;
}
.post-sub {
  font-size: 22px;
  font-style: italic;
  color: var(--slate-500);
}
.post-body {
  font-size: var(--fs-body);
  line-height: 1.55;
}
.post-body h2 {
  font-size: 24px;
  font-weight: var(--w-med);
  margin: 32px 0 12px;
}
.post-body p { margin-bottom: 16px; color: var(--ink); }
/* Ghost-authored article content (Koenig editor output) */
.post-body h3 { font-size: 20px; font-weight: var(--w-med); margin: 28px 0 10px; }
.post-body ul,
.post-body ol { margin: 0 0 16px; padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--royal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body strong { font-weight: var(--w-med); }
.post-body blockquote {
  margin: 32px 0;
  padding: 0 24px;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
}
.post-body blockquote p { color: inherit; }
.post-body hr { border: 0; border-top: 1px solid var(--rule, #e2e8f0); margin: 40px 0; }
.post-body img,
.post-body video { max-width: 100%; height: auto; border-radius: 12px; }
.post-body figure { margin: 32px 0; }
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--slate-500); text-align: center; }
.post-body .kg-width-wide,
.post-body .kg-width-full { margin-left: 0; margin-right: 0; }
.post-body .kg-embed-card iframe { max-width: 100%; }
.post-cta {
  margin-top: 64px;
  padding: 48px 24px;
  background: var(--bg-soft);
  border-radius: 16px;
  text-align: center;
}
.post-cta h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}
.post-cta p {
  color: var(--slate-500);
  margin-bottom: 24px;
  max-width: 520px;
  margin-inline: auto;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .products-panel {
    grid-template-columns: 1fr;
  }
  .testimonial-inner { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /*
    Mobile nav: at the top of the page the bubble is a compact logo pill
    (arrows mark + wordmark; links live in the modal only). Scrolling past
    the hero collapses it to the arrows-mark circle using the desktop
    language — wordmark fades fast, the shape shrinks to a circle,
    top/left/height stay put — and scrolling back to the top re-expands it.
    Tapping the bubble in either state opens the near-fullscreen modal menu:
    no shape animation, just a soft fade-in.
  */
  .header-bubble {
    left: 16px;
    right: auto;
    width: 177px; /* 18 pad + 26 icon + 8 gap + 107 wordmark + 18 pad */
    height: 56px; /* fixed so the smaller logo doesn't shrink the pill */
    max-height: 56px;
    max-width: calc(100vw - 32px);
    justify-content: flex-start;
    padding: 12px 18px;
    gap: 0;
    overflow: hidden;
    transition:
      width 600ms cubic-bezier(0.22, 1, 0.36, 1),
      background 400ms var(--ease),
      box-shadow 400ms var(--ease);
  }
  /* Pill logo matches the modal-menu logo exactly (icon 26, wordmark 107×23);
     the collapsed circle keeps the full 32px mark, morphing during collapse */
  .logo { gap: 8px; }
  .logo-icon { width: 26px; height: 26px; }
  .logo-wordmark { width: 107px; height: 23px; }
  .site-header:not(.is-expanded) .logo-icon {
    transition:
      width 600ms cubic-bezier(0.22, 1, 0.36, 1),
      height 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-header.is-compact:not(.is-expanded) .logo-icon {
    width: 32px;
    height: 32px;
  }
  /* Collapsed circle — hover/focus variants pinned so the desktop
     hover-to-expand rules can't leak in on phones */
  .site-header.is-compact .header-bubble,
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover,
  .site-header.is-compact:not(.is-expanded) .header-bubble:focus-within {
    width: 56px;
    padding: 12px;
    gap: 0;
  }
  /* Links never show in the pill on phones; visibility (not just opacity)
     so they leave the tab order — the modal menu handles navigation */
  .header-cluster,
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover .header-cluster,
  .site-header.is-compact:not(.is-expanded) .header-bubble:focus-within .header-cluster {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* Wordmark fades out quickly while the pill collapses (mirrors desktop);
     the base .logo-wordmark-clip rules fade it back in after re-expanding */
  .site-header.is-compact:not(.is-expanded) .logo-wordmark-clip,
  .site-header.is-compact:not(.is-expanded) .header-bubble:hover .logo-wordmark-clip,
  .site-header.is-compact:not(.is-expanded) .header-bubble:focus-within .logo-wordmark-clip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 0s 150ms;
  }

  /* Expanded: modal menu overlay — margins on all sides, soft fade-in.
     Driven purely by .is-expanded; :focus-within must not hold it open or
     the close button's own focus would re-open the modal it just closed. */
  .site-header.is-expanded .header-bubble,
  .site-header.is-compact.is-expanded .header-bubble {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    height: auto;
    max-width: none;
    max-height: calc(100svh - 32px);
    padding: 24px;
    gap: 24px;
    border-radius: 24px;
    overflow: hidden auto;
    background: rgba(27, 36, 48, 0.85);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    transition: none;
    animation: mobile-menu-in 240ms ease both;
  }
  .site-header.is-expanded .logo { gap: 8px; }
  /* Logo lockup 20% smaller inside the mobile modal menu */
  .site-header.is-expanded .logo-icon { width: 26px; height: 26px; }
  .site-header.is-expanded .logo-wordmark { height: 23px; width: 107px; }
  .site-header.is-expanded .logo-wordmark-clip,
  .site-header.is-expanded .header-cluster,
  .site-header.is-compact.is-expanded .logo-wordmark-clip,
  .site-header.is-compact.is-expanded .header-cluster {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .nav-toggle { display: none; }
  /* Close button in the modal's top-right corner */
  .site-header.is-expanded .nav-toggle {
    display: block;
    position: absolute;
    top: 22px;
    right: 20px;
  }
  .header-cluster__inner { display: block; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
  }
  .site-nav a:not(.btn) {
    padding: 18px 4px;
    font-size: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .site-nav .btn { margin-top: 20px; padding: 14px 24px; }

  @keyframes mobile-menu-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 64px;
    max-width: none;
  }
  .hero-lead { max-width: none; }
  /* Full-bleed cards abut the hero and each other on phones — no white
     section background peeking between; each card's own 24px padding keeps
     the content spacing comfortable */
  .products { padding-top: 0; }
  .products-panels { gap: 0; }
  /* Perform/Extend cards go full-bleed on phones: pull past the page gutter
     (negative margins, not 100vw, so no horizontal scrollbar), square the
     corners, and keep a comfortable inner gutter so content never touches
     the screen edge */
  .products-panel {
    margin-inline: calc(-1 * var(--pad));
    border-radius: 0;
    padding: 24px var(--pad);
  }
  /* Perform/Extend viz windows ~20% shorter on phones — same content and
     animation, the inner scroll just kicks in sooner */
  .praxis-sim,
  .product-card--feed { height: 452px; }
  .clinician-card,
  .clinician-card__img { width: 98px; }
  .clinician-card { flex-basis: 98px; }
  .clinician-card__img { height: 98px; }
  .clinicians-nav { gap: 24px; }
  /* Mobile: dots + swipe only on the Mary carousel */
  .testimonial-arrow { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card__img { height: 220px; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; gap: 16px; }
  /* All three compliance badges on one line: scale with viewport (21px @320 → 27px cap) */
  .footer-badges { justify-content: center; flex-wrap: nowrap; gap: 12px; }
  .footer-badges img { height: clamp(19px, 6.7vw, 27px); }
  .marquee-label { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .header-bubble,
  .logo-icon,
  .logo-wordmark-clip,
  .header-cluster {
    transition: none !important;
    animation: none !important;
  }
  .marquee-track.animate-marquee { animation: none; }
  .praxis-sim .psim-caret,
  .praxis-sim .psim-spin {
    animation: none !important;
  }
  /* Extend feed renders complete and static — no slot expansion */
  .extend-feed,
  .xf-slot,
  .xf-slot > div {
    transition: none !important;
  }
  .hero-video,
  .testimonial-track,
  .testimonial__media img,
  .clinicians-track,
  .clinq-track,
  .btn {
    transition: none !important;
  }
}

/* ==========================================================================
   "See It Live" demo modal (global) — styled after joinaltitude.com's
   Request-a-Demo dialog: dim + blur overlay, 520px white panel, serif title.
   ========================================================================== */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0, 0, 0.2, 1);
}
.demo-modal[hidden] { display: none; }
.demo-modal.is-open { opacity: 1; }
.demo-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.95);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0, 0, 0.2, 1), opacity 500ms cubic-bezier(0, 0, 0.2, 1);
}
@media (min-width: 768px) { .demo-modal__panel { padding: 40px; } }
.demo-modal.is-open .demo-modal__panel { transform: none; opacity: 1; }
.demo-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #64748b;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.demo-modal__close:hover { background: #f6f5f2; color: #1b2430; }
.demo-modal__title {
  margin: 0 0 4px;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1b2430;
}
@media (min-width: 768px) { .demo-modal__title { font-size: 40px; } }
.demo-modal__sub {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #64748b;
}
.demo-modal__form { display: flex; flex-direction: column; gap: 20px; }
.demo-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-modal__field { display: flex; flex-direction: column; gap: 6px; }
.demo-modal__field label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1b2430;
}
.demo-modal__field label span { color: #e24d4d; }
.demo-modal__field input,
.demo-modal__field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #1b2430;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.demo-modal__field input::placeholder { color: #94a3b8; }
.demo-modal__field input:focus,
.demo-modal__field select:focus {
  border-color: #2d5ae2;
  box-shadow: 0 0 0 1px #2d5ae2;
}
.demo-modal__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.demo-modal__field select.is-empty { color: #94a3b8; }
.demo-modal__submit {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #2d5ae2;
  padding: 12px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms;
}
.demo-modal__submit:hover { background: #3b68e8; }
/* Confirmation view — springy check icon, serif Thanks!, Continue pill */
.demo-modal__confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0 16px;
  text-align: center;
}
.demo-modal__confirm[hidden] { display: none; }
.demo-modal__confirm img {
  width: 120px;
  height: 120px;
  transform: scale(0);
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.demo-modal__confirm.is-shown img { transform: scale(1); }
.demo-modal__confirm h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1b2430;
}
@media (min-width: 768px) { .demo-modal__confirm h2 { font-size: 40px; } }
.demo-modal__confirm p { margin: 0; font-size: 18px; line-height: 1.3; color: #1b2430; }
.demo-modal__confirm .demo-modal__submit { margin-top: 8px; padding: 8px 12px; width: auto; }
@media (prefers-reduced-motion: reduce) {
  .demo-modal,
  .demo-modal__panel,
  .demo-modal__confirm img { transition: none; }
}

/* Submission status uses the August modal's existing typography and spacing. */
.demo-modal__error { color: #b42318; font-size: 14px; line-height: 1.5; }
.demo-modal__submit:disabled { opacity: .6; cursor: wait; }
