/* Cybersecurity maturity questionnaire (src/cyber-check.js). Uses the site tokens from site.css. */
.questionnaire-frame.cc-frame{padding:30px 36px 28px;min-height:0}
.cc{--cc-tint:#E8F5F6;--cc-red:#C8423B;--cc-yellow:#D99A1E;--cc-green:#2E9E6A;scroll-margin-top:calc(var(--header-height) + 24px)}
.cc .eyebrow{margin-bottom:12px;flex-wrap:wrap}
.cc-cat{color:var(--muted);font-weight:550;letter-spacing:.12em;padding-left:12px;border-left:1px solid var(--line)}
.cc h2{font-size:clamp(23px,2.2vw,28px);line-height:1.2;max-width:26ch}
.cc h2:focus{outline:none}
.cc h2.cc-q{font-size:clamp(19px,1.7vw,22px);line-height:1.35;max-width:44ch;letter-spacing:-.015em}
.cc-lede{font-size:15px;line-height:1.65;color:var(--muted);max-width:58ch;margin-top:10px}
.cc-note{font-size:13px;color:var(--muted);margin-top:22px}
.cc-screen{animation:cc-in .22s ease-out}
@keyframes cc-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Progress: four segments sized by question count */
.cc-track{display:flex;gap:6px;margin-bottom:24px}
.cc-seg{min-width:58px}
.cc-seg:first-child{min-width:70px}
.cc-bar{height:6px;border-radius:3px;background:#E3E9EE;overflow:hidden}
.cc-bar i{display:block;height:100%;background:var(--teal-dark);transition:width .3s ease}
.cc-seg span{display:block;font-size:11px;color:var(--muted);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-seg.is-current span{color:var(--ink);font-weight:650}

/* Intro */
.cc-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid var(--line);max-width:520px}
.cc-facts dt{font-family:var(--heading);font-size:26px;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.cc-facts dd{margin:4px 0 0;font-size:13px;color:var(--muted)}
.cc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px}

/* Question */
.cc-why{margin-top:12px;font-size:13px;color:var(--muted)}
.cc-why summary{cursor:pointer;width:fit-content;font-weight:600;color:var(--teal-dark);list-style-position:inside}
.cc-why p{margin-top:8px;max-width:60ch}
.cc-options{display:grid;gap:8px;margin-top:20px;max-width:560px}
.cc-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 16px;text-align:left;font-size:15px;font-weight:550;color:var(--ink);background:#fcfdfe;border:1px solid rgba(10,29,53,.16);border-radius:14px;transition:border-color .15s,background .15s}
.cc-opt.is-minor{min-height:44px;font-size:14px;color:var(--muted)}
.cc-dot{flex:none;width:18px;height:18px;border-radius:50%;border:1.5px solid rgba(10,29,53,.25);display:grid;place-items:center}
.cc-opt kbd{margin-left:auto;font:inherit;font-size:12px;color:var(--muted);font-weight:450;border:1px solid var(--line);border-radius:6px;padding:1px 7px}
.cc-opt[aria-pressed="true"]{border-color:var(--teal-dark);background:var(--cc-tint)}
.cc-opt[aria-pressed="true"] .cc-dot{border-color:var(--teal-dark);background:var(--teal-dark)}
.cc-opt[aria-pressed="true"] .cc-dot::after{content:"";width:7px;height:7px;border-radius:50%;background:white}
@media(hover:hover){.cc-opt:hover{border-color:var(--teal-dark)}}
@media(hover:none){.cc-opt kbd{display:none}}
.cc-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;font-size:13px;color:var(--muted)}
.cc-back{font-size:13px}
.cc-back .icon{width:16px;height:16px}
.cc-back:hover .icon{transform:translateX(-3px)}

/* Gate */
.cc-form{margin-top:20px;max-width:620px}
.cc-form .form-field input[aria-invalid="true"]{border-color:var(--cc-red)}
.cc-turnstile{margin-bottom:18px}
.cc-error{color:var(--cc-red);font-size:13px;margin-bottom:12px}
.cc-error:empty{display:none}
.cc-form .button[disabled]{opacity:.7;cursor:progress;transform:none}

/* Results */
.cc-rating{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 12px;border-radius:999px;color:white;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:18px}
.cc-rating span{width:8px;height:8px;border-radius:50%;background:white}
.cc-rating.is-red{background:var(--cc-red)}.cc-rating.is-yellow{background:var(--cc-yellow)}.cc-rating.is-green{background:var(--cc-green)}
.cc .cc-level{display:inline-block;max-width:none;font-size:clamp(34px,3.6vw,46px);line-height:1;letter-spacing:-.04em;font-weight:700;color:white;padding:13px 24px 15px;border-radius:16px;margin-top:2px}
.cc-level.is-red{background:var(--cc-red)}.cc-level.is-yellow{background:var(--cc-yellow);color:var(--navy)}.cc-level.is-green{background:var(--cc-green)}
.cc-level:focus{outline:none}
.cc-headline{font-family:var(--heading);font-size:19px;font-weight:600;letter-spacing:-.02em;margin-top:16px}
.cc-results .cc-lede{margin-top:8px}
.cc-lad{display:grid;gap:12px;margin:24px 0;max-width:640px}
.cc-lad-top{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:7px}
.cc-lad-top b{font-weight:600}
.cc-lad-top span{color:var(--muted);white-space:nowrap}
.cc-lad-top em{font-style:normal;font-weight:650;color:var(--teal-dark)}
.cc-lad-bar{position:relative;height:10px;border-radius:5px;background:#E3E9EE;overflow:hidden}
.cc-lad-bar i{display:block;height:100%;width:0;background:var(--teal);transition:width .7s ease}
.cc-scale{margin:24px 0 4px;max-width:640px}
.cc-scale-bar{position:relative;display:flex;gap:2px;height:14px;margin-top:34px}
.cc-scale-bar i{display:block;border-radius:3px;opacity:.25}
.cc-scale-bar i.is-on{opacity:1}
.cc-scale-bar i.is-red{background:var(--cc-red)}.cc-scale-bar i.is-yellow{background:var(--cc-yellow)}.cc-scale-bar i.is-green{background:var(--cc-green)}
.cc-scale-bar b{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1.5px;background:var(--navy);border-radius:2px}
.cc-scale-bar b span{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--navy);color:white;font-size:12px;font-weight:650;padding:3px 9px;border-radius:999px}
.cc-scale-labels{display:flex;gap:2px;margin-top:9px}
.cc-scale-labels span{font-size:13px;color:var(--muted);line-height:1.35}
.cc-scale-labels span.is-on{color:var(--ink);font-weight:650}
.cc-scale-labels small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.cc-results h3.cc-sub{font-size:17px;margin-top:26px}
.cc-note-tight{margin-top:4px;font-size:12px}
.cc-results .cc-lad{margin-top:18px}
.cc-report{display:flex;align-items:center;gap:16px;padding:16px 20px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--cream);margin-bottom:22px}
.cc-report>div{flex:1;font-size:14px;color:var(--muted)}
.cc-report b{color:var(--ink);font-weight:600}
.cc-report .button{flex:none;min-height:44px;padding:11px 18px;font-size:13px;gap:10px}
.cc-results h3{font-size:22px;margin-bottom:6px}
.cc-gaps{list-style:none;counter-reset:gap;margin:10px 0 14px}
.cc-gaps li{counter-increment:gap;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start;padding:18px 0 18px 38px;border-top:1px solid var(--line)}
.cc-risk{margin:0;padding:14px 16px 14px 18px;border-left:3px solid var(--gold);background:#F7F1E7;border-radius:4px 12px 12px 4px;font-family:var(--heading);font-size:16px;font-weight:600;line-height:1.42;letter-spacing:-.01em;color:var(--navy)}
.cc-risk small{display:block;font-family:var(--body);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#9A7238;margin-bottom:5px}
.cc-gaps li:last-child{border-bottom:1px solid var(--line)}
.cc-gaps li::before{content:counter(gap,decimal-leading-zero);position:absolute;left:0;top:20px;font-size:12px;font-weight:650;color:var(--gold)}
.cc-gaps b{display:block;font-size:15px;font-weight:600;line-height:1.5}
.cc-gaps span{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.cc-gaps em{font-style:normal;font-weight:650}
.cc-gaps em.is-no{color:var(--cc-red)}.cc-gaps em.is-partial{color:#A8730F}
.cc-next{margin-top:0;padding:24px 28px;border-radius:var(--radius-md);background:var(--navy-deep);color:white}
.cc-next h3{color:white;font-size:20px}
.cc-next p{font-size:15px;line-height:1.7;color:var(--muted-dark);margin:10px 0 20px;max-width:58ch}
.cc-next p b{color:white;font-weight:600}
.cc-next .button-primary{background:var(--teal-bright);color:var(--navy-deep)}
.cc-next .button-primary:hover{background:white}
.cc-next p.cc-promise{display:flex;align-items:center;gap:10px;color:white;font-weight:650;margin-top:-6px}
.cc-promise .icon{width:20px;height:20px;color:var(--teal-bright)}
.cc-next-actions{display:flex;flex-wrap:wrap;gap:12px}
.cc-btn-ghost{background:transparent;color:white;border-color:rgba(255,255,255,.35)}
.cc-btn-ghost:hover{background:white;color:var(--navy-deep)}

@media(max-width:900px){.questionnaire-frame.cc-frame{padding:36px 32px}}
@media(max-width:600px){
  .questionnaire-frame.cc-frame{padding:22px 18px 22px}
  .cc-track{margin-bottom:28px;gap:4px}.cc-seg{min-width:40px}.cc-seg:first-child{min-width:62px}.cc-seg span{font-size:10px}
  .cc h2{font-size:23px}.cc h2.cc-q{font-size:19px}
  .cc-facts dt{font-size:23px}
  .cc-opt{font-size:15px;min-height:50px}
  .cc-scale{margin:24px 0 4px;max-width:640px}
.cc-scale-bar{position:relative;display:flex;gap:2px;height:14px;margin-top:34px}
.cc-scale-bar i{display:block;border-radius:3px;opacity:.25}
.cc-scale-bar i.is-on{opacity:1}
.cc-scale-bar i.is-red{background:var(--cc-red)}.cc-scale-bar i.is-yellow{background:var(--cc-yellow)}.cc-scale-bar i.is-green{background:var(--cc-green)}
.cc-scale-bar b{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1.5px;background:var(--navy);border-radius:2px}
.cc-scale-bar b span{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--navy);color:white;font-size:12px;font-weight:650;padding:3px 9px;border-radius:999px}
.cc-scale-labels{display:flex;gap:2px;margin-top:9px}
.cc-scale-labels span{font-size:13px;color:var(--muted);line-height:1.35}
.cc-scale-labels span.is-on{color:var(--ink);font-weight:650}
.cc-scale-labels small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.cc-results h3.cc-sub{font-size:17px;margin-top:26px}
.cc-note-tight{margin-top:4px;font-size:12px}
.cc-results .cc-lad{margin-top:18px}
.cc-report{flex-direction:column;align-items:flex-start}
  .cc-next{padding:24px 22px}
}
@media(prefers-reduced-motion:reduce){.cc-screen{animation:none}.cc-bar i,.cc-lad-bar i{transition:none}}
