/* =========================================================================
   Lucero Health — base styles (shared by every version)
   Theme colours, fonts and section layouts live in theme.css.
   ========================================================================= */

:root {
  /* Brand */
  --brand: #854F9F;
  --brand-600: #733F8C;
  --brand-700: #5F3375;
  --plum: #3B2349;
  --plum-900: #21122A;
  --lav-50: #FAF7FD;
  --lav-100: #F4EEF9;
  --lav-200: #E7DAF1;
  --lav-300: #CDB6E0;
  --orange: #E99A3B;
  --orange-600: #D7872A;

  /* Theme defaults (overridden per version) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: var(--lav-100);
  --text: #2A1A33;
  --muted: #6A5A75;
  --line: rgba(59, 35, 73, 0.12);
  --heading: var(--plum);
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius: 16px;
  --radius-lg: 28px;
  --btn-radius: 999px;
  --primary-bg: var(--brand);
  --primary-fg: #FFFFFF;
  --primary-hover: var(--brand-600);
  --secondary-fg: var(--brand);
  --secondary-border: var(--lav-300);
  --secondary-bg: transparent;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-radius: 18px;
  --nav-shadow: 0 8px 30px rgba(59, 35, 73, 0.08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 96px;

  /* How it works */
  --hiw-bg: var(--bg);
  --hiw-line: var(--lav-200);
  --hiw-fill: linear-gradient(var(--lav-300), var(--brand));
  --hiw-text: var(--heading);
  --hiw-muted: var(--muted);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--plum); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---- Type -------------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--heading);
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.0; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: var(--btn-radius); border: 2px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: var(--primary-shadow, none); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--secondary-bg); color: var(--secondary-fg); border-color: var(--secondary-border); }
.btn--secondary:hover { border-color: var(--secondary-fg); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: var(--lav-100); transform: none; }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--lav-100); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Header / nav ------------------------------------------------------ */
.site-header { position: fixed; z-index: 60; inset: 14px 0 auto; padding-inline: var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto; height: 66px; padding: 0 10px 0 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--nav-bg); border-radius: var(--nav-radius); box-shadow: var(--nav-shadow);
  border: 1px solid var(--nav-border, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled .nav { box-shadow: var(--nav-shadow-scrolled, 0 10px 34px rgba(59, 35, 73, 0.12)); }
.nav__logo { justify-self: start; display: flex; align-items: center; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  font-size: 15.5px; font-weight: 500; color: var(--nav-text, var(--text)); transition: background-color .15s, color .15s;
}
.nav__link:hover, .dropdown.is-open > .nav__link { background: var(--nav-hover, var(--lav-100)); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link .chev { width: 10px; height: 10px; transition: transform .2s; }
.dropdown.is-open .chev { transform: rotate(180deg); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav__login { font-weight: 600; }

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 260px; padding: 8px;
  background: var(--surface); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -12px rgba(34, 19, 43, 0.22);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown__panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.dropdown__item:hover { background: var(--lav-100); }
.dropdown__item img { width: 36px; height: 36px; flex: none; }
.dropdown__item strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.dropdown__item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--nav-text, var(--text)); }
.menu-toggle:hover { background: var(--nav-hover, var(--lav-100)); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  position: fixed; z-index: 55; top: 88px; left: var(--gutter); right: var(--gutter);
  max-height: calc(100svh - 104px); overflow: auto; padding: 10px;
  background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(34, 19, 43, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > a { display: block; padding: 14px 14px; border-radius: 12px; font-size: 18px; font-weight: 600; color: var(--text); }
.mobile-menu > a:hover { background: var(--lav-100); }
.mobile-menu .sub { padding-left: 30px !important; font-size: 16px !important; font-weight: 500 !important; color: var(--muted) !important; }
.mobile-menu .btn-row { padding: 12px 6px 6px; }
.mobile-menu .btn { flex: 1 1 140px; }

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; padding-left: 18px; }
  .nav__links, .nav__login { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 420px) {
  .nav__actions .btn { display: none; }
  .nav__logo img { height: 19px; }
}

/* ---- App download menu ------------------------------------------------- */
.app-menu { position: relative; display: inline-flex; }
.app-menu.is-open { z-index: 40; }
.app-menu__panel {
  position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; min-width: 250px; padding: 10px;
  display: grid; gap: 8px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -12px rgba(34, 19, 43, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.app-menu.is-open .app-menu__panel { opacity: 1; visibility: visible; transform: none; }
.app-menu--up .app-menu__panel { top: auto; bottom: calc(100% + 10px); }
.store-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 12px;
  background: #0E0B10; color: #fff; line-height: 1.1; transition: transform .15s, background-color .15s;
}
.store-btn:hover { background: #2A2230; transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; letter-spacing: .02em; opacity: .8; }
.store-btn strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Phone mockup (hero) ------------------------------------------------ */
.phone { position: relative; width: min(310px, 74vw); aspect-ratio: 310 / 640; flex: none; }
.phone__frame {
  position: absolute; inset: 0; padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #2C2431, #121014 55%);
  box-shadow: inset 0 0 0 1.5px #3E3443, 0 50px 90px -30px rgba(59, 35, 73, 0.45), 0 24px 40px -24px rgba(59, 35, 73, 0.35);
}
.phone__island { position: absolute; z-index: 2; top: 23px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #050406; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 41px; background: #fff;
  padding: 58px 15px 16px; font-family: var(--font-app, var(--font-body)); color: #241A2B;
  display: flex; flex-direction: column;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 0 2px 12px; border-bottom: 1px solid #F0EAF4; }
.app-bar img { width: 20px; height: 20px; }
.app-bar b { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }
.app-bar__icons { margin-left: auto; display: flex; gap: 12px; color: #3B2349; }
.app-bar__icons svg { width: 17px; height: 17px; }
.app-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; }
.app-progress span { height: 4px; border-radius: 4px; background: #EEE7F3; }
.app-progress span:first-child { background: var(--brand); }
.app-hint { margin: -8px 0 12px; text-align: center; font-size: 12px; color: #8A7C93; }
.app-q { margin: 14px 4px 14px; text-align: center; font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: #1F1626; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-radius: 14px;
  border: 1px solid #ECE4F2; background: #fff; box-shadow: 0 2px 6px rgba(59, 35, 73, 0.04);
  font-size: 14px; font-weight: 600;
}
.app-item img { width: 38px; height: 38px; margin-left: auto; }
.app-cb { position: relative; width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1.6px solid #CDB6E0; background: #fff; }
.app-cb::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s;
}
.app-item.is-demo { animation: app-item-on .35s var(--d, 1.2s) both; }
.app-item.is-demo .app-cb { animation: app-cb-on .35s var(--d, 1.2s) both; }
.app-item.is-demo .app-cb::after { animation: app-tick .3s calc(var(--d, 1.2s) + .1s) both; }
@keyframes app-item-on { from { border-color: #ECE4F2; background: #fff; } to { border-color: var(--lav-300); background: var(--lav-50); } }
@keyframes app-cb-on { from { background: #fff; border-color: #CDB6E0; } to { background: var(--brand); border-color: var(--brand); } }
@keyframes app-tick { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
.app-next { margin-top: auto; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; }

.float-tile {
  position: absolute; z-index: 3; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 22px 50px -16px rgba(59, 35, 73, 0.35), 0 0 0 1px rgba(59, 35, 73, 0.04);
  animation: float-bob 7s ease-in-out infinite;
}
.float-tile img { width: 60%; height: 60%; }
.float-tile:nth-of-type(2n) { animation-delay: -3.5s; }
@keyframes float-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

/* ---- Partners ---------------------------------------------------------- */
.partners__label { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(36px, 6vw, 80px); }
.partners__row img { width: auto; height: 46px; }
.partners__row .logo-nexus { height: 46px; }
.partners__row .logo-lilie { height: 48px; }
.partners__row .logo-methodist { height: 42px; }
.partners__row .logo-bcm { height: 54px; }
.partners__row .logo-pdi { height: 50px; }
@media (max-width: 640px) { .partners__row { gap: 24px 36px; } .partners__row img { height: 34px !important; } }

/* ---- How it works (scroll-driven star) --------------------------------- */
.hiw { position: relative; background: var(--hiw-bg); }
.js .hiw { height: calc(100vh + 280vh); height: calc(100svh + 280svh); }
.js .hiw__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hiw__pin { padding-block: calc(var(--header-h) + 8px) 32px; }
.hiw__grid {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  column-gap: clamp(32px, 6vw, 96px); row-gap: 28px; align-items: center;
}
.hiw__head { grid-column: 1 / -1; }
.hiw__head .h2 { color: var(--hiw-text); font-size: clamp(30px, 3.8vw, 48px); }
.hiw__track {
  --node: 72px; --gap: 30px; --lead: clamp(40px, 7vh, 88px); --step-gap: clamp(22px, 3.6vh, 40px); --h3: 25px;
  position: relative; padding: var(--lead) 0 8px calc(var(--node) + var(--gap));
}
.hiw__line {
  position: absolute; top: 0; bottom: 0; left: calc(var(--node) / 2 - 2px); width: 4px; border-radius: 4px;
  background: var(--hiw-line); overflow: hidden;
}
.hiw__line-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: var(--hiw-fill); }
.hiw__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--step-gap); }
.hiw__step { position: relative; min-height: var(--node); cursor: pointer; }
.hiw__node {
  position: absolute; top: 0; left: calc(-1 * (var(--node) + var(--gap)));
  width: var(--node); height: var(--node); border-radius: 21.6%;
  display: grid; place-items: center; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(133, 79, 159, 0); transition: box-shadow .45s ease, transform .45s ease;
}
.hiw__node svg { width: 91%; height: 91%; fill: #fff; opacity: 0; transition: opacity .5s; }
.hiw__node.is-done svg { opacity: .3; }
.hiw__node.is-lit { box-shadow: 0 0 0 9px var(--node-halo, rgba(133, 79, 159, 0.16)), 0 16px 34px -10px rgba(133, 79, 159, 0.7); }
.hiw__step h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--h3); line-height: 1.2; color: var(--hiw-text); text-wrap: balance;
  padding-top: calc((var(--node) - var(--h3) * 1.2) / 2);
}
.hiw__n { color: var(--brand); margin-right: .25em; font-variant-numeric: tabular-nums; }
.hiw__desc { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s ease; }
.hiw__desc > p { overflow: hidden; margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--hiw-muted); max-width: 46ch; }
.hiw__star { display: none; position: absolute; z-index: 4; top: 0; left: 0; width: var(--node); height: var(--node); pointer-events: none; will-change: transform; }
.hiw__star svg { position: relative; width: 100%; height: 100%; fill: #fff; filter: var(--star-filter, drop-shadow(0 0 1px rgba(95, 51, 117, 0.95)) drop-shadow(0 3px 8px rgba(95, 51, 117, 0.45))); }
.hiw__star::before {
  content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, var(--star-glow, rgba(255, 255, 255, 0.9)) 0%, var(--star-glow-2, rgba(205, 182, 224, 0.55)) 22%, rgba(133, 79, 159, 0) 62%);
  opacity: calc(1 - var(--dock, 0));
}
.hiw__art { position: relative; width: 100%; aspect-ratio: 6 / 5; }
.hiw__fig { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .6s ease, transform .6s ease; }
.hiw__fig:first-child { opacity: 1; transform: none; }

.js .hiw__star { display: block; }
.js .hiw__fig:first-child { opacity: 0; transform: translateY(14px) scale(.97); }
.js .hiw__fig.is-active { opacity: 1; transform: none; }
.js .hiw:not(.has-started) .hiw__fig.is-active { opacity: .28; transform: scale(.97); filter: grayscale(.6); }
.js .hiw__step h3 { opacity: .3; transition: opacity .45s ease; }
.js .hiw__step .hiw__desc > p { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.js .hiw__step.is-done h3 { opacity: .6; }
.js .hiw__step.is-done .hiw__desc > p { opacity: .6; transform: none; }
.js .hiw__step.is-active h3 { opacity: 1; }
.js .hiw__step.is-active .hiw__desc > p { opacity: 1; transform: none; }

@media (min-width: 861px) and (max-height: 820px) {
  .hiw__track { --node: 60px; --lead: 36px; --step-gap: 22px; --h3: 22px; }
  .hiw__desc > p { font-size: 16px; margin-top: 6px; }
  .hiw__head .h2 { font-size: clamp(30px, 3.6vw, 44px); }
  .hiw__grid { row-gap: 16px; }
}
@media (max-width: 860px) {
  .hiw__pin { padding-block: calc(var(--header-h) - 6px) 16px; }
  .hiw__grid { grid-template-columns: 1fr; row-gap: 12px; align-content: center; }
  .hiw__head .h2 { font-size: clamp(26px, 7vw, 36px); }
  .hiw__art { order: 1; aspect-ratio: auto; height: min(30svh, 300px); }
  .hiw__track { order: 2; --node: 48px; --gap: 18px; --lead: 28px; --step-gap: 16px; --h3: 18px; }
  .hiw__desc > p { font-size: 15px; line-height: 1.5; margin-top: 4px; }
  .js .hiw__step:not(.is-active) .hiw__desc { grid-template-rows: 0fr; }
  .js .hiw__step:not(.is-active) .hiw__desc > p { margin-top: 0; }
}

/* ---- Stats / impact ---------------------------------------------------- */
.stat__num { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.03em; line-height: 1; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); }
.hipaa {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--hipaa-bg, var(--lav-100)); color: var(--hipaa-fg, var(--plum)); font-size: 14px; font-weight: 600;
}
.hipaa img { width: 22px; height: 22px; }

/* ---- Footer ------------------------------------------------------------ */
.footer { padding-block: 72px 36px; background: var(--footer-bg, var(--bg)); color: var(--footer-text, var(--text)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand img { height: 24px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; color: var(--footer-muted, var(--muted)); font-size: 15.5px; }
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--footer-head, var(--heading)); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--footer-muted, var(--muted)); font-size: 15.5px; transition: color .15s; }
.footer ul a:hover { color: var(--footer-text, var(--text)); }
.footer .store-row { flex-direction: column; align-items: flex-start; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--footer-line, var(--line));
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--footer-muted, var(--muted));
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- About: team + volunteers ------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 360px)); gap: 28px; }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; }
.person__photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--lav-100); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--placeholder { display: grid; place-items: center; }
.person__initials { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(56px, 8vw, 96px); letter-spacing: -0.02em; color: var(--brand); }
.person__photo--placeholder .mark { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; }
.person__body { padding: 20px 4px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.person__name { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 24px; line-height: 1.2; color: var(--heading); }
.person__role { color: var(--muted); font-size: 16px; margin-top: 2px; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lav-100); color: var(--brand); transition: background-color .15s, color .15s, transform .15s;
}
.icon-btn:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr; } }
.role { padding: 28px; border-radius: var(--radius-lg); background: var(--surface-2); }
.role img { width: 56px; height: 56px; }
.role h3 { margin-top: 18px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 22px; line-height: 1.25; color: var(--heading); }
.role p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---- Reveal ------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Shared section pieces --------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.phone-stage { position: relative; display: grid; place-items: center; }
.hope-logo { width: min(100%, 300px); height: auto; }

.cta__card { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); border-radius: var(--radius-lg); }
.cta__card .h2 { max-width: 16ch; margin-inline: auto; }
.cta__card .lead { max-width: 48ch; margin: 18px auto 0; }
.cta__card .btn-row { justify-content: center; margin-top: 32px; }
.cta__card .hipaa { margin-top: 28px; }
.cta__mark { width: 60px; height: 60px; margin: 0 auto 28px; border-radius: 13px; }
.cta .app-menu__panel { left: 50%; transform: translate(-50%, 6px); }
.cta .app-menu.is-open .app-menu__panel { transform: translate(-50%, 0); }

/* About */
.page-hero { padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(48px, 7vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero .h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; margin-top: 16px; }
.page-hero .lead { margin-top: 24px; max-width: 56ch; }
.meaning { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.meaning img { width: 52px; height: 52px; }
.meaning__word { margin-top: 22px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; letter-spacing: -0.01em; line-height: 1; color: var(--heading); }
.meaning__pos { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--muted); }
.meaning__def { margin-top: 14px; color: var(--text); }
.page-hero--center .page-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .meaning { max-width: 520px; display: grid; justify-items: center; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.volunteers__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.volunteers__intro .h2 { margin-top: 14px; }
.volunteers__intro .lead { margin-top: 18px; }
.volunteers__art { width: 100%; height: auto; }
@media (max-width: 860px) { .volunteers__intro { grid-template-columns: 1fr; } }
.volunteer-cta {
  margin-top: 20px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.volunteer-cta img { width: 52px; height: 52px; }
.volunteer-cta div { flex: 1 1 280px; }
.volunteer-cta h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: var(--display-tracking); color: var(--heading); }
.volunteer-cta p { color: var(--muted); font-size: 16px; }

.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--header-h) + 60px) 80px; }
.notfound img { margin: 0 auto 28px; }
.notfound .lead { margin-top: 14px; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---- Volunteer sign-up page ------------------------------------------------ */
.vol-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.vol-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.vol-intro .h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin-top: 16px; }
.vol-intro .lead { margin-top: 20px; }
.vol-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.vol-points li { display: flex; gap: 14px; align-items: flex-start; }
.vol-points img { width: 44px; height: 44px; flex: none; }
.vol-points strong { display: block; font-weight: 700; color: var(--heading); line-height: 1.3; }
.vol-points span { display: block; color: var(--muted); font-size: 15.5px; }
.vol-note { margin-top: 28px; color: var(--muted); font-size: 15.5px; }
.vol-note a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vol-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 70px -40px rgba(59, 35, 73, 0.35);
}
@media (max-width: 900px) { .vol-grid { grid-template-columns: 1fr; } .vol-intro { position: static; } }

.vform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vform fieldset + fieldset { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.vform legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; }
.vform legend + * { clear: both; }
.legend-inner {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: 22px; line-height: 1.2; color: var(--heading);
}
.step-num { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 14px/1 var(--font-body); letter-spacing: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: end; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.req { color: var(--brand); }
.optional { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: -2px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #DDD2E7; background: #fff; color: var(--text);
  font: 16px/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 112px; resize: vertical; }
input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
input[type="date"].input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.input + .input { margin-top: 2px; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23854F9F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px;
}
.input::placeholder { color: #A497AD; }
.input:hover { border-color: #CDB6E0; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(133, 79, 159, 0.16); }
.input[aria-invalid="true"] { border-color: #C2342A; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 52, 42, 0.14); }
.field-error { font-size: 13.5px; font-weight: 500; color: #B42318; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input, .slot input { position: absolute; top: 50%; left: 50%; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid #DDD2E7; background: #fff; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s;
}
.chip span:hover { border-color: #CDB6E0; }
.chip input:checked + span { background: var(--lav-100); border-color: var(--brand); color: var(--brand-700); }
.chip input:checked + span::before {
  content: ""; width: 9px; height: 5px; margin: -3px 1px 0 0; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.chip input:focus-visible + span, .slot input:focus-visible + .slot__box { outline: 3px solid var(--brand); outline-offset: 2px; }

.avail { display: grid; grid-template-columns: 58px repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; }
.avail__head { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: center; }
.avail__day { font-size: 15px; font-weight: 600; color: var(--text); }
.slot { position: relative; display: block; }
.slot__box {
  display: grid; place-items: center; height: 42px; border-radius: 11px; cursor: pointer;
  border: 1.5px solid #E5DCEE; background: var(--lav-50); transition: background-color .15s, border-color .15s;
}
.slot__box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D6C7E3; }
.slot__box:hover { border-color: #CDB6E0; }
.slot input:checked + .slot__box { background: var(--brand); border-color: var(--brand); }
.slot input:checked + .slot__box::after {
  width: 11px; height: 6px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg);
}
.avail.is-invalid .slot__box { border-color: #E8B4AE; background: #FFF8F7; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.form-actions { margin-top: 30px; display: grid; gap: 14px; }
.form-actions .btn { width: 100%; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.label-busy { display: none; }
.is-sending .label-idle { display: none; }
.is-sending .label-busy { display: inline; }
.btn:disabled { opacity: .75; cursor: progress; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; border-radius: 12px; background: #FDEDEB; color: #8A1C12; font-size: 15px; }
.form-status a { font-weight: 600; text-decoration: underline; }
.form-fine { font-size: 13.5px; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vform-success { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.vform-success:focus { outline: none; }
.vform-success img { width: 64px; height: 64px; margin: 0 auto; }
.vform-success .h2 { margin-top: 22px; font-size: clamp(30px, 4vw, 44px); }
.vform-success .lead { margin: 14px auto 0; max-width: 40ch; }
.vform-success .btn-row { justify-content: center; margin-top: 28px; }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .avail { grid-template-columns: 46px repeat(3, minmax(0, 1fr)); gap: 6px; }
  .avail__head { font-size: 11px; letter-spacing: .04em; }
}
