/* Comparison guide. Scoped to .cg-page. */

.cg-page {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 768px) {
    .home.cg-page .dd-hero h1 {
        max-width: 100% !important;
    }
}

.cg-hero-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    color: #14181c;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    padding: 1.15rem 1.15rem 0.4rem;
}

.cg-hero-card p {
    margin: 0 0 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(20, 24, 28, 0.08);
    font-size: 0.92rem;
    line-height: 1.45;
}

.cg-hero-card p:last-child {
    border-bottom: 0;
    margin-bottom: 0.4rem;
}

.cg-hero-card strong {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.cg-hero-card span {
    color: #5a626c;
}

.cg-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.cg-section-alt {
    background: #fff;
}

.cg-lead {
    max-width: 44rem;
    margin: 0 0 1.5rem;
    color: #5a626c;
    line-height: 1.65;
}

.cg-callout {
    max-width: 52rem;
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.25rem;
    border-left: 3px solid #EC2E5E;
    border-radius: 4px;
    background: rgba(236, 46, 94, 0.06);
    line-height: 1.6;
}

.cg-callout p {
    margin: 0;
}

.cg-table-wrap {
    overflow-x: auto;
}

.cg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid rgba(20, 24, 28, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.cg-table th,
.cg-table td {
    padding: 1rem 1.05rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(20, 24, 28, 0.08);
    line-height: 1.55;
    font-size: 0.95rem;
}

.cg-table thead th {
    background: #14181c;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cg-table tbody th {
    font-weight: 600;
    color: #14181c;
    background: #fff;
}

.cg-table th.cg-us,
.cg-table td.cg-us {
    background: rgba(236, 46, 94, 0.06);
}

.cg-table th.cg-us {
    background: #EC2E5E;
}

.cg-table tr:last-child td {
    border-bottom: 0;
}

.cg-table td strong {
    font-weight: 600;
}

.cg-table a {
    color: #EC2E5E;
    font-weight: 600;
}

.cg-note {
    margin: 0.85rem 0 0;
    color: #5a626c;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cg-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cg-point {
    min-width: 0;
    padding: 1.15rem 1.15rem 1.05rem;
    background: #fff;
    border: 1px solid rgba(20, 24, 28, 0.1);
    border-radius: 16px;
}

.cg-point h3 {
    margin: 0.65rem 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.cg-point p {
    margin: 0;
    color: #5a626c;
    line-height: 1.55;
    font-size: 0.95rem;
}

.cg-point i {
    color: #EC2E5E;
}

.cg-group-logo {
    display: inline-block;
    margin: 1.15rem 0 0;
    line-height: 0;
}

.cg-group-logo img {
    display: block;
    width: min(320px, 100%);
    height: auto;
}

.cg-group {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

.cg-group-copy p {
    color: #5a626c;
    line-height: 1.65;
}

.cg-group-links {
    display: grid;
    gap: 0.75rem;
}

.cg-group-links a {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(20, 24, 28, 0.1);
    color: inherit;
    text-decoration: none;
}

.cg-group-links a:hover {
    border-color: #EC2E5E;
}

.cg-group-links strong {
    display: block;
    font-weight: 600;
}

.cg-group-links span {
    display: block;
    margin-top: 0.2rem;
    color: #5a626c;
    font-size: 0.88rem;
}

.cg-faq details {
    background: #fff;
    border: 1px solid rgba(20, 24, 28, 0.1);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    margin-bottom: 0.75rem;
}

.cg-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.cg-faq details p {
    margin: 0.7rem 0 0;
    color: #5a626c;
    line-height: 1.6;
}

.cg-cta {
    text-align: center;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.cg-cta .hero-buttons,
.cg-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.cg-cta p {
    max-width: 38rem;
    margin: 0.6rem auto 1.25rem;
    color: #5a626c;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .cg-points,
    .cg-group {
        grid-template-columns: 1fr;
    }

    .cg-table thead {
        display: none;
    }

    .cg-table,
    .cg-table tbody,
    .cg-table tr,
    .cg-table th,
    .cg-table td {
        display: block;
        width: 100%;
    }

    .cg-table {
        background: transparent;
        border: 0;
    }

    .cg-table tr {
        display: block;
        margin-bottom: 0.9rem;
        background: #fff;
        border: 1px solid rgba(20, 24, 28, 0.1);
        border-radius: 14px;
        overflow: hidden;
    }

    .cg-table td {
        border-bottom: 1px solid rgba(20, 24, 28, 0.08);
    }

    .cg-table th::before,
    .cg-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #EC2E5E;
    }

    .home.cg-page .cg-table tbody th {
        width: 100%;
        background: #fffcf7 !important;
    }

    .home.cg-page .cg-table td,
    .home.cg-page .cg-table td.cg-us {
        width: 100%;
    }

    .home.cg-page .cg-table td.cg-us {
        background: rgba(236, 46, 94, 0.08) !important;
    }
}

/* home.css paints every th/td transparent and caps the intro measure.
   These overrides restore the comparison table and line the intro up with it. */
.home.cg-page .section-header {
    max-width: 40rem;
}

.home.cg-page .cg-lead,
.home.cg-page .cg-callout,
.home.cg-page .cg-note {
    max-width: none;
}

.home.cg-page #guide {
    scroll-margin-top: 5.5rem;
}

.home.cg-page .cg-hero-card {
    background: #fff !important;
    border: 1px solid rgba(20, 24, 28, 0.1) !important;
    border-radius: 4px !important;
    box-shadow: 0 18px 40px rgba(20, 24, 28, 0.06) !important;
}

.home.cg-page .cg-table {
    background: #fff !important;
    border-radius: 4px;
}

.home.cg-page .cg-table thead th {
    background: #14181c !important;
    color: #fff !important;
    border-bottom: 0 !important;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.home.cg-page .cg-table thead th.cg-us {
    background: #EC2E5E !important;
    color: #fff !important;
}

.home.cg-page .cg-table tbody th {
    background: #fff !important;
    color: #14181c !important;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid rgba(20, 24, 28, 0.08) !important;
}

.home.cg-page .cg-table td {
    background: #fff !important;
    border-bottom: 1px solid rgba(20, 24, 28, 0.08) !important;
}

.home.cg-page .cg-table td.cg-us {
    background: rgba(236, 46, 94, 0.06) !important;
}

.home.cg-page .cg-table tr:last-child th,
.home.cg-page .cg-table tr:last-child td {
    border-bottom: 0 !important;
}

@media (min-width: 801px) {
    .home.cg-page .cg-table {
        table-layout: fixed;
    }

    .home.cg-page .cg-table thead th:nth-child(1) { width: 22%; }
    .home.cg-page .cg-table thead th:nth-child(2) { width: 39%; }
    .home.cg-page .cg-table thead th:nth-child(3) { width: 39%; }
}

@media (max-width: 800px) {
    .home.cg-page .cg-table {
        background: transparent !important;
    }

    .home.cg-page .cg-table tbody th {
        width: 100%;
        background: #fffcf7 !important;
    }

    .home.cg-page .cg-table td,
    .home.cg-page .cg-table td.cg-us {
        width: 100%;
    }

    .home.cg-page .cg-table td.cg-us {
        background: rgba(236, 46, 94, 0.08) !important;
    }
}
