/* Plan comparison grid — hub + landing (loads last; overrides hub-ui dark cards) */

.slx-plan-compare,
.slx-pricing-landing .slx-plan-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .slx-plan-compare,
    .slx-pricing-landing .slx-plan-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .slx-plan-compare,
    .slx-pricing-landing .slx-plan-showcase {
        grid-template-columns: 1fr;
    }
}

.slx-plan-compare .slx-plan-card,
.slx-pricing-landing .slx-plan-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    color: #111827 !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08) !important;
    padding: 20px 18px !important;
    display: grid !important;
    grid-template-rows: subgrid;
    grid-row: span var(--slx-plan-rows, 19);
    gap: 0 !important;
    height: 100% !important;
    align-content: start;
}

.slx-plan-compare .slx-plan-card.active,
.slx-pricing-landing .slx-plan-card.is-featured {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 55%) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35) !important;
}

.slx-plan-card-head h3,
.slx-plan-compare .slx-plan-card h3,
.slx-pricing-landing .slx-plan-card h3 {
    color: #111827 !important;
    font-size: 1.25rem !important;
    margin: 0 0 6px !important;
}

.slx-plan-price,
.slx-plan-compare .slx-plan-card strong,
.slx-pricing-landing .slx-plan-card strong {
    color: #111827 !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
}

.slx-plan-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    margin-bottom: 6px;
}

.slx-plan-tokens,
.slx-plan-compare .slx-plan-card small,
.slx-pricing-landing .slx-plan-card small {
    color: #6b7280 !important;
    font-weight: 700 !important;
    display: block;
    margin-top: 4px;
}

.slx-plan-card-head {
    padding-bottom: 12px;
}

.slx-plan-feature-matrix {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
    max-height: none;
    overflow: visible;
}

.slx-plan-compare .slx-plan-card ul:not(.slx-plan-feature-matrix),
.slx-pricing-landing .slx-plan-card ul:not(.slx-plan-feature-matrix) {
    display: none !important;
}

.slx-plan-feat {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    line-height: 1.45;
    color: #374151 !important;
}

.slx-plan-feat.is-yes .slx-plan-feat-icon {
    color: #059669;
    font-weight: 900;
}

.slx-plan-feat.is-limited .slx-plan-feat-icon {
    color: #d97706;
    font-weight: 900;
}

.slx-plan-feat.is-no {
    opacity: 0.5;
}

.slx-plan-feat.is-no .slx-plan-feat-icon {
    color: #9ca3af;
    font-weight: 700;
}

.slx-plan-feat-label {
    color: #1f2937 !important;
}

.slx-plan-feat-extra {
    font-size: 11px;
    font-weight: 800;
    color: #7c3aed !important;
    white-space: nowrap;
}

.slx-plan-card-foot {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.slx-plan-card-foot .slx-btn,
.slx-pricing-landing .slx-plan-card > .slx-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.slx-pricing-landing .slx-section-title p.slx-muted {
    color: #4b5563 !important;
}
