/* =========================================================
   MOB MEDIA — HOME / PLANS

   Search | centered logo | navigation
   Full-height plan cards with balanced internal layout.
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.home-page {
    --home-width:
        min(
            1780px,
            calc(100vw - 48px)
        );

    --site-footer-rail-left: 50%;
    --site-footer-rail-right: auto;
    --site-footer-rail-width: var(--home-width);
    --site-footer-rail-transform: translateX(-50%);

    margin: 0;

    min-width: 320px;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 14% 12%,
            rgba(118, 38, 247, .10),
            transparent 36rem
        ),
        radial-gradient(
            circle at 87% 11%,
            rgba(255, 125, 35, .045),
            transparent 30rem
        ),
        #050309;

    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.4;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   PAGE

   Header gets natural height.
   Plans consume remaining available height.
   ========================================================= */

.home-shell {
    width: var(--home-width);

    margin: 0 auto;

    padding: 8px 0 10px;

    flex: 1 1 auto;
    min-height: 0;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr);

    gap: 10px;

    box-sizing: border-box;
}


/* =========================================================
   SITE BAR
   ========================================================= */

.home-sitebar {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 24px;

    padding: 0 8px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
   ========================================================= */

.home-brand {
    grid-column: 2;

    justify-self: center;

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

    line-height: 0;
}

.home-brand img {
    display: block;

    width:
        clamp(
            300px,
            20vw,
            370px
        );

    height: auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.home-nav {
    grid-column: 3;

    justify-self: end;

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

    gap: 8px;

    white-space: nowrap;
}

.home-nav form {
    margin: 0;
}

.home-nav a,
.home-nav button {
    min-height: 42px;

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

    padding: 0 14px;

    border:
        1px solid transparent;

    border-radius: 9px;

    background: transparent;

    color:
        rgba(255, 255, 255, .82);

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
}

.home-nav button {
    cursor: pointer;
}

.home-nav a:hover,
.home-nav a:focus-visible,
.home-nav button:hover,
.home-nav button:focus-visible {
    color: #fff;

    background:
        rgba(183, 76, 255, .07);

    outline: 0;
}

/* =========================================================
   PLANS
   ========================================================= */

.plans-grid {
    width: 100%;
    min-height: 0;
    height: 100%;

    display: grid;

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

    align-items: center;

    gap: 16px;
}


/* =========================================================
   CARDS
   ========================================================= */

.plan-card {
    --accent: #a855f7;
    --price: #b55cff;

    min-width: 0;
    height: auto;

    padding:
        18px
        20px
        16px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1.5px solid var(--accent);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            var(--panel-top),
            var(--panel-bottom)
        );

    box-shadow:
        0 0 24px var(--glow),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.plan-card[hidden] {
    display: none;
}


/* =========================================================
   CARD COLORS
   ========================================================= */

.plan-card.purple {
    --accent: #a855f7;
    --price: #b55cff;

    --panel-top:
        rgba(57, 22, 74, .92);

    --panel-bottom:
        rgba(27, 12, 37, .97);

    --glow:
        rgba(168, 85, 247, .15);
}

.plan-card.cyan {
    --accent: #28d2ff;
    --price: #28d2ff;

    --panel-top:
        rgba(9, 58, 71, .94);

    --panel-bottom:
        rgba(5, 31, 39, .98);

    --glow:
        rgba(40, 210, 255, .15);
}

.plan-card.pink {
    --accent: #ef4bd9;
    --price: #ef4bd9;

    --panel-top:
        rgba(69, 18, 59, .94);

    --panel-bottom:
        rgba(36, 10, 32, .98);

    --glow:
        rgba(239, 75, 217, .15);
}

.plan-card.gold {
    --accent: #ffcc24;
    --price: #ffcc24;

    --panel-top:
        rgba(62, 45, 5, .94);

    --panel-bottom:
        rgba(31, 23, 4, .98);

    --glow:
        rgba(255, 204, 36, .14);
}


/* =========================================================
   CARD HEADING
   ========================================================= */

.term {
    margin: 0;

    color: #fff;

    font-size:
        clamp(
            30px,
            2vw,
            36px
        );

    font-weight: 900;
    line-height: 1;

    letter-spacing: -.035em;

    text-transform: uppercase;
}

.tag {
    min-height: 14px;

    margin-top: 3px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.starting {
    margin-top: 7px;

    color:
        rgba(255, 255, 255, .74);

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

.big {
    margin:
        -2px
        0
        12px;

    color: var(--price);

    font-size:
        clamp(
            50px,
            3.5vw,
            62px
        );

    font-weight: 900;
    line-height: 1;

    letter-spacing: -.045em;

    text-align: center;

    text-shadow:
        0 0 20px
        var(--glow);
}


/* =========================================================
   CONNECTION OPTIONS
   ========================================================= */

.options {
    width: 100%;

    display: grid;

    gap: 8px;
}

.option {
    min-height: 43px;

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

    gap: 12px;

    padding:
        0
        14px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 10px;

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

    color: #fff;

    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

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

    border-color:
        var(--accent);

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

    box-shadow: none;
}

.option:focus-visible {
    outline:
        2px solid
        var(--accent);

    outline-offset: 2px;
}

.option .left {
    font-size: 14px;
    font-weight: 750;
}

.option .right {
    color: var(--price);

    font-size: 18px;
    font-weight: 850;
}


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

.features {
    width: 100%;

    margin-top:
        clamp(
            28px,
            4vh,
            44px
        );

    padding-top: 13px;

    display: grid;

    gap: 5px;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);

    color:
        rgba(255, 255, 255, .80);

    font-size: 12px;
    line-height: 1.4;
}

.feature {
    position: relative;

    padding-left: 18px;
}

.feature::before {
    content: "✓";

    position: absolute;

    top: 0;
    left: 0;

    color: var(--accent);

    font-weight: 900;
}

.mobplay {
    font-size: 11px;

    letter-spacing: -.01em;
}


/* =========================================================
   NORMAL DESKTOP
   ========================================================= */

@media (min-width: 1351px) and (min-height: 700px) {

    body.home-page {
        height: 100dvh;
        min-height: 0;

        overflow-y: auto;
    }
}


/* =========================================================
   SHORT DESKTOP
   Let content scroll instead of crushing cards.
   ========================================================= */

@media (min-width: 1351px) and (max-height: 699px) {

    body.home-page {
        overflow-y: auto;
    }

    .home-shell {
        min-height: 690px;
    }
}


/* =========================================================
   TWO COLUMN
   ========================================================= */

@media (max-width: 1350px) {

    body.home-page {
        overflow-y: auto;
    }

    .home-shell {
        display: block;
    }

    .plans-grid {
        margin-top: 12px;

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

    .plan-card {
        height: auto;
        min-height: 510px;
    }
}


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

@media (max-width: 1000px) {

    .home-shell {
        width:
            calc(100% - 24px);
    }

    .home-sitebar {
        grid-template-columns: 1fr;

        gap: 12px;

        padding-bottom: 14px;
    }

    .home-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .home-nav {
        grid-column: 1;
        grid-row: 2;

        justify-self: center;
    }


}


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

@media (max-width: 700px) {

    .home-shell {
        width:
            calc(100% - 16px);

        padding-top: 8px;
    }

    .home-brand img {
        width:
            min(
                235px,
                76vw
            );
    }

    .home-nav {
        width: min(360px, 100%);

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        justify-self: center;
    }


    .home-nav a,
    .home-nav button {
        width: 100%;
        min-height: 44px;

        font-size: 14px;
    }


    .home-nav form {
        width: 100%;
    }


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

        gap: 12px;
    }

    .plan-card {
        height: auto;
        min-height: 0;

        padding:
            18px
            16px;

        display: block;
    }

    .term {
        font-size: 30px;
    }

    .big {
        font-size: 52px;
    }

    .options {
        margin-top: 10px;
    }

    .option {
        min-height: 46px;
    }

    .option .left {
        font-size: 15px;
    }

    .option .right {
        font-size: 18px;
    }

    .features {
        margin-top: 14px;

        font-size: 12px;
    }

    .mobplay {
        font-size: 12px;
    }
}


/* =========================================================
   INCLUDED WITH EVERY PLAN

   One canonical lower-home section.
   Six items on desktop.
   Three + three on mobile.
   No animation, transition, filter, or delayed rendering.
   ========================================================= */

.home-features {
    width: 100%;

    margin: 28px auto 0;
    padding: 18px 15px;

    box-sizing: border-box;

    border:
        1px solid rgba(140, 42, 183, .95);

    border-radius: 16px;

    background:
        linear-gradient(
            90deg,
            #230a35,
            #110d20 52%,
            #260a30
        );

    box-shadow:
        0 0 18px rgba(158, 42, 255, .22);
}


.home-features h2 {
    margin: 0 0 17px;

    color: #ceb6d9;

    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.2;

    text-align: center;
    text-transform: uppercase;
}


.home-features-grid {
    display: grid;

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


.home-feature {
    min-width: 0;
    min-height: 72px;

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

    gap: 7px;

    padding: 4px 10px;

    border-right:
        1px solid rgba(255, 255, 255, .16);

    color: #fff;

    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;

    text-align: center;
}


.home-feature:last-child {
    border-right: 0;
}


.home-feature:nth-child(1) {
    color: #d13dff;
}


.home-feature:nth-child(2) {
    color: #ed3dc8;
}


.home-feature:nth-child(3) {
    color: #17d8fa;
}


.home-feature:nth-child(4) {
    color: #ffd324;
}


.home-feature:nth-child(5) {
    color: #d13dff;
}


.home-feature:nth-child(6) {
    color: #17d8fa;
}


.home-feature svg {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.home-feature span {
    color: #fff;
}


.home-feature-benefits {
    margin: 18px 0 0;
    padding: 16px 12px 2px;

    border-top:
        1px solid rgba(255, 255, 255, .13);

    color: #e6dcec;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .025em;

    text-align: center;

    word-spacing: .22em;
}


.home-benefit-mobile-break {
    display: none;
}


/* =========================================================
   LOWER HOME • DESKTOP
   ========================================================= */

@media (min-width: 1351px) {

    .home-shell {
        grid-template-rows:
            auto
            auto
            auto;

        align-content: start;
    }


    .plans-grid {
        height: auto;

        margin-top: 62px;

        align-items: stretch;
    }


    .home-features {
        margin-top: 20px;
    }

}


/* =========================================================
   LOWER HOME • TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .home-features-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .home-feature {
        border-right: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, .11);
    }


    .home-feature:nth-child(-n + 3) {
        border-bottom:
            1px solid rgba(255, 255, 255, .11);
    }


    .home-feature:nth-child(n + 4) {
        border-bottom: 0;
    }


}


/* =========================================================
   LOWER HOME • MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-features {
        margin-top: 12px;

        padding:
            15px
            8px;
    }


    .home-features h2 {
        margin-bottom: 13px;

        font-size: 11px;
    }


    .home-feature {
        min-height: 76px;

        padding:
            6px
            5px;

        font-size: 11px;
    }


    .home-feature svg {
        width: 29px;
        height: 29px;

        flex-basis: 29px;
    }


    .home-feature-benefits {
        margin-top: 14px;
        padding:
            14px
            8px
            2px;

        font-size: 12px;
        line-height: 1.75;
        letter-spacing: .015em;
        word-spacing: normal;
    }


    .home-benefit-mobile-break {
        display: block;
    }


    .home-benefit-separator {
        display: none;
    }

}

/* Homepage-only sizing: preserve the shared events/news layouts. */
.home-page:not(.events-page):not(.customer-news-page) .home-shell { row-gap:0; }
.home-page:not(.events-page):not(.customer-news-page) .plans-grid { margin-top:0; }
@media(min-width:1351px) {
    body.home-page:not(.events-page):not(.customer-news-page) { height:auto; min-height:100dvh; overflow-y:auto; }
    .home-page:not(.events-page):not(.customer-news-page) .home-shell { flex:0 0 auto; grid-template-rows:auto auto; }
    .home-page:not(.events-page):not(.customer-news-page) .plans-grid { height:auto; }
    .home-page:not(.events-page):not(.customer-news-page) .home-features { margin-top:18px; }
}
@media(min-width:1351px) and (max-height:1050px) {
    .home-page:not(.events-page):not(.customer-news-page) .home-features { padding:9px 15px; }
    .home-page:not(.events-page):not(.customer-news-page) .home-features h2 { margin-bottom:12px; }
    .home-page:not(.events-page):not(.customer-news-page) .home-feature { min-height:68px; }
}
@media(min-width:1351px) and (max-height:900px) {
    .home-page:not(.events-page):not(.customer-news-page) .home-shell { padding-bottom:10px; }
    .home-page:not(.events-page):not(.customer-news-page) .plan-card { padding:14px 18px 12px; }
    .home-page:not(.events-page):not(.customer-news-page) .options { gap:6px; }
    .home-page:not(.events-page):not(.customer-news-page) .option { min-height:36px; }
    .home-page:not(.events-page):not(.customer-news-page) .home-features { padding:8px 15px; }
    .home-page:not(.events-page):not(.customer-news-page) .home-features h2 { margin-bottom:10px; }
    .home-page:not(.events-page):not(.customer-news-page) .home-feature { min-height:56px; }
    .home-page:not(.events-page):not(.customer-news-page) .site-footer { padding:10px 20px 6px; }
}
