/* ==========================================================================
   Stacq Site Audit Tool — Styles
   Matches Stacq portal design language:
   Primary: #eb7b57 | Background: #fafcfa | Cards: white | Radius: 16px
   ========================================================================== */

/* ── Landing Page Hero ─────────────────────────────────────────── */

.audit-hero {
    background: #fafcfa;
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
}

.audit-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.audit-badge {
    display: inline-block;
    background: #fef3ef;
    color: #eb7b57;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(235, 123, 87, 0.2);
    margin-bottom: 1.25rem;
}

.audit-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.audit-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── URL Input ─────────────────────────────────────────────────── */

.audit-form {
    margin: 0 auto;
    max-width: 540px;
}

.audit-input-group {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s;
}

.audit-input-group:focus-within {
    border-color: #eb7b57;
    box-shadow: 0 0 0 3px rgba(235, 123, 87, 0.15);
}

.audit-url-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.audit-url-input::placeholder {
    color: #9ca3af;
}

.audit-submit-btn {
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', 'Inter', sans-serif;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}

.audit-submit-btn:hover {
    opacity: 0.9;
}

.audit-submit-btn:active {
    transform: scale(0.98);
}

.audit-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.audit-input-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* ── Progress ──────────────────────────────────────────────────── */

.audit-progress {
    text-align: center;
    padding: 2rem 0;
}

.audit-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #eb7b57;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: audit-spin 0.8s linear infinite;
}

@keyframes audit-spin {
    to { transform: rotate(360deg); }
}

.audit-progress-msg {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.audit-progress-bar-container {
    max-width: 360px;
    margin: 0 auto;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.audit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #eb7b57, #fa702e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* ── Feature Cards ─────────────────────────────────────────────── */

.audit-features {
    background: #fafcfa;
    padding: 3rem 1.5rem;
}

.audit-features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.audit-features-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2.5rem;
}

.audit-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.audit-feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.audit-feature-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.audit-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.audit-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.audit-feature-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ── Comparison Table ─────────────────────────────────────────── */

.audit-compare-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.audit-compare-subtitle ~ .audit-features-title,
.audit-features-title.audit-compare-title {
    margin-bottom: 1rem;
}

.audit-compare-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.audit-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
}

.audit-compare-table thead th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audit-compare-table thead th:first-child {
    text-align: left;
}

.audit-compare-table tbody td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.audit-compare-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #1a1a2e;
}

.audit-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.audit-compare-table tbody tr:hover {
    background: #f8fafc;
}

/* ── Scoring Note ─────────────────────────────────────────────── */

.audit-scoring-note {
    max-width: 600px;
    margin: 2.5rem auto 0;
    text-align: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.audit-scoring-note h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.audit-scoring-note p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ── Results Page ──────────────────────────────────────────────── */

.audit-results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.audit-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.audit-results-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eb7b57;
}

.audit-results-site {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0.25rem 0 0.5rem;
    word-break: break-all;
}

.audit-results-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.audit-new-btn {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.audit-new-btn:hover {
    background: #f3f4f6;
    color: #1a1a2e;
    border-color: #d1d5db;
}

/* ── Score Gauges ──────────────────────────────────────────────── */

.audit-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.psi-scores-grid {
    grid-template-columns: repeat(4, 1fr);
}

.audit-score-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.audit-score-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.audit-gauge-svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.audit-gauge-fill {
    transition: stroke-dashoffset 1s ease-out;
}

.audit-gauge-number {
    font-size: 2rem;
    font-weight: 800;
    fill: #1a1a2e;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.audit-gauge-label-text {
    font-size: 0.7rem;
    fill: #9ca3af;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.audit-score-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.25rem;
}

.audit-score-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* ── PSI Desktop/Mobile Toggle ────────────────────────────────── */

.psi-toggle-btn {
    padding: 0.4rem 1.1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', 'Inter', sans-serif;
    transition: all 0.2s;
}

.psi-toggle-btn.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.psi-toggle-btn:hover:not(.active) {
    color: #374151;
}

/* ── Summary Bar ──────────────────────────────────────────────── */

.audit-summary-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.audit-summary-item {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.audit-summary-count {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.audit-summary-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.audit-summary-errors .audit-summary-count { color: #ef4444; }
.audit-summary-warnings .audit-summary-count { color: #f59e0b; }
.audit-summary-notices .audit-summary-count { color: #3b82f6; }

/* ── Issues ────────────────────────────────────────────────────── */

.audit-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1.5rem;
}

.audit-issue-group {
    margin-bottom: 2rem;
}

.audit-issue-severity {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.audit-issue-severity.error { color: #ef4444; }
.audit-issue-severity.warning { color: #f59e0b; }
.audit-issue-severity.notice { color: #3b82f6; }

.audit-issue-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.audit-issue-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.audit-issue-badge.error { background: #fef2f2; color: #ef4444; }
.audit-issue-badge.warning { background: #fffbeb; color: #f59e0b; }
.audit-issue-badge.notice { background: #eff6ff; color: #3b82f6; }

.audit-issue-info strong {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 600;
}

.audit-issue-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.audit-more-issues {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
}

.audit-all-clear {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.audit-all-clear-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.audit-all-clear p {
    color: #065f46;
    font-size: 1rem;
    margin: 0;
}

/* ── Email Capture ─────────────────────────────────────────────── */

.audit-email-capture {
    background: linear-gradient(135deg, #fef3ef, #fff7ed);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
}

.audit-email-capture h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.audit-email-capture p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

.audit-email-form {
    max-width: 480px;
    margin: 0 auto;
}

.audit-email-input-group {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    overflow: hidden;
    transition: border-color 0.2s;
}

.audit-email-input-group:focus-within {
    border-color: #eb7b57;
    box-shadow: 0 0 0 3px rgba(235, 123, 87, 0.15);
}

.audit-email-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.audit-email-input::placeholder {
    color: #9ca3af;
}

.audit-email-btn {
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', 'Inter', sans-serif;
    white-space: nowrap;
    transition: background 0.2s;
}

.audit-email-btn:hover {
    background: linear-gradient(135deg, #d4653e, #eb7b57);
}

.audit-email-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.audit-email-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #065f46;
    font-size: 1rem;
    font-weight: 500;
}

/* ── CTA ───────────────────────────────────────────────────────── */

.audit-cta {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.audit-cta h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.audit-cta p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.audit-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.2s;
}

.audit-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(235, 123, 87, 0.3);
    color: #fff;
}

/* ── Error State ───────────────────────────────────────────────── */

.audit-error-state {
    text-align: center;
    padding: 4rem 0;
}

.audit-error-state h1 {
    font-size: 1.75rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.audit-error-state p {
    color: #6b7280;
    font-size: 1rem;
}

/* ── Gauge background ring ─────────────────────────────────────── */

.audit-gauge-svg circle:first-of-type {
    stroke: #e5e7eb;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .audit-hero {
        padding-top: 3rem;
    }

    .audit-badge {
        font-size: 0.7rem;
    }

    .audit-title {
        font-size: 2rem;
    }

    .audit-input-group {
        flex-direction: column;
        border-radius: 10px;
    }

    .audit-submit-btn {
        border-radius: 0;
    }

    .audit-features-grid {
        grid-template-columns: 1fr;
    }

    .audit-scores-grid {
        grid-template-columns: 1fr !important;
    }

    .audit-summary-bar {
        flex-direction: column;
    }

    .audit-results-header {
        flex-direction: column;
        gap: 1rem;
    }

    .audit-email-input-group {
        flex-direction: column;
    }

    .audit-email-btn {
        border-radius: 0 0 10px 10px;
    }

    .audit-results-container {
        padding: 1.5rem 1rem 3rem;
        overflow-x: hidden;
    }

    .audit-issue-info {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .audit-issue-info p {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .audit-section-title {
        font-size: 1.1rem;
    }

    .psi-scores-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .psi-scores-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Audit Comparison ("Grudge Match") Styles
   ========================================================================== */

/* ── Dual Input ───────────────────────────────────────────────── */

.comparison-dual-input {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.comparison-input-side {
    flex: 1;
}

.comparison-input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.comparison-vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-bottom: 0.15rem;
}

/* ── Dual Progress ────────────────────────────────────────────── */

.comparison-dual-progress {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.comparison-progress-side {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.comparison-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eb7b57;
    margin-bottom: 0.5rem;
}

/* ── Winner Banner ────────────────────────────────────────────── */

.comparison-winner-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
}

.comparison-winner-banner.winner-a,
.comparison-winner-banner.winner-b {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 1px solid #fbbf24;
}

.comparison-winner-banner.winner-a .material-symbols-outlined,
.comparison-winner-banner.winner-b .material-symbols-outlined {
    color: #d97706;
}

.comparison-winner-banner.winner-tie {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.comparison-winner-banner.winner-tie .material-symbols-outlined {
    color: #16a34a;
}

.comparison-winner-banner strong {
    font-size: 0.9rem;
    color: #1a1a2e;
    display: block;
    word-break: break-all;
}

.comparison-winner-banner p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.1rem 0 0;
}

/* ── Matchup Rows ─────────────────────────────────────────────── */

.comparison-matchup-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.comparison-score-side {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.comparison-score-winner {
    background: #fefce8;
    border: 1.5px solid #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

.comparison-crown {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #fbbf24;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
}

.comparison-score-url {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
    word-break: break-all;
    font-weight: 500;
}

.comparison-matchup-center {
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* VS badge that sits between score cards — hidden on desktop, shown on mobile */
.comparison-vs-inline {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
    align-self: center;
}

.comparison-cat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem;
}

.comparison-cat-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 0.5rem;
}

/* ── Issue Summary ────────────────────────────────────────────── */

.comparison-issue-summary {
    margin: 2rem 0;
}

.comparison-issue-side {
    flex: 1;
    text-align: center;
}

/* ── Header URLs ──────────────────────────────────────────────── */

.comparison-header-urls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.comparison-header-url {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    word-break: break-all;
}

.comparison-header-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eb7b57, #fa702e);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .comparison-dual-input {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .comparison-input-side {
        width: 100%;
        max-width: 400px;
    }

    .comparison-dual-input .comparison-vs-badge {
        align-self: center;
    }

    .comparison-matchup-row {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .comparison-matchup-center {
        order: -1;
        min-width: auto;
    }

    /* Show the inline VS badge between stacked score cards on mobile */
    .comparison-vs-inline {
        display: inline-flex;
        margin: 0.5rem auto;
        align-self: center;
    }

    /* Hide the desktop VS badge on mobile */
    .comparison-vs-desktop {
        display: none !important;
    }

    /* Issue summary: keep center in natural order (no label to show at top) */
    .comparison-issue-summary .comparison-matchup-center {
        order: 0;
        display: none;
    }

    /* Issue summary: equal spacing around VS badge on mobile */
    .comparison-issue-summary .comparison-matchup-row {
        gap: 0;
    }

    .comparison-issue-summary .comparison-issue-side {
        flex: none;
        width: 100%;
    }

    .comparison-issue-summary .comparison-vs-inline {
        margin-bottom: 1.5rem;
    }

    .comparison-dual-progress {
        flex-direction: column;
        align-items: center;
    }

    .comparison-dual-progress > .comparison-vs-badge {
        display: none;
    }

    .comparison-header-urls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comparison-header-url {
        font-size: 0.95rem;
    }

    /* Force How It Works grid to single column */
    .audit-features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Winner banner: full-width on mobile */
    .comparison-winner-banner {
        flex-direction: row;
        text-align: left;
    }

    .comparison-issue-summary {
        margin-top: 2rem !important;
        margin-bottom: -2rem !important;
    }

    .audit-cta {
        margin-top: 3rem !important;
    }
}
