/* ============================================================
   The Cyber Detective — Board Readiness Check
   Page-specific styles. Everything is scoped under .scorecard so
   the generic class names here (.card, .btn, .row, label, input)
   cannot collide with the shared styles.css.
   ============================================================ */

.scorecard {
    /* Re-skinned to the site palette. The original standalone design
       used a brass/slate scheme; these map it onto the site's purple. */
    --sc-panel: #0F0A0F;
    --sc-line: rgba(168, 45, 168, 0.28);
    --sc-paper: var(--text-light);
    --sc-muted: #9CA3AF;
    --sc-accent: var(--primary-purple);
    --sc-alert: #D4635A;
    --sc-steady: #5AA97F;

    --sc-font-display: var(--font-head);
    --sc-font-label: var(--font-head);

    max-width: 760px;
    margin: 0 auto;
    /* Clears the fixed site nav */
    padding: 140px 20px 100px;
}

/* --- shared type ------------------------------------------------ */
.scorecard .eyebrow {
    font-family: var(--sc-font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sc-accent);
    margin: 0 0 14px;
}

.scorecard h1 {
    font-family: var(--sc-font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--text-white);
}

.scorecard h2 {
    font-family: var(--sc-font-display);
    font-weight: 600;
    font-size: clamp(1.35rem, 3.4vw, 1.75rem);
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--text-white);
}

.scorecard p { margin: 0 0 16px; font-size: 1rem; line-height: 1.65; }
.scorecard .lede { font-size: 1.125rem; color: var(--sc-muted); }
.scorecard .small { font-size: 0.875rem; color: var(--sc-muted); }

/* --- case file frame -------------------------------------------- */
.scorecard .filetag {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--sc-line);
    padding-bottom: 10px;
    margin-bottom: 36px;
    font-family: var(--sc-font-label);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sc-muted);
}

.scorecard .filetag b { color: var(--sc-paper); font-weight: 600; }

/* --- cards ------------------------------------------------------- */
.scorecard .card {
    background: var(--sc-panel);
    border: 1px solid var(--sc-line);
    border-radius: 8px;
    padding: 28px;
}

/* --- buttons ----------------------------------------------------- */
.scorecard .btn {
    display: inline-block;
    width: auto;
    font-family: var(--sc-font-label);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-white);
    background: var(--gradient-purple);
    border: 1px solid var(--sc-accent);
    border-radius: 4px;
    padding: 14px 28px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.scorecard .btn:disabled { opacity: 0.35; cursor: not-allowed; }

.scorecard .btn-ghost {
    background: none;
    color: var(--sc-muted);
    border: 1px solid var(--sc-line);
    font-weight: 500;
    padding: 11px 18px;
    font-size: 0.875rem;
}

@media (hover: hover) and (pointer: fine) {
    .scorecard .btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
    .scorecard .btn-ghost:hover { color: var(--sc-paper); border-color: var(--sc-accent); filter: none; }
    .scorecard .opt:hover { border-color: var(--sc-accent); background: rgba(168, 45, 168, 0.08); }
}

.scorecard :focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* --- prediction slider ------------------------------------------- */
.scorecard .predict { margin: 28px 0 8px; }

.scorecard .predict-value {
    font-family: var(--sc-font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--sc-accent);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.scorecard input[type=range] { width: 100%; accent-color: var(--sc-accent); height: 28px; }

.scorecard .scale {
    display: flex;
    justify-content: space-between;
    font-family: var(--sc-font-label);
    font-size: 0.7rem;
    color: var(--sc-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- progress ----------------------------------------------------- */
.scorecard .progress { display: flex; gap: 5px; margin-bottom: 26px; }

.scorecard .progress i {
    flex: 1;
    height: 3px;
    background: var(--sc-line);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.scorecard .progress i.done { background: var(--sc-accent); }
.scorecard .progress i.active { background: var(--text-white); }

/* --- questions ---------------------------------------------------- */
.scorecard .qtext {
    font-family: var(--sc-font-display);
    font-weight: 600;
    font-size: clamp(1.2rem, 3.6vw, 1.5rem);
    line-height: 1.32;
    margin: 0 0 22px;
    color: var(--text-white);
}

.scorecard .qtext em { color: var(--sc-accent); font-style: italic; }

.scorecard .opt {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid var(--sc-line);
    border-radius: 4px;
    color: var(--sc-paper);
    font-family: inherit;
    font-size: 0.97rem;
    line-height: 1.45;
    padding: 15px 17px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.scorecard .followup {
    border-left: 2px solid var(--sc-accent);
    padding-left: 18px;
    margin-top: 26px;
}

.scorecard .followup .eyebrow { margin-bottom: 10px; }

/* --- results ------------------------------------------------------- */
.scorecard .score-hero { text-align: center; padding: 8px 0 4px; }

.scorecard .score-num {
    font-family: var(--sc-font-display);
    font-weight: 700;
    font-size: clamp(4rem, 16vw, 5.75rem);
    line-height: 1;
    color: var(--sc-accent);
}

.scorecard .score-num span { font-size: 0.34em; color: var(--sc-muted); }

.scorecard .band {
    font-family: var(--sc-font-label);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 10px;
}

.scorecard .gap { margin: 34px 0 8px; }
.scorecard .gapbar { margin-bottom: 14px; }

.scorecard .gaplabel {
    display: flex;
    justify-content: space-between;
    font-family: var(--sc-font-label);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-muted);
    margin-bottom: 6px;
}

.scorecard .track { height: 9px; background: var(--sc-line); border-radius: 5px; overflow: hidden; }

.scorecard .fill {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.scorecard .fill.predicted { background: var(--sc-muted); }
.scorecard .fill.actual { background: var(--gradient-purple); }

.scorecard .verdict {
    font-family: var(--sc-font-display);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--sc-line);
}

.scorecard table.pillars { width: 100%; border-collapse: collapse; margin-top: 6px; }

.scorecard table.pillars td {
    padding: 11px 0;
    border-bottom: 1px solid var(--sc-line);
    font-size: 0.94rem;
    vertical-align: middle;
}

.scorecard table.pillars td:last-child {
    text-align: right;
    font-family: var(--sc-font-label);
    font-size: 0.9rem;
    width: 64px;
}

.scorecard .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 10px;
}

/* --- form ---------------------------------------------------------- */
.scorecard label {
    display: block;
    font-family: var(--sc-font-label);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sc-muted);
    margin-bottom: 6px;
}

.scorecard input[type=text],
.scorecard input[type=email] {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--sc-line);
    border-radius: 4px;
    color: var(--sc-paper);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.scorecard input:focus { border-color: var(--sc-accent); outline: none; }

/* Every field on the lead form is required. */
.scorecard .req { color: var(--sc-accent); }

.scorecard .form-note {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sc-line);
}

.scorecard input.is-invalid {
    border-color: var(--sc-alert);
    background: rgba(212, 99, 90, 0.06);
}

.scorecard .row { display: flex; gap: 14px; }
.scorecard .row > div { flex: 1; }

.scorecard .consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; }
.scorecard .consent input { margin-top: 3px; accent-color: var(--sc-accent); flex: 0 0 auto; }
.scorecard .consent span { font-size: 0.82rem; color: var(--sc-muted); line-height: 1.5; }

/* Consent text is prose, not a field label, so it opts out of the
   uppercase treatment the form labels get. Wrapping it in a <label>
   also makes the text itself a click target for the checkbox. */
.scorecard .consent label {
    display: inline;
    margin-bottom: 0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--sc-muted);
    line-height: 1.5;
    cursor: pointer;
}

.scorecard .consent-note {
    margin: 0 0 20px;
    font-size: 0.78rem;
}

/* Honeypot. Bots fill in anything they find; humans never see it.
   Deliberately not display:none — some bots skip hidden fields. */
.scorecard .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.scorecard .turnstile-holder { margin: 0 0 18px; }

/* --- steps --------------------------------------------------------- */
.scorecard .step { display: none; }
.scorecard .step.on { display: block; animation: sc-in 0.35s ease both; }

@keyframes sc-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .scorecard { padding: 110px 14px 70px; }
    .scorecard .card { padding: 20px; }
}

@media (max-width: 520px) {
    .scorecard .row { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .scorecard .step.on { animation: none; }
    .scorecard .fill { transition: none; }
}
