/* =========================================================================
   SANSERA — v4 website
   Design language borrowed from the CareInsight redesign system
   ("Geometric Calm": Hanken Grotesk + IBM Plex Mono, pill CTAs, mono
   eyebrows, soft cool shadows) — re-themed to Sansera's own brand colors,
   sampled directly from the new logo mark.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
------------------------------------------------------------------------- */
:root {
  /* ---- Brand core (sampled from /assets/logo.png) ---- */
  --sn-indigo: #201674;   /* exact logo navy — primary, trust/depth */
  --sn-teal: #72BFBA;     /* exact logo mint-teal — secondary, calm intelligence */

  /* ---- Indigo ramp ---- */
  --indigo-900: #120D3B;
  --indigo-800: #17114C;
  --indigo-700: #201674;  /* brand */
  --indigo-600: #2B1E93;
  --indigo-500: #4230B3;
  --indigo-400: #6B5AC9;
  --indigo-300: #9A8FDC;
  --indigo-200: #C7C0EC;
  --indigo-100: #E7E2F7;
  --indigo-50:  #F5F3FB;

  /* ---- Teal ramp ---- */
  --teal-700: #4C9490;
  --teal-600: #5EA8A3;
  --teal-500: #72BFBA;    /* brand */
  --teal-400: #92CDC9;
  --teal-300: #B2DCD9;
  --teal-200: #D2EBE9;
  --teal-100: #E8F5F4;
  --teal-50:  #F4FAFA;

  /* ---- Neutrals (indigo-tinted, mirrors CareInsight's cool-gray approach) ---- */
  --neutral-950: #0D0B1F;
  --neutral-900: #16142B;
  --neutral-800: #221F3A;
  --neutral-700: #34314E;
  --neutral-600: #4C4966;
  --neutral-500: #6C6887;
  --neutral-400: #928EA8;
  --neutral-300: #BBB7C9;
  --neutral-200: #DCDAE5;
  --neutral-150: #E7E5EF;
  --neutral-100: #F0EFF5;
  --neutral-50:  #F8F7FB;
  --white: #FFFFFF;

  /* ---- Semantic accents (used sparingly: risk/attention badges) ---- */
  --accent-rose: #D9707A;
  --accent-amber: #DDA544;

  /* ---- Semantic aliases ---- */
  --surface-page: var(--neutral-50);
  --surface-card: var(--white);
  --surface-sunken: var(--neutral-100);
  --surface-inverse: var(--indigo-700);
  --surface-inverse-deep: var(--indigo-900);

  --text-strong: var(--neutral-900);
  --text-body: var(--neutral-700);
  --text-muted: var(--neutral-500);
  --text-on-inverse: rgba(255, 255, 255, 0.94);
  --text-on-inverse-muted: rgba(255, 255, 255, 0.66);

  --border-subtle: var(--neutral-200);
  --border-default: var(--neutral-300);

  --action-primary: var(--indigo-700);
  --action-primary-hover: var(--indigo-600);
  --action-accent: var(--teal-500);
  --action-accent-hover: var(--teal-600);

  --focus-ring: var(--teal-500);

  /* ---- Fonts ---- */
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Type scale — generous, architectural, calm ---- */
  --fs-display-xl: 4.1rem;   /* ~66px hero */
  --fs-display-l: 3.05rem;   /* ~49px */
  --fs-display-m: 2.35rem;   /* ~38px */
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.2rem;
  --fs-body-lg: 1.1rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.9rem;
  --fs-caption: 0.8rem;
  --fs-eyebrow: 0.75rem;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.16em;

  /* ---- Spacing — 4px base ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Radius — soft, mirrors the mark's rounded strokes ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---- Shadows — soft, cool-tinted ---- */
  --shadow-sm: 0 2px 8px rgba(18, 13, 59, 0.07), 0 1px 2px rgba(18, 13, 59, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 13, 59, 0.09), 0 2px 6px rgba(18, 13, 59, 0.05);
  --shadow-lg: 0 24px 56px rgba(18, 13, 59, 0.14), 0 6px 16px rgba(18, 13, 59, 0.07);
  --shadow-focus: 0 0 0 3px rgba(114, 191, 186, 0.45);

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

/* -------------------------------------------------------------------------
   0. RESET & BASE
------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-body);
  line-height: var(--leading-normal);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-tight); color: var(--text-strong); }

.container { width: min(var(--container), 92vw); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: var(--sp-4); top: var(--sp-4); z-index: 1000;
  padding: var(--sp-3) var(--sp-4); background: var(--white);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
}

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* -------------------------------------------------------------------------
   2. UTILITIES — eyebrow, buttons, badges, section rhythm
------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--indigo-600);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.eyebrow--on-dark { color: var(--teal-400); }
.eyebrow--pill {
  background: var(--indigo-50); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
}
.eyebrow--pill.eyebrow--on-dark { background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); }

.cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body);
  border-radius: var(--radius-pill); padding: 13px 26px; cursor: pointer;
  border: none; text-decoration: none; white-space: nowrap;
  transition: background var(--ease) 0.18s, color var(--ease) 0.18s, box-shadow var(--ease) 0.18s, transform var(--ease) 0.18s;
}
.cta:hover { transform: translateY(-1px); }
.cta--accent { background: var(--action-accent); color: var(--indigo-900); }
.cta--accent:hover { background: var(--action-accent-hover); box-shadow: 0 14px 30px -14px rgba(114, 191, 186, 0.7); }
.cta--ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.cta--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.cta--primary { background: var(--action-primary); color: var(--white); }
.cta--primary:hover { background: var(--action-primary-hover); box-shadow: 0 14px 30px -14px rgba(32,22,116,0.55); }
.cta--sm { padding: 10px 20px; font-size: var(--fs-body-sm); }

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section-header { max-width: 640px; margin-bottom: var(--sp-6); }
.section-header h2 { font-size: clamp(1.9rem, 3.2vw, var(--fs-display-m)); line-height: var(--leading-tight); margin-top: var(--sp-3); }
.section-header p { margin-top: var(--sp-3); font-size: var(--fs-body-lg); color: var(--text-muted); line-height: var(--leading-relaxed); }
.section--center { text-align: center; }
.section--center .section-header { margin-left: auto; margin-right: auto; }

.mono { font-family: var(--font-mono); }

.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Reveal-on-scroll is progressive enhancement only: content is fully visible
   by default; the fade/slide effect activates only once html.js confirms
   JS ran (set inline in <head>, before CSS parses) — so a JS failure never
   leaves content permanently hidden. */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* -------------------------------------------------------------------------
   3. HEADER / NAV
------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--indigo-700);
}
.nav {
  display: flex; align-items: center; gap: var(--sp-7);
  min-height: 84px;
}
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img { height: 56px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body-sm);
  color: var(--text-body); padding: 10px 16px; border-radius: var(--radius-pill);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav__link:hover { background: var(--indigo-50); color: var(--indigo-700); }

/* ---- Products mega menu ---- */
.nav__item { position: relative; }
.nav__link--mega { display: inline-flex; align-items: center; gap: 6px; }
.nav__chevron { transition: transform 0.2s var(--ease); }
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }
.nav__item.is-open .nav__link--mega,
.nav__item:hover .nav__link--mega { background: var(--indigo-50); color: var(--indigo-700); }

.mega {
  position: fixed; top: 96px; left: 50%;
  width: min(var(--container), 92vw);
  transform: translate(-50%, 8px);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 120;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.mega__inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: var(--sp-6); }
.mega__col { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.mega__col + .mega__col { border-left: 1px solid var(--border-subtle); padding-left: var(--sp-6); }

.mega__heading {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--teal-700); margin-bottom: var(--sp-1);
}
.mega__tagline {
  font-size: var(--fs-caption); color: var(--text-muted);
  line-height: var(--leading-snug); margin-bottom: var(--sp-3);
}
.mega__link {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-2) var(--sp-3); margin: 0 calc(var(--sp-2) * -1);
  border-radius: var(--radius-md);
  transition: background 0.16s ease;
}
.mega__link:hover { background: var(--indigo-50); }
.mega__name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body-sm);
  color: var(--text-strong); letter-spacing: -0.01em;
  transition: color 0.16s ease;
}
.mega__link:hover .mega__name { color: var(--indigo-700); }
.mega__desc { font-size: var(--fs-caption); color: var(--text-muted); line-height: var(--leading-snug); }

@media (max-width: 1180px) {
  .mega { padding: var(--sp-5); }
  .mega__inner { gap: var(--sp-5); }
  .mega__col + .mega__col { padding-left: var(--sp-5); }
}
@media (max-width: 980px) {
  .mega__inner { grid-template-columns: 1.4fr 1fr; gap: var(--sp-5); }
  .mega__col:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 860px) {
  .mega { display: none; }
}

/* Mobile menu products sub-group */
.mobile-menu__group { display: flex; flex-direction: column; padding-left: var(--sp-4); margin-bottom: var(--sp-2); }
.mobile-menu__sub {
  padding: var(--sp-2) var(--sp-2) !important;
  font-size: var(--fs-body) !important; font-weight: 600 !important;
  color: var(--text-body) !important; border-bottom: none !important;
}
.mobile-menu__sub:hover { color: var(--indigo-700) !important; }

.nav__cta { flex: 0 0 auto; margin-left: auto; }

.nav__toggle {
  display: none; width: 40px; height: 40px; border: none; background: transparent;
  border-radius: var(--radius-sm); flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav__toggle span { width: 22px; height: 2px; border-radius: 999px; background: var(--indigo-700); }

.mobile-menu {
  position: fixed; inset: 84px 0 auto 0; z-index: 99;
  background: rgba(250,250,253,0.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) 6vw var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateY(-120%); transition: transform 0.3s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { padding: var(--sp-3) var(--sp-2); font-weight: 700; font-size: var(--fs-h3); color: var(--text-strong); border-bottom: 1px solid var(--border-subtle); }
.mobile-menu .cta { margin-top: var(--sp-3); align-self: flex-start; }

/* -------------------------------------------------------------------------
   4. HERO
------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, var(--indigo-700) 0%, var(--indigo-900) 62%, #0F3A38 100%);
  padding: clamp(56px, 8vw, 108px) 0 0;
}
/* Media layer — full-bleed clinician video behind everything, faded to
   background prominence. Subject is framed toward the right of the source
   footage (right-anchored portrait composition), barely discernible through
   the reduced opacity and scrim overlay. */
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 50%;
  opacity: 0.40; filter: contrast(1.08) brightness(0.98);
}
/* Directional scrim: opaque navy behind the headline (left), lighter gradient
   toward right. Bottom fade blends the hero into the trust bar. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(18,13,59,0.96) 0%,
      rgba(18,13,59,0.88) 34%,
      rgba(18,13,59,0.48) 58%,
      rgba(18,13,59,0.14) 100%),
    linear-gradient(to bottom,
      rgba(18,13,59,0.45) 0%,
      rgba(18,13,59,0.00) 20%,
      rgba(18,13,59,0.00) 66%,
      rgba(18,13,59,0.72) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__bg-grid {
  position: absolute; inset: 0; z-index: 2; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(114,191,186,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114,191,186,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr;
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__content { max-width: 640px; }
.hero__eyebrow { margin-bottom: var(--sp-5); }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, var(--fs-display-xl));
  line-height: 1.05; letter-spacing: -0.025em; color: var(--white);
  margin: 0 0 var(--sp-5);
}
.hero h1 em { font-style: normal; color: var(--teal-400); white-space: nowrap; }
.hero__sub {
  font-size: var(--fs-body-lg); line-height: var(--leading-relaxed);
  color: var(--text-on-inverse-muted); max-width: 54ch; margin-bottom: var(--sp-6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: var(--sp-4);
}
.hero__proof-label {
  font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-right: var(--sp-4);
  align-self: center;
}
.hero__proof-item {
  font-size: var(--fs-body-sm); font-weight: 600; color: rgba(255,255,255,0.72);
  padding: 3px var(--sp-4); border-left: 1px solid rgba(255,255,255,0.22);
}
.hero__proof-item:first-of-type { border-left: none; padding-left: 0; }

/* -------------------------------------------------------------------------
   5. TRUST BAR (marquee)
------------------------------------------------------------------------- */
.trust-bar { background: var(--indigo-900); padding: var(--sp-5) 0; overflow: hidden; }
.trust-bar__label {
  font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  text-align: center; margin-bottom: var(--sp-4);
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__item {
  display: flex; align-items: center; gap: var(--sp-6);
  padding: 0 var(--sp-6); white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-body-sm); color: rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.marquee__item strong { color: var(--teal-300); font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* -------------------------------------------------------------------------
   6. PROBLEM
------------------------------------------------------------------------- */
.problem { background: var(--surface-page); padding-bottom: var(--sp-5); }
.problem__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: start; }
.problem__quote {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35; color: var(--text-strong);
  border-left: 4px solid var(--teal-500); padding-left: var(--sp-5);
}
.problem__card { padding: var(--sp-6); }
.problem__card h3 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.problem__stat-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.problem__stat-item { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-body); color: var(--text-body); line-height: var(--leading-snug); }
.problem__stat-icon { flex-shrink: 0; margin-top: 2px; }
.problem__coda {
  margin-top: var(--sp-6); text-align: center; font-family: var(--font-display);
  font-weight: 800; font-size: var(--fs-h1); color: var(--indigo-700);
}

/* -------------------------------------------------------------------------
   7. PRODUCTS — four capability cards + Data Aggregation foundation bar
------------------------------------------------------------------------- */
.products { background: var(--surface-page); padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.cap-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cap-card__head {
  background: var(--indigo-700); color: var(--white);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--sp-4) var(--sp-4);
}
.cap-card--voice .cap-card__head { background: var(--teal-600); color: var(--indigo-900); }
.cap-card--pophealth .cap-card__head { background: var(--indigo-500); }
.cap-card--ambient .cap-card__head { background: var(--teal-500); color: var(--indigo-900); }
.cap-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.cap-card__name { font-size: var(--fs-h3); color: var(--indigo-700); }
.cap-card__name--duo { font-size: 1.05rem; line-height: 1.4; }
.cap-card__amp { color: var(--text-muted); font-weight: 400; font-size: 0.85em; padding: 0 0.15em; }
.cap-card__name .cap-card__link { color: inherit; font-family: inherit; font-size: inherit; text-decoration: none; }
.cap-card__name .cap-card__link::after { content: none; }
.cap-card__name .cap-card__link:hover { color: var(--teal-700); text-decoration: underline; }
.cap-card__name .tm { font-size: 0.55em; font-weight: 500; vertical-align: 0.4em; margin-left: -0.12em; letter-spacing: 0; }
.cap-card__names { font-size: 1rem; font-weight: 800; color: var(--indigo-700); line-height: 1.4; }
.cap-card ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.cap-card li { font-size: var(--fs-body-sm); color: var(--text-body); line-height: var(--leading-snug); }
.cap-card li strong { color: var(--text-strong); font-weight: 700; }
.cap-card__metrics { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--border-default); display: flex; flex-direction: column; gap: 6px; }
.cap-card__metric { font-size: var(--fs-body-sm); color: var(--text-body); }
.cap-card__metric strong { font-family: var(--font-mono); color: var(--teal-700); font-weight: 700; }
.cap-card__note { margin-top: var(--sp-2); font-style: italic; font-size: var(--fs-caption); color: var(--text-muted); }
.cap-card__links { margin-top: auto; padding-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.cap-card__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body-sm);
  color: var(--indigo-700); text-decoration: none;
  transition: gap 0.16s ease, color 0.16s ease;
}
.cap-card__link::after { content: "\2192"; transition: transform 0.16s ease; }
.cap-card__link:hover { color: var(--teal-700); }
.cap-card__link:hover::after { transform: translateX(3px); }
/* Inline variant — program names inside card bullet lists: no arrow, underline on hover */
.cap-card li .cap-card__link { display: inline; font-family: inherit; font-size: inherit; text-decoration: none; }
.cap-card li .cap-card__link::after { content: none; }
.cap-card li .cap-card__link strong { color: var(--indigo-700); border-bottom: 1px solid var(--teal-400); transition: color 0.16s ease, border-color 0.16s ease; }
.cap-card li .cap-card__link:hover strong { color: var(--teal-700); border-bottom-color: var(--teal-700); }
.cap-card__callout {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--teal-50); border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
}
.cap-card__callout-title { font-size: var(--fs-body-sm); font-weight: 800; color: var(--teal-700); margin-bottom: 2px; }
.cap-card__callout p { font-size: var(--fs-caption); color: var(--text-body); line-height: var(--leading-snug); }

.foundation-bar {
  margin-top: var(--sp-5);
  background: linear-gradient(120deg, var(--indigo-900), #0F2A38);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  color: var(--text-on-inverse-muted);
}
.foundation-bar__text { display: flex; flex-direction: column; gap: var(--sp-3); }
.foundation-bar__title {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300);
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.foundation-bar__title span.sub { font-family: var(--font-body); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.55); font-size: var(--fs-body-sm); }
.foundation-bar__desc { font-size: var(--fs-body-sm); line-height: var(--leading-snug); max-width: 88ch; }
.foundation-bar__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
.foundation-bar__tag {
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 500;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-pill);
  padding: 4px 11px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.foundation-bar__tag:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

/* -------------------------------------------------------------------------
   8. HOW IT WORKS
------------------------------------------------------------------------- */
.how { background: var(--surface-page); padding-top: var(--sp-5); }
.how__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-7);
  counter-reset: how;
}
.how__step {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding-top: var(--sp-5); border-top: 1px solid var(--border-subtle);
}
.how__num {
  flex: 0 0 auto; width: 44px;
  font-size: var(--fs-body); font-weight: 600; color: var(--teal-600);
  letter-spacing: var(--tracking-eyebrow);
}
.how__body h3 { font-size: var(--fs-h3); color: var(--text-strong); margin: 0 0 var(--sp-2); }
.how__body p { margin: 0; color: var(--text-muted); line-height: var(--leading-relaxed); font-size: var(--fs-body-sm); }

/* -------------------------------------------------------------------------
   8b. RESULTS — counters + testimonial
------------------------------------------------------------------------- */
.results {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 55%, #14514D 100%);
  color: var(--text-on-inverse);
}
.section-header--on-dark h2 { color: var(--white); }
.section-header--on-dark p { color: var(--text-on-inverse-muted); }
.results__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.results__stat { display: flex; flex-direction: column; gap: var(--sp-2); }
.results__num {
  font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.results__label {
  font-size: var(--fs-body-sm); color: var(--text-on-inverse-muted);
  line-height: var(--leading-snug); max-width: 22ch;
}
.results__quote {
  margin: var(--sp-7) 0 0; max-width: 780px;
}
/* Left rule instead of a decorative glyph — the curly quotes carry it. */
.results__quote { border-left: 3px solid var(--teal-400); padding-left: var(--sp-5); }
.results__quote blockquote { margin: 0; }
.results__quote blockquote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--white); margin: 0;
}
.results__attribution { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 2px; }
.results__attribution strong { color: var(--teal-400); font-size: var(--fs-body); }
.results__attribution span { color: var(--text-on-inverse-muted); font-size: var(--fs-body-sm); }

/* -------------------------------------------------------------------------
   8c. WHY SANSERA
------------------------------------------------------------------------- */
.why { background: var(--surface-page); padding-top: var(--sp-6); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.why__card { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.why__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--teal-100); display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.why__card h3 { font-size: var(--fs-h3); color: var(--text-strong); margin: 0; }
.why__card p { margin: 0; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--leading-relaxed); }

/* -------------------------------------------------------------------------
   9. INTEGRATIONS
------------------------------------------------------------------------- */
.integrations { background: var(--surface-card); }
.integrations__grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.integration-badge {
  font-family: var(--font-mono); font-size: var(--fs-body-sm); font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-body);
  border: 1px solid var(--border-subtle);
}
.integrations__note { margin-top: var(--sp-5); font-size: var(--fs-body-sm); color: var(--text-muted); font-style: italic; }

/* -------------------------------------------------------------------------
   10. SECURITY
------------------------------------------------------------------------- */
.security { background: var(--surface-page); padding-bottom: var(--sp-6); }
.security__badges { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); }
.compliance-badge {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-sm); flex: 1 1 200px;
}
.compliance-badge__name { font-weight: 800; color: var(--indigo-700); font-size: var(--fs-body-sm); }
.security__desc { margin-top: var(--sp-5); font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 68ch; }

/* -------------------------------------------------------------------------
   11. CTA / DEMO FORM
------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-900) 60%, #0F3A38 120%);
  color: var(--white);
}
.cta-section__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-8); align-items: start; }
.cta-section__text h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, var(--fs-display-m)); line-height: var(--leading-tight); }
.cta-section__text p { margin-top: var(--sp-4); color: var(--text-on-inverse-muted); font-size: var(--fs-body-lg); line-height: var(--leading-relaxed); max-width: 42ch; }
.cta-section__badges { display: flex; gap: var(--sp-4); margin-top: var(--sp-7); flex-wrap: wrap; }
.cta-section__badge { font-family: var(--font-mono); font-size: var(--fs-caption); color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 7px; }
.cta-section__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }

.cta-form-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: var(--sp-6); box-shadow: var(--shadow-lg);
}
.cta-form { display: grid; gap: var(--sp-4); }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.cta-form__field { display: grid; gap: 6px; }
.cta-form__label { font-size: var(--fs-caption); font-weight: 700; color: var(--text-body); }
.cta-form__input {
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 12px 14px; font: inherit; font-size: var(--fs-body-sm); color: var(--text-strong);
  background: var(--white); width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.cta-form__input:focus { border-color: var(--teal-500); box-shadow: var(--shadow-focus); }
.cta-form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C6887' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-error { border-color: var(--accent-rose) !important; background: rgba(217,112,122,0.05) !important; }
.cta-form__submit { justify-content: center; margin-top: var(--sp-2); }
.cta-form__footnote { font-size: var(--fs-caption); color: var(--text-muted); text-align: center; margin-top: -4px; }

.cta-form__success { text-align: center; padding: var(--sp-7) var(--sp-4); }
.cta-form__success-icon { margin: 0 auto var(--sp-4); width: 52px; height: 52px; }
.cta-form__success-title { font-size: var(--fs-h2); color: var(--indigo-700); margin-bottom: var(--sp-2); }
.cta-form__success-sub { color: var(--text-muted); font-size: var(--fs-body-sm); max-width: 40ch; margin: 0 auto; }

/* -------------------------------------------------------------------------
   12. FOOTER
------------------------------------------------------------------------- */
.site-footer { background: var(--neutral-100); border-top: 1px solid var(--border-subtle); }
.footer__inner { padding: var(--sp-8) 0 var(--sp-6); display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr 0.9fr 0.9fr; gap: var(--sp-6); }
/* Match the header lockup. Internal symbol-to-wordmark scale is balanced in
   the artwork, so both placements can use the same compact height. */
.footer__brand img { height: 56px; width: auto; margin-bottom: var(--sp-4); }
.footer__tagline { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 30ch; line-height: var(--leading-snug); }
.footer__col-heading { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-3); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__link { font-size: var(--fs-body-sm); color: var(--text-body); font-weight: 600; }
.footer__link:hover { color: var(--indigo-700); }
.footer__bottom {
  border-top: 1px solid var(--border-subtle); padding: var(--sp-4) 0 var(--sp-6);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-caption); color: var(--text-muted);
}
.footer__compliance { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer__legal { display: flex; gap: var(--sp-4); }
.footer__legal a { color: var(--text-muted); }
.footer__legal a:hover { color: var(--indigo-700); }
.footer__url { font-family: var(--font-mono); font-weight: 700; color: var(--teal-700); }

/* -------------------------------------------------------------------------
   11b. DEMO FORM MODAL — single booking form, opened by [data-open-demo]
------------------------------------------------------------------------- */
.demo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.demo-modal[hidden] { display: none; }
.demo-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 11, 31, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: demoModalFade 0.22s var(--ease);
}
.demo-modal__card {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius-xl);
  padding: var(--sp-6); box-shadow: var(--shadow-lg);
  width: min(560px, 100%);
  max-height: calc(100vh - var(--sp-7));
  overflow-y: auto;
  animation: demoModalIn 0.26s var(--ease);
}
.demo-modal__title { font-size: var(--fs-h2); color: var(--indigo-700); margin: 0 0 var(--sp-2); }
.demo-modal__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  color: var(--text-body); display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.demo-modal__close:hover { background: var(--indigo-50); color: var(--indigo-700); }
@keyframes demoModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes demoModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .demo-modal { align-items: flex-end; padding: 0; }
  .demo-modal__card {
    width: 100%; max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--sp-5);
  }
}

/* -------------------------------------------------------------------------
   12b. CCM360 PROGRAM PAGES (/care-management/*)
   Shared family components — sub-hero, requirement lists, code-ladder
   tables, AI steps, math highlight, comparison tables, FAQ, program-nav
   and the closing CTA. All built from the core tokens above.
------------------------------------------------------------------------- */

/* Sub-hero — same gradient family as .hero, no video layer */
.cm-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, var(--indigo-700) 0%, var(--indigo-900) 62%, #0F3A38 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.cm-hero__bg-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(114,191,186,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114,191,186,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 75%);
}
.cm-hero__inner { position: relative; z-index: 1; }
.cm-hero__content { max-width: 760px; }
.cm-hero__eyebrow { margin-bottom: var(--sp-5); }
.cm-hero h1 {
  font-size: clamp(2rem, 4vw, var(--fs-display-l));
  line-height: var(--leading-tight); letter-spacing: -0.025em; color: var(--white);
  margin: 0 0 var(--sp-5);
}
.cm-hero__sub {
  font-size: var(--fs-body-lg); line-height: var(--leading-relaxed);
  color: var(--text-on-inverse-muted); max-width: 58ch; margin-bottom: var(--sp-6);
}
.cm-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Body sections alternate surfaces like the homepage */
.cm-section { background: var(--surface-card); }
.cm-section--alt { background: var(--surface-page); }

.cm-prose { max-width: 88ch; }
.cm-prose p {
  font-size: var(--fs-body-lg); color: var(--text-body);
  line-height: var(--leading-relaxed); margin-bottom: var(--sp-4);
}
.cm-prose p:last-child { margin-bottom: 0; }
.cm-prose strong { color: var(--text-strong); font-weight: 700; }

/* Section headers on program pages get a wider measure than the homepage */
.cm-section .section-header, .cm-section--alt .section-header { max-width: 800px; }

.cm-subhead {
  font-size: var(--fs-h2); color: var(--text-strong);
  margin: var(--sp-7) 0 var(--sp-4);
}

/* Requirement checklist — mirrors problem__stat-item icon treatment */
.cm-req-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 88ch; }
.cm-req-list li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: var(--fs-body); color: var(--text-body); line-height: var(--leading-relaxed);
}
.cm-req-list strong { color: var(--text-strong); font-weight: 700; }
.cm-req-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; margin-top: 2px;
  background: var(--teal-100); display: inline-flex; align-items: center; justify-content: center;
}

/* Code-ladder table — card-contained, mono code column */
.cm-table-wrap {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow-x: auto; margin-top: var(--sp-5);
}
.cm-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cm-table th {
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--indigo-700);
  white-space: nowrap;
}
.cm-table td {
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-body-sm);
  color: var(--text-body); line-height: var(--leading-snug);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.cm-table tr:last-child td { border-bottom: none; }
.cm-table tbody tr { transition: background 0.14s ease; }
.cm-table tbody tr:hover { background: var(--indigo-50); }
.cm-table__code { font-family: var(--font-mono); font-weight: 700; color: var(--indigo-700); white-space: nowrap; }
.cm-table__rate { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.cm-table__foot {
  font-size: var(--fs-caption); color: var(--text-muted); font-style: italic;
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Problem section callout — reuse problem__quote voice */
.cm-pullquote {
  border-left: 3px solid var(--teal-500); padding-left: var(--sp-5);
  margin: var(--sp-6) 0 0; max-width: 980px;
}
.cm-pullquote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--text-strong); margin: 0;
}
.cm-pullquote strong { color: var(--indigo-700); }

/* AI steps — mirrors homepage how__step */
.cm-steps { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 980px; }
.cm-step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.cm-step__num {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: var(--indigo-700); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-body-sm);
}
.cm-step__body h3 { font-size: var(--fs-h3); color: var(--text-strong); margin: 0 0 var(--sp-2); }
.cm-step__body p { margin: 0; color: var(--text-muted); line-height: var(--leading-relaxed); font-size: var(--fs-body); }

/* Math highlight — dark gradient, mirrors results/cta-section family */
.cm-math {
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 55%, #14514D 100%);
  color: var(--text-on-inverse);
}
.cm-math__num {
  font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 700; color: var(--teal-400);
  letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
  margin: var(--sp-5) 0;
}
.cm-math .section-header p { color: var(--text-on-inverse-muted); }
.cm-math .section-header h2 { color: var(--white); }

/* Comparison table (PCM vs CCM / RPM vs RTM) — same table base, accent header col */
.cm-compare th:first-child { width: 22%; }
.cm-compare td:first-child { font-weight: 700; color: var(--text-strong); }

/* FAQ */
.cm-faq { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 980px; }
.cm-faq__item {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.cm-faq__item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cm-faq__item h3 {
  font-size: var(--fs-body-lg); font-weight: 700; color: var(--indigo-700);
  margin: 0 0 var(--sp-2); letter-spacing: -0.01em;
}
.cm-faq__item p { margin: 0; color: var(--text-body); font-size: var(--fs-body); line-height: var(--leading-relaxed); }

/* FQHC band — teal-tinted callout */
.cm-fqhc {
  background: var(--teal-50); border: 1px solid var(--teal-200);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  max-width: 980px;
}
.cm-fqhc .eyebrow { color: var(--teal-700); }
.cm-fqhc p { margin-top: var(--sp-3); color: var(--text-body); font-size: var(--fs-body); line-height: var(--leading-relaxed); }

/* Family cross-nav — pill chips like integration badges */
.cm-family {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5);
}
.cm-family__label {
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-muted); align-self: center; margin-right: var(--sp-2);
}
.cm-family__chip {
  font-family: var(--font-mono); font-size: var(--fs-body-sm); font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-body);
  border: 1px solid var(--border-subtle);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.cm-family__chip:hover { background: var(--indigo-50); color: var(--indigo-700); border-color: var(--indigo-200); }
.cm-family__chip.is-current {
  background: var(--indigo-700); color: var(--white); border-color: var(--indigo-700);
  cursor: default;
}

/* Closing CTA — same gradient/pattern as homepage cta-section, text-only.
   Full-width two-column: copy+badges left, action button right. */
.cm-close {
  background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-900) 60%, #0F3A38 120%);
  color: var(--white);
}
.cm-close__inner {
  display: grid; grid-template-columns: 1.5fr auto; gap: var(--sp-7);
  align-items: center; max-width: none;
}
.cm-close__text { max-width: 62ch; }
.cm-close h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, var(--fs-display-m)); line-height: var(--leading-tight); margin: 0; }
.cm-close p { margin-top: var(--sp-4); color: var(--text-on-inverse-muted); font-size: var(--fs-body-lg); line-height: var(--leading-relaxed); }
.cm-close__action { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); }
.cm-close__action .cta { margin-top: 0; white-space: nowrap; }
.cm-close__badges { display: flex; gap: var(--sp-4); margin-top: var(--sp-6); flex-wrap: wrap; }

@media (max-width: 860px) {
  .cm-close__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .cm-close__action { align-items: flex-start; }
}

@media (max-width: 640px) {
  .cm-step__num { width: 34px; height: 34px; }
  .cm-fqhc { padding: var(--sp-5); }
}

/* -------------------------------------------------------------------------
   12c. PRODUCT-PAGE SHARED EXTRAS (Voice Agents / Scribe / PopHealth)
------------------------------------------------------------------------- */

/* Feature card grid — "What it does" blocks */
.cm-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.cm-feature {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.cm-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cm-feature__idx {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-caption);
  color: var(--teal-700); letter-spacing: 0.08em;
}
.cm-feature h3 { font-size: var(--fs-h3); color: var(--text-strong); margin: 0; }
.cm-feature p { margin: 0; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--leading-relaxed); }
.cm-feature__impact {
  margin-top: auto; padding-top: var(--sp-3); border-top: 1px dashed var(--border-default);
  font-size: var(--fs-body-sm); color: var(--text-body); line-height: var(--leading-snug);
}
.cm-feature__impact strong { color: var(--teal-700); font-weight: 700; }

/* Bullet feature list (How it's built / Engagement engine) */
.cm-bullet-list { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 88ch; }
.cm-bullet-list li {
  position: relative; padding-left: var(--sp-5);
  font-size: var(--fs-body); color: var(--text-body); line-height: var(--leading-relaxed);
}
.cm-bullet-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500);
}
.cm-bullet-list strong { color: var(--text-strong); font-weight: 700; }

/* Audio demo cards — "Hear it" slots (Voice Agents) */
.cm-audio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.cm-audio {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.cm-audio:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cm-audio__play {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--indigo-700); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.16s ease, transform 0.16s ease;
}
.cm-audio__play:hover { background: var(--indigo-600); transform: scale(1.05); }
.cm-audio__body { min-width: 0; }
.cm-audio__title { font-weight: 700; font-size: var(--fs-body); color: var(--text-strong); line-height: var(--leading-snug); }
.cm-audio__meta { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); margin-top: 4px; }
.cm-audio__note { margin-top: var(--sp-5); font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 68ch; }

/* Video slot — "See it" (Scribe) */
.cm-video {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 60%, #14514D 100%);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
}
.cm-video__play {
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.94); color: var(--indigo-700);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform 0.18s var(--ease);
}
.cm-video__play:hover { transform: scale(1.07); }
.cm-video__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-body-sm); color: var(--text-on-inverse-muted);
  background: linear-gradient(to top, rgba(13,11,31,0.72), transparent);
}
.cm-video-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); max-width: 72ch; }
.cm-video-list li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: var(--fs-body); color: var(--text-body); line-height: var(--leading-relaxed);
}

/* Stats band — "The numbers" */
.cm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  padding: var(--sp-6) 0; margin-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.16); border-bottom: 1px solid rgba(255,255,255,0.16);
}
.cm-stat { display: flex; flex-direction: column; gap: var(--sp-2); }
.cm-stat__num {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; color: var(--teal-400);
  letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.cm-stat__label { font-size: var(--fs-body-sm); color: var(--text-on-inverse-muted); line-height: var(--leading-snug); max-width: 24ch; }

/* "Explore the platform" chip row (extends the cm-family pattern to platform products) */
.cm-platform { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.cm-platform__chip {
  font-family: var(--font-mono); font-size: var(--fs-body-sm); font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); color: var(--text-on-inverse);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.cm-platform__chip:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }

@media (max-width: 980px) {
  .cm-feature-grid, .cm-audio-grid { grid-template-columns: 1fr; }
  .cm-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
}
@media (max-width: 640px) {
  .cm-stats { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------
   12b. LEGAL PAGES — Privacy Policy & Terms of Service
------------------------------------------------------------------------- */
.legal { max-width: 780px; }
.legal__title { font-size: clamp(2rem, 4vw, var(--fs-display-m)); line-height: var(--leading-tight); margin-top: var(--sp-3); }
.legal__meta { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.04em; color: var(--text-muted); margin-top: var(--sp-3); }
.legal__intro { margin-top: var(--sp-5); font-size: var(--fs-body-lg); color: var(--text-body); line-height: var(--leading-relaxed); }
.legal h2 { font-size: var(--fs-h2); margin-top: var(--sp-7); }
.legal h3 { font-size: var(--fs-h3); margin-top: var(--sp-6); }
.legal p { margin-top: var(--sp-4); color: var(--text-body); line-height: var(--leading-relaxed); }
.legal ul { margin-top: var(--sp-4); padding-left: var(--sp-6); list-style: disc; display: flex; flex-direction: column; gap: var(--sp-2); }
.legal li { color: var(--text-body); line-height: var(--leading-relaxed); }
.legal a { color: var(--indigo-700); text-decoration: underline; }

/* -------------------------------------------------------------------------
   13. RESPONSIVE
------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .problem__split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .results__stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero h1 { max-width: none; }
  /* Pre-cropped video asset — no panning needed on tablet. */
  .hero__video { object-position: center 50%; }
  .foundation-bar { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: var(--sp-5); }
}

@media (max-width: 640px) {
  .container { width: 90vw; }
  .section { padding: var(--sp-8) 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .cta-form__row { grid-template-columns: 1fr; }
  .hero__video { object-position: center 50%; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .hero__proof-item { border-left: none; padding-left: 0; }
  .cta-section__inner, .hero__inner { gap: var(--sp-6); }
  .results__stats { grid-template-columns: 1fr; }
  .results__label { max-width: none; }
  .how__num { width: 34px; }
}
