/**
 * Pricing Module 1: Hero Section with Pricing Tiers
 *
 * Figma Node: 306-748
 *
 * Layout: Centered header (title + subtitle + all plans) + 3 pricing tier cards + CTA banner
 * Container: 1071px max-width, 224px horizontal padding, 140px vertical padding
 * Background: Pink-to-blue gradient (6 colors)
 * Typography: Avenir Next
 */

/* ==========================================================================
   Section Container & Layout
   ========================================================================== */

.workjam-pricing-hero {
    width: 100%;
    padding: 64px;
    /* Gradient background set via inline style from ACF */
}

.workjam-pricing-hero__container {
    max-width: 1071px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 29px;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.workjam-pricing-hero__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.workjam-pricing-hero__title {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: normal;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

.workjam-pricing-hero__subtitle {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

.workjam-pricing-hero__all-plans-title {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   All Plans Include - Horizontal Layout
   ========================================================================== */

.workjam-pricing-hero__all-plans-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.workjam-pricing-hero__all-plans-feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

.workjam-pricing-hero__all-plans-feature span {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #FFFFFF;
    white-space: nowrap;
}

.workjam-pricing-hero__checkmark {
    flex-shrink: 0;
    display: block;
}

/* ==========================================================================
   Pricing Tiers Grid
   ========================================================================== */

.workjam-pricing-hero__tiers {
    display: flex;
    gap: 24px;
    width: 100%;
}

.workjam-pricing-hero__tier-wrapper {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ==========================================================================
   Tier Card Header
   ========================================================================== */

.workjam-pricing-hero__tier-header {
    background-color: #E9EBF3;
    padding: 12px 24px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.workjam-pricing-hero__tier-name {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
    margin: 0;
}

/* ==========================================================================
   Tier Card Body
   ========================================================================== */

.workjam-pricing-hero__tier-body {
    background-color: #FFFFFF;
    padding: 12px 24px 24px 24px;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.workjam-pricing-hero__tier-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   Price Section (Price + Billing Side-by-Side)
   ========================================================================== */

.workjam-pricing-hero__price-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.workjam-pricing-hero__tier-price {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: normal;
    color: #121C66;
    margin: 0;
}

.workjam-pricing-hero__tier-billing {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workjam-pricing-hero__tier-billing-period {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
}

.workjam-pricing-hero__tier-billing-cycle {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
    text-align: center;
    width: 117px;
}

/* ==========================================================================
   User Count
   ========================================================================== */

.workjam-pricing-hero__tier-users {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
    margin: 0;
}

/* ==========================================================================
   Divider Line
   ========================================================================== */

.workjam-pricing-hero__tier-divider {
    width: 100%;
    height: 1px;
    border: none;
    background-color: rgba(43, 56, 143, 0.10);
    margin: 0;
}

/* ==========================================================================
   Tier Features
   ========================================================================== */

.workjam-pricing-hero__tier-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workjam-pricing-hero__tier-feature {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.workjam-pricing-hero__tier-feature span {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
    flex: 1;
}

/* ==========================================================================
   Tier CTA Button
   ========================================================================== */

.workjam-pricing-hero__tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background-color: #121C66;
    color: #FFFFFF;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    text-decoration: none;
    border-radius: 500px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 24px;
}

.workjam-pricing-hero__tier-cta:hover {
    background: #0F1A5A;
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(18, 28, 102, 0.25);
    color: #FFFFFF;
}

.workjam-pricing-hero__tier-cta:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    border-radius: 500px;
    color: #FFFFFF;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */

.workjam-pricing-hero__banner {
    padding: 24px;
    border-radius: 20px;
    /* Gradient background set via inline style from ACF */
}

.workjam-pricing-hero__banner-container {
    max-width: 998px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.workjam-pricing-hero__banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workjam-pricing-hero__banner-title {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: normal;
    color: #121C66;
    margin: 0;
}

.workjam-pricing-hero__banner-subtitle {
    font-family: 'Avenir Next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #121C66;
    margin: 0;
    max-width: 778px;
}

.workjam-pricing-hero__banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background-color: #121C66;
    color: #FFFFFF;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    text-decoration: none;
    border-radius: 100px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.workjam-pricing-hero__banner-cta:hover {
    background: #0F1A5A;
    transform: translateY(-1px);
    box-shadow: 0px 6px 20px rgba(18, 28, 102, 0.25);
    color: #FFFFFF;
}

.workjam-pricing-hero__banner-cta:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    border-radius: 100px;
    color: #FFFFFF;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* 1024px - Desktop/Tablet */
@media (max-width: 1024px) {
    .workjam-pricing-hero {
        padding: 56px;
    }

    .workjam-pricing-hero__container {
        gap: 24px;
    }

    .workjam-pricing-hero__title {
        font-size: 40px;
    }

    .workjam-pricing-hero__tier-header {
        padding: 10px 20px;
    }

    .workjam-pricing-hero__tier-body {
        padding: 10px 20px 20px 20px;
    }

    .workjam-pricing-hero__tier-price {
        font-size: 40px;
    }

    .workjam-pricing-hero__banner {
        padding: 24px 80px;
    }

    .workjam-pricing-hero__banner-title {
        font-size: 32px;
    }
}

/* 900px - Mid-size (Fix price section overflow) */
@media (max-width: 900px) {
    .workjam-pricing-hero__price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .workjam-pricing-hero__tier-billing {
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }

    .workjam-pricing-hero__tier-billing-cycle {
        width: auto;
    }
}

/* 768px - Tablet Portrait (Stack tiers) */
@media (max-width: 768px) {
    .workjam-pricing-hero {
        padding: 48px;
    }

    .workjam-pricing-hero__tiers {
        flex-direction: column;
    }

    .workjam-pricing-hero__tier-wrapper {
        flex: 1 0 auto;
    }

    .workjam-pricing-hero__title {
        font-size: 36px;
    }

    .workjam-pricing-hero__all-plans-features {
        flex-direction: column;
        gap: 8px;
    }

    .workjam-pricing-hero__price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .workjam-pricing-hero__banner-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .workjam-pricing-hero__banner-cta {
        width: 100%;
    }

    .workjam-pricing-hero__banner-title {
        font-size: 28px;
    }
}

/* 600px - Mobile */
@media (max-width: 600px) {
    .workjam-pricing-hero {
        padding: 40px;
    }

    .workjam-pricing-hero__container {
        gap: 20px;
    }

    .workjam-pricing-hero__header {
        gap: 10px;
    }

    .workjam-pricing-hero__title {
        font-size: 32px;
    }

    .workjam-pricing-hero__tier-header {
        padding: 10px 16px;
    }

    .workjam-pricing-hero__tier-body {
        padding: 10px 16px 16px 16px;
    }

    .workjam-pricing-hero__tier-content {
        gap: 20px;
    }

    .workjam-pricing-hero__tier-price {
        font-size: 36px;
    }

    .workjam-pricing-hero__tier-cta {
        margin-top: 20px;
    }

    .workjam-pricing-hero__banner {
        padding: 20px 24px;
    }

    .workjam-pricing-hero__banner-title {
        font-size: 24px;
    }
}

/* 400px - Small Mobile */
@media (max-width: 400px) {
    .workjam-pricing-hero {
        padding: 32px;
    }

    .workjam-pricing-hero__title {
        font-size: 28px;
    }

    .workjam-pricing-hero__tier-price {
        font-size: 32px;
    }

    .workjam-pricing-hero__banner-title {
        font-size: 22px;
    }
}
