/* =========================================
   Pricing Page Styles
   ========================================= */

/* Main Container */
.pricing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 5% 6rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

/* Reusing your custom glowing text, adjusted for the sub-headline */
.pricing-header .glowing-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 4px;
    margin-bottom: 0;
}

/* CSS Grid for fluid responsiveness (Desktop -> iPad -> Mobile) */
/* CSS Grid for fluid responsiveness (Desktop -> iPad -> Mobile) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicitly forces 3 columns in a single row */
    gap: 2.5rem;
    width: 100%;
    align-items: stretch;
}


/* Individual Pricing Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(204, 51, 79, 0.1);
}

/* Highlighted "Tier II" Card */
.popular-tier {
    border-color: rgba(204, 51, 79, 0.5);
    background: linear-gradient(180deg, rgba(204, 51, 79, 0.05) 0%, rgba(255,255,255,0.02) 100%);
    transform: scale(1.02);
}

.popular-tier:hover {
    transform: scale(1.02) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Card Typography */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card h2 {
    font-size: 1.8rem;
    color: var(--text-pure);
    margin-bottom: 0.2rem;
}

.tier-name {
    color: var(--primary-red);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.8rem;
    vertical-align: super;
    margin-right: 2px;
}

.billing {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.setup-fee {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Feature List (ADA Compliant Spacing) */
.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1; /* Pushes the button to the bottom evenly */
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--text-pure);
    line-height: 1.4;
}

.feature-list .check {
    color: var(--primary-red);
    font-weight: bold;
    flex-shrink: 0;
}

.feature-list .disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.feature-list .dash {
    color: var(--text-muted);
    flex-shrink: 0;
    padding-left: 2px;
}

/* Button Normalization for Grid */
.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* Aligns all buttons at the bottom regardless of list size */
}

/* =========================================
   Mobile / Tablet Media Queries
   ========================================= */

/* iPad / Tablets */
@media (max-width: 1024px) {
    .pricing-grid {
        /* Forces a 2-column layout on iPad, center the 3rd card on the bottom row */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popular-tier {
        transform: scale(1); /* Removes the slight pop-out so it grids cleanly */
    }
    
    .popular-tier:hover {
        transform: translateY(-8px);
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Stacks all 3 cards vertically */
        gap: 3rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 3rem;
    }
    
    .feature-list li {
        /* Larger touch targets and readability for mobile */
        margin-bottom: 1.5rem; 
        font-size: 1.05rem;
    }
}