/**
 * GLAX-style mobile homepage
 * Top-right organic cyan waves · plan cards
 */

:root {
    --gx-ink: #1c1917;
    --gx-ink-soft: #78716c;
    --gx-bg: #f4efe6;
    --gx-bg-soft: #efe8db;
    --gx-surface: #fffaf3;
    --gx-purple-deep: #0f3d3a;
    --gx-purple: #115e59;
    --gx-purple-mid: #b8860b;
    --gx-blue: #115e59;
    --gx-blue-light: #e8d5a3;
    --gx-shadow: 0 16px 36px rgba(28, 25, 23, 0.08);
    --gx-shell: 430px;
    --gx-font: "DM Sans", "Manrope", sans-serif;
    --gx-urdu: "Noto Nastaliq Urdu", serif;
}

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

html {
    scroll-behavior: smooth;
    margin: 0;
    background: #e8dfcf;
}

body.gx-app {
    margin: 0;
    font-family: var(--gx-font);
    color: var(--gx-ink);
    background: #e8dfcf;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.gx-shell {
    position: relative;
    width: 100%;
    max-width: var(--gx-shell);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--gx-bg);
    box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.06), 0 28px 70px rgba(28, 25, 23, 0.1);
    overflow: hidden;
}

/* ─── Nav ─── */
.gx-nav {
    position: relative;
    z-index: 30;
    padding: max(16px, env(safe-area-inset-top)) 20px 6px;
}

.gx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gx-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 80, 100, 0.1);
    flex-shrink: 0;
}

.gx-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-brand__fallback {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gx-purple);
}

.gx-brand__name {
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gx-ink);
}

/* ─── Hero + banner slider ─── */
.gx-hero {
    position: relative;
    z-index: 5;
    min-height: auto;
    padding: 8px 14px 8px;
    overflow: visible;
}

.gx-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    min-height: 150px;
    background: #0f3d3a;
    box-shadow: 0 10px 22px rgba(28, 25, 23, 0.12);
    border: 1px solid #e8d5a3;
}

.gx-banner__track { position: absolute; inset: 0; }

.gx-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-banner__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.gx-banner__slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.gx-banner__dots {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gx-banner__dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
}

.gx-banner__dot.is-active {
    width: 18px;
    background: #b8860b;
}

.gx-banner__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 16px;
    color: #fff;
    background: linear-gradient(160deg, #115e59, #0f3d3a);
}

.gx-banner__brand {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.gx-banner__tag {
    margin: 6px 0 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8d5a3;
}

.gx-cta,
.gx-authbar {
    display: grid;
    gap: 10px;
    margin: 12px auto 0;
    width: 100%;
    padding: 14px 14px 16px;
    border-radius: 16px;
    border: 1.5px solid #f0d56a;
    background: linear-gradient(180deg, #ffd6e0 0%, #fb7185 18%, #e11d48 58%, #9f1239 100%);
    box-shadow:
        0 0 0 1px #5c3d0c,
        0 12px 24px rgba(190, 24, 93, 0.3);
    overflow: visible;
}
.gx-authbar__kicker {
    margin: 0 0 2px;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(80, 0, 30, 0.4);
}
.gx-authbar .gx-jewel,
.gx-cta .gx-jewel {
    width: 100%;
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--gx-font);
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.18s ease;
    white-space: nowrap;
}

.gx-btn:active { transform: scale(0.97); }

.gx-btn--ghost {
    min-width: 108px;
    background: #fff;
    color: #0c3d4a;
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.18), 0 12px 26px rgba(8, 80, 100, 0.12);
}

.gx-btn--primary {
    min-width: 120px;
    color: #fff;
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 55%, #06b6d4 100%);
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.38);
}

/* ─── Static waves — top-right only (~40vh) ─── */
.gx-waves {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 40vh;
    max-height: 280px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.gx-blob {
    position: absolute;
    display: block;
}

.gx-blob--a {
    top: -20%;
    right: -10%;
    width: 95%;
    height: 85%;
    border-radius: 62% 38% 48% 52% / 42% 58% 42% 58%;
    background: linear-gradient(145deg, #a5f3fc 0%, #67e8f9 45%, #22d3ee 100%);
    opacity: 0.55;
    box-shadow: -18px 22px 50px rgba(8, 145, 178, 0.18);
}

.gx-blob--b {
    top: -8%;
    right: -18%;
    width: 100%;
    height: 95%;
    border-radius: 58% 42% 55% 45% / 48% 52% 38% 62%;
    background: linear-gradient(160deg, #67e8f9 0%, #06b6d4 42%, #0e7490 100%);
    box-shadow: -22px 28px 55px rgba(8, 145, 178, 0.28);
}

.gx-blob--c {
    top: 8%;
    right: -22%;
    width: 92%;
    height: 90%;
    border-radius: 52% 48% 42% 58% / 55% 40% 60% 45%;
    background: linear-gradient(170deg, #22d3ee 0%, #0891b2 50%, #155e75 100%);
    box-shadow: -16px 20px 40px rgba(8, 90, 110, 0.3);
}

.gx-blob--d {
    top: 22%;
    right: -26%;
    width: 85%;
    height: 88%;
    border-radius: 48% 52% 38% 62% / 50% 45% 55% 50%;
    background: linear-gradient(175deg, #0891b2 0%, #155e75 55%, #083344 100%);
    box-shadow: -12px 16px 32px rgba(8, 80, 100, 0.35);
}

/* ─── Plans section shell (card styles in /css/gx-plans.css) ─── */
.gx-plans {
    position: relative;
    z-index: 8;
    padding: 8px 20px 32px;
    background: transparent;
    overflow: visible;
}

.gx-footer {
    padding: 10px 20px max(24px, env(safe-area-inset-bottom));
    text-align: center;
    background: transparent;
}

.gx-footer p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78716c;
}

@media (max-width: 360px) {
    .gx-brand__name { font-size: 0.66rem; }
    .gx-waves { width: 62%; max-height: 240px; }
}

@media (min-width: 431px) {
    body.gx-app { padding: 24px 0; }
    .gx-shell {
        border-radius: 28px;
        min-height: calc(100dvh - 48px);
    }
}
