.wp-block-headless-side-by-side {
    padding: 0;
}

.side-by-side-container {
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.side-by-side-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 670px;
    text-align: center;
}

.side-by-side-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 52px;
    line-height: 1.1;
    color: #365072;
    margin: 0;
}

.side-by-side-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
    margin: 0;
    max-width: 498px;
}

/* ─── Table layout ────────────────────────────────────────────── */

.side-by-side-table {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.side-by-side-col-labels {
    padding: 12px 0;
    width: 248px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-by-side-col-product {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.side-by-side-product-column-inner {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex: 1;
}

.side-by-side-product-column-inner.is-dark {
    background: #263850;
    border-radius: 24px;
    padding: 12px;
}

/* ─── Feature labels (left column) ────────────────────────────── */

.side-by-side-features-label-header {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(22, 30, 35, 0.15);
    border-radius: 24px;
    box-sizing: border-box;
}

.side-by-side-features-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: #7a9dc0;
    text-align: center;
}

.side-by-side-feature-label {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: 1px solid rgba(22, 30, 35, 0.15);
    border-radius: 24px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    box-sizing: border-box;
}

/* ─── Product header card ─────────────────────────────────────── */

.side-by-side-product-header {
    display: flex;
    gap: 24px;
    align-items: center;
    height: 160px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(22, 30, 35, 0.15);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.is-dark .side-by-side-product-header {
    background: #1b2839;
    border: none;
}

.side-by-side-product-image {
    width: 104px;
    height: 136px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    box-sizing: border-box;
    background: linear-gradient(154deg, rgb(39, 59, 99) 8%, rgb(211, 242, 255) 92%);
}

.side-by-side-col-product:nth-child(3) .side-by-side-product-image {
    background: linear-gradient(154deg, rgb(236, 178, 128) 8%, rgb(196, 224, 249) 92%);
}

.side-by-side-col-product:nth-child(4) .side-by-side-product-image {
    background: linear-gradient(154deg, rgb(32, 33, 33) 8%, rgb(223, 225, 230) 92%);
}

.side-by-side-product-image img {
    width: 130%;
    height: 130%;
    object-fit: contain;
}

.side-by-side-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.side-by-side-product-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 16px;
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(54, 80, 114, 0.32);
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    color: #fff;
}

.is-dark .side-by-side-product-badge {
    background: #9ebcca;
}

.side-by-side-product-name {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: #161e23;
    margin: 0;
}

.is-dark .side-by-side-product-name {
    color: #fff;
}

.side-by-side-product-tagline {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #333;
    margin: 0;
}

.is-dark .side-by-side-product-tagline {
    color: #9ebcca;
}

/* ─── Feature value cells ─────────────────────────────────────── */

.side-by-side-value {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 24px;
    background: #f0f4f7;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.is-dark .side-by-side-value {
    background: #1b2839;
    color: #fff;
}

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

.side-by-side-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 99px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: auto;
}

.side-by-side-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.side-by-side-cta-outline {
    border: 1px solid #fa700d;
    background: transparent;
    color: #fa700d;
}

.side-by-side-cta-filled {
    border: none;
    background: #fa700d;
    color: #fff;
    box-shadow: 2px 4px 9px rgba(250, 112, 13, 0.1),
                7px 15px 16px rgba(250, 112, 13, 0.09),
                16px 33px 22px rgba(250, 112, 13, 0.05);
}

/* ─── Responsive: Large tablet ───────────────────────────────── */

@media (max-width: 1530px) {
    .side-by-side-product-header {
        gap: 12px;
    }

    .side-by-side-product-badge {
        font-size: 12px;
        padding: 3px 12px;
    }
}

/* ─── Responsive: Tablet ──────────────────────────────────────── */

@media (max-width: 1254px) {
    .side-by-side-container {
        padding: 40px 24px;
    }

    .side-by-side-title {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .side-by-side-col-labels {
        width: 160px;
    }

    .side-by-side-product-header {
        gap: 12px;
        justify-content: center;
    }

    .side-by-side-product-name {
        font-size: 20px;
    }
}

/* ─── Responsive: Mobile – sticky legend + horizontal scroll ─── */

@media (max-width: 880px) {
    .side-by-side-container {
        padding: 32px 0;
        border-radius: 24px;
    }

    .side-by-side-header {
        padding: 0 16px;
    }

    .side-by-side-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .side-by-side-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        gap: 0;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .side-by-side-table::-webkit-scrollbar {
        display: none;
    }

    .side-by-side-col-labels {
        flex: 0 0 65vw;
        width: 65vw;
        scroll-snap-align: start;
        margin-right: 8px;
    }

    .side-by-side-col-product {
        flex: 0 0 65vw;
        width: 65vw;
        scroll-snap-align: start;
        margin-right: 8px;
    }

    .side-by-side-features-label-header,
    .side-by-side-product-header {
        height: 130px;
    }

    .side-by-side-product-header {
        padding: 12px 8px;
    }

    .side-by-side-product-image {
        width: 80px;
        height: 104px;
        padding: 10px 16px;
    }

    .side-by-side-product-badge {
        font-size: 11px;
        padding: 2px 10px;
    }

    .side-by-side-product-name {
        font-size: 16px;
        line-height: 1.2;
    }

    .side-by-side-product-tagline {
        font-size: 10px;
    }

    .side-by-side-feature-label,
    .side-by-side-value {
        height: 48px;
        padding: 8px;
        font-size: 11px;
        border-radius: 12px;
    }

    .side-by-side-features-label-header {
        border-radius: 12px;
    }

    .side-by-side-product-header {
        border-radius: 12px;
    }

    .side-by-side-product-column-inner.is-dark {
        border-radius: 12px;
        padding: 8px;
    }

    .side-by-side-features-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .side-by-side-col-labels {
        gap: 8px;
    }

    .side-by-side-product-column-inner {
        gap: 8px;
    }

    .side-by-side-col-product {
        gap: 8px;
    }

    .side-by-side-cta {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wp-block-headless-side-by-side {
        padding: 0;
    }

    .side-by-side-col-labels {
        width: 100px;
        min-width: 100px;
    }

    .side-by-side-col-product {
        min-width: 180px;
    }

    .side-by-side-features-label-header,
    .side-by-side-product-header {
        height: 110px;
    }

    .side-by-side-feature-label,
    .side-by-side-value {
        height: 40px;
        font-size: 10px;
    }

    .side-by-side-product-name {
        font-size: 14px;
    }

    .side-by-side-cta {
        padding: 8px 12px;
        font-size: 12px;
    }
}
