.ent-app-comparison-page {
    margin: 0;
    background: #f3f6f4;
    color: #1c2c27;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.app-comparison-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.app-comparison-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 68px);
    border-radius: 22px;
    background: linear-gradient(135deg, #102b22 0%, #17543e 58%, #2f805b 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(17, 55, 41, .18);
}

.app-comparison-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, .04), 0 0 0 90px rgba(255, 255, 255, .03);
}

.app-comparison-kicker {
    margin: 0 0 12px;
    color: #bce3ce;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.app-comparison-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.app-comparison-lead {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 22px 0 0;
    color: #e4f3eb;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.app-comparison-attribution {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    max-width: 900px;
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(5, 30, 21, .28);
    color: #eaf7f0;
    font-size: 14px;
    line-height: 1.5;
}

.app-comparison-note,
.app-comparison-controls,
.app-comparison-method,
.app-comparison-sources {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #d7e2dc;
    border-radius: 16px;
    background: #fff;
}

.app-comparison-note {
    display: grid;
    grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.app-comparison-note h2,
.app-comparison-method h2,
.app-comparison-sources h2 {
    margin: 0;
    color: #173d30;
    font-size: 22px;
}

.app-comparison-note p,
.app-comparison-sources p {
    margin: 0;
    color: #53645e;
    line-height: 1.65;
}

.app-comparison-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.app-comparison-controls label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #31443d;
    font-size: 12px;
    font-weight: 800;
}

.app-comparison-controls input,
.app-comparison-controls select,
.app-comparison-reset {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #bfcfc7;
    border-radius: 9px;
    background: #fff;
    color: #1c2c27;
    font: inherit;
}

.app-comparison-controls input:focus,
.app-comparison-controls select:focus,
.app-comparison-reset:focus {
    outline: 3px solid rgba(34, 126, 87, .2);
    outline-offset: 1px;
    border-color: #227e57;
}

.app-comparison-reset {
    width: auto;
    cursor: pointer;
    border-color: #1f7652;
    background: #1f7652;
    color: #fff;
    font-weight: 800;
}

.app-comparison-reset:hover {
    background: #165d40;
}

.app-comparison-results {
    grid-column: 1 / -1;
    margin: 0;
    color: #61716b;
    font-size: 13px;
}

.app-comparison-table-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid #cedbd4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(25, 65, 49, .08);
}

.app-comparison-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    table-layout: fixed;
}

.app-comparison-table th,
.app-comparison-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e2e9e5;
    vertical-align: top;
    text-align: left;
    font-size: 13px;
    line-height: 1.48;
}

.app-comparison-table th {
    background: #163a2e;
    color: #fff;
    font-size: 12px;
    letter-spacing: .03em;
}

.app-comparison-table th[data-sort-key] {
    cursor: pointer;
    user-select: none;
}

.app-comparison-table th[data-sort-key]:hover,
.app-comparison-table th.is-sorted {
    background: #245843;
}

.app-comparison-table th:nth-child(1) { width: 12%; }
.app-comparison-table th:nth-child(2) { width: 14%; }
.app-comparison-table th:nth-child(3) { width: 8%; }
.app-comparison-table th:nth-child(4) { width: 14%; }
.app-comparison-table th:nth-child(5) { width: 14%; }
.app-comparison-table th:nth-child(6) { width: 17%; }
.app-comparison-table th:nth-child(7) { width: 9%; }
.app-comparison-table th:nth-child(8) { width: 12%; }

.app-comparison-table tbody tr:nth-child(even) {
    background: #f8faf9;
}

.app-comparison-table tbody tr:hover {
    background: #eef7f2;
}

.app-comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-comparison-name {
    display: inline-block;
    color: #176947;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
}

.app-comparison-name:hover,
.app-comparison-name:focus,
.app-comparison-sources a:hover,
.app-comparison-sources a:focus {
    text-decoration: underline;
}

.app-comparison-muted {
    display: block;
    margin-top: 6px;
    color: #60716a;
    font-size: 12px;
    line-height: 1.45;
}

.app-comparison-badge,
.app-comparison-recommendation {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.app-comparison-badge.is-free,
.app-comparison-badge.is-yes { background: #dff4e7; color: #17623d; }
.app-comparison-badge.is-freemium,
.app-comparison-badge.is-partial { background: #fff0cf; color: #805a0d; }
.app-comparison-badge.is-neutral,
.app-comparison-badge.is-no { background: #edf0ef; color: #54615c; }
.app-comparison-recommendation.is-both { background: #e4ecff; color: #314f9b; }
.app-comparison-recommendation.is-amateur { background: #f4e7ff; color: #70409a; }

.app-comparison-rating {
    display: inline-flex;
    gap: 4px;
}

.app-comparison-rating > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3ddd8;
}

.app-comparison-rating > span.is-filled {
    background: #1f8a5c;
}

.app-comparison-method h2,
.app-comparison-sources h2 {
    margin-bottom: 18px;
}

.app-comparison-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.app-comparison-method article {
    padding: 16px;
    border-left: 4px solid #2b865f;
    border-radius: 8px;
    background: #f4f8f6;
}

.app-comparison-method h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.app-comparison-method p {
    margin: 0;
    color: #566760;
    font-size: 13px;
    line-height: 1.55;
}

.app-comparison-sources ul {
    columns: 2;
    column-gap: 36px;
    margin: 18px 0 0;
    padding-left: 20px;
}

.app-comparison-sources li {
    break-inside: avoid;
    margin: 0 0 8px;
}

.app-comparison-sources a {
    color: #176947;
    font-weight: 700;
    text-decoration: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1180px) {
    .app-comparison-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-comparison-shell {
        width: min(100% - 20px, 720px);
        padding-top: 18px;
    }

    .app-comparison-hero,
    .app-comparison-note,
    .app-comparison-controls,
    .app-comparison-method,
    .app-comparison-sources {
        border-radius: 12px;
    }

    .app-comparison-note {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .app-comparison-controls,
    .app-comparison-method-grid {
        grid-template-columns: 1fr;
    }

    .app-comparison-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .app-comparison-table,
    .app-comparison-table tbody,
    .app-comparison-table tr,
    .app-comparison-table td {
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .app-comparison-table thead {
        display: none;
    }

    .app-comparison-table tbody {
        display: grid;
        gap: 14px;
    }

    .app-comparison-table tbody tr,
    .app-comparison-table tbody tr:nth-child(even) {
        overflow: hidden;
        border: 1px solid #cedbd4;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(25, 65, 49, .06);
    }

    .app-comparison-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 14px;
        border-bottom: 1px solid #e5ece8;
    }

    .app-comparison-table td::before {
        content: attr(data-label);
        color: #587068;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .app-comparison-table td:last-child {
        border-bottom: 0;
    }

    .app-comparison-sources ul {
        columns: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ent-app-comparison-page *,
    .ent-app-comparison-page *::before,
    .ent-app-comparison-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
