/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8F6F2;
  --bg-alt: #EFEBE4;
  --fg: #111827;
  --fg-muted: #6B7280;
  --fg-light: #9CA3AF;
  --primary: #1B4D3E;
  --primary-mid: #2D6A52;
  --accent: #E8960C;
  --accent-light: #FEF3C7;
  --surface: #FFFFFF;
  --border: #D6D0C8;
  --success: #059669;
  --danger: #DC2626;
  --warn: #D97706;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { color: var(--fg-muted); line-height: 1.7; }

/* === NAV === */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,246,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  color: var(--primary); letter-spacing: -0.03em;
}
.logo-dot { color: var(--accent); }
.nav-tagline { font-size: 0.8rem; color: var(--fg-light); letter-spacing: 0.03em; }

/* === HERO === */
.hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 1rem;
}
.hero-text h1 { color: var(--fg); margin-bottom: 1.2rem; }
.hero-text h1 .hero-strike {
  text-decoration: line-through; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; opacity: 0.6;
}
.hero-lede { font-size: 1.05rem; max-width: 46ch; margin-bottom: 2rem; }
.hero-proof-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.proof-badge { display: flex; flex-direction: column; }
.badge-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--primary); }
.badge-label { font-size: 0.75rem; color: var(--fg-muted); }

/* === BILL WIDGET === */
.bill-widget {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: 0 4px 40px rgba(27,77,62,0.08), 0 1px 4px rgba(0,0,0,0.04);
  font-family: var(--font-body);
}
.bw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.bw-title { font-weight: 600; font-size: 0.95rem; }
.bw-status { font-size: 0.72rem; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.bw-status--clean { background: #D1FAE5; color: #065F46; }
.bw-hospital { font-size: 0.78rem; color: var(--fg-muted); margin-bottom: 1rem; }
.bw-divider { height: 1px; background: var(--border); margin-bottom: 1rem; }
.bw-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.bw-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid transparent; }
.bw-item--ok { background: #F0FDF4; border-color: #BBF7D0; }
.bw-item--flag { background: #FFF7ED; border-color: #FED7AA; }
.bw-code { font-size: 0.68rem; font-weight: 700; color: var(--fg-muted); font-family: monospace; }
.bw-desc { font-size: 0.8rem; color: var(--fg); }
.bw-charge { font-size: 0.8rem; font-weight: 600; color: var(--fg); }
.bw-flag { grid-column: 2 / -1; font-size: 0.68rem; color: var(--warn); font-weight: 500; margin-top: -0.2rem; }
.bw-total-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 2px solid var(--fg); margin-top: 0.25rem; }
.bw-total-label { font-size: 0.85rem; font-weight: 500; }
.bw-total-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--primary); }
.bw-savings-bar { background: #F0FDF4; border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; }
.bsb-label { font-size: 0.78rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.bsb-label strong { color: var(--success); font-weight: 700; }
.bsb-track { height: 6px; background: #D1FAE5; border-radius: 99px; overflow: hidden; }
.bsb-fill { height: 100%; background: var(--success); border-radius: 99px; }
.bw-cta-btn {
  width: 100%; background: var(--primary); color: white;
  text-align: center; padding: 0.85rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  cursor: default;
}

/* === DECODED SECTION === */
.decoded { padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); background: var(--bg-alt); }
.decoded-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.section-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.75rem;
}
.decoded-text h2 { margin-bottom: 1rem; }
.decoded-text > p { margin-bottom: 1.5rem; }
.decu-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.decu-list li { font-size: 0.9rem; color: var(--fg); font-weight: 500; }

/* === PHONE FRAME === */
.phone-frame {
  background: #1A1A1A;
  border-radius: 36px;
  padding: 14px;
  max-width: 280px;
  margin: 0 auto;
}
.pf-screen {
  background: #F9F8F6;
  border-radius: 28px;
  overflow: hidden;
  padding: 1.5rem 1.25rem;
}
.pf-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.pf-dots { display: flex; gap: 5px; }
.pf-dots span { width: 9px; height: 9px; border-radius: 50%; background: #D1D5DB; }
.pf-label { font-size: 0.7rem; font-weight: 600; color: var(--fg-muted); margin-left: auto; }
.pf-search {
  background: white; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
}
.pf-search .ps-icon { font-size: 0.85rem; }
.pf-search span { font-size: 0.78rem; color: var(--fg-muted); }
.pf-result {
  background: white; border-radius: 12px; padding: 1rem;
  border: 1.5px solid var(--primary); margin-bottom: 0.75rem;
}
.pr-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.15rem; }
.pr-cpt { font-size: 0.65rem; color: var(--fg-light); font-family: monospace; margin-bottom: 0.6rem; }
.pr-bar {
  height: 8px; background: #E5E7EB; border-radius: 99px; overflow: hidden; margin-bottom: 0.35rem;
}
.pr-fill { width: 35%; height: 100%; background: var(--primary); border-radius: 99px; }
.pr-range-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--fg-muted); margin-bottom: 0.6rem; }
.pr-insurance-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.pr-ins-label { font-size: 0.72rem; color: var(--fg-muted); }
.pr-ins-val { font-weight: 700; font-size: 0.85rem; color: var(--success); }
.pr-note { font-size: 0.62rem; color: var(--fg-light); line-height: 1.4; }
.pf-trust-row { display: flex; flex-direction: column; gap: 0.2rem; }
.ptr { font-size: 0.65rem; color: var(--primary); font-weight: 500; }

/* === PROOF SECTION === */
.proof-section {
  background: var(--primary);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.proof-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: center;
}
.proof-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.15); }
.proof-stat { padding: 0 clamp(1rem, 2vw, 2rem); text-align: center; }
.ps-num { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; line-height: 1; }
.ps-text { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* === FEATURES === */
.features { padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); background: var(--bg); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-heading { text-align: center; margin-bottom: 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feat-card {
  background: var(--bg);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}
.feat-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }
.feat-card h3 { font-family: var(--font-display); margin-bottom: 0.6rem; font-size: 1.05rem; }
.feat-card p { font-size: 0.875rem; line-height: 1.65; color: var(--fg-muted); }

/* === MANIFESTO === */
.manifesto {
  background: var(--primary);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.manifesto-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.manifesto-rule { width: 48px; height: 3px; background: var(--accent); margin: 0 auto 2.5rem; border-radius: 2px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: white;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.manifesto-body { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.75; }

/* === CLOSING === */
.closing {
  background: var(--bg-alt);
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.closing-sub { font-size: 1rem; color: var(--fg-muted); margin-bottom: 2rem; }
.closing-statement {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  padding: 1.25rem 0;
  display: inline-block;
}

/* === FOOTER === */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: white; display: block; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.fl-head { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.fl-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 0.4rem; }
.fl-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-widget { max-width: 460px; margin: 0 auto; width: 100%; }
  .decoded-inner { grid-template-columns: 1fr; }
  .decoded-visual { order: -1; }
  .proof-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof-divider { display: none; }
  .proof-stat { padding: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-proof-row { flex-direction: column; gap: 1rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
}