/**
 * SLMA Theme — pricing.css
 * Pricing page styles — Figma-matched
 */

/* ============================================================
   PRICING PAGE HEADER
   ============================================================ */

.pricing-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ecff 100%);
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-header h1 {
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================================
   BILLING TOGGLE
   ============================================================ */

.billing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.save-badge {
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ============================================================
   PRICING SECTION & GRID
   ============================================================ */

.pricing-section {
    padding: 64px 0;
    background: var(--page-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* ============================================================
   PRICING CARD BASE
   ============================================================ */

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.pricing-card-inner {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   TIER MODIFIERS
   ============================================================ */

.tier-pro {
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.12);
}

.tier-pro:hover {
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.2);
}

.tier-featured {
    border: 2px solid var(--amber);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.tier-featured:hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.2);
}

/* ============================================================
   PLAN BADGES & LABELS
   ============================================================ */

.plan-badge-top {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 7px 0;
}

.plan-label-pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.plan-label-featured {
    background: var(--amber-light);
    color: #b45309;
}

/* ============================================================
   PLAN CONTENT
   ============================================================ */

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

.plan-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ============================================================
   PLAN FEATURES LIST
   ============================================================ */

.plan-features {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan-features li {
    font-size: 14px;
    padding-left: 22px;
    position: relative;
    line-height: 1.45;
}

.plan-features li.feature-yes {
    color: var(--text-primary);
}

.plan-features li.feature-yes::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.plan-features li.feature-no {
    color: var(--text-muted);
}

.plan-features li.feature-no::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 12px;
    top: 1px;
}

/* ============================================================
   COMPARISON SECTION
   ============================================================ */

.comparison-section {
    padding: 72px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.comparison-table thead {
    background: var(--page-bg);
    border-bottom: 2px solid var(--border);
}

.comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--page-bg);
}

.ct-check {
    color: var(--green);
    font-weight: 700;
}

.ct-dash {
    color: var(--text-muted);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
    padding: 72px 0;
    background: var(--page-bg);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.is-open {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
    line-height: 1;
}

.faq-item.is-open .faq-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    border-top: 1px solid var(--border);
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer-inner {
    padding: 20px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pricing-header { padding: 48px 0 40px; }
    .pricing-header h1 { font-size: 28px; }
    .pricing-subtitle { font-size: 16px; }
    .pricing-section { padding: 48px 0; }
    .comparison-section, .faq-section { padding: 48px 0; }
    .comparison-table th, .comparison-table td { padding: 12px 10px; font-size: 13px; }
    .faq-question { padding: 16px 20px; font-size: 14px; }
    .faq-answer-inner { padding: 16px 20px; font-size: 13px; }
}

@media (max-width: 480px) {
    .pricing-header { padding: 40px 0 32px; }
    .price-amount { font-size: 40px; }
    .pricing-card-inner { padding: 24px 20px; }
    .faq-section h2, .comparison-section h2 { font-size: 24px; }
    .faq-question { padding: 14px 16px; font-size: 13px; }
    .faq-answer-inner { padding: 12px 16px; }
}
