/*
 * Plans page — modern pricing comparison table.
 */

.lfs-plans .plan-tabs {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.plan-tab {
    appearance: none;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.55rem 1rem;
    cursor: pointer;
    border-radius: var(--r-pill);
    font-weight: 600;
    color: var(--body);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.plan-tab:hover {
    background: var(--surface);
}

.plan-tab.active {
    background: var(--emerald);
    color: #fff;
    border-color: var(--emerald);
}

.lfs-pricing-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lfs-pricing-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.lfs-pricing-table th,
.lfs-pricing-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.lfs-pricing-table thead th {
    background: var(--surface-alt);
    font-weight: 700;
    color: var(--text);
}

.lfs-pricing-table .plan-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.lfs-pricing-table .plan-tagline {
    margin: 0;
    font-size: 0.875rem;
    color: var(--body);
    font-weight: 400;
}

.lfs-pricing-table .section-heading {
    background: var(--surface-alt);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.lfs-pricing-table .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.lfs-pricing-table .price sup {
    font-size: 0.75em;
    vertical-align: super;
}

.lfs-pricing-table .price-quote {
    font-size: 1.125rem;
    font-weight: 600;
}

.lfs-pricing-table .billing-period {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
}

.lfs-pricing-table .not-in-plan {
    color: var(--muted);
}

@media (max-width: 48rem) {
    .lfs-plans .plan-tabs {
        display: flex;
    }

    .lfs-pricing-table thead th:not(:first-child),
    .lfs-pricing-table tbody td {
        display: none;
    }

    .lfs-pricing-table thead th.is-active-col,
    .lfs-pricing-table tbody td.is-active-col {
        display: table-cell;
    }

    .lfs-pricing-table thead th:first-child,
    .lfs-pricing-table tbody th {
        display: table-cell;
    }
}
