:root {
  --ink: #1f2933;
  --muted: #64748b;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --sage: #596b4f;
  --sage-dark: #384532;
  --gold: #d6a94a;
  --line: #e6dfd2;
  --shadow: 0 24px 70px rgba(31, 41, 51, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 169, 74, 0.24), transparent 34rem),
    linear-gradient(135deg, #f4ead8 0%, #f9f5ec 48%, #e8eee4 100%);
}

button, a { font: inherit; }

.assessment-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.progress-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: rgba(251, 247, 239, 0.84); backdrop-filter: blur(12px); padding: 12px clamp(18px, 4vw, 48px); }
.progress-meta { width: min(100%, 980px); margin: 0 auto 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.progress-track { width: min(100%, 980px); height: 8px; margin: 0 auto; background: rgba(89, 107, 79, 0.14); border-radius: 999px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--gold)); transition: width 420ms ease; }

.card {
  width: 100%;
  margin-top: 46px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(230, 223, 210, 0.88);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 6vw, 68px);
}

.screen { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 340ms ease, transform 340ms ease; }
.screen-active { opacity: 1; transform: translateY(0) scale(1); }
.screen-exit { opacity: 0; transform: translateY(-18px) scale(0.985); }

.eyebrow { margin: 0 0 12px; color: var(--sage); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.04; color: var(--sage-dark); }
h1 { font-size: clamp(2.4rem, 6vw, 5.25rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); letter-spacing: -0.045em; }
.welcome-copy { max-width: 760px; margin: 24px 0 34px; font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.6; color: #46515c; }

.primary-btn, .secondary-btn, .ghost-btn, .step-link {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.primary-btn, .step-link.primary { color: #fff; background: var(--sage); box-shadow: 0 12px 28px rgba(89, 107, 79, 0.28); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.secondary-btn, .step-link.secondary { color: var(--sage-dark); background: rgba(214, 169, 74, 0.2); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ghost-btn { color: var(--sage-dark); background: transparent; border: 1px solid var(--line); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .step-link:hover { transform: translateY(-2px); }

.question-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--sage); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.scale-help { display: flex; justify-content: space-between; margin: 34px 0 10px; color: var(--muted); font-size: 0.92rem; }
.answer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.answer-btn { min-height: 112px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); cursor: pointer; padding: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.answer-btn strong { font-size: 2rem; color: var(--sage-dark); }
.answer-btn span { font-size: 0.86rem; color: var(--muted); font-weight: 700; }
.answer-btn:hover, .answer-btn.selected { transform: translateY(-4px); border-color: var(--sage); box-shadow: 0 14px 28px rgba(89, 107, 79, 0.16); background: #fbf9f3; }
.keyboard-hint { color: var(--muted); margin: 0 0 22px; }

.results-screen h1 { font-size: clamp(2.1rem, 5vw, 4.1rem); }
.results-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin-bottom: 28px; }
#outcome-description { color: #46515c; font-size: 1.12rem; line-height: 1.62; margin: 16px 0 0; }
.score-circle { width: 150px; height: 150px; border-radius: 999px; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, var(--sage), var(--sage-dark)); color: #fff; box-shadow: 0 18px 38px rgba(56, 69, 50, 0.26); }
.score-circle span { font-size: 3.8rem; font-weight: 900; line-height: 1; }
.score-circle small { font-weight: 800; color: rgba(255,255,255,0.78); }
.insight-box { margin: 24px 0 34px; padding: 18px 20px; background: rgba(214, 169, 74, 0.14); border: 1px solid rgba(214, 169, 74, 0.34); border-radius: 18px; line-height: 1.55; }
.section-breakdown { display: grid; gap: 14px; margin: 16px 0 34px; }
.section-row { display: grid; grid-template-columns: minmax(160px, 240px) 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.72); }
.section-bar { height: 12px; background: rgba(89, 107, 79, 0.12); border-radius: 999px; overflow: hidden; }
.section-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--gold)); }
.section-score { font-weight: 900; color: var(--sage-dark); white-space: nowrap; }
.next-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 30px; }
.next-step { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,0.76); display: flex; flex-direction: column; gap: 12px; }
.next-step strong { color: var(--sage-dark); }
.next-step p { margin: 0; color: #52606d; line-height: 1.5; }
blockquote { margin: 28px 0; padding-left: 20px; border-left: 5px solid var(--gold); color: var(--sage-dark); font-size: clamp(1.4rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.15; }
.results-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status-message { min-height: 24px; margin: 14px 0 0; color: var(--sage); font-weight: 800; }

@media (max-width: 760px) {
  .card { border-radius: 22px; }
  .answer-grid, .next-steps { grid-template-columns: 1fr; }
  .answer-btn { min-height: 78px; flex-direction: row; justify-content: flex-start; }
  .results-hero { grid-template-columns: 1fr; }
  .score-circle { width: 128px; height: 128px; }
  .section-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}