/* =========================================================
   Feature Comparison Table
   ========================================================= */

.ft-wrap {
    margin: 2rem 0;
}

.ft-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(10, 40, 100, 0.1);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--color-surface);
}

/* Header row */
.feature-table thead th {
    padding: 1rem 1.1rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
    color: #fff;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.feature-table thead .ft-col-feature {
    text-align: left;
    min-width: 260px;
}

.feature-table thead .ft-col-plan {
    min-width: 110px;
}

/* Category separator row */
.feature-table tbody .ft-category {
    background: #eef4fb;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.1rem;
    border-top: 2px solid var(--color-border);
}

/* Feature rows */
.feature-table tbody tr:not(.ft-category-row) {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

.feature-table tbody tr:not(.ft-category-row):hover {
    background: #f0f6ff;
}

/* Feature name cell */
.ft-feature-header {
    padding: 0.8rem 1.1rem;
    vertical-align: top;
}

.ft-feature-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.ft-feature-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
    line-height: 1.45;
    max-width: 36ch;
}

/* Value cells */
.ft-value {
    padding: 0.8rem 1.1rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.ft-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d4f0e1;
    color: #1a8c52;
    font-size: 1rem;
    font-weight: 700;
}

.ft-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fde8e8;
    color: #c0392b;
    font-size: 1rem;
    font-weight: 700;
}

.ft-text {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
}

/* Responsive: on small screens shrink the sticky header */
@media (max-width: 640px) {
    .feature-table {
        font-size: 0.82rem;
    }

    .feature-table thead .ft-col-feature {
        min-width: 160px;
    }

    .feature-table thead .ft-col-plan {
        min-width: 80px;
    }
}

