/* Ecosystem Maturity v2 standalone - HS brand tokens lifted from
   hockeystick-maturity/src/lib/constants.ts (dark forest hero, lime maturity
   accent, cream report cards, Work Sans). */

:root {
  --emerald: #1dae9b;
  --lime: #a8e10c;
  --forest: #0e7663;
  --dark-green: #012d27;
  --cream: #fff5ed;
  --off-white: #f8fafb;
  --bg: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --text-sec: #6b7280;
  --text-muted: #9ca3af;
  --teal-bg: #f0fdfa;
  --red: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Work Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
input { font-size: 16px !important; font-family: inherit; }
button { font-family: inherit; cursor: pointer; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.35s ease both; }

/* ---- Header ---- */
.site-header {
  background: var(--dark-green);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img { height: 26px; display: block; }
.preview-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-green);
  background: var(--lime);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark-green), var(--forest));
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { color: rgba(255, 255, 255, 0.75); font-size: 17px; max-width: 560px; margin: 0 auto 30px; line-height: 1.55; }
.hero .accent { color: var(--lime); }

/* ---- Layout ---- */
.wrap { max-width: 780px; margin: 0 auto; padding: 36px 20px 80px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 18px;
}
.card h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.card .sub { color: var(--text-sec); font-size: 14px; margin: 0 0 20px; }

/* ---- Progress ---- */
.progress { display: flex; gap: 6px; margin-bottom: 22px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.progress span.done { background: var(--emerald); }
.progress span.active { background: var(--lime); }

/* ---- Buttons ---- */
.btn {
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
}
.btn-primary { background: var(--lime); color: var(--dark-green); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-sec); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ---- Chips (profile options) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.chip:hover { border-color: var(--emerald); }
.chip.selected { background: var(--dark-green); border-color: var(--dark-green); color: #fff; }

.field-label { font-size: 13px; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.05em; margin: 22px 0 10px; }
.field-label:first-of-type { margin-top: 0; }
.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.text-input:focus { outline: none; border-color: var(--emerald); }
::placeholder { color: var(--text-muted); }

/* ---- Question anchors (5-point scale) ---- */
.question { margin-bottom: 26px; }
.question:last-of-type { margin-bottom: 6px; }
.question .prompt { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.anchors { display: flex; flex-direction: column; gap: 8px; }
.anchor {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--text);
}
.anchor:hover { border-color: var(--emerald); background: var(--teal-bg); }
.anchor .num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-sec);
}
.anchor.selected { border-color: var(--dark-green); background: var(--dark-green); color: #fff; }
.anchor.selected .num { background: var(--lime); color: var(--dark-green); }

/* ---- Results ---- */
.report-hero {
  background: linear-gradient(135deg, var(--dark-green), var(--forest));
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 18px;
  text-align: center;
}
.report-hero .headline { font-size: 32px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.report-hero .headline .stage { color: var(--lime); }
.report-hero .descriptor { color: rgba(255, 255, 255, 0.82); font-size: 16.5px; max-width: 520px; margin: 0 auto; line-height: 1.5; }
.score-row { display: flex; justify-content: center; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.score-item .big { font-size: 30px; font-weight: 700; color: var(--lime); }
.score-item .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

.card.cream { background: var(--cream); border-color: #f3e3d3; }

.dim-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dim-row:last-child { border-bottom: none; }
.dim-meta { flex: 1; min-width: 0; }
.dim-meta .name { font-size: 14.5px; font-weight: 600; }
.dim-meta .sublabel { font-size: 12.5px; color: var(--text-sec); margin-top: 1px; }
.dim-score { font-size: 15px; font-weight: 700; width: 34px; text-align: right; }
.dim-bar { flex: 0 0 32%; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 4px; background: var(--emerald); }
.dim-bar.opp i { background: var(--forest); }
.axis-caption { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 18px 0 4px; }
.axis-caption:first-of-type { margin-top: 0; }

.radar-box { display: flex; justify-content: center; padding: 8px 0; }

.benchmark-line { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.benchmark-line strong { font-weight: 700; }
.delta-pos { color: var(--forest); font-weight: 700; }
.delta-neg { color: var(--red); font-weight: 700; }

.stake-range { font-size: 30px; font-weight: 700; color: var(--dark-green); margin: 6px 0 10px; }
.stake-note { font-size: 12.5px; color: var(--text-sec); line-height: 1.5; }

.standing-still { font-size: 15px; line-height: 1.6; color: var(--text); font-weight: 500; }

.cta-card { background: linear-gradient(135deg, var(--dark-green), var(--forest)); color: #fff; text-align: center; border: none; }
.cta-card h2 { color: #fff; }
.cta-card .secondary { color: rgba(255, 255, 255, 0.7); font-size: 13.5px; margin-top: 14px; }

.edit-answers { text-align: center; margin-top: 10px; }

@media (max-width: 640px) {
  .hero { padding: 52px 20px 44px; }
  .hero h1 { font-size: 30px; }
  .card { padding: 20px; }
  .report-hero { padding: 30px 20px; }
  .report-hero .headline { font-size: 25px; }
  .dim-bar { flex-basis: 24%; }
}
