@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── ThriveMonger Color Palette ── */
:root {
  --navy: #16322f;
  --navy-mid: #244942;
  --blue: #2f6f73;
  --blue-light: #5f9ea0;
  --accent: #d89b2b;
  --bg: #f6f3ec;
  --card: #ffffff;
  --text: #16322f;
  --text-mid: #435a55;
  --text-light: #7a8984;
  --border: #d8d2c4;
  --survive: #9aa6a0;
  --sustain: #6f8f72;
  --scale: #2f6f73;
  --succeed: #244942;
  --steward: #d89b2b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 0.9375rem;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 760px; margin: 0 auto; }

/* ── Site Header ── */
.site-header {
  background: var(--card);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.site-logo { max-width: 180px; height: auto; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #c48820; color: var(--navy); }
.btn-large { padding: 14px 36px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 9px 24px;
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-white { background: var(--card); color: var(--navy); }
.btn-white:hover { background: var(--bg); color: var(--navy); }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 36px;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── LANDING PAGE ── */
.landing-hero { padding: 56px 0 64px; }
.landing-grid {
  display: grid;
  grid-template-columns: 1fr 60px 420px;
  gap: 0;
  align-items: start;
}
.landing-text h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.landing-text h5 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.landing-text p { color: var(--text-mid); margin-bottom: 14px; line-height: 1.65; }
.landing-text ul { padding-left: 22px; color: var(--text-mid); }
.landing-text ul li { margin-bottom: 8px; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22,50,47,.06);
  padding: 28px;
}
.form-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
  color: var(--navy);
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-mid);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
  background: var(--card);
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,115,.12); }
.form-error { font-size: 0.78rem; color: #b43f39; margin-top: 4px; display: none; }

/* Testimonial section */
.testimonial-section { background: var(--card); padding: 56px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.testimonial-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.testimonial-section p { color: var(--text-mid); line-height: 1.65; }

/* Info banner */
.info-banner { background: var(--navy-mid); color: #fff; padding: 40px 0; text-align: center; }
.info-banner h5 { font-size: 1.1rem; font-weight: 700; max-width: 700px; margin: 0 auto 20px; }

/* Site footer */
.site-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { max-width: 140px; height: auto; }
.footer-copy { font-size: 0.75rem; color: var(--text-light); }

/* ── QUESTION PAGES ── */
.question-page {
  min-height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.question-body {
  flex: 1;
  padding: 52px 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.question-inner { width: 100%; max-width: 640px; }

/* Back button */
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-bottom: 28px;
  font-family: inherit;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { color: var(--navy); opacity: 0.7; }
.question-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--navy); }
.question-subtitle { font-size: 0.9375rem; color: var(--text-mid); margin-bottom: 32px; }

/* Slider */
.slider-wrap { margin: 8px 0 24px; }
.slider-input {
  width: 100%;
  height: 6px;
  accent-color: var(--blue);
  cursor: pointer;
  display: block;
  margin-bottom: 8px;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); }
.slider-value-display {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin: 24px 0 8px;
}
.slider-value-unit { font-size: 0.9rem; color: var(--text-mid); text-align: center; }

/* Number input */
.number-input-wrap { margin: 16px 0 24px; text-align: center; }
.number-input {
  width: 180px;
  padding: 12px 16px;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-family: inherit;
  color: var(--navy);
  background: var(--card);
  outline: none;
}
.number-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(47,111,115,.12); }
.number-input-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

/* Radio options */
.radio-options { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 24px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.9375rem;
  font-weight: 500;
}
.radio-label:hover { border-color: var(--blue); background: rgba(95,158,160,.08); }
.radio-label:has(input:checked) { border-color: var(--blue); background: rgba(95,158,160,.10); }
.radio-label input[type=radio] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Nav row */
.question-nav { display: flex; justify-content: flex-end; align-items: center; margin-top: 12px; gap: 12px; }
.question-nav.has-back { justify-content: space-between; }

/* Progress bar */
.progress-wrap { padding: 14px 24px 16px; border-top: 1px solid var(--border); background: var(--card); }
.progress-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.35s ease; }
.progress-pct { font-size: 0.75rem; color: var(--text-light); margin-top: 6px; text-align: right; }

/* Welcome page */
.welcome-card { background: var(--navy); color: #fff; border-radius: 12px; padding: 40px 36px; margin-bottom: 32px; }
.welcome-card h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.welcome-card p { opacity: 0.85; line-height: 1.65; }
.welcome-checklist { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.welcome-checklist li { display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.welcome-checklist li::before { content: "✓"; font-weight: 700; flex-shrink: 0; }

/* ── RESULT PAGES ── */
.result-hero { background: var(--navy); color: #fff; padding: 40px 0; text-align: center; }
.result-hero h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.result-hero h4 { font-size: 1.25rem; font-weight: 600; opacity: 0.9; }

.result-section { padding: 48px 0; background: var(--card); }
.result-section.alt { background: var(--bg); }
.result-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  color: var(--navy);
}
.result-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  color: var(--navy);
}
.result-section p { color: var(--text-mid); margin-bottom: 12px; line-height: 1.7; }
.result-section p:last-child { margin-bottom: 0; }

/* Tier comparison stats */
.tier-stat-block { text-align: center; padding: 8px 0 16px; }
.tier-stat-number { font-size: 3rem; font-weight: 700; color: var(--blue); line-height: 1; display: block; }
.tier-stat-label { font-size: 0.9rem; color: var(--text-mid); margin-top: 4px; }

/* Challenges grid */
.challenges-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 52px; align-items: start; }
.challenges-img-wrap img { width: 100%; border-radius: 8px; display: block; }
.challenges-content h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.challenges-content p { color: var(--text-mid); margin-bottom: 12px; line-height: 1.7; }
.challenges-content h5 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; color: var(--navy); }
.challenges-cta-btn { margin-top: 20px; }

/* CTA Banner */
.cta-banner { background: var(--navy-mid); color: #fff; padding: 60px 0; }
.cta-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-banner h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 16px; }
.cta-banner p { opacity: 0.9; margin-bottom: 12px; line-height: 1.65; }
.cta-banner ul { padding-left: 22px; margin-bottom: 8px; }
.cta-banner ul li { margin-bottom: 8px; opacity: 0.9; line-height: 1.5; }
.cta-banner h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

/* Optional ThriveMonger pillar utility classes */
.pillar-survive { color: var(--survive); }
.pillar-sustain { color: var(--sustain); }
.pillar-scale { color: var(--scale); }
.pillar-succeed { color: var(--succeed); }
.pillar-steward { color: var(--steward); }
.bg-survive { background: var(--survive); }
.bg-sustain { background: var(--sustain); }
.bg-scale { background: var(--scale); }
.bg-succeed { background: var(--succeed); }
.bg-steward { background: var(--steward); }

/* Keep text and buttons white in dark banners even when links are hovered */
.info-banner a:not(.btn):hover,
.cta-banner a:not(.btn):hover,
.result-hero a:not(.btn):hover,
.welcome-card a:not(.btn):hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; }
  .landing-grid .landing-spacer { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: 1fr; }
  .cta-banner-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .result-hero h2 { font-size: 1.5rem; }
  .landing-hero { padding: 36px 0 48px; }
  .question-title { font-size: 1.25rem; }
}
