/* ===== V2 DESIGN TOKENS ===== */
:root {
  /* Type Scale — editorial luxury */
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.4rem  + 2vw, 3rem);
  --text-3xl:  clamp(2.5rem,   1.6rem  + 3vw, 4rem);

  /* Spacing */
  --space-1:  0.25rem;  --space-2:  0.5rem;
  --space-3:  0.75rem;  --space-4:  1rem;
  --space-5:  1.25rem;  --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;
  --space-12: 3rem;     --space-16: 4rem;
  --space-20: 5rem;     --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-medium: 350ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 880px;
  --content-wide: 1200px;
}

/* ===== LIGHT PALETTE ===== */
:root, [data-theme="light"] {
  --color-bg:              #faf8f5;
  --color-surface:         #ffffff;
  --color-surface-2:       #f5f2ed;
  --color-surface-offset:  #ece8e1;
  --color-surface-glass:   rgba(255,255,255,0.85);
  --color-divider:         #d8d3ca;
  --color-border:          #c8c2b7;

  --color-text:            #1a1814;
  --color-text-muted:      #6b665e;
  --color-text-faint:      #a8a29a;
  --color-text-inverse:    #faf8f5;

  --color-primary:         #1a3a2a;
  --color-primary-hover:   #0f2a1c;
  --color-primary-light:   #e8f0eb;
  --color-primary-highlight: #d2e3d8;

  --color-accent:          #8b7355;
  --color-accent-hover:    #73603f;
  --color-accent-light:    #f0ebe2;

  --color-gold:            #b8860b;
  --color-gold-light:      rgba(184,134,11,0.08);

  --shadow-sm: 0 1px 3px rgba(26,24,20,0.06);
  --shadow-md: 0 4px 20px rgba(26,24,20,0.08);
  --shadow-lg: 0 16px 48px rgba(26,24,20,0.12);
  --shadow-hero: 0 24px 64px rgba(26,24,20,0.18);
  --shadow-glow: 0 0 0 3px var(--color-primary-highlight);

  --overlay-gradient: linear-gradient(to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.08) 70%,
    transparent 100%);
  --overlay-gradient-strong: linear-gradient(to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.50) 35%,
    rgba(0,0,0,0.15) 65%,
    transparent 100%);
}

/* ===== DARK PALETTE ===== */
[data-theme="dark"] {
  --color-bg:              #0e0d0b;
  --color-surface:         #18170f;
  --color-surface-2:       #201f18;
  --color-surface-offset:  #2a2820;
  --color-surface-glass:   rgba(24,23,15,0.88);
  --color-divider:         #383528;
  --color-border:          #48442e;

  --color-text:            #e8e4d8;
  --color-text-muted:      #9a968a;
  --color-text-faint:      #6a665a;
  --color-text-inverse:    #18170f;

  --color-primary:         #7ab890;
  --color-primary-hover:   #98cca8;
  --color-primary-light:   #1e2e24;
  --color-primary-highlight: #263a2e;

  --color-accent:          #c4a87a;
  --color-accent-hover:    #d4bc94;
  --color-accent-light:    #2a2518;

  --color-gold:            #d4a620;
  --color-gold-light:      rgba(212,166,32,0.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-hero: 0 24px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 3px var(--color-primary-highlight);

  --overlay-gradient: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.40) 40%,
    rgba(0,0,0,0.12) 70%,
    transparent 100%);
  --overlay-gradient-strong: linear-gradient(to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.20) 65%,
    transparent 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0e0d0b;
    --color-surface:         #18170f;
    --color-surface-2:       #201f18;
    --color-surface-offset:  #2a2820;
    --color-surface-glass:   rgba(24,23,15,0.88);
    --color-divider:         #383528;
    --color-border:          #48442e;
    --color-text:            #e8e4d8;
    --color-text-muted:      #9a968a;
    --color-text-faint:      #6a665a;
    --color-text-inverse:    #18170f;
    --color-primary:         #7ab890;
    --color-primary-hover:   #98cca8;
    --color-primary-light:   #1e2e24;
    --color-primary-highlight: #263a2e;
    --color-accent:          #c4a87a;
    --color-accent-hover:    #d4bc94;
    --color-accent-light:    #2a2518;
    --color-gold:            #d4a620;
    --color-gold-light:      rgba(212,166,32,0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
    --shadow-hero: 0 24px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 0 3px var(--color-primary-highlight);
    --overlay-gradient: linear-gradient(to top,
      rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.40) 40%,
      rgba(0,0,0,0.12) 70%, transparent 100%);
    --overlay-gradient-strong: linear-gradient(to top,
      rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 35%,
      rgba(0,0,0,0.20) 65%, transparent 100%);
  }
}

/* ===== LAYOUT ===== */
.app-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  position: sticky;
  top: 52px;
  z-index: 90;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.progress-inner {
  max-width: var(--content-default);
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.progress-step {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ===== RUNNING ESTIMATE BAR ===== */
.running-estimate {
  position: sticky;
  top: 96px;
  z-index: 85;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: var(--color-primary);
  transition: max-height var(--transition-slow), opacity var(--transition-medium);
  opacity: 0;
}
.running-estimate.visible {
  max-height: 60px;
  opacity: 1;
}

.running-estimate-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-6);
}

.running-estimate-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.running-estimate-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.running-estimate-sep {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.questionnaire-wrapper {
  width: 100%;
}

/* ===== QUESTION SCREENS ===== */
.question-screen {
  display: none;
  opacity: 0;
  animation: screenIn 500ms var(--ease-out) forwards;
}
.question-screen.active {
  display: block;
}

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

/* ===== HERO SECTION (per question) ===== */
.section-hero {
  position: relative;
  width: 100%;
  height: 38vh;
  min-height: 280px;
  max-height: 440px;
  overflow: hidden;
  background: #0a0a08;
}

.section-hero img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  display: block;
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
  pointer-events: none;
}

.section-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
  z-index: 2;
  max-width: var(--content-default);
  margin: 0 auto;
}

.section-hero-category {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.section-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ===== QUESTION BODY (below hero) ===== */
.question-body {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.question-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 560px;
}

/* ===== MULTI-SELECT HINT ===== */
.multi-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

/* ===== COMPOSITE SECTIONS ===== */
.composite-section {
  margin-bottom: var(--space-8);
}
.composite-section:last-child {
  margin-bottom: 0;
}
.composite-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

/* ===== OPTION CARDS ===== */
.options-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr;
}

.options-grid.cols-1 {
  grid-template-columns: 1fr;
}

.option-card {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  background: var(--color-surface);
}

.option-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.option-card:active {
  transform: translateY(0);
}

.option-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-glow);
}

/* Checkmark */
.option-check {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}
.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.option-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
  padding-right: var(--space-8);
}

.option-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== CUSTOM INPUT ("Other" tiles) ===== */
.custom-input {
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.custom-input::placeholder {
  color: var(--color-text-faint);
}
.custom-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-highlight);
}
.option-card.selected .custom-input {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

/* ===== SLIDER ===== */
.slider-group {
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.slider-label-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.slider-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===== NAVIGATION BUTTONS ===== */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-10);
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== INTRO SCREEN ===== */
.intro-screen {
  width: 100%;
}

.intro-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.intro-hero img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
}

.intro-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient-strong);
  pointer-events: none;
}

.intro-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-10);
  max-width: 620px;
}

.intro-hero-content .intro-overline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.intro-hero-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #ffffff;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.intro-hero-content .intro-lead {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* Intro features row */
.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-12);
}

.intro-feature {
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.intro-feature-rule {
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto var(--space-4);
  opacity: 0.5;
}

.intro-feature h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.intro-feature p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  background: #ffffff;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}
.btn-start:hover {
  background: #f0ede8;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn-start:active { transform: translateY(0); }

/* ===== RESULTS ===== */
.results-container {
  width: 100%;
}

.results-hero-banner {
  position: relative;
  width: 100%;
  height: 36vh;
  min-height: 260px;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.results-hero-banner img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
}
.results-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient-strong);
}

.results-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.results-hero-content .results-overline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.results-hero-content .results-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.budget-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.budget-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.budget-separator {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.45);
}

/* Results body */
.results-body {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.budget-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* Breakdown toggle */
.breakdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-6);
}
.breakdown-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.breakdown-toggle .arrow {
  transition: transform 300ms var(--ease-out);
  display: inline-block;
  font-size: var(--text-xs);
}
.breakdown-toggle.open .arrow {
  transform: rotate(180deg);
}

/* Breakdown section */
.breakdown-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.breakdown-section.open {
  max-height: 3000px;
}

.breakdown-grid {
  display: grid;
  gap: var(--space-3);
}

.breakdown-category {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.breakdown-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-2);
  background: var(--color-surface-2);
}

.breakdown-cat-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breakdown-cat-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.breakdown-cat-pct {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.breakdown-cat-range {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.breakdown-bar-track {
  height: 4px;
  background: var(--color-divider);
  margin: 0 var(--space-5) var(--space-3);
  border-radius: 2px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-medium);
  min-width: 2px;
}

.breakdown-cat-desc {
  margin: 0;
  padding: 0 var(--space-5) var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.breakdown-items {
  padding: var(--space-2) var(--space-5);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
}
.breakdown-item:not(:last-child) {
  border-bottom: 1px solid var(--color-divider);
}

.breakdown-item-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breakdown-item-range {
  font-size: var(--text-xs);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  margin-left: var(--space-3);
}

/* Lifestyle tags */
.lifestyle-summary {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.lifestyle-summary h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.lifestyle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lifestyle-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
}

/* CTA */
.cta-section {
  text-align: center;
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-primary-highlight);
}
.cta-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.cta-section p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}
.btn-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Data capture buttons */
.cta-data-capture {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-outline:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.btn-outline.btn-success {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.cta-secondary-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-restart:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-6);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.site-footer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 100%;
}
.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .intro-features {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-4);
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .section-hero {
    height: 30vh;
    min-height: 200px;
  }
  .intro-hero {
    height: 50vh;
    min-height: 320px;
  }
  .question-body {
    padding: var(--space-6) var(--space-4) var(--space-12);
  }
  .budget-range {
    flex-direction: column;
    gap: var(--space-1);
  }
  .budget-separator { display: none; }
  .budget-amount { font-size: var(--text-xl); }
  .nav-buttons {
    flex-direction: column-reverse;
    gap: var(--space-3);
  }
  .nav-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .results-body {
    padding: var(--space-6) var(--space-4) var(--space-12);
  }
  .cta-data-capture {
    flex-direction: column;
    align-items: center;
  }
  .cta-secondary-actions {
    flex-direction: column;
    align-items: center;
  }
  .site-header {
    padding: var(--space-3) var(--space-4);
  }
  .running-estimate {
    top: 88px;
  }
  .running-estimate-inner {
    padding: var(--space-2) var(--space-4);
  }
  .running-estimate-range {
    font-size: var(--text-base);
  }
}

/* ───── CONTACT FORM ───── */
.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 560px;
  margin: var(--space-6) auto 0;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.field-required {
  color: #c0392b;
  font-weight: 700;
}
.contact-field input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.12);
}
.contact-field input::placeholder {
  color: var(--color-text-tertiary, #999);
}
.contact-field input.field-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10);
}
.contact-field .field-error-msg {
  font-size: var(--text-xs);
  color: #c0392b;
  margin-top: var(--space-1);
}

/* Submission status toast */
.submission-toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  text-align: center;
  max-width: 90vw;
}
.submission-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.submission-toast.error {
  background: #c0392b;
}
