/* =============================================================
   FILE: assets/css/pricing.css
   PURPOSE: Styles for pricing.php – plan cards, FAQ accordion.
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   PRICING SECTION
   ───────────────────────────────────────────────────────────── */
.pricing-section { padding-block: var(--section-gap); }

/* 3-column grid on desktop */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Pricing Card ── */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    position: relative;
    transition: transform var(--duration-med) var(--ease),
                border-color var(--duration-med),
                box-shadow var(--duration-med);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--card-color, #00F5D4) 40%, transparent);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4),
                0 0 0 1px color-mix(in srgb, var(--card-color, #00F5D4) 20%, transparent);
}

/* Popular card: glowing, slightly larger, stands out */
.pricing-card--popular {
    background: var(--bg-elevated);
    border-color: rgba(0,245,212,0.35);
    box-shadow: 0 0 0 1px rgba(0,245,212,0.2), var(--glow-primary);
    transform: translateY(-8px); /* Already elevated */
}

.pricing-card--popular:hover {
    transform: translateY(-16px);
}

/* "Most Popular" ribbon badge at top */
.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-base);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(0,245,212,0.4);
}

/* Header */
.pricing-header { margin-bottom: 28px; }

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.pricing-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Price block */
.pricing-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 28px;
}

.price-currency {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    /* Popular card: use accent colour */
}

.pricing-card--popular .price-amount {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-cycle {
    font-size: 0.85rem;
    color: var(--text-dimmer);
    padding-bottom: 8px;
}

/* Divider */
.pricing-divider {
    height: 1px;
    background: var(--border-faint);
    margin-bottom: 28px;
}

/* Feature list */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    min-height: 220px; /* Ensures cards align at same height */
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-icon {
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA button */
.pricing-btn {
    width: 100%;
    justify-content: center;
}

/* Note below cards */
.pricing-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-note a {
    color: var(--primary);
    transition: opacity var(--duration-fast);
}

.pricing-note a:hover { opacity: 0.7; }


/* ─────────────────────────────────────────────────────────────
   FAQ SECTION
   ───────────────────────────────────────────────────────────── */
.faq-section { padding-block: var(--section-gap); background: var(--bg-surface); }

.faq-list {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each FAQ item */
.faq-item {
    border-bottom: 1px solid var(--border-faint);
    overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid var(--border-faint); }

/* Question button */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.faq-question:hover { color: var(--primary); }

.faq-item.open .faq-question { color: var(--primary); }

/* +/- icon */
.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
    transition: transform var(--duration-med) var(--ease);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Answer panel – collapsed by default, expands with max-height trick */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.8;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .pricing-card--popular { transform: none; }
    .pricing-card--popular:hover { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .pricing-card { padding: 36px 24px; }
    .price-amount { font-size: 2.5rem; }
    .pricing-features { min-height: auto; }
}