.hero-wrapper {
    min-height: auto;
}

.cmp-hero {
    position: relative;
    z-index: 2;
    padding: 80px 0 30px;
}

.cmp-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.cmp-hero-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cmp-back {
    display: inline-block;
    font-size: 0.85rem;
    color: #0286fb;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #eee;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 5px;
    margin-top: 20px;
    transition: background 0.15s ease, color 0.15s ease;
}

.cmp-back:hover {
    border: 1px solid #eaeaea;
    background: rgba(255, 255, 255, 0.7);
    color: #000;
}

.cmp-tldr {
    padding: 1.25rem 1.5rem;
    background: rgba(2, 134, 251, 0.06);
    border: 1px solid rgba(2, 134, 251, 0.2);
    border-radius: 10px;
    text-align: left;
}

.cmp-tldr-badge {
    display: inline;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0286fb;
    background: rgba(2, 134, 251, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    line-height: 1.65;
}

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

.cmp-ai-compare {
    padding: 0 15px 10px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cmp-ai-compare-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cmp-detail-grid-title--inline {
    margin: 0;
    align-self: center;
}

.cmp-ai-compare-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cmp-ai-compare-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 0.25rem;
}

.cmp-ai-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #444;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #eee;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.cmp-ai-compare-btn:hover {
    background: #0286fb;
    color: #fff;
    border-color: #0286fb;
}

.cmp-ai-compare-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.cmp-ai-compare-btn svg path {
    fill: currentColor;
}

.cmp-ai-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cmp-ai-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.cmp-ai-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cmp-ai-popup-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.cmp-ai-popup.show .cmp-ai-popup-box {
    transform: translateY(0);
}

.cmp-ai-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.cmp-ai-popup-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.cmp-ai-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #9ca3af;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-ai-popup-close:hover {
    color: #444;
}

.cmp-ai-popup-close svg {
    width: 20px;
    height: 20px;
    display: block;
}

.cmp-ai-popup-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.cmp-ai-popup-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
}

.cmp-ai-popup-textwrap {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
}

.cmp-ai-popup-text {
    font-size: 0.8rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.cmp-ai-popup-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #0286fb;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 6px 6px 14px rgba(2, 134, 251, 0.35),
        -3px -3px 10px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(255, 255, 255, 0.25),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.cmp-ai-popup-copy:hover {
    background-color: #0270d4;
    color: #fff;
    box-shadow: 4px 4px 10px rgba(2, 134, 251, 0.3),
        -2px -2px 8px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.25),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.cmp-ai-popup-copy svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.cmp-ai-popup-copy svg path {
    fill: currentColor;
}

.cmp-ai-popup-copy.copied {
    background-color: #10b981;
    box-shadow: 6px 6px 14px rgba(16, 185, 129, 0.35),
        -3px -3px 10px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(255, 255, 255, 0.25),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.cmp-comparison {
    padding: 0 15px 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table-wrapper {
    padding: 8px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
}

.comparison-table {
    border-radius: 10px;
    overflow: clip;
    border: 1px solid #e5e7eb;
    min-width: max-content;
    position: relative;
}

.inactive-column-overlay {
    position: absolute;
    top: 4.5rem;
    bottom: 0;
    left: calc(200px + var(--col-index) * 140px);
    width: 140px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 40px 0;
    pointer-events: none;
    opacity: 0.2;
    user-select: none;
}

.inactive-column-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cmp-inactive-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px repeat(10, 140px);
}

.inactive-app {
    filter: grayscale(100%);
    opacity: 0.5;
}

.cmp-inactive-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.6;
}

.comparison-cell {
    padding: 0.85rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 3rem;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

.comparison-cell:last-child {
    border-right: none;
}

.cmp-cat-section:last-child .cmp-cat-body .comparison-row:last-child .comparison-cell {
    border-bottom: none;
}

.comparison-header-row {
    background-color: #f9fafb;
}

.comparison-header-row .comparison-cell {
    font-weight: 600;
    color: #333;
}

.comparison-feature-cell {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
    color: #444;
    padding-left: 1.25rem;
    background-color: #fafafa;
    position: sticky;
    left: 0;
    z-index: 3;
}

.comparison-header-row .comparison-feature-cell {
    background-color: #f9fafb;
}

.cmp-app-favicon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
    background: #eee;
}

.comparison-app-cell {
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    justify-content: center;
    text-align: center;
}

.highlight-cell {
    border-left: 3px solid #0286fb !important;
    background-color: #f0f7ff;
    color: #222;
    font-weight: 600;
    position: sticky;
    left: 200px;
    z-index: 2;
}

.comparison-header-row .highlight-cell {
    background-color: #e8f2ff;
}

.highlight-cell .status-text {
    color: #222;
    font-weight: 500;
}

.status-good {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-bad {
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-neutral {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-text {
    font-size: 0.85rem;
    color: #555;
}

.comparison-cell--icon {
    justify-content: center !important;
}

.comparison-cell--text {
    justify-content: center;
}

.cmp-cat-section {
    border-bottom: 1px solid #e5e7eb;
}

.cmp-cat-section:last-child {
    border-bottom: none;
}

.cmp-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background-color: #f0f4f8;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e5e7eb;
    will-change: transform;
}

.cmp-cat-header:hover {
    background-color: #e8edf3;
}

.cmp-cat-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.cmp-cat-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    opacity: 0.4;
}

.cmp-cta-section {
    padding: 0 15px 3rem;
    text-align: center;
}

.cmp-cta-box {
    background: linear-gradient(135deg, #f0f8ff, #e8f4ff);
    border: 2px solid rgba(2, 134, 251, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.cmp-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}

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

.header-navbar .navbar-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-left: auto;
    color: #fff;
}

.navbar-collapse {
    align-items: center;
}

.cmp-feature-toggle {
    display: none;
}

.navbar-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.navbar-cta-mobile {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 16px;
}

@media (max-width: 992px) {
    .navbar-mobile-actions {
        display: flex;
    }

    .navbar-cta-desktop {
        display: none;
    }

    .navbar-collapse {
        flex-basis: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .cmp-hero {
        padding: 120px 15px 30px;
    }

    .cmp-hero-title {
        font-size: 1.5rem;
    }

    .cmp-hero-subtitle {
        font-size: 0.95rem;
    }

    .cmp-back {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .cmp-tldr {
        padding: 1rem;
    }

    .cmp-tldr-badge {
        font-size: 0.75rem;
    }

    .cmp-tldr-text {
        font-size: 0.85rem;
    }

    .comparison-row {
        grid-template-columns: 120px repeat(10, 140px);
    }

    .inactive-column-overlay {
        left: calc(120px + var(--col-index) * 140px);
        top: 3.5rem;
    }

    .comparison-cell {
        padding: 0.6rem 0.5rem;
        min-height: 2.5rem;
        font-size: 0.8rem;
    }

    .comparison-feature-cell {
        padding-left: 0.75rem;
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .highlight-cell {
        left: 120px;
    }

    .comparison-app-cell {
        font-size: 0.65rem;
        gap: 0.15rem;
    }

    .cmp-app-favicon {
        width: 18px;
        height: 18px;
        border-radius: 3px;
    }

    .cmp-cta-title {
        font-size: 1.3rem;
    }

    .cmp-cta-box {
        padding: 2rem 1rem;
    }

    .cmp-ai-compare-inner {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cmp-ai-compare-right {
        display: none;
    }

    .cmp-ai-compare-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    .cmp-ai-compare-btn svg {
        width: 16px;
        height: 16px;
    }

    .footer-links {
        padding-bottom: 1.5rem;
    }

    .lang-switcher {
        padding-left: 15px;
        padding-right: 15px;
    }

    .comparison-table-wrapper {
        position: relative;
    }

    .cmp-feature-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        left: 8px;
        top: 8px;
        z-index: 10;
        width: 30px;
        height: 30px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        padding: 0;
        color: #666;
        flex-shrink: 0;
    }

    .cmp-feature-toggle svg {
        width: 14px;
        height: 14px;
    }

    .cmp-toggle-icon--open {
        display: none;
    }

    .feature-names-collapsed .cmp-toggle-icon--hide {
        display: none;
    }

    .feature-names-collapsed .cmp-toggle-icon--open {
        display: block;
    }

    .feature-names-collapsed .comparison-row {
        grid-template-columns: 0 repeat(10, 140px);
    }

    .feature-names-collapsed .comparison-feature-cell {
        padding-left: 0;
        overflow: hidden;
    }

    .feature-names-collapsed .highlight-cell {
        left: 0;
    }

    .feature-names-collapsed .inactive-column-overlay {
        left: calc(0px + var(--col-index) * 140px);
    }
}

/* ─── Detailed comparison cards ─── */
.cmp-detail-grid-section {
    padding: 0 15px 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cmp-detail-grid-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.cmp-detail-card {
    display: block;
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmp-detail-card:hover {
    border-color: #0286fb;
    box-shadow: 0 4px 16px rgba(2, 134, 251, 0.08);
}

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

.cmp-detail-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background: #eee;
}

.cmp-detail-card-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.3;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    color: #333;
}

.cmp-detail-card:hover .cmp-detail-card-arrow {
    opacity: 0.7;
}

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

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

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

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