/* RTO Compliance Scorecard — interactive lead-magnet tool styles.
   Loaded by app/templates/tools/scorecard.html via the public_base head block. */

.scorecard-page {
    --sc-bg: #f7f8fc;
    --sc-white: #ffffff;
    --sc-dark: #1a1d2e;
    --sc-mid: #4a5068;
    --sc-muted: #8890a8;
    --sc-border: #dde3f0;
    --sc-accent: #4f7cff;
    --sc-accent-light: #eef2ff;
    --sc-green: #27ae60;
    --sc-green-light: #eafaf1;
    --sc-yellow: #f39c12;
    --sc-yellow-light: #fef9ec;
    --sc-red: #e74c3c;
    --sc-red-light: #fdf0ef;

    background: var(--sc-bg);
    color: var(--sc-dark);
    font-size: 15px;
    line-height: 1.6;
    padding: 24px 0 80px;
}
.scorecard-page * {
    box-sizing: border-box;
}

.scorecard-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.scorecard-page .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.scorecard-page .brand-tag {
    font-size: 12px;
    color: var(--sc-muted);
    border: 1px solid var(--sc-border);
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--sc-white);
}

.scorecard-page .hero {
    text-align: center;
    margin-bottom: 36px;
}
.scorecard-page .hero h1 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--sc-dark);
    margin-bottom: 10px;
}
.scorecard-page .hero p {
    color: var(--sc-mid);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}
.scorecard-page .hero .badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.scorecard-page .badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--sc-accent-light);
    color: var(--sc-accent);
    font-weight: 500;
}

.scorecard-page .progress-wrap {
    background: var(--sc-border);
    border-radius: 4px;
    height: 6px;
    margin-bottom: 8px;
}
.scorecard-page .progress-bar {
    height: 6px;
    border-radius: 4px;
    background: var(--sc-accent);
    transition: width .4s ease;
}
.scorecard-page .progress-label {
    font-size: 12px;
    color: var(--sc-muted);
    margin-bottom: 24px;
    text-align: right;
}

.scorecard-page .card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.scorecard-page .card-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-accent);
    font-weight: 600;
    margin-bottom: 6px;
}
.scorecard-page .card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    color: var(--sc-dark);
}
.scorecard-page .card .q-desc {
    font-size: 13px;
    color: var(--sc-mid);
    margin-bottom: 20px;
}

.scorecard-page .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.scorecard-page .option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--sc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--sc-white);
}
.scorecard-page .option:hover {
    border-color: var(--sc-accent);
    background: var(--sc-accent-light);
}
.scorecard-page .option.selected {
    border-color: var(--sc-accent);
    background: var(--sc-accent-light);
}
.scorecard-page .option input[type=radio] {
    display: none;
}
.scorecard-page .option-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--sc-border);
    flex-shrink: 0;
    margin-top: 1px;
    transition: border-color .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scorecard-page .option.selected .option-dot {
    border-color: var(--sc-accent);
    background: var(--sc-accent);
}
.scorecard-page .option.selected .option-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}
.scorecard-page .option-text {
    flex: 1;
}
.scorecard-page .option-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--sc-dark);
}

.scorecard-page .nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}
.scorecard-page .sc-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .15s, background .15s;
    font-family: inherit;
}
.scorecard-page .sc-btn-primary {
    background: var(--sc-accent);
    color: white;
}
.scorecard-page .sc-btn-primary:hover {
    opacity: .9;
}
.scorecard-page .sc-btn-secondary {
    background: var(--sc-border);
    color: var(--sc-mid);
}
.scorecard-page .sc-btn-secondary:hover {
    background: #cdd4e8;
}
.scorecard-page .sc-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.scorecard-page .results {
    display: none;
}
.scorecard-page .results.visible {
    display: block;
}
.scorecard-page .score-ring-wrap {
    text-align: center;
    margin: 24px 0;
}
.scorecard-page .score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    border: 8px solid var(--sc-border);
    margin-bottom: 12px;
}
.scorecard-page .score-label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}
.scorecard-page .score-desc {
    font-size: 13px;
    color: var(--sc-mid);
    max-width: 440px;
    margin: 8px auto 0;
}

.scorecard-page .category-bars {
    margin: 24px 0;
}
.scorecard-page .cat-row {
    margin-bottom: 14px;
}
.scorecard-page .cat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}
.scorecard-page .cat-name {
    font-weight: 500;
}
.scorecard-page .cat-score {
    color: var(--sc-muted);
}
.scorecard-page .cat-bar-bg {
    background: var(--sc-border);
    border-radius: 4px;
    height: 8px;
}
.scorecard-page .cat-bar {
    height: 8px;
    border-radius: 4px;
    transition: width .6s ease;
}

.scorecard-page .findings {
    margin-top: 24px;
}
.scorecard-page .finding {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.scorecard-page .finding.bg-green { background: var(--sc-green-light); }
.scorecard-page .finding.bg-yellow { background: var(--sc-yellow-light); }
.scorecard-page .finding.bg-red { background: var(--sc-red-light); }
.scorecard-page .finding-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.scorecard-page .finding-title {
    font-size: 14px;
    font-weight: 600;
}
.scorecard-page .finding-desc {
    font-size: 13px;
    color: var(--sc-mid);
    margin-top: 3px;
}

.scorecard-page .cta-box {
    background: linear-gradient(135deg, #4f7cff, #7c5cfc);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    color: white;
    margin-top: 28px;
}
.scorecard-page .cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.scorecard-page .cta-box p {
    font-size: 14px;
    opacity: .9;
    margin-bottom: 20px;
}
.scorecard-page .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.scorecard-page .cta-buttons .btn-white {
    background: white;
    color: var(--sc-accent);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.scorecard-page .cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,.5);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.scorecard-page .restart-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--sc-muted);
}
.scorecard-page .restart-link a {
    color: var(--sc-accent);
    cursor: pointer;
    text-decoration: none;
}
.scorecard-page .restart-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .scorecard-page .card { padding: 22px 18px; }
    .scorecard-page .hero h1 { font-size: 24px; }
}
