/* ==========================================================
   Strategic Litigation Partners — Secure Records Portal
   Warm modern-medical style (One Medical / Zocdoc caliber)
   Cream surfaces · warm ink · red as the 5% accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,550;9..144,600&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --red: #c8102e;
  --red-hover: #a50d26;
  --red-active: #8e0b20;
  --red-tint: #fbebee;
  --red-ring: rgba(200, 16, 46, 0.18);
  --red-on-dark: #d9314b;

  --ink: #221b17;
  --body-c: #4a423d;
  --muted: #7c726b;

  --cream: #faf6f1;
  --white: #ffffff;
  --blush: #f7ede9;
  --sage: #eef3ee;
  --gold-chip: #fbe9bc;
  --ink-deep: #241d18;

  --border: #eae1d8;
  --hairline: #efe8e0;
  --success: #2e7d5b;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1560px; margin: 0 auto; padding: 0 min(5vw, 72px); }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 24, 20, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: rgba(255, 255, 255, 0.12); }
.header-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px min(5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 0.5px;
}
.brand-mark .dot { color: #e0526a; }
.brand-text { line-height: 1.25; }
.brand-name { font-size: 13.5px; font-weight: 600; color: var(--cream); display: block; }
.brand-sub {
  font-size: 11px;
  color: #a89f96;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  display: block;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: #e5ddd4;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav a.nav-link:hover { color: #ff8fa0; }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; stroke: #e0526a; }
.header-phone:hover { color: #ff8fa0; }
.site-header .btn:hover { background: var(--red-on-dark); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 32px;
  min-height: 52px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s linear, box-shadow 0.25s ease;
}
.btn:hover { background: var(--red-hover); }
.btn:active { background: var(--red-active); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--red-ring); }
.btn.btn-sm { font-size: 15.5px; padding: 10px 24px; min-height: 0; }
.btn.btn-hero {
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.12);
  animation: pulse-ring 2.4s ease-out infinite;
}
.btn.btn-hero:hover { animation-play-state: paused; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 12px 32px rgba(200,16,46,0.12), 0 0 0 0 rgba(200,16,46,0.25); }
  60%  { box-shadow: 0 12px 32px rgba(200,16,46,0.12), 0 0 0 16px rgba(200,16,46,0); }
  100% { box-shadow: 0 12px 32px rgba(200,16,46,0.12), 0 0 0 0 rgba(200,16,46,0); }
}
.btn.btn-on-dark:hover { background: var(--red-on-dark); }

/* ================= HERO ================= */
.hero { background: var(--white); padding: 84px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: min(7vw, 110px);
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 3.6vw, 4.6rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 18ch;
}
.chip-hl { color: var(--red); }
.hero .lead {
  font-size: clamp(19px, 1.3vw, 22px);
  line-height: 1.6;
  color: var(--body-c);
  max-width: 56ch;
  margin-bottom: 34px;
}
.rotator {
  display: inline-grid;
  vertical-align: baseline;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--red);
}
.rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
.rotator span.active { opacity: 1; }
.hero .microcopy {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.hero .microcopy b { color: var(--body-c); }
.microcopy a { color: var(--red); font-weight: 600; text-decoration: none; }
.microcopy a:hover { text-decoration: underline; }
.policy-link { color: var(--red); font-weight: 600; font-size: 16.5px; text-decoration: none; }
.policy-link:hover { text-decoration: underline; }

/* hero illustration */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.float-slow  { animation: floaty 9s ease-in-out infinite alternate; }
.float-mid   { animation: floaty 7s 0.5s ease-in-out infinite alternate; }
.float-fast  { animation: floaty 6s 1s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* trust strip */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
}
.trust-strip-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 min(5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--body-c);
  padding: 4px 16px;
}
.trust-badge + .trust-badge { border-left: 1px solid var(--hairline); }
.trust-badge svg { width: 22px; height: 22px; stroke: var(--red); flex-shrink: 0; }

/* ================= WAVE DIVIDER ================= */
.wave { display: block; width: 100%; height: 56px; background: var(--white); }
.wave svg { display: block; width: 100%; height: 100%; }

/* ================= HOW IT WORKS ================= */
.how { background: var(--sage); padding: 40px 0 96px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 8px 0 12px;
}
.section-head p { color: var(--muted); font-size: 18px; }

.steps-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: min(3vw, 48px); }
.steps-row::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed #c9d8c9;
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(34, 27, 23, 0.04);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(34, 27, 23, 0.08); }
.step-disc {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--red);
  margin-bottom: 20px;
}
.step-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.step-card p { font-size: 16.5px; color: var(--body-c); }
.how .after-link { text-align: center; margin-top: 44px; }
.how .after-link a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}
.how .after-link a:hover { text-decoration: underline; }

/* ================= PRIVACY (cream band) ================= */
.privacy-band { background: var(--cream); padding: 96px 0; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(6vw, 96px);
  align-items: center;
}
.privacy-grid h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 8px 0 26px;
}
.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding: 0 0 0 38px;
  margin-bottom: 16px;
  font-size: 17px;
  color: var(--body-c);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.privacy-art { text-align: center; }
.privacy-art svg { width: min(100%, 460px); height: auto; }

/* stats under privacy */
.stats-row {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 44px;
}
.stat { text-align: center; padding: 0 20px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .stat-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--red);
  line-height: 1.1;
}
.stat .stat-label { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ================= FAQ (white band, split layout) ================= */
.faq-band {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 96px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: min(6vw, 90px);
  align-items: start;
}
.faq-intro h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 8px 0 14px;
}
.faq-intro > p { color: var(--muted); font-size: 17.5px; margin-bottom: 32px; }
.help-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
}
.help-card .hc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.help-card .hc-icon svg { width: 22px; height: 22px; stroke: var(--red); }
.help-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.help-card p { font-size: 15.5px; color: var(--body-c); }
.help-card .hc-phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.help-card .hc-phone:hover { text-decoration: underline; }
.help-card .hc-hours { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 24px 0;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: var(--red); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-tint);
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item summary .toggle::before,
.faq-item summary .toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2.2px;
  border-radius: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease;
}
.faq-item summary .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary { color: var(--red); }
.faq-item[open] summary .toggle {
  background: var(--red);
  transform: rotate(135deg);
}
.faq-item[open] summary .toggle::before,
.faq-item[open] summary .toggle::after { background: #fff; }
.faq-item .faq-body { padding: 0 54px 26px 0; animation: faq-in 0.3s ease-out; }
.faq-item .faq-body p { font-size: 16.5px; color: var(--body-c); max-width: 65ch; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ================= CLOSING CTA ================= */
.closing {
  position: relative;
  background: var(--ink-deep);
  padding: 88px 0;
  text-align: center;
  overflow: hidden;
}
.closing .ekg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}
.closing .ekg svg { width: 100%; height: 120px; display: block; }
.closing h2 {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 12px;
}
.closing p { position: relative; color: #b5aba3; font-size: 18px; margin-bottom: 32px; }
.closing .btn { position: relative; }
.closing .call-line { margin-top: 22px; margin-bottom: 0; font-size: 16px; color: #b5aba3; }
.closing .call-line a { color: var(--cream); font-weight: 700; text-decoration: none; }
.closing .call-line a:hover { text-decoration: underline; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 min(5vw, 72px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer .f-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}
.site-footer .f-brand .dot { color: var(--red); }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer a {
  color: var(--body-c);
  text-decoration: none;
  margin-right: 22px;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--red); }
.footer-legal {
  max-width: 1560px;
  margin: 32px auto 0;
  padding: 24px min(5vw, 72px) 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ================= EXTRA MOTION ================= */

/* heartbeat on the logo's red period */
.brand-mark .dot {
  display: inline-block;
  animation: dot-beat 3s ease-in-out infinite;
  transform-origin: center 70%;
}
@keyframes dot-beat {
  0%, 24%, 100% { transform: scale(1); }
  8%  { transform: scale(1.45); }
  16% { transform: scale(1); }
  20% { transform: scale(1.25); }
}

/* buttons lift slightly on hover */
.btn { transition: background-color 0.25s linear, box-shadow 0.25s ease, transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }

/* EKG line in the hero card draws itself in a loop */
.ekg-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ekg-draw 4.5s ease-in-out 1s infinite;
}
@keyframes ekg-draw {
  0%   { stroke-dashoffset: 100; }
  45%  { stroke-dashoffset: 0; }
  75%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

/* closing-band EKG pulses across slowly */
.ekg-anim {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ekg-draw 9s linear infinite;
}

/* step number discs pop in after their card reveals */
.step-card .step-disc {
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s,
              opacity 0.3s ease 0.25s;
}
.step-card.visible .step-disc { transform: scale(1); opacity: 1; }

/* checklist checkmarks pop in one by one */
.checklist li::before {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 90ms + 0.2s);
}
.checklist li::after {
  transform: rotate(-45deg) scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 90ms + 0.4s);
}
.checklist li.visible::before { transform: scale(1); }
.checklist li.visible::after { transform: rotate(-45deg) scale(1); }

/* stat numbers rise with a slight overshoot */
.stat .stat-value {
  display: inline-block;
  transform: translateY(14px) scale(0.92);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 120ms + 0.15s),
              opacity 0.4s ease calc(var(--i, 0) * 120ms + 0.15s);
}
.stat.visible .stat-value { transform: none; opacity: 1; }

/* shield check badge in hero gives a small pop on load */
.badge-pop {
  animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s backwards;
  transform-origin: 396px 344px;
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ================= INNER PAGES ================= */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 88px;
  min-height: 55vh;
}
.page h1 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 34px;
  margin-bottom: 24px;
}
.page h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(34, 27, 23, 0.04);
}
.status-ok { color: var(--success); font-weight: 700; font-size: 17px; margin-bottom: 22px; }
.status-err { color: var(--red); font-weight: 700; font-size: 17px; margin-bottom: 22px; }
table.data { border-collapse: collapse; width: 100%; margin-top: 8px; }
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  font-size: 15.5px;
}
table.data th {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.placeholder-note {
  background: var(--gold-chip);
  border: 1px solid #e8d194;
  border-radius: 10px;
  padding: 15px 19px;
  color: #6e5313;
  font-size: 15px;
  margin-bottom: 22px;
}
pre.err {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 13.5px;
}
a.back { color: var(--red); font-weight: 600; text-decoration: none; }
a.back:hover { text-decoration: underline; }

/* ================= CONSENT MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 13, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: overlay-in 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 16px;
  width: min(640px, 100%);
  /* Cap height so the footer is always on screen; body scrolls instead. */
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 16, 13, 0.3);
  animation: modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-head {
  flex-shrink: 0;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.2;
}
.modal-head p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.modal-close {
  flex-shrink: 0;
  border: none;
  background: var(--cream);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--red-tint); color: var(--red); }

/* The only scrolling region */
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 22px;
}
.modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 6px;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p, .modal-body li { font-size: 15px; color: var(--body-c); }
.modal-body ul { margin: 6px 0 0 20px; }
.modal-body li { margin-bottom: 5px; }
.modal-body .full-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--red);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.modal-body .full-link:hover { text-decoration: underline; }

/* Always visible - never requires scrolling to reach */
.modal-foot {
  flex-shrink: 0;
  padding: 18px 26px 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  margin-bottom: 16px;
}
.agree-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--red);
  cursor: pointer;
}
.agree-row span { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.agree-row a { color: var(--red); font-weight: 600; }

.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--body-c);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-confirm {
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn-confirm:hover:not(:disabled) { background: var(--red-hover); }
.btn-confirm:disabled { opacity: 0.42; cursor: not-allowed; }

@media (max-width: 560px) {
  .modal { max-height: 88vh; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-ghost, .modal-actions .btn-confirm { width: 100%; }
}

/* About page: capability pills + feature grid */
.pill {
  display: inline-block;
  font-size: 13px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  margin: 0 8px 8px 0;
  background: var(--cream);
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.mini-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--cream);
}
.mini-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.mini-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 640px) { .mini-grid { grid-template-columns: 1fr; } }

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { display: none; }
  .hero { padding: 52px 0 48px; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-art { order: -1; }
  .trust-strip-inner { grid-template-columns: 1fr; gap: 10px; }
  .trust-badge { justify-content: flex-start; padding: 4px 0; }
  .trust-badge + .trust-badge { border-left: none; }
  .stats-row { grid-template-columns: 1fr; gap: 26px; }
  .stat + .stat { border-left: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-item .faq-body { padding-right: 0; }
  .how, .privacy-band, .faq-band { padding-top: 64px; padding-bottom: 64px; }
  .closing { padding: 64px 0; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .rotator span:first-child { opacity: 1; }
}


/* ================================================================
   Hospital picker  -  search first, at the top of the page.
   Follows the pattern used by Epic's own "Find your MyChart" and by
   Flexpa Link: the search box is the first thing a claimant sees,
   with a coloured tile per organisation for quick scanning.
   ================================================================ */
.picker {
  max-width: 660px;
  margin: 0 auto 26px;
  text-align: center;
}
.picker-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 10px;
  color: #221b17;
}
.picker-sub {
  color: #6a7076;
  margin: 0 auto 16px;
  max-width: 540px;
  line-height: 1.55;
}
.tip {
  display: inline-block;
  background: #fdf6e9;
  border: 1px solid #eedfc4;
  color: #7a5410;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  margin-bottom: 18px;
  text-align: left;
}
#q {
  width: 100%;
  padding: 15px 18px;
  font-size: 17px;
  font-family: inherit;
  color: #221b17;
  background: #fff;
  border: 1px solid #d9d0c7;
  border-radius: 11px;
  box-shadow: 0 1px 3px rgba(34, 27, 23, .05);
  transition: border-color .12s ease, box-shadow .12s ease;
}
#q:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
#results { margin-top: 14px; text-align: left; }
.picker-hint {
  margin-top: 12px;
  font-size: 14px;
  color: #7c726b;
  text-align: left;
}
.picker-note { max-width: 660px; margin-left: auto; margin-right: auto; }

/* One row per health system */
a.hospital {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #e3dcd3;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
a.hospital:hover,
a.hospital:focus-visible {
  border-color: #c8102e;
  box-shadow: 0 2px 10px rgba(34, 27, 23, .07);
  transform: translateY(-1px);
  outline: none;
}
.hospital-text { min-width: 0; }
.hospital-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.hospital-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #7c726b;
}
.hospital-sub:empty { display: none; }

/* Initials tile, standing in for a logo */
.tile {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-lg {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 20px;
}

/* "You selected <hospital>" banner on the confirm step */
.chosen {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #e3dcd3;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.chosen-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #7c726b;
  font-weight: 700;
}
.chosen-name {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2px;
}
.chosen-sub { font-size: 13px; color: #7c726b; margin-top: 2px; }
.chosen-change {
  margin-left: auto;
  align-self: flex-start;
  color: #c8102e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.chosen-change:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .chosen { flex-wrap: wrap; }
  .chosen-change { margin-left: 0; width: 100%; }
}

/* Setup-in-progress notice, shown until Epic has distributed the app */
.tip-warn {
  background: #fdecec;
  border-color: #f0c7c7;
  color: #8a2226;
  display: block;
  max-width: 100%;
}

/* Compact disclosure list on the confirm step.
   Epic's study ties a pre-login disclosure to a 1.85x completion rate,
   so the content stays - but as scannable label/answer pairs rather
   than six headed sections, which pushed the Authorize button two
   screens down. */
dl.facts { margin: 14px 0 0; }
dl.facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  color: #8a7f76;
  margin-top: 15px;
}
dl.facts dt:first-of-type { margin-top: 0; }
dl.facts dd {
  margin: 3px 0 0;
  line-height: 1.5;
}
.picker-tip {
  font-size: 14px;
  color: #7c726b;
  margin: 0 0 16px;
}

/* Hospital picker: state dropdown beside the search box (v17) */
.picker-row { display: flex; gap: 10px; align-items: stretch; }
.picker-row #q { flex: 1 1 auto; min-width: 0; }
#state {
  flex: 0 0 auto;
  width: 168px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  color: #221b17;
  background: #fff;
  border: 1px solid #d9d0c7;
  border-radius: 11px;
  box-shadow: 0 1px 3px rgba(34, 27, 23, .05);
  transition: border-color .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
#state:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
@media (max-width: 560px) {
  .picker-row { flex-direction: column; }
  #state { width: 100%; padding: 13px 14px; }
}
