/* ============================================
   Pricing Section - Enhanced Design
   Premium glassmorphism with gradients & animations
   ============================================ */

/* Main Section */
.pricing-section {
    font-family: 'Space Grotesk', sans-serif;
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Background glow effect */
.pricing-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(255, 123, 123, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.pricing-section .section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.pricing-section .section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pricing-section .section-header p {
    color: var(--sp-text-secondary);
    font-size: 3rem;
    max-width: 500px;
    
}

/* Pricing Cards Container */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
    align-items: stretch;
}

/* Pricing Card */
.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

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

/* Featured Card (Pro) - Lovable Style */
.pricing-card.featured {
    background: rgba(255, 123, 123, 0.04);
    border: 2px solid #ff7b7b;
    box-shadow: 0 0 40px rgba(255, 123, 123, 0.15);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 0 60px rgba(255, 123, 123, 0.25);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, transparent, rgba(255, 123, 123, 0.4), transparent);
}

.pricing-card.featured::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff7b7b, #f43f5e);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    z-index: 10;
}

/* Card Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sp-text-secondary);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-card.featured .pricing-card-title {
    color: #ff7b7b;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.pricing-card-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sp-text-tertiary);
    align-self: flex-start;
    margin-top: 0.5rem;
}

.pricing-card-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--sp-text-primary);
    line-height: 1;
}

.pricing-card.featured .pricing-card-amount {
    background: linear-gradient(135deg, #fff, #ff7b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pricing-card-subtitle {
    font-size: 0.875rem;
    color: var(--sp-text-tertiary);
    margin: 0;
}

/* Feature List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    color: var(--sp-text-secondary);
}

.pricing-feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
}

.pricing-feature-icon.included {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.pricing-feature-icon.limited {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.pricing-feature-icon.unlimited {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.pricing-feature-text {
    flex: 1;
    color: var(--sp-text-primary);
}

.pricing-feature-limit {
    font-size: 0.8125rem;
    color: var(--sp-text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 999px;
}

/* CTA Button - Lovable Style */
.pricing-cta {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-cta.primary {
    background: #ff7b7b;
    color: #000;
}

.pricing-cta.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.pricing-cta.secondary {
    background: transparent;
    color: var(--sp-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.pricing-cta.secondary:hover {
    border-color: #ff7b7b;
    color: #ff7b7b;
}

/* Coming Soon Notice */
.pricing-coming-soon {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--sp-text-tertiary);
    font-style: italic;
}

/* ============================================
   Feature Comparison Table - Modern Redesign
   ============================================ */

.pricing-table-container {
    margin-top: 3rem;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

/* Section Title */
.pricing-table-container::before {
    content: 'Full Feature Comparison';
    display: block;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sp-text-primary);
    padding: 2rem;
    padding-bottom: 1rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

/* Sticky Header */
.pricing-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.pricing-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    background: transparent;
    color: var(--sp-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.pricing-table th:nth-child(2) {
    width: 30%;
    text-align: center;
    color: var(--sp-text-secondary);
}

.pricing-table th.pro-header {
    width: 30%;
    text-align: center;
    color: #ff7b7b;
}

/* Table Body */
.pricing-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table td {
    padding: 0.875rem 1.5rem;
    color: var(--sp-text-secondary);
    font-size: 0.875rem;
}

.pricing-table td:first-child {
    color: var(--sp-text-primary);
}

.pricing-table td:nth-child(2),
.pricing-table td:last-child {
    text-align: center;
}

.pricing-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Category Rows - Lovable Style */
.pricing-table .category-row td {
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    font-weight: 600;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sp-text-tertiary);
    text-align: left;
}

/* Pro Column Values */
.pricing-table .pro-value {
    color: var(--sp-text-primary);
}

.pricing-table .pro-highlight {
    color: #ff7b7b;
    font-weight: 600;
}

/* Status Badges */
.pricing-table .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
}

.pricing-table .unlimited-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.15));
    color: #a78bfa;
    font-size: 11px;
    font-weight: 700;
}

/* Limit Pills for Free tier */
.pricing-table .limit-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Pro-only indicator */
.pricing-table .pro-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 123, 123, 0.1), rgba(244, 63, 94, 0.1));
    color: #ff7b7b;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

@media (max-width: 768px) {
    .pricing-section {
        padding: 5rem 1rem;
    }

    .pricing-section .section-header h2 {
        font-size: 2.25rem;
    }

    .pricing-section .section-header p {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card-amount {
        font-size: 3rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* Subtle animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Trust Badge - Lovable Style */
.pricing-trust-badge {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--sp-text-tertiary);
}