/* =========================================================================
   Aveli RCM — marketing site
   Design language: an established firm, not a startup. Editorial serif
   display (Newsreader) over Inter UI, navy-forward surfaces, hairline
   rules, tabular figures, restrained emerald. Mobile-first.
   ========================================================================= */

:root {
  /* Brand palette (exact — do not improvise) */
  --navy: #13294B;
  --emerald: #1F9D55;
  --emerald-bright: #34D17E;
  --ink: #16181D;
  --muted: #5A6472;
  --bg-light: #F7F8FA;
  --white: #FFFFFF;

  /* Derived */
  --navy-700: #0F2240;
  --navy-800: #0B1A33;
  --hairline: #E4E7EC;
  --hairline-strong: #D5DAE2;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --emerald-tint: rgba(31, 157, 85, 0.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  --maxw: 1160px;
  --gutter: 1.5rem;
  --r: 8px;
  --r-sm: 5px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(19, 41, 75, 0.05);
  --shadow-md: 0 10px 30px rgba(19, 41, 75, 0.08);
  --shadow-float: 0 30px 70px -28px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display headings use the serif; lighter weight + true optical sizing */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--navy);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------- Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--alt { background: var(--bg-light); border-block: 1px solid var(--hairline); }

.section__head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__title { font-size: clamp(1.9rem, 4.4vw, 2.85rem); letter-spacing: -0.02em; }
.section__lede { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; max-width: 54ch; }

/* Numbered editorial section label */
.section__index {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.15rem;
  font-family: var(--font);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.section__index::before { content: ""; width: 26px; height: 1.5px; background: var(--hairline-strong); }
.section__index--accent { color: var(--emerald); }
.section__index--accent::before { background: var(--emerald); }
.section__index--bright { color: var(--emerald-bright); }
.section__index--bright::before { background: var(--emerald-bright); }

.eyebrow {
  margin: 0 0 1.1rem; font-family: var(--font);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald-bright);
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn--primary { --btn-bg: var(--navy); }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,0.32); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--bright { --btn-bg: var(--emerald-bright); --btn-fg: #06301c; }
.btn--bright:hover { background: #49db8d; box-shadow: 0 12px 30px rgba(52,209,126,0.28); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

/* ------------------------------------------------------------------ Logo */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark { flex: none; }
.logo__word { display: inline-flex; align-items: baseline; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-size: 1.4rem; }
.logo__av { color: var(--navy); }
.logo__eli { color: var(--emerald); }
.logo__word-footer { color: var(--white); }
.logo__rcm { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); margin-left: 0.45rem; align-self: center; transform: translateY(-1px); }
.logo__rcm--footer { color: rgba(255,255,255,0.55); }

/* ------------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: none; align-items: center; gap: 1.9rem; }
.nav__links a:not(.btn) { font-size: 0.94rem; font-weight: 500; color: var(--ink); transition: color 0.18s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--emerald); }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle-bar { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--hairline); background: var(--white);
  box-shadow: var(--shadow-md);
}
.nav__mobile:not([hidden]) { display: flex; }
.nav__mobile a:not(.btn) { padding: 0.85rem 0.25rem; font-weight: 500; border-bottom: 1px solid var(--hairline); }
.nav__mobile-cta { margin-top: 0.75rem; }

/* ------------------------------------------------------------- Hero (navy) */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(3.25rem, 7vw, 5.75rem);
  overflow: hidden;
}
.hero::before { /* faint engraved grid, navy-on-navy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(130% 100% at 78% 8%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(130% 100% at 78% 8%, #000 35%, transparent 78%);
}
.hero::after { /* soft emerald glow upper-right */
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(52,209,126,0.16), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(2.75rem, 5vw, 4rem); align-items: center; }
.hero__copy { max-width: 640px; }
.hero .eyebrow { color: var(--emerald-bright); }
.hero__title {
  color: var(--white);
  font-size: clamp(2.3rem, 5.8vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__title-accent { display: block; color: var(--emerald-bright); font-style: italic; font-weight: 400; }
.hero__subhead { font-family: var(--font); font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,0.74); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero__reassure { font-family: var(--font); margin-top: 1.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__reassure::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(52,209,126,0.18); }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem; margin-top: 2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--hairline-dark);
  font-family: var(--font);
}
.hero__trust li { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald-bright); flex: none; }

/* Claim lifecycle panel — white card floating on navy */
.lifecycle {
  background: var(--white); color: var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-float);
  padding: 1.4rem 1.4rem 1.5rem; width: 100%;
}
.lifecycle__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--hairline); }
.lifecycle__title { font-family: var(--font); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.lifecycle__chip { font-family: var(--font); font-size: 0.72rem; font-weight: 600; color: var(--emerald); background: var(--emerald-tint); padding: 0.3rem 0.6rem; border-radius: 999px; }
.lifecycle__list { display: flex; flex-direction: column; }
.lifecycle__step { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; }
.lifecycle__step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 30px; bottom: -10px; width: 2px; background: var(--hairline-strong); }
.lifecycle__tick { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); display: inline-flex; }
.lifecycle__tick::after { content: ""; position: absolute; left: 8px; top: 6px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lifecycle__label { font-family: var(--font); font-size: 0.94rem; color: var(--ink); font-weight: 500; }
.lifecycle__step.is-paid { margin-top: 0.35rem; padding: 0.85rem; background: var(--navy); border-radius: var(--r-sm); }
.lifecycle__step.is-paid::after { display: none; }
.lifecycle__step.is-paid .lifecycle__label { color: var(--white); font-weight: 600; }
.lifecycle__step.is-paid .lifecycle__tick { background: var(--emerald-bright); }
.lifecycle__badge { margin-left: auto; font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #06301c; background: var(--emerald-bright); padding: 0.2rem 0.55rem; border-radius: 4px; }

/* ------------------------------------------------------- Stats (light band) */
.stats { background: var(--white); border-bottom: 1px solid var(--hairline); }
.stats__grid { display: grid; grid-template-columns: 1fr; }
.stat { padding: clamp(2rem, 5vw, 2.9rem) 0; border-bottom: 1px solid var(--hairline); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.45rem); font-weight: 500; letter-spacing: -0.02em; color: var(--navy); line-height: 1.05; }
.stat__num-em { color: var(--emerald); font-style: italic; }
.stat__num .num { color: var(--emerald); }
.stat__label { font-family: var(--font); margin-top: 0.85rem; color: var(--muted); font-size: 0.98rem; max-width: 34ch; }
.stat__label .num { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------- Services (editorial index) */
.svc-index { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline-strong); }
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.4rem;
  padding: 1.85rem 0; border-bottom: 1px solid var(--hairline);
  transition: background-color 0.2s var(--ease);
}
.svc__num {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  color: var(--emerald); line-height: 1; padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.svc__title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; }
.svc__desc { font-family: var(--font); color: var(--muted); font-size: 1rem; margin-top: 0.45rem; max-width: 52ch; }

/* ------------------------------------------------------------ Steps (editorial) */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--hairline-strong); }
.step { padding: 1.85rem 0; border-bottom: 1px solid var(--hairline); }
.step__num {
  font-family: var(--font-display); display: inline-block;
  font-size: 2.4rem; font-weight: 500; color: var(--emerald);
  line-height: 1; margin-bottom: 0.75rem; font-variant-numeric: tabular-nums;
}
.step__title { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.step__body { font-family: var(--font); color: var(--muted); font-size: 1rem; max-width: 42ch; }

/* ------------------------------------------------- Visibility / transparency */
.viz__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 3.75rem); align-items: center; }
.viz__copy .section__lede { margin-bottom: 0; }
.viz__list { display: grid; border-top: 1px solid var(--hairline-strong); margin-top: 1.75rem; }
.viz__list li { display: grid; gap: 0.3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--hairline); }
.viz__k { font-family: var(--font); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.6rem; }
.viz__k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: none; }
.viz__v { font-family: var(--font); color: var(--muted); font-size: 0.98rem; padding-left: 1.3rem; }

/* Illustrative payor scorecard card */
.scorecard {
  background: var(--white); border: 1px solid var(--hairline-strong);
  border-radius: var(--r); box-shadow: var(--shadow-md);
  padding: 1.4rem 1.4rem 1.3rem; font-family: var(--font); width: 100%;
}
.scorecard__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--hairline); }
.scorecard__title { font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.scorecard__tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-light); border: 1px solid var(--hairline); padding: 0.25rem 0.55rem; border-radius: 999px; }
.scorecard__table { width: 100%; border-collapse: collapse; }
.scorecard__table th, .scorecard__table td { text-align: right; padding: 0.7rem 0.4rem; font-size: 0.9rem; }
.scorecard__table th:first-child, .scorecard__table td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.scorecard__table thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.scorecard__table tbody td { border-bottom: 1px solid var(--hairline); color: var(--muted); font-variant-numeric: tabular-nums; }
.scorecard__table tbody tr:last-child td { border-bottom: none; }
.scorecard__table td.good { color: var(--emerald); font-weight: 600; }
.scorecard__table td.warn { color: #C26A00; font-weight: 600; }
.scorecard__flag { display: flex; align-items: center; gap: 0.55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline); font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.scorecard__flag .num { font-weight: 700; }
.scorecard__flag-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }

/* --------------------------------------------------- Who you work with (lean) */
.lean__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 3.75rem); align-items: start; }
.lean__copy .section__title { max-width: 16ch; }
.lean__body { font-family: var(--font); color: var(--muted); font-size: 1.075rem; margin-top: 1.15rem; max-width: 52ch; }

.promise { margin: 2.1rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--hairline-strong); }
.promise__quote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.4; color: var(--navy); text-wrap: balance;
}
.promise__by { font-family: var(--font); display: flex; align-items: center; gap: 0.65rem; margin-top: 1.15rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.promise__mark { display: inline-flex; flex: none; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 50%; }

.lean__points { display: grid; border-top: 1px solid var(--hairline-strong); }
.lean__points li { display: grid; gap: 0.35rem; padding: 1.3rem 0; border-bottom: 1px solid var(--hairline); }
.lean__point-k { font-family: var(--font); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.6rem; }
.lean__point-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: none; }
.lean__point-v { font-family: var(--font); color: var(--muted); font-size: 0.98rem; padding-left: 1.3rem; }

/* ------------------------------------------------------------- Value band */
.value { background: var(--navy); color: var(--white); padding-block: clamp(3.75rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(720px 380px at 88% 0%, rgba(52,209,126,0.16), transparent 65%); }
.value__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.75rem; align-items: center; }
.value__title { color: var(--white); font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.value__title .num { color: var(--white); }
.value__highlight { color: var(--emerald-bright); font-style: italic; white-space: nowrap; }
.value__text { font-family: var(--font); margin-top: 1.3rem; color: rgba(255,255,255,0.78); font-size: 1.075rem; max-width: 46ch; }
.value .btn { margin-top: 1.9rem; }

/* Interactive savings calculator (lives in the navy value band) */
.calc {
  background: rgba(255,255,255,0.05); border: 1px solid var(--hairline-dark);
  border-radius: var(--r); padding: 1.75rem 1.6rem 1.6rem; font-family: var(--font);
  backdrop-filter: blur(2px);
}
.calc__field { margin-bottom: 1.35rem; }
.calc__field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; }
.calc__label { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.78); }
.calc__value { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }

/* Range input — native, accent-colored, with a clean custom track/thumb */
.calc__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin: 0.4rem 0 0;
  border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.16);
  accent-color: var(--emerald-bright);
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--emerald-bright);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35); cursor: pointer;
  transition: transform 0.12s var(--ease);
}
.calc__slider::-webkit-slider-thumb:active { transform: scale(1.12); }
.calc__slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--emerald-bright);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35); cursor: pointer;
}
.calc__slider::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.16); }
.calc__slider:focus-visible { outline: 3px solid var(--emerald-bright); outline-offset: 4px; }

.calc__bars { margin: 1.6rem 0 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline-dark); display: grid; gap: 1rem; }
.calc__bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.85rem; }
.calc__bar-name { flex: 1 1 100%; font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.calc__bar-name .num { color: rgba(255,255,255,0.9); font-weight: 600; }
.calc__track { flex: 1 1 auto; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.calc__fill { display: block; height: 100%; border-radius: 4px; transition: width 0.25s var(--ease); }
.calc__fill--typical { background: rgba(255,255,255,0.28); }
.calc__fill--aveli { background: var(--emerald-bright); }
.calc__bar-val { flex: 0 0 auto; min-width: 5.5ch; text-align: right; font-size: 0.85rem; font-weight: 600; color: var(--white); }

.calc__result { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.35rem; border-top: 1px solid var(--hairline-dark); }
.calc__result-label { font-size: 0.92rem; color: rgba(255,255,255,0.72); }
.calc__result-num { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 500; color: var(--emerald-bright); letter-spacing: -0.02em; text-align: right; }
.calc__result-yr { font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0; }
.calc__note { margin-top: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

@media (prefers-reduced-motion: reduce) {
  .calc__fill, .calc__slider::-webkit-slider-thumb { transition: none; }
}

/* ------------------------------------------------------------------- FAQ */
.faq__wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--hairline-strong); }
.faq__item { border-bottom: 1px solid var(--hairline-strong); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; color: var(--navy);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--emerald); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.faq__icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 0 1.5rem; }
.faq__a p { font-family: var(--font); color: var(--muted); font-size: 1.02rem; max-width: 66ch; }
.faq__item[open] .faq__a { animation: faqIn 0.28s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Contact */
.contact__inner { max-width: 700px; }
.contact__actions { margin-top: 2.1rem; }
.contact__alt { font-family: var(--font); margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.contact__alt a { color: var(--emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- Footer */
.footer { background: var(--navy); color: var(--white); padding-block: 3.25rem 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--hairline-dark); }
.footer__tag { font-family: var(--font); margin-top: 0.9rem; color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 32ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-family: var(--font); color: rgba(255,255,255,0.78); font-size: 0.94rem; font-weight: 500; transition: color 0.18s var(--ease); }
.footer__nav a:hover { color: var(--emerald-bright); }
.footer__bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.footer__hipaa { font-family: var(--font); display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.footer__hipaa-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald-bright); }
.footer__copy { font-family: var(--font); font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ====================================================== Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.svc-index .reveal.is-visible,
.steps .reveal.is-visible,
.lean__points .reveal.is-visible { transition-delay: var(--reveal-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc, .faq__icon::before, .faq__icon::after { transition: none; }
  .faq__item[open] .faq__a { animation: none; }
}

/* ============================================================ Breakpoints */
@media (min-width: 600px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .stat { border-bottom: none; padding-block: clamp(2.25rem, 5vw, 3rem); }
}

@media (min-width: 720px) {
  /* Services as a two-column index; rows keep their hairlines */
  .svc-index { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
  .step { border-bottom: none; border-top: 2px solid var(--navy); }
}

@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .viz__grid { grid-template-columns: 1fr 0.92fr; gap: 4rem; }
  .lean__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .value__grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.75rem; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1040px) {
  .lifecycle { max-width: 420px; margin-left: auto; }
}
