/* web/static/marketing.css */

/* 
  MARKETING SITE LAYOUT
  Relies on style.css for colors/components.
  Strictly uses: --bg-color, --card-bg, --text-primary, --text-secondary, 
  --border-color, --accent-*, --shadow-solid.
*/

.marketing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Nav Overrides */
.marketing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    margin: 0;
    display: block;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Force Logo Left on Desktop (Pin Left, Links Right) */
/* Force Logo Left on Desktop (Pin Left, Links Right) */
/* Force Logo Left on Desktop (Pin Left, Links Right) */
@media (min-width: 769px) {
    .marketing-nav {
        display: flex;
        align-items: center;
        /* Ensure normal flow so auto margin works */
        justify-content: flex-start;

        /* Fix Clipping of 3D Buttons */
        overflow: visible !important;
        padding-bottom: 20px;
        /* Room for shadows/hover movement */
        z-index: 1000;
    }

    /* Ensure NO child elements clip content */
    .marketing-nav * {
        overflow: visible !important;
    }

    .logo {
        margin-right: auto;
    }

    .nav-links {
        overflow: visible;
        /* Ensure children can cast shadows */
    }

    /* --- DESKTOP 3D PILL STYLES --- */

    /* DESKTOP: make Blog button match the other nav links */
    .dropbtn {
        appearance: none;
        -webkit-appearance: none;
        border: none;
        background: transparent;
        padding: 0;
        /* let the nav link styles control spacing */
        margin: 0;
        font: inherit;
        color: inherit;
        line-height: inherit;
        cursor: pointer;
    }

    /* Ensure the Blog button inherits the exact same spacing as the other nav items */
    .nav-links a,
    .nav-links .dropbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        /* match whatever your desktop nav link padding is */
        border-radius: 999px;
        text-decoration: none;
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }

    /* Hover: Purple Pill + Shadow (3D effect) */
    /* Desktop: hover 3D pill effect for nav links + Blog button */
    .nav-links a:not(.btn-primary):not(.nav-cta),
    .nav-links .dropbtn {
        border: 1px solid transparent !important;
        box-shadow: none !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    .nav-links a:not(.btn-primary):not(.nav-cta):hover,
    .nav-links .dropbtn:hover {
        background: var(--accent-lavender) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-solid) !important;
        transform: translateY(-1px) !important;
        color: var(--text-primary) !important;
    }

    .nav-links a:not(.btn-primary):not(.nav-cta):active,
    .nav-links .dropbtn:active {
        transform: translateY(0) !important;
    }

    /* Ensure dropdown items do NOT get pill hover */
    .dropdown-content a:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Active/Pressed/Open State: Purple Pill + Shadow */
    /* Applied when: 
       - .active class added via JS (current page or open dropdown)
       - .dropdown.open .dropbtn (dropdown is toggled open)
    */
    .nav-links a.active,
    .dropbtn.active,
    .dropdown.active .dropbtn {
        background: var(--accent-lavender);
        border: 2px solid var(--border-color);
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 0.2);
        transform: translateY(0);
        /* Pressed state is lower than hover */
        color: var(--text-primary);
    }

    /* 2. Waitlist Button (Primary) */
    .nav-links .btn-primary {
        box-shadow: 4px 4px 0px 0px rgba(45, 52, 54, 0.2);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 2px solid var(--border-color);
    }

    .nav-links .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0px 0px rgba(45, 52, 54, 0.2);
    }

    .nav-links .btn-primary:active {
        transform: translateY(2px);
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 0.2);
    }

    /* --- DESKTOP DROPDOWN BEHAVIOR --- */
    /* Always start hidden */
    #marketing-nav-links .dropdown-content {
        display: none;
    }

    /* Click-to-open must win */
    #marketing-nav-links .dropdown.active .dropdown-content {
        display: block !important;
    }

    /* Press state: only while mouse is down */
    .marketing-nav .nav-links a:not(.btn-primary):active,
    .marketing-nav .nav-links .dropbtn:active {
        background: var(--accent-lavender);
        color: var(--text-primary);
        border-color: var(--border-color);
        transform: translateY(2px);
        box-shadow: none;
    }

    /* Prevent sticky focus after click (mouse) */
    .marketing-nav .nav-links a:focus,
    .marketing-nav .nav-links .dropbtn:focus {
        outline: none;
    }

    /* Keep keyboard focus styling */
    .marketing-nav .nav-links a:focus-visible,
    .marketing-nav .nav-links .dropbtn:focus-visible {
        outline: 2px solid var(--border-color);
        outline-offset: 3px;
    }
}



.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Mobile Navigation (Off-Canvas Drawer) */
@media (max-width: 768px) {
    .marketing-nav {
        padding: 10px 20px;
        /* Reduced padding for pill shape */
        position: relative;
        z-index: 1000;
        background: var(--bg-color);
        /* Ensure pill has background */
    }

    .hamburger {
        display: block;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 998;
        backdrop-filter: blur(2px);
    }

    body.menu-open .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer Container (The "Menu Page") */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        /* Default full width for very small screens or nice feel */
        max-width: 400px;
        /* Limit width on larger phones/tablets */
        height: 100vh;
        background: var(--bg-color);
        padding: 30px;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        gap: 0;
        /* Reset gap, using margins/padding for stack */
        align-items: center;
        /* Center items explicitly */
    }

    body.menu-open .nav-links {
        transform: translateX(0);
    }

    body.menu-open {
        overflow: hidden;
        /* Lock scroll */
    }

    /* Drawer Header - Absolute Layout for Perfect Centering */
    .nav-drawer-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
        position: relative;
        height: 60px;
        /* Increased height for touch target clearance */
        padding: 0 16px;
        width: 100%;
    }

    .nav-drawer-header .logo {
        font-size: 1.8rem;
        cursor: default;
        pointer-events: none;
        color: var(--text-primary);
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
        /* Flex item centering is handled by parent justify-content */
    }

    /* Spacer no longer needed in this layout */
    .nav-spacer {
        display: none;
    }

    /* Close Button - Absolutely Positioned */
    .nav-close-btn {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);

        /* App-style Modal Exit Button Styles */
        background: #EEE;
        color: var(--text-secondary);
        width: 32px;
        /* Reduced from 44px (~30%) */
        height: 32px;
        /* Reduced from 44px (~30%) */
        border-radius: 50%;
        border: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 1);
        transition: all 0.2s;

        /* Prevent distortion */
        flex: 0 0 auto;
        aspect-ratio: 1 / 1;
    }

    .nav-close-btn:hover {
        background: #DDD;
        transform: translateY(-50%) translateY(-2px);
        /* Maintain vertical center + hover effect */
        box-shadow: 3px 3px 0px 0px rgba(45, 52, 54, 1);
        color: var(--text-primary);
    }

    .nav-close-btn:active {
        transform: translateY(-50%) translateY(2px);
        box-shadow: 0px 0px 0px 0px rgba(45, 52, 54, 1);
    }

    .nav-close-btn svg {
        width: 16px;
        /* Reduced from 20px */
        height: 16px;
        /* Reduced from 20px */
        stroke-width: 2.5;
    }

    /* Menu Items */
    .nav-links a {
        font-size: 1.5rem;
        /* Increased size for mobile center look */
        font-weight: 700;
        color: var(--text-primary);
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        /* Separators for centered list */
        width: 100%;
        text-align: center;
        display: block;
        /* Ensure full width block */

        /* Reset spacing */
        margin-left: 0;
        border-radius: 0;
        background: transparent;
        border-top: none;
        border-left: none;
        border-right: none;
    }

    /* Active/Hover State */
    .nav-links a:active,
    .nav-links a.active {
        background: var(--accent-lavender);
        color: var(--text-primary);
    }

    /* Restore Waitlist Button Styles (Override generic link reset) */
    .nav-links a.btn-primary {
        margin-top: 30px;
        width: 100%;
        text-align: center;

        /* Restore Button Shape */
        border: 2px solid var(--border-color);
        border-radius: 50px;
        background: var(--accent-lavender);
        box-shadow: 4px 4px 0px 0px rgba(45, 52, 54, 0.2);
        padding: 15px 20px;
        display: inline-block;
        /* Or block with max-width if desired, but 100% requested? User said "Center-align all top-level menu items" */
        /* Let's keep it center aligned but maybe not full width background? 
           Actually, usually waitlist buttons are prominent. Let's make it match the center alignment.
        */
        max-width: 80%;
        /* Don't stretch button too wide? */
        margin-left: auto;
        margin-right: auto;
    }

    /* Restore Button Hover */
    .nav-links a.btn-primary:hover,
    .nav-links a.btn-primary:active,
    .nav-links a.btn-primary:focus {
        background: #D1C4F0;
        /* style.css hover */
        border: 2px solid var(--border-color);
        box-shadow: 6px 6px 0px 0px rgba(45, 52, 54, 0.2);
        transform: translateY(-2px);
        color: var(--text-primary);
    }

    /* Mobile Dropdown Handling inside Drawer - Consolidated below */

    .dropbtn {
        font-size: 1.5rem;
        /* Match links */
        font-weight: 700;
        /* Match links */
        padding: 15px 0;
        width: 100%;
        display: flex;
        justify-content: center;
        /* Center the text/icon */
        align-items: center;
        gap: 8px;
        /* Space for the arrow if we add one, or after pseudo */
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        text-align: center;
        border-radius: 0;
    }

    /* Remove specific active styles that look like pills if we want a clean list */
    .dropbtn:active,
    .dropdown.active .dropbtn {
        background: var(--card-bg-hover);
        /* Gentle hover state? or lavender */
        color: var(--text-primary);
    }

    .dropdown-content {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding-left: 0;
        /* Centered, so no indent needed */
        padding-bottom: 20px;
        margin-top: 0;
        width: 100%;
        background: #F9F9F9;
        /* Slight contrast for sub-menu? */
        text-align: center;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: none;
        /* No separators for sub-items? */
        color: var(--text-secondary);
        text-align: center;
    }

    /* Hide desktop-only elements if any */
}


/* Typography Overrides */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.5;
}

/* --- Blog Layout (Editorial) --- */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured Post (Full Width) */
.featured-post {
    grid-column: 1 / -1;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-solid);
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px 0px rgba(45, 52, 54, 0.2);
}

.blog-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-pill {
    background: var(--accent-yellow);
    /* padding: 4px 10px; */
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    padding: 6px 12px 7px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.blog-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.featured-post .blog-title {
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    .featured-post .blog-title {
        font-size: 1.5rem;
    }
}

.blog-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* --- Updates Layout (Timeline Cards) --- */

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
}

.update-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-m);
    padding: 25px;
    position: relative;
    border-left: 6px solid var(--accent-lavender);
    box-shadow: var(--shadow-solid);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.update-version {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: monospace;
    background: #F0F0F0;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.update-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.update-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Expandable Details */
.update-details {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.update-details summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
    outline: none;
}

.update-details summary:hover {
    color: var(--text-primary);
}

.details-content {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.update-image {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-top: 15px;
}

/* --- Footer Socials --- */

.marketing-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    padding-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-social {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 0.1);
}

.btn-social:hover {
    background: var(--accent-lavender);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px 0px rgba(45, 52, 54, 0.2);
    color: var(--text-primary);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow-solid);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-m);
    z-index: 100;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 10px 0;
}

/* Only show on hover for desktop */
@media (min-width: 769px) {
    #marketing-nav-links .dropdown:hover:not(.active) .dropdown-content {
        display: block;
    }
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0;
    border: none;
    border-radius: 0;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--accent-lavender);
    transform: none;
    box-shadow: none;
    color: var(--text-primary);
}

/* MOBILE MENU – normalize Blog dropdown trigger */
/* MOBILE MENU – Desktop Vibe Refinement */
@media (max-width: 768px) {

    /* Force all menu items to center and reset list styles */
    .marketing-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        /* Ensure no clipping */
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 40px;
        /* Extra space at bottom */
    }

    /* Target ALL menu items (links and dropdown trigger) when menu is open */
    body.menu-open .marketing-nav .nav-links a,
    body.menu-open .marketing-nav .nav-links .dropbtn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
        text-align: center;

        /* Typography - Match Desktop Links */
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1.1rem;
        line-height: 1.2;
        /* Fix line height */
        font-weight: 600;
        color: var(--text-secondary);
        text-decoration: none;

        /* Reset Box Model */
        box-sizing: border-box;
        /* Crucial for borders */
        padding: 14px 18px;
        /* Adjusted padding */
        margin: 0;
        border: 2px solid transparent;
        border-radius: 50px;
        background: transparent;
        border-bottom: none !important;

        /* Reset Button Defaults */
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: background 0.1s, color 0.1s, border-color 0.1s;
    }

    /* Make Blog button match other nav buttons exactly */
    .dropbtn {
        padding: 12px 16px;
        font-size: inherit;
        font-family: inherit;
        line-height: normal;
        min-height: auto;
        width: auto;
        border: none;
        background: none;
        box-shadow: none;
    }

    /* Active/Pressed State (Touch Feedback ONLY) 
       User Requirement: "On mobile tap... do NOT leave any .active/.selected class behind."
       So we only target :active (while pressed).
       REMOVED transform: scale() to prevent clipping.
    */
    body.menu-open .marketing-nav .nav-links a:active,
    body.menu-open .marketing-nav .nav-links .dropbtn:active {
        background: var(--accent-lavender);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        box-shadow: none;
        transform: none;
        /* Ensure no movement causes clipping */
    }

    /* REMOVE persistent active state for generic links */
    body.menu-open .marketing-nav .nav-links a.active:not(.btn-primary) {
        background: transparent;
        border-color: transparent;
        color: var(--text-secondary);
        box-shadow: none;
        transform: none;
    }

    /* "Join Waitlist" Button - ALWAYS a Pill */
    body.menu-open .marketing-nav .nav-links a.btn-primary {
        margin-top: 20px;
        background: var(--accent-lavender);
        border: none;
        color: var(--text-primary);
        box-shadow: none;
    }

    body.menu-open .marketing-nav .nav-links a.btn-primary:active {
        transform: translateY(2px);
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 0.2);
    }

    /* Dropdown Content - Opaque Pop-over */
    .dropdown {
        position: relative;
        /* Anchor for absolute child */
        width: 100%;
        display: flex;
        justify-content: center;
        /* Ensure z-index handling if needed */
    }

    .dropdown-content {
        position: absolute;
        /* Float over content */
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        /* bit smaller than full width */
        max-width: 280px;
        background: var(--card-bg);
        /* Opaque Card Background */
        border: 2px solid var(--border-color);
        border-radius: var(--radius-m);
        box-shadow: var(--shadow-solid);
        padding: 10px 0;
        z-index: 2000;
        /* Sit above everything */
        text-align: center;
        margin-top: 5px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Submenu links */
    .dropdown-content a {
        font-size: 1rem !important;
        padding: 12px 0 !important;
        font-weight: 500 !important;
        color: var(--text-secondary) !important;
        display: block;
    }

    .dropdown-content a:hover,
    .dropdown-content a:active {
        background: var(--accent-lavender);
        color: var(--text-primary) !important;
    }

    /* Fix clipping and mobile borders */
    #marketing-nav-links {
        overflow: visible !important;
        padding-bottom: 24px !important;
    }

    #marketing-nav-links a {
        overflow: visible !important;
    }

    #marketing-nav-links a.btn-primary {
        border: none !important;
    }

    /* stop any parent from clipping the pill borders */
    .marketing-nav,
    #marketing-nav-links {
        overflow: visible !important;
    }

    /* give the pressed state room so nothing gets cut off */
    #marketing-nav-links {
        padding-bottom: 40px !important;
    }

    /* the "pressed" effect is likely using transform and getting clipped */
    #marketing-nav-links a,
    #marketing-nav-links .dropbtn {
        box-sizing: border-box !important;
        transform: none !important;
    }

    /* keep the purple press, but don't move the element */
    #marketing-nav-links a:active,
    #marketing-nav-links .dropbtn:active {
        transform: none !important;
    }

    /* --- MOBILE DRAWER: normalize all menu items to clean pill buttons --- */
    #marketing-nav-links {
        overflow: visible !important;
        padding-bottom: 80px !important;
        /* room so shadows/borders never clip */
    }

    /* base style for all drawer links + dropdown button (no outline by default) */
    #marketing-nav-links>a,
    #marketing-nav-links .dropbtn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        margin: 0 auto 22px auto !important;

        padding: 10px 18px !important;
        /* only a little wider than text */
        line-height: 1.1 !important;

        font-family: inherit !important;
        font-size: 1.35rem !important;
        font-weight: 600 !important;

        color: var(--text-secondary) !important;
        background: transparent !important;

        border: none !important;
        border-radius: 999px !important;

        box-sizing: border-box !important;
        text-decoration: none !important;

        box-shadow: none !important;
    }

    /* remove any underline/divider effects that might still exist */
    #marketing-nav-links>a::before,
    #marketing-nav-links>a::after,
    #marketing-nav-links .dropbtn::before,
    #marketing-nav-links .dropbtn::after {
        content: none !important;
        display: none !important;
    }

    /* press state: purple pill with 3D shadow */
    #marketing-nav-links>a:active,
    #marketing-nav-links .dropbtn:active {
        background: var(--accent-lavender) !important;
        color: var(--text-primary) !important;
        border: 3px solid var(--text-primary) !important;
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 1) !important;
        transform: translateY(-1px) !important;
        /* Slight lift to match desktop "raised" feel */
    }

    /* Join Waitlist stays purple (no border) */
    /* Mobile drawer: Join Waitlist should be 3D like desktop */
    /* default (not pressed): soft shadow like desktop */
    #marketing-nav-links .btn-primary {
        box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18) !important;
        border: 2px solid transparent !important;
        /* no black border by default */
        transform: translate(0, 0) !important;
        transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease !important;
        background: var(--accent-lavender) !important;
        color: var(--text-primary) !important;
    }

    /* pressed state: show black border + deeper shadow + “pressed” movement */
    #marketing-nav-links .btn-primary:active {
        border-color: var(--border-color, #222) !important;
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35) !important;
        transform: translate(4px, 4px) !important;
    }

    /* keyboard focus (optional, keeps it consistent without forcing it “pressed”) */
    #marketing-nav-links .btn-primary:focus-visible {
        outline: none !important;
        border-color: var(--border-color, #222) !important;
    }

    /* dropdown list should be opaque and sit above everything */
    #marketing-nav-links .dropdown-content {
        background: var(--bg-color) !important;
        opacity: 1 !important;
        z-index: 9999 !important;
    }

    /* Mobile Changelog Header Fix */
    .changelog-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* keep left alignment like the design */
        gap: 8px !important;
    }

    .changelog-card-header .update-date,
    .changelog-card-header [class*="date"] {
        margin: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    /* --- Fix Mobile Blog Dropdown --- */
    /* 1. Ensure the container allows pills to expand and doesn't clip shadows */
    #marketing-nav-links .dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
        position: relative !important;
        margin-bottom: 22px !important;
        /* Space after Blog group */
    }

    /* 2. The Blog button itself (trigger) */
    /* Ensure it acts like the other buttons: centered, auto width, pill */
    #marketing-nav-links .dropdown .dropbtn {
        width: auto !important;
        margin: 0 !important;
        /* Container handles spacing */
        /* Inherits the base style from the #marketing-nav-links .dropbtn rule above */
        /* But let's reinforce it just in case */
        display: inline-flex !important;
        border-radius: 999px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 3. The Dropdown List Styling - RESTORED CARD CONTAINER */
    /* Container for the items */
    #marketing-nav-links .dropdown-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        /* JS toggles this to block */

        /* RESTORED CARD STYLING */
        width: 100% !important;
        max-width: 340px !important;
        /* Constrain width */
        margin: 10px auto 0 auto !important;
        /* Center and space from button */

        background: var(--card-bg) !important;
        border: 2px solid var(--border-color) !important;
        box-shadow: var(--shadow-solid) !important;
        border-radius: var(--radius-m) !important;

        padding: 20px !important;
        z-index: 2000 !important;
    }

    #marketing-nav-links .dropdown.active .dropdown-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* 4. The Dropdown Items (The actual links) -> styled as pills */
    #marketing-nav-links .dropdown-content a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: 180px !important;
        /* Consistent width for sub-items */
        margin: 0 !important;
        padding: 10px 20px !important;

        font-family: inherit !important;
        font-size: 1rem !important;
        /* Slightly smaller than main links */
        font-weight: 600 !important;
        color: var(--text-secondary) !important;

        background: var(--bg-color) !important;
        /* Opaque pill background */
        border: 2px solid transparent !important;
        /* Placeholder for layout stability */
        border-radius: 999px !important;
        text-decoration: none !important;
        box-shadow: none !important;

        /* Ensure no "cut off" borders */
        box-sizing: border-box !important;
        transform: translateZ(0) !important;
    }

    /* Active/Pressed State for Dropdown Items (Purple 3D Pill) */
    #marketing-nav-links .dropdown-content a:active {
        background: var(--accent-lavender) !important;
        color: var(--text-primary) !important;
        border: 2px solid var(--text-primary) !important;
        box-shadow: 2px 2px 0px 0px rgba(45, 52, 54, 1) !important;
        transform: translateY(-1px) !important;
    }
}

/* MOBILE: remove any divider/underline under Blog */

.dropbtn,
.nav-links a {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.dropbtn::after,
.nav-links a::after {
    content: none !important;
    display: none !important;
}

@media (min-width: 769px) {

    /* Join Waitlist — default (shaded but flat) */
    .nav-links .btn-primary,
    .nav-links .nav-cta {
        background: var(--accent-lavender) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Join Waitlist — hover (3D effect) */
    .nav-links .btn-primary:hover,
    .nav-links .nav-cta:hover {
        box-shadow: var(--shadow-solid) !important;
        transform: translateY(-1px) !important;
    }

    /* Join Waitlist — active (pressed) */
    .nav-links .btn-primary:active,
    .nav-links .nav-cta:active {
        transform: translateY(0) !important;
        box-shadow: var(--shadow-solid) !important;
    }
}

/* Waitlist Form Styling */
.waitlist-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.waitlist-form-group {
    flex: 1;
}

/* Waitlist Form Layout */
.name-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 769px) {
    .name-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    margin-bottom: 20px;
}

/* Waitlist Form Validation */
.req-asterisk {
    color: var(--text-secondary);
    margin-left: 4px;
    transition: color 0.2s ease;
}

.field.is-invalid .req-asterisk {
    /* Color variable for coral per request or use existing red variable if standard */
    /* User said: var(--accent-coral). If not defined, fallback to red */
    color: var(--accent-coral, #c0392b);
}