/* ==========================================
   Medical Bill Fighter - Landing Page Theme
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-cream: #F5F1EB;
  --bg-white: #FDFCFA;
  --bg-slate: #1A2332;
  --accent: #C81F2A;
  --accent-dark: #A01823;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-on-dark: #F5F1EB;
  --text-on-dark-muted: rgba(245,241,235,0.65);
  --border: #E5DFD5;
  --border-dark: rgba(245,241,235,0.15);
  --success: #2D8A4E;
  --warning: #B86800;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 56px;
  background: rgba(26,35,50,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}

.nav-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  background: var(--bg-slate);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 20%, rgba(200,31,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-text { color: var(--text-on-dark); }

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  max-width: 46ch;
  line-height: 1.7;
}

/* Mockup Card */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.mockup-card {
  background: rgba(245,241,235,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(4px);
}

.mockup-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.75rem;
}

.mockup-items { display: flex; flex-direction: column; gap: 0.6rem; }

.mockup-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
}

.mockup-item.warning { border-left: 3px solid var(--warning); }
.mockup-item.success { border-left: 3px solid var(--success); }

.item-name { font-size: 0.85rem; font-weight: 500; color: var(--text-on-dark); grid-column: 1; }
.item-flag { font-size: 0.72rem; color: var(--text-on-dark-muted); grid-column: 1; }
.item-amount {
  font-size: 0.9rem; font-weight: 700; color: var(--warning); text-align: right; align-self: center;
}
.item-amount.saved { color: var(--success); font-size: 0.78rem; }

.mockup-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.total-label { font-size: 0.8rem; color: var(--text-on-dark-muted); }
.total-amount { font-size: 1.5rem; font-weight: 900; font-family: 'Playfair Display', serif; color: var(--text-on-dark); }

/* Hero Stats Bar */
.hero-stats {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.stat {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border-dark);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-on-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  line-height: 1.4;
}

/* --- Manifesto Section --- */
.manifesto {
  background: var(--bg-white);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}

.manifesto-inner { max-width: 800px; margin: 0 auto; }

.manifesto-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.manifesto-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 68ch;
}

.manifesto-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.value-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(200,31,42,0.07);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value strong { color: var(--text-primary); }

/* --- Playbook Section --- */
.playbook {
  background: var(--bg-cream);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
}

.playbook-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.playbook-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.playbook-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-white);
}

.step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-right: none; }

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(200,31,42,0.1);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Pricing Block */
.pricing-block {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.pricing-option {
  background: var(--bg-slate);
  border-radius: 16px;
  padding: 2.5rem;
  color: var(--text-on-dark);
}

.pricing-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.pricing-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.pricing-note {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.compare-label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }

.compare-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-val.strike { text-decoration: line-through; color: var(--text-muted); }
.compare-val.accent { color: var(--accent); }

/* --- Outcomes Section --- */
.outcomes {
  background: var(--bg-white);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
}

.outcomes-header { max-width: 1100px; margin: 0 auto 2.5rem; }

.outcomes-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.outcomes-header p { font-size: 1rem; color: var(--text-muted); }

.error-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.error-card {
  background: var(--bg-cream);
  padding: 1.75rem;
}

.error-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(200,31,42,0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.error-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.error-rate {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.error-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* --- Proof / Testimonials --- */
.proof {
  background: var(--bg-slate);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  color: var(--text-on-dark);
}

.proof-header { max-width: 1100px; margin: 0 auto 2.5rem; }

.proof-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.proof-header p { font-size: 1rem; color: var(--text-on-dark-muted); }

.testimonials {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: rgba(245,241,235,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.75rem;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-stars::after {
  content: '\2605\2605\2605\2605\2605';
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial blockquote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-attribution {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

/* --- Closing --- */
.closing {
  background: var(--accent);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.closing p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: white;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-cream);
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border-dark); }
  .stat:nth-child(even) { border-right: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2), .step:nth-child(4) { border-right: none; }
  .pricing-block { grid-template-columns: 1fr; }
  .error-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .error-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}