/* =========================================================
   PulseCare360 — public site styles
   Colors below are defaults; the CMS (Admin → Settings → Brand) overrides them.
   Sections are grouped with headers so each part can be edited on its own.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: only light;
  --primary: #1A8079;      /* care teal: buttons, links */
  --accent: #EE6A4A;       /* heartbeat coral: the pulse line, alerts */
  --ink: #0A2459;          /* deep clinical blue: text, dark bands */
  --soft: #DFF2EF;         /* calm mint surfaces */
  --bg: #F4F8F9;           /* cool paper */
  --white: #fff;
  --line: #D3E1E5;
  --muted: #4B6274;
  --amber: #F5B53F;
  --ok: #1E9E6A;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-photo: 28px;
  --r-card: 18px;
  --r-input: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 12px 32px -12px rgba(15, 42, 61, .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, .h1 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1, .h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section + .section:not(.tinted):not(.cta-band) { padding-top: calc(var(--section) * .5); }
.tinted { background: var(--white); border-block: 1px solid var(--line); }
.section-title { max-width: 22ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.kicker { font-weight: 700; color: var(--primary); margin-bottom: .6em; }
.h-small { font-size: 1.15rem; margin-top: 1.5em; }

/* ---------- 3. Buttons & small UI ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; background: var(--b); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--b); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em 1.1em; font-size: 1rem; }
.btn-lg { padding: .95em 1.7em; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-on-dark { --b: var(--accent); }
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic.sm { width: 1em; height: 1em; }
.notice { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--r-input); border: 1px solid; font-weight: 700; }
.notice-success { background: #E6F6EF; border-color: #A7DCC3; color: #0F5A3C; }
.notice-error { background: #FDECEC; border-color: #F3B4B6; color: #8A1F24; }
.notice-info { background: var(--soft); border-color: #A9D8D1; }

.checks { list-style: none; display: grid; gap: 10px; margin: 1.2em 0 1.6em; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--primary); margin-top: .2em; background: var(--soft); border-radius: 50%; padding: 3px; width: 1.4em; height: 1.4em; }
.dashes { list-style: none; display: grid; gap: 6px; }
.dashes li::before { content: "–"; color: var(--muted); margin-right: 8px; }
.num-list { padding-left: 1.4em; display: grid; gap: 8px; }
.num-list li::marker { font-family: var(--display); font-weight: 700; color: var(--primary); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; }
.footnote { margin-top: 28px; font-size: .95rem; color: var(--muted); max-width: 80ch; padding-left: 14px; border-left: 3px solid var(--amber); }

/* ---------- 4. Header & navigation ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .95rem; text-align: center; }
.topbar a { color: #fff; display: block; padding: 8px 0; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 248, 249, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,42,61,.4); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img, .brand .logo-img { height: 54px; width: auto; }
.footer-brand .brand img { height: 50px; }
@media (max-width: 560px) { .brand img { height: 44px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-light { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .dd > button { font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .dd > button:hover, .dd.open > button { background: var(--white); }
.main-nav > a.on, .dd > button.on { color: var(--primary); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.dd-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 580px; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-panel a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.dd-panel a:hover { background: var(--bg); }
.dd-panel strong { display: block; font-size: 1rem; }
.dd-panel span { display: block; font-size: .9rem; color: var(--muted); }
.dd-head { font-size: .85rem; font-weight: 700; color: var(--muted); padding: 8px 12px 2px; margin: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.portal-link { background: none; border: 0; cursor: pointer; font: inherit; padding: 10px 8px; border-radius: 10px; white-space: nowrap; }
.portal-link:hover, .dd-portal.open .portal-link { background: var(--white); }
.header-actions .btn, .main-nav > a, .dd > button { white-space: nowrap; }
.header-row { gap: 16px; }
@media (max-width: 1320px) and (min-width: 1081px) {
  .main-nav > a, .dd > button { padding: 10px 8px; font-size: .95rem; }
  .header-actions .btn-sm { display: none; }
}
.dd-panel.dd-right { left: auto; right: 0; transform: translate(0, 6px); min-width: 260px; }
.dd.open .dd-panel.dd-right { transform: none; }
.pm-link { display: flex !important; align-items: center; gap: 10px; }
.pm-link .ic { color: var(--primary); }
.dd-panel .dd-head + .pm-link { margin-top: 2px; }
.dd-panel .pm-link + .dd-head { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.portal-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1rem; }
.portal-link:hover { color: var(--primary); }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-actions-mobile { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn, .header-actions .dd-portal { display: none; }
  .dd-portal-m > button { border: 1.5px solid var(--line) !important; border-radius: 999px !important; justify-content: center !important; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--white); flex-direction: column; align-items: stretch; padding: 128px 20px 32px; gap: 2px; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; overflow-y: auto; height: 100dvh; box-shadow: -20px 0 40px -20px rgba(15,42,61,.3); z-index: 60; }
  .main-nav.open { transform: none; visibility: visible; }
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); z-index: 70; }
  .main-nav > a, .dd > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.1rem; }
  .dd-panel, .dd-wide { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; }
  .dd.open .dd-panel { display: block; transform: none; }
  .nav-actions-mobile { display: grid; gap: 10px; margin-top: 20px; }
  .nav-actions-mobile .btn { justify-content: center; }
  .nav-toggle[aria-expanded="true"] { position: relative; z-index: 61; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,42,61,.4); z-index: 55; }
}

/* ---------- 5. Home hero (slider + vitals strip) ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-slide h1, .hero-slide .h1 { max-width: 13ch; }
.hero-dots { display: flex; gap: 8px; margin-top: 28px; }
.hero-dots button { width: 48px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.hero-dots span { display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.hero-dots .on span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: dotfill var(--dot-time, 6.5s) linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-media { position: relative; aspect-ratio: 5 / 5.4; border-radius: 220px 220px var(--r-photo) var(--r-photo); overflow: hidden; background: var(--soft); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 6s ease; }
.hero-img.is-active { opacity: 1; transform: scale(1); }
.reading-chips { position: absolute; left: 16px; bottom: 16px; right: 16px; list-style: none; display: grid; gap: 8px; justify-items: start; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); animation: chipin .5s ease forwards; }
.chip:nth-child(1) { animation-delay: 1.2s; } .chip:nth-child(2) { animation-delay: 1.9s; } .chip:nth-child(3) { animation-delay: 2.6s; }
.chip.ok .ic { color: var(--ok); } .chip.alert .ic { color: var(--accent); }
@keyframes chipin { to { opacity: 1; transform: none; } }
.vitals-strip { margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: #CFE0E8; padding: 18px 0 14px; }
.ecg { width: 100%; height: 90px; }
.ecg-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.ecg-trace { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: trace 4.5s ease-out .3s forwards, glow 2.2s ease-in-out 4.8s infinite; filter: drop-shadow(0 0 6px rgba(238, 106, 74, .5)); }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes glow { 50% { opacity: .55; } }
.strip-caption { display: flex; align-items: center; gap: 10px; margin: 6px auto 0; font-size: .95rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(238,106,74,.6); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(238,106,74,0); } 100% { box-shadow: 0 0 0 0 rgba(238,106,74,0); } }

/* ---------- 6. Inner page hero ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.page-hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero.has-media .page-hero-grid { grid-template-columns: 1.1fr 1fr; }
.page-hero h1 { max-width: 16ch; }
.page-hero-media { position: relative; }
.page-hero-media > img, .video-frame { border-radius: var(--r-photo) 140px var(--r-photo) var(--r-photo); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.pulse-line { position: absolute; left: -6%; right: -6%; bottom: -14px; width: 112%; height: 44px; pointer-events: none; }
.pulse-line path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 2.4s ease-out .4s forwards; }
.badge-note { display: inline-flex; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--primary); }
.helper { margin-top: 18px; color: var(--muted); font-style: italic; }
.video-frame { position: relative; overflow: hidden; }
.video-frame img, .video-frame iframe, .video-frame video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(238,106,74,.25); transition: transform .2s; }
.play:hover { transform: scale(1.06); }
.play .ic { width: 32px; height: 32px; margin-left: 4px; }

/* ---------- 7. Audience tabs ---------- */
.tab-list { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 36px; }
.tab-list button { font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; animation: panelin .45s ease; }
.tab-panel[hidden] { display: none; }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } }
.tab-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tab-media img { border-radius: var(--r-photo); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- 8. Highlights tiles ---------- */
.tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.tile { position: relative; margin: 0; border-radius: var(--r-photo); overflow: hidden; min-height: 320px; background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; background: linear-gradient(transparent, rgba(15,42,61,.88)); }
.tile strong { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-weight: 800; }
.tile span { font-weight: 700; }

/* ---------- 9. Programs ribbon ---------- */
.program-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.program-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.program-card.is-current { border-color: var(--primary); }
.program-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program-card:hover .program-img img { transform: scale(1.05); }
.program-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.program-body .code { align-self: flex-start; font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.program-body h3 { margin-top: 4px; }
.program-body p { color: var(--muted); font-size: 1rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }

/* ---------- 10. Why lists, roadmap, team ---------- */
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-list { list-style: none; display: grid; gap: 28px; }
.why-list.two { grid-template-columns: 1fr 1fr; }
.why-list.three { grid-template-columns: repeat(3, 1fr); }
.why-list li { display: flex; gap: 18px; }
.why-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--primary); display: grid; place-items: center; }
.why-list p { color: var(--muted); margin: 0; }
.mission .statement { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card img { border-radius: var(--r-photo); aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 18px; background: var(--soft); }
.team-card .role, .leader .role { color: var(--primary); font-weight: 700; }
.team-card p:last-child { color: var(--muted); }
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; position: relative; }
.roadmap::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.roadmap li { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; border: 6px solid var(--bg); }
.roadmap p { color: var(--muted); font-size: 1rem; }

/* ---------- 11. Providers: outcomes, tables, plans ---------- */
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.outcome { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; border-top: 4px solid var(--accent); }
.outcome h3 { font-size: 1.05rem; color: var(--muted); }
.figure { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.figure strong { font-family: var(--display); font-size: 3.2rem; line-height: 1; font-weight: 800; }
.figure span { font-weight: 700; color: var(--muted); }
.figure-label { font-weight: 700; margin: 8px 0 14px; }
.outcome ul { padding-left: 1.1em; color: var(--muted); font-size: 1rem; display: grid; gap: 6px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); background: var(--ink); color: #fff; font-size: 1.05rem; }
.compare thead th:last-child { background: var(--primary); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 700; width: 32%; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.plan-featured { border: 2px solid var(--primary); }
.plan h4 { font-size: 1rem; color: var(--muted); margin-top: 1.4em; }
.center-note { margin: 28px auto; text-align: center; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choose-card { display: block; padding: 28px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.choose-card:hover { border-color: var(--primary); color: var(--ink); }
.choose-card ul { padding-left: 1.1em; margin-bottom: 16px; color: var(--muted); }

/* ---------- 12. Patient program pages ---------- */
.program-switch { margin-bottom: 24px; }
.program-switch > p:first-child { font-weight: 700; }
.program-switch ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.program-switch a { display: block; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.program-switch a strong { display: block; font-family: var(--display); color: var(--accent); }
.program-switch a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plain-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.plain-grid p { max-width: 64ch; }
.in-short { position: sticky; top: 110px; background: var(--ink); color: #fff; border-radius: var(--r-photo); padding: 32px; }
.in-short p:last-child { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; margin: 0; }
.in-short-label { color: var(--accent); font-weight: 700; }
.month-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.month-steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; }
.month-steps li.yours { background: var(--accent); border-color: var(--accent); color: #fff; }
.month-steps li.yours h3 { color: #fff; }
.month-steps .who { font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--primary); align-self: flex-start; }
.month-steps .yours .who { background: rgba(255,255,255,.2); color: #fff; }
.month-steps .when { font-weight: 700; margin: 14px 0 6px; font-size: .95rem; opacity: .8; }
.month-steps p { font-size: 1rem; margin: 0; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 700; }
.assure li { display: flex; gap: 8px; align-items: center; }
.assure .ic { color: var(--primary); }
.emergency { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 14px 18px; background: #FDECEC; border-radius: var(--r-input); font-weight: 700; color: #8A1F24; }

/* ---------- 13. Sliders (stories) ---------- */
.slider { position: relative; }
.stories { overflow: hidden; }
.stories .slider-track { display: grid; }
.stories .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .5s, transform .5s, visibility .5s; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-photo); padding: clamp(24px, 4vw, 48px); }
.stories .slide.is-active { opacity: 1; visibility: visible; transform: none; }
.stories .slide img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; }
.stories blockquote { margin: 0; }
.stories h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.stories blockquote p { color: var(--muted); max-width: 70ch; }
.slider-ui { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { border-color: var(--ink); }
.slider-count { margin: 0; font-weight: 700; min-width: 4.5em; text-align: center; }

/* ---------- 14. Veterans stages ---------- */
.stage-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.stage-list button { font: inherit; font-weight: 700; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.stage-list button span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--soft); color: var(--primary); font-family: var(--display); }
.stage-list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-list button[aria-selected="true"] span { background: var(--accent); color: #fff; }
.stage { grid-template-columns: 1fr 1fr; }
.stage img { border-radius: var(--r-photo); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.vet-end { background: var(--ink); }
.vet-end h2, .vet-end .lead { color: #fff; margin-inline: auto; }

/* ---------- 15. Product pages ---------- */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.leader img { border-radius: 170px 170px var(--r-photo) var(--r-photo); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--soft); }
.benefit-row { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 40px; }
.benefit-row.three { grid-template-columns: repeat(3, 1fr); margin: 0; }
.benefit-row li { padding: 22px; background: var(--white); border-radius: var(--r-card); border: 1px solid var(--line); }
.benefit-row h3 { font-size: 1.1rem; }
.benefit-row p { color: var(--muted); font-size: 1rem; margin: 0; }
.turnkey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.turnkey article { padding: 28px; border-radius: var(--r-card); background: var(--ink); color: #DCE8EE; }
.turnkey h3 { color: #fff; }
.turnkey .num-list li::marker { color: var(--accent); }
.def-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.def-grid > div { padding: 20px 0; border-top: 1px solid var(--line); }
.def-grid dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.def-grid dt .ic { color: var(--primary); }
.def-grid dd { margin: 6px 0 0; color: var(--muted); }
.two-lists { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.marquee { overflow: hidden; margin-top: 56px; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "+"; color: var(--accent); margin-left: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-input); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,128,121,.15); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--muted); }
.form .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-photo); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.inquiry-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-line { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info dl { display: grid; gap: 22px; margin: 0; }
.contact-info dt { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--primary); }
.contact-info dd { margin: 4px 0 0; }
.meeting-type { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meeting-type legend { font-weight: 700; margin-bottom: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; }
.opt strong { display: block; font-family: var(--display); font-size: 1.2rem; }
.opt input:checked + span { border-color: var(--primary); background: var(--soft); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head button { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; color: var(--ink); }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { font: inherit; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 2px; cursor: pointer; text-align: center; color: var(--ink); line-height: 1.2; }
.cal-day small { display: block; font-size: .78rem; color: var(--muted); }
.cal-day b { font-family: var(--display); font-size: 1.15rem; }
.cal-day:disabled { opacity: .35; cursor: not-allowed; }
.cal-day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-day.on small { color: #cfe0e8; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 48px; align-items: center; }
.cal-slots button { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; }
.cal-slots button.on, .cal-slots button:hover { background: var(--primary); color: #fff; }
.picked { font-weight: 700; padding: 12px 16px; background: var(--soft); border-radius: 12px; }
.sms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sms-terms dl { margin: 0; display: grid; gap: 14px; }
.sms-terms dt { font-weight: 700; }
.sms-terms dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- 17. Blog & articles ---------- */
.blog-search { display: flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; margin-bottom: 24px; }
.blog-search input { flex: 1; border: 0; font: inherit; background: none; padding: 8px 0; min-width: 0; }
.blog-search input:focus { outline: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; max-height: 92px; overflow: hidden; position: relative; }
.tag-cloud.expanded { max-height: none; }
.tag-cloud a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 700; }
.tag-cloud a.on, .tag-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-cloud small { opacity: .6; }
.tag-more { margin: -20px 0 28px; }
.result-note { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.post-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .6s ease; background: var(--soft); }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-img { overflow: hidden; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--primary); }
.post-body > p:not(.tags):not(.meta) { color: var(--muted); font-size: 1rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tags a { font-size: .85rem; font-weight: 700; color: var(--primary); background: var(--soft); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.meta { color: var(--muted); font-size: .95rem; margin: 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 700; color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; }
.empty { text-align: center; padding: 48px 0; }
.article-head { padding-top: clamp(40px, 6vw, 80px); }
.article-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.crumbs a { font-weight: 700; text-decoration: none; }
.article-img { margin: 32px auto; }
.article-img img { border-radius: var(--r-photo); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--soft); }
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-card); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--display); font-size: 1.3rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.article-foot { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share > span { display: flex; gap: 6px; align-items: center; font-weight: 700; margin-right: 4px; }
.share a, .copy-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.copy-link { width: auto; border-radius: 999px; padding: 0 14px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.share a:hover { background: var(--ink); color: #fff; }

/* ---------- 18. FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 110px; display: grid; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.faq-nav a:hover { background: var(--white); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.6rem; }
.faq-wrap { max-width: 900px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; color: var(--primary); }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq-a { padding: 0 0 20px; color: var(--muted); max-width: 72ch; }

/* ---------- 19. Closing CTA band & social strip ---------- */
.cta-band { background: var(--ink); color: #DCE8EE; padding-block: clamp(56px, 8vw, 96px); }
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 54ch; }
.cta-visual img { border-radius: var(--r-photo); }
.cta-ecg .trace { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.cta-band.in-view .cta-ecg .trace { animation: trace 2.4s ease-out forwards; }
.cta-ecg .dot { fill: var(--accent); opacity: 0; }
.cta-band.in-view .cta-ecg .dot { animation: chipin .3s 2.3s forwards, ping 1.6s 2.6s infinite; }
.social-strip { background: var(--white); border-top: 1px solid var(--line); padding-block: 40px; }
.social-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.social-row h2 { font-size: 1.5rem; margin-bottom: .2em; }
.social-row p { margin: 0; color: var(--muted); }
.social-big { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social-big a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: background .2s, color .2s; }
.social-big a:hover { background: var(--ink); color: #fff; }

/* ---------- 20. Footer ---------- */
.site-footer { background: #071A40; color: #B9C7DD; padding-top: 64px; font-size: 1rem; }
.site-footer a { color: #DCE8EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.4fr; gap: 32px; }
.footer-brand p { margin: 18px 0; max-width: 40ch; }
.f-title { font-family: var(--display); color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--accent); text-decoration: none; }
.badges { display: flex; gap: 12px; margin-top: 18px; }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.footer-bottom p { margin: 0; }
.slogan { font-family: var(--display); color: #fff; }

/* ---------- 21. 404 ---------- */
.flatline { width: 300px; margin: 0 auto 24px; }
.flatline path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.not-found .actions { justify-content: center; }

/* ---------- 22. Count-up & reveal (subtle, only where marked) ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  .program-ribbon, .outcome-grid, .month-steps { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .roadmap li { padding-left: 76px; padding-bottom: 20px; }
  .roadmap .step-n { position: absolute; left: 0; top: 0; }
  .benefit-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stage-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 1.0625rem; }
  .hero-grid, .page-hero.has-media .page-hero-grid, .tab-panel, .why-grid, .plain-grid, .inquiry-grid, .contact-grid, .sms-grid, .cta-grid, .two-lists, .leader, .stage, .faq-layout { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3.4; border-radius: 140px 140px var(--r-photo) var(--r-photo); }
  .tiles, .team-grid, .post-grid, .turnkey, .plans, .choose, .why-list.three, .benefit-row.three { grid-template-columns: 1fr; }
  .tile { min-height: 240px; }
  .why-list.two, .def-grid { grid-template-columns: 1fr; }
  .program-switch ul { grid-template-columns: repeat(2, 1fr); }
  .in-short, .faq-nav { position: static; }
  .faq-nav { display: flex; flex-wrap: wrap; }
  .stories .slide { grid-template-columns: 1fr; }
  .stories .slide img { width: 120px; height: 120px; }
  .leader img { max-width: 320px; }
  .cta-visual { display: none; }
  .tab-list { border-radius: 18px; }
}
@media (max-width: 560px) {
  .program-ribbon, .outcome-grid, .month-steps, .benefit-row, .grid-2, .meeting-type { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .tab-list { display: grid; width: 100%; }
  .cal-days { grid-template-columns: repeat(4, 1fr); }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare th, .compare td { display: block; border: 0; padding: 6px 16px; width: auto !important; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--primary); }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 24. Motion layer ----------
   Everything here is decoration. Content is fully visible without JavaScript.
   JS adds .anim to <html>, then .rv to elements it reveals on scroll. */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 100; pointer-events: none; }

/* Header gets compact once you scroll */
.header-row { transition: min-height .3s ease; }
.site-header.scrolled .header-row { min-height: 64px; }
.brand img, .brand .logo-img { transition: height .3s ease; }
.site-header.scrolled .brand img { height: 46px; }

/* Living background behind hero areas: slow drifting colour blobs */
.hero, .page-hero { position: relative; isolation: isolate; overflow: clip; }
.hero::before, .hero::after, .page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero::before, .page-hero::before { width: 520px; height: 520px; background: color-mix(in srgb, var(--primary) 30%, transparent); top: -160px; left: -140px; animation: drift1 18s ease-in-out infinite alternate; }
.hero::after, .page-hero::after { width: 420px; height: 420px; background: color-mix(in srgb, var(--accent) 26%, transparent); bottom: -120px; right: -80px; animation: drift2 22s ease-in-out infinite alternate; }
.page-hero.tone-dark::before, .page-hero.tone-dark::after { opacity: .3; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, -70px) scale(1.2); } }

/* Hero text entrance — replays on every slide change */
.hero-slide.is-active > *, .page-hero-copy > * { animation: riseIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.is-active > *:nth-child(2), .page-hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-slide.is-active > *:nth-child(3), .page-hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-slide.is-active > *:nth-child(4), .page-hero-copy > *:nth-child(4) { animation-delay: .36s; }
.hero-slide.is-active > *:nth-child(5), .page-hero-copy > *:nth-child(5) { animation-delay: .48s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } }

/* Hero image: wipe-in on load, then a gentle float */
.hero-media, .page-hero-media > img, .page-hero-media > .video-frame { animation: wipeIn 1.1s cubic-bezier(.6,0,.2,1) .15s both; }
@keyframes wipeIn { from { clip-path: inset(0 0 100% 0 round 28px); } to { clip-path: inset(0 0 0 0 round 0); } }
.hero-media { animation: wipeIn 1.1s cubic-bezier(.6,0,.2,1) .15s both, floaty 7s ease-in-out 1.4s infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.chip { animation: chipin .5s ease forwards, bob 4s ease-in-out infinite; }
.chip:nth-child(1) { animation-delay: 1.2s, 1.7s; } .chip:nth-child(2) { animation-delay: 1.9s, 2.4s; } .chip:nth-child(3) { animation-delay: 2.6s, 3.1s; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* Scroll reveal */
.anim .rv { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.anim .rv.rv-left { transform: translateX(-40px); }
.anim .rv.rv-right { transform: translateX(40px); }
.anim .rv.rv-zoom { transform: scale(.92); }
.anim .rv.in-view { opacity: 1; transform: none; }

/* Cards lift on hover */
.program-card, .post-card, .team-card, .outcome, .plan, .choose-card, .benefit-row li, .month-steps li, .turnkey article, .tile, .stat, .story { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .2s; }
.program-card:hover, .post-card:hover, .outcome:hover, .plan:hover, .choose-card:hover, .benefit-row li:hover, .month-steps li:hover, .turnkey article:hover { transform: translateY(-8px); box-shadow: 0 22px 40px -22px rgba(10, 36, 89, .35); }
.team-card img, .tab-media img, .stage img, .leader img { transition: transform .6s ease; }
.team-card:hover img, .tab-media:hover img, .stage:hover img { transform: scale(1.03) rotate(-.4deg); }
.why-ic { transition: transform .35s ease, background .3s, color .3s; }
.why-list li:hover .why-ic { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: #fff; }

/* Slow zoom on highlight photos */
.tile img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, -2%); } }

/* Buttons: light sweep + arrow nudge */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.more .ic { transition: transform .25s ease; }
a:hover .more .ic, .more:hover .ic { transform: translateX(5px); }
.btn-lg:not(.btn-ghost):not(.btn-outline-light) { animation: softPulse 3.2s ease-in-out 2s infinite; }
@keyframes softPulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 35% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 0%, transparent); } }

/* Section headings get an animated underline when revealed */
.section-title { position: relative; }
.anim .section-title.rv::after { content: ""; position: absolute; left: 0; bottom: -10px; height: 4px; width: 64px; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1) .35s; }
.anim .section-title.rv.in-view::after { transform: scaleX(1); }
.center .section-title.rv::after, .vet-end .section-title.rv::after { left: 50%; margin-left: -32px; }

/* Roadmap steps pop in sequence */
.anim .roadmap li.rv .step-n { transform: scale(.4); transition: transform .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .2s); }
.anim .roadmap li.rv.in-view .step-n { transform: none; }

/* FAQ answer slides open */
.faq[open] .faq-a { animation: riseIn .4s ease both; }

/* Tab panels slide sideways */
.tab-panel:not([hidden]) .tab-media img, .stage:not([hidden]) img { animation: wipeIn .9s cubic-bezier(.6,0,.2,1) both; }

/* Respect “reduce motion”: keep gentle fades, drop movement and loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after, .tile img, .marquee-track, .btn-lg, .live-dot, .hero-media, .chip, .ecg-trace { animation-iteration-count: 1 !important; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after, .tile img, .marquee-track { animation: none !important; }
  .hero-media { animation: none !important; }
  .chip { animation: chipin .4s ease forwards !important; }
  .hero-slide.is-active > *, .page-hero-copy > * { animation-name: fadeOnly !important; }
  .anim .rv, .anim .rv.rv-left, .anim .rv.rv-right, .anim .rv.rv-zoom { transform: none !important; }
  .program-card:hover, .post-card:hover, .outcome:hover, .plan:hover, .choose-card:hover, .benefit-row li:hover, .month-steps li:hover, .turnkey article:hover { transform: none; }
  .ecg-trace, .pulse-line path, .cta-ecg .trace { stroke-dashoffset: 0 !important; animation: none !important; }
}
@keyframes fadeOnly { from { opacity: 0; } }

/* ---------- 25. HIPAA badge & popup ---------- */
.hipaa-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s, border-color .2s; }
.hipaa-badge .ic { color: #7FD8CF; }
.hipaa-badge:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.hipaa-modal { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px -20px rgba(10,36,89,.5); color: var(--ink); background: var(--white); }
.hipaa-modal::backdrop { background: rgba(10, 36, 89, .55); backdrop-filter: blur(3px); }
.hipaa-modal[open] { animation: riseIn .35s cubic-bezier(.2,.7,.2,1); }
.hm-inner { padding: clamp(24px, 5vw, 40px); position: relative; }
.hm-inner h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-top: 14px; padding-right: 30px; }
.hm-inner > p { color: var(--muted); }
.hm-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--primary); }
.hm-badge .ic { width: 28px; height: 28px; }
.hm-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.hm-close:hover { background: var(--bg); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.hm-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- 26. Reviews (moving rows on laptops, card stack on phones, write-a-review popup) ---------- */
.reviews-sec { overflow: hidden; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.rv-head .lead { margin-bottom: 0; max-width: 560px; }
.rv-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rv-score { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; margin: 0; }
.rv-score strong { grid-row: span 2; font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.rv-score small { color: var(--muted); font-size: .9rem; }
.stars { color: #F5A524; letter-spacing: 1px; font-size: 1rem; white-space: nowrap; }
.stars i, .stars span { color: var(--line); font-style: normal; }
.rv-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; width: 340px; flex: none; box-shadow: 0 10px 30px -24px rgba(10,36,89,.4); position: relative; }
.rv-card::after { content: "\201D"; position: absolute; right: 16px; bottom: -14px; font-family: var(--display); font-size: 4.4rem; line-height: 1; color: var(--soft); pointer-events: none; }
.rv-card figcaption { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.rv-card figcaption > span:not(.avatar):not(.stars) { flex: 1; min-width: 0; }
.rv-card figcaption .stars { align-self: flex-start; font-size: .9rem; }
.rv-card figcaption img, .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--ink)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.rv-card strong { display: block; font-size: .98rem; line-height: 1.2; }
.rv-card small { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card blockquote { margin: 0; font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 1; }

/* laptops: two rows drifting in opposite directions, pause on hover */
.rv-marquee { display: grid; gap: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-row { overflow: hidden; padding: 4px 0 10px; }
.rv-track { display: flex; gap: 18px; width: max-content; animation: rvScroll calc(var(--n) * 7s) linear infinite; }
.rv-rev .rv-track { animation-direction: reverse; }
.rv-marquee:hover .rv-track { animation-play-state: paused; }
.rv-track .rv-card { transition: transform .3s ease, box-shadow .3s ease; }
.rv-track .rv-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 18px 36px -22px rgba(10,36,89,.45); }
@keyframes rvScroll { to { transform: translateX(calc(-50% - 9px)); } }

/* phones: stacked cards that swipe */
.rv-stack-wrap { display: none; }
.rv-stack { position: relative; height: 196px; }
.rv-slide { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .5s ease; opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }
.rv-slide.is-out { opacity: 0; transform: translateX(-115%) rotate(-7deg); z-index: 4; transition: transform .55s cubic-bezier(.5,0,.75,0), opacity .45s ease .1s; }
.rv-slide.is-next .rv-card, .rv-slide.is-next2 .rv-card { box-shadow: none; }
.rv-slide.is-next blockquote, .rv-slide.is-next figcaption, .rv-slide.is-next2 blockquote, .rv-slide.is-next2 figcaption { visibility: hidden; }
.rv-slide .rv-card { width: auto; height: 100%; box-sizing: border-box; }
.rv-slide.is-on { opacity: 1; transform: none; z-index: 3; pointer-events: auto; }
.rv-slide.is-next { opacity: 1; transform: translateY(12px) scale(.95); z-index: 2; }
.rv-slide.is-next2 { opacity: .8; transform: translateY(22px) scale(.9); z-index: 1; }
.rv-dots { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.rv-dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.rv-dots button.on { width: 24px; background: var(--primary); }
.rv-note { color: var(--muted); font-size: .85rem; margin-top: 14px; text-align: center; }

/* write-a-review popup */
.rv-dialog { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px -20px rgba(10,36,89,.5); color: var(--ink); background: var(--white); }
.rv-dialog::backdrop { background: rgba(10, 36, 89, .55); backdrop-filter: blur(3px); }
.rv-dialog[open] { animation: riseIn .35s cubic-bezier(.2,.7,.2,1); }
.rv-dialog form { padding: clamp(22px, 5vw, 34px); position: relative; }
.rv-dialog h3 { margin: 0 0 6px; padding-right: 40px; }
.rv-dialog .grid-2 { gap: 0 14px; }
.rv-dialog label { margin-bottom: 10px; }
.rv-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.rate { border: 0; padding: 0; margin: 6px 0 6px; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-label { font-weight: 700; margin: 10px 0 0; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; margin: 0; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #F5A524; }
.rate label:hover { transform: scale(1.15); }
.rate input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

@media (max-width: 760px) {
  .rv-marquee { display: none; }
  .rv-stack-wrap { display: block; }
  .rv-head { margin-bottom: 20px; }
  .rv-side { width: 100%; justify-content: space-between; }
}

/* ---------- 27. Team page ---------- */
.team-group + .team-group { padding-top: 0; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.people-grid.lead-grid { grid-template-columns: repeat(3, 1fr); }
.person { position: relative; }
.person-img { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 1; background: var(--soft); margin-bottom: 16px; }
.person-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.person:hover .person-img img { transform: scale(1.04); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.person .bio { color: var(--muted); font-size: 1rem; }
.person-in { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--primary); }
.person-in:hover { background: var(--primary); color: #fff; }

@media (max-width: 1080px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .people-grid, .people-grid.lead-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ---------- 28. Phone & tablet polish (update 5) ---------- */
.nav-portal-mobile { display: none; }
@media (max-width: 1080px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { width: 46px; height: 46px; padding: 0; justify-content: center; align-items: center; }
  .nav-portal-mobile { display: block; order: -1; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .nav-portal-mobile .dd > button { background: var(--soft); color: var(--ink); border-radius: 14px; justify-content: flex-start; gap: 10px; }
  .nav-portal-mobile .dd > button .ic.sm { margin-left: auto; }
  .main-nav { padding-top: 136px; }
  .main-nav > a, .main-nav > .dd { animation: none; }
  .main-nav.open > * { animation: navIn .45s cubic-bezier(.2,.7,.2,1) both; }
  .main-nav.open > *:nth-child(2) { animation-delay: .04s; } .main-nav.open > *:nth-child(3) { animation-delay: .08s; }
  .main-nav.open > *:nth-child(4) { animation-delay: .12s; } .main-nav.open > *:nth-child(5) { animation-delay: .16s; }
  .main-nav.open > *:nth-child(6) { animation-delay: .2s; } .main-nav.open > *:nth-child(7) { animation-delay: .24s; }
  .main-nav.open > *:nth-child(8) { animation-delay: .28s; } .main-nav.open > *:nth-child(9) { animation-delay: .32s; }
}
@keyframes navIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .site-header { background: rgba(244, 248, 249, .94); }
  .header-row { min-height: 66px; }
  .section { padding-block: 56px; }

  /* highlight photos: 2 + 1 instead of three tall cards */
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 170px; border-radius: 22px; }
  .tile:first-child { grid-column: 1 / -1; min-height: 200px; }
  .tile figcaption { padding: 14px; }
  .tile strong { font-size: 2.1rem; }
  .tile span { font-size: .9rem; line-height: 1.25; display: block; }

  /* programs: compact 2-column cards */
  .program-ribbon { grid-template-columns: 1fr 1fr; gap: 12px; }
  .program-img { aspect-ratio: 1 / 1; }
  .program-body { padding: 12px 12px 14px; }
  .program-body .code { font-size: .9rem; }
  .program-body h3 { font-size: 1rem; line-height: 1.25; margin-bottom: 6px; }
  .program-body p { font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
  .program-body .more { font-size: .88rem; }
  .anim .program-ribbon > .rv:nth-child(odd) { transform: translateX(-28px) rotate(-1.5deg); }
  .anim .program-ribbon > .rv:nth-child(even) { transform: translateX(28px) rotate(1.5deg); }
  .anim .program-ribbon > .rv.in-view { transform: none; }

  /* why us: icon cards */
  .why-list { gap: 12px; }
  .why-list li { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px; gap: 14px; }
  .why-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .why-list p { font-size: .95rem; }

  /* blog: swipe row instead of a long column */
  .latest .post-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .latest .post-grid::-webkit-scrollbar { display: none; }
  .latest .post-grid > * { flex: 0 0 78%; scroll-snap-align: center; }
  .latest .row-head { align-items: flex-start; }

  /* audience tabs image a little shorter */
  .tab-media img { max-height: 260px; width: 100%; object-fit: cover; }

  /* team & outcome cards two-up */
  .people-grid, .people-grid.lead-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person .bio { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .outcome-grid, .month-steps, .benefit-row { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* footer tidier */
  .footer-grid { gap: 26px 18px; }
}
@media (max-width: 380px) {
  .program-ribbon, .outcome-grid, .month-steps, .benefit-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-track { animation: none; }
  .rv-row { overflow-x: auto; }
  .main-nav.open > * { animation: none !important; }
}
