/* =========================================================
   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(310px, 1fr)
        auto
        minmax(430px, 1fr);

    align-items: center;

    gap: 24px;

    padding: 0 8px;

    box-sizing: border-box;
}


/* SEARCH */

.home-search {
    justify-self: start;

    width: min(310px, 100%);
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border:
        1px solid rgba(182, 85, 255, .28);

    border-radius: 10px;

    background:
        rgba(8, 4, 17, .68);
}

.home-search svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    fill: none;

    stroke:
        rgba(255, 255, 255, .54);

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: #fff;

    font: inherit;
    font-size: 15px;
}

.home-search input::placeholder {
    color:
        rgba(255, 255, 255, .44);
}


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

.home-brand {
    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;

    filter:
        drop-shadow(
            0 0 20px
            rgba(148, 57, 255, .22)
        );
}


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

.home-nav {
    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;
}

.home-nav a.is-current {
    color: #fff;

    border-color:
        rgba(183, 76, 255, .42);

    background:
        linear-gradient(
            135deg,
            rgba(126, 35, 209, .30),
            rgba(181, 65, 255, .20)
        );

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .04),
        0 0 14px
            rgba(153, 53, 255, .08);
}


/* =========================================================
   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:
        0 0 18px
        var(--glow);
}

.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: hidden;
    }
}


/* =========================================================
   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-row: 1;
    }

    .home-nav {
        grid-row: 2;

        justify-self: center;
    }

    .home-search {
        grid-row: 3;

        justify-self: center;

        width:
            min(
                520px,
                100%
            );
    }
}


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

@media (max-width: 700px) {

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

        padding-top: 8px;
    }

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

    .home-nav {
        width: 100%;

        display: grid;

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

        gap: 6px;
    }

    .home-nav a,
    .home-nav button {
        width: 100%;

        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;
    }
}
