:root {
  --forest: #2B4C42;
  --forest-mid: #3D6B5C;
  --forest-light: #4E8A78;
  --copper: #D4944F;
  --copper-light: #E8B06A;
  --copper-glow: #F0C88A;
  --linen: #FAF8F4;
  --sand: #F0EBE3;
  --sand-mid: #E5DED4;
  --border: #DDD5CA;
  --text-rich: #2A2521;
  --text-warm: #524A42;
  --text-quiet: #8C8278;
  --white: #FFFFFF;
  --error: #B54A32;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--text-rich);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); color: var(--forest); letter-spacing: -0.5px; line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--text-warm); }
.lead { font-size: 1.125rem; color: var(--text-warm); margin-bottom: 1.5rem; }
.sub { color: var(--text-quiet); margin-bottom: 1.5rem; }
.fine { font-size: 0.875rem; color: var(--text-quiet); margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.bullets { padding-left: 1.25rem; color: var(--text-warm); margin: 1.5rem 0 2rem; }
.bullets li { margin-bottom: 0.5rem; }

/* Progress bar */
.progress {
  height: 4px;
  background: var(--sand);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #C4793A, #D4944F 40%, #E8B06A 70%, #F0C88A);
  transition: width 0.4s ease;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--forest);
  color: white;
}
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(43,76,66,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--text-warm);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--sand); }
.btn-large { padding: 1.05rem 2.25rem; font-size: 1rem; }

.nav-row { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: space-between; }

/* Sliders */
.slider-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.slider-row:last-child { border-bottom: none; }
.slider-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.slider-label span.name { font-family: var(--font-display); font-weight: 700; color: var(--forest); }
.slider-label span.value {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--copper);
  background: var(--sand);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  min-width: 2.4rem;
  text-align: center;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--sand-mid);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--forest);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--linen);
  box-shadow: 0 2px 6px rgba(43,76,66,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--forest);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--linen);
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-warm);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s;
}
.chip small { display: block; color: var(--text-quiet); font-size: 0.8rem; font-weight: 400; margin-top: 0.2rem; }
.chip:hover { border-color: var(--copper); background: var(--sand); }
.chip.selected {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.chip.selected small { color: var(--copper-glow); }
.chip-neutral { font-style: italic; color: var(--text-quiet); }
.chip-other { border-style: dashed; color: var(--text-quiet); }
.chip-other.selected, .chip-neutral.selected { font-style: normal; color: white; }
.field-other { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.field-label { font-family: var(--font-display); font-weight: 600; color: var(--forest); font-size: 1rem; margin: 0 0 0.5rem 0; }
.privacy-note {
  display: inline-block;
  background: var(--sand);
  color: var(--text-warm);
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1.25rem 0;
  border-left: 3px solid var(--copper);
}

/* Fields */
.field { display: block; margin-bottom: 1.25rem; }
.field > span { display: block; font-family: var(--font-display); font-weight: 600; color: var(--forest); margin-bottom: 0.4rem; font-size: 0.95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-rich);
  resize: vertical;
  transition: border-color 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--copper); }

/* Honeypot: offscreen so real users never see or tab to it, but bots still fill it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; margin: 1rem 0 1.5rem; font-size: 0.9rem; color: var(--text-warm); }
.checkbox input { margin-top: 0.2rem; }
.checkbox a { color: var(--forest-light); }

/* Loader */
.loader { text-align: center; padding: 4rem 1rem; }
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--sand);
  border-top: 4px solid var(--copper);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Report */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; align-items: center; }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr; } }
.chart-wrap { background: var(--white); border-radius: 16px; padding: 1rem; box-shadow: 0 2px 12px rgba(43,76,66,0.08); }

.scores { display: flex; flex-direction: column; gap: 0.5rem; }
.score-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.score-row:last-child { border-bottom: none; }
.score-row .name { color: var(--text-warm); }
.score-row .val { font-family: var(--font-display); font-weight: 800; color: var(--forest); }
.score-row.low .val { color: var(--error); }
.score-row.high .val { color: var(--forest-light); }

.analysis { background: var(--white); border-radius: 16px; padding: 2rem; margin: 2rem 0; box-shadow: 0 2px 12px rgba(43,76,66,0.08); }
.analysis h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.analysis h3:first-child { margin-top: 0; }
.analysis p { color: var(--text-rich); }
.analysis ul { padding-left: 1.25rem; }
.analysis li { margin-bottom: 0.4rem; color: var(--text-rich); }

.cta-box {
  background: linear-gradient(135deg, #FAF8F4, #F0EBE3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h3 { margin-bottom: 0.5rem; }
.cta-box .btn { margin: 0.5rem 0.3rem; }
