/* Self-hosted Fraunces + Inter (SIL OFL). Serving them from our own
   origin instead of Google removes two external hosts from the critical
   path — worth ~1.9s of first paint on a throttled mobile connection. */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   BillStand design system
   Calm, credible, premium. Deep navy + warm paper + a single green accent.
   Mobile-first. Fraunces (display serif) + Inter (UI sans).
   ========================================================================== */

:root {
  --ink: #0b2239;
  --navy: #12395c;
  --blue: #1b5c8f;
  --green: #1e7a5a;
  --green-deep: #166248;
  --green-soft: #e9f4ef;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e6e2d9;
  --line-soft: #efece5;
  --muted: #5c6b7a;
  --danger: #a63d2f;
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, 0.06), 0 2px 8px rgba(11, 34, 57, 0.05);
  --shadow-md: 0 2px 6px rgba(11, 34, 57, 0.07), 0 12px 32px rgba(11, 34, 57, 0.09);
  --shadow-lg: 0 4px 12px rgba(11, 34, 57, 0.08), 0 24px 64px rgba(11, 34, 57, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --step-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }

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

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.header-nav {
  display: none;
  gap: 26px;
  align-items: center;
}

.header-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.header-nav a:not(.btn):hover { color: var(--ink); }

@media (min-width: 720px) {
  .header-nav { display: flex; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.18s var(--step-ease), box-shadow 0.18s var(--step-ease), background 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  font-size: 17px;
  padding: 16px 30px;
  box-shadow: 0 2px 6px rgba(30, 122, 90, 0.25), 0 10px 28px rgba(30, 122, 90, 0.22);
}

.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-small {
  font-size: 15px;
  padding: 10px 20px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  font-size: 16px;
  padding: 13px 24px;
}

.btn-ghost:hover { border-color: var(--navy); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero { padding: 84px 0 72px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(34px, 7.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: clamp(16.5px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-note {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* Plain inline text — no icons here. Making these flex containers turned every
   run of text into a separate flex item, so the 6px gap stacked on top of the
   real spaces and left "from  $19  to unlock" looking double-spaced. */
.cta-note span { display: inline; }

/* Letter visual in hero */

.hero-visual { position: relative; }

.letter-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 30px 28px;
  max-width: 420px;
  margin-inline: auto;
  transform: rotate(0.6deg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: #2c3a49;
}

.letter-mock .lm-line { height: 8px; border-radius: 4px; background: #e8ecf1; margin: 9px 0; }
.letter-mock .lm-line.w60 { width: 60%; }
.letter-mock .lm-line.w80 { width: 80%; }
.letter-mock .lm-line.w40 { width: 40%; }
.letter-mock .lm-head { font-weight: 700; color: var(--ink); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.letter-mock p { margin: 0 0 10px; }

.lm-stamp {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 6%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-md);
}

.lm-badge {
  position: absolute;
  bottom: -16px;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.lm-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 56px 0; }

@media (min-width: 880px) { section { padding: 76px 0; } }

.section-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(26px, 4.6vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 38px;
  font-size: 17px;
}

.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* Trust trio */

.trust { background: #fff; border-block: 1px solid var(--line-soft); }

.trio {
  display: grid;
  gap: 18px;
}

@media (min-width: 780px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.trio-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.trio-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.trio-card h3 {
  font-size: 17.5px;
  margin: 0 0 8px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.trio-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* How it works */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.step-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 17.5px; margin: 0 0 8px; font-weight: 650; }
.step-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Situations */

.situations { background: var(--ink); color: #f2f5f8; }
.situations .section-title { color: #fff; }
.situations .section-sub { color: #a9bccb; }

.situation-grid { display: grid; gap: 14px; }

@media (min-width: 680px) { .situation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .situation-grid { grid-template-columns: repeat(3, 1fr); } }

.situation {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 22px;
}

.situation h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; color: #fff; }
.situation p { margin: 0; font-size: 14.5px; color: #a9bccb; }
.situation .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8fd7ba;
  margin-bottom: 10px;
}

/* FAQ */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chev { transition: transform 0.25s var(--step-ease); color: var(--muted); flex: none; }
.faq-item[open] summary .chev { transform: rotate(180deg); }

.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Final CTA */

.final-cta { text-align: center; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .foot-grid { display: grid; gap: 20px; }

@media (min-width: 720px) {
  .site-footer .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
}

.site-footer .foot-links { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 6px; }
.site-footer .disclaimer { max-width: 60em; margin-top: 14px; font-size: 13px; color: #5c6b7a; }

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

/* --------------------------------------------------------------------------
   Flow (questionnaire)
   -------------------------------------------------------------------------- */

.flow-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.flow-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0 0;
}

.flow-top .wrap { display: flex; align-items: center; justify-content: space-between; }

.flow-top .brand-name { font-size: 18px; }

.flow-exit {
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 8px;
}

.progress-track {
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
  transition: width 0.45s var(--step-ease);
}

.flow-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 34px 0 110px;
}

.step {
  width: min(560px, 100% - 40px);
  margin-inline: auto;
  animation: stepIn 0.4s var(--step-ease);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.step h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(24px, 5.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.step .step-help { color: var(--muted); font-size: 15.5px; margin: 0 0 26px; }

.choices { display: grid; gap: 12px; }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s var(--step-ease);
  -webkit-tap-highlight-color: transparent;
}

.choice:hover { border-color: var(--blue); }
.choice:active { transform: scale(0.99); }

.choice.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.choice .choice-sub { display: block; font-weight: 450; font-size: 14px; color: var(--muted); margin-top: 2px; }

.choice .check {
  margin-left: auto;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.15s;
}

.choice.selected .check { background: var(--green); border-color: var(--green); color: #fff; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field .optional { color: var(--muted); font-weight: 450; }

/* Match every text-like input rather than listing types: the recovery page's
   email field was added after this rule and silently fell back to the browser's
   default styling, which looked broken next to the fields beside it. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 92, 143, 0.12);
}

.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 7px; }

.input-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.input-error.show { display: block; }

.amount-wrap { position: relative; }
.amount-wrap .dollar {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
/* Caret and typed text start well clear of the $ so the two never overlap.
   The [inputmode] qualifier lifts specificity above the broad `.field input`
   reset (which uses :not() selectors), so this padding actually wins. */
.field .amount-wrap input[type="tel"][inputmode="decimal"] { padding-left: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.chip:hover { border-color: var(--blue); color: var(--navy); }

/* Human acknowledgment between steps */

.ack {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--green-deep);
  font-size: 15px;
  line-height: 1.5;
  padding: 13px 16px;
  margin-bottom: 22px;
  animation: stepIn 0.5s var(--step-ease);
}

/* Provider autocomplete (federal NPI registry) */

.ac-wrap { position: relative; }

.ac-list {
  position: absolute;
  top: calc(100% - 46px);
  left: 0; right: 0;
  z-index: 30;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ac-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
}

.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.active { background: var(--green-soft); }
.ac-item .ac-name { display: block; font-weight: 600; }
.ac-item .ac-sub { display: block; font-weight: 450; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ac-item .ac-npi {
  display: inline-block; margin-top: 5px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.02em;
  color: var(--green-deep); background: var(--green-soft);
  border-radius: 999px; padding: 2px 9px;
}
.ac-item.active .ac-npi, .ac-item:hover .ac-npi { background: #fff; }

/* Instant "searching the federal registry" / no-match states */
.ac-status {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px; font-size: 14px; color: var(--muted);
}
.ac-spin {
  flex: none; width: 14px; height: 14px;
  border: 2px solid var(--line); border-top-color: var(--green);
  border-radius: 50%; animation: acspin 0.7s linear infinite;
}
@keyframes acspin { to { transform: rotate(360deg); } }

/* Persistent confirmation that we recognized the exact provider */
.provider-match {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 10px 13px;
  font-size: 13.5px; line-height: 1.5;
  color: var(--green-deep); background: var(--green-soft);
  border-radius: 10px;
  animation: stepIn 0.35s var(--step-ease);
}
.provider-match svg { flex: none; margin-top: 2px; color: var(--green); }
.provider-match.hidden { display: none; }

.letter-divider {
  font-family: var(--font-display); font-weight: 560; font-size: 19px;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}

/* Multi-bill list */

.bill-row {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  margin-bottom: 12px;
}
.bill-row-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.bill-remove {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  color: var(--danger); text-transform: none; letter-spacing: 0; padding: 4px 6px;
}
.bill-row input[type="text"], .bill-row input[type="tel"] {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-soft); border-radius: 10px;
  padding: 12px 14px; outline: none; margin-bottom: 8px; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bill-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 92, 143, 0.12); }
.bill-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-row-grid > * { margin-bottom: 0; }
.bill-row .amount-wrap input[type="tel"][inputmode="decimal"] { padding-left: 34px; }
.bill-row .amount-wrap .dollar { left: 13px; font-size: 16px; }

/* Optional bill upload */

.upload-zone { margin-bottom: 14px; }

/* Instant acknowledgment card shown the moment a file is chosen */
.upload-confirm {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--green-soft);
  border: 1px solid rgba(30, 122, 90, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: stepIn 0.3s var(--step-ease);
}
.upload-confirm.hidden { display: none; }
.upload-confirm .uc-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; line-height: 1;
}
.upload-confirm .uc-title { margin: 1px 0 3px; font-weight: 650; font-size: 15px; color: var(--ink); }
.upload-confirm .uc-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.upload-confirm.is-loading .uc-icon {
  background: none; border: 2px solid var(--line); border-top-color: var(--green);
  color: transparent; animation: acspin 0.7s linear infinite;
}
.upload-confirm.is-error {
  background: #FEF2F2; border-color: rgba(180, 35, 42, 0.25);
}
.upload-confirm.is-error .uc-icon { background: var(--danger, #B4232A); }

/* Desktop -> phone QR handoff (photograph the bill on the phone) */
.qr-handoff {
  display: flex; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; margin-top: 14px;
}
.qr-handoff.hidden { display: none; }
.qr-handoff-code { flex: none; }
.qr-handoff-code img { display: block; width: 128px; height: 128px; border-radius: 8px; background: #fff; }
.qr-handoff-body h4 { margin: 0 0 5px; font-size: 15.5px; }
.qr-handoff-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.qr-handoff-status { margin-top: 9px !important; display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--green-deep) !important; }
.qr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: qrpulse 1.3s ease-in-out infinite; }
@keyframes qrpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Phone capture page (/capture) */
.capture-body { background: #FAF9F6; }
.capture { max-width: 460px; margin: 0 auto; padding: 30px 22px 60px; min-height: 100vh; box-sizing: border-box; }
.capture-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 34px; }
.capture h1 { font-family: var(--font-display); font-weight: 560; font-size: 27px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
.capture-lede { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 26px; }
.capture-status { margin: 14px 0 0; min-height: 20px; font-size: 14.5px; color: #B4232A; }
.capture-privacy { margin: 30px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.capture-done { text-align: center; padding-top: 24px; }
.capture-check { width: 66px; height: 66px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.capture-done h1 { margin-bottom: 10px; }
.capture-done p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.step-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.back-link {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 12px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover { color: var(--ink); }

.privacy-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Preview
   -------------------------------------------------------------------------- */

.preview-shell { padding: 28px 0 90px; }

.preview-grid { display: grid; gap: 28px; }

@media (min-width: 920px) {
  .preview-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .preview-aside { position: sticky; top: 92px; }
}

.strategy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-soft);
  border: 1px solid #cfe7db;
  color: var(--green-deep);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 22px;
}

.letter-sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 5vw, 48px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #24313f;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
}

.letter-sheet.locked { max-height: 760px; }

.letter-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 34%, rgba(255,255,255,0.94) 62%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px;
  text-align: center;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s var(--step-ease), background 0.15s;
}

.lock-pill:hover { background: var(--navy); transform: translateY(-1px); }

.lock-note { font-family: var(--font-body); font-size: 14.5px; color: var(--muted); max-width: 30em; }

/* Demo-only affordance: inspect the exact letter without paying.
   Rendered only when no Stripe key is configured. */
.demo-reveal {
  margin-top: 14px;
  background: #fff7e6;
  border: 1px dashed #d9b96b;
  color: #7a5b16;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.demo-reveal:hover { background: #fdefd0; }

.unlock-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
}

.unlock-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 4px;
}

.unlock-card .price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.unlock-card .price-note { color: var(--muted); font-size: 15px; }

.unlock-card h3 { margin: 0 0 2px; font-size: 18px; }

.unlock-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 12px;
}

.unlock-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: #33424f;
}

.unlock-list .li-check { color: var(--green); flex: none; margin-top: 2.5px; }

.secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.preview-error {
  margin-top: 14px;
  color: var(--danger);
  font-size: 14.5px;
  display: none;
}

.preview-error.show { display: block; }

/* --------------------------------------------------------------------------
   Success
   -------------------------------------------------------------------------- */

.success-shell { padding: 44px 0 90px; }

.success-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }

.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  animation: popIn 0.5s var(--step-ease);
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-grid { display: grid; gap: 28px; }

@media (min-width: 920px) {
  .success-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}

.download-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: grid;
  gap: 12px;
}

.mail-guide { margin-top: 26px; }

.mail-guide h3 { font-size: 18px; margin: 0 0 16px; }

.mail-steps { display: grid; gap: 12px; }

.mail-step {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.mail-step .ms-num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.mail-step h4 { margin: 0 0 3px; font-size: 15.5px; }
.mail-step p { margin: 0; font-size: 14.5px; color: var(--muted); }

.privacy-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-soft);
  border: 1px solid #cfe7db;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--green-deep);
  margin-top: 18px;
}

/* Loading state */

.loading-shell {
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3.5px solid var(--line);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
  margin-bottom: 22px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title { font-family: var(--font-display); font-size: 24px; font-weight: 560; margin: 0 0 8px; }
.loading-sub { color: var(--muted); font-size: 15.5px; max-width: 30em; margin: 0; }

/* --------------------------------------------------------------------------
   Utilities & motion
   -------------------------------------------------------------------------- */

.hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--step-ease), transform 0.7s var(--step-ease);
}

.reveal.in { opacity: 1; transform: none; }

.demo-banner {
  background: #fff7e6;
  border-bottom: 1px solid #f0e0bb;
  color: #7a5b16;
  text-align: center;
  font-size: 13.5px;
  padding: 8px 16px;
}

@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; }
}

/* ==========================================================================
   Resource hub (guides) — SEO/GEO content pages
   ========================================================================== */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted); margin: 22px 0 20px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line); }

.guide-index { padding: 0 0 70px; }
.guide-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-deep); margin: 4px 0 10px;
}
.guide-index h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.015em; margin: 0 0 14px;
}
.guide-lede { font-size: 18px; color: var(--muted); max-width: 44em; margin: 0 0 34px; }

/* Featured "start here" hero */
.guide-hero {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #0B2239 0%, #14304a 100%);
  color: #FAF9F6; text-decoration: none;
  border-radius: var(--radius-lg); padding: 32px 28px; margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s var(--step-ease), box-shadow 0.18s var(--step-ease);
}
.guide-hero:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (min-width: 760px) {
  .guide-hero { grid-template-columns: 1fr auto; padding: 42px; gap: 42px; }
}
.guide-hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #7FD3B0; margin-bottom: 12px;
}
.guide-hero h2 {
  font-family: var(--font-display); font-weight: 560; color: #fff;
  font-size: clamp(23px, 3.2vw, 31px); line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 12px;
}
.guide-hero p { font-size: 16px; line-height: 1.6; color: #C9D4DE; margin: 0 0 20px; max-width: 40em; }
.guide-hero-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #7FD3B0; }
.guide-hero:hover .gc-arrow { transform: translateX(3px); }

.guide-hero-aside { display: none; }
@media (min-width: 760px) { .guide-hero-aside { display: grid; place-items: center; padding-right: 14px; } }
.guide-hero-doc {
  position: relative; width: 128px; height: 160px;
  background: #FAF9F6; border-radius: 12px; padding: 20px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34); transform: rotate(3deg);
}
.guide-hero-doc span { display: block; height: 7px; border-radius: 3px; background: #D8DEE4; margin-bottom: 10px; }
.guide-hero-doc span:nth-child(1) { width: 68%; height: 9px; background: #0B2239; margin-bottom: 14px; }
.guide-hero-doc span.short { width: 46%; }
.guide-hero-check {
  position: absolute; right: -14px; bottom: -14px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  border: 3px solid #FAF9F6; box-shadow: 0 8px 20px rgba(30, 122, 90, 0.5);
}

/* Dense guide grid */
.guide-allgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-allgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guide-allgrid { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 20px 22px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.18s var(--step-ease), box-shadow 0.18s var(--step-ease), border-color 0.18s;
}
.guide-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--green); opacity: 0; transition: opacity 0.18s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.guide-card:hover::before { opacity: 1; }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.guide-card-time { font-size: 12px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.guide-card h3 { font-family: var(--font-display); font-weight: 560; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; }
.guide-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; flex: 1; }
.guide-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.guide-card:hover .gc-arrow { transform: translateX(3px); }
.gc-arrow { transition: transform 0.18s var(--step-ease); }
.guide-card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green-deep); background: var(--green-soft);
  border-radius: 999px; padding: 4px 11px;
}

/* Article */
.guide-article { padding: 0 0 70px; }
.guide-article .wrap { max-width: 760px; }
.guide-head { margin-bottom: 26px; }
.guide-head h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(28px, 5.4vw, 42px); line-height: 1.14; letter-spacing: -0.015em; margin: 14px 0 12px;
}
.guide-meta { font-size: 14px; color: var(--muted); margin: 0; }

.guide-tldr {
  background: var(--green-soft); border: 1px solid #cfe7db; border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 30px;
}
.guide-tldr-label {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px;
}
.guide-tldr p { margin: 0; font-size: 16.5px; line-height: 1.6; color: #24413a; }

.guide-toc {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 34px;
}
.guide-toc-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.guide-toc ul { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 8px; }
.guide-toc a { color: var(--blue); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.guide-toc a:hover { text-decoration: underline; }

.guide-body { font-size: 17px; line-height: 1.72; color: #2a3a48; }
.guide-body h2 {
  font-family: var(--font-display); font-weight: 560; font-size: 25px; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink); margin: 38px 0 12px; scroll-margin-top: 84px;
}
.guide-body p { margin: 0 0 16px; }
.guide-body ul, .guide-body ol { margin: 0 0 18px; padding-left: 24px; }
.guide-body li { margin-bottom: 9px; }
.guide-body strong { color: var(--ink); font-weight: 650; }
.guide-body em { color: var(--navy); }

.guide-faq { margin-top: 46px; padding-top: 8px; }
.guide-faq h2 {
  font-family: var(--font-display); font-weight: 560; font-size: 26px; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.guide-faq-item { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.guide-faq-item h3 { font-size: 17.5px; font-weight: 650; margin: 0 0 8px; color: var(--ink); }
.guide-faq-item p { font-size: 16px; line-height: 1.65; color: #33424f; margin: 0; }

.guide-cta {
  background: var(--ink); color: #eaf1f6; border-radius: var(--radius-lg);
  padding: 32px 30px; margin: 44px 0 0; text-align: center;
}
.guide-cta h2 { font-family: var(--font-display); font-weight: 560; font-size: 24px; color: #fff; margin: 0 0 10px; letter-spacing: -0.01em; }
.guide-cta p { font-size: 16px; color: #b7c8d6; max-width: 40em; margin: 0 auto 22px; line-height: 1.6; }
.guide-cta .btn-primary { font-size: 17px; }
.guide-cta-note { display: block; margin-top: 16px; font-size: 13px; color: #8ea6b8; }

.guide-related { margin-top: 52px; }
.guide-related > h2 { font-family: var(--font-display); font-weight: 560; font-size: 22px; margin: 0 0 18px; letter-spacing: -0.01em; }
.guide-related-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .guide-related-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-related-card {
  display: block; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 18px 20px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s var(--step-ease);
}
.guide-related-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.guide-related-card h3 { font-family: var(--font-display); font-weight: 560; font-size: 16.5px; line-height: 1.3; margin: 10px 0 0; letter-spacing: -0.005em; }

/* Illustrative examples page */

.examples-page { padding: 0 0 70px; }
.examples-page .wrap { max-width: 860px; }
.examples-page h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.015em; margin: 6px 0 14px;
}

.example-notice {
  background: #fff7e6; border: 1px solid #f0e0bb; border-radius: var(--radius);
  color: #6f5412; font-size: 15px; line-height: 1.6; padding: 18px 20px; margin: 0 0 36px;
}
.example-notice strong { color: #59430c; }

.example-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .example-grid { grid-template-columns: repeat(2, 1fr); } }

.example-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.example-card h2 {
  font-family: var(--font-display); font-weight: 560; font-size: 21px;
  line-height: 1.25; letter-spacing: -0.01em; margin: 12px 0 10px;
}
.example-card h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-deep); margin: 20px 0 8px;
}
.example-card p { font-size: 15.5px; line-height: 1.65; color: #33424f; margin: 0; }
.example-card .example-situation {
  font-size: 16px; color: var(--ink); border-left: 3px solid var(--line);
  padding-left: 14px; margin-bottom: 4px;
}
.example-card ul { margin: 0; padding-left: 20px; }
.example-card li { font-size: 15px; line-height: 1.6; color: #33424f; margin-bottom: 7px; }

.example-footnote {
  font-size: 13.5px; line-height: 1.65; color: #7c8894;
  border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 40px;
}

/* Purchase recovery page */

.recover-page { padding: 0 0 70px; }
.recover-page .wrap { max-width: 620px; }
.recover-page h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.015em; margin: 6px 0 14px;
}
.recover-form {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm); margin-top: 8px;
}
.recover-note {
  font-size: 14px; line-height: 1.65; color: var(--muted);
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}

/* "Your leverage" section — what the customer actually has going for them */

.leverage { background: #fff; border-block: 1px solid var(--line-soft); }

.lever-grid { display: grid; gap: 18px; margin-top: 38px; }
@media (min-width: 700px) { .lever-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .lever-grid { grid-template-columns: repeat(3, 1fr); } }

.lever {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.lever-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--green); margin-bottom: 12px;
}
.lever h3 {
  font-size: 17.5px; font-weight: 650; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.lever p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.62; }
.lever strong { color: var(--ink); font-weight: 650; }

.lever-close {
  margin: 34px auto 0;
  max-width: 44em;
  text-align: center;
  font-size: 17px;
  color: var(--ink);
}
.lever-close em { color: var(--green-deep); font-style: italic; }

/* ===========================================================================
   Data pages: hospital directory, bill-code lookup, free tools, trust pages.
   Shares the guide typography above; adds tables, stat blocks and lookups.
   =========================================================================== */

.hosp-page, .trust-page { padding: 40px 0 80px; }
.hosp-page h1, .trust-page h1 {
  font-family: var(--font-display); font-weight: 560; letter-spacing: -0.02em;
  font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; color: var(--ink); margin: 0 0 10px;
}
.hosp-sub { color: var(--muted); font-size: 16px; margin: 0 0 26px; }

.hosp-badge {
  display: inline-block; margin-bottom: 14px; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  background: #eef2f6; color: var(--navy); border: 1px solid var(--line);
}
.hosp-badge-nonprofit { background: var(--green-soft); color: var(--green-deep); border-color: #cbe6da; }
.hosp-badge-forprofit { background: #fdf3ec; color: #9a5a2b; border-color: #f0ddcc; }

.hosp-block { margin: 44px 0; }
.hosp-block > h2 {
  font-family: var(--font-display); font-weight: 560; font-size: clamp(21px, 2.6vw, 27px);
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 14px;
}
.hosp-block p { font-size: 16.5px; line-height: 1.68; color: #33424f; max-width: 46em; }
.hosp-source { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.hosp-punch {
  background: var(--green-soft); border-left: 3px solid var(--green);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: #24413a;
}
.hosp-lever {
  background: #f4f7fa; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 20px;
}
.hosp-must { list-style: none; padding: 0; margin: 0; }
.hosp-must li {
  position: relative; padding: 0 0 0 30px; margin-bottom: 18px;
  font-size: 16.5px; line-height: 1.68; color: #33424f; max-width: 46em;
}
.hosp-must li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px;
  border-radius: 4px; background: var(--green-soft); border: 1.5px solid var(--green);
}

/* Tables ------------------------------------------------------------------ */
.tbl-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.data-tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-tbl caption { text-align: left; font-size: 13.5px; color: var(--muted); padding-bottom: 10px; }
.data-tbl th, .data-tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-tbl thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); }
.data-tbl td.num, .data-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-tbl tbody tr:hover { background: #fbfaf7; }
.data-tbl a { color: var(--blue); text-decoration: none; font-weight: 550; }
.data-tbl a:hover { text-decoration: underline; }
.tbl-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.kv-tbl { min-width: 380px; }
.kv-tbl th[scope="row"] { width: 34%; font-weight: 600; color: var(--ink); }

/* Stats ------------------------------------------------------------------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.stat {
  flex: 1 1 150px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.stat span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.stat-row-lg .stat strong { font-size: 32px; }

.bigstat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.bigstat {
  flex: 1 1 200px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
}
.bigstat span { display: block; font-size: 13px; color: #9db3c5; margin-bottom: 6px; }
.bigstat strong { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.bigstat-alt { background: var(--green-deep); }
.bigstat-alt span { color: #a8d6c3; }

/* Lookups ----------------------------------------------------------------- */
.hosp-search { margin: 30px 0 44px; max-width: 620px; }
.hosp-search label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.hosp-search input[type="search"] {
  width: 100%; padding: 15px 17px; font-family: var(--font-body); font-size: 16px;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); -webkit-appearance: none;
}
.hosp-search input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 92, 143, 0.12); }
.hosp-search .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hosp-results:not(:empty) { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.hosp-result {
  display: block; padding: 13px 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.hosp-result:last-child { border-bottom: none; }
.hosp-result:hover { background: #f6f9fc; }
.hosp-result strong { display: block; font-size: 15.5px; font-weight: 600; }
.hosp-result span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.hosp-empty { padding: 14px 2px; font-size: 14.5px; color: var(--muted); }

.pill {
  display: inline-block; margin: 5px 6px 0 0; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: #eef2f6; color: var(--navy);
}
.pill-np { background: var(--green-soft); color: var(--green-deep); }

/* State and hospital listings ---------------------------------------------- */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; margin: 18px 0 44px; }
.state-card {
  display: block; padding: 15px 17px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s;
}
.state-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.state-card strong { display: block; font-size: 15.5px; font-weight: 600; }
.state-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.city-jump { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 30px; }
.city-jump a { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: #f2f5f8; color: var(--navy); text-decoration: none; }
.city-jump a:hover { background: #e4ebf2; }

.hosp-city-grid { columns: 2; column-gap: 40px; }
.hosp-city { break-inside: avoid; margin-bottom: 26px; }
.hosp-city h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 10px; font-weight: 650; }
.hosp-list { list-style: none; padding: 0; margin: 0; }
.hosp-list li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.hosp-list a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 550; }
.hosp-list a:hover { color: var(--blue); text-decoration: underline; }
.hosp-list-meta { display: block; }

.hosp-near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.hosp-near-card {
  display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.hosp-near-card:hover { border-color: var(--blue); }
.hosp-near-card strong { display: block; font-size: 15px; font-weight: 600; }
.hosp-near-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* Trust pages -------------------------------------------------------------- */
.trust-grid { max-width: 48em; }
.trust-block { margin: 40px 0; }
.trust-block > h2 {
  font-family: var(--font-display); font-weight: 560; font-size: clamp(21px, 2.6vw, 27px);
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 14px;
}
.trust-block p { font-size: 16.5px; line-height: 1.7; color: #33424f; }
.trust-block a { color: var(--blue); }
.trust-list, .trust-steps { padding-left: 0; margin: 16px 0; }
.trust-list { list-style: none; }
.trust-list li { position: relative; padding-left: 26px; margin-bottom: 16px; font-size: 16.5px; line-height: 1.68; color: #33424f; }
.trust-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.trust-steps { counter-reset: step; list-style: none; }
.trust-steps li {
  counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 18px;
  font-size: 16.5px; line-height: 1.68; color: #33424f;
}
.trust-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 650; display: flex; align-items: center; justify-content: center;
}
.trust-next { margin: 36px 0; font-size: 16.5px; }
.trust-next a { color: var(--blue); font-weight: 600; }

.source-list { list-style: none; padding: 0; margin: 20px 0; }
.source-item { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.source-item h3 { font-size: 17px; font-weight: 650; margin: 0 0 5px; }
.source-item h3 a { color: var(--ink); text-decoration: none; }
.source-item h3 a:hover { color: var(--blue); text-decoration: underline; }
.source-cite { font-size: 13px; color: var(--muted); margin: 0 0 7px; }
.source-note { font-size: 13.5px; color: var(--muted); margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* Tools -------------------------------------------------------------------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0 44px; }
.tool-card {
  display: block; padding: 24px 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s;
}
.tool-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.tool-card h2 { font-family: var(--font-display); font-weight: 560; font-size: 20px; margin: 0 0 10px; letter-spacing: -0.01em; }
.tool-card p { font-size: 15.5px; line-height: 1.6; color: #33424f; margin: 0 0 14px; }

.fpl-tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin: 26px 0 40px; }
.fpl-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.fpl-tool select {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); -webkit-appearance: none;
}
.fpl-result { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius); background: #f4f7fa; border: 1px solid var(--line); }
.fpl-result p { font-size: 15.5px; line-height: 1.65; color: #33424f; margin: 0 0 10px; }
.fpl-result p:last-child { margin-bottom: 0; }
.fpl-result a { color: var(--blue); }
.fpl-good { background: var(--green-soft); border-color: #cbe6da; }
.fpl-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.fpl-headline span { font-size: 15px; color: var(--muted); }
.fpl-headline strong { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.fpl-band { font-weight: 650; color: var(--ink); }
.fpl-detail { font-size: 14px; color: var(--muted); }
.fpl-privacy { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.check-list { list-style: none; padding: 0; margin: 26px 0 44px; }
.check-item { border-top: 1px solid var(--line-soft); padding: 16px 0; display: flex; gap: 14px; align-items: flex-start; }
.check-item input[type="checkbox"] { margin-top: 4px; width: 19px; height: 19px; flex: none; accent-color: var(--green); cursor: pointer; }
.check-item label { cursor: pointer; }
.check-item label strong { display: block; font-size: 16.5px; font-weight: 650; color: var(--ink); margin-bottom: 5px; }
.check-item label span { display: block; font-size: 15.5px; line-height: 1.62; color: #33424f; }
.check-item input:checked + label strong { color: var(--muted); text-decoration: line-through; }
.check-item input:checked + label span { color: #7b8894; }

@media (max-width: 720px) {
  .hosp-city-grid { columns: 1; }
  .bigstat-row { flex-direction: column; }
  .fpl-tool { padding: 20px 18px; }
}
