:root {
  --ink:        #0B1220;
  --ink-soft:   #3A4256;
  --ink-mute:   #6B7280;
  --line:       #E6E8EC;
  --paper:      #FFFFFF;
  --paper-2:    #F7F8FA;
  --accent:     #2F6BFF;
  --accent-ink: #1E4FCC;
  --accent-soft:#EAF0FF;
  --band-early:       #E5484D;
  --band-fragile:     #F2A63B;
  --band-progressing: #E0B400;
  --band-scaling:     #2FA96B;
  --f-xl: clamp(2rem, 5vw, 3.25rem);
  --f-lg: clamp(1.5rem, 3.5vw, 2.25rem);
  --f-md: 1.25rem;
  --f-base: 1.0625rem;
  --f-sm: 0.9375rem;
  --f-xs: 0.8125rem;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 30px rgba(11,18,32,.06);
  --maxw: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--paper-2); line-height: 1.55;
  font-size: var(--f-base); -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.topbar { padding: 20px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); display: inline-block; }
.brand small { font-weight: 500; color: var(--ink-mute); font-size: var(--f-xs); letter-spacing: .02em; text-transform: uppercase; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); margin: 32px 0 48px; }
.screen { display: none; }
.screen.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: var(--f-sm); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: var(--f-xl); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
h2 { font-size: var(--f-lg); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.lead { font-size: var(--f-md); color: var(--ink-soft); margin-bottom: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin: 28px 0 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-row .item { font-size: var(--f-sm); color: var(--ink-mute); }
.meta-row .item strong { display: block; color: var(--ink); font-size: var(--f-base); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: var(--f-base); padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:disabled { background: #C3CBD6; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.btn-lg { padding: 16px 30px; font-size: var(--f-md); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.progress-head .step { font-size: var(--f-sm); color: var(--ink-mute); font-weight: 500; }
.progress-head .sect { font-size: var(--f-sm); color: var(--accent-ink); font-weight: 600; }
.progress-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 34px; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.section-intro { font-size: var(--f-sm); color: var(--ink-mute); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.q-text { font-size: var(--f-lg); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.q-helper { font-size: var(--f-base); color: var(--ink-mute); margin-bottom: 30px; padding-left: 14px; border-left: 3px solid var(--accent-soft); }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .12s ease, background .12s ease; background: var(--paper); font-size: var(--f-base); text-align: left; width: 100%; font-family: inherit; color: var(--ink); }
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: all .12s ease; }
.opt.selected .tick { border-color: var(--accent); background: var(--accent); }
.opt.selected .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.opt .pts { margin-left: auto; font-size: var(--f-xs); color: var(--ink-mute); font-weight: 600; }
.opt.dna { border-style: dashed; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.nav-hint { font-size: var(--f-xs); color: var(--ink-mute); }
.field { margin: 24px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: var(--f-sm); }
.field input, .field textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: var(--f-base); border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--paper); transition: border-color .12s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: var(--f-xs); color: var(--ink-mute); margin-top: 6px; }
.privacy { font-size: var(--f-xs); color: var(--ink-mute); margin-top: 18px; }
.result-score { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.result-score .num { font-size: clamp(3rem, 9vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.result-score .den { font-size: var(--f-md); color: var(--ink-mute); font-weight: 600; }
.band-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: var(--f-sm); color: #fff; margin-bottom: 24px; }
.band-Early .band-pill { background: var(--band-early); }
.band-Fragile .band-pill { background: var(--band-fragile); }
.band-Progressing .band-pill { background: var(--band-progressing); }
.band-Scaling .band-pill { background: var(--band-scaling); }
.debrief { background: var(--paper-2); border-left: 4px solid var(--accent); padding: 20px 22px; border-radius: var(--radius-sm); margin: 24px 0; font-size: var(--f-md); color: var(--ink); line-height: 1.4; }
.band-opening { font-size: var(--f-md); font-weight: 600; margin: 28px 0 14px; }
.band-body { color: var(--ink-soft); margin-bottom: 24px; }
.next-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0; }
.next-step .label { font-size: var(--f-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; }
.dims { margin: 32px 0; }
.dim-row { margin-bottom: 16px; }
.dim-row .top { display: flex; justify-content: space-between; font-size: var(--f-sm); margin-bottom: 6px; }
.dim-row .top .name { font-weight: 600; }
.dim-row .top .val { color: var(--ink-mute); font-weight: 600; }
.dim-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s ease; }
.dim-row.weakest .dim-fill { background: var(--band-early); }
.dim-row.weakest .name::after { content: " · your gap"; color: var(--band-early); font-weight: 600; font-size: var(--f-xs); }
.cta { margin-top: 36px; padding: 32px; border-radius: var(--radius); background: var(--ink); color: #fff; text-align: center; }
.cta h3 { font-size: var(--f-lg); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta p { color: #C7CDD9; margin-bottom: 22px; }
.cta .btn-primary { background: var(--accent); }
.cta .btn-primary:hover { background: #3d78ff; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-note { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--f-sm); margin-top: 16px; }
.foot { text-align: center; padding: 24px 0 48px; color: var(--ink-mute); font-size: var(--f-xs); }
@media (max-width: 520px) {
  .card { padding: 24px 20px; }
  .nav-row { flex-direction: column-reverse; gap: 14px; align-items: stretch; }
  .nav-row .btn { width: 100%; }
}
