/**
 * Module: lp_comparison_table
 */

/* ============================================
   COMPARISON TABLE
   ============================================ */

.t1-cmp {
    padding: 5rem max(1.5rem, calc(50vw - var(--max-width) / 2 + 1.5rem));
}

/* Background variants */
.t1-cmp--bg-cream {
    background: var(--cream);
}

.t1-cmp--bg-pearl {
    background: var(--pearl);
}

.t1-cmp--bg-white {
    background: #ffffff;
}

/* Header */
.t1-cmp__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.t1-cmp__eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jade);
    margin-bottom: 0.5rem;
}

.t1-cmp__heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.t1-cmp__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.t1-cmp__description > :first-child {
    margin-top: 0;
}

.t1-cmp__description > :last-child {
    margin-bottom: 0;
}

/* Table */
.t1-cmp__table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Column headers */
.t1-cmp__col-header {
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--pearl);
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}

.t1-cmp__col-header--empty {
    text-align: left;
    background: transparent;
}

/* Body rows */
.t1-cmp__body .t1-cmp__row {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.t1-cmp__body .t1-cmp__row:last-child {
    border-bottom: none;
}

.t1-cmp__body .t1-cmp__row:hover {
    background: rgba(0,135,108,0.03);
}

.t1-cmp__row-header {
    padding: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    background: transparent;
}

.t1-cmp__cell {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--charcoal);
    text-align: center;
}

/* Footer (pricing) */
.t1-cmp__foot-header,
.t1-cmp__foot-cell {
    padding: 1.5rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--pearl);
    border-top: 2px solid rgba(0,0,0,0.06);
}

.t1-cmp__foot-header {
    text-align: left;
}

.t1-cmp__foot-cell {
    text-align: center;
}

/* Highlight column */
.t1-cmp__cell.t1-cmp__highlight {
    background: var(--jade-light);
}

.t1-cmp__col-header.t1-cmp__highlight {
    background: var(--jade);
    color: white;
}

.t1-cmp__foot-cell.t1-cmp__highlight,
.t1-cmp__foot-header.t1-cmp__highlight {
    background: var(--jade);
    color: white;
}

/* Status symbols */
.t1-cmp__yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: var(--jade);
    border-radius: 50%;
}

.t1-cmp__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: #dc3545;
    border-radius: 50%;
}

.t1-cmp__partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    background: var(--gold);
    border-radius: 50%;
}

/* CTA */
.t1-cmp__cta {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--jade);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.t1-cmp__cta:hover {
    background: var(--jade-dark);
    transform: translateY(-2px);
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
    .t1-cmp__table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .t1-cmp__col-header,
    .t1-cmp__row-header,
    .t1-cmp__cell,
    .t1-cmp__foot-header,
    .t1-cmp__foot-cell {
        white-space: nowrap;
        min-width: 120px;
    }
    
    .t1-cmp__row-header,
    .t1-cmp__foot-header {
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
    }
    
    .t1-cmp__foot-header {
        background: var(--pearl);
    }
}

/* ========================================
   LIGHT THEME OVERRIDE
   ======================================== */

.t1-cmp--light .t1-cmp__table {
    background: white;
}

.t1-cmp--light .t1-cmp__col-header {
    color: var(--ink);
    background: var(--pearl);
}

.t1-cmp--light .t1-cmp__body .t1-cmp__row:hover {
    background: rgba(59, 130, 246, 0.03);
}

.t1-cmp--light .t1-cmp__row-header {
    color: var(--ink);
}

.t1-cmp--light .t1-cmp__cell {
    color: var(--charcoal);
}

.t1-cmp--light .t1-cmp__foot-header,
.t1-cmp--light .t1-cmp__foot-cell {
    color: var(--ink);
    background: var(--pearl);
}

.t1-cmp--light .t1-cmp__col-header.t1-cmp__highlight {
    background: var(--jade);
    color: white;
}

.t1-cmp--light .t1-cmp__cell.t1-cmp__highlight {
    background: var(--jade-light);
}