/* ─── TrueMedBills Design System ─────────────────────────────────────────── */
:root {
  --blue-900: #0d2d4e;
  --blue-700: #1a56a0;
  --blue-500: #2563eb;
  --blue-100: #eff6ff;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --yellow-500: #eab308;
  --yellow-100: #fef9c3;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f9fafb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 0.75rem; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.bg-light { background: var(--gray-100); }
.bg-primary { background: var(--blue-700); color: var(--white); }
.text-center { text-align: center; }
.accent { color: var(--blue-500); }
.optional { font-weight: 400; font-size: 0.85em; color: var(--gray-500); }
.optional-label { font-size: 0.78em; font-weight: 400; color: var(--gray-500); }
.required { color: var(--red-600); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all 0.15s; text-align: center; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(0.92); }
.btn-primary { background: var(--blue-500); color: white; border-color: var(--blue-500); }
.btn-outline { border-color: var(--blue-500); color: var(--blue-500); }
.btn-ghost { background: transparent; border-color: var(--gray-200); color: var(--gray-700); }
.btn-white { background: white; color: var(--blue-700); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem; height: 64px; }
.nav-logo { font-size: 1.3rem; font-weight: 800; color: var(--blue-700); }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue-500); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 6rem 0 5rem; background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%); color: white; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: white; padding: 0.3rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.2rem; opacity: 0.9; max-width: 640px; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 2rem; font-weight: 800; }
.stat span { font-size: 0.85rem; opacity: 0.8; }
.trust-row { display: flex; gap: 2rem; justify-content: center; font-size: 0.85rem; flex-wrap: wrap; color: var(--gray-600) !important; }

/* ─── How It Works ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; padding: 2rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-500); color: white; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { margin-bottom: 0.5rem; }

/* ─── Module Cards ──────────────────────────────────────────────────────── */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.module-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.module-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.module-card h3 { margin-bottom: 0.5rem; }
.module-card p { color: var(--gray-700); margin-bottom: 1.5rem; }

/* ─── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.pricing-card { background: white; border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; text-align: center; }
.pricing-card.featured { border-color: var(--blue-500); transform: scale(1.03); box-shadow: var(--shadow); }
.pricing-label { font-weight: 700; color: var(--gray-700); margin-bottom: 0.5rem; }
.pricing-amount { font-size: 3rem; font-weight: 800; color: var(--blue-700); margin-bottom: 1.5rem; }
.pricing-card ul { text-align: left; margin-bottom: 1.5rem; }
.pricing-card li { padding: 0.35rem 0; font-size: 0.95rem; }
.badge-launch { background: var(--green-100); color: var(--green-600); font-size: 0.75rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 600; }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq-item p { margin-top: 0.75rem; color: var(--gray-700); }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--gray-200); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }
.trust-badges { display: flex; flex-direction: column; gap: 0.4rem; }
.badge { font-size: 0.8rem; color: var(--gray-500); }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 0.95rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: var(--gray-500); font-size: 0.9rem; }
.footer ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: var(--gray-500); font-size: 0.85rem; }

/* ─── Page Header ───────────────────────────────────────────────────────── */
.page-header { background: var(--blue-900); color: white; padding: 3rem 0; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.85; font-size: 1.05rem; }
.page-content { padding: 3rem 0; }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-section { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.form-section h2 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--gray-900); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0.6rem 0.8rem;
  font-size: 0.95rem; width: 100%; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.input-prefix { display: flex; align-items: center; background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 8px; overflow: hidden; padding-left: 0.75rem; font-weight: 600; color: var(--gray-500); }
.input-prefix input { border: none; background: transparent; padding-left: 0.3rem; }
.form-hint { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1rem; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 400; color: var(--gray-700); }
.radio-label input[type="radio"] { margin: 0; flex-shrink: 0; width: auto; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; font-weight: 400; color: var(--gray-700); }
.checkbox-group label input[type="checkbox"] { margin: 0; flex-shrink: 0; width: auto; }

/* ─── Upload Zone ───────────────────────────────────────────────────────── */
.upload-zone { border: 2px dashed var(--gray-200); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all 0.2s; background: var(--gray-100); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--blue-500); background: var(--blue-100); }
.file-input { display: none; }
.upload-label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.upload-icon { font-size: 2.5rem; }
.upload-sub { font-size: 0.85rem; color: var(--gray-500); }
.upload-trust { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gray-500); }
.file-selected { background: var(--green-100); border-color: var(--green-600); }
.upload-parse-notice { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 0.75rem 1rem; color: #166534; font-size: 0.9rem; margin-bottom: 1rem; }
.upload-auto-notice { display: flex; align-items: flex-start; gap: 0.75rem; background: #f0fdf4; border: 2px solid #4ade80; border-radius: 10px; padding: 1rem 1.25rem; color: #166534; margin-bottom: 1rem; }
.upload-auto-icon { font-size: 1.5rem; flex-shrink: 0; }
.upload-auto-text { flex: 1; font-size: 0.95rem; line-height: 1.5; }
.upload-auto-text strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }
.file-selected-name { color: var(--green-600); font-weight: 600; font-size: 0.9rem; }

/* ─── Line Items ────────────────────────────────────────────────────────── */
.line-item { display: grid; grid-template-columns: 3fr 1fr 0.6fr 1fr auto; gap: 0.5rem; margin-bottom: 0.75rem; align-items: center; }
.li-desc, .li-cpt, .li-qty, .li-charge {
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.9rem;
}
.btn-remove-line { background: none; border: none; color: var(--gray-500); cursor: pointer; font-size: 1.1rem; padding: 0.4rem; }
.btn-remove-line:hover { color: var(--red-600); }

/* ─── RX Items ──────────────────────────────────────────────────────────── */
.rx-item { display: grid; grid-template-columns: 2fr 1fr 0.7fr 1fr 1.5fr auto; gap: 0.5rem; margin-bottom: 0.75rem; align-items: center; }
.rx-name, .rx-dosage, .rx-qty, .rx-price, .rx-pharmacy {
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.9rem;
}

/* ─── Submit Area ───────────────────────────────────────────────────────── */
.form-submit { text-align: center; padding: 1.5rem 0; }
.submit-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gray-500); }

/* ─── QA Mode ───────────────────────────────────────────────────────────── */
.qa-banner { background: var(--yellow-100); border: 1px solid var(--yellow-500); border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; }
.qa-buttons { display: flex; gap: 0.75rem; }

/* ─── Results ───────────────────────────────────────────────────────────── */
.results-header { background: var(--blue-900); color: white; padding: 3rem 0; }
.results-content { padding: 2.5rem 0; display: flex; flex-direction: column; gap: 2rem; }
.savings-banner { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1rem; }
.savings-amount { font-size: 3rem; font-weight: 800; color: #4ade80; }
.savings-label { font-size: 1rem; opacity: 0.8; }
.savings-low { opacity: 0.7; }

/* Clean bill banner */
.savings-clean { flex-direction: row; align-items: center; gap: 1rem; background: rgba(74,222,128,0.15); border: 2px solid #4ade80; border-radius: 12px; padding: 1rem 1.5rem; margin-top: 1rem; }
.savings-unknown { flex-direction: row; align-items: center; gap: 1rem; background: rgba(251,191,36,0.15); border: 2px solid #f59e0b; border-radius: 12px; padding: 1rem 1.5rem; margin-top: 1rem; }
.savings-clean-icon { font-size: 2rem; line-height: 1; }
.savings-clean-text { display: flex; flex-direction: column; gap: 0.2rem; }
.savings-clean-text strong { font-size: 1.2rem; font-weight: 800; color: #fff; display: block; }
.savings-clean-text span { font-size: 0.9rem; opacity: 0.85; color: #fff; }

/* Scanned items list */
.scanned-items-card { border-left: 4px solid var(--blue-500); }
.scanned-items-hint { color: var(--gray-500); font-size: 0.875rem; margin: 0.25rem 0 1rem; }
.scanned-items-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.scanned-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; background: var(--gray-50); border-radius: 8px; flex-wrap: wrap; }
.scanned-item-num { width: 1.5rem; height: 1.5rem; background: var(--blue-500); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.scanned-item-desc { flex: 1; font-size: 0.9rem; color: var(--gray-800); min-width: 120px; }
.scanned-item-cpt { background: var(--gray-200); color: var(--gray-600); font-size: 0.78rem; padding: 0.15rem 0.5rem; border-radius: 4px; white-space: nowrap; }
.scanned-item-amt { font-weight: 700; font-size: 0.9rem; color: var(--gray-700); white-space: nowrap; margin-left: auto; }
.scanned-items-footer { font-size: 0.8rem; color: var(--gray-500); margin: 0.75rem 0 0; }

/* Floating analyze button */
.floating-analyze { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 999; pointer-events: none; }
.floating-analyze-btn { pointer-events: all; box-shadow: 0 4px 20px rgba(0,0,0,0.25); border-radius: 50px !important; padding: 0.85rem 2rem; font-size: 1rem; white-space: nowrap; }
@media (max-width: 600px) { .floating-analyze-btn { font-size: 0.95rem; padding: 0.8rem 1.5rem; } }
.btn-spinner { display: inline-block; width: 0.9rem; height: 0.9rem; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 0.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Payment success page */
.payment-success-header { text-align:center; padding: 3rem 1rem 2rem; }
.payment-success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.payment-success-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.payment-success-header p { color: #4b5563; font-size: 1.1rem; }
.payment-loading-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; text-align: center; margin: 1.5rem 0; }

/* Analysis loading overlay */
#analysis-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999; align-items: center; justify-content: center; }
#analysis-overlay.active { display: flex; }
.analysis-overlay-card { background: white; border-radius: 16px; padding: 2.5rem 3rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-width: 340px; width: 90%; }
.analysis-spinner { width: 52px; height: 52px; border: 5px solid #e5e7eb; border-top-color: var(--blue-600, #2563eb); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1.25rem; }
.analysis-overlay-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.analysis-overlay-sub { font-size: 0.9rem; color: #6b7280; line-height: 1.6; }

.section-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-error { background: var(--red-100); color: var(--red-600); border: 1px solid var(--red-600); }

.error-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.error-item { display: flex; gap: 1rem; align-items: flex-start; padding: 0.75rem 1rem; border-radius: 8px; background: var(--red-100); }
.error-badge { background: var(--red-600); color: white; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; white-space: nowrap; text-transform: uppercase; }
.error-text { font-size: 0.9rem; color: var(--gray-700); }

.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-table th { background: var(--gray-100); padding: 0.7rem 1rem; text-align: left; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); }
.results-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); }
.row-flagged { background: #fff5f5; }
.row-flagged td { background: inherit; }
.savings-positive { color: var(--red-600); font-weight: 700; }
.flag-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; background: var(--red-100); color: var(--red-600); }
.flag-ok { color: var(--green-600); font-weight: 700; }
.cpt-auto { font-size: 0.7rem; color: var(--gray-500); cursor: help; }
.line-items-empty { text-align: center; color: var(--gray-500); padding: 2rem 1rem; font-size: 0.95rem; }
.line-items-empty-card { background: #fffbeb; border: 1px solid #f59e0b; border-radius: 10px; padding: 1.5rem 2rem; color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }
.line-items-empty-card p { margin: 0 0 0.75rem; }
.line-items-empty-card ul { margin: 0.5rem 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* Line item cards */
.line-item-cards { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.lic { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--gray-200); background: var(--gray-50); flex-wrap: wrap; }
.lic-ok  { border-left: 4px solid var(--green-500); }
.lic-over { border-left: 4px solid var(--red-500); background: #fff8f8; }
.lic-flagged { border-left: 4px solid #f59e0b; background: #fffbeb; }
.lic-left { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 180px; }
.lic-num { width: 1.6rem; height: 1.6rem; background: var(--blue-500); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.lic-info { display: flex; flex-direction: column; gap: 0.3rem; }
.lic-desc { font-size: 0.95rem; font-weight: 600; color: var(--gray-800); }
.lic-cpt { background: var(--gray-200); color: var(--gray-600); font-size: 0.78rem; padding: 0.15rem 0.5rem; border-radius: 4px; width: fit-content; }
.lic-right { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.lic-col { display: flex; flex-direction: column; align-items: flex-end; min-width: 80px; }
.lic-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); font-weight: 600; }
.lic-val { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.lic-charged { color: var(--gray-900); }
.lic-verdict { font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 20px; white-space: nowrap; }
.lic-ok-badge { background: #dcfce7; color: #166534; }
.lic-over-badge { background: #fee2e2; color: #991b1b; }
.lic-unknown { color: var(--gray-400); }
@media (max-width: 640px) {
  .lic { flex-direction: column; align-items: flex-start; }
  .lic-right { width: 100%; justify-content: space-between; gap: 0.75rem; }
  .lic-col { align-items: flex-start; }
}
.recommend-banner { background: var(--green-100); color: var(--green-600); padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; margin-top: 1rem; }
.analysis-summary { font-size: 1.05rem; line-height: 1.7; color: var(--gray-700); margin-bottom: 1rem; }

/* ─── Paywall ───────────────────────────────────────────────────────────── */
.paywall-section { background: white; border: 2px solid var(--blue-500); border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.paywall-lock { font-size: 3rem; margin-bottom: 1rem; }
.paywall-section h2 { margin-bottom: 0.5rem; }
.paywall-section p { color: var(--gray-700); margin-bottom: 2rem; }
.paywall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; text-align: left; }
.paywall-card { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; }
.paywall-card-featured { border-color: var(--blue-500); box-shadow: var(--shadow); }
.paywall-tier-label { font-weight: 700; color: var(--gray-700); margin-bottom: 0.5rem; }
.paywall-price { font-size: 2.5rem; font-weight: 800; color: var(--blue-700); margin-bottom: 1.5rem; }
.paywall-features { margin-bottom: 1.5rem; }
.paywall-features li { padding: 0.4rem 0; font-size: 0.95rem; }
.paywall-guarantee { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gray-500); text-align: center; }

/* ─── Drug Cards ────────────────────────────────────────────────────────── */
.drug-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.drug-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dosage { font-weight: 400; color: var(--gray-500); font-size: 0.9em; }
.savings-badge { background: var(--green-100); color: var(--green-600); font-weight: 700; font-size: 0.9rem; padding: 0.3rem 0.8rem; border-radius: 999px; }
.drug-prices { display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-item { display: flex; flex-direction: column; gap: 0.2rem; }
.price-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.price-value { font-size: 1.3rem; font-weight: 700; }
.price-value.current { color: var(--red-600); }
.price-value.fair { color: var(--green-600); }
.discount-sources h4 { font-size: 0.85rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.discount-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.discount-link { display: flex; align-items: center; gap: 0.5rem; background: var(--blue-100); color: var(--blue-700); padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; }
.disc-price { font-weight: 700; color: var(--green-600); }

/* ─── Package output ────────────────────────────────────────────────────── */
.qa-package-section { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; }
.package-output { margin-top: 1.5rem; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.package-block { margin-bottom: 2rem; }
.package-block h3 { margin-bottom: 0.75rem; }
.package-content { background: var(--gray-100); padding: 1.25rem; border-radius: 8px; white-space: pre-wrap; font-size: 0.9rem; line-height: 1.7; }
.script-block { border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
.script-block summary { padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; background: var(--gray-100); }
.script-content { padding: 1rem; white-space: pre-wrap; font-size: 0.9rem; line-height: 1.7; }

/* ─── Toggle ────────────────────────────────────────────────────────────── */
.toggle-group { margin-bottom: 2rem; }
.toggle-group label { font-weight: 600; display: block; margin-bottom: 0.75rem; }
.toggle-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.toggle-btn { padding: 0.6rem 1.4rem; border: 2px solid var(--gray-200); border-radius: var(--radius); background: white; cursor: pointer; font-weight: 600; transition: all 0.15s; }
.toggle-btn.active { background: var(--blue-500); color: white; border-color: var(--blue-500); }

/* ─── Admin ─────────────────────────────────────────────────────────────── */
.admin-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-100); }
.admin-login-box { background: white; border-radius: var(--radius); padding: 3rem; width: 380px; box-shadow: var(--shadow); }
.admin-login-box h1 { font-size: 1.5rem; margin-bottom: 2rem; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--gray-900); color: white; padding: 2rem; }
.admin-logo { font-size: 1.1rem; font-weight: 800; margin-bottom: 2rem; color: white; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-sidebar a { color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; }
.admin-sidebar a.active, .admin-sidebar a:hover { color: white; }
.admin-main { padding: 2.5rem; background: var(--gray-100); overflow: auto; }
.admin-main h1 { margin-bottom: 2rem; }
.admin-table-section { background: white; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.admin-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.count-badge { background: var(--blue-100); color: var(--blue-700); font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { background: var(--gray-100); padding: 0.6rem 0.75rem; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--gray-500); white-space: nowrap; }
.admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--gray-200); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-col { font-family: monospace; font-size: 0.78rem; color: var(--gray-500); }
.null-val { color: var(--gray-200); font-style: italic; }
.json-val { font-family: monospace; font-size: 0.78rem; }
.empty-msg { color: var(--gray-500); font-style: italic; text-align: center; padding: 2rem; }
.admin-section { background: white; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.admin-section.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--blue-700); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; }
.admin-table-sm { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table-sm td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--gray-200); }
.conversion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.admin-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.admin-filters input { border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.status-completed { color: var(--green-600); font-weight: 600; }
.status-pending { color: var(--yellow-500); }
.status-refunded { color: var(--red-600); }

/* ─── Static pages ──────────────────────────────────────────────────────── */
.static-page { padding: 4rem 0; max-width: 760px; }
.static-page h1 { margin-bottom: 1.5rem; }
.static-page h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.static-page p { color: var(--gray-700); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .steps { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .paywall-grid { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 1fr 1fr; }
  .rx-item { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

/* ─── Financial Assistance Module ───────────────────────────────────────── */
.info-banner { background: var(--blue-100); border: 1.5px solid #bfdbfe; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; display: flex; gap: 0.75rem; font-size: 0.9rem; color: var(--blue-700); }
.info-icon { font-size: 1.25rem; flex-shrink: 0; }
.fpl-display { margin: 1.25rem 0; }
.fpl-label-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--gray-700); }
.fpl-brackets { font-size: 0.78rem; color: var(--gray-500); }
.fpl-bar { position: relative; height: 12px; background: var(--gray-200); border-radius: 6px; overflow: visible; }
.fpl-fill { height: 100%; background: linear-gradient(to right, var(--green-600), #fbbf24, var(--red-600)); border-radius: 6px; transition: width 0.6s; }
.fpl-marker { position: absolute; top: -18px; font-size: 0.7rem; color: var(--gray-500); transform: translateX(-50%); }
.fpl-200 { left: 40%; }
.fpl-400 { left: 80%; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.25rem 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.2rem; }
.eligibility-badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; margin: 0.75rem 0; }
.eligibility-full_writeoff { background: var(--green-100); color: var(--green-600); }
.eligibility-partial_discount { background: var(--yellow-100); color: #92400e; }
.eligibility-payment_plan { background: var(--blue-100); color: var(--blue-700); }
.eligibility-unlikely { background: var(--red-100); color: var(--red-600); }
.eligibility-unknown { background: var(--gray-100); color: var(--gray-700); }
.info-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--gray-700); background: var(--gray-100); padding: 0.75rem 1rem; border-radius: 8px; }
.legal-disclaimer { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.82rem; color: var(--gray-500); margin: 1.5rem 0; }
.cross-module-banner { background: #fef9c3; border: 1.5px solid #fde047; border-radius: var(--radius); padding: 0.9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: 0.9rem; }

/* ─── Credit Repair Module ──────────────────────────────────────────────── */
.debt-entry { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: var(--white); }
.debt-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.debt-entry-header h3 { margin: 0; font-size: 1rem; color: var(--gray-700); }
.debt-analysis-card { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.debt-removable { border-color: var(--green-600); background: #f0fdf4; }
.debt-review { border-color: #fbbf24; background: #fefce8; }
.debt-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.debt-provider { color: var(--gray-500); font-size: 0.875rem; margin-left: 0.4rem; }
.debt-meta { display: flex; align-items: center; gap: 0.75rem; }
.debt-amount { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.debt-status-badge { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
.debt-remove { background: var(--green-100); color: var(--green-600); }
.debt-review-badge { background: var(--yellow-100); color: #92400e; }
.removal-reasons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.removal-tag { background: var(--green-100); color: var(--green-600); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.violations-list { margin-bottom: 0.75rem; }
.debt-footer { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--gray-600); flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--gray-200); }

/* ─── Homepage v2 ───────────────────────────────────────────────────────── */

/* Hero */
.hero { background: linear-gradient(160deg, #fff 0%, #eff6ff 60%, #dbeafe 100%); padding: 5rem 0 4rem; color: var(--gray-900); }
.hero-badge { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: 3.4rem; font-weight: 900; line-height: 1.1; color: var(--blue-900); margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: var(--gray-700); max-width: 640px; margin-bottom: 2rem; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.hero-counter { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.5rem; }
.counter-amount { font-size: 2rem; font-weight: 900; color: var(--green-600); }
.counter-label { font-size: 0.9rem; color: var(--gray-500); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: var(--gray-600); }

/* Section scaffolding */
.section { padding: 3.5rem 0; }
.section-title { font-size: 2.1rem; font-weight: 800; color: var(--blue-900); text-align: center; margin-bottom: 0.6rem; }
.section-sub { text-align: center; color: var(--gray-600); font-size: 1rem; margin-bottom: 2.5rem; }

/* Problem stats */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.stat-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.stat-card-number { font-size: 2.5rem; font-weight: 900; color: var(--blue-700); margin-bottom: 0.5rem; }
.stat-card-label { font-size: 0.9rem; color: var(--gray-600); line-height: 1.4; }
.problem-microcopy { text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--blue-700); margin-top: 0.5rem; }

/* 5 Module cards */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.module-card-v2 { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 1.75rem; display: flex; gap: 1rem; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.module-card-v2:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.module-card-icon { font-size: 2.2rem; flex-shrink: 0; }
.module-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.module-card-body p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 0.75rem; }
.module-free-hook { font-size: 0.8rem; color: var(--green-600); font-weight: 600; margin-bottom: 0.25rem; }
.module-paid-teaser { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.9rem; }
.module-cta { margin-top: auto; }
.module-blue { border-top: 3px solid var(--blue-500); }
.module-red { border-top: 3px solid #ef4444; }
.module-green { border-top: 3px solid var(--green-600); }
.module-purple { border-top: 3px solid #7c3aed; }
.module-teal { border-top: 3px solid #0d9488; }

/* How it works */
.step { text-align: center; padding: 1.5rem; }
.step-icon { font-size: 2.5rem; margin: 0.5rem 0 0.75rem; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-item { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.trust-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.trust-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--blue-900); }
.trust-item p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }

/* Pricing v2 */
.pricing-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card-v2 { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; position: relative; }
.pricing-featured { border-color: var(--blue-500); border-width: 2px; box-shadow: 0 8px 32px rgba(37,99,235,0.15); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue-500); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.pricing-tier-label { font-size: 0.85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.pricing-amount-v2 { font-size: 3rem; font-weight: 900; color: var(--blue-700); line-height: 1; margin-bottom: 0.3rem; }
.pricing-desc { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pricing-features li { font-size: 0.875rem; color: var(--gray-700); }
.feature-no { color: var(--gray-400); }

/* Quiz */
.quiz-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 2.5rem; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress { margin-bottom: 0.75rem; }
.quiz-step-num { font-size: 0.8rem; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.06em; }
.quiz-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue-900); margin-bottom: 1.25rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.quiz-option { display: flex; align-items: center; gap: 0.75rem; background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0.75rem 1rem; cursor: pointer; font-size: 0.9rem; color: var(--gray-700); transition: border-color 0.15s, background 0.15s; }
.quiz-option:hover { border-color: var(--blue-500); background: var(--blue-100); }
.quiz-option input { accent-color: var(--blue-500); flex-shrink: 0; }
.quiz-result-card { display: flex; align-items: center; gap: 1rem; background: var(--blue-100); border: 1.5px solid #bfdbfe; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.quiz-result-icon { font-size: 1.75rem; flex-shrink: 0; }
.quiz-result-body { display: flex; justify-content: space-between; align-items: center; flex: 1; flex-wrap: wrap; gap: 0.5rem; }
.quiz-result-body strong { font-size: 0.95rem; color: var(--blue-900); }

/* FAQ */
.faq-section .faq-list { max-width: 720px; margin: 0 auto; }

/* Final CTA */
.final-cta { background: var(--blue-900); }
.final-cta h2 { color: #fff; font-size: 2.4rem; font-weight: 900; margin-bottom: 0.75rem; }
.final-cta-sub { color: #93c5fd; font-size: 1.05rem; margin-bottom: 2rem; }
.btn-white { background: #fff; color: var(--blue-900); font-weight: 700; }
.btn-white:hover { background: var(--blue-100); }
.final-cta-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.final-cta-links a { color: #93c5fd; font-size: 0.9rem; text-decoration: underline; }
.final-cta-links span { color: #4b6fa3; }

/* Footer updates */
.footer-disclaimer { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.75rem; line-height: 1.4; }

/* ── Responsive homepage ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .stat-cards { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid-v2 { grid-template-columns: 1fr; }
  .module-card-v2 { flex-direction: column; }
  .final-cta h2 { font-size: 1.8rem; }
  .final-cta-links { gap: 0.5rem; font-size: 0.8rem; }
  .section-title { font-size: 1.7rem; }
}

/* ─── Homepage v3 (Redesign) ─────────────────────────────────────────────── */

/* ── Section scaffolding v3 ── */
.section-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 0.6rem;
}
.section-title-v2 {
  font-size: 2.25rem; font-weight: 900; color: var(--blue-900); line-height: 1.15;
  margin-bottom: 0.6rem; text-align: center;
}
.section-sub-v2 {
  font-size: 1rem; color: var(--gray-600); text-align: center; margin-bottom: 1.75rem;
}

/* ── Hero v3 ── */
.hero-v3 {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d1b2e 0%, #0f2d52 50%, #1a4080 100%);
  padding: 5.5rem 0 5rem;
}
.hero-v3-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 600px at 70% 50%, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-v3-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-v3-content { position: relative; z-index: 1; }
.hero-pill {
  display: inline-block; background: rgba(59,130,246,0.25); border: 1px solid rgba(99,179,237,0.4);
  color: #93c5fd; font-size: 0.82rem; font-weight: 700; padding: 0.35rem 1rem;
  border-radius: 999px; letter-spacing: 0.04em; margin-bottom: 1.5rem;
}
.hero-v3-h1 {
  font-size: 3.4rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-accent { color: #60a5fa; }
.hero-v3-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 500px;
  margin-bottom: 2.25rem;
}
.hero-v3-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #2563eb; color: #fff; font-size: 1rem; font-weight: 700;
  padding: 0.85rem 2rem; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,99,235,0.45); transition: all 0.15s;
  border: 2px solid transparent;
}
.btn-hero-primary:hover { background: #1d4ed8; box-shadow: 0 6px 32px rgba(37,99,235,0.55); text-decoration: none; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; color: #93c5fd; font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.5rem; border-radius: 10px; text-decoration: none;
  border: 1.5px solid rgba(99,179,237,0.35); transition: all 0.15s;
}
.btn-hero-ghost:hover { border-color: #93c5fd; background: rgba(147,197,253,0.08); text-decoration: none; }
.hero-trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 500;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}

/* ── Hero card stack ── */
.hero-v3-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero-card-stack { position: relative; width: 340px; height: 320px; }
.hero-floating-card {
  position: absolute; background: #fff; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.9rem; min-width: 280px;
  transition: transform 0.3s;
}
.hfc-1 { top: 0; left: 0; transform: rotate(-2deg); z-index: 3; }
.hfc-2 { top: 100px; left: 30px; transform: rotate(1deg); z-index: 2; }
.hfc-3 { top: 200px; left: 10px; transform: rotate(-1deg); z-index: 1; }
.hero-card-stack:hover .hfc-1 { transform: rotate(-2deg) translateY(-6px); }
.hero-card-stack:hover .hfc-2 { transform: rotate(1deg) translateY(-4px); }
.hero-card-stack:hover .hfc-3 { transform: rotate(-1deg) translateY(-2px); }
.hfc-icon { font-size: 1.6rem; flex-shrink: 0; }
.hfc-title { font-size: 0.88rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.hfc-sub { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.15rem; }
.hfc-badge {
  margin-left: auto; flex-shrink: 0; font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.hfc-red { background: #fee2e2; color: #dc2626; }
.hfc-green { background: #dcfce7; color: #16a34a; }
.hfc-purple { background: #f3e8ff; color: #7c3aed; }

/* ── Stats band ── */
.stats-band {
  background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  padding: 2.25rem 0;
}
.stats-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.stats-band-item { flex: 1; text-align: center; min-width: 160px; }
.stats-band-num { font-size: 2.1rem; font-weight: 900; color: var(--blue-700); line-height: 1.1; }
.stats-band-label { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.3rem; line-height: 1.4; }
.stats-band-divider { width: 1px; height: 48px; background: var(--gray-200); flex-shrink: 0; }

/* ── Tools grid ── */
.tools-section { background: var(--gray-100); }
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.tools-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Tool categories */
.tool-category { margin-bottom: 3rem; }
.tool-category-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}
.tool-category-icon { font-size: 1.75rem; line-height: 1; margin-top: 0.1rem; flex-shrink: 0; }
.tool-category-title { font-size: 1.2rem; font-weight: 800; color: var(--blue-900); margin: 0 0 0.25rem; }
.tool-category-desc { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* Quiz nudge below tools */
.tools-quiz-nudge {
  text-align: center; margin-top: 1rem; padding: 1rem;
  font-size: 0.9rem; color: var(--gray-500);
}
.tools-quiz-nudge a { color: var(--blue-500); font-weight: 600; text-decoration: none; }
.tools-quiz-nudge a:hover { text-decoration: underline; }
.tool-card {
  background: #fff; border: 2px solid var(--gray-200); border-radius: 14px;
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem;
  text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); text-decoration: none; }
.tool-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-900); margin: 0.25rem 0 0; }
.tool-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.55; flex: 1; }
.tool-card-header { display: flex; align-items: center; justify-content: space-between; }
.tool-icon { font-size: 2rem; }
.tool-tag {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.tool-tag-blue { background: #dbeafe; color: #1d4ed8; }
.tool-tag-teal { background: #ccfbf1; color: #0f766e; }
.tool-free-line { font-size: 0.8rem; font-weight: 600; color: var(--green-600); margin-top: 0.1rem; }
.tool-cta { font-size: 0.9rem; font-weight: 700; color: var(--blue-500); margin-top: 0.5rem; }
.tool-card:hover .tool-cta { text-decoration: underline; }

/* color accents */
.tool-blue  { border-top: 3px solid #2563eb; }
.tool-blue:hover  { border-color: #2563eb; }
.tool-orange { border-top: 3px solid #f97316; }
.tool-orange:hover { border-color: #f97316; }
.tool-green  { border-top: 3px solid #16a34a; }
.tool-green:hover  { border-color: #16a34a; }
.tool-purple { border-top: 3px solid #7c3aed; }
.tool-purple:hover { border-color: #7c3aed; }
.tool-teal   { border-top: 3px solid #0d9488; }
.tool-teal:hover   { border-color: #0d9488; }
.tool-rose   { border-top: 3px solid #e11d48; }
.tool-rose:hover   { border-color: #e11d48; }
.tool-tag-rose { background: #fff1f2; color: #e11d48; }
.tool-cyan   { border-top: 3px solid #0891b2; }
.tool-cyan:hover   { border-color: #0891b2; }
.tool-tag-cyan { background: #ecfeff; color: #0891b2; }

/* ── Dental module ── */
.dental-header { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.dental-header h1, .dental-header p { color: #fff; }
.dental-submit-btn { background: #0891b2 !important; }
.dental-submit-btn:hover { background: #0e7490 !important; }
.crossover-eligible-badge { display:inline-block; background:#d1fae5; color:#065f46; padding:0.25rem 0.75rem; border-radius:999px; font-size:0.85rem; font-weight:600; }
.crossover-not-eligible { display:inline-block; background:#f3f4f6; color:#6b7280; padding:0.25rem 0.75rem; border-radius:999px; font-size:0.85rem; }
.dental-school-card { background:#fff; border:1px solid #e5e7eb; border-radius:0.75rem; padding:1.25rem; }
.dental-school-card h4 { margin:0 0 0.25rem; font-size:1rem; }
.dental-schools-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1rem; margin-top:1rem; }
.dental-financing-table { width:100%; border-collapse:collapse; margin-top:1rem; }
.dental-financing-table th { background:#f9fafb; padding:0.5rem 0.75rem; text-align:left; font-size:0.85rem; border-bottom:2px solid #e5e7eb; }
.dental-financing-table td { padding:0.5rem 0.75rem; border-bottom:1px solid #f3f4f6; font-size:0.9rem; }
.financing-recommended { background:#eff6ff; }

/* ── How it works v3 ── */
.hiw-section { background: #fff; }
.hiw-steps {
  display: flex; align-items: flex-start; gap: 0; margin-top: 3rem;
}
.hiw-step {
  flex: 1; text-align: center; padding: 0 1.5rem;
}
.hiw-num {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 0.5rem;
}
.hiw-icon-wrap {
  font-size: 2.5rem; margin-bottom: 0.75rem;
  background: var(--blue-100); width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.hiw-step h3 { font-size: 1.1rem; font-weight: 800; color: var(--blue-900); margin-bottom: 0.4rem; }
.hiw-step p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.hiw-arrow {
  font-size: 1.5rem; color: var(--gray-200); padding-top: 2.5rem; flex-shrink: 0;
}

/* ── Quiz section v3 ── */
.quiz-section-v2 { background: var(--gray-100); padding-bottom: 2rem; }
.quiz-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start;
}
.quiz-intro { padding-top: 0.5rem; }
.quiz-intro .section-title-v2 { text-align: left; }
.quiz-trust { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.quiz-trust-item {
  font-size: 0.875rem; color: var(--gray-600); font-weight: 500;
}
.quiz-card-v2 {
  background: #fff; border-radius: 16px; padding: 2rem 2.25rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08); border: 1px solid var(--gray-200);
}
.quiz-prog-bar {
  height: 4px; background: var(--gray-200); border-radius: 2px; margin-bottom: 0.6rem;
  overflow: hidden;
}
.quiz-prog-fill {
  height: 100%; background: var(--blue-500); border-radius: 2px; transition: width 0.3s;
}
.quiz-step-label {
  font-size: 0.72rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}

/* ── Trust section v3 ── */
.trust-section-v2 { background: #fff; }
.trust-grid-v2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem;
}
.trust-card {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 14px;
  padding: 1.75rem 1.5rem; transition: box-shadow 0.15s;
}
.trust-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.trust-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.trust-card h4 { font-size: 1rem; font-weight: 800; color: var(--blue-900); margin-bottom: 0.35rem; }
.trust-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.55; margin: 0; }

/* ── Pricing v3 ── */
.pricing-section-v2 { background: var(--gray-100); }
.pricing-grid-v3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  align-items: start; margin-top: 2rem;
}
.pricing-card-v3 {
  background: #fff; border: 2px solid var(--gray-200); border-radius: 16px;
  padding: 2rem 1.75rem; position: relative;
}
.pcv3-featured {
  border-color: var(--blue-500); box-shadow: 0 8px 40px rgba(37,99,235,0.18);
  transform: scale(1.03);
}
.pcv3-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.85rem;
  border-radius: 999px; white-space: nowrap;
}
.pcv3-tier {
  font-size: 0.85rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pcv3-price {
  font-size: 3.2rem; font-weight: 900; color: var(--blue-700); line-height: 1;
  margin-bottom: 0.25rem;
}
.pcv3-note { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.pcv3-features {
  list-style: none; padding: 0; margin-bottom: 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.pcv3-yes { font-size: 0.9rem; color: var(--gray-700); padding-left: 1.5rem; position: relative; }
.pcv3-yes::before { content: '✓'; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }
.pcv3-no  { font-size: 0.9rem; color: var(--gray-500); padding-left: 1.5rem; position: relative; }
.pcv3-no::before  { content: '✕'; position: absolute; left: 0; color: var(--gray-300, #d1d5db); font-weight: 700; }
.pcv3-btn {
  display: block; width: 100%; text-align: center; padding: 0.8rem 1.25rem;
  border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; transition: all 0.15s; border: 2px solid transparent;
}
.pcv3-btn:hover { text-decoration: none; filter: brightness(0.92); }
.pcv3-btn-primary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.pcv3-btn-outline { border-color: var(--blue-500); color: var(--blue-500); }

/* ── FAQ v3 ── */
.faq-section-v2 { background: #fff; }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2.5rem;
}
.faq-col { display: flex; flex-direction: column; }
.faq-item-v2 {
  border-bottom: 1px solid var(--gray-200); padding: 1rem 0;
}
.faq-item-v2 summary {
  font-weight: 700; cursor: pointer; font-size: 1rem; color: var(--blue-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item-v2 summary::-webkit-details-marker { display: none; }
.faq-item-v2 summary::after { content: '+'; font-weight: 400; font-size: 1.2rem; color: var(--gray-500); }
.faq-item-v2[open] summary::after { content: '−'; }
.faq-item-v2 p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* ── Final CTA v3 ── */
.final-cta-v2 {
  background: linear-gradient(135deg, #0d1b2e 0%, #1a3a6e 100%);
  padding: 5rem 0;
}
.final-cta-v2-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.final-cta-v2-text { flex: 1; min-width: 280px; }
.final-cta-v2-text h2 {
  font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 0.75rem;
}
.final-cta-v2-text p { color: #93c5fd; font-size: 1rem; line-height: 1.6; margin: 0; }
.final-cta-v2-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.final-cta-links-v2 { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.final-cta-links-v2 a { color: #93c5fd; font-size: 0.88rem; text-decoration: underline; }
.final-cta-links-v2 a:hover { color: #fff; }

/* ── Responsive v3 ── */
@media (max-width: 1024px) {
  .hero-v3-inner { grid-template-columns: 1fr; }
  .hero-v3-visual { display: none; }
  .tools-grid, .tools-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tool-category-header { flex-direction: column; gap: 0.5rem; }
  .pricing-grid-v3 { grid-template-columns: 1fr; }
  .pcv3-featured { transform: none; }
}
@media (max-width: 768px) {
  .hero-v3-h1 { font-size: 2.4rem; }
  .hero-v3-ctas { flex-direction: column; align-items: flex-start; }
  .stats-band-divider { display: none; }
  .stats-band-inner { gap: 1.5rem; }
  .tools-grid, .tools-grid-3 { grid-template-columns: 1fr; }
  .hiw-steps { flex-direction: column; align-items: center; }
  .hiw-arrow { transform: rotate(90deg); padding: 0; }
  .quiz-layout { grid-template-columns: 1fr; gap: 2rem; }
  .trust-grid-v2 { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-cta-v2-inner { flex-direction: column; }
  .final-cta-v2-text h2 { font-size: 1.9rem; }
  .section-title-v2 { font-size: 1.75rem; }
}

/* ─── Fertility Cost Fighter Module ─────────────────────────────────────── */
.fert-header { background: linear-gradient(135deg, #831843 0%, #be185d 60%, #db2777 100%); }

/* State mandate badge */
.fert-mandate-badge {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem;
}
.fert-mandate-full    { background: var(--green-100); color: var(--green-600); }
.fert-mandate-partial { background: var(--yellow-100); color: #92400e; }
.fert-mandate-none    { background: var(--red-100); color: var(--red-600); }

/* Grants grid */
.fert-grants-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 0.5rem; }
.fert-grant-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem;
  background: var(--white);
}
.fert-grant-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.fert-grant-name   { font-weight: 700; font-size: 0.95rem; color: var(--blue-900); }
.fert-grant-amount { background: #fce7f3; color: #be185d; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.fert-grant-desc   { font-size: 0.875rem; color: var(--gray-700); line-height: 1.5; margin-bottom: 0.5rem; }
.fert-grant-notes  { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.75rem; }

/* Submit button accent */
.fert-submit-btn { background: #be185d !important; border-color: #be185d !important; }
.fert-submit-btn:hover { background: #9d174d !important; }

/* Charge / med form rows */
.fert-charge-row, .fert-med-row { margin-bottom: 0.75rem; }

/* Meds list reuses .drug-card */

@media (max-width: 768px) {
  .fert-grants-grid { grid-template-columns: 1fr; }
}

/* ─── Tax Savings Module ─────────────────────────────────────────────────── */
.tax-header { background: linear-gradient(135deg, #d97706, #b45309); }
.tax-submit-btn { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.tax-submit-btn:hover { background: linear-gradient(135deg, #b45309, #92400e); }
.tool-amber { border-top: 4px solid #d97706; }
.tool-tag-amber { background: #fef3c7; color: #92400e; }
.opportunity-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.opportunity-card .opportunity-savings { font-size: 1.5rem; font-weight: 700; color: #059669; }
.opportunity-category-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: #eff6ff; color: #1d4ed8; }
.difficulty-easy { color: #059669; }
.difficulty-moderate { color: #d97706; }
.difficulty-complex { color: #dc2626; }
.tax-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.tax-stat-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; padding: 1.25rem; text-align: center; }
.tax-stat-card .stat-value { font-size: 2rem; font-weight: 800; color: #92400e; }
.section-progress { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #6b7280; }
.form-section-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.optional-badge { font-size: 0.7rem; background: #f3f4f6; color: #6b7280; padding: 0.15rem 0.5rem; border-radius: 10px; }
.required-badge { font-size: 0.7rem; background: #fef2f2; color: #dc2626; padding: 0.15rem 0.5rem; border-radius: 10px; }
@media (max-width: 768px) { .tax-stat-row { grid-template-columns: 1fr; } }

/* ─── Vision Cost Fighter ────────────────────────────────────────────────── */
.vision-header { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; }
.vision-header h1 { color: #fff; }
.vision-submit-btn { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; border: none; }
.vision-submit-btn:hover { background: linear-gradient(135deg, #0e7490, #155e75); }
.tool-teal-2 { border-top: 4px solid #0891b2; }
.tool-tag-teal { background: #e0f2fe; color: #0369a1; }
.luxottica-flag { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; font-size: 0.875rem; }
.markup-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.markup-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.markup-table th { background: #f9fafb; padding: 0.75rem; text-align: left; font-size: 0.875rem; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
.markup-table td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; }
.markup-table .savings-cell { color: #059669; font-weight: 700; }
.markup-table .charged-cell { color: #dc2626; }
.vision-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.vision-stat-card { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border-radius: 12px; padding: 1.25rem; text-align: center; }
.vision-stat-card .stat-value { font-size: 2rem; font-weight: 800; color: #0369a1; }
.worth-it-badge { display: inline-block; padding: 0.4rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.875rem; }
.worth-it-badge.worth-it { background: #dcfce7; color: #166534; }
.worth-it-badge.not-worth-it { background: #fef2f2; color: #991b1b; }
.red-flag-item { background: #fef2f2; border-left: 3px solid #dc2626; padding: 0.5rem 0.75rem; margin: 0.5rem 0; border-radius: 0 6px 6px 0; font-size: 0.875rem; }
.medical-routing-alert { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 1rem; margin: 1rem 0; }
@media (max-width: 768px) { .vision-stat-row { grid-template-columns: 1fr; } }

/* ─── Sample Analysis Section ─────────────────────────────────────────────── */
.sample-section { background: var(--gray-100); padding-bottom: 2rem; }
.sample-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (max-width: 768px) { .sample-layout { grid-template-columns: 1fr; } }

.sample-bill { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sample-bill-header { background: var(--blue-900); color: white; padding: 1rem 1.25rem; }
.sample-bill-hospital { font-weight: 700; font-size: 1rem; }
.sample-bill-label { font-size: 0.8rem; opacity: 0.75; margin-top: 0.2rem; }
.sample-bill-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.sample-bill-table th { background: var(--gray-100); padding: 0.6rem 1rem; text-align: left; font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
.sample-bill-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.sample-bill-table tr.flagged td { background: #fff8f8; color: var(--gray-900); }
.flag-icon { font-size: 0.8rem; }

.sample-results { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.sample-results-header { margin-bottom: 1.25rem; }
.sample-results-badge { background: var(--blue-100); color: var(--blue-700); font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; }

.sample-finding { display: flex; gap: 0.875rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-200); }
.sample-finding:last-of-type { border-bottom: none; }
.finding-icon { font-size: 1.25rem; flex-shrink: 0; width: 2rem; text-align: center; }
.finding-title { font-weight: 700; font-size: 0.9rem; color: var(--gray-900); margin-bottom: 0.2rem; }
.finding-desc { font-size: 0.825rem; color: var(--gray-600); line-height: 1.5; }
.finding-savings { font-size: 0.825rem; color: var(--green-600); margin-top: 0.3rem; font-weight: 500; }

.sample-total { background: var(--green-100); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 0.5rem; }
.sample-total-label { font-size: 0.8rem; font-weight: 600; color: var(--green-600); text-transform: uppercase; letter-spacing: 0.05em; }
.sample-total-amount { font-size: 1.75rem; font-weight: 800; color: var(--green-600); margin-top: 0.25rem; }

/* ─── Introductory Price Badge ────────────────────────────────────────────── */
.paywall-intro-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 0.15rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem; }

/* ─── Patent Pending badge ────────────────────────────────────────────────── */
.nav-patent { font-size: 0.6rem; font-weight: 600; color: var(--gray-500); vertical-align: middle; margin-left: 0.25rem; letter-spacing: 0.02em; }

/* ─── PHI redaction notice ────────────────────────────────────────────────── */
.upload-phi-notice { font-size: 0.8rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 0.5rem 0.75rem; margin-top: 0.75rem; line-height: 1.5; }

/* ─── Coverage Estimator ──────────────────────────────────────────────────── */
.tool-gold { border-top: 4px solid #b45309; }
.tool-gold:hover { border-color: #92400e; box-shadow: 0 4px 20px rgba(180,83,9,0.15); }
.tool-paid-line { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.25rem; }

.ce-header { background: linear-gradient(135deg, #1c1917, #292524); }
.ce-results-header { background: linear-gradient(135deg, #1c1917, #78350f); }
.ce-results-subtitle { opacity: 0.8; margin-top: 0.5rem; font-size: 1rem; }
.ce-results-subtitle code { background: rgba(255,255,255,0.15); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.875rem; }

.ce-cost-banner { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.ce-cost-item { display: flex; flex-direction: column; gap: 0.25rem; }
.ce-cost-value { font-size: 2.25rem; font-weight: 800; color: #fff; }
.ce-cost-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.ce-insurer-value { color: #86efac; }
.ce-patient-value { color: #fcd34d; }
.ce-patient-item { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 0.75rem 1.25rem; }
.ce-cost-divider { font-size: 1.5rem; color: rgba(255,255,255,0.4); }
@media (max-width: 600px) { .ce-cost-banner { gap: 1rem; } .ce-cost-value { font-size: 1.75rem; } }

.denial-risk-badge { display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.denial-risk-high   { background: #fef2f2; color: #991b1b; border: 2px solid #fca5a5; }
.denial-risk-medium { background: #fffbeb; color: #92400e; border: 2px solid #fcd34d; }
.denial-risk-low    { background: #f0fdf4; color: #166534; border: 2px solid #86efac; }

.prior-auth-alert { background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 0.875rem 1rem; margin-top: 1rem; font-size: 0.9rem; }
.prior-auth-alert strong { display: block; margin-bottom: 0.4rem; color: #92400e; }
.prior-auth-alert p { margin: 0; color: var(--gray-700); }

.ce-params-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
@media (max-width: 640px) { .ce-params-grid { grid-template-columns: repeat(2, 1fr); } }
.ce-param { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.ce-param-label { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.ce-param-value { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.ce-params-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.75rem; }

.ce-oon-card { border-left: 4px solid #ef4444; }
.ce-plan-hint { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 0.875rem 1rem; margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--gray-700); }

.cross-module-banner { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.875rem 1.25rem; text-align: center; font-size: 0.9rem; color: var(--gray-600); }
.cross-module-banner a { color: var(--blue-500); text-decoration: none; }
.cross-module-banner a:hover { text-decoration: underline; }

.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.checklist li { padding: 0.5rem 0.75rem; background: var(--gray-50); border-radius: 6px; font-size: 0.9rem; }

/* ── PDF export styles ─────────────────────────────────────────────────────── */
@media print {
  nav, footer, .floating-analyze, .qa-banner, .btn, #analysis-overlay { display: none !important; }
  .package-content { white-space: pre-wrap; font-size: 11pt; line-height: 1.6; }
  h3 { page-break-after: avoid; }
  .script-block { page-break-inside: avoid; }
}
