.comparison-chart {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 8rem) 0;
    background: var(--midnight-ink);
    color: var(--parchment);
}

.comparison-chart::before {
    position: absolute;
    top: -0.28em;
    right: -0.04em;
    color: rgba(201, 168, 76, 0.045);
    content: "V";
    font-family: var(--bs-font-serif);
    font-size: clamp(28rem, 52vw, 52rem);
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.comparison-chart .container {
    position: relative;
    z-index: 1;
}

.comparison-chart__intro {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.comparison-chart .eyebrow {
    margin-bottom: 1rem;
    color: var(--veritas-gold);
}

.comparison-chart .main-title {
    max-width: 780px;
    margin: 0;
    color: var(--parchment);
}

.comparison-chart__lead {
    max-width: 500px;
    margin-left: auto;
    color: var(--stone);
    font-size: 1.125rem;
}

.comparison-chart__lead > :last-child {
    margin-bottom: 0;
}

.comparison-chart__frame {
    overflow: hidden;
    background: var(--parchment);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.comparison-chart__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--midnight-ink);
    table-layout: fixed;
}

.comparison-chart__table th,
.comparison-chart__table td {
    width: 35%;
    padding: 1.45rem clamp(1.25rem, 2.5vw, 2.5rem);
    border-bottom: 1px solid rgba(0, 11, 27, 0.13);
    vertical-align: middle;
}

.comparison-chart__table th:first-child,
.comparison-chart__table td:first-child {
    width: 30%;
}

.comparison-chart__table thead th {
    padding-top: 1.9rem;
    padding-bottom: 1.9rem;
    background: #e1dacb;
    color: var(--slate);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.comparison-chart__table thead th:first-child {
    background: #d5cfbf;
}

.comparison-chart__table thead .is-veritas {
    position: relative;
    background: var(--veritas-gold);
    color: var(--midnight-ink);
}

.comparison-chart__table thead .is-veritas::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: #8a6b2d;
    content: "";
}

.comparison-chart__kicker,
.comparison-chart__heading {
    display: block;
}

.comparison-chart__kicker {
    margin-bottom: 0.25rem;
    opacity: 0.72;
    font-family: var(--bs-font-sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comparison-chart__heading {
    font-family: var(--bs-font-serif);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.comparison-chart__table tbody th {
    background: #eee7d8;
    font-family: var(--bs-font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.comparison-chart__table tbody td {
    font-size: 1.0625rem;
    line-height: 1.4;
}

.comparison-chart__table tbody .is-veritas {
    background: #fffdf7;
    font-weight: 650;
}

.comparison-chart__table tbody .is-typical {
    background: #e8e3d8;
    color: var(--slate);
}

.comparison-chart__table tbody tr:last-child > * {
    border-bottom: 0;
}

.comparison-chart__value {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.comparison-chart__value svg {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.3rem;
    border-radius: 50%;
    background: var(--veritas-gold);
    fill: none;
    stroke: var(--midnight-ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.comparison-chart__dash {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1px;
    background: rgba(92, 103, 114, 0.55);
}

.comparison-chart__mobile-label {
    display: none;
}

@media (max-width: 991px) {
    .comparison-chart__lead {
        margin-top: 1.5rem;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .comparison-chart__frame {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .comparison-chart__table,
    .comparison-chart__table tbody,
    .comparison-chart__table tr,
    .comparison-chart__table th,
    .comparison-chart__table td {
        display: block;
        width: 100%;
    }

    .comparison-chart__table {
        table-layout: auto;
    }

    .comparison-chart__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .comparison-chart__table tbody tr {
        margin-bottom: 1rem;
        overflow: hidden;
        border: 1px solid rgba(243, 236, 220, 0.18);
        background: var(--parchment);
    }

    .comparison-chart__table tbody th,
    .comparison-chart__table th:first-child,
    .comparison-chart__table tbody td {
        width: 100%;
        padding: 1.15rem 1.25rem;
        border-bottom: 1px solid rgba(0, 11, 27, 0.12);
    }

    .comparison-chart__table tbody th {
        background: #d5cfbf;
        font-size: 1.25rem;
    }

    .comparison-chart__table tbody .is-veritas,
    .comparison-chart__table tbody .is-typical {
        display: grid;
        grid-template-columns: minmax(5.5rem, 0.32fr) 1fr;
        gap: 1rem;
        align-items: center;
    }

    .comparison-chart__table tbody .is-veritas {
        border-left: 5px solid var(--veritas-gold);
    }

    .comparison-chart__mobile-label {
        display: block;
        color: var(--midnight-ink);
        font-size: 0.7rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .comparison-chart__table tbody tr > :last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .comparison-chart__table tbody tr > * {
        transition: background-color 180ms ease;
    }

    .comparison-chart__table tbody tr:hover th {
        background: #e4dccd;
    }

    .comparison-chart__table tbody tr:hover .is-veritas {
        background: #fff;
    }
}
