/* ===========================================
   Audit Tool Styles
   Light theme — minimal, white, premium
   =========================================== */

/* --- Audit Step Containers --- */

.audit-step {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Step 1: Domain Input Form --- */

.audit-form {
    margin-top: 20px;
}

.audit-input-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.audit-input {
    padding: 16px 20px;
    font-size: 18px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: var(--text-dark, #1a1a1a);
    width: 320px;
    outline: none;
    transition: border-color 0.2s;
}

.audit-input::placeholder {
    color: #999;
}

.audit-input:focus {
    border-color: var(--text-dark, #1a1a1a);
}

.audit-submit {
    cursor: pointer;
    border: none;
    font-size: 16px;
    white-space: nowrap;
}

.audit-error {
    color: #dc3545;
    margin-top: 12px;
    font-size: 14px;
}

/* --- Step 2: Loading Animation --- */

.audit-progress {
    text-align: left;
    max-width: 360px;
    margin: 40px auto;
}

.progress-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #bbb;
    font-size: 16px;
    transition: color 0.3s, opacity 0.3s;
}

.check-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.progress-check.active {
    color: var(--text-dark, #1a1a1a);
}

.progress-check.active .check-indicator {
    border-color: var(--accent-blue, #2D5BFF);
    animation: pulse 1s infinite;
}

.progress-check.done {
    color: var(--text-light, #6b7280);
}

.progress-check.done .check-indicator {
    border-color: var(--accent-teal, #34A77F);
    background: var(--accent-teal, #34A77F);
}

.progress-check.done .check-indicator::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Step 3: Grade Display + Lead Form --- */

.grade-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.grade-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    flex-shrink: 0;
    animation: gradePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gradePopIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

.grade-a { background: var(--accent-teal, #34A77F); color: #fff; }
.grade-b { background: var(--accent-blue, #2D5BFF); color: #fff; }
.grade-c { background: var(--accent-orange, #D4803A); color: #fff; }
.grade-d { background: var(--accent-pink, #C44569); color: #fff; }
.grade-f { background: #8B0000; color: #fff; }

.grade-details {
    text-align: left;
    animation: gradeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes gradeSlideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.grade-details h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark, #1a1a1a);
}

.grade-details p {
    color: var(--text-light, #6b7280);
    font-size: 16px;
    margin-bottom: 4px;
}

/* Teaser check summary (before lead gate) */

.teaser-checks {
    margin-bottom: 24px;
    animation: gradeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.teaser-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f8f8;
    transition: transform 0.15s;
}

.teaser-check:hover {
    transform: translateX(2px);
}

.teaser-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    color: #fff;
}

.teaser-pass .teaser-icon {
    background: var(--accent-teal, #34A77F);
}

.teaser-pass .teaser-label {
    color: var(--text-light, #6b7280);
}

.teaser-fail .teaser-icon {
    background: var(--accent-pink, #C44569);
}

.teaser-fail .teaser-label {
    color: var(--text-dark, #1a1a1a);
    font-weight: 500;
}

.teaser-partial .teaser-icon {
    background: var(--accent-orange, #D4803A);
}

.teaser-partial .teaser-label {
    color: var(--text-dark, #1a1a1a);
}

.unlock-prompt {
    font-size: 16px;
    color: var(--text-light, #6b7280);
    margin-bottom: 24px;
    animation: gradeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Lead capture form */

.lead-form {
    text-align: center;
    animation: gradeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-form input {
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: var(--text-dark, #1a1a1a);
    outline: none;
    transition: border-color 0.2s;
}

.lead-form input::placeholder {
    color: #999;
}

.lead-form input:focus {
    border-color: var(--text-dark, #1a1a1a);
}

.lead-full-width {
    width: 100%;
    margin-bottom: 20px;
}

.lead-form .cta-button {
    cursor: pointer;
    border: none;
    font-size: 16px;
    margin-top: 8px;
}

.lead-form .cta-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* --- Step 4: Full Results --- */

.full-results {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    justify-content: center;
}

.results-header .grade-circle {
    width: 80px;
    height: 80px;
    font-size: 40px;
}

.results-header-text h3 {
    font-size: 22px;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 4px;
}

.results-header-text p {
    color: var(--text-light, #6b7280);
    font-size: 16px;
}

/* Check cards grid */

.checks-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
}

.check-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px 24px;
    border-left: 4px solid;
    animation: checkCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--card-index, 0) * 0.08s);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.check-card.pass {
    border-left-color: var(--accent-teal, #34A77F);
}

.check-card.fail {
    border-left-color: var(--accent-pink, #C44569);
}

.check-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.check-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-card.pass .check-icon {
    background: var(--accent-teal, #34A77F);
    color: #fff;
}

.check-card.fail .check-icon {
    background: var(--accent-pink, #C44569);
    color: #fff;
}

.check-header h4 {
    flex: 1;
    font-size: 16px;
    color: var(--text-dark, #1a1a1a);
}

.check-score {
    font-size: 14px;
    color: var(--text-light, #6b7280);
    font-weight: 600;
}

.check-card p {
    color: var(--text-light, #6b7280);
    font-size: 14px;
    line-height: 1.6;
}

.check-description {
    font-size: 13px;
    margin-bottom: 6px;
}

.check-impact {
    font-size: 13px;
    color: var(--accent-pink, #C44569);
    padding: 6px 10px;
    background: rgba(196, 69, 105, 0.06);
    border-left: 3px solid var(--accent-pink, #C44569);
    border-radius: 4px;
    margin-bottom: 6px;
}

.check-finding {
    font-size: 13px;
    font-style: italic;
    opacity: 0.85;
}

/* Recommendations */

.recommendations {
    margin-bottom: 40px;
}

.recommendations h3 {
    font-size: 20px;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 16px;
}

.rec-item {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 10px;
    color: var(--text-light, #6b7280);
    font-size: 14px;
    line-height: 1.6;
}

.rec-item strong {
    color: var(--text-dark, #1a1a1a);
}

/* Results CTA */

.results-cta {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.results-cta p {
    color: var(--text-light, #6b7280);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* --- Category Headings (full results) --- */

.checks-category {
    margin-bottom: 32px;
}

.category-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light, #6b7280);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .audit-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-input {
        width: 100%;
    }

    .grade-result {
        flex-direction: column;
        text-align: center;
    }

    .grade-details {
        text-align: center;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
    }

    .results-header-text {
        text-align: center;
    }
}
