/* ============================================================
   Intellibourne Pricing Page — Magnetic Subscription Design
   ============================================================ */

.pricing-page {
    padding: 120px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Header Section --- */
.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(229, 9, 20, 0.05));
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.pricing-header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Billing Toggle --- */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.billing-toggle span {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.billing-toggle span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-switch.annual {
    background: rgba(229, 9, 20, 0.3);
    border-color: rgba(229, 9, 20, 0.5);
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch.annual::after {
    transform: translateX(24px);
}

.billing-save {
    font-size: 0.75rem;
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* --- Pricing Card Base --- */
.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- Featured Card (Pro) --- */
.pricing-card.featured {
    border-color: rgba(229, 9, 20, 0.4);
    background: linear-gradient(175deg, rgba(229, 9, 20, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%);
    transform: scale(1.03);
    z-index: 1;
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--accent), #ff4d79);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 25px 70px rgba(229, 9, 20, 0.15);
}

/* --- Popular Badge --- */
.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

/* --- Card Header --- */
.card-plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.card-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.card-price-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.card-price-custom {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* --- CTA Buttons --- */
.btn-pricing {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-pricing-free {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-pricing-free:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-pricing-pro {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.btn-pricing-pro:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 30px rgba(229, 9, 20, 0.4);
    transform: translateY(-1px);
}

.btn-pricing-custom {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-pricing-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(229, 9, 20, 0.05);
}

/* --- Feature List --- */
.pricing-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features li i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 0.85rem;
}

.pricing-features li i.bi-check-lg {
    color: #00c853;
}

.pricing-features li i.bi-x-lg {
    color: var(--text-muted);
    opacity: 0.4;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- Divider line --- */
.pricing-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 24px 0;
}

/* --- Per-Project Section --- */
.project-pricing-section {
    margin-top: 80px;
    text-align: center;
}

.project-pricing-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-pricing-section p {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: rgba(229, 9, 20, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.project-card .project-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.project-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-card .project-price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.project-card .project-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FAQ / Trust Section --- */
.pricing-trust {
    margin-top: 80px;
    text-align: center;
}

.pricing-trust h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}

.trust-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- CTA Banner --- */
.pricing-cta-banner {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.03) 100%);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}

.pricing-cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-cta-banner p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.pricing-cta-banner .btn-pricing-pro {
    display: inline-block;
    width: auto;
    padding: 16px 48px;
    font-size: 1rem;
}

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

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .pricing-header h1 {
        font-size: 2.2rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .pricing-page {
        padding: 100px 20px 60px;
    }

    .pricing-header h1 {
        font-size: 1.8rem;
    }

    .card-price .amount {
        font-size: 2.8rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
