/* Custom Properties / Design Tokens */
:root {
    --bg-pure: #0f1016;
    /* Deep obsidian background */
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;

    /* Core Glass colors */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Colors derived from pricing image */
    --card-free-bg: rgba(255, 255, 255, 0.1);
    --card-indiv-bg: linear-gradient(135deg, rgba(121, 134, 203, 0.6), rgba(92, 107, 192, 0.6));
    --card-dept-bg: linear-gradient(135deg, rgba(163, 125, 184, 0.6), rgba(130, 90, 160, 0.6));

    --btn-yellow: #FFAA00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
    height: 100dvh;
    /* Mobile browser bottom bar safety */
    overflow: hidden;
    /* ABSOLUTELY NO SCROLLING */
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-pure);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Ambient glow */
.ambient-glow {
    position: absolute;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.glow-1 {
    top: -10vmax;
    left: -10vmax;
    background: #00E5FF;
}

.glow-2 {
    bottom: -10vmax;
    right: -10vmax;
    background: #9c27b0;
}

.app-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5vh 1.5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6vh;
    min-height: 4vh;
}

.logo {
    font-size: clamp(14px, 2.5vh, 24px);
    font-weight: 900;
}

.grid-layout {
    flex: 1;
    min-height: 0;
    /* Important for preventing flex children from exceeding bounds */
    display: grid;
    gap: 1.5vh 1.5vw;
    margin-top: 1vh;
    /* Desktop layout: Hero/Benefits top, Pricing bottom */
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: minmax(auto, 35%) minmax(0, 1fr);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2.5vh 2vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.benefits {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.pricing-wrapper {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    justify-content: space-between;
}

/* Typography scaling */
h1.headline {
    font-size: clamp(1.4rem, min(4.5vh, 4.5vw), 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5vh;
}

.subheadline {
    font-size: clamp(0.85rem, min(2.2vh, 2vw), 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3vh;
}

.cta-btn {
    align-self: flex-start;
    padding: 1.2vh 2vw;
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vh, 1.2rem);
    transition: transform 0.2s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Benefits */
.section-title {
    font-size: clamp(1.1rem, 3vh, 2rem);
    font-weight: 700;
    margin-bottom: 2vh;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vh 1vw;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: clamp(0.75rem, min(2vh, 2vw), 1.1rem);
}

/* Pricing Section */
.pricing-header {
    text-align: center;
    margin-bottom: auto;
    /* Pushes content down or centers based on space */
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}

.badge-payg {
    padding: 0.4vh 0.8vw;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: clamp(0.6rem, 1.5vh, 0.9rem);
    font-weight: 700;
}

.pricing-sub {
    font-size: clamp(0.7rem, min(1.8vh, 1.8vw), 1rem);
    color: var(--text-muted);
    margin-top: 1vh;
}

.pricing-cards {
    display: flex;
    gap: 1.5vw;
    flex: 1;
    min-height: 0;
    margin-top: 2vh;
}

.card {
    flex: 1;
    border-radius: 12px;
    padding: 2.5vh 1.5vw;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.free-card {
    background: var(--card-free-bg);
}

.individual-card {
    background: var(--card-indiv-bg);
    border: 2px solid var(--btn-yellow);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1);
}

.dept-card {
    background: var(--card-dept-bg);
}

.best-value {
    position: absolute;
    top: -1.2vh;
    left: 50%;
    transform: translateX(-50%);
    background: var(--btn-yellow);
    color: #000;
    padding: 0.3vh 1vw;
    border-radius: 20px;
    font-size: clamp(0.6rem, 1.4vh, 0.8rem);
    font-weight: 900;
    white-space: nowrap;
}

.card-head h3 {
    font-size: clamp(0.8rem, 2vh, 1.2rem);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.price {
    font-size: clamp(1.4rem, 4.5vh, 3rem);
    font-weight: 900;
    margin: 0.8vh 0;
}

.subtext {
    font-size: clamp(0.6rem, 1.6vh, 0.9rem);
    opacity: 0.8;
}

.card-body {
    flex: 1;
    margin-top: 2vh;
}

.card-body ul {
    list-style: none;
}

.card-body li {
    font-size: clamp(0.65rem, min(1.8vh, 1.8vw), 1rem);
    margin-bottom: 1.2vh;
    display: flex;
    gap: 0.5vw;
    align-items: flex-start;
}

.check {
    opacity: 0.8;
}

.check-bold {
    color: #00FF88;
    font-weight: 900;
    opacity: 1;
}

.bold {
    font-weight: 700;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.btn {
    width: 100%;
    padding: 1.2vh 0;
    border-radius: 8px;
    font-size: clamp(0.7rem, 1.8vh, 1rem);
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.02);
}

.btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.btn.yellow {
    background: var(--btn-yellow);
    color: #000;
    box-shadow: 0 4px 10px rgba(255, 170, 0, 0.3);
}

.btn.white {
    background: #fff;
    color: #000;
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.footer {
    height: 3vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: clamp(0.8rem, 1.2vh, 0.8rem);
    color: var(--text-muted);
}

/* MOBILE RESPONSIVE (Scrollable native feel for legibility) */
@media (max-width: 768px) {

    body,
    html {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .app-layout {
        height: auto;
        min-height: 100dvh;
        padding: 4vw;
    }

    .grid-layout {
        display: flex;
        flex-direction: column;
        gap: 4vw;
        margin-top: 2vw;
    }

    .glass-panel {
        padding: 6vw 5vw;
        border-radius: 16px;
    }

    /* Relaxed, highly readable text sizing */
    h1.headline {
        font-size: clamp(2rem, 9vw, 2.8rem);
        margin-bottom: 3vw;
    }

    .subheadline {
        font-size: 1.05rem;
        margin-bottom: 6vw;
        line-height: 1.5;
    }

    .cta-btn {
        padding: 4vw 6vw;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 4vw;
    }

    .benefits-grid {
        gap: 3vw;
        grid-template-columns: 1fr;
    }

    .benefit-item {
        font-size: 1.05rem;
    }

    .pricing-wrapper {
        padding: 6vw 5vw;
    }

    .pricing-header {
        margin-bottom: 5vw;
    }

    .badge-payg {
        padding: 1.5vw 3vw;
        font-size: 0.85rem;
        display: inline-block;
        margin-top: 1vw;
    }

    .pricing-sub {
        margin-top: 3vw;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Stack cards vertically to allow scroll and proper reading */
    .pricing-cards {
        flex-direction: column;
        gap: 5vw;
        margin-top: 2vw;
    }

    .card {
        padding: 6vw 5vw;
        border-radius: 16px;
    }

    .best-value {
        padding: 1vw 3vw;
        top: -2.5vw;
        font-size: 0.8rem;
    }

    .card-head h3 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .price {
        font-size: 3rem;
        margin: 2vw 0;
    }

    .subtext {
        font-size: 0.9rem;
    }

    .card-body {
        margin-top: 5vw;
    }

    .card-body li {
        gap: 3vw;
        margin-bottom: 3vw;
        font-size: 1rem;
    }

    .btn {
        padding: 4vw 0;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .card-actions {
        gap: 3vw;
        margin-top: 5vw;
    }

    .footer {
        height: auto;
        padding: 6vw 0;
        font-size: 0.85rem;
    }
}

/* Footer Nav Glow Links */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}