/* NephroReach — rebuilt 2026-09-16 (v2).
   Direction: the logo's own palette. Deep navy, royal blue, crimson, silver.
   Institutional-medical, high contrast, motion used to carry the pulse idea
   that is already in the mark.

   The legal pages (/sms, /privacy, /terms) share this sheet and exist to pass
   A2P 10DLC carrier review: a reviewer must be able to find the opt-in, the
   consent language, the mobile-data clause and the terms. Every class those
   pages use is still defined here, and none of their wording may change. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@85..120,400;85..120,500;85..120,600;85..120,700;85..120,800&family=Figtree:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #030C22;
  --navy-900: #06133A;
  --navy-800: #0A1E4D;
  --navy-700: #103070;
  --blue-600: #1656C7;
  --blue-500: #2B6FE0;
  --blue-400: #4E90F0;
  --blue-200: #A8CCFA;
  --blue-050: #EAF2FE;

  --red-700:  #A50C24;
  --red-600:  #C8102E;
  --red-500:  #E01B36;
  --red-050:  #FDECEF;

  --paper:    #F6F9FD;
  --paper-2:  #EDF3FB;
  --white:    #FFFFFF;

  --fg:       #06133A;
  --fg-2:     #42557E;
  --fg-3:     #7386A8;
  --on-dark:  #EAF1FC;
  --on-dark-2:#A9C0E4;

  --line:     #DCE6F4;
  --line-2:   #C2D2E8;
  --line-dark: rgba(168, 204, 250, .2);

  /* legacy aliases so the legal pages keep resolving */
  --primary: var(--navy-900);
  --on-primary: #FFFFFF;
  --secondary: var(--fg-2);
  --accent: var(--blue-600);
  --accent-hover: var(--navy-700);
  --accent-soft: var(--blue-050);
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --muted: var(--paper-2);
  --border: var(--line);
  --border-2: var(--line-2);
  --ok: #0F6B4F;
  --ok-soft: #EAF5F0;

  --font-head: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --nav-h: 104px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(6,19,58,.06), 0 10px 26px -14px rgba(6,19,58,.26);
  --shadow:    0 2px 4px rgba(6,19,58,.05), 0 28px 64px -30px rgba(6,19,58,.42);
  --shadow-lg: 0 46px 110px -44px rgba(3,12,34,.62);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden; max-width: 100%;
}

body {
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-600); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -.028em;
  line-height: 1.06;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.7rem); font-weight: 800; letter-spacing: -.038em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 700; letter-spacing: -.032em; }
h3 { font-size: 1.3rem; line-height: 1.24; font-weight: 700; letter-spacing: -.018em; }
h4 { font-size: 1rem; font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red-600); color: #fff; padding: 14px 22px; font-weight: 700;
  border-radius: 0 0 10px 0; text-decoration: none;
}
.skip:focus { left: 0; top: 0; }

.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-inline: var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.nav.is-stuck {
  height: 76px;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 38px -30px rgba(6,19,58,.75);
}
body.has-dark-hero .nav .nav-links a { color: rgba(234,241,252,.82); }
body.has-dark-hero .nav .nav-links a:hover { color: #fff; }
body.has-dark-hero .nav .btn-primary { background: var(--red-600); border-color: var(--red-600); color: #fff; }
body.has-dark-hero .nav .btn-primary:hover { background: var(--red-500); border-color: var(--red-500); }
body.has-dark-hero .nav.is-stuck .nav-links a { color: var(--fg-2); }
body.has-dark-hero .nav.is-stuck .nav-links a:hover { color: var(--red-600); }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo {
  height: 80px; width: auto; flex-shrink: 0;
  transition: height .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
  filter: drop-shadow(0 6px 18px rgba(3,12,34,.4));
}
.nav.is-stuck .brand-logo { height: 62px; filter: drop-shadow(0 4px 12px rgba(6,19,58,.18)); }
.brand:hover .brand-logo { transform: translateY(-2px) scale(1.02); }
.brand-name { display: none; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--fg-2);
  font-family: var(--font-head); font-size: .94rem; font-weight: 600; letter-spacing: -.01em;
  transition: color .22s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--red-600); border-radius: 2px; transition: right .34s var(--ease);
}
.nav-links a:hover::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 46px; white-space: nowrap;
  transition: transform .22s var(--ease), background .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease), color .24s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%);
  transform: translateX(-130%);
}
.btn:hover::before { animation: shine .85s var(--ease-out); }
@keyframes shine { to { transform: translateX(130%); } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-500); border-color: var(--red-500); color: #fff; box-shadow: 0 16px 34px -14px rgba(200,16,46,.75); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-050); }
.btn-lg { font-size: 1.04rem; padding: 17px 34px; min-height: 58px; }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.on-dark .btn-ghost,
.hero .btn-ghost,
.section-dark .btn-ghost { border-color: rgba(168,204,250,.5); color: #fff; }
.on-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.section-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(76px, 9vw, 140px); position: relative; }

.section-dark {
  background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 520px at 86% 4%, rgba(43,111,224,.3), transparent 62%),
    radial-gradient(640px 420px at 4% 98%, rgba(200,16,46,.22), transparent 62%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
.section-dark > * { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--on-dark-2); }
.section-paper2 { background: var(--paper-2); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-600);
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before {
  content: ''; width: 30px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red-600), var(--blue-500));
}
.section-dark .eyebrow, .on-dark .eyebrow { color: var(--blue-200); }
.section-dark .eyebrow::before, .on-dark .eyebrow::before { background: linear-gradient(90deg, var(--red-500), var(--blue-400)); }

.lede { font-size: clamp(1.06rem, 1.25vw, 1.22rem); color: var(--fg-2); line-height: 1.62; max-width: 62ch; }
.section-dark .lede { color: var(--on-dark-2); }

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

.head-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
}
.head-row .lede { margin: 0; padding-bottom: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--navy-950); color: var(--on-dark);
  margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h);
  min-height: clamp(620px, 92vh, 980px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: .3; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(118deg, var(--navy-950) 10%, rgba(3,12,34,.95) 46%, rgba(10,30,77,.86) 76%, rgba(120,12,30,.4) 100%),
    linear-gradient(180deg, rgba(3,12,34,.9) 0%, rgba(3,12,34,.5) 42%, rgba(3,12,34,.94) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(880px 580px at 80% 18%, rgba(43,111,224,.22), transparent 64%),
    radial-gradient(640px 440px at 10% 92%, rgba(200,16,46,.2), transparent 64%);
  animation: drift 22s ease-in-out infinite alternate;
}

/* the EKG line, drawn once on load then pulsing — the logo's own motif */
.hero-ekg {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 190px; pointer-events: none; opacity: .38;
}
.hero-ekg path {
  fill: none; stroke: url(#ekgGrad); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: draw 4.5s var(--ease-out) .5s forwards, glow 3.2s ease-in-out 5s infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(24px, 2.6vw, 36px);
  padding-block: clamp(32px, 3.4vw, 56px);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 1000px; }

.hero-copy > picture { display: block; width: min(380px, 80%); margin-inline: auto; }
.brand > picture { display: block; }
.footer-col > picture { display: block; }
.hero-logo {
  width: 100%; height: auto; margin-bottom: 2px;
  filter: drop-shadow(0 28px 64px rgba(3,12,34,.9));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(-.4deg); }
}

.hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 3.4vw, 3.25rem); margin-top: 14px; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--red-500) 10%, var(--blue-400) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #C9DAF4; margin-top: 16px; max-width: 62ch; font-size: clamp(1rem, 1.1vw, 1.1rem); }
.hero .eyebrow { color: var(--blue-200); margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 24px; }
.hero-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: rgba(169,192,228,.9); width: 100%; max-width: 640px;
}
.hero-img { display: none; }

.hero-rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; width: 100%; max-width: 1080px; text-align: left;
}
.hero-stat {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(16,48,112,.62), rgba(6,19,58,.62));
  border: 1px solid rgba(168,204,250,.24);
  border-radius: var(--radius); padding: 20px 22px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-stat::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red-500), var(--blue-400));
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease);
}
.hero-stat:hover { transform: translateY(-5px); border-color: rgba(168,204,250,.5); box-shadow: 0 24px 50px -26px rgba(0,0,0,.9); }
.hero-stat:hover::after { transform: scaleY(1); }
.hero-stat-n {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1;
  letter-spacing: -.045em;
  background: linear-gradient(100deg, #fff, var(--blue-200));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-n small {
  font-size: .9rem; letter-spacing: 0; margin-left: 6px; font-family: var(--font-body);
  font-weight: 600; color: var(--blue-200); -webkit-text-fill-color: var(--blue-200);
}
.hero-stat-k { margin-top: 9px; font-size: .9rem; color: #CBDCF6; line-height: 1.45; }

/* ---------- marquee strip ---------- */
.strip {
  background: linear-gradient(90deg, var(--red-700), var(--red-600) 38%, var(--blue-600) 100%);
  color: #fff; padding-block: 16px; overflow: hidden; max-width: 100vw;
}
.strip-track {
  display: flex; width: max-content; animation: slide 46s linear infinite;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.strip-track span { display: inline-flex; align-items: center; white-space: nowrap; padding-inline: 30px; }
.strip-track span::after { content: '✚'; margin-left: 60px; opacity: .6; font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  position: relative; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 2.5vw, 38px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--red-600), var(--blue-500));
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--fg-2); font-size: .99rem; }
.card-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-050);
  padding: 7px 14px; border-radius: 999px;
}
.section-dark .card, .on-dark .card {
  background: linear-gradient(150deg, rgba(16,48,112,.5), rgba(6,19,58,.5));
  border-color: rgba(168,204,250,.2); color: var(--on-dark);
}
.section-dark .card:hover, .on-dark .card:hover { border-color: rgba(168,204,250,.45); box-shadow: 0 30px 60px -32px rgba(0,0,0,.9); }
.section-dark .card p, .on-dark .card p { color: var(--on-dark-2); }
.section-dark .card-tag, .on-dark .card-tag { color: var(--blue-200); background: rgba(43,111,224,.22); }

.feat-grid { counter-reset: feat; }
.card-num { counter-increment: feat; }
.card-num .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--red-600), var(--blue-600));
  color: #fff; margin-bottom: 22px;
  box-shadow: 0 12px 26px -12px rgba(22,86,199,.7);
  transition: transform .45s var(--ease);
}
.card:hover .ico { transform: rotate(-6deg) scale(1.06); }
.card-num::after {
  content: '0' counter(feat);
  position: absolute; top: clamp(26px, 2.3vw, 34px); right: clamp(28px, 2.5vw, 38px);
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; letter-spacing: -.05em;
  color: var(--paper-2); line-height: 1;
}
.section-dark .card-num::after { color: rgba(168,204,250,.14); }

/* ---------- pathway panels ---------- */
.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.pathway {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: clamp(32px, 3.2vw, 54px);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pathway:hover { transform: translateY(-8px); }
.pathway-a { background: linear-gradient(150deg, var(--red-700), #7C0A1C); color: #fff; }
.pathway-b { background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: #fff; }
.pathway:hover { box-shadow: var(--shadow-lg); }
.pathway::after {
  content: ''; position: absolute; right: -90px; top: -90px; width: 330px; height: 330px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%);
  transition: transform .8s var(--ease);
}
.pathway:hover::after { transform: scale(1.25) translate(-14px, 14px); }
.pathway > * { position: relative; z-index: 1; }
.pathway h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; color: #fff;
}
.pathway p { font-size: 1rem; color: rgba(255,255,255,.86); }
.pathway-days {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff;
}
.pathway-meta { margin-top: auto; padding-top: 22px; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.22); }

/* ---------- steps rail ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step { position: relative; padding: 42px clamp(18px, 2vw, 34px) 8px 0; border-top: 2px solid var(--line); }
.step + .step { padding-left: clamp(18px, 2vw, 34px); }
.step::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--red-600), var(--blue-500));
  transition: width .9s var(--ease);
}
.step.in::before { width: 100%; }
.step-n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-600), var(--blue-600)); color: #fff;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  margin-bottom: 22px; flex-shrink: 0; position: relative;
  box-shadow: 0 10px 24px -12px rgba(22,86,199,.8);
}
.step.in .step-n::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--blue-400); animation: ring 2.4s var(--ease-out) infinite;
}
@keyframes ring {
  0%   { transform: scale(.86); opacity: .85; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.step p { color: var(--fg-2); font-size: .97rem; }

/* ---------- plans ---------- */
.plan { display: flex; flex-direction: column; height: 100%; }
.plan .plan-body { flex: 1; }
.plan-foot {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(168,204,250,.22);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--blue-200);
}

/* ---------- quote band ---------- */
.band-quote blockquote {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.14; letter-spacing: -.035em; color: var(--navy-900);
  max-width: 24ch; text-wrap: balance;
}
.band-quote .q-mark { color: var(--red-600); }
.band-quote figcaption {
  margin-top: 28px; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}

/* ---------- contact split ---------- */
.contact-split {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 4vw, 72px); align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.contact-list { list-style: none; margin-top: 34px; display: grid; }
.contact-list li { border-top: 1px solid rgba(168,204,250,.2); padding: 17px 0; }
.contact-list a, .contact-list span:not(.k) { color: #fff; text-decoration: none; font-size: 1.12rem; font-weight: 700; font-family: var(--font-head); }
.contact-list a:hover { color: var(--blue-200); }
.contact-list .k {
  display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 7px; font-weight: 400;
}

/* ---------- document pages ---------- */
.page-head {
  background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(52px, 6vw, 92px));
  padding-bottom: clamp(44px, 5vw, 76px);
}
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 460px at 82% 6%, rgba(43,111,224,.3), transparent 62%),
              radial-gradient(520px 340px at 2% 96%, rgba(200,16,46,.22), transparent 62%);
}
.page-head > * { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.7rem); margin-top: 18px; }
.page-head .eyebrow { color: var(--blue-200); }
.page-head p { color: var(--on-dark-2); }
.page-meta {
  margin-top: 20px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em;
  color: var(--on-dark-2);
}
.doc { padding-block: clamp(56px, 6vw, 92px); }
.doc section { padding-block: 38px; border-top: 1px solid var(--line); }
.doc section:first-of-type { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 16px; }
.doc h3 { margin: 24px 0 10px; }
.doc p { color: var(--fg-2); margin-bottom: 14px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 16px 22px; color: var(--fg-2); }
.doc li { margin-bottom: 8px; }
.doc-num {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, var(--red-600), var(--blue-600));
  padding: 7px 15px; border-radius: 999px;
}

/* ---------- facts table ---------- */
.facts { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.fact { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact-k {
  padding: 15px 20px; background: var(--paper-2); color: var(--fg-2);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; display: flex; align-items: center; line-height: 1.5;
}
.fact-v { padding: 15px 20px; color: var(--fg); font-size: .97rem; }

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--red-600);
  background: var(--white); border-radius: var(--radius-sm);
  padding: 22px 26px; margin: 24px 0;
}
.callout-t { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); margin-bottom: 8px; font-size: .97rem; }

/* ---------- consent replica ---------- */
.replica {
  border: 2px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper-2); padding: 22px 24px; margin: 22px 0;
}
.replica-cap {
  display: block; font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px;
}
.replica-row { display: flex; gap: 14px; align-items: flex-start; }
.replica-box {
  width: 20px; height: 20px; border: 2px solid var(--fg-3); border-radius: 5px;
  background: var(--white); flex-shrink: 0; margin-top: 3px;
}
.replica-tx { font-size: .93rem; color: var(--fg-2); line-height: 1.6; margin: 0 !important; }

/* ---------- sample messages ---------- */
.msgs { display: grid; gap: 14px; margin: 22px 0; }
.msg {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px; padding: 16px 20px;
  font-size: .95rem; color: var(--fg); box-shadow: var(--shadow-sm); max-width: 640px;
}
.msg-lbl {
  display: block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px;
}

/* ---------- form ---------- */
.form-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(28px, 3vw, 46px);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: var(--navy-900); margin-bottom: 8px; letter-spacing: -.005em;
}
.req { color: var(--red-600); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--fg);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43,111,224,.16);
}
.field-hint { font-size: .82rem; color: var(--fg-3); margin-top: 7px; }
.consent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--blue-050); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 22px;
}
.consent input[type="checkbox"] {
  width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--blue-600); cursor: pointer;
}
.consent label { font-size: .84rem; line-height: 1.6; color: var(--fg-2); cursor: pointer; }
.form-status { display: none; margin-top: 16px; font-size: .93rem; font-weight: 600; text-align: center; }
.form-status.show { display: block; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--red-600); }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-950); color: var(--on-dark-2);
  padding-block: clamp(56px, 6vw, 88px) 32px; font-size: .94rem;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--red-600), var(--blue-500), var(--red-600));
  background-size: 200% 100%; animation: sweep 9s linear infinite;
}
@keyframes sweep { to { background-position: 200% 0; } }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.footer-logo { width: min(300px, 78%); height: auto; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-200); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--on-dark-2); text-decoration: none; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col p { color: var(--on-dark-2); }
.footer .brand-name { color: #fff; display: block; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid rgba(168,204,250,.18); font-size: .84rem; color: rgba(169,192,228,.68);
}

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(30px); }
.is-ready .rv { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-stat { padding: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step + .step { padding-left: 0; padding-right: clamp(18px, 3vw, 34px); }
  .head-row { grid-template-columns: 1fr; align-items: start; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 900px) {
  :root { --nav-h: 78px; }
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .brand-logo { height: 54px; }
  .nav.is-stuck { height: 66px; }
  .nav.is-stuck .brand-logo { height: 44px; }
  .nav .btn-primary { font-size: .82rem; padding: 11px 16px; min-height: 42px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .pathways { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ekg { height: 180px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: clamp(58px, 12vw, 88px); }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-copy > picture { width: min(290px, 88%); }
  .hero h1 { max-width: none; }
  .hero-rail { grid-template-columns: 1fr; }
  .hero-ekg { height: 120px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; }
  .fact-k { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo { width: min(260px, 70%); }
  .footer-legal { flex-direction: column; }
  .card-num::after { display: none; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-logo { height: 46px; }
  .nav .btn-primary { font-size: .78rem; padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .step::before { width: 100% !important; }
  .hero-ekg path { stroke-dashoffset: 0 !important; }
}
