/* ==========================================================================
   Carealign shared design layer — extracted from the Claude Design export
   (website/reference/carealign-homepage-decoded.html, "V2 — Confident
   Clinical"). Shared by index.html; providers.html and request.html will
   inherit this file in later phases.

   Sections:
     1. TOKENS
     2. FONTS (self-hosted, website/assets/fonts/)
     3. BASE / RESET
     4. COMPONENTS (header/nav, buttons, accordion, modal, footer, badges)
     5. PAGE-SPECIFIC: HOME (hero + placard, steps, procedures, why, pricing)
     6. V2 — CONFIDENT CLINICAL OVERRIDES (kept as a cascade layer on top of
        the base rules, exactly as the export ordered them)
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  --navy: #1a3494;
  --sky: #00b4e8;
  --teal: #0891b2;
  --cream: #f0f7ff;
  --white: #ffffff;
  --bg-page: #f6f9ff;
  --gray-100: #eef2f8;
  --gray-200: #dde6f2;
  --gray-400: #8fa3c4;
  --gray-600: #4a607d;
  --gray-900: #111827;
  --success: #059669;
  --grad: linear-gradient(135deg, #1a3494, #00b4e8);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 100px;
  --shadow-card: 0 4px 24px rgba(26, 52, 148, 0.1);
  --max-w: 1100px;
  --page-pad: 52px;
  --section-gap: 80px;
  --border-light: #eef2f8;
  --bg-subtle: #eef2f8;
  --text-muted: #8fa3c4;
  --error: #dc2626;
  /* V2 — Confident Clinical tokens */
  --ink: #0d1526;
  --r-btn: 9px;
}

@media (max-width: 640px) {
  :root {
    --page-pad: 20px;
    --section-gap: 56px;
  }
}

/* ==========================================================================
   2. FONTS — self-hosted (no external requests)
   Space Grotesk 400/500/600/700, JetBrains Mono 400/700 (latin subset).
   Export weight 800 usages are mapped to 700. system-ui is the fallback
   in every font-family stack below.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   3. BASE / RESET
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: #1a3494;
  color: #ffffff;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  outline: 3px solid #00b4e8;
  outline-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: var(--bg-page);
  line-height: 1.65;
  font-size: 15px;
}

body.site-nav--open {
  overflow: hidden;
}

a {
  color: var(--navy);
}

section[id] {
  scroll-margin-top: 88px;
}

main {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-pad);
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 40rem;
  margin-bottom: 32px;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- Site header / nav (incl. mobile menu) --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav__desktop {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.site-nav__center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  flex: 1;
}

.site-nav__center a,
.site-nav__mobile-panel a.site-nav__scroll-link,
.site-nav__mobile-panel a.site-nav__external {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}

.site-nav__center a:hover,
.site-nav__mobile-panel a:hover {
  color: var(--navy);
}

.site-nav__scroll-link.is-active {
  color: var(--navy);
  font-weight: 700;
}

.site-nav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-nav__btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  color: var(--gray-600) !important;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.site-header.is-scrolled .site-nav__btn-ghost {
  background: var(--white);
}

.site-nav__btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy) !important;
  background: var(--cream);
}

.site-nav__btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--grad);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26, 52, 148, 0.22);
}

.site-nav__btn-primary:hover {
  filter: brightness(1.05);
}

.site-nav__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--navy);
  cursor: pointer;
}

.site-nav__menu-btn:hover {
  background: rgba(26, 52, 148, 0.06);
}

.site-nav__menu-btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.site-nav__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.site-nav__menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__menu-btn[aria-expanded="true"] .site-nav__menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__menu-btn[aria-expanded="true"] .site-nav__menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-nav__menu-btn[aria-expanded="true"] .site-nav__menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__mobile {
  position: fixed;
  inset: 0;
  top: 68px;
  z-index: 199;
  pointer-events: none;
}

.site-nav__mobile.is-open {
  pointer-events: auto;
}

.site-nav__mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.site-nav__mobile.is-open .site-nav__mobile-backdrop {
  opacity: 1;
}

.site-nav__mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px var(--page-pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 40px rgba(26, 52, 148, 0.15);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  overflow-y: auto;
}

.site-nav__mobile.is-open .site-nav__mobile-panel {
  transform: translateY(0);
  opacity: 1;
}

.site-nav__mobile-panel a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.site-nav__mobile-panel a.site-nav__scroll-link.is-active {
  color: var(--navy);
  font-weight: 700;
}

.site-nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 8px;
}

.site-nav__mobile-actions .site-nav__btn-ghost,
.site-nav__mobile-actions .site-nav__btn-primary {
  width: 100%;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (min-width: 641px) {
  .site-nav__menu-btn {
    display: none !important;
  }

  .site-nav__mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .site-nav__desktop {
    display: none;
  }

  .site-nav__menu-btn {
    display: inline-flex;
  }
}

/* --- Buttons --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 52, 148, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* --- Kicker (mono eyebrow label, V2 pattern) --- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* --- Content card (generic) --- */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 24px 22px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: var(--gray-900);
}

.card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.card p + p {
  margin-top: 12px;
}

/* --- Trust chips --- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.trust-chip::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
}

/* --- Badges / placeholders --- */

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.badge--live {
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
}

.badge--soon {
  background: var(--gray-100);
  color: var(--gray-600);
}

.placeholder-block {
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--r-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--gray-600);
  font-size: 15px;
}

/* --- Notify modal --- */

.notify-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.notify-modal[hidden] {
  display: none;
}

.notify-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  cursor: pointer;
}

.notify-modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  padding: 28px;
  max-width: 400px;
  width: 100%;
}

.notify-modal__dialog h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.notify-modal__dialog > p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0 0 20px;
  line-height: 1.55;
}

.notify-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notify-modal__form input[type="email"] {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.notify-modal__form input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 180, 232, 0.2);
}

.notify-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.notify-modal__err,
.notify-modal__ok {
  font-size: 13px;
  margin-top: 8px;
}

.notify-modal__err {
  color: var(--error);
}

.notify-modal__ok {
  color: var(--success);
}

.notify-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  font-size: 22px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
}

.notify-modal__close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* --- FAQ accordion --- */

#faq .faq-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

#faq .accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

#faq .accordion-header {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 18px;
  text-align: left;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

#faq .accordion-header:hover {
  background: #e8eef8;
}

#faq .accordion-header:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sky);
}

#faq .accordion-title-wrap {
  flex: 1;
  min-width: 0;
}

#faq .accordion-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  transition: color 0.2s ease;
}

#faq .accordion-item.is-open .accordion-title {
  color: var(--navy);
}

#faq .accordion-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

#faq .accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

#faq .accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

#faq .accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

#faq .accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
}

#faq .accordion-body {
  padding: 16px 18px 18px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
}

#faq .accordion-body p {
  margin: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 17px;
  color: var(--gray-900);
}

.faq-cta a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.faq-cta a:hover {
  text-decoration: underline;
  color: var(--sky);
}

/* --- Site footer --- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 48px var(--page-pad) 28px;
  margin-top: var(--section-gap);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 28px;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer__col h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--gray-900);
  margin: 0 0 14px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-brand__tagline {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0 0 12px;
}

.footer-brand__copy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-social__placeholder {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.75;
}

.site-footer__rule {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 40px 0 20px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer__bottom p {
  margin: 0;
  max-width: 42rem;
  line-height: 1.55;
}

.site-footer__bottom a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* --- Forms (shared intake-form treatment — request.html and any future
       form page using the .form-shell container) --- */

.form-shell input[type="text"],
.form-shell input[type="email"],
.form-shell input[type="tel"],
.form-shell input[type="number"],
.form-shell textarea,
.form-shell select {
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-btn);
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
}

.form-shell input:focus,
.form-shell textarea:focus,
.form-shell select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 180, 232, 0.2);
}

.info-box {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--navy);
}

.info-box--success {
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-progress-track {
  height: 4px;
  background: var(--bg-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}

.form-progress-fill {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--navy), var(--sky));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   5. PAGE-SPECIFIC: HOME
   ========================================================================== */

/* --- Hero --- */

.hero {
  position: relative;
  background: var(--bg-page);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 70% 50%, rgba(0, 180, 232, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(68px + 40px);
  padding-bottom: var(--section-gap);
}

.hero__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__col--visual {
    order: 2;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .hero__col--text {
    order: 1;
  }
}

h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--gray-600);
  max-width: 36rem;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .hero__sub {
    font-size: 22px;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}

.hero-zip-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 32rem;
}

.hero-zip-form input[type="text"] {
  flex: 1 1 140px;
  min-width: 120px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-zip-form input[type="text"]::placeholder {
  color: var(--gray-400);
}

.hero-zip-form input[type="text"]:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 180, 232, 0.2);
}

.hero-zip-form .btn-primary {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
}

/* --- Callout aside --- */

.callout-aside {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad) var(--section-gap);
}

.callout-aside__inner {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 24px 28px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

.callout-aside__inner strong {
  color: var(--navy);
}

/* --- How it works steps --- */

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
}

.hiw-step {
  position: relative;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.hiw-step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.25;
}

.hiw-step p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.hiw-cta {
  text-align: center;
  padding-top: 8px;
}

.hiw-cta__label {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.hiw-cta .btn-primary {
  display: inline-flex;
}

/* --- Procedures grid --- */

#procedures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  #procedures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.procedure-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.procedure-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad) border-box;
}

.proc-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  max-width: 46%;
  text-align: right;
}

.proc-status--live {
  background: var(--cream);
  color: var(--navy);
}

.proc-status--soon {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.procedure-card meta {
  display: none;
}

.procedure-card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-right: 100px;
}

@media (max-width: 480px) {
  .procedure-card__top {
    padding-right: 0;
    order: -2;
  }

  .proc-status {
    position: static;
    order: -1;
    align-self: flex-end;
    max-width: none;
    text-align: right;
    margin: 0 0 2px;
  }
}

.procedure-card__titles {
  min-width: 0;
}

.procedure-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: var(--gray-900);
}

.procedure-card h3 a {
  color: inherit;
  text-decoration: none;
}

.procedure-card h3 a:hover {
  text-decoration: underline;
}

.procedure-card__desc a {
  color: var(--navy);
  text-decoration: underline;
}

.procedure-card__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.procedure-card__subtitle a {
  color: inherit;
  text-decoration: underline;
}

.procedure-card__desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.procedure-card__prices {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}

.procedure-card__prices .procedure-card__market {
  color: var(--gray-600);
}

.procedure-card__prices .procedure-card__carealign-avg {
  font-weight: 700;
  color: var(--navy);
}

.procedure-card__cta {
  margin-top: auto;
  padding-top: 8px;
}

.procedure-card__cta .btn-primary {
  width: 100%;
  justify-content: center;
}

.procedure-card__notify {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1.5px solid var(--gray-200);
}

.procedure-card__notify:hover {
  border-color: var(--gray-400);
  color: var(--gray-600);
}

/* --- Why Carealign --- */

#why-carealign > .section-inner > h2 {
  margin-bottom: 28px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--gray-900);
}

.why-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.why-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0 0 32px;
}

.why-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--grad);
  border-radius: var(--r-md);
  padding: 32px 20px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 8px 28px rgba(26, 52, 148, 0.2);
}

@media (max-width: 900px) {
  .why-stats-banner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

.why-stat {
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.why-stat:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .why-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding: 20px 12px;
  }

  .why-stat:last-child {
    border-bottom: none;
  }
}

.why-stat__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.why-stat__detail {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
  font-weight: 500;
}

.why-provider-callout {
  margin-top: 36px;
  padding: 22px 24px;
  border: 2px dashed var(--gray-200);
  border-radius: var(--r-md);
  background: var(--bg-page);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.why-provider-callout p {
  margin: 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.55;
  max-width: 36rem;
}

.why-provider-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--white);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.why-provider-cta:hover {
  background: var(--cream);
}

/* --- Pricing guide --- */

#pricing.pricing-guide {
  background: var(--bg-page);
}

#pricing.pricing-guide .section-inner {
  padding-top: 36px;
  padding-bottom: 28px;
}

#pricing.pricing-guide .section-sub {
  margin-bottom: 0;
  max-width: 40rem;
}

/* ==========================================================================
   6. V2 — CONFIDENT CLINICAL OVERRIDES (from the design export; applied on
   top of the base rules above, in the export's cascade order)
   ========================================================================== */

h1, h2, h3,
.hiw-step h3, .why-card h3, .procedure-card h3,
#faq .accordion-title, .why-stat__label {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
h1 { letter-spacing: -2px; font-weight: 700; }
h1 .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--navy); }
h2 { color: var(--ink); letter-spacing: -1px; font-weight: 700; }

.hero__tag { background: transparent; color: var(--teal); padding: 0; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; gap: 10px; }

.btn-primary, .site-nav__btn-primary { background: var(--navy); border-radius: var(--r-btn); box-shadow: none; }
.btn-primary:hover, .site-nav__btn-primary:hover { filter: none; background: #16297a; }
.site-nav__btn-ghost, .why-provider-cta, .procedure-card__notify { border-radius: var(--r-btn); }
.hero-zip-form input[type="text"], .hero-zip-form .btn-primary { border-radius: var(--r-btn); }
.btn-primary .ca-arrow { color: var(--sky); }

.site-header.is-scrolled { box-shadow: none; border-bottom: 1.5px solid var(--ink); }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 52, 148, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 52, 148, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask: linear-gradient(to bottom, #000 0%, transparent 88%);
}

/* Hero placard — spec-sheet quote card */
.quote-card-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 18px; }
.quote-reticle { position: absolute; width: 330px; height: 330px; max-width: 92%; opacity: 0.5; pointer-events: none; }
.quote-card { position: relative; background: var(--ink); border-radius: 16px; padding: 30px; width: 100%; max-width: 360px; box-shadow: 0 24px 60px rgba(13, 21, 38, 0.3); }
.quote-card__eyebrow { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.quote-card__label { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin-bottom: 4px; }
.quote-card__price { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 44px; letter-spacing: -1.5px; color: #fff; line-height: 1; }
.quote-card__price span { color: rgba(255, 255, 255, 0.4); margin: 0 2px; }
.quote-card__save { font-size: 14px; font-weight: 600; color: var(--sky); margin-top: 12px; }
.quote-card__note { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); margin: 14px 0 20px; }
.quote-card__rows { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; display: flex; flex-direction: column; gap: 13px; }
.quote-card__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote-card__row-k { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.55); }
.quote-card__row-v { font-size: 12.5px; font-weight: 600; color: #fff; text-align: right; }
.quote-card__foot { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.quote-card__footnote { font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); margin: 0; }

/* How-it-works — mono STEP kickers + outlined icon tiles */
.hiw-steps { border-top: 1px solid var(--gray-200); gap: 0; }
.hiw-step { background: transparent; border: none; border-right: 1px solid var(--gray-200); border-radius: 0; padding: 30px 26px 6px; gap: 0; }
.hiw-steps .hiw-step:last-child { border-right: none; padding-right: 0; }
.hiw-steps .hiw-step:first-child { padding-left: 0; }
.hiw-step__label { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 1px; color: var(--sky); margin-bottom: 18px; }
.hiw-step__ic { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.hiw-step h3 { margin-bottom: 8px; }
@media (max-width: 900px) { .hiw-step { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 24px 0; } .hiw-steps .hiw-step:last-child { border-bottom: none; } }

.why-card { border-radius: 14px; }
.why-card__icon { width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.why-stats-banner { background: var(--ink); box-shadow: 0 24px 60px rgba(13, 21, 38, 0.22); border-radius: 16px; }
.why-stat { border-right-color: rgba(255, 255, 255, 0.16); }
.why-provider-callout { border-radius: 14px; }

.procedure-card { border-radius: 14px; box-shadow: 0 12px 34px rgba(26, 52, 148, 0.07); }
.procedure-card--featured { background: #fff; border: 2px solid var(--navy); }
.proc-status--live { background: var(--cream); color: var(--navy); border-radius: 6px; }
.procedure-card__carealign-avg { font-family: "Space Grotesk", system-ui, sans-serif; }
.callout-aside__inner { border-radius: 14px; }

#faq .accordion-item { border-radius: 12px; box-shadow: none; border: 1px solid var(--gray-200); }
#faq .accordion-header { background: #fff; }
#faq .accordion-header:hover { background: var(--bg-page); }
#faq .accordion-item.is-open .accordion-header { background: var(--bg-page); }
#faq .accordion-chevron { color: var(--sky); }

.site-footer__col h3 { font-family: "JetBrains Mono", monospace; letter-spacing: 1px; }
