:root {
  --ink: #17212b;
  --muted: #5b6773;
  --paper: #f5f7f8;
  --white: #fff;
  --line: #d9e0e6;
  --blue: #1d5f8f;
  --blue-dark: #123c5b;
  --green: #2f7d62;
  --gold: #c77b2a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
}
.brand, nav, .actions { display: flex; align-items: center; gap: 14px; }
.actions { flex-wrap: wrap; }
.brand { text-decoration: none; }
.brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 850;
}
nav { gap: 20px; font-weight: 750; color: #334657; }
nav a { text-decoration: none; }
main > section { padding: 76px max(20px, calc((100vw - var(--max)) / 2)); }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 42px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(18,60,91,.96), rgba(23,33,43,.95));
}
.hero p { color: #dce7ef; font-size: 1.08rem; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero .eyebrow { color: #b8e3cf; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.45rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: 0; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: var(--white); border-color: var(--line); color: var(--blue-dark); }
.button.full { width: 100%; }
.panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
}
.panel h2 { font-size: 1.35rem; }
#stageList { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: #dce7ef; }
#stageList strong { display: block; color: #fff; }
.scale-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.scale-band p { color: var(--muted); }
.scale-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.diagnostic {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}
.progress {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23,33,43,.08);
}
progress { width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--paper); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.questions { display: grid; gap: 20px; }
.category {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.category legend {
  width: 100%;
  padding: 24px;
  background: linear-gradient(135deg, #eef6fb, #fff);
  border-bottom: 1px solid var(--line);
}
.category-name { display: block; font-size: 1.25rem; font-weight: 850; }
.category-prompt { display: block; margin-top: 6px; color: var(--muted); }
.choices { display: grid; }
.choices label {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.choices label:last-child { border-bottom: 0; }
.choices input { accent-color: var(--blue); margin-right: 8px; }
.choices label:has(input:checked) { background: #eaf4fb; }
.choices label strong { color: var(--blue-dark); }
.results { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p:last-child { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.score-card, .chart-card, .recommendation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.score-card { min-height: 210px; padding: 24px; }
.score-card span { color: var(--muted); font-size: .86rem; font-weight: 850; text-transform: uppercase; }
.score-card strong { display: block; margin: 10px 0; color: var(--blue-dark); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
.score-card p { color: var(--muted); }
.chart-card { margin-top: 22px; padding: 22px; }
canvas { display: block; width: 100%; max-width: 100%; }
.recommendations { display: grid; gap: 14px; margin-top: 22px; }
.recommendation { padding: 22px; border-left: 5px solid var(--green); }
.recommendation.priority { border-left-color: var(--gold); }
.recommendation p { color: var(--muted); }
.recommendation strong { color: var(--blue-dark); }
.next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  color: var(--white);
  background: var(--ink);
}
.next p { color: #d3dee7; }
.send-status { width: 100%; margin: 2px 0 0; color: #d3dee7; font-size: .92rem; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  color: #bac4cc;
  background: #101820;
}
@media (max-width: 900px) {
  header, .hero, .scale-band, .diagnostic, .result-grid, .next { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .progress { position: static; }
}
@media (max-width: 620px) {
  main > section { padding-block: 54px; }
  .choices label { grid-template-columns: 1fr; }
}
@media print {
  header, .hero .actions, .progress, .next .actions, .questions { display: none; }
  body, .hero, .next { color: #000; background: #fff; }
  main > section { padding: 24px 0; }
}
