: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; }
.h1-accent { color: var(--copper); }
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; }

/* ── Intro: two-column preview card ──────────────────────────────────────── */
.intro-preview-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 14px rgba(43,76,66,0.09);
  margin: 2rem 0;
  align-items: start;
}
@media (max-width: 560px) {
  .intro-preview-card { grid-template-columns: 1fr; }
}

.intro-col-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-quiet);
  margin-bottom: 0.6rem;
}
.intro-col-caption {
  font-size: 0.78rem;
  color: var(--text-quiet);
  margin: 0.4rem 0 0;
  font-style: italic;
  text-align: center;
}

.intro-wheel-svg { width: 100%; height: auto; display: block; }

/* Report preview (right column) */
.intro-report-col { padding-top: 0.1rem; }

.rp-section { margin-bottom: 1rem; }

.rp-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rp-lines { display: flex; flex-direction: column; gap: 0.3rem; }

.rp-line {
  height: 7px;
  background: var(--sand-mid);
  border-radius: 4px;
}
.rp-line-flex { flex: 1; height: 7px; background: var(--sand-mid); border-radius: 4px; }

.rp-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}
.rp-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--copper);
  background: var(--sand);
  width: 17px; height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Testimonial quote (used on intro and email steps) ───────────────────── */
.intro-quote {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--copper);
  background: var(--sand);
  border-radius: 0 12px 12px 0;
}
.intro-quote p {
  font-size: 1rem;
  color: var(--text-rich);
  font-style: italic;
  margin: 0 0 0.4rem;
  line-height: 1.6;
}
.intro-quote cite {
  font-size: 0.8rem;
  color: var(--text-quiet);
  font-style: normal;
}

/* ── Benefit list (intro page) ───────────────────────────────────────────── */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.benefit-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-warm);
  font-size: 1rem;
  line-height: 1.5;
}
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
  font-size: 1rem;
}

/* 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-text {
  background: transparent;
  color: var(--text-quiet);
  border: none;
  padding: 0.85rem 0.5rem;
}
.btn-text:hover { color: var(--text-warm); }
.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;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  border-radius: 6px;
  margin-bottom: 2px;
}
.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); font-size: 0.9rem; }
.score-row.is-low .val  { color: var(--error); }
.score-row.is-high .val { color: var(--forest-light); }
/* Highest-scoring category highlight (green) */
.score-row.highlight-high {
  background: #E6F4ED;
}
.score-row.highlight-high .name { color: #1C3A2E; font-weight: 600; }
.score-row.highlight-high .val  { color: #1C3A2E; }
/* User-selected focus area highlight (red) */
.score-row.highlight-focus {
  background: #FDE9E5;
}
.score-row.highlight-focus .name { color: #7A2D1E; font-weight: 600; }
.score-row.highlight-focus .val  { color: #7A2D1E; }

.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); }

/* Share section */
.share-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 12px rgba(43,76,66,0.08);
  text-align: center;
}
.share-section .eyebrow { margin-bottom: 0.4rem; }
.share-section .sub     { margin-bottom: 0; }
.share-preview-wrap {
  margin: 1.5rem auto;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(43,76,66,0.15);
}
.share-preview-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}
.share-section .btn { margin-top: 0.25rem; }
.share-instruction {
  background: #2B4C42;
  color: #FAF8F4;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}
.share-instruction strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #D4944F;
  margin-bottom: 0.25rem;
}
.share-instruction kbd {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.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; }
