.comparezy-page {
    min-height: 80vh;
    padding: 58px 20px 92px;
    color: var(--tz-ink, #071a33);
    background:
        radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.1), transparent 29%),
        radial-gradient(circle at 5% 35%, rgba(14, 165, 233, 0.09), transparent 25%),
        var(--tz-cloud, #f5f8fc);
}

.comparezy-page [hidden] {
    display: none !important;
}

.comparezy-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.comparezy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 58px;
    margin-bottom: 38px;
}

.comparezy-kicker {
    margin: 0 0 12px;
    color: #6d28d9;
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.comparezy-hero h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: var(--tz-ink, #071a33);
    font-size: clamp(2.65rem, 5.8vw, 5.25rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.comparezy-hero-copy > p:not(.comparezy-kicker) {
    max-width: 760px;
    margin: 0;
    color: var(--tz-muted, #617189);
    font-size: 1.04rem;
    line-height: 1.68;
}

.comparezy-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 21px;
    color: #3a5068;
    font-size: 0.82rem;
    font-weight: 710;
}

.comparezy-hero-card {
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 24px;
    border: 1px solid #ddd3f0;
    border-radius: 24px;
    background: linear-gradient(150deg, #fff, #f4efff);
    box-shadow: 0 20px 50px rgba(30, 23, 65, 0.11);
}

.comparezy-hero-card > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    font-size: 1.25rem;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(109, 40, 217, 0.25);
}

.comparezy-hero-card strong,
.comparezy-hero-card p {
    display: block;
}

.comparezy-hero-card strong {
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.comparezy-hero-card p {
    margin: 0;
    color: var(--tz-muted, #617189);
    font-size: 0.74rem;
    line-height: 1.5;
}

.comparezy-selector,
.comparezy-result,
.comparezy-method,
.comparezy-loading {
    border: 1px solid #d9e3ec;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 42px rgba(7, 26, 51, 0.08);
}

.comparezy-selector {
    padding: clamp(25px, 4.5vw, 48px);
    border-radius: 28px;
}

.comparezy-selector-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 29px;
}

.comparezy-selector-heading h2,
.comparezy-result-header h2,
.comparezy-method h2 {
    margin: 0;
    color: var(--tz-ink, #071a33);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.comparezy-selector-heading h2 {
    max-width: 730px;
    font-size: clamp(1.75rem, 3.8vw, 2.7rem);
}

.comparezy-selector-heading > p {
    max-width: 310px;
    margin: 0;
    color: var(--tz-muted, #617189);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: right;
}

.comparezy-select-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.comparezy-select-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #d7e1ea;
    border-radius: 19px;
    background: #fbfdff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.comparezy-select-card.has-value {
    border-color: #8b5cf6;
    background: #f8f5ff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.09);
}

.comparezy-select-card > span {
    color: #7c3aed;
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.comparezy-select-card > strong {
    font-size: 0.92rem;
}

.comparezy-select-card select {
    width: 100%;
    min-height: 51px;
    margin-top: 5px;
    padding: 11px 35px 11px 12px;
    border: 1px solid #cbd8e3;
    border-radius: 13px;
    color: var(--tz-ink, #071a33);
    background: #fff;
    font: inherit;
    font-size: 0.84rem;
}

.comparezy-select-card select:focus {
    border-color: #7c3aed;
    outline: 3px solid rgba(124, 58, 237, 0.12);
}

.comparezy-versus {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid #ded5f2;
    border-radius: 50%;
    color: #6d28d9;
    background: #f7f3ff;
    font-size: 0.7rem;
    font-weight: 850;
}

.comparezy-versus-optional {
    color: #527086;
    border-color: #d8e2e9;
    background: #f6f9fb;
}

.comparezy-status {
    margin: 20px 0 0;
    color: #52677a;
    font-size: 0.76rem;
    font-weight: 660;
}

.comparezy-error {
    margin: 16px 0 0;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    color: #991b1b;
    background: #fff1f2;
    font-size: 0.82rem;
    font-weight: 680;
}

.comparezy-actions,
.comparezy-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.comparezy-actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e4ebf1;
}

.comparezy-button {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 780;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.comparezy-button:hover {
    transform: translateY(-2px);
}

.comparezy-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.comparezy-button-primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 11px 24px rgba(109, 40, 217, 0.24);
}

.comparezy-button-secondary {
    color: #28475f;
    border-color: #cfdbe5;
    background: #fff;
}

.comparezy-loading {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border-radius: 28px;
}

.comparezy-loading > span {
    width: 42px;
    height: 42px;
    border: 4px solid #e7e0f6;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: comparezy-spin 780ms linear infinite;
}

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

.comparezy-result {
    padding: clamp(25px, 4.5vw, 48px);
    border-radius: 28px;
}

.comparezy-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 25px;
}

.comparezy-result-header h2 {
    max-width: 750px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.comparezy-result-header > div:first-child > p:last-child {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--tz-muted, #617189);
    line-height: 1.6;
}

.comparezy-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 22px;
}

.comparezy-summary-item {
    min-height: 112px;
    padding: 18px;
    border: 1px solid #dcd7ea;
    border-radius: 17px;
    background: linear-gradient(150deg, #fff, #faf8ff);
}

.comparezy-summary-item span,
.comparezy-summary-item strong {
    display: block;
}

.comparezy-summary-item span {
    margin-bottom: 9px;
    color: #6d28d9;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.comparezy-summary-item strong {
    font-size: 0.94rem;
    line-height: 1.45;
}

.comparezy-destination-grid {
    display: grid;
    grid-template-columns: repeat(var(--compare-count, 3), minmax(0, 1fr));
    gap: 12px;
}

.comparezy-destination-card {
    display: flex;
    min-width: 0;
    padding: 20px;
    flex-direction: column;
    border: 1px solid #d8e3eb;
    border-radius: 20px;
    background: #fff;
}

.comparezy-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.comparezy-flag,
.comparezy-flag-fallback {
    flex: 0 0 auto;
    width: 46px;
    height: 31px;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(7, 26, 51, 0.14);
}

.comparezy-flag-fallback {
    display: grid;
    place-items: center;
    color: #6d28d9;
    background: #eee8fa;
}

.comparezy-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.comparezy-card-header p {
    margin: 4px 0 0;
    color: var(--tz-muted, #617189);
    font-size: 0.7rem;
}

.comparezy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.comparezy-badges span {
    padding: 6px 8px;
    border-radius: 999px;
    color: #5b21b6;
    background: #f1ebff;
    font-size: 0.65rem;
    font-weight: 730;
}

.comparezy-card-description {
    margin: 17px 0;
    color: #4f6475;
    font-size: 0.78rem;
    line-height: 1.58;
}

.comparezy-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 17px;
}

.comparezy-themes span {
    padding: 5px 8px;
    border: 1px solid #dae4eb;
    border-radius: 999px;
    color: #36566e;
    background: #f8fbfd;
    font-size: 0.64rem;
    font-weight: 680;
}

.comparezy-affiliate-links {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e5ecf1;
}

.comparezy-affiliate-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #4c1d95;
    background: #f7f3ff;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}

.comparezy-affiliate-link:hover {
    color: #fff;
    background: #6d28d9;
}

.comparezy-matrix-wrapper {
    margin-top: 25px;
    overflow-x: auto;
    border: 1px solid #d8e3eb;
    border-radius: 20px;
    background: #fff;
    scrollbar-width: thin;
}

.comparezy-swipe-hint {
    display: none;
    margin: 0;
    padding: 10px 14px;
    color: #5f7181;
    border-bottom: 1px solid #e3eaf0;
    background: #f7fafc;
    font-size: 0.67rem;
    font-weight: 650;
}

.comparezy-matrix {
    min-width: 760px;
}

.comparezy-matrix-row {
    display: grid;
    grid-template-columns: 170px repeat(var(--compare-count, 3), minmax(180px, 1fr));
}

.comparezy-matrix-row > * {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid #e4ebf0;
    border-bottom: 1px solid #e4ebf0;
    font-size: 0.76rem;
    line-height: 1.45;
}

.comparezy-matrix-row > *:last-child {
    border-right: 0;
}

.comparezy-matrix-row:last-child > * {
    border-bottom: 0;
}

.comparezy-matrix-header {
    color: #fff;
    background: linear-gradient(120deg, #6d28d9, #4c1d95);
}

.comparezy-matrix-header > * {
    border-color: rgba(255, 255, 255, 0.16);
    font-size: 0.79rem;
}

.comparezy-matrix-label {
    color: #36566d;
    background: #f6f9fb;
    font-weight: 760;
}

.comparezy-matrix-value {
    color: #28475f;
}

.comparezy-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 22px;
    padding: 19px;
    border: 1px solid #d8e4ec;
    border-radius: 17px;
    background: #f6faff;
}

.comparezy-result-footer p {
    max-width: 790px;
    margin: 0;
    color: #4e6577;
    font-size: 0.74rem;
    line-height: 1.55;
}

.comparezy-budget-link {
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 780;
    white-space: nowrap;
}

.comparezy-affiliate-disclosure {
    margin: 12px 0 0;
    color: var(--tz-muted, #617189);
    font-size: 0.66rem;
    line-height: 1.5;
}

.comparezy-method {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 38px;
    margin-top: 26px;
    padding: 28px;
    border-radius: 22px;
}

.comparezy-method h2 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.comparezy-method > p {
    margin: 0;
    color: var(--tz-muted, #617189);
    line-height: 1.7;
}

.comparezy-noscript {
    max-width: 900px;
    margin: 20px auto;
    padding: 16px;
    color: #991b1b;
    background: #fff1f2;
}

@media (max-width: 1060px) {
    .comparezy-select-grid {
        grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    }

    .comparezy-select-card-optional {
        grid-column: 1 / -1;
        width: calc(50% - 25px);
        margin: 3px auto 0;
    }

    .comparezy-versus-optional {
        display: none;
    }
}

@media (max-width: 900px) {
    .comparezy-page {
        padding-top: 38px;
    }

    .comparezy-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .comparezy-result-header,
    .comparezy-selector-heading,
    .comparezy-result-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .comparezy-selector-heading > p {
        text-align: left;
    }

    .comparezy-destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparezy-destination-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .comparezy-swipe-hint {
        display: block;
    }

    .comparezy-method {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 680px) {
    .comparezy-page {
        padding: 28px 14px 70px;
    }

    .comparezy-hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.55rem);
    }

    .comparezy-selector,
    .comparezy-result {
        padding: 23px 18px;
        border-radius: 22px;
    }

    .comparezy-select-grid,
    .comparezy-summary-grid,
    .comparezy-destination-grid {
        grid-template-columns: 1fr;
    }

    .comparezy-versus {
        margin: 0 auto;
    }

    .comparezy-select-card-optional {
        grid-column: auto;
        width: auto;
        margin: 0;
    }

    .comparezy-versus-optional {
        display: grid;
    }

    .comparezy-destination-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .comparezy-actions,
    .comparezy-result-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .comparezy-button {
        width: 100%;
    }

    .comparezy-result-footer {
        align-items: stretch;
    }

    .comparezy-budget-link {
        white-space: normal;
    }
}

@media print {
    .header,
    footer,
    .share-page-wrapper,
    .comparezy-hero,
    .comparezy-selector,
    .comparezy-method,
    .comparezy-result-actions,
    .comparezy-result-footer,
    .comparezy-affiliate-links,
    .comparezy-affiliate-disclosure,
    .comparezy-swipe-hint {
        display: none !important;
    }

    .comparezy-page {
        padding: 0;
        background: #fff;
    }

    .comparezy-result {
        display: block !important;
        border: 0;
        box-shadow: none;
    }

    .comparezy-matrix-wrapper {
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .comparezy-page *,
    .comparezy-page *::before,
    .comparezy-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

