:root {
  --ink: #11141a;
  --muted: #667085;
  --line: #dde1e8;
  --soft: #f2f4f8;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --blue: #2458f5;
  --blue-deep: #153cc2;
  --blue-soft: #eaf0ff;
  --green: #1f9d68;
  --amber: #e87917;
  --red: #d94135;
  --shadow: 0 24px 70px rgba(17, 20, 26, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient-one { top: -17rem; right: -10rem; background: var(--blue); }
.ambient-two { bottom: -20rem; left: -15rem; background: #7e95d7; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  font-size: 15px;
}
.topbar-note { color: var(--muted); font-size: 14px; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 80px;
}

.view { display: none; }
.view.is-active { display: block; animation: rise 0.35s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#intro.is-active {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 86px;
  min-height: calc(100vh - 232px);
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  max-width: 760px;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}
.lede.compact { margin-bottom: 0; font-size: 18px; }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 650px;
}
.promise-item {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  border-radius: 18px;
}
.promise-item strong { display: block; margin-bottom: 20px; color: var(--blue); font-size: 14px; }
.promise-item span { font-size: 14px; font-weight: 700; line-height: 1.25; }

.start-card,
.questions-card,
.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.start-card { padding: 34px; }
.card-heading h2 { margin-bottom: 10px; font-size: 24px; line-height: 1.16; letter-spacing: -0.025em; }
.card-heading p { margin-bottom: 28px; color: var(--muted); font-size: 15px; }
.step-pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--ink);
  background: white;
  border: 1px solid #ccd2dc;
  border-radius: 13px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,88,245,.12); }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--blue-deep); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-full { width: 100%; margin-top: 24px; }
.privacy-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.text-button { padding: 6px 0; color: var(--muted); background: transparent; border: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--ink); }

.quiz-topline,
.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.quiz-topline h1,
.result-header h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1; }
.progress-track { width: 100%; height: 7px; margin: 36px 0 42px; overflow: hidden; background: #e5e8ee; border-radius: 99px; }
.progress-track span { display: block; width: 25%; height: 100%; background: var(--blue); border-radius: inherit; transition: width .3s ease; }

.quiz-layout { display: grid; grid-template-columns: 0.42fr 1fr; gap: 42px; align-items: start; }
.section-context { position: sticky; top: 30px; padding: 10px 0; }
.section-number { display: block; margin-bottom: 26px; color: var(--blue); font-size: 78px; line-height: .8; font-weight: 850; letter-spacing: -0.07em; }
.section-context p { max-width: 300px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.scale-guide { max-width: 300px; margin-top: 34px; padding: 16px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.scale-guide strong { display: block; margin-bottom: 5px; color: var(--ink); }
.scale-guide span { display: block; line-height: 1.45; }

.questions-card { padding: 12px 34px; box-shadow: 0 16px 50px rgba(17,20,26,.07); }
.delivery-context { display: flex; align-items: baseline; gap: 12px; margin: 12px -8px 4px; padding: 14px 18px; color: var(--blue); background: var(--blue-soft); border-radius: 14px; }
.delivery-context span { flex: 0 0 auto; font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.delivery-context strong { font-size: 14px; line-height: 1.35; }
.question {
  min-inline-size: 0;
  margin: 0;
  padding: 27px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.question:last-child { border-bottom: 0; }
.question legend { margin-bottom: 18px; font-size: 17px; line-height: 1.45; font-weight: 750; }
.question legend strong { color: var(--blue); }
.question-hint { margin: -8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.options-scenario { grid-template-columns: 1fr 1fr; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: .16s ease;
}
.option input:focus-visible + span { outline: 3px solid rgba(36,88,245,.25); }
.option input:checked + span { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); }
.option span:hover { border-color: #b8c5eb; }
.options-scenario .option span { min-height: 78px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 13px 15px; text-align: left; line-height: 1.35; }
.options-scenario .option b { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.options-scenario .option input:checked + span b { color: white; background: var(--blue); border-color: var(--blue); }
.quiz-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-left: calc(42% + 42px); }

.result-header { align-items: center; margin-bottom: 40px; }
.result-header > div:first-child { max-width: 760px; }
.score-ring {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 38px;
  color: var(--ink);
  background: conic-gradient(var(--blue) 0deg, var(--blue) var(--score-angle, 0deg), #e4e8f0 var(--score-angle, 0deg));
  border: 13px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(17,20,26,.12), inset 0 0 0 12px var(--canvas);
}
.score-ring span { font-size: 38px; font-weight: 850; letter-spacing: -0.05em; }
.score-ring small { color: var(--muted); font-size: 13px; font-weight: 700; }

.result-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 22px; }
.result-card { padding: 34px; box-shadow: 0 16px 50px rgba(17,20,26,.07); }
.result-card h2 { margin-bottom: 12px; font-size: 27px; line-height: 1.15; letter-spacing: -0.03em; }
.result-card > p:not(.card-label) { color: var(--muted); }
.pressure-card { background: var(--ink); color: white; border-color: var(--ink); }
.pressure-card .card-label { color: #8ba8ff; }
.pressure-card > p:not(.card-label) { color: #c4cbd6; }
.action-box { margin-top: 30px; padding: 20px; color: var(--ink); background: white; border-radius: 16px; }
.action-box strong { display: block; margin-bottom: 7px; color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.action-box p { margin: 0; font-size: 15px; }
.card-title-row { display: flex; justify-content: space-between; }
.dimension-list { margin-top: 28px; }
.dimension-row { margin-top: 20px; }
.dimension-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.dimension-meta span:last-child { color: var(--muted); }
.dimension-track { height: 11px; overflow: hidden; background: #edf0f5; border-radius: 99px; }
.dimension-track span { display: block; height: 100%; border-radius: inherit; background: var(--bar-color, var(--blue)); }

.cta-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.cta-card > div:first-child { max-width: 690px; }
.cta-card .card-label.light { color: #cbd7ff; }
.cta-card h2 { font-size: 30px; }
.cta-card p { margin: 0; color: #dbe3ff; }
.cta-actions { min-width: 240px; display: grid; gap: 10px; }
.button-light { color: var(--blue); background: white; }
.button-outline-light { color: white; background: transparent; border-color: rgba(255,255,255,.55); }
.result-footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.result-footer p { max-width: 760px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .shell { padding-top: 42px; }
  #intro.is-active { grid-template-columns: 1fr; gap: 42px; }
  .quiz-layout, .result-grid { grid-template-columns: 1fr; }
  .section-context { position: static; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .section-number { font-size: 52px; }
  .section-context p { max-width: none; }
  .scale-guide { display: none; }
  .quiz-actions { padding-left: 0; }
  .cta-card { align-items: stretch; flex-direction: column; }
  .cta-actions { width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { width: min(100% - 28px, 1180px); min-height: 68px; }
  .topbar-note { display: none; }
  .shell { width: min(100% - 28px, 1180px); padding: 32px 0 54px; }
  h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-item { min-height: 82px; display: flex; align-items: center; gap: 20px; }
  .promise-item strong { margin: 0; }
  .start-card, .questions-card, .result-card { padding: 24px; border-radius: 20px; }
  .quiz-topline { align-items: start; }
  .quiz-topline h1, .result-header h1 { font-size: 38px; }
  #exit-test { display: none; }
  .section-context { grid-template-columns: 1fr; gap: 0; }
  .section-number { margin-bottom: 16px; }
  .options { grid-template-columns: 1fr 1fr; }
  .options-scenario { grid-template-columns: 1fr; }
  .delivery-context { align-items: flex-start; flex-direction: column; gap: 5px; }
  .quiz-actions .button { flex: 1; padding-inline: 10px; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .score-ring { width: 126px; height: 126px; padding-top: 32px; border-width: 10px; }
  .score-ring span { font-size: 32px; }
  .cta-actions { grid-template-columns: 1fr; }
  .result-footer { flex-direction: column; }
}

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