/* ==========================================================================
   Pricing Feature Comparison Matrix — used by pricing2.php
   Styled with the same vocabulary as pricing-styles.css
   ========================================================================== */

.matrix-section {
    max-width: 1200px;
    margin: 25px auto 40px auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.matrix-intro { text-align: center; margin-bottom: 25px; }
.matrix-intro h2 { font-size: 2rem; font-weight: 700; color: #333; letter-spacing: -0.5px; margin: 0; }
.matrix-intro p { color: #6B7280; font-size: 1rem; margin: 6px 0 0 0; }

.matrix-wrap { overflow-x: auto; border: 2px solid #e0e0e0; border-radius: 3px; }

table.matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

/* Sticky plan header — mini versions of the pricing-card header bars */
.matrix thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
    border-bottom: 2px solid #0478CC;
    padding: 10px 8px;
    text-align: center;
    vertical-align: bottom;
}
.matrix thead th.feature-col {
    text-align: left;
    padding-left: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.matrix .th-bar {
    display: block;
    background: #0478CC;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 6px;
    border-radius: 3px 3px 0 0;
    line-height: 1.2;
}
.matrix .th-bar.personal { background: #4AA6E8; }
.matrix .th-price { font-size: 0.75rem; color: #4B5563; font-weight: 500; margin-top: 6px; }
.matrix .th-price b { color: #0478CC; font-size: 1rem; font-weight: 600; }
.matrix .th-cta {
    display: inline-block;
    margin-top: 7px;
    background: #0478CC;
    color: #fff;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.matrix .th-cta:hover { transform: translateY(-2px); }

/* Category band rows */
.matrix .cat td {
    background: #D9EBF7;
    color: #0B5BA8;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    border-top: 1px solid #c3ddf0;
    border-bottom: 1px solid #c3ddf0;
}
.matrix .cat .cat-count {
    font-weight: 500;
    font-size: 0.7rem;
    color: #0478CC;
    margin-left: 8px;
    text-transform: none;
    letter-spacing: 0;
}

/* Feature rows */
.matrix tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.85rem;
    color: #333;
    background: #ffffff;
    vertical-align: middle;
}
.matrix tbody tr:nth-child(even):not(.cat) td { background: #fafbfc; }
.matrix tbody tr:not(.cat):hover td { background: #f0f7fc; }
.matrix td.feature {
    text-align: left;
    padding-left: 18px;
    padding-right: 16px;
    font-weight: 600;
    color: #333;
    width: 40%;
}
.matrix td.feature .desc {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6B7280;
    margin-top: 2px;
    max-width: 46ch;
}
.matrix .learn {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0478CC;
    text-decoration: none;
    white-space: nowrap;
}
.matrix .learn:hover { text-decoration: underline; }

/* Cell marks — same green check as the pricing cards */
.matrix .mcheck { color: #13CE8B; font-weight: 600; font-size: 1.2rem; }
.matrix .dash { color: #ccc; font-weight: 600; }
.matrix .val { font-weight: 600; color: #0478CC; font-size: 0.8rem; }
.matrix .badge-new {
    background: #13CE8B;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: 2px;
}
.matrix .badge-soon {
    background: #FA884C;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: 2px;
    letter-spacing: 0.3px;
}
.matrix sup.fn { color: #6B7280; font-size: 0.68em; }
.matrix .confirm { color: #FA884C; font-size: 0.75em; cursor: help; }

/* Footnotes */
.matrix-section .footnotes {
    margin: 14px 4px 0 4px;
    font-size: 0.7rem;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Mobile: pin the feature column while plan columns scroll horizontally */
@media (max-width: 992px) {
    .matrix td.feature { min-width: 230px; }
    .matrix td.feature,
    .matrix thead th.feature-col,
    .matrix .cat td.feature {
        position: sticky;
        left: 0;
        z-index: 3;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
    }
    .matrix .cat td.feature { background: #D9EBF7; }
    .matrix thead th.feature-col { z-index: 6; background: #ffffff; }
}
