/* Qualification flow. Reuses the site tokens; adds the step layout and the map canvas. */
[hidden] { display:none !important; }
.q { position:relative; padding:56px 24px 96px; max-width:1080px; }
.q > :not(canvas) { position:relative; z-index:1; }
#qmap { position:absolute; top:0; right:0; width:40%; height:520px; z-index:0; pointer-events:none; }
.q-head { max-width:58%; }
.q-kicker { font-size:14px; font-weight:600; color:var(--muted); margin-bottom:10px; }
.q h1 { font-size:clamp(32px,4.5vw,48px); letter-spacing:-.02em; line-height:1.1; margin-bottom:28px; }

.q-progress { list-style:none; padding:0; display:flex; gap:0; border-bottom:1px solid var(--line); margin-bottom:36px; max-width:58%; }
.q-progress li { flex:1; padding:10px 0; font-size:13px; font-weight:600; color:var(--muted); border-bottom:3px solid transparent; margin-bottom:-1px; counter-increment:q; }
.q-progress li::before { content:counter(q) " · "; }
.q-progress li[aria-current] { color:var(--ink); border-color:var(--lime); }
.q-progress li.done { color:var(--ink); border-color:var(--ink); }

.q-step { border:0; padding:0; margin:0; max-width:58%; animation:rise .6s cubic-bezier(.2,.7,.2,1) both; }
.q-step[hidden] { display:none; }
legend, .q-result h2 { font-size:clamp(22px,2.6vw,28px); font-weight:700; letter-spacing:-.01em; line-height:1.2; margin-bottom:6px; padding:0; }
.q-sub { color:var(--muted); margin-bottom:18px; }
.q-sub2 { margin-top:28px; }

.q-opts { display:grid; gap:10px; margin-bottom:24px; }
.q-opts-row { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
.q-opts label { position:relative; display:block; cursor:pointer; }
.q-opts input { position:absolute; opacity:0; width:1px; height:1px; }
.q-opts span { display:block; border:1px solid var(--ink); padding:14px 18px; font-weight:600; background:#fff; transition:transform .15s, box-shadow .15s, background .15s; }
.q-opts label:hover span { transform:translate(-2px,-2px); box-shadow:4px 4px 0 var(--ink); }
.q-opts input:checked + span { background:var(--lime); }
.q-opts input:focus-visible + span { outline:3px solid var(--ink); outline-offset:2px; }
.q-opts span small { display:block; font-weight:400; color:var(--muted); font-size:14px; margin-top:2px; }

.q-other { display:block; font-weight:600; margin:-8px 0 24px; }
.q-other textarea { width:100%; margin-top:6px; padding:12px 14px; border:1px solid #767676; font:inherit; }
.q-other textarea:focus { outline:2px solid var(--lime); border-color:var(--ink); }
.q-row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.q-row .btn.ghost, .q-back.btn.ghost { margin:0; }

/* Result */
.q-result { max-width:100%; }
.q-path { font-size:14px; font-weight:600; color:var(--muted); margin-bottom:10px; }
.q-path b { color:var(--ink); }
.q-path b::after { content:" → "; color:var(--muted); font-weight:400; }
.q-path b:last-child::after { content:""; }
.q-solutions { list-style:none; padding:0; counter-reset:s; display:grid; gap:12px; margin:8px 0 32px; }
.q-solutions li { counter-increment:s; border:1px solid var(--ink); padding:18px 20px 18px 64px; position:relative; background:#fff; animation:rise .6s cubic-bezier(.2,.7,.2,1) both; }
.q-solutions li:nth-child(2) { animation-delay:.1s } .q-solutions li:nth-child(3) { animation-delay:.2s }
.q-solutions li::before { content:"0" counter(s); position:absolute; left:20px; top:16px; font-weight:700; font-size:18px; }
.q-solutions li:first-child::after { content:"Closest to how you work now"; position:absolute; right:14px; top:-11px; background:var(--lime); font-size:12px; font-weight:700; padding:3px 8px; }
.q-nofit li:first-child::after { content:none; }
.q-solutions strong { display:block; margin-bottom:2px; }
.q-solutions span { color:var(--muted); font-size:15px; }
.q-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:24px 0; margin-bottom:20px; }
.q-grid b { display:block; font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:6px; }
.q-grid p { margin:0; }
.q-honest { color:var(--muted); font-size:15px; margin-bottom:32px; }
.q-offer { margin-bottom:40px; }
.q-talk { max-width:520px; margin-bottom:32px; }
.q-talk h3 { font-size:22px; margin-bottom:4px; }
.q-mock { font-size:14px; color:var(--muted); border-left:3px solid var(--lime); padding-left:10px; }
.q-status { font-weight:600; min-height:1.5em; margin:0; }
.q-status.err { color:#B3261E; }

.q.is-result #qmap { position:static; width:100%; height:150px; margin:-8px 0 20px; }
@media (max-width:640px) { .q-progress li { font-size:12px; padding-right:8px; } .q-progress li::before { content:counter(q) " "; } }
@media (max-width:860px) {
  #qmap { position:static; width:100%; height:140px; margin-bottom:12px; }
  .q-head, .q-progress, .q-step { max-width:100%; }
  .q-grid { grid-template-columns:1fr; gap:18px; }
  .offer.q-offer { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { .q-step, .q-solutions li { animation:none; } }
.q-shake { animation:shake .4s; } @keyframes shake { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
