/* =========================================================
   Ready Set Fit Academy — pricing.css
   Drop into /css/pricing.css
   Pairs with /css/styles.css
   ========================================================= */

/* Local color tokens (fall back to your existing palette via styles.css) */
:root {
    --rsf-navy: #163a6e;
    --rsf-navy-deep: #0e2a52;
    --rsf-navy-soft: #1f4a85;
    --rsf-gold: #f5b324;
    --rsf-gold-light: #fcd462;
    --rsf-cream: #fff9ec;
    --rsf-text: #2a3548;
    --rsf-text-muted: #5a6678;
    --rsf-border: #e6ebf2;
    --rsf-shadow-card: 0 8px 28px rgba(15, 35, 75, 0.10);
    --rsf-shadow-feature: 0 18px 50px rgba(15, 35, 75, 0.22);
}

/* ==========================================================
   HERO
   ========================================================== */
.pricing-hero {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(245, 179, 36, 0.22), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(31, 74, 133, 0.35), transparent 55%),
        linear-gradient(135deg, var(--rsf-navy) 0%, var(--rsf-navy-deep) 100%);
    color: #fff;
    padding: 130px 0 100px;
    overflow: hidden;
}

.pricing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0) 2px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0, rgba(255,255,255,0) 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.pricing-hero-inner {
    position: relative;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 18px 0 20px;
    color: #fff;
}

.pricing-hero-sub {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    max-width: 660px;
    margin: 0 auto 36px;
}

.pricing-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pricing-pill {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-pill span {
    color: var(--rsf-gold-light);
    font-weight: 800;
}

/* "light" variant of section-tag for dark backgrounds */
.section-tag.light {
    color: var(--rsf-gold-light);
}

/* ==========================================================
   PAYMENT FLOW
   ========================================================== */
.payment-flow {
    padding: 100px 0;
    background: #fff;
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 50px;
}

.flow-card {
    background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
    border: 1px solid var(--rsf-border);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--rsf-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rsf-shadow-feature);
}

.flow-step {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rsf-gold);
    margin-bottom: 14px;
}

.flow-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    line-height: 1;
}

.flow-card h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--rsf-navy);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.flow-card p {
    color: var(--rsf-text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rsf-gold);
    font-size: 1.8rem;
    font-weight: 800;
    user-select: none;
}

.flow-callout {
    margin-top: 50px;
    background: var(--rsf-cream);
    border-left: 4px solid var(--rsf-gold);
    padding: 22px 28px;
    border-radius: 12px;
    color: var(--rsf-text);
    font-size: 1.02rem;
    line-height: 1.6;
}

.flow-callout strong {
    color: var(--rsf-navy);
}

/* ==========================================================
   PRICING TIERS
   ========================================================== */
.pricing-tiers {
    padding: 110px 0;
    background:
        radial-gradient(ellipse at top, rgba(245,179,36,0.10), transparent 55%),
        linear-gradient(135deg, var(--rsf-navy) 0%, var(--rsf-navy-deep) 100%);
    color: #fff;
}

.pricing-tiers .section-header h2,
.pricing-tiers .section-header p {
    color: #fff;
}

.pricing-tiers .section-header p {
    color: rgba(255,255,255,0.82);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
    align-items: stretch;
}

.tier-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 38px 32px 36px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--rsf-text);
}

.tier-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.28);
}

.tier-card.featured {
    background: linear-gradient(180deg, #fff 0%, #fffbf0 100%);
    border: 2px solid var(--rsf-gold);
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.tier-card.featured:hover {
    transform: translateY(-16px);
}

.tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rsf-gold);
    color: var(--rsf-navy-deep);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 7px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(245,179,36,0.5);
    white-space: nowrap;
}

.tier-badge.subtle {
    background: var(--rsf-navy);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 35, 75, 0.35);
}

.tier-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--rsf-navy);
    margin-bottom: 4px;
}

.tier-length {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--rsf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0 18px;
    border-top: 1px dashed var(--rsf-border);
    border-bottom: 1px dashed var(--rsf-border);
    margin-bottom: 22px;
}

.price-amount {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--rsf-gold);
    letter-spacing: -0.02em;
}

.tier-card.featured .price-amount {
    color: var(--rsf-navy);
}

.price-unit {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--rsf-text-muted);
    font-weight: 600;
}

.tier-desc {
    color: var(--rsf-text);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 22px;
}

.tier-bestfor {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.tier-card.featured .tier-bestfor {
    background: #fff7e2;
}

.bestfor-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--rsf-navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tier-bestfor ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: var(--rsf-text-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.tier-bestfor li + li {
    margin-top: 4px;
}

.tier-detail {
    color: var(--rsf-text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

.tier-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.tiers-footnote {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    font-size: 0.96rem;
}

/* ==========================================================
   CLASS DETAILS (Size / Schedule / Included)
   ========================================================== */
.class-details {
    padding: 100px 0;
    background: #fafbfd;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.detail-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 30px;
    border: 1px solid var(--rsf-border);
    box-shadow: var(--rsf-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rsf-shadow-feature);
}

.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--rsf-gold) 0%, var(--rsf-gold-light) 100%);
    border-radius: 14px;
    font-size: 1.7rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(245, 179, 36, 0.35);
}

.detail-card .section-tag {
    margin-bottom: 8px;
}

.detail-card h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--rsf-navy);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 18px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.detail-list li {
    color: var(--rsf-text);
    font-size: 0.98rem;
    line-height: 1.55;
    padding: 8px 0;
    border-bottom: 1px solid var(--rsf-border);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li strong {
    color: var(--rsf-navy);
    font-weight: 700;
}

.detail-list.checked li {
    padding-left: 28px;
    position: relative;
    border-bottom: none;
}

.detail-list.checked li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--rsf-gold);
    font-weight: 900;
    font-size: 1.1rem;
}

.detail-note {
    margin-top: 14px;
    color: var(--rsf-text-muted);
    font-size: 0.93rem;
    line-height: 1.55;
    font-style: italic;
}

/* ==========================================================
   PRICING FAQ — reuses your .faq-grid / .faq-item / .faq-question / .faq-answer from styles.css
   ========================================================== */
.pricing-faq {
    padding: 100px 0;
    background: #fff;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 968px) {
    .pricing-hero {
        padding: 110px 0 80px;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
        padding: 4px 0;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .tier-card.featured {
        transform: none;
    }

    .tier-card.featured:hover {
        transform: translateY(-4px);
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .pricing-hero {
        padding: 90px 0 70px;
    }

    .pricing-hero-pills {
        gap: 8px;
    }

    .pricing-pill {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .price-amount {
        font-size: 2.6rem;
    }

    .tier-card,
    .detail-card,
    .flow-card {
        padding: 28px 22px;
    }

    .payment-flow,
    .pricing-tiers,
    .class-details,
    .pricing-faq {
        padding: 70px 0;
    }
}
