/* Scorecard pages: landing, one-question-per-screen player, results.
   Colours come from the page's :root tokens (same as the rest of the site). */

.sc-hero { padding: 72px 0 40px; }
.sc-props { list-style: none; margin: 24px 0 0; }
.sc-props li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-secondary); font-size: 15.5px; }
.sc-props li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 700; }
.sc-props strong { color: var(--text-primary); }
.sc-cta { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sc-cta .btn { font-size: 16px; padding: 15px 28px; }
.cta-meta { font-size: 13.5px; color: var(--text-muted); }
.sc-cred { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.sc-cred img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sc-cred p { font-size: 13.5px; color: var(--text-muted); }
.sc-cred strong { color: var(--text-secondary); }
.shared-note, .resume-note { margin-top: 18px; padding: 12px 16px; border-radius: 8px; font-size: 14.5px; background: rgba(125, 211, 252, 0.08); border: 1px solid #24506b; color: var(--text-primary); }
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* player */
#quiz-stage { scroll-margin-top: 90px; }
.q-card, .res { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; padding: 28px 30px 30px; }
.q-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-muted); min-height: 22px; }
.q-progress { height: 5px; background: var(--border); border-radius: 4px; margin: 12px 0 22px; overflow: hidden; }
.q-progress span { display: block; height: 100%; background: var(--cyan); border-radius: 4px; transition: width 0.25s ease; }
.q-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; min-height: 16px; }
.q-title { font-size: 23px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 8px; outline: none; }
.q-hint { font-size: 14.5px; color: var(--text-muted); margin-bottom: 4px; }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opts-yn { grid-template-columns: repeat(3, 1fr); }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-primary); font: inherit; font-size: 15.5px; font-weight: 500; padding: 15px 16px; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.opts-yn .opt { justify-content: center; font-weight: 600; }
.opt:hover { border-color: var(--cyan); }
.opt.picked { border-color: var(--cyan); background: rgba(125, 211, 252, 0.12); }
.opt:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt-key { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border-strong); font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.opts-yn .opt-key { display: none; }
.q-text-input { margin-top: 20px; }
.q-actions { display: flex; gap: 18px; align-items: center; margin-top: 14px; }

/* results */
.res-head { display: flex; gap: 26px; align-items: center; }
.res-head-outcome { display: block; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring { width: 132px; height: 132px; }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--border); }
.ring-fg { stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.ring.good .ring-fg { stroke: var(--green); }
.ring.mid .ring-fg { stroke: #e3a72f; }
.ring.low .ring-fg { stroke: var(--red); }
.ring-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 44px; }
.ring-num strong { font-size: 38px; line-height: 1; }
.ring-num span { font-size: 14px; color: var(--text-muted); margin-left: 2px; }
.res-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.res-title { font-size: 28px; letter-spacing: -0.015em; margin-bottom: 6px; outline: none; }
.res-headline { color: var(--text-primary); font-size: 16.5px; font-weight: 500; margin-bottom: 8px; }
.bench { margin-top: 18px; padding: 12px 16px; border-radius: 8px; background: var(--bg-input); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-primary); }
.res-h3 { font-size: 17px; margin: 30px 0 14px; color: var(--text-primary); }
.cats { display: grid; gap: 14px; }
.cat-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 6px; }
.cat-top strong { font-weight: 600; color: var(--text-primary); }
.cat-top span { color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 9px; background: var(--border); border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; }
.bar .good { background: var(--green); }
.bar .mid { background: #e3a72f; }
.bar .low { background: var(--red); }
ol.prios { list-style: none; counter-reset: p; display: grid; gap: 12px; }
ol.prios li { counter-increment: p; position: relative; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 16px 56px; }
ol.prios li::before { content: counter(p); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.prio-tag { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.prio-q { color: var(--text-primary) !important; font-weight: 600; margin-bottom: 6px; font-size: 15px !important; }
ol.prios p { font-size: 14.5px; }
.unsure { margin-top: 14px; font-size: 14.5px; padding-left: 14px; border-left: 3px solid #e3a72f; }
.next { margin-top: 28px; padding: 22px; border: 1px solid #24506b; border-radius: 12px; background: rgba(125, 211, 252, 0.06); }
.next .btn { margin-top: 4px; }
.next-note { margin-top: 12px; font-size: 14.5px; }
.next-more { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.share, .email-box { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.share-sub { font-size: 14.5px; margin-bottom: 12px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { background: none; color: var(--text-primary); border: 1px solid var(--border-strong); padding: 10px 16px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--cyan); opacity: 1; }
.email-box form .btn { margin-top: 6px; }
.email-box .check { margin-bottom: 12px; }
.form-msg { margin-top: 10px; font-size: 14px; color: var(--text-primary); }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--red); }
.done-note { color: var(--text-primary); font-size: 15px; }
.retake { margin-top: 22px; font-size: 14px; color: var(--text-muted); }

/* section progress: one bar per section, the current one highlighted */
.seg-progress { display: flex; gap: 6px; margin: 12px 0 20px; }
.seg { flex: 1; min-width: 0; }
.seg-bar { height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.seg-bar span { display: block; height: 100%; background: var(--cyan); transition: width 0.3s ease; }
.seg-name { font-size: 11px; color: var(--text-muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.cur .seg-name { color: var(--cyan); font-weight: 600; }
.seg.full .seg-name { color: var(--text-secondary); }
.milestone { font-size: 13.5px; color: var(--green); margin: -8px 0 12px; }
.section-card .q-title { margin-top: 6px; }
.done-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 4px; margin-bottom: 12px; }
.chip { font-size: 12.5px; color: var(--green); border: 1px solid #2f6b45; border-radius: 20px; padding: 3px 10px; }

/* building your report */
.building-card { min-height: 220px; }
ul.building { list-style: none; margin-top: 16px; display: grid; gap: 14px; }
ul.building li { position: relative; padding-left: 34px; color: var(--text-muted); font-size: 16px; transition: color 0.3s; }
ul.building li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--cyan); animation: spin 0.8s linear infinite; }
ul.building li.done { color: var(--text-primary); }
ul.building li.done::before { content: "✓"; animation: none; border-color: var(--green); color: var(--green); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the gate */
.gate .q-title { font-size: 25px; }
.gate-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin: 20px 0 22px; align-items: start; }
.gate-inside .sc-props { margin-top: 6px; }
.gate-inside .sc-props li { font-size: 14.5px; }
.gate-form { border-top: 1px solid var(--border); padding-top: 20px; }
.gate-form .check { margin-bottom: 10px; }
.btn-big { font-size: 16px; padding: 15px 28px; margin-top: 6px; }
.gate-alt { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gate-alt:empty { display: none; }
.gate-or { font-size: 13.5px; color: var(--text-muted); }
.gate-fine { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.lab-ms { display: inline-flex; align-items: center; gap: 10px; width: 280px; max-width: 100%; justify-content: center; background: #2f2f2f; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 16px; border-radius: 4px; border: 1px solid #5e5e5e; }
.lab-ms-logo { width: 16px; height: 16px; background: linear-gradient(90deg, #f25022 50%, #7fba00 50%) top / 100% 50% no-repeat, linear-gradient(90deg, #00a4ef 50%, #ffb900 50%) bottom / 100% 50% no-repeat; }

/* the stage ladder (locked at the gate, "you are here" after) */
ol.ladder { list-style: none; display: grid; gap: 8px; }
ol.ladder li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-input); color: var(--text-secondary); font-size: 14.5px; }
ol.ladder li strong { color: var(--text-primary); font-weight: 600; }
ol.ladder li small { color: var(--text-muted); font-size: 12.5px; }
ol.ladder .lock { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); }
ol.ladder.locked li { filter: none; }
ol.ladder.locked .lock { border-style: dashed; color: var(--cyan); }
ol.ladder li.here { border-color: var(--cyan); background: rgba(125, 211, 252, 0.10); }
ol.ladder li.here .lock { border: none; background: var(--cyan); color: #0a0e1a; }
ol.ladder li.past { opacity: 0.6; }
.here-tag { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
.res ol.ladder { margin-top: 22px; }
.next-stage { margin-top: 12px; font-size: 14.5px; }
.next-stage strong { color: var(--text-primary); }
.inbox-note { margin-top: 24px; padding: 14px 16px; border-radius: 10px; border: 1px solid #2f6b45; background: rgba(74, 222, 128, 0.07); font-size: 14.5px; color: var(--text-secondary); }
.inbox-note strong { color: var(--green); }
.res-anim .bar span { transition: width 0.9s ease; }

/* the checklist and other sections below the fold */
.cl-cat { margin-top: 26px; }
.cl-cat h3 { font-size: 17px; margin-bottom: 10px; }
ol.cl { margin: 0 0 0 20px; }
ol.cl li { color: var(--text-secondary); font-size: 15px; margin-bottom: 12px; padding-left: 4px; }
ol.cl li strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.sc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.sc-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.sc-card:hover { border-color: var(--cyan); }
.sc-card .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.sc-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-primary); }
.sc-card p { font-size: 14.5px; flex: 1; }
.sc-card .go { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--cyan); }

@media (max-width: 768px) {
  /* On phones the wrapped menu is a third of the screen: let it scroll away here. */
  body > nav { position: static; }
  .sc-hero { padding-top: 40px; }
  .q-card, .res { padding: 22px 18px 24px; }
  .q-title { font-size: 20px; }
  .res-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .res-title { font-size: 24px; }
  .sc-cards { grid-template-columns: 1fr; }
  .sc-cta .btn { width: 100%; text-align: center; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate .q-title { font-size: 21px; }
  .seg-name { display: none; }
  .seg.cur .seg-name { display: block; overflow: visible; }
  .here-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seg-bar span, .ring-fg, .res-anim .bar span { transition: none; }
  ul.building li::before { animation: none; }
}
