/* =========================================================
   INNOVEXA WEBSITE PACKAGES
========================================================= */

.innovexa-packages {
    --primary: #1769ff;
    --primary-dark: #0c3fb8;
    --navy: #101d49;
    --text: #53617d;
    --light-blue: #f4f8ff;
    --border: #e4ebf7;
    width: 100%;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 5% 10%, rgba(23,105,255,.08), transparent 25%),
        radial-gradient(circle at 95% 90%, rgba(101,76,255,.08), transparent 25%),
        #ffffff;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.innovexa-packages *,
.innovexa-packages *::before,
.innovexa-packages *::after {
    box-sizing: border-box;
}

.innovexa-container {
    width: min(1380px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.packages-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.packages-badge {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 50px;

    background: #edf4ff;
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    margin-bottom: 18px;
}

.packages-header h2 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    font-weight: 800;
}

.packages-header h2 span {
    color: var(--primary);
}

.packages-header p {
    max-width: 700px;
    margin: 18px auto 0;

    color: var(--text);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   PACKAGE GRID
========================================================= */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: start;
}


/* =========================================================
   PACKAGE CARD
========================================================= */

.package-card {
    position: relative;

    background: rgba(255,255,255,.98);

    border: 1px solid var(--border);
    border-radius: 25px;

    padding: 32px 28px 30px;

    box-shadow:
        0 15px 45px rgba(25,55,110,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(25,55,110,.15);
}


/* TOP BORDER */

.package-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #1769ff,
        #5b45ff
    );
}


/* =========================================================
   POPULAR
========================================================= */

.professional-package {
    border: 2px solid #1769ff;

    box-shadow:
        0 25px 70px rgba(23,105,255,.18);

    transform: translateY(-12px);
}

.professional-package:hover {
    transform: translateY(-18px);
}

.popular-badge {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 8px 13px;

    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #1769ff,
        #654cff
    );

    color: white;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}


/* =========================================================
   PACKAGE TOP
========================================================= */

.package-top {
    text-align: center;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);
}

.package-icon {
    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 29px;

    background: #edf5ff;
}

.professional-icon {
    background: #e9f2ff;
}

.premium-icon {
    background: #f0ecff;
}

.package-label {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.starter-label {
    color: #1769ff;
    background: #edf4ff;
}

.professional-label {
    color: #1769ff;
    background: #e5f0ff;
}

.premium-label {
    color: #694cff;
    background: #f0ebff;
}

.package-top h3 {
    margin: 0;

    color: var(--navy);

    font-size: 25px;
    line-height: 1.25;

    font-weight: 800;
}

.package-description {
    min-height: 65px;

    margin: 13px 0 18px;

    color: var(--text);

    font-size: 14px;
    line-height: 1.6;
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-price small {
    color: #7a879d;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 3px;
}

.package-price strong {
    color: var(--navy);

    font-size: 35px;
    line-height: 1;

    font-weight: 900;
}


/* =========================================================
   BUTTON
========================================================= */

.package-btn {
    display: flex;

    width: 100%;

    margin: 24px 0 28px;

    padding: 14px 18px;

    justify-content: center;
    align-items: center;
    gap: 12px;

    border-radius: 12px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition: .3s ease;
}

.package-btn span {
    font-size: 20px;
    line-height: 1;
}

.starter-btn {
    color: var(--primary);
    background: #edf4ff;
}

.starter-btn:hover {
    color: white;
    background: var(--primary);
}

.professional-btn {
    color: white;

    background:
        linear-gradient(
            135deg,
            #1769ff,
            #604cff
        );

    box-shadow:
        0 10px 25px rgba(23,105,255,.25);
}

.professional-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(23,105,255,.35);
}

.premium-btn {
    color: white;

    background:
        linear-gradient(
            135deg,
            #604cff,
            #8b4dff
        );
}

.premium-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   FEATURES
========================================================= */

.package-features {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.feature-group {
    padding-bottom: 20px;

    border-bottom: 1px solid #edf0f6;
}

.feature-group:last-child {
    border-bottom: none;
}

.feature-title {
    margin-bottom: 12px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 800;
}

.feature-group ul {
    list-style: none;

    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

.feature-group li {
    position: relative;

    padding-left: 25px;

    color: #596780;

    font-size: 13px;
    line-height: 1.5;
}

.feature-group li::before {
    content: "?";

    position: absolute;

    left: 0;
    top: 1px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf3ff;
    color: var(--primary);

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   SHOW MORE
========================================================= */

.show-more-btn {
    display: none;

    width: 100%;

    margin-top: 15px;

    padding: 12px;

    border: 1px solid #dce6f6;
    border-radius: 10px;

    background: #f7faff;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.show-more-btn span {
    margin-left: 5px;
}


/* =========================================================
   BOTTOM NOTE
========================================================= */

.packages-bottom-note {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 35px;
    padding: 22px 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f3f8ff,
            #f8f5ff
        );

    border: 1px solid #e0e8f6;
}

.note-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: white;

    font-size: 22px;
}

.packages-bottom-note div:nth-child(2) {
    flex: 1;
}

.packages-bottom-note strong {
    display: block;

    color: var(--navy);

    font-size: 16px;

    margin-bottom: 4px;
}

.packages-bottom-note p {
    margin: 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.5;
}

.packages-bottom-note > a {
    flex-shrink: 0;

    padding: 12px 20px;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: .3s ease;
}

.packages-bottom-note > a:hover {
    background: var(--primary-dark);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .innovexa-packages {
        padding: 70px 18px;
    }

    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .professional-package {
        transform: none;
    }

    .professional-package:hover {
        transform: translateY(-8px);
    }

    .premium-package {
        grid-column: 1 / -1;

        max-width: 620px;

        width: 100%;

        margin: 0 auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .innovexa-packages {
        padding: 55px 14px;
    }

    .packages-header {
        margin-bottom: 35px;
    }

    .packages-header h2 {
        font-size: 34px;
    }

    .packages-header p {
        font-size: 14px;
    }

    .packages-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .premium-package {
        grid-column: auto;

        max-width: none;
    }

    .package-card {
        padding: 27px 20px 25px;

        border-radius: 20px;
    }

    .package-top h3 {
        font-size: 22px;
    }

    .package-description {
        min-height: auto;

        font-size: 13px;
    }

    .package-price strong {
        font-size: 31px;
    }

    /*
       Mobile feature collapse
    */

    .package-features {
        max-height: 430px;

        overflow: hidden;

        position: relative;

        transition:
            max-height .5s ease;
    }

    .package-features::after {
        content: "";

        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        height: 80px;

        pointer-events: none;

        background:
            linear-gradient(
                to bottom,
                rgba(255,255,255,0),
                rgba(255,255,255,1)
            );
    }

    .package-card.expanded .package-features {
        max-height: 5000px;
    }

    .package-card.expanded .package-features::after {
        display: none;
    }

    .show-more-btn {
        display: block;
    }

    .package-card.expanded .show-more-btn span {
        transform: rotate(180deg);
        display: inline-block;
    }

    .packages-bottom-note {
        flex-direction: column;

        align-items: flex-start;

        padding: 22px;

        text-align: left;
    }

    .packages-bottom-note > a {
        width: 100%;

        text-align: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .innovexa-packages {
        padding-left: 10px;
        padding-right: 10px;
    }

    .packages-header h2 {
        font-size: 29px;
    }

    .packages-badge {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .package-card {
        padding: 23px 16px;
    }

    .package-icon {
        width: 58px;
        height: 58px;

        font-size: 25px;
    }

    .package-price strong {
        font-size: 28px;
    }

    .feature-group li {
        font-size: 12px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.package-btn:focus-visible,
.show-more-btn:focus-visible,
.packages-bottom-note a:focus-visible {
    outline: 3px solid rgba(23,105,255,.35);
    outline-offset: 3px;
}

/* =========================================================
   INNOVEXA WEBSITE PACKAGES
========================================================= */