/* ─── Compare page: override grid columns dynamically ─── */
.comparison {
    --compare-grid-cols: 1.2fr 1fr 1fr 1fr;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.comparison .comparison-row {
    grid-template-columns: var(--compare-grid-cols);
}

/* ─── Hero ─── */
.compare-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    text-align: left;
}

/* ─── Back link ─── */
.cmp-back {
    display: inline-block;
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 2rem;
}

.cmp-back:hover {
    color: #DA614C;
}

/* ─── App icons row ─── */
.cmp-app-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cmp-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #444;
}

.cmp-app-icon--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border: 1px solid #444;
    color: #eee;
    font-size: 1rem;
    font-weight: 700;
}

.cmp-icon-sep {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 1rem;
    font-family: 'Merriweather Variable', serif;
    line-height: 1.3;
}

.compare-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ─── CTA ─── */
.compare-cta {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 3rem 1rem;
    text-align: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 16px;
}

.compare-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.75rem;
    font-family: 'Merriweather Variable', serif;
}

.compare-cta-desc {
    color: #9ca3af;
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.compare-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background-color: #DA614C;
    color: #fff;
}


/* ─── Enlarge status icons on compare page ─── */
.comparison--page .status-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.6rem;
}

/* ─── Remove strikethrough on bad cells ─── */
.comparison--page .status-bad+.status-text {
    text-decoration: none;
    opacity: 1;
}

/* ─── Mobile app icon badge (inline, replaces ::after letters) ─── */
.cell-mobile-icon {
    display: none;
}

.cell-mobile-icon--letter {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #333;
    color: #eee;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    /* Disable hardcoded ::after letter icons on compare page */
    .comparison--page .comparison-cell:not(.comparison-feature-cell)::after {
        display: none !important;
        content: none !important;
    }

    /* Show inline icon badges */
    .comparison--page .cell-mobile-icon {
        display: block;
        width: 20px;
        height: 20px;
        border-radius: 4px;
        object-fit: contain;
        margin-left: auto;
        flex-shrink: 0;
    }

    .comparison--page .cell-mobile-icon--letter {
        display: flex;
        margin-left: auto;
    }
}

/* ─── Text value cells ─── */
.comparison-cell--text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-text-value {
    font-size: 0.85rem;
    color: #d1d5db;
    font-weight: 500;
}

/* ─── No-frame icon colors ─── */
.cmp-icon-good {
    filter: brightness(0) saturate(100%) invert(62%) sepia(60%) saturate(500%) hue-rotate(100deg);
}

.cmp-icon-bad {
    filter: brightness(0) saturate(100%) invert(33%) sepia(80%) saturate(1200%) hue-rotate(330deg);
}

/* ─── Score cards ─── */
.cmp-scores {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
}

.cmp-score-card {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 1.25rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
}

.cmp-score-card--highlight {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.cmp-score-card--gray {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #3a3a3a;
}

.cmp-score-card--gray .cmp-score-num {
    color: #6b7280;
}

.cmp-score-card--tied {
    background-color: transparent;
    border-color: #3a3a3a;
}

.cmp-score-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #eee;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Merriweather Variable', serif;
}

.cmp-score-card--highlight .cmp-score-num {
    color: rgb(34, 197, 94);
}


.cmp-score-label {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.4;
}

.cmp-score-label strong {
    color: #ccc;
}


/* ─── TL;DR ─── */
.cmp-tldr {
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    text-align: left;
}

.cmp-tldr-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(34, 197, 94);
    margin-right: 0.5rem;
}

.cmp-tldr-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.65;
    margin: 0;
}

.cmp-tldr-text p {
    margin: 0 0 0.75rem;
}

.cmp-tldr-text p:last-child {
    margin-bottom: 0;
}

/* ─── Compare index page ─── */
.cmp-idx-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

.cmp-idx-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #DA614C;
    margin-bottom: 0.75rem;
}

.cmp-idx-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #eee;
    font-family: 'Merriweather Variable', serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.cmp-idx-intro {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cmp-idx-tldr {
    margin-bottom: 0;
}

.cmp-idx-grid-section {
    max-width: 1000px;
    margin: 3rem auto 5rem;
    padding: 0 1rem;
}

.cmp-idx-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: inherit;
}

.cmp-idx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cmp-idx-card {
    display: block;
    padding: 1.25rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.cmp-idx-card:hover {
    border-color: #DA614C;
}

.cmp-idx-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cmp-idx-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.35;
    filter: invert(1);
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.cmp-idx-card:hover .cmp-idx-arrow {
    opacity: 0.8;
}

.cmp-idx-card-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cmp-idx-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #444;
    flex-shrink: 0;
    object-fit: contain;
}

.cmp-idx-icon--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #eee;
    font-size: 0.75rem;
    font-weight: 700;
}

.cmp-idx-vs {
    font-size: 0.65rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
}

.cmp-idx-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cmp-idx-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .cmp-idx-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .cmp-idx-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── rebel word ─── */
.rebel-word {
    color: #DA614C;
}

/* ─── FAQ on compare page ─── */
.cmp-faq {
    max-width: 950px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    text-align: left;
}

.cmp-faq-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.5rem;
    font-family: 'Merriweather Variable', serif;
}

/* Remove box, use only bottom border */
.cmp-faq .faq-grid {
    margin-top: 0;
}

.cmp-faq .faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
}

.cmp-faq .faq-question-wrapper {
    padding: 1rem 0;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cmp-faq .faq-question-wrapper:hover {
    background: transparent;
}

.cmp-faq .faq-item.active .faq-question-wrapper {
    background: transparent;
    border-bottom: none;
}

.cmp-faq .faq-toggle {
    margin-left: 0;
    flex-shrink: 0;
}

.cmp-faq .faq-answer {
    padding: 0 0 1rem 1.75rem;
}

.cmp-faq .faq-item.active .faq-answer-wrapper {
    display: block;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .compare-title {
        font-size: 1.75rem;
    }

    .compare-cta-title {
        font-size: 1.4rem;
    }
}
