:root {
  --ink: #111111;
  --muted: #686868;
  --line: #e8e8e8;
  --soft: #f6f6f6;
  --red: #e53935;
  --red-dark: #c92a27;
  --red-soft: #fff1f0;
  --white: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--white); font-family: "DM Sans", sans-serif; }
button, a { font: inherit; }
button { color: inherit; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 18px clamp(24px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); }
.brand { color: var(--ink); text-decoration: none; font-family: "Manrope", sans-serif; font-size: 16px; font-weight: 800; }
.brand span { color: var(--red); }
.progress-wrap { display: flex; align-items: center; gap: 14px; width: min(360px, 48vw); color: var(--muted); font-size: 13px; font-weight: 600; }
.progress-track { flex: 1; height: 5px; overflow: hidden; border-radius: 3px; background: #ededed; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .35s ease; }
.app { display: grid; min-height: calc(100vh - 79px); padding: 48px 24px; }
.screen { width: min(760px, 100%); margin: auto; animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow, .stage-tag { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--red); }
h1, h2 { margin: 0; font-family: "Manrope", sans-serif; letter-spacing: 0; }
.intro h1, .result > h1 { max-width: 680px; font-size: clamp(40px, 7vw, 72px); line-height: 1.04; font-weight: 800; }
.lead { max-width: 640px; margin: 24px 0 32px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); margin: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stages div { display: flex; gap: 12px; padding: 20px 16px 20px 0; }
.stages div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stages b { color: var(--red); font-size: 12px; }
.stages span { font-weight: 600; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 0 25px; border: 0; border-radius: 6px; color: var(--white); background: var(--red); text-decoration: none; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.intro small { display: block; margin-top: 15px; color: #8a8a8a; }
.question { max-width: 720px; }
.question h2 { max-width: 680px; font-size: clamp(30px, 5vw, 48px); line-height: 1.15; }
.hint { margin: 15px 0 30px; color: var(--muted); font-size: 15px; }
.options { display: grid; gap: 11px; }
.option { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 13px 18px; border: 1px solid #dedede; border-radius: 7px; background: var(--white); text-align: left; font-size: 16px; font-weight: 500; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.option:hover, .option:focus-visible { border-color: var(--red); background: var(--red-soft); transform: translateX(3px); outline: none; }
.option-key { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d4d4d4; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.option:hover .option-key { border-color: var(--red); color: var(--red); background: var(--white); }
.back, .restart { margin-top: 28px; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; color: var(--muted); background: none; font-size: 14px; cursor: pointer; }
.back:hover, .restart:hover { color: var(--ink); border-bottom-color: var(--ink); }
.result { width: min(960px, 100%); }
.result-kicker { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.result > h1 { color: var(--red); }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 42px 0; }
.score-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.score-card.is-lowest { border-color: var(--red); background: var(--red-soft); }
.score-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.score-top strong { font-family: "Manrope", sans-serif; font-size: 22px; }
.score-bar { height: 6px; margin-top: 18px; overflow: hidden; border-radius: 3px; background: #e7e7e7; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: #1d1d1d; }
.is-lowest .score-bar span { background: var(--red); }
.diagnosis { display: grid; grid-template-columns: 170px 1fr; column-gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.diagnosis-label { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.diagnosis h2 { margin-bottom: 14px; font-size: clamp(24px, 4vw, 34px); }
.diagnosis > p { grid-column: 2; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.next-step { grid-column: 2; margin-top: 24px; padding: 20px 22px; border-left: 3px solid var(--red); background: var(--soft); }
.next-step p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px; border-radius: 8px; color: var(--white); background: var(--ink); }
.cta-band span { color: #b8b8b8; font-size: 13px; }
.cta-band h2 { max-width: 480px; margin-top: 7px; font-size: clamp(22px, 3vw, 30px); }
.cta-band .primary { flex: 0 0 auto; }
.restart { display: block; margin: 22px auto 0; }
.lead-gate { max-width: 760px; }
.lead-gate h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.08; }
.lead-gate .lead { margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.form-grid input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #d8d8d8; border-radius: 6px; color: var(--ink); background: var(--white); font-size: 16px; font-weight: 400; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.form-grid input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-grid input::placeholder { color: #a0a0a0; }
.full-field { grid-column: 1 / -1; }
.honey { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.form-actions .back { margin: 0; }
.lead-gate form > small { display: block; margin-top: 14px; color: #858585; text-align: right; }
.form-error { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--red); color: #a61f1c; background: var(--red-soft); font-size: 14px; }
.primary:disabled { opacity: .65; cursor: wait; transform: none; }
@media (max-width: 680px) {
  .topbar { min-height: 70px; padding: 16px 20px; }
  .progress-wrap { width: 55vw; }
  .progress-wrap > span { display: none; }
  .app { min-height: calc(100vh - 71px); padding: 32px 20px; }
  .intro h1, .result > h1 { font-size: 40px; }
  .stages { grid-template-columns: 1fr; }
  .stages div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .score-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: 1; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .primary { width: 100%; }
  .form-actions .back { align-self: center; }
  .lead-gate form > small { text-align: center; }
  .diagnosis { grid-template-columns: 1fr; gap: 12px; }
  .diagnosis > p, .next-step { grid-column: 1; }
  .cta-band { align-items: stretch; flex-direction: column; padding: 26px 22px; }
  .cta-band .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
