:root {
  color-scheme: light;
  --ink: #10283f;
  --ink-soft: #496275;
  --navy: #0a2035;
  --navy-2: #10324e;
  --paper: #f5f8f9;
  --white: #ffffff;
  --line: #d9e2e7;
  --line-strong: #b9c8d1;
  --teal: #20a995;
  --teal-light: #7ce4d3;
  --blue: #2c6be0;
  --amber: #d9982f;
  --danger: #b94343;
  --shadow: 0 24px 70px rgba(7, 30, 49, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-150%); background: white; color: var(--navy); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.shell { min-height: 100vh; background-image: linear-gradient(rgba(16,40,63,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(16,40,63,.025) 1px, transparent 1px); background-size: 28px 28px; }
.brand-bar { height: 80px; padding: 0 max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(124,228,211,.7); color: var(--teal-light); font-weight: 750; font-size: 1.1rem; border-radius: 11px 4px 11px 4px; }
.brand strong { display: block; letter-spacing: .15em; font-size: .9rem; }
.brand small { display: block; margin-top: 1px; color: #a8becd; font-size: .72rem; letter-spacing: .04em; }
.prototype-badge { border: 1px solid rgba(255,255,255,.22); border-radius: 100px; padding: 7px 12px; color: #d9e7ee; font-size: .78rem; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: end; padding: 66px 0 38px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-weight: 750; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.052em; font-weight: 720; }
.lede { max-width: 760px; margin: 23px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.trust-note { display: flex; gap: 13px; align-items: center; border-left: 1px solid var(--line-strong); padding: 10px 0 10px 24px; }
.trust-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: #e3f7f3; color: #087b6c; font-size: 1.5rem; }
.trust-note strong, .trust-note span { display: block; }
.trust-note span { color: var(--ink-soft); font-size: .82rem; }
.workspace { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 3px 28px 3px 3px; box-shadow: var(--shadow); }
.progress-wrap { padding: 23px 34px 20px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.progress-track { height: 4px; overflow: hidden; background: #e8eef1; border-radius: 10px; }
.progress-track span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .35s ease; }
.step { padding: 42px 48px 46px; }
.step[hidden] { display: none; }
.step-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.step-number { flex: 0 0 auto; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; padding-top: 7px; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; }
.step-heading p { margin: 7px 0 0; color: var(--ink-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { width: 100%; margin-bottom: 13px; font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.size-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.choice { position: relative; display: block; min-height: 82px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 82px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.choice > span::before { content: ""; position: absolute; right: 16px; top: 16px; width: 13px; height: 13px; border: 1.5px solid #9aadb9; border-radius: 50%; }
.choice small { margin-top: 4px; color: var(--ink-soft); font-size: .78rem; }
.choice:hover > span { border-color: #86a3b4; transform: translateY(-1px); }
.choice input:focus-visible + span { outline: 3px solid rgba(44,107,224,.22); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--teal); background: #f1fbf8; box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:checked + span::before { border: 4px solid var(--teal); background: white; }
.compact > span { align-items: flex-start; }
.form-error { min-height: 24px; margin: -12px 0 8px; color: var(--danger); font-size: .88rem; }
.actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.actions.split { justify-content: space-between; }
.button { border: 0; border-radius: 8px; min-height: 48px; padding: 12px 19px; font-weight: 720; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: white; box-shadow: 0 7px 18px rgba(10,32,53,.16); }
.button.primary:hover { background: var(--navy-2); box-shadow: 0 9px 22px rgba(10,32,53,.22); }
.button.secondary { border: 1px solid var(--line-strong); background: white; color: var(--ink); }
.questions { display: grid; gap: 26px; }
.question { border: 0; padding: 0 0 25px; margin: 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; padding-bottom: 0; }
.question legend { display: flex; gap: 12px; line-height: 1.35; }
.q-index { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; padding-top: 3px; }
.answer-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; padding-left: 31px; }
.answer-row .choice { min-height: 60px; }
.answer-row .choice > span { min-height: 60px; font-size: .88rem; padding: 12px 39px 12px 14px; }
.result-step { background: linear-gradient(145deg, #fff 0 57%, #f1f7f8 100%); }
.result-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 70px; align-items: start; }
.result-main h2 { max-width: 650px; font-size: clamp(2rem, 5vw, 3.5rem); }
.result-meter { width: 86px; height: 5px; margin: 0 0 18px; background: #e2e9ed; border-radius: 10px; overflow: hidden; }
.result-meter span { display: block; height: 100%; width: 60%; background: var(--teal); }
.result-summary { max-width: 680px; color: var(--ink-soft); font-size: 1.04rem; }
.score-line { display: flex; justify-content: space-between; max-width: 460px; margin: 28px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-line strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.target-action { margin-top: 4px; }
.action-note { max-width: 560px; color: var(--ink-soft); font-size: .8rem; }
.method-card { padding: 26px; background: var(--navy); color: white; border-radius: 3px 20px 3px 3px; box-shadow: 0 16px 40px rgba(10,32,53,.2); }
.method-card h3 { margin: 0; font-size: 1.3rem; }
.method-card ul { list-style: none; margin: 22px 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.method-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .86rem; }
.method-card li span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal-light); }
.method-card p:last-child { color: #b9cbd6; font-size: .8rem; }
.workflow-example { margin: 48px -48px -46px; padding: 42px 48px 46px; border-top: 1px solid var(--line); background: #f8fafb; }
.workflow-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.workflow-list li { min-height: 185px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.workflow-list li > span { display: block; margin-bottom: 34px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.workflow-list strong, .workflow-list small { display: block; }
.workflow-list small { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }
.text-button { margin-top: 25px; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; background: transparent; color: var(--ink); font-weight: 700; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0 50px; color: #687f8e; font-size: .76rem; }

@media (max-width: 820px) {
  main { width: min(100% - 28px, 680px); }
  .brand-bar { height: 70px; padding: 0 16px; }
  .prototype-badge { display: none; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .trust-note { padding-left: 0; border-left: 0; }
  .step { padding: 30px 22px 34px; }
  .progress-wrap { padding: 20px 22px 17px; }
  .size-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .answer-row { grid-template-columns: 1fr; padding-left: 0; }
  .result-layout { grid-template-columns: 1fr; gap: 34px; }
  .workflow-example { margin: 38px -22px -34px; padding: 32px 22px 34px; }
  .workflow-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  footer { flex-direction: column; gap: 6px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { width: calc(100% - 20px); }
  .brand strong { font-size: .82rem; }
  .brand small { font-size: .68rem; }
  h1 { font-size: 2.35rem; }
  .option-grid, .size-grid { grid-template-columns: 1fr; }
  .choice, .choice > span { min-height: 70px; }
  .step-heading { gap: 11px; }
  .actions, .actions.split { flex-direction: column-reverse; gap: 10px; }
  .button { width: 100%; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 0; }
  .workflow-list li > span { margin-bottom: 18px; }
}

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