/* ==========================================================
   WorldSpace Broadband
   Modern Plans Page
========================================================== */


/* ==========================================================
   Page
========================================================== */

.plans-page {
    min-height: 100vh;
    background: #f5f9ff;
    color: #0f172a;
}


/* ==========================================================
   Hero
========================================================== */

.plans-page__hero {
    position: relative;
    overflow: hidden;

    padding: 42px 0 48px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eef6ff 52%,
            #e7f1ff 100%
        );
}

.plans-page__hero-pattern {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .55;

    background-image:
        radial-gradient(
            circle at 85% 30%,
            rgba(0, 86, 179, .10) 0,
            rgba(0, 86, 179, .10) 2px,
            transparent 3px
        );

    background-size: 24px 24px;
}

.plans-page__hero-content {
    position: relative;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.plans-page__eyebrow {
    display: inline-flex;

    align-items: center;

    padding: 8px 18px;

    border-radius: 999px;

    background: #e6f0ff;

    color: #0056b3;

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .12em;
}

.plans-page__title {
    margin: 14px 0 10px;

    color: #0b1f3a;

    font-size: clamp(
        1.9rem,
        3.2vw,
        2.7rem
    );

    line-height: 1.08;

    font-weight: 800;
}

.plans-page__subtitle {
    margin: 0;

    color: #64748b;

    font-size: .98rem;

    line-height: 1.6;
}


/* ==========================================================
   Main
========================================================== */

.plans-page__main {
    padding: 34px 0 70px;
}


/* ==========================================================
   Speed Navigation
========================================================== */

.plans-page__speed-nav {
    position: relative;
    z-index: 5;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 4px;

    max-width: 1120px;

    margin: 0 auto 30px;

    padding: 7px;

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

    border: 1px solid #dce8f6;

    border-radius: 999px;

    box-shadow:
        0 12px 35px rgba(15,23,42,.07);

    backdrop-filter: blur(12px);
}

.plans-page__speed-link {
    display: flex;

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

    gap: 8px;

    min-height: 48px;

    padding: 0 12px;

    border-radius: 999px;

    color: #0f172a;

    font-size: .9rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.plans-page__speed-link:hover {
    color: #0056b3;

    background: #eef5ff;
}

.plans-page__speed-link.is-active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0878ee,
            #0056b3
        );

    box-shadow:
        0 8px 20px rgba(0,86,179,.25);
}


/* ==========================================================
   Speed Icon
========================================================== */

.plans-page__speed-icon {
    position: relative;

    display: inline-flex;

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

    width: 20px;
    height: 20px;

    border: 2px solid currentColor;

    border-radius: 50%;

    font-size: 0;
}

.plans-page__speed-icon::before {
    content: '';

    position: absolute;

    width: 7px;
    height: 2px;

    background: currentColor;

    transform:
        rotate(-45deg)
        translate(1px,-1px);
}

.plans-page__speed-icon::after {
    content: '';

    position: absolute;

    bottom: 2px;

    width: 10px;
    height: 2px;

    background: currentColor;

    border-radius: 999px;
}


/* ==========================================================
   Groups
========================================================== */

.plans-page__groups {
    display: flex;

    flex-direction: column;

    gap: 10px;

    max-width: 1120px;

    margin: 0 auto;
}


/* ==========================================================
   Group
========================================================== */

.plans-page__group {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dce7f5;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.045);

    transition:
        box-shadow .3s ease,
        border-color .3s ease;
}

.plans-page__group:hover {
    border-color: #bfd4ed;

    box-shadow:
        0 12px 32px rgba(15,23,42,.07);
}

.plans-page__group.is-featured {
    border-left: 4px solid #0878ee;
}


/* ==========================================================
   Remove Native Details Marker
========================================================== */

.plans-page__group summary {
    list-style: none;
}

.plans-page__group summary::-webkit-details-marker {
    display: none;
}


/* ==========================================================
   Group Header
========================================================== */

.plans-page__group-header {
    display: grid;

    grid-template-columns:
        250px
        1fr
        30px;

    align-items: center;

    gap: 20px;

    min-height: 92px;

    padding: 18px 22px;

    cursor: pointer;
}


/* ==========================================================
   Group Title
========================================================== */

.plans-page__group-title {
    display: flex;

    align-items: center;

    gap: 14px;
}

.plans-page__router-icon {
    position: relative;

    display: flex;

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

    width: 54px;
    height: 54px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eaf3ff;

    color: #0878ee;
}

.plans-page__router-icon::before,
.plans-page__router-icon::after {
    content: '';

    position: absolute;

    border: 2px solid #0878ee;

    border-radius: 50%;

    border-left-color: transparent;
    border-right-color: transparent;
}

.plans-page__router-icon::before {
    width: 28px;
    height: 18px;
}

.plans-page__router-icon::after {
    width: 18px;
    height: 10px;
}

.plans-page__router-icon span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #0878ee;
}

.plans-page__group-title h2 {
    margin: 0 0 5px;

    color: #0b1f3a;

    font-size: 1.35rem;

    line-height: 1.2;

    font-weight: 800;
}

.plans-page__group-title > div > span {
    color: #64748b;

    font-size: .78rem;
}

.plans-page__group-title b {
    margin-right: 4px;

    color: #16a34a;
}


/* ==========================================================
   Summary Prices
========================================================== */

.plans-page__summary-prices {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    align-items: center;

    min-width: 0;
}

.plans-page__summary-price {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 55px;

    padding: 0 14px;

    border-left: 1px solid #e5edf7;

    text-align: center;
}

.plans-page__summary-price small {
    margin-bottom: 5px;

    color: #475569;

    font-size: .74rem;
}

.plans-page__summary-price strong {
    color: #0b1f3a;

    font-size: 1.12rem;

    font-weight: 800;
}


/* ==========================================================
   Chevron
========================================================== */

.plans-page__chevron {
    display: flex;

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

    width: 28px;
    height: 28px;

    color: #0056b3;

    font-size: 1.15rem;

    transition:
        transform .3s ease;
}

.plans-page__group[open]
.plans-page__chevron {
    transform: rotate(180deg);
}


/* ==========================================================
   Detailed Plans
========================================================== */

.plans-page__details {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;

    border-top: 1px solid #e4ecf5;

    background: #f9fbfe;
}


/* ==========================================================
   Individual Plan
========================================================== */

.plans-page__plan {
    display: flex;

    flex-direction: column;

    min-height: 220px;

    padding: 24px 20px;

    border-right: 1px solid #e2eaf4;
}

.plans-page__plan:last-child {
    border-right: 0;
}

.plans-page__plan-duration {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #334155;

    font-size: .88rem;

    font-weight: 700;
}

.plans-page__calendar {
    color: #0878ee;

    font-size: 1.1rem;
}

.plans-page__plan-price {
    margin-bottom: 3px;

    color: #0056b3;

    font-size: 2rem;

    line-height: 1;

    font-weight: 800;
}

.plans-page__plan-validity {
    margin-bottom: 16px;

    color: #94a3b8;

    font-size: .72rem;
}


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

.plans-page__features {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin: 0 0 20px;

    padding: 0;

    list-style: none;
}

.plans-page__features li {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #475569;

    font-size: .78rem;
}

.plans-page__features li span {
    display: inline-flex;

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

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #eaf8ef;

    color: #16a34a;

    font-size: .65rem;

    font-weight: 800;
}


/* ==========================================================
   Select Button
========================================================== */

.plans-page__select {
    display: flex;

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

    gap: 9px;

    width: 100%;

    min-height: 42px;

    margin-top: auto;

    padding: 0 14px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0878ee,
            #0056b3
        );

    color: #ffffff;

    font-size: .82rem;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 7px 18px rgba(0,86,179,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.plans-page__select:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,86,179,.28);
}

.plans-page__select span {
    transition:
        transform .25s ease;
}

.plans-page__select:hover span {
    transform: translateX(4px);
}


/* ==========================================================
   Benefits
========================================================== */

.plans-page__benefits {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    max-width: 1120px;

    margin: 26px auto 0;

    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid #dce7f5;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.045);
}

.plans-page__benefit {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 22px;

    border-right: 1px solid #e2eaf4;
}

.plans-page__benefit:last-child {
    border-right: 0;
}

.plans-page__benefit-icon {
    display: flex;

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

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    font-size: 1.15rem;

    font-weight: 800;
}

.plans-page__benefit-icon--green {
    background: #ecfdf3;
    color: #16a34a;
}

.plans-page__benefit-icon--blue {
    background: #eaf3ff;
    color: #0878ee;
}

.plans-page__benefit-icon--purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.plans-page__benefit-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.plans-page__benefit strong {
    display: block;

    margin-bottom: 3px;

    color: #0f172a;

    font-size: .85rem;
}

.plans-page__benefit span {
    display: block;

    color: #64748b;

    font-size: .7rem;

    line-height: 1.4;
}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 1000px) {

    .plans-page__speed-nav {
        grid-template-columns:
            repeat(3, 1fr);

        border-radius: 20px;
    }

    .plans-page__group-header {
        grid-template-columns:
            210px
            1fr
            25px;

        gap: 10px;
    }

    .plans-page__summary-price {
        padding: 0 7px;
    }

    .plans-page__summary-price strong {
        font-size: .95rem;
    }

    .plans-page__summary-price small {
        font-size: .65rem;
    }

    .plans-page__benefits {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .plans-page__benefit {
        border-right: 0;
    }

}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 720px) {

    .plans-page__hero {
        padding: 55px 0 48px;
    }

    .plans-page__title {
        font-size: 1.9rem;
    }

    .plans-page__subtitle {
        font-size: .92rem;
    }

    .plans-page__main {
        padding-top: 24px;
    }

    .plans-page__speed-nav {
        grid-template-columns:
            repeat(2, 1fr);

        border-radius: 18px;

        margin-bottom: 20px;
    }

    .plans-page__speed-link {
        min-height: 44px;

        font-size: .8rem;
    }

    .plans-page__group-header {
        display: grid;

        grid-template-columns:
            1fr
            28px;

        gap: 12px;

        padding: 18px;
    }

    .plans-page__summary-prices {
        display: none;
    }

    .plans-page__group-title h2 {
        font-size: 1.15rem;
    }

    .plans-page__router-icon {
        width: 46px;
        height: 46px;
    }

    .plans-page__details {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .plans-page__plan {
        min-height: auto;

        padding: 20px;

        border-right: 0;

        border-bottom: 1px solid #e2eaf4;
    }

    .plans-page__plan:last-child {
        border-bottom: 0;
    }

    .plans-page__plan-price {
        font-size: 1.8rem;
    }

    .plans-page__benefits {
        grid-template-columns: 1fr;

        padding: 12px;
    }

    .plans-page__benefit {
        padding: 13px;

        border-bottom: 1px solid #e2eaf4;
    }

    .plans-page__benefit:last-child {
        border-bottom: 0;
    }

}


/* ==========================================================
   Small Mobile
========================================================== */

@media (max-width: 420px) {

    .plans-page__hero {
        padding: 48px 0 42px;
    }

    .plans-page__title {
        font-size: 1.9rem;
    }

    .plans-page__speed-nav {
        grid-template-columns: 1fr 1fr;
    }

    .plans-page__speed-link {
        padding: 0 7px;

        font-size: .75rem;
    }

}
