/* FertilityBudget — Shared Styles */
/* Mobile-first, enhanced for 768px and 1200px */

/* ─── Reset & Base ────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #FAF8F5;
  --primary:   #1B6B72;
  --primary-dk:#145459;
  --primary-lt:#E8F4F5;
  --accent:    #E8755A;
  --accent-dk: #D4634A;
  --success:   #4A8C6F;
  --text:      #1A1A2E;
  --text-mid:  #6B7280;
  --text-light:#9CA3AF;
  --white:     #FFFFFF;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 24px rgba(0,0,0,0.10);
  --border:    #E5E7EB;
  --radius-card: 12px;
  --radius-btn:  8px;
  --radius-input:8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }

/* ─── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem);     font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem);   font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text); }
.text-mid { color: var(--text-mid); }
.text-small { font-size: 0.875rem; color: var(--text-mid); }

/* ─── Layout ──────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* ─── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; color: var(--primary-dk); }

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 20px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--primary-lt); color: var(--primary); text-decoration: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); box-shadow: 0 4px 12px rgba(232,117,90,0.35); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-lt); color: var(--primary); }

.btn-teal {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-teal:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: var(--white); box-shadow: 0 4px 12px rgba(27,107,114,0.3); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--card-shadow-hover); }

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ─── Forms & Inputs ──────────────────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.help-text {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,114,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Radio cards */
.radio-group {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .radio-group-2 { grid-template-columns: 1fr 1fr; }
  .radio-group-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--white);
}

.radio-card-label:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
}

.radio-card input:checked + .radio-card-label {
  border-color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(27,107,114,0.12);
}

.radio-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.radio-card-sub {
  font-size: 0.8rem;
  color: var(--text-mid);
}

.radio-card-cost {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* Toggles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  padding: 0;
  border: none;
  box-shadow: none;
}
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(27,107,114,0.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ─── Progress Bar ────────────────────────────────────────────────────────── */

.progress-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.progress-step-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.progress-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  transition: all 0.3s;
}

.progress-step-label {
  font-size: 0.75rem;
  color: var(--text-mid);
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.3s;
}

.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.progress-step.active .progress-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.progress-step.active .progress-step-label { color: var(--primary); font-weight: 600; }

.progress-step.completed .progress-step-num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}
.progress-step.completed + .progress-connector { background: var(--success); }

/* ─── Calculator Step Transitions ────────────────────────────────────────── */

.calc-step {
  display: none;
  animation: stepIn 0.2s ease-out;
}
.calc-step.active { display: block; }

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

.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Estimate Result Card ────────────────────────────────────────────────── */

.estimate-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: estimateReveal 0.35s ease-out;
}

@keyframes estimateReveal {
  from { opacity: 0; transform: scale(0.98) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.estimate-header {
  background: var(--primary);
  color: var(--white);
  padding: 28px;
}

.estimate-header h3 { color: var(--white); font-family: var(--font-heading); font-size: 1.3rem; }
.estimate-subtitle { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }

.estimate-body { padding: 28px; }

.cost-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.cost-range-col { text-align: center; }

.cost-range-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.cost-range-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
}

.cost-range-col.mid .cost-range-value { color: var(--primary); font-size: clamp(1.4rem, 4vw, 2rem); }

.estimate-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
}

.estimate-line .label { color: var(--text-mid); }
.estimate-line .value { font-weight: 600; color: var(--text); }
.estimate-line .value.negative { color: var(--success); }

.oop-row {
  background: var(--primary-lt);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.oop-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.financing-row {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 6px;
}

/* ─── Add-on toggle cards ─────────────────────────────────────────────────── */

.addon-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.addon-card.active {
  border-color: var(--primary);
  background: var(--primary-lt);
}

.addon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.addon-left { flex: 1; }

.addon-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.addon-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 2px;
}

.addon-cost {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
  transition: color 0.15s;
}

.addon-card.active .addon-cost { color: var(--accent); }

/* ─── Callout boxes ───────────────────────────────────────────────────────── */

.callout {
  background: var(--primary-lt);
  border: 1px solid rgba(27,107,114,0.2);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 20px 0;
}

.callout-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.callout p { font-size: 0.9rem; color: var(--text); }
.callout a { color: var(--primary); font-weight: 600; }

.callout-warning {
  background: #FFF8F0;
  border-color: rgba(232,117,90,0.25);
}

.callout-warning .callout-title { color: var(--accent-dk); }

/* ─── Accordion ───────────────────────────────────────────────────────────── */

.accordion { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 0.95rem;
  transition: background 0.15s;
}
.accordion-header:hover { background: var(--primary-lt); }

.accordion-icon {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.accordion-header.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.accordion-body.open { display: block; }

/* ─── Tooltips ────────────────────────────────────────────────────────────── */

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-trigger {
  background: none;
  border: 1.5px solid var(--text-mid);
  color: var(--text-mid);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tooltip-trigger:hover { border-color: var(--primary); color: var(--primary); }

.tooltip-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  min-width: 220px;
  max-width: 280px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.tooltip-content.visible { display: block; }
.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

/* ─── Trust signals ───────────────────────────────────────────────────────── */

.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}

.trust-icon {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Email capture ───────────────────────────────────────────────────────── */

.email-section {
  background: var(--primary);
  padding: 56px 0;
}

.email-section h2 { color: var(--white); }
.email-section p  { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.email-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.email-form input::placeholder { color: rgba(255,255,255,0.6); }
.email-form input:focus { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }

.email-no-spam {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}

/* ─── Sections & Content ──────────────────────────────────────────────────── */

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title { margin-bottom: 12px; }
.section-sub { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 40px; }

/* Two-column feature grid */
.feature-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-item { display: flex; gap: 16px; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h4 { margin-bottom: 4px; }
.feature-text p { font-size: 0.9rem; color: var(--text-mid); }

/* How it works steps */
.steps-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.step-item { text-align: center; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-item h3 { margin-bottom: 8px; }
.step-item p  { font-size: 0.9rem; color: var(--text-mid); }

/* ─── State comparison table ──────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 10px 14px;
  background: var(--primary-lt);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ─── Bar chart (surrogacy) ───────────────────────────────────────────────── */

.bar-chart { display: flex; flex-direction: column; gap: 16px; }

.bar-row { }

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.bar-name { font-weight: 600; color: var(--text); }
.bar-amount { color: var(--text-mid); }

.bar-track {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.6s ease-out;
}

.bar-fill.accent { background: var(--accent); }
.bar-fill.success { background: var(--success); }

/* ─── Success probability chart ──────────────────────────────────────────── */

.success-chart { }

.success-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.success-stat:last-child { border-bottom: none; }

.success-label { font-size: 0.875rem; color: var(--text-mid); }
.success-value { font-weight: 700; color: var(--text); font-size: 1rem; }

.eggs-visual {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.eggs-bar-label {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.eggs-bar-track {
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.eggs-bar-fill {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  transition: width 0.6s ease-out;
}

.eggs-bar-fill.green  { background: var(--success); }
.eggs-bar-fill.amber  { background: #F59E0B; }
.eggs-bar-fill.red    { background: #EF4444; }

/* ─── Results actions ─────────────────────────────────────────────────────── */

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ─── Related CTAs ────────────────────────────────────────────────────────── */

.related-ctас {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 16px;
}

.related-ctas-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.related-ctas-links { display: flex; flex-direction: column; gap: 8px; }
.related-ctas-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── Page header ─────────────────────────────────────────────────────────── */

.page-header {
  background: var(--primary);
  padding: 48px 0 40px;
  color: white;
}

.page-header h1 { color: white; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.page-header p  { color: rgba(255,255,255,0.85); margin-top: 10px; font-size: 1rem; }

/* ─── Methodology page ────────────────────────────────────────────────────── */

.method-section { margin-bottom: 40px; }
.method-section h2 { margin-bottom: 16px; font-size: 1.35rem; }
.method-section p  { margin-bottom: 12px; color: var(--text); line-height: 1.8; }
.method-section ul, .method-section ol { padding-left: 24px; margin-bottom: 12px; }
.method-section li { margin-bottom: 6px; color: var(--text); line-height: 1.7; font-size: 0.95rem; }

/* ─── Financing section ───────────────────────────────────────────────────── */

.financing-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.financing-tab {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-mid);
  transition: all 0.15s;
}

.financing-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.financing-result {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}
.financing-result span { color: var(--primary); }

/* ─── Disclaimer ──────────────────────────────────────────────────────────── */

.disclaimer-box {
  background: #F3F4F6;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 24px;
}

/* ─── Print styles ────────────────────────────────────────────────────────── */

@media print {
  .nav, .footer, .email-section,
  .result-actions, .calc-nav,
  .related-ctас, .progress-bar-wrap,
  .addon-card, .btn { display: none !important; }

  body { background: white; color: black; font-size: 12pt; }
  .estimate-card { box-shadow: none; border: 1px solid #ccc; }
  .estimate-header { background: #1B6B72 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .print-url::before {
    content: 'fertilitybudget.com';
    display: block;
    font-size: 10pt;
    color: #666;
    margin-bottom: 8px;
  }

  .disclaimer-box { border: 1px solid #ccc; background: #f9f9f9; }
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ─── Responsive helpers ──────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 96px 0 80px; }
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .container { padding: 0 40px; }
}

/* Pulse animation for financing */
@keyframes pulse-update {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.pulse { animation: pulse-update 0.3s ease-out; }
