.scan-page-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.scan-container {
    max-width: 680px;
    margin: 140px auto 60px;
    padding: 50px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    text-align: center;
    position: relative;
}

.scan-step { display: none; animation: scanSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.scan-step.active { display: block; }

@keyframes scanSlideIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.scan-progress { height: 6px; background: #f1f5f9; border-radius: 3px; margin-bottom: 32px; overflow: hidden; }
.scan-progress-bar { height: 100%; background: var(--primary); width: 11%; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.scan-title { font-size: 2.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--primary); line-height: 1.2; }
.scan-subtitle { font-size: 1.1rem; color: var(--gray-500); margin-bottom: 2rem; }
.question-counter { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 0.75rem; }
.question-pillar { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); background: rgba(21, 92, 66, 0.08); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }

body.scan-cold .nav-links, body.scan-cold .nav-cta { display: none; }

.scan-hero { max-width: 680px; margin: 120px auto 0; padding: 0 24px; text-align: center; }
.scan-hero-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: rgba(21, 92, 66, 0.08); padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }
.scan-hero-title { font-size: 2.2rem; font-weight: 700; line-height: 1.15; color: var(--gray-900); margin: 0 0 0.75rem; }
.scan-hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.88rem; font-weight: 500; color: var(--gray-700); margin: 0; }
.scan-hero-trust span::before { content: "\2713 "; color: var(--primary); font-weight: 700; }
.scan-hero + .scan-container { margin-top: 28px; }
.scan-question { font-size: 1.6rem; }

.scan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #f1f5f9; border-radius: 14px; margin-bottom: 1.5rem; }
.scan-picker button {
    border: 1px solid transparent; background: transparent; border-radius: 10px; cursor: pointer;
    padding: 0.7rem 0.6rem; font-family: inherit; font-size: 0.86rem; font-weight: 600; color: var(--gray-600);
    line-height: 1.25; transition: all 0.18s ease; text-align: center;
}
.scan-picker button small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--gray-400); margin-top: 2px; }
.scan-picker button:hover { color: var(--gray-900); }
.scan-picker button[aria-selected="true"] { background: #fff; border-color: #e2e8f0; color: var(--primary); box-shadow: var(--shadow-sm); }
.scan-picker button[aria-selected="true"] small { color: var(--primary-light); }

.trust-strip {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    margin: -0.5rem 0 2rem; padding: 0.85rem 1rem; background: rgba(21, 92, 66, 0.04);
    border-radius: 999px; font-size: 0.88rem; color: var(--gray-700); font-weight: 500;
}
.trust-strip span::before { content: "\2713 "; color: var(--primary); font-weight: 700; margin-right: 4px; }

.scan-form .form-group { text-align: left; margin-bottom: 1.5rem; }
.scan-form label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--gray-700); }
.scan-form input[type="email"], .scan-form input[type="url"] {
    width: 100%; padding: 1rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 12px;
    font-family: inherit; font-size: 1rem; transition: all 0.2s ease; background: #fdfdfd;
}
.scan-form input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(21, 92, 66, 0.05); }
.scan-form .form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; text-align: left; font-size: 0.9rem; color: var(--gray-600); }
.scan-form .form-checkbox label { font-weight: 400; }
.optional-hint { font-weight: 400; color: var(--gray-400); font-size: 0.85rem; }

.scan-option-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.scan-option { padding: 1.15rem 1.4rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; cursor: pointer; transition: all 0.2s ease; text-align: left; font-family: inherit; width: 100%; display: block; }
.scan-option:hover { border-color: var(--primary-light); background: #f1f5f9; }
.scan-option:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }
.scan-option.selected { background: rgba(21, 92, 66, 0.03); border-color: var(--primary); border-width: 2px; padding: calc(1.15rem - 1px) calc(1.4rem - 1px); }
.scan-option h4 { margin-bottom: 0.2rem; color: var(--gray-900); font-size: 1.02rem; }
.scan-option p { font-size: 0.88rem; color: var(--gray-500); }

.btn-large { width: 100%; padding: 1.125rem; font-size: 1.1rem; font-weight: 600; border-radius: 12px; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-large:disabled { opacity: 0.5; cursor: not-allowed; background: var(--gray-300); color: var(--gray-500); border-color: var(--gray-300); }
.form-navigation { display: flex; justify-content: flex-start; margin-top: 0.5rem; }

.loading-view { text-align: center; padding: 60px 0; animation: scanSlideIn 0.5s ease; }
.spinner { width: 60px; height: 60px; border: 4px solid rgba(21, 92, 66, 0.1); border-top: 4px solid var(--primary); border-radius: 50%; margin: 0 auto 24px; animation: scanSpin 1s linear infinite; }
@keyframes scanSpin { 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
    .scan-step { animation: none; }
    .scan-progress-bar { transition: none; }
}

.gate-view { display: none; animation: scanSlideIn 0.5s ease; }
.gate-preview { display: flex; align-items: center; gap: 1.25rem; text-align: left; padding: 1.25rem 1.4rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; margin-bottom: 1.75rem; }
.gate-score { flex: 0 0 auto; width: 84px; height: 84px; overflow: hidden; text-align: center; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(21, 92, 66, 0.07); border: 2px solid rgba(21, 92, 66, 0.2); }
.gate-score b { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.gate-score span { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-light); line-height: 1.1; }
.gate-preview-text h3 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: 0.2rem; }
.gate-preview-text p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }
.gate-bars { display: flex; gap: 4px; margin-top: 0.6rem; }
.gate-bars i { height: 7px; flex: 1; border-radius: 2px; background: var(--gray-200); }
.gate-bars i.red { background: #dc2626; }
.gate-bars i.amber { background: #d97706; }
.gate-bars i.green { background: var(--primary); }

.result-view { display: none; animation: scanSlideIn 0.8s ease; }
.score-gauge { width: 200px; height: 200px; margin: 0 auto 20px; position: relative; display: flex; align-items: center; justify-content: center; }
.score-circle { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-number { font-size: 3.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score-number small { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-400); letter-spacing: 0.05em; }
.score-band { display: inline-block; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; font-size: 1.05rem; }

.report-section-title { text-align: left; font-size: 1.15rem; color: var(--gray-900); margin: 2.25rem 0 1rem; font-weight: 700; }
.pillar-row { text-align: left; padding: 1rem 1.15rem; border-radius: 14px; margin-bottom: 0.7rem; border: 1px solid #e2e8f0; border-left: 4px solid var(--gray-300); background: #f8fafc; }
.pillar-row.red { border-left-color: #dc2626; }
.pillar-row.amber { border-left-color: #d97706; }
.pillar-row.green { border-left-color: var(--primary); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pillar-name { font-weight: 600; color: var(--gray-900); font-size: 0.98rem; }
.rag-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.rag-badge.red { background: #fee2e2; color: #b91c1c; }
.rag-badge.amber { background: #fef3c7; color: #b45309; }
.rag-badge.green { background: rgba(21, 92, 66, 0.1); color: var(--primary); }
.pillar-meaning { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.35rem; }
.pillar-meter { height: 6px; background: var(--gray-200); border-radius: 3px; margin-top: 0.6rem; overflow: hidden; }
.pillar-meter i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.pillar-row.red .pillar-meter i { background: #dc2626; }
.pillar-row.amber .pillar-meter i { background: #d97706; }

.flag-card { text-align: left; padding: 1rem 1.15rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; margin-bottom: 0.7rem; }
.flag-card p { color: #7c2d12; font-size: 0.92rem; margin: 0; }
.flag-card h4 { color: #7c2d12; font-size: 0.95rem; margin: 0 0 0.25rem; }
.flag-card.opportunity { background: rgba(21, 92, 66, 0.04); border-color: rgba(21, 92, 66, 0.2); }
.flag-card.opportunity p, .flag-card.opportunity h4 { color: var(--gray-800); }

.info-box { text-align: left; padding: 1.15rem 1.35rem; border-radius: 16px; margin-top: 1.25rem; font-size: 0.92rem; line-height: 1.5; }
.info-box.calm { background: rgba(21, 92, 66, 0.05); border: 1px solid rgba(21, 92, 66, 0.15); color: var(--gray-800); }
.info-box.slim { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a5f; }
.info-box strong { color: var(--gray-900); }

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; margin-top: 1.5rem; }
.cta-row .btn { width: 100%; }
.fine-print { font-size: 0.78rem; color: var(--gray-400); margin-top: 1rem; }

@media (max-width: 768px) {
    .scan-container { margin: 100px 16px 40px; padding: 30px 20px; }
    .scan-hero { margin-top: 96px; padding: 0 20px; }
    .scan-hero-title { font-size: 1.6rem; }
        .scan-hero + .scan-container { margin-top: 20px; }
    .scan-title { font-size: 1.6rem; }
    .gate-preview { flex-direction: column; align-items: flex-start; }
}

.scan-explainer { padding: 3.5rem 1.5rem 1rem; }
.scan-explainer-wrap { max-width: 780px; margin: 0 auto; }
.scan-explainer .section-label { margin-bottom: 0.6rem; }
.scan-explainer .section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
.scan-explainer-lead { font-size: 1.05rem; line-height: 1.65; color: var(--gray-600); max-width: 60ch; margin: 0 0 3rem; }
.scan-explainer .faq-item { border: 1px solid var(--dark-border); border-radius: 14px; margin-bottom: 0.85rem; background: #fff; overflow: hidden; }
.scan-explainer .faq-item summary { cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 600; color: var(--gray-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.scan-explainer .faq-item summary::-webkit-details-marker { display: none; }
.scan-explainer .faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--primary); line-height: 1; flex-shrink: 0; }
.scan-explainer .faq-item[open] summary::after { content: "\2013"; }
.scan-explainer .faq-answer { padding: 0 1.35rem 1.2rem; color: var(--gray-600); font-size: 0.98rem; line-height: 1.6; }
.scan-explainer .faq-answer a { color: var(--primary); font-weight: 600; }
@media (max-width: 768px) { .scan-explainer { padding: 2.5rem 20px 0.5rem; } .scan-explainer-lead { margin-bottom: 2.25rem; } }
