:root {
  --navy: #10233F;
  --ink: #2B3A4F;
  --muted: #51607A;
  --line: #DCE2EA;
  --soft: #F3F5F8;
  --accent: #B9501B;
  --accent-dark: #8A3A12;
  --green: #0F6B4F;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--soft); color: var(--ink);
  font: 17px/1.55 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; }
.progress { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

.wrap { max-width: 720px; margin: 0 auto; padding: 28px 16px 48px; }
.card, .hero { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; margin-bottom: 16px; }
.hero { border-top: 4px solid var(--accent); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.headline { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 19px; }
.meta, .small, .hint { color: var(--muted); font-size: 14px; }
.callout { background: var(--soft); border-left: 4px solid var(--green); padding: 12px 14px; border-radius: 6px; }
blockquote { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 6px; }

.q { margin: 0 0 24px; }
.q-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"], .opt:has(input:checked) { border-color: var(--accent); background: #FDF4EE; }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale .opt { justify-content: center; align-items: center; padding: 8px 4px; font-weight: 600; }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 4px; }
.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item p { margin: 0 0 8px; font-weight: 500; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert .opt { justify-content: center; align-items: center; min-height: 44px; padding: 6px 2px; font-size: 13px; line-height: 1.2; text-align: center; }

textarea, input[type=text], input[type=email] { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
textarea { min-height: 150px; resize: vertical; }
textarea:focus, input:focus, .opt:focus-visible, .btn:focus-visible { outline: 3px solid #F2A06B; outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--accent); color: var(--white); font: 600 17px 'IBM Plex Sans', sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.92); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ghost { background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 10px; padding: 8px 14px; font: 600 15px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px; }
.error { color: #A3271B; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: 12px; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--navy); }

.risks li, .plan li { margin-bottom: 10px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.parts { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
table.parts td, table.parts th { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
table.parts td:first-child { font-weight: 600; color: var(--navy); width: 34%; }
.cta { background: var(--navy); color: var(--white); border-radius: 14px; padding: 24px 20px; text-align: center; }
.cta p { font-size: 19px; margin: 0 0 16px; }

.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

@media (max-width: 480px) {
  .likert .opt { font-size: 11px; }
  .card, .hero { padding: 20px 16px; }
}
@media print {
  body { background: #fff; }
  .bar .print, .bar .progress, .cta .btn { display: none; }
  .bar { position: static; }
  .card, .hero { border: 0; padding: 0 0 12px; break-inside: avoid; }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts:not(:empty) { margin-top: 12px; }
