/* === Pricing Hero === */
.pricing-hero {
    text-align: center;
    padding: var(--space-20) 0 var(--space-10);
    background: var(--bg);
}

.pricing-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
    line-height: 1.1;
}

.pricing-hero p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Billing Toggle === */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-8) 0 0;
}

.billing-toggle-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.billing-toggle-label.active {
    color: var(--gray-900);
    font-weight: 600;
}

.billing-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.billing-toggle-switch.active {
    background: var(--primary);
}

.billing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.billing-toggle-switch.active::after {
    transform: translateX(22px);
}

.billing-save-badge {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* === Pricing Cards Grid === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    max-width: 1160px;
    margin: var(--space-12) auto var(--space-16);
    align-items: stretch;
}

/* === Pricing Card === */
.pricing-card-wrapper {
    position: relative;
}

.pricing-card-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 3px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.pricing-page-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-5);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-page-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), var(--shadow-md);
}

.pricing-page-card.featured:hover {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-xl);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.pricing-card-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.pricing-card-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-card-amount {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.04em;
    line-height: 1;
}

.pricing-card-period {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 2px;
}

.pricing-card-annual {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
    min-height: 18px;
}

/* === Feature List === */
.pricing-feature-list {
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: 5px 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-feature-icon {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-feature-icon.check { color: var(--success); }
.pricing-feature-icon.cross { color: var(--gray-300); }

.pricing-feature-item.disabled { color: var(--text-tertiary); }

.pricing-card-cta {
    width: 100%;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-full);
    display: block;
    transition: all var(--transition-fast);
}

/* Plan button variants */
.btn-basic {
    background: #059669;
    color: white;
}
.btn-basic:hover {
    background: #047857;
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-max {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}
.btn-max:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* === Plan Extras === */
.plan-extras-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.plan-extras-section .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.plan-extras-section .section-header h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.plan-extras-section .section-header p {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.plan-extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 820px;
    margin: 0 auto;
}

.plan-extra-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition);
}

.plan-extra-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.plan-extra-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-extra-icon i { font-size: 22px; }

.plan-extra-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.plan-extra-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.plan-extra-prices strong { color: var(--gray-900); }

/* === Feature Comparison Table === */
.comparison-section {
    padding: var(--space-20) 0;
}

.comparison-section .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.comparison-section .section-header h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.comparison-section .section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-table-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.comparison-table th {
    text-align: left;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    background: var(--gray-50);
}

.comparison-table th:not(:first-child) {
    text-align: center;
    width: 105px;
}

.comparison-table th.plan-free  { color: var(--text-secondary); }
.comparison-table th.plan-basic { color: #059669; }
.comparison-table th.plan-pro   { color: var(--primary); }
.comparison-table th.plan-max   { color: #d97706; }

.comparison-table td {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-light);
}

.comparison-table td:not(:first-child) { text-align: center; }

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

.comparison-table tr:hover td { background: #fafafa; }

.comparison-table .feature-category td {
    background: var(--gray-50);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-5);
}

.comparison-check { color: var(--success); display: inline-block; }
.comparison-cross  { color: var(--gray-300); display: inline-block; }
.comparison-text   { font-weight: 500; }

/* === FAQ === */
.faq-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.faq-section .section-header h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.faq-section .section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover { border-color: var(--gray-300); }

.faq-item.open {
    border-color: var(--primary-200);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    gap: var(--space-4);
    transition: color var(--transition-fast);
}

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

.faq-question i {
    font-size: 15px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform var(--transition);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
    padding: 0 var(--space-5) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-4);
}

.faq-answer-inner a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* === Pricing CTA === */
.pricing-cta {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 50%, #6366f1 100%);
    padding: var(--space-20) 0;
    text-align: center;
}

.pricing-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.pricing-cta p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-8);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pricing-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.pricing-cta .btn-primary {
    background: white;
    color: var(--primary-700);
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.pricing-cta .btn-primary:hover {
    background: rgba(255,255,255,0.92);
    color: var(--primary-700);
}

.pricing-cta .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-full);
}

.pricing-cta .btn-outline:hover {
    background: rgba(255,255,255,0.18);
    color: white;
    border-color: rgba(255,255,255,0.55);
}

/* === Plan Card Icon Badge === */
.pricing-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto var(--space-3);
}

/* === Featured card elevation === */
.pricing-card-wrapper.featured-wrapper {
    transform: translateY(-12px);
}

.pricing-page-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08), 0 20px 60px rgba(99,102,241,0.18);
}

.pricing-page-card.featured .pricing-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-5)) var(--space-5);
    padding: var(--space-6) var(--space-5) var(--space-5);
    border-radius: calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px) 0 0;
    border-bottom: none;
}

.pricing-page-card.featured .pricing-card-name,
.pricing-page-card.featured .pricing-card-amount { color: #fff; }

.pricing-page-card.featured .pricing-card-desc,
.pricing-page-card.featured .pricing-card-period,
.pricing-page-card.featured .pricing-card-annual { color: rgba(255,255,255,0.7); }

.pricing-page-card.featured .pricing-card-icon {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* === Social Proof Strip === */
.pricing-social-proof {
    padding: var(--space-6) 0 var(--space-4);
    background: white;
}

.pricing-proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.pricing-proof-avatars {
    display: flex;
    align-items: center;
}

.pricing-proof-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
    flex-shrink: 0;
}

.pricing-proof-avatars .pricing-proof-avatar:first-child { margin-left: 0; }

.pricing-proof-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pricing-proof-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.pricing-proof-text strong { color: var(--gray-900); }

/* === Annual Savings Chip === */
.pricing-savings-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.pricing-savings-chip::before {
    content: attr(data-savings);
}

/* === Feature Heading === */
.pricing-feature-heading {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light);
}

/* === Sticky Comparison Header === */
.comparison-sticky-head th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--gray-50);
    box-shadow: 0 1px 0 var(--border);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 660px;
    }
    .plan-extras-grid { max-width: 560px; }
}

@media (max-width: 768px) {
    .pricing-hero { padding: var(--space-12) 0 var(--space-6); }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-bottom: var(--space-10);
    }

    .pricing-page-card { padding: var(--space-5); }
    .pricing-card-amount { font-size: 2.2rem; }

    .plan-extras-section { padding: var(--space-12) 0; }
    .plan-extras-grid { grid-template-columns: 1fr; max-width: 340px; }

    .comparison-section { padding: var(--space-12) 0; }
    .comparison-table-wrapper { overflow-x: auto; }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .comparison-table th:not(:first-child),
    .comparison-table td:not(:first-child) { width: 60px; }

    .faq-section { padding: var(--space-12) 0; }
    .faq-question { font-size: var(--text-sm); padding: var(--space-3) var(--space-4); }
    .faq-answer-inner { padding: var(--space-3) var(--space-4) var(--space-4); }

    .pricing-cta { padding: var(--space-14) 0; }
    .pricing-cta-buttons { flex-direction: column; align-items: center; }
}
