/* ====================================================================
   Brainflood — shared nav/header/dev-banner/mobile-menu/waitlist styles
   Extracted from index.html so other pages (e.g. /personality/) can
   render the same header without duplicating inline CSS.
   ====================================================================

   Z-INDEX SCALE (site-wide reference; keep in sync when adding layers):

      0-9     in-flow elements (default)
      10-49   in-flow decoration (badges, hover halos)
      50      site-header (top nav + dev banner)
      60-79   nav dropdowns (anchored under header)
      80-99   tooltips, popovers (above nav, below modals)
      100     non-modal in-page overlays (back-to-top FAB, retake FAB)
      9000    cookie consent banner (below modals, above page)
      9999    cookie consent modal (when user opens settings)
      10000   blocking modals: waitlist, mobile menu drawer

   Anything that needs to sit above a blocking modal probably shouldn't
   exist. If it has to (e.g. an in-modal tooltip), use the modal's
   z-index + 1, not a higher tier.
   ==================================================================== */

/* Top fixed stack: site-header wraps dev-banner + navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
.site-navbar {
    position: relative;
    /* Always-on translucent backdrop so the nav remains legible over any
       page (blog, library, legal). The .nav-blur class still ramps it up
       further on scroll. Uses the theme's --navbar-bg if defined, falling
       back to a darkest-base + 0.7 alpha. */
    background: var(--navbar-bg, rgba(var(--color-base-darkest-rgb, 7, 11, 26), 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.04);
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

/* Body padding-top hint: pages can use --banner-h + nav height. */
:root { --banner-h: 32px; }

/* Hero pad for pages whose first section is a full-bleed hero that should
   start *under* the fixed nav (homepage, players). */
.hero-pad { padding-top: calc(var(--banner-h, 32px) + 4rem); }
@media (min-width: 768px) { .hero-pad { padding-top: calc(var(--banner-h, 32px) + 5rem); } }

/* Pages whose first content does NOT clear the fixed header on its own
   (library articles, legal pages, references, blog) reserve space via
   `body { padding-top }` declared in their own stylesheet so the rule
   doesn't double-pad pages that already self-pad (modes/, venues/, tools/,
   personality/, trivia-archetype/, earnings/). The recommended formula is
   `calc(var(--banner-h, 32px) + 4rem)` mobile / `+ 5rem` desktop, which
   matches `.hero-pad` exactly. */

/* ====== Dev banner ====== */
.dev-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(124, 58, 237, 0.18);
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.18);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    border-bottom-color: rgba(var(--accent-rgb, 124, 58, 237), 0.3);
    font-size: 0.72rem;
    color: #cbd5e1;
    color: var(--text-primary, #cbd5e1);
    text-align: center;
    line-height: 1.3;
    min-height: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dev-banner strong { color: var(--accent-light, #c4b5fd); }
.dev-banner svg { flex-shrink: 0; color: var(--accent-light, #c4b5fd); }
.dev-banner-link {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: var(--accent-light, #c4b5fd);
    font-weight: 700; text-decoration: underline;
    text-decoration-color: rgba(196, 181, 253, 0.45);
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.dev-banner-link:hover, .dev-banner-link:focus-visible {
    color: var(--text-primary, #fff);
    text-decoration-color: var(--text-primary, #fff);
    outline: none;
}
.dev-banner-full { display: none; }
.dev-banner-short { display: inline; }
@media (min-width: 640px) {
    .dev-banner { font-size: 0.8rem; padding: 0.5rem 1rem; }
    .dev-banner-full { display: inline; }
    .dev-banner-short { display: none; }
}

/* ====== Navbar ====== */
.nav-blur {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: var(--navbar-bg, rgba(var(--color-base-darkest-rgb, 7, 11, 26), 0.92));
    border-bottom-color: rgba(var(--glass-overlay-color, 255, 255, 255), 0.08);
}
.site-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .site-nav-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-nav-inner { padding: 0 2rem; } }

.site-nav-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 4rem;
    gap: 1.5rem;
}
@media (min-width: 768px) { .site-nav-row { height: 5rem; gap: 2rem; } }
@media (min-width: 1280px) { .site-nav-row { gap: 2.5rem; } }

.brand-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.brand-img { width: 2rem; height: 2rem; display: block; }
.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--text-primary, #fff);
    transition: color 0.15s ease;
}
.brand-name .accent { color: var(--accent, #7c3aed); transition: color 0.15s ease; }
.brand-link:hover .brand-name { color: var(--accent, #7c3aed); }
.brand-link:hover .brand-name .accent { color: var(--text-primary, #fff); }

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; gap: 0.35rem; } }
@media (min-width: 1180px) { .nav-links { gap: 0.65rem; } }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-trigger[aria-expanded="true"] {
    color: var(--text-primary, #fff);
    background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.06);
}
.nav-link:focus-visible { outline: 2px solid var(--accent, #7c3aed); outline-offset: 2px; }
.nav-link.accent { color: var(--color-pink, #f472b6); }
.nav-link.accent:hover, .nav-link.accent:focus-visible { color: var(--text-primary, #fff); background: rgba(var(--color-pink-rgb, 244, 114, 182), 0.15); }

/* Caret on dropdown trigger */
.nav-trigger-caret {
    transition: transform 0.2s ease;
    opacity: 0.7;
}
.nav-trigger[aria-expanded="true"] .nav-trigger-caret { transform: rotate(180deg); opacity: 1; }

/* Pill badges next to nav link text (e.g. Blog [New]) */
.nav-link-with-pill { gap: 0.5rem; }
.nav-link-pill {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(var(--color-pink-rgb, 244, 114, 182), 0.15);
    color: var(--color-pink, #f472b6);
    border: 1px solid rgba(var(--color-pink-rgb, 244, 114, 182), 0.3);
    line-height: 1;
}
.nav-link-pill-cyan {
    background: rgba(34, 211, 238, 0.15);
    color: var(--color-cyan, #22d3ee);
    border-color: rgba(34, 211, 238, 0.3);
}

/* ====== Dropdowns (mega-menu + mid) ====== */
.nav-item-dropdown { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 280px;
    padding: 1rem;
    background: var(--bg-secondary, #0c1229);
    background: linear-gradient(180deg, var(--bg-secondary, #0c1229) 0%, var(--bg-tertiary, #111738) 100%);
    border: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.08);
    border-radius: 14px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--accent-rgb, 124, 58, 237), 0.06),
        0 0 40px rgba(var(--accent-rgb, 124, 58, 237), 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
    z-index: 60;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-mega { min-width: min(640px, 92vw); padding: 1.25rem; }
.nav-dropdown-mega.nav-dropdown-mega-wide { min-width: min(720px, 92vw); }
.nav-dropdown-mid { min-width: 320px; }

/* Right-align dropdowns that would overflow viewport */
.nav-item-dropdown:nth-last-child(-n+3) .nav-dropdown { left: auto; right: 0; }

.nav-dropdown-headline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light, #a78bfa);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.1);
    border: 1px solid rgba(var(--accent-rgb, 124, 58, 237), 0.2);
    margin-bottom: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-headline:hover {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.2);
    color: var(--text-primary, #fff);
}

.nav-dropdown-grid {
    display: grid;
    gap: 0.4rem;
}
.nav-dropdown-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nav-dropdown-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary, #e2e8f0);
    transition: background 0.15s ease, transform 0.15s ease;
}
.nav-dropdown-card:hover,
.nav-dropdown-card:focus-visible {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.1);
    outline: none;
}
.nav-dropdown-card:hover .nav-dropdown-title { color: var(--accent-light, #a78bfa); }
.nav-dropdown-emoji {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
    border: 1px solid rgba(var(--accent-rgb, 124, 58, 237), 0.18);
    border-radius: 8px;
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji Mozilla', 'EmojiOne Color', 'Android Emoji', 'Segoe UI Symbol', sans-serif;
    font-variant-emoji: emoji;
    line-height: 1;
}
.nav-dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.nav-dropdown-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    transition: color 0.15s ease;
    line-height: 1.2;
}
.nav-dropdown-desc {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.35;
}
.nav-dropdown-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--color-cyan, #22d3ee);
    border: 1px solid rgba(34, 211, 238, 0.3);
    line-height: 1;
}

/* Library 3-column layout */
.nav-dropdown-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.nav-dropdown-col { display: flex; flex-direction: column; gap: 0.05rem; }
.nav-dropdown-col-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #7889a0);
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.15rem;
}
.nav-dropdown-link {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.35;
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.1);
    color: var(--accent-light, #a78bfa);
    outline: none;
}

/* Right cluster ====== */
.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.nav-cta-row {
    display: none;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
@media (min-width: 1024px) { .nav-cta-row { display: flex; } }
.nav-right { flex-shrink: 0; }
.brand-link { flex-shrink: 0; }
.nav-cta-secondary {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.nav-cta-secondary:hover { color: var(--text-primary, #fff); }
.nav-cta-primary {
    background: linear-gradient(90deg, var(--accent, #7c3aed), var(--accent-light, #a855f7), var(--accent, #7c3aed));
    background-size: 200% auto;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}
.nav-cta-primary:hover {
    box-shadow: 0 8px 24px rgba(var(--accent-rgb, 124, 58, 237), 0.35);
    animation: nav-shimmer 2s linear infinite;
}
@keyframes nav-shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

.nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none; border: 0;
    color: var(--text-secondary, #94a3b8);
    margin-right: -0.25rem;
    cursor: pointer;
    transition: color 0.15s ease;
}
.nav-mobile-toggle:hover { color: var(--text-primary, #fff); }
.nav-mobile-toggle:focus-visible {
    outline: 2px solid var(--accent, #7c3aed);
    outline-offset: 2px;
    border-radius: 6px;
}
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-toggle svg { width: 1.5rem; height: 1.5rem; }

/* ====== Mobile drawer ====== */
.mobile-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 70;
}
.mobile-backdrop.open { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background-color: var(--bg-secondary, #0c1229);
    background-image: linear-gradient(180deg, rgba(var(--accent-rgb, 124, 58, 237), 0.1), transparent 45%);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    z-index: 80;
    display: flex; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
    will-change: transform;
}
.mobile-menu.open { transform: translate3d(0, 0, 0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.08);
    flex-shrink: 0;
}
.mobile-menu-header .brand-img { width: 2rem; height: 2rem; }
.mobile-menu-header .brand-name { font-size: 1.125rem; }
.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none; border: 0;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: color 0.15s ease;
}
.mobile-menu-close:hover { color: var(--text-primary, #fff); }
.mobile-menu-close:focus-visible {
    outline: 2px solid var(--accent, #7c3aed);
    outline-offset: 2px;
    border-radius: 6px;
}
.mobile-menu-close svg { width: 1.5rem; height: 1.5rem; }

/* Skip-to-content link — visible only on focus, for keyboard users */
.skip-link {
    position: absolute;
    top: 0; left: 0;
    background: var(--accent, #7c3aed);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-110%);
    transition: transform 0.15s ease;
    z-index: 100;
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.mobile-menu-nav {
    padding: 0.5rem 0.75rem;
    flex: 1;
}
.mobile-link {
    display: block;
    padding: 0.875rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 500;
    color: var(--text-primary, #e2e8f0);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s, color 0.15s;
}
.mobile-link:hover, .mobile-link:active {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.15);
    color: var(--accent-light, #a78bfa);
}
.mobile-menu-theme {
    padding: 0.75rem 1.25rem 0.5rem;
    border-top: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.06);
}
.mobile-menu-theme-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #7889a0);
    margin-bottom: 0.6rem;
}
.mobile-menu-cta {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.06);
    display: flex; flex-direction: column;
    gap: 0.625rem;
    flex-shrink: 0;
}
.mobile-cta-secondary {
    display: block; text-align: center;
    font-size: 0.95rem; font-weight: 500;
    color: var(--text-primary, #e2e8f0);
    text-decoration: none;
    border: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.14);
    border-radius: 9999px;
    padding: 0.85rem 1rem;
    transition: background 0.15s, border-color 0.15s;
}
.mobile-cta-secondary:hover {
    background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.04);
    border-color: rgba(var(--accent-rgb, 124, 58, 237), 0.4);
}
.mobile-cta-primary {
    display: block; text-align: center;
    font-size: 0.95rem; font-weight: 600;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--accent, #7c3aed), var(--accent-light, #a78bfa));
    border-radius: 9999px;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(var(--accent-rgb, 124, 58, 237), 0.35);
    transition: box-shadow 0.2s ease;
}
.mobile-cta-primary:hover { box-shadow: 0 8px 28px rgba(var(--accent-rgb, 124, 58, 237), 0.55); }

/* ====== Waitlist modal ====== */
.waitlist-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 1rem;
}
.waitlist-overlay.active { display: flex; }
.waitlist-modal {
    position: relative; max-width: 440px; width: 100%;
    background: var(--bg-secondary, #0c1229);
    border: 1px solid rgba(var(--glass-overlay-color, 255,255,255), 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px rgba(var(--accent-rgb, 124,58,237), 0.1);
    transform: scale(0.95) translateY(10px); opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
@media (min-width: 640px) {
    .waitlist-overlay { padding: 1.5rem; }
    .waitlist-modal { padding: 2.5rem 2rem 2rem; }
}
.waitlist-overlay.active .waitlist-modal { transform: scale(1) translateY(0); opacity: 1; }
.waitlist-close {
    position: absolute; top: 0.875rem; right: 0.875rem;
    background: none; border: none;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    padding: 0.25rem; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.waitlist-close:hover { color: #fff; background: rgba(255,255,255,0.05); }
.waitlist-badge {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent, #7c3aed), var(--color-secondary, #22d3ee));
    padding: 0.3rem 1rem; border-radius: 9999px;
    margin-bottom: 1.25rem;
}
.waitlist-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.waitlist-body {
    font-size: 0.9rem; line-height: 1.6;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.75rem;
}
.waitlist-body strong { color: var(--text-primary, #fff); }
.waitlist-form {
    display: flex; flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem; margin-bottom: 0.75rem;
}
@media (min-width: 480px) { .waitlist-form { flex-direction: row; } }
.waitlist-input {
    flex: 1; min-width: 0;
    padding: 0.75rem 1rem; border-radius: 8px;
    border: 1px solid rgba(var(--glass-overlay-color, 255, 255, 255), 0.12);
    background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.05);
    color: var(--text-primary, #fff);
    font-size: 16px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: var(--text-muted, #475569); }
.waitlist-input:focus { border-color: var(--accent, #7c3aed); }
.waitlist-submit {
    padding: 0.75rem 1.25rem; border-radius: 8px; border: none;
    background: var(--accent, #7c3aed);
    color: #fff;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
    width: 100%;
}
@media (min-width: 480px) {
    .waitlist-submit { width: auto; }
    .waitlist-input { font-size: 0.9rem; }
}
.waitlist-submit:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb, 124,58,237), 0.3);
}
.waitlist-note { font-size: 0.7rem; color: var(--text-muted, #475569); }
.waitlist-success { display: none; }
.waitlist-success.show { display: block; }
.waitlist-form-wrap.submitted .waitlist-form { display: none; }
.waitlist-form-wrap.submitted .waitlist-success { display: block; }

/* ====== Mobile drawer — collapsible sections ====== */
.mobile-section {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.1rem;
}
.mobile-section[open] {
    background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.03);
}
.mobile-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    cursor: pointer;
    list-style: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s, color 0.15s;
}
.mobile-section-summary::-webkit-details-marker { display: none; }
.mobile-section-summary:hover {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
    color: var(--accent-light, #a78bfa);
}
.mobile-section-caret {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.7;
    color: var(--text-muted, #94a3b8);
}
.mobile-section[open] .mobile-section-caret { transform: rotate(180deg); }
.mobile-sublink {
    display: block;
    padding: 0.6rem 1rem 0.6rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    border-radius: 0.4rem;
    transition: background-color 0.15s, color 0.15s;
}
.mobile-sublink:hover, .mobile-sublink:active {
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.12);
    color: var(--accent-light, #a78bfa);
}
.mobile-sublink-bold {
    color: var(--accent-light, #a78bfa);
    font-weight: 600;
}
.mobile-sublink .emoji {
    display: inline-block;
    margin-right: 0.4rem;
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji Mozilla', 'EmojiOne Color', 'Android Emoji', 'Segoe UI Symbol', sans-serif;
    font-variant-emoji: emoji;
}

/* Pill badge for mobile-link (Blog [New]) */
.mobile-link-pill {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(var(--color-pink-rgb, 244, 114, 182), 0.15);
    color: var(--color-pink, #f472b6);
    border: 1px solid rgba(var(--color-pink-rgb, 244, 114, 182), 0.3);
    vertical-align: middle;
    line-height: 1;
}
.mobile-link-accent { color: var(--color-pink, #f472b6); }
.mobile-link-accent:hover { color: var(--text-primary, #fff); }

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
    .nav-dropdown,
    .nav-trigger-caret,
    .mobile-section-caret,
    .nav-cta-primary,
    .mobile-menu,
    .mobile-backdrop,
    .waitlist-modal,
    .waitlist-overlay,
    .nav-link,
    .nav-link:hover,
    .nav-dropdown-card,
    .nav-trigger-caret { transition: none !important; animation: none !important; }
}
