/* Pricing Page Styles */

/* Hero override — tighter padding for pricing */
.pricing-hero {
    padding: 70px 0 40px;
}

.pricing-hero p {
    max-width: 560px;
}

/* Checkout alert banner */
.pricing-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.pricing-alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.pricing-alert-info {
    background: #eef6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s ease;
    cursor: pointer;
    width: 65px;
    flex-shrink: 0;
}

#toggleMonthly {
    text-align: right;
}

#toggleAnnual {
    position: relative;
    width: 50px;
}

.toggle-label.toggle-active {
    color: #0F2C46;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: #d1d5db;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #1FC4B0, #1D65D1);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.toggle-save {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #1FC4B0;
    background: rgba(31, 196, 176, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Pricing Cards Grid */
.pricing-section {
    padding: 20px 0 80px;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

/* Card */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 28px 28px 32px;
    padding-top: 44px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Trial card */
.pricing-card-trial {
    border: 2px dashed #1FC4B0;
}

/* Featured card */
.pricing-card-featured {
    border: 2px solid #1FC4B0;
    box-shadow: 0 8px 30px rgba(31, 196, 176, 0.15);
}

.card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1FC4B0, #1D65D1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-badge-trial {
    background: #0F2C46;
}

/* Card Header */
.card-header {
    height: 72px;
}

.card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0F2C46;
    margin-bottom: 6px;
}

.card-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card Price */
.card-price {
    padding: 24px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 24px;
    height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.price-monthly,
.price-annual {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.price-amount {
    font-size: 44px;
    font-weight: 800;
    color: #0F2C46;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 500;
}

.price-monthly-equiv {
    width: 100%;
    font-size: 13px;
    color: #1FC4B0;
    font-weight: 600;
    margin-top: 4px;
}

/* Card Features */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    padding: 7px 0;
    line-height: 1.5;
}

.card-features li i {
    color: #1FC4B0;
    font-size: 16px;
    flex-shrink: 0;
}

.card-features li i.ph-x {
    color: #d1d5db;
}

.feature-disabled {
    color: #9ca3af;
}

/* Card CTA */
.card-cta {
    margin-top: auto;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-select-plan {
    font-size: 15px;
    padding: 14px 24px;
    font-family: inherit;
}

.trial-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Pricing FAQ Section */
.pricing-faq-section {
    padding: 60px 0;
    background: #fff;
}

.pricing-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-faq-item {
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid #f3f4f6;
}

.pricing-faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0F2C46;
    margin-bottom: 8px;
}

.pricing-faq-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 900px) {
    .pricing-grid,
    .pricing-grid-4 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    /* Show trial card first on mobile */
    .pricing-card-trial {
        order: -1;
    }

    .pricing-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 50px 0 30px;
    }

    .price-amount {
        font-size: 36px;
    }

    .card-header {
        height: auto;
        min-height: 0;
    }

    .card-price {
        height: auto;
    }
}
