/* ============================================================================
   PREMIER HEALTH CLINICAL RESEARCH — Design System v2
   Part of the Premier Health family. Shares the Alliance foundation:
   warm cream canvas, plum ink, violet action, editorial serif headlines,
   pill geometry. Differentiated for research: teal as the working accent,
   an ink gradient for the network band, and numbered editorial rows for
   therapeutic areas.
   ========================================================================== */

:root {
  /* ── Brand (Premier Health family) ─────────────────────────────────────── */
  --ink:        #2b1053;   /* plum — headlines, body, dark surfaces           */
  --royal:      #5a2d8c;   /* mid purple — deep tinted cards                  */
  --action:     #a03cf5;   /* bright violet — THE primary action color        */
  --action-dk:  #8a29de;
  --lavender:   #d9b3f2;
  --wisteria:   #ece1fb;   /* lightest wash — badges, info surfaces           */
  --periwinkle: #6b5cf5;

  /* ── Research accents ──────────────────────────────────────────────────── */
  --teal:       #0e7874;
  --teal-soft:  #7fd0cb;
  --mist:       #dcefed;

  /* ── Neutrals ──────────────────────────────────────────────────────────── */
  --cream:      #f8f3eb;
  --white:      #ffffff;

  --ink-70:     rgba(43, 16, 83, 0.70);
  --ink-55:     rgba(43, 16, 83, 0.55);
  --ink-14:     rgba(43, 16, 83, 0.16);
  --ink-09:     rgba(43, 16, 83, 0.11);

  /* ── Type ──────────────────────────────────────────────────────────────── */
  --serif: 'DM Serif Display', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ── Shape ─────────────────────────────────────────────────────────────── */
  --r-card: 16px;
  --r-lg:   24px;
  --r-pill: 999px;
  --r-nav:  100px;

  /* ── Elevation — warm plum, never cool gray ────────────────────────────── */
  --sh-sm: rgba(78, 56, 92, 0.05) 0 4px 4px 0, rgba(78, 56, 92, 0.08) 0 32px 16px -24px;
  --sh-md: rgba(88, 66, 102, 0.08) 0 8px 16px 0, rgba(88, 66, 102, 0.04) 0 32px 32px 0;
  --sh-lg: rgba(78, 56, 92, 0.12) 0 12px 24px 0, rgba(78, 56, 92, 0.10) 0 48px 48px -16px;
  --sh-xl: rgba(78, 56, 92, 0.12) 0 48px 48px -12px;

  --page: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
svg { display: block; }
ul  { list-style: none; }

::selection { background: var(--lavender); color: var(--ink); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

/* ============================================================================
   TYPOGRAPHY — serif at weight 400 only; hierarchy from size, not weight
   ========================================================================== */

.display, .h1, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display { font-size: clamp(2.6rem, 5.6vw, 3.9rem);  line-height: 1.04; }
.h2      { font-size: clamp(1.875rem, 3.4vw, 2.85rem); line-height: 1.1; }
.h3      { font-size: clamp(1.3rem, 1.9vw, 1.5rem);  line-height: 1.25; letter-spacing: -0.01em; }
.h4      { font-size: 1.1875rem; line-height: 1.3; }
.display em, .h2 em, .h3 em { font-style: italic; }

.lead    { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.6; color: var(--ink-70); }
.body    { font-size: 1rem;     line-height: 1.62; color: var(--ink-70); }
.body-sm { font-size: 0.875rem; line-height: 1.5;  color: var(--ink-70); }

.on-dark, .on-dark .h2, .on-dark .h3, .on-dark .h4, .on-dark .display { color: var(--white); }
.on-dark .lead { color: rgba(255,255,255,0.90); }
.on-dark .body { color: rgba(255,255,255,0.88); }

/* ============================================================================
   LAYOUT
   ========================================================================== */

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 92px 0; }
section.tight { padding: 56px 0; }
section.flush-top { padding-top: 0; }

.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section-head .h2 { margin: 20px 0 18px; }
.section-head-left { max-width: 640px; margin: 0 0 44px; }
.section-head-left .h2 { margin: 20px 0 18px; }

.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-standard { grid-template-columns: 1fr 1.08fr; }
.split > *, .grid > *, .stat-band > * { min-width: 0; }

.center { text-align: center; }

/* ============================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--ink-09);
  box-shadow: var(--sh-sm);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--action); flex: none; }
.badge-wisteria { background: var(--wisteria); border-color: transparent; box-shadow: none; }
.badge-ghost {
  background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28);
  box-shadow: none; color: var(--white);
}
.badge-ghost::before { background: var(--lavender); }

/* ============================================================================
   BUTTONS — always pills
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; line-height: 1;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { padding: 11px 20px; font-size: 0.875rem; }

.btn-primary { background: var(--action); color: var(--white); box-shadow: var(--sh-lg); }
.btn-primary:hover { background: var(--action-dk); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--lavender); }
.btn-ghost:hover { background: var(--white); border-color: var(--action); }

.btn-ink { background: var(--ink); color: var(--white); box-shadow: var(--sh-md); }
.btn-ink:hover { background: var(--royal); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--ink); box-shadow: var(--sh-md); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.42); }
.btn-outline-white:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.72); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.arrow-btn {
  width: 42px; height: 42px; border-radius: var(--r-nav);
  display: grid; place-items: center;
  background: var(--cream); color: var(--ink); flex: none;
  transition: background 0.22s ease, transform 0.22s ease;
}
.arrow-btn svg { width: 16px; height: 16px; }

/* ============================================================================
   NAVIGATION — floating pill with hover dropdown
   ========================================================================== */

.nav-shell { position: fixed; top: 18px; left: 0; right: 0; z-index: 900; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--page); margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-nav);
  box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 18px;
  padding: 11px 12px 11px 22px;
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--sh-lg); }

/* Brand lockup — the supplied logo artwork, used as a single image.
   Intrinsic 1300x247 is declared on the tag so the browser reserves the right
   space before it loads; CSS drives the displayed height. */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { display: block; height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links > li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-70); text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav-links a.active { color: var(--action); background: var(--wisteria); }
.nav-links svg { width: 11px; height: 11px; opacity: 0.7; transition: transform 0.2s ease; }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 244px; padding: 10px;
  background: var(--white); border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > a > svg { transform: rotate(180deg); }
.dropdown a { padding: 11px 14px; font-size: 0.875rem; color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-actions .btn-primary { box-shadow: rgba(160, 60, 245, 0.32) 0 6px 14px -4px; }

.burger {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--ink-09); border-radius: var(--r-nav);
  background: var(--white); cursor: pointer; place-items: center; flex: none;
}
.burger i { display: block; position: relative; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); }
.burger i::before, .burger i::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink);
}
.burger i::before { top: -5px; }
.burger i::after  { top: 5px; }

.nav-drawer {
  pointer-events: auto; display: none;
  max-width: var(--page); margin: 10px auto 0;
  background: var(--white); border-radius: var(--r-card);
  box-shadow: var(--sh-lg); padding: 14px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 12px 16px; border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-drawer a:hover { background: var(--cream); }
.nav-drawer .drawer-label {
  padding: 14px 16px 6px; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-55);
}
.nav-drawer .btn { width: 100%; margin-top: 10px; }
.nav-drawer a.btn-primary { color: var(--white); }

/* ============================================================================
   HERO — centered display over a soft violet wash, two drifting orbs
   ========================================================================== */

.hero { position: relative; padding: 182px 0 84px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: 0;
  top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 900px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(160,60,245,0.13) 0%, rgba(160,60,245,0) 62%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.hero .display { margin: 26px 0 22px; }
.hero .lead { max-width: 680px; margin: 0 auto 34px; }

.orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; padding: 9px; box-shadow: var(--sh-xl); }
.orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dot { position: absolute; border-radius: 50%; }

@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(var(--dx, 0px), var(--dy, -18px), 0); }
}
.orb, .dot {
  animation: orb-drift var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}
.orb-violet { background: var(--action); }
.orb-teal   { background: var(--teal); }

.orb-a { width: 196px; height: 196px; top: 196px; left: 1.5%;
         --dur: 10s; --delay: -0.8s; --dy: -20px; --dx: 8px; }
.orb-b { width: 158px; height: 158px; bottom: 74px; right: 2%;
         --dur: 12s; --delay: -4.4s; --dy: 18px;  --dx: -8px; }
.dot-a { width: 26px; height: 26px; bottom: 150px; left: 13%; background: var(--teal-soft);
         --dur: 13s; --delay: -2.4s; --dy: -14px; --dx: 5px; }
.dot-b { width: 15px; height: 15px; top: 226px; right: 15%; background: var(--action);
         --dur: 15s; --delay: -6.6s; --dy: 12px;  --dx: -6px; }
.dot-c { width: 38px; height: 38px; top: 420px; right: 9%; background: var(--wisteria);
         --dur: 14s; --delay: -3.9s; --dy: -15px; --dx: -5px; }

/* ============================================================================
   CREDENTIAL PILL ROW
   ========================================================================== */

.creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cred {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--ink-09);
  box-shadow: var(--sh-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
}
.cred svg { width: 15px; height: 15px; flex: none; color: var(--teal); }

/* ============================================================================
   CARDS
   ========================================================================== */

.card { background: var(--white); border-radius: var(--r-card); padding: 32px; box-shadow: var(--sh-sm); }
.card-lg { padding: 40px; }
.card-xl { padding: 52px; }
.card-flat { box-shadow: none; border: 1px solid var(--ink-09); }

.card-tint-mist  { background: var(--mist);  box-shadow: none; }
.card-tint-teal  { background: var(--teal);  box-shadow: none; color: var(--white); }
.card-tint-royal { background: var(--royal); box-shadow: none; color: var(--white); }
.card-tint-ink   { background: var(--ink);   box-shadow: none; color: var(--white); }

.card-tint-teal .h2,  .card-tint-teal .h3,  .card-tint-teal .h4,
.card-tint-royal .h2, .card-tint-royal .h3, .card-tint-royal .h4,
.card-tint-ink .h2,   .card-tint-ink .h3,   .card-tint-ink .h4 { color: var(--white); }
.card-tint-teal .body,  .card-tint-royal .body { color: rgba(255,255,255,0.92); }
.card-tint-ink .body { color: rgba(255,255,255,0.88); }

/* Feature card — icon tile, serif heading, body */
.feature { position: relative; display: flex; flex-direction: column; gap: 16px; }
.feature .body { flex: 1; }

/* Circular icon tiles */
.itile { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.itile svg { width: 24px; height: 24px; }
.itile-action { background: var(--wisteria);  color: var(--action); }
.itile-teal   { background: var(--teal);      color: var(--white); }
.itile-mist   { background: var(--mist);      color: var(--teal); }
.itile-white  { background: var(--white);     color: var(--ink); }
.itile-glass  { background: rgba(255,255,255,0.20); color: var(--white); }

/* ============================================================================
   PHOTO FRAMES
   ========================================================================== */

.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 16 / 11; }

.photo-stack { position: relative; }
.photo-stack .float-card {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--white); border-radius: var(--r-card);
  padding: 22px 26px; box-shadow: var(--sh-lg); max-width: 268px;
}
.float-card .float-k {
  font-family: var(--serif); font-size: 1.875rem; line-height: 1; color: var(--ink); margin-bottom: 8px;
}
.float-card .float-k em { font-style: normal; color: var(--action); }

/* ============================================================================
   STATS — on the gradient network band
   ========================================================================== */

.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,0.24); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--white); margin-bottom: 10px;
}
.stat-num em { font-style: normal; color: var(--lavender); }
.stat-label { font-size: 0.875rem; line-height: 1.45; color: rgba(255,255,255,0.85); }

/* ============================================================================
   NUMBERED EDITORIAL CARDS — therapeutic areas
   ========================================================================== */

.numcard {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--ink-09);
  border-radius: var(--r-card); padding: 28px 26px 26px;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.numcard:hover { border-color: var(--lavender); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.numcard .n {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  color: var(--action); display: block; margin-bottom: 16px;
}
.numcard .h4 { margin-bottom: 8px; }
.numcard:nth-child(4n+2) .n { color: var(--teal); }
.numcard:nth-child(4n+3) .n { color: var(--periwinkle); }
.numcard:nth-child(4n+4) .n { color: var(--royal); }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--wisteria); border-radius: var(--r-card);
  padding: 22px 28px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-70);
}
.callout strong { color: var(--ink); font-weight: 600; }
.callout a { color: var(--action); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(160,60,245,0.35); }
.callout a:hover { border-bottom-color: var(--action); }

/* ============================================================================
   BANDS
   ========================================================================== */

.gradient-band {
  position: relative; isolation: isolate;
  border-radius: var(--r-lg);
  background: linear-gradient(121deg, #0e7874 0%, #a03cf5 52%, #2b1053 100%);
  padding: 64px 56px;
  box-shadow: var(--sh-xl);
}
.gradient-band::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(43, 16, 83, 0.12); z-index: -1;
}

.ink-band { border-radius: var(--r-lg); background: var(--ink); padding: 72px 56px; }

/* ============================================================================
   AUDIENCE PANES
   ========================================================================== */

.pane { display: flex; flex-direction: column; gap: 16px; padding: 44px; border-radius: var(--r-lg); }
.pane .kicker {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--action);
}
.pane-ink { background: var(--ink); color: var(--white); }
.pane-ink .kicker { color: var(--lavender); }
.pane-ink .h3 { color: var(--white); }
.pane-ink .body { color: rgba(255,255,255,0.88); }
.pane-white { background: var(--white); border: 1px solid var(--ink-09); }
.pane .btn-row { margin-top: 8px; }

/* ============================================================================
   FOOTER
   ========================================================================== */

.footer { background: var(--ink); color: rgba(255,255,255,0.74); padding: 76px 0 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.16);
}
.footer .brand-logo { height: 42px; }
.footer-blurb { font-size: 0.9375rem; line-height: 1.62; margin-top: 20px; max-width: 380px; }
.footer-col h5 {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.9375rem; color: rgba(255,255,255,0.70); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 26px; font-size: 0.8125rem; color: rgba(255,255,255,0.55);
}

/* ============================================================================
   REVEAL
   ========================================================================== */

[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .orb, .dot { animation: none !important; transform: none !important; will-change: auto; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .orb-a { left: -5%; } .orb-b { right: -4%; }
  .dot-a, .dot-b, .dot-c { display: none; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav { margin-left: auto; }
  .nav-actions .btn { display: none; }
  .orbs { display: none; }
  .hero { padding: 150px 0 68px; }
  .split, .split-standard { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gradient-band, .ink-band { padding: 52px 32px; }
  .photo-stack .float-card { left: 0; bottom: -20px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  section { padding: 68px 0; }
  .hero { padding: 130px 0 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .card-lg, .card-xl { padding: 28px; }
  .pane { padding: 30px; }
  .gradient-band, .ink-band { padding: 38px 24px; border-radius: var(--r-card); }
  .section-head { margin-bottom: 38px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .btn-row { flex-direction: column; }
  .nav-drawer .btn { width: 100%; }
}

@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .brand-logo { height: 31px; }
}

/* ============================================================================
   INTERIOR PAGE HERO — compact, with breadcrumb
   ========================================================================== */

.hero-sub { position: relative; padding: 168px 0 62px; overflow: hidden; }
.hero-sub::before {
  content: ''; position: absolute; z-index: 0;
  top: -320px; right: -160px; width: 900px; height: 820px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(160,60,245,0.13) 0%, rgba(160,60,245,0) 62%);
}
.hero-sub .wrap { position: relative; z-index: 2; }
.hero-sub .h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em;
                font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1.07; color: var(--ink);
                margin: 20px 0 18px; max-width: 900px; }
.hero-sub .h1 em { font-style: italic; }
.hero-sub .lead { max-width: 720px; }
.hero-sub .btn-row { margin-top: 30px; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--ink-55); margin-bottom: 20px; }
.crumbs a { color: var(--ink-55); text-decoration: none; }
.crumbs a:hover { color: var(--action); }
.crumbs span { opacity: 0.5; }

/* ============================================================================
   SOFT SECTION — a second surface between cream and white
   ========================================================================== */

.section-soft { background: #f2ebe0; }
.section-soft .card { box-shadow: var(--sh-sm); }

/* ============================================================================
   CHECK LISTS
   ========================================================================== */

.ticks { display: grid; gap: 13px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-70); }
.ticks li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.ticks-teal li::before { background-color: var(--teal); }
.on-dark .ticks li { color: rgba(255,255,255,0.94); }
.on-dark .ticks li::before { background-color: var(--lavender);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1053' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.ticks-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 32px; }

/* Cross list — the "typical site" column of the comparison */
.crosses { display: grid; gap: 13px; }
.crosses li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-70); }
.crosses li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--ink-14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1053' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

/* ============================================================================
   COMPARISON — typical site vs Premier Health
   ========================================================================== */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.compare > * { min-width: 0; }
.compare-label {
  display: inline-flex; align-items: center; padding: 7px 18px; border-radius: var(--r-pill);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.compare-label-old { background: var(--cream); color: var(--ink-55); border: 1px solid var(--ink-09); }
.compare-label-new { background: rgba(255,255,255,0.18); color: var(--white); }
.compare .h3 { margin-bottom: 20px; }

/* ============================================================================
   NUMBERED PILLAR ROWS
   ========================================================================== */

.numrow { display: flex; gap: 20px; align-items: flex-start; }
.numrow-n {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wisteria); color: var(--action);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1;
}
.card-tint-royal .numrow-n, .card-tint-teal .numrow-n, .card-tint-ink .numrow-n {
  background: rgba(255,255,255,0.18); color: var(--white);
}
.numrow .h3 { margin-bottom: 8px; }

/* ============================================================================
   PROCESS FLOW
   ========================================================================== */

.flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; }
.flow-step {
  flex: 1 1 110px; min-width: 108px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-card); padding: 20px 14px;
}
.flow-step .n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lavender); color: var(--ink);
  font-family: var(--serif); font-size: 0.9375rem; line-height: 1;
}
.flow-step strong { font-size: 0.875rem; font-weight: 500; color: var(--white); line-height: 1.35; }

/* ============================================================================
   PILLS
   ========================================================================== */

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: var(--r-pill); background: var(--white);
  border: 1px solid var(--ink-09); box-shadow: var(--sh-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
}

/* ============================================================================
   LOCATION CARDS
   ========================================================================== */

.loc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--ink-09); border-radius: var(--r-card);
  padding: 28px; text-decoration: none; color: inherit; box-shadow: none;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
a.loc-card:hover { border-color: var(--lavender); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.loc-card .pin {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wisteria); color: var(--action); margin-bottom: 4px;
}
.loc-card .pin svg { width: 21px; height: 21px; }
.loc-badge {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-55);
}
.loc-card .h3 { font-size: 1.25rem; }
.loc-card .addr { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-70); flex: 1; }
.loc-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--action);
  transition: gap 0.22s ease;
}
a.loc-card:hover .loc-link { gap: 11px; }
.loc-link svg { width: 15px; height: 15px; }

.stack { display: grid; gap: 20px; }

/* ============================================================================
   FORMS
   ========================================================================== */

.form-card { background: var(--white); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh-md); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--action); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.9375rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--ink-14);
  border-radius: var(--r-pill); padding: 14px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { border-radius: var(--r-lg); min-height: 130px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: rgba(43,16,83,0.38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(160, 60, 245, 0.16);
}
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1053' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 16px;
  padding-right: 44px;
}
.field-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; }
.field-consent input { width: auto; margin-top: 4px; flex: none; }
.field-consent label { font-size: 0.875rem; line-height: 1.5; color: var(--ink-70); font-weight: 400; }
.field-consent a { color: var(--action); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

.form-note {
  margin-top: 16px; padding: 15px 20px; border-radius: var(--r-card);
  background: var(--cream); font-size: 0.8125rem; line-height: 1.55; color: var(--ink-70);
}
.form-note a { color: var(--action); }

.form-success, .form-error {
  display: none; margin-bottom: 22px; padding: 16px 20px;
  border-radius: var(--r-card); font-size: 0.9375rem; line-height: 1.5;
}
.form-success { background: var(--mist); color: #0b5b58; }
.form-error   { background: #fdeaea; color: #8f2222; }

.form-card .btn[type="submit"] { margin-top: 6px; }

/* ============================================================================
   RESPONSIVE — interior components
   ========================================================================== */

@media (max-width: 1080px) {
  .compare { grid-template-columns: 1fr; }
  .ticks-2col { grid-template-columns: 1fr; }
  .hero-sub { padding: 144px 0 54px; }
}

@media (max-width: 720px) {
  .hero-sub { padding: 126px 0 48px; }
  .form-card { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .flow-step { flex: 1 1 100%; flex-direction: row; justify-content: flex-start; text-align: left; }
  .loc-card { padding: 24px; }
  .numrow { gap: 16px; }
  .field-consent { flex-direction: row; }
  .form-card .btn { width: 100%; }
}

/* ============================================================================
   DARK SURFACES — text defaults
   Tinted cards must carry their own light-on-dark rules; relying on an
   `on-dark` class alongside them is easy to forget and fails silently
   (plum text on a plum card).
   ========================================================================== */

.card-tint-ink, .card-tint-royal, .card-tint-teal { color: var(--white); }

.card-tint-ink .body-sm, .card-tint-royal .body-sm, .card-tint-teal .body-sm,
.card-tint-ink .lead,    .card-tint-royal .lead,    .card-tint-teal .lead {
  color: rgba(255, 255, 255, 0.90);
}

.card-tint-ink .ticks li, .card-tint-royal .ticks li, .card-tint-teal .ticks li,
.card-tint-ink .crosses li, .card-tint-royal .crosses li, .card-tint-teal .crosses li {
  color: rgba(255, 255, 255, 0.94);
}
.card-tint-ink .ticks li::before,
.card-tint-royal .ticks li::before,
.card-tint-teal .ticks li::before {
  background-color: var(--lavender);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1053' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.card-tint-ink .loc-badge, .card-tint-royal .loc-badge, .card-tint-teal .loc-badge {
  color: rgba(255, 255, 255, 0.72);
}
.card-tint-ink .form-note, .card-tint-royal .form-note, .card-tint-teal .form-note {
  background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.88);
}

/* ============================================================================
   CONTRAST CORRECTIONS
   Breadcrumbs and the active nav pill both landed under 4.5:1 for small text
   at their inherited tints. Darkened to clear WCAG AA.
   ========================================================================== */

.crumbs, .crumbs a { color: var(--ink-70); }
.nav-links a.active { color: var(--royal); background: var(--wisteria); }

/* Inline links and labels sitting on tinted surfaces need the darker violet;
   the bright action violet only clears AA against pure white. */
.callout a, .form-note a, .field-consent a { color: var(--action-dk); }
.numrow-n { color: var(--royal); }
.loc-badge { color: var(--ink-70); }
.compare-label-old { color: var(--ink-70); }
.compare-label-new { background: var(--white); color: var(--teal); }
