/* ==========================================================================
   uTransplant — shared stylesheet
   ========================================================================== */

:root {
  --teal-900: #0B3D3A;
  --teal-800: #0E4A45;
  --teal-700: #10554F;
  --teal-600: #146B63;
  --teal-500: #1C8478;
  --teal-100: #E3EFEC;

  --cream: #FAF7F1;
  --white: #FFFFFF;
  --charcoal: #1E2827;
  --slate-600: #52605F;
  --slate-400: #8A968F;
  --border: #DFE6E1;

  --amber-500: #E08A34;
  --amber-600: #C96F1E;

  --danger-bg: #FBEAE4;
  --danger-text: #8A3A22;
  --success-bg: #E9F3EA;
  --success-text: #2E6B37;
  --info-bg: #EAF1F6;
  --info-text: #2B5470;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(11, 61, 58, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 61, 58, 0.10);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--teal-900);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.muted { color: var(--slate-600); }
.small-print { font-size: 0.85rem; color: var(--slate-400); line-height: 1.5; }
.center { text-align: center; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--teal-100); }
[hidden] { display: none !important; }
.section-dark { background: var(--teal-900); color: #DCEAE6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #B7DAD2; }

hr.rule { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px;
  margin-right: 9px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
}
.brand .u-lower { color: var(--amber-600); margin-left: -0.18em; }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.96rem;
  font-weight: 500;
}
.nav-links a.active { color: var(--teal-700); }
.nav-links a:hover { color: var(--teal-700); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.optional-details {
  margin: 8px 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 8px;
  background: #fff;
}
.optional-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-800);
  list-style-position: outside;
}
.optional-details[open] {
  padding-bottom: 16px;
}
.optional-details[open] > summary {
  margin-bottom: 14px;
}

.staged-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 8px;
  margin: 0 0 22px;
  background: #fff;
}
.staged-form legend {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-900);
  padding: 0 8px;
}
.staged-form .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--teal-900);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--teal-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-secondary { background: var(--teal-700); color: #fff; }
.btn-secondary:hover { background: var(--teal-800); }
.btn-outline { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-100); }
.btn-ghost { background: transparent; color: var(--teal-900); border-color: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 52ch;
}
.hero-kicker {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal-700);
  margin: 0 0 18px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  max-width: 54ch;
}
.hero-points li {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--charcoal);
}
.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-pills li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-900);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px 16px;
  margin-top: 22px;
}
.hero-cta-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hero-cta-item .btn {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.hero-cta-note {
  display: inline-block;
  background: var(--amber-500);
  color: var(--teal-900);
  font-weight: 700;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
}
h1 .hero-cta-note {
  font-size: 0.55em;
  vertical-align: 0.18em;
  letter-spacing: 0.02em;
  padding: 0.18em 0.55em;
}
.hero-cta-caption {
  font-size: 0.82rem;
  color: var(--slate-600);
  text-align: center;
  margin: 0;
}
.hero-cta-lead {
  min-height: 2.7em;
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--slate-600);
}
.hero-cta-lead-donor,
.hero-cta-lead-recipient {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-900);
}
.hero-cta-lead .donor-reveal-highlight {
  white-space: nowrap;
}
.hero-price-row {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-price-row li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--teal-100);
  border-radius: 10px;
  padding: 9px 14px;
}
.hero-price-row strong {
  color: var(--teal-800);
  white-space: nowrap;
}
.hero-price-copy {
  flex: 1;
  min-width: 0;
}
.hero-price-row a {
  color: var(--teal-800);
  font-weight: 700;
}
.hero-price-row li.hero-price-donors .hero-price-copy {
  white-space: nowrap;
  font-weight: 400;
}
.price-figure {
  font-size: 0.86em;
}
.badge-free {
  display: inline-block;
  background: var(--teal-700);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.hero-price-highlight {
  color: var(--teal-700);
  font-weight: 700;
}
.donor-reveal-highlight {
  display: inline;
  color: var(--teal-900);
  font-weight: 700;
  background: var(--amber-500);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.donor-choice-highlight {
  display: inline;
  color: var(--teal-900);
  font-weight: 700;
  background: var(--teal-100);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.donor-country-gate {
  color: #9b2c2c;
  font-weight: 500;
}
.donor-no-obligation {
  text-align: center;
  font-weight: 700;
  color: var(--teal-800);
  background: #E7F2EF;
  border: 1px solid #C5DDD7;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 18px;
  line-height: 1.45;
}
.donor-choice-strip {
  background: var(--teal-900);
  color: #fff;
  text-align: center;
  padding: 26px 16px 34px;
}
.donor-choice-strip strong {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
}
.donor-choice-sign-wrap {
  text-align: center;
  margin-top: -20px;
  padding: 0 16px 6px;
}
.donor-choice-sign {
  display: inline-block;
  background: var(--amber-500);
  color: var(--teal-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.hero-art {
  background: linear-gradient(160deg, var(--teal-600), var(--teal-900));
  border-radius: var(--radius);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art .glow {
  position: absolute; border-radius: 50%;
  background: rgba(224, 138, 52, 0.35);
  filter: blur(40px);
}
.hero-photo {
  aspect-ratio: 5 / 4;
  min-height: 0;
  background: var(--teal-100);
}
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: center 42%;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.card-link { font-weight: 600; font-size: 0.92rem; }

.step-grid { counter-reset: step; }
.step {
  position: relative;
  padding-left: 46px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  font-family: var(--font-head);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.organ-redirect-note {
  margin: 0;
  max-width: 18em;
  padding: 22px 26px;
  text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  border: 0;
  box-shadow: none;
}
body.navigator-takeover-open {
  overflow: hidden;
}
#r-navigator-takeover {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--teal-100);
}
#r-navigator-takeover:not([hidden]) {
  display: flex;
}
#r-navigator-takeover.is-flash {
  align-items: center;
  justify-content: center;
}
#r-navigator-takeover.is-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--teal-900);
}
#r-navigator-takeover.is-choice #r-navigator-step {
  display: contents;
}
.nav-choice-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 5vh, 64px) clamp(22px, 4.5vw, 56px);
  text-decoration: none;
  color: var(--slate-800);
  background: var(--white);
  overflow: auto;
}
.nav-choice-card:hover,
.nav-choice-card:focus-visible {
  outline: none;
  filter: brightness(0.98);
}
.nav-choice-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-choice-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.nav-choice-price {
  margin: 0 0 4px;
  color: var(--teal-900);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
}
.nav-choice-period {
  margin: 0 0 22px;
  color: var(--slate-500);
  font-size: 0.95rem;
}
.nav-choice-card ul {
  margin: 0 0 28px;
  padding-left: 1.1em;
}
.nav-choice-card li { margin-bottom: 8px; }
.nav-choice-card .btn-block {
  width: 100%;
  max-width: 360px;
  margin-top: auto;
  pointer-events: none;
}
.nav-choice-card-full {
  background: var(--teal-900);
  color: #E7F3F0;
}
.nav-choice-card-full .nav-choice-kicker,
.nav-choice-card-full h2,
.nav-choice-card-full .nav-choice-price {
  color: #fff;
}
.nav-choice-card-full .nav-choice-period { color: #B7DAD2; }
@media (max-width: 700px) {
  #r-navigator-takeover.is-choice {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .nav-choice-card {
    min-height: 50vh;
    min-height: 50dvh;
  }
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--amber-500);
  box-shadow: 0 10px 28px rgba(224, 138, 52, 0.18);
  transform: translateY(-6px);
}
.price-card.selected {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}
.order-steps {
  margin: 0 0 24px;
  padding-left: 1.2em;
  color: var(--slate-600);
  font-size: 0.92rem;
  max-width: 62ch;
}
.order-steps li { margin-bottom: 6px; }
#book-coverage { margin: 0 0 20px; }
.price-card .tag {
  align-self: flex-start;
  background: var(--amber-500);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.price-card .amount {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-900);
  margin: 6px 0 2px;
}
.price-card .period { color: var(--slate-400); font-size: 0.85rem; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex-grow: 1; }
.price-card li {
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--slate-600);
}
.price-card li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--teal-600); font-weight: 700;
}

/* ---------- Notices / callouts ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice-info { background: var(--info-bg); color: var(--info-text); }
.notice-success { background: var(--success-bg); color: var(--success-text); }
.notice-warning { background: var(--danger-bg); color: var(--danger-text); }
.notice-quiet { background: var(--white); border-color: var(--border); color: var(--slate-600); }

.badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Privacy banner ---------- */
.privacy-banner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--teal-100);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.privacy-banner-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.privacy-banner h3 { margin-bottom: 6px; }
.privacy-banner p { margin-bottom: 0; }
@media (max-width: 680px) {
  .privacy-banner { flex-direction: column; }
}

.mini-reassure,
.mini-reassure {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-top: 10px;
}

/* ---------- Forms ---------- */
.form { max-width: 640px; position: relative; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--teal-900);
}
.field .hint { font-size: 0.82rem; color: var(--slate-400); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--charcoal);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-500);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.checkbox-row input:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--slate-600); }
.checkbox-row input { width: auto; margin-top: 3px; }

.form-result {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}
.form-result.show { display: block; }

/* ---------- State-availability widget ---------- */
.state-check {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.state-check .result { margin-top: 14px; display: none; }
.state-check .result.show { display: block; }

/* ---------- Logged-in app shell (server/public/*) ---------- */
.app-header .nav-links { gap: 20px; }
.app-main { min-height: 60vh; }
.app-footer {
  padding: 30px 0 50px;
  text-align: center;
  color: var(--slate-400);
  font-size: 0.82rem;
}
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
}
.pill-suggested { background: var(--info-bg); color: var(--info-text); }
.pill-connected { background: var(--success-bg); color: var(--success-text); }
.pill-revealed { background: var(--amber-500); color: var(--teal-900); }

/* ---------- Match list (dashboard) ---------- */
.match-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.match-card-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--teal-900); }
.match-card-meta { font-size: 0.85rem; color: var(--slate-400); }
.match-card .story-preview {
  color: var(--slate-600);
  font-size: 0.94rem;
  margin-bottom: 14px;
}
.match-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-600);
}

/* ---------- Chat / masked messaging ---------- */
.chat-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-thread {
  padding: 24px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 72%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}
.msg-you {
  align-self: flex-end;
  background: var(--teal-700);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-match {
  align-self: flex-start;
  background: var(--teal-100);
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
}
.msg-flag {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
}
.chat-composer {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.chat-composer textarea {
  flex-grow: 1;
  resize: none;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.chat-locked {
  padding: 40px 24px;
  text-align: center;
  color: var(--slate-600);
}

/* ---------- Reveal box ---------- */
.reveal-box {
  background: var(--teal-100);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.reveal-box h4 { margin-bottom: 8px; }
.reveal-status-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 14px 0;
  font-size: 0.9rem;
}
.reveal-status-row .yes { color: var(--success-text); font-weight: 700; }
.reveal-status-row .no { color: var(--slate-400); font-weight: 700; }
.identity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 14px;
}

.notif-wrap { position: relative; }
.notif-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, 90vw);
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 40;
  padding: 8px;
}
.notif-panel.open { display: block; }
.notif-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: var(--teal-100); }
.checklist-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  font-size: 0.92rem;
}
.launch-item { margin-bottom: 12px; }
.admin-section { margin-top: 50px; }

/* ---------- Admin roster table ---------- */
.token-box {
  background: var(--teal-900);
  color: #DCEAE6;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: 20px;
}

/* ---------- Tables ---------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.compare th, table.compare td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.compare th {
  background: var(--teal-100);
  color: var(--teal-900);
  font-family: var(--font-head);
  font-weight: 600;
}
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Article / prose ---------- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { margin-bottom: 1.1em; }
.article-meta { color: var(--slate-400); font-size: 0.88rem; margin-bottom: 6px; }
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}
.article-card .topic { color: var(--teal-600); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #BFD8D2;
  padding: 56px 0 28px;
  margin-top: 80px;
}
.site-footer a { color: #E7F2EF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-brand p { color: #9FC2BB; font-size: 0.9rem; max-width: 34ch; }
.footer-office {
  font-style: normal;
  color: #9FC2BB;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 36ch;
  margin: 14px 0 0;
}
.footer-office strong {
  display: block;
  color: #E7F2EF;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.footer-office span {
  display: block;
  margin-top: 8px;
  color: #7FA69E;
  font-size: 0.8rem;
  line-height: 1.45;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #7FA69E;
}
.footer-operator {
  flex-basis: 100%;
}
.compliance-strip {
  background: var(--teal-800);
  color: #D9ECE7;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
}
.compliance-strip a { color: #fff; text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE6E0; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band-actions {
  justify-content: center;
  margin-top: 22px;
}
.cta-band .btn-secondary {
  background: #fff;
  color: var(--teal-900);
}
.cta-band .btn-secondary:hover { background: #F4F1EA; }
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.nav-mobile-only { display: none; }
.grid-split { grid-template-columns: 1.3fr 1fr; }
.grid-split-wide { grid-template-columns: 1.4fr 1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  html { overflow-x: hidden; }
  .hero { grid-template-columns: 1fr; }
  .hero.container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-art {
    width: min(100%, 540px);
    min-height: 0;
    order: 0;
    justify-self: center;
    aspect-ratio: 400 / 320;
  }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .nav-wrap {
    padding: 10px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 1.12rem;
    gap: 0;
    min-width: 0;
    white-space: nowrap;
  }
  .brand .mark { width: 28px; height: 28px; flex-shrink: 0; margin-right: 6px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }
  .site-header:not(.app-header) .nav-links,
  .site-header:not(.app-header) .nav-cta .btn-outline,
  .site-header:not(.app-header) .nav-cta .btn-ghost { display: none; }
  .site-header:not(.app-header) .nav-cta .btn-secondary { display: inline-flex; }
  .nav-cta { gap: 6px; flex-shrink: 0; }
  .nav-cta .btn-sm { padding: 8px 12px; font-size: 0.8rem; }
  .nav-links .nav-mobile-only { display: block; }
  .nav-links .nav-mobile-cta { display: none; }
  body.nav-open .site-header:not(.app-header) .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 60;
  }
  body.nav-open .nav-links li { margin-bottom: 0; }
  .app-header .nav-wrap { flex-wrap: wrap; row-gap: 8px; }
  .app-header .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .app-header .nav-cta { flex-wrap: wrap; }
  .app-header #whoami {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 680px) {
  .container,
  .container-narrow { padding: 0 16px; }
  .hero.container { padding: 36px 16px 32px; }
  .section { padding: 48px 0; }
  .nav-wrap { padding: 10px 12px; }
  .grid-2, .grid-3, .grid-4,
  .grid-split, .grid-split-wide { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 22px; }
  .hero-price-row li { display: block; }
  .hero-price-row strong {
    display: block;
    white-space: normal;
    margin-bottom: 2px;
  }
  .hero-price-row li.hero-price-donors .hero-price-copy {
    white-space: normal;
  }
  .hero-actions .btn,
  .hero-cta {
    width: 100%;
  }
  .hero-cta {
    flex-wrap: wrap;
    flex-direction: column;
  }
  .hero-cta-item,
  .hero-cta-item .btn {
    width: 100%;
    white-space: normal;
  }
  .field input,
  .field select,
  .field textarea,
  .chat-composer textarea { font-size: 16px; }
  .chat-composer { flex-wrap: wrap; }
  .chat-composer .btn { width: 100%; }
  .msg { max-width: 88%; }
  .compliance-strip,
  .health-data-strip {
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 10px 14px;
    line-height: 1.45;
  }
  table.compare {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .brand { font-size: 1.05rem; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn-sm { padding: 7px 8px; font-size: 0.72rem; }
  .site-header:not(.app-header) .brand {
    font-size: 0;
    letter-spacing: 0;
  }
  .site-header:not(.app-header) .brand .mark { margin-right: 0; }
}

/* ---------- Legal pages, privacy request, skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--teal-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.legal-page .badge + h1 { margin-top: 14px; }
.legal-notice {
  font-weight: 600;
  letter-spacing: 0.01em;
  border-left: 4px solid var(--teal-700);
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.health-data-strip {
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.92rem;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
}
.health-data-strip a { color: var(--teal-700); text-decoration: underline; }
.health-data-entry {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0 0 16px;
}
.hp-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.error-summary { margin-bottom: 18px; }
.error-summary ul { margin: 8px 0 0; }
.privacy-request-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 8px;
  margin: 0 0 22px;
  background: #fff;
}
.privacy-request-form legend {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-900);
  padding: 0 8px;
}
.char-count { font-size: 0.8rem; color: var(--slate-400); margin-top: 4px; }
.choice-list { list-style: none; padding: 0; margin: 0 0 12px; }
.choice-list li { margin-bottom: 8px; }

/* ---------- Navigator fast checkout ---------- */
.navigator-checkout-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(9, 63, 59, 0.10);
}
.checkout-heading { margin-bottom: 22px; }
.checkout-heading h2 { margin: 12px 0 7px; }
.checkout-heading p { margin: 0; }
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 22px;
  color: var(--slate-400);
  font-size: 0.79rem;
  font-weight: 600;
}
.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--border);
}
.checkout-steps span.is-current {
  color: var(--teal-800);
  border-color: var(--teal-600);
}
.checkout-steps b {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.74rem;
}
.navigator-fast-form { max-width: none; }
.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 18px 20px;
  margin-bottom: 22px;
  border: 1px solid #C9DCD7;
  border-radius: var(--radius);
  background: #F7FBFA;
}
.order-summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.order-summary h3 { margin: 0 0 4px; font-size: 1.1rem; }
.order-summary p { margin: 0; color: var(--slate-600); font-size: 0.88rem; }
.order-summary-price { flex: 0 0 auto; text-align: right; }
.order-summary-price strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-900);
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.order-summary-price a { font-size: 0.82rem; }
.checkout-state-field { margin-bottom: 14px; }
.checkout-state-field label { font-size: 1rem; }
.checkout-state-field select { min-height: 48px; }
.coverage-result {
  margin: 0 0 18px;
  padding: 14px 16px;
}
.coverage-result strong { display: inline; margin: 0; }
.checkout-consent {
  padding: 14px 15px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  line-height: 1.45;
}
.checkout-consent input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}
.waitlist-fields {
  padding: 18px 18px 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FFFDFC;
}
.navigator-fast-form .btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 300px;
  max-width: 100%;
  min-height: 46px;
  margin-left: auto;
  margin-right: auto;
  padding: 11px 22px;
  font-size: 0.92rem;
}
.checkout-policy-links {
  margin: 12px 0 0;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 640px) {
  .navigator-checkout-card {
    margin: 0 -8px;
    padding: 24px 18px;
    border-radius: 14px;
  }
  .checkout-heading { margin-bottom: 18px; }
  .checkout-steps { gap: 5px; font-size: 0.7rem; }
  .checkout-steps span { gap: 5px; align-items: flex-start; }
  .checkout-steps b { flex-basis: 20px; width: 20px; height: 20px; }
  .order-summary { gap: 12px; padding: 16px; }
  .order-summary h3 { font-size: 1rem; }
  .order-summary p { font-size: 0.8rem; }
  .order-summary-price strong { font-size: 1.1rem; }
  .checkout-consent { font-size: 0.82rem; }
  .navigator-fast-form .btn-block {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .checkout-steps span { display: block; }
  .checkout-steps b { margin-bottom: 5px; }
  .order-summary { display: block; }
  .order-summary-price { margin-top: 12px; text-align: left; }
  .order-summary-price strong { display: inline; margin-right: 8px; }
}

@media print {
  .skip-link, .site-header, .site-footer, .nav-cta, .nav-toggle,
  .compliance-strip, .health-data-strip, .privacy-request-form button {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  .legal-notice { box-shadow: none; border: 1px solid #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
