/* --- 1. CORE VARIABLES (RESTORED) --- */
:root {
    --gold: #bb9845;
    --gold-light: #edd785;
    --gold-pale: #fff4cd;
    --black: #000000;
}

/* --- 2. BASE STYLES --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    font-family: 'Inter', sans-serif;
    color: var(--gold-pale);
    overflow-x: hidden;
}
.serif { font-family: 'Cinzel', serif; }
.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

/* THE OVERRIDE CRUSHER */
p[id=copyright]{
    color: #666 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: 2px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    font-weight: bold !important;
    display: block !important;
    text-align: center !important;
}
/* Compliance: Hide cookie banner */

#cmplz-cookiebanner-container {
    display: none !important;
}

/* DEVICE UTILS */
.only-ios, .only-android { display: inline-flex; }
body.is-android .only-ios { display: none !important; }
body.is-ios .only-android { display: none !important; }
.entry-content > *, .wp-block-custom-html { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }

/* --- 3. FEATURE CARDS (RESTORED) --- */
/* This brings back your 3rd block content */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(187, 152, 69, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* MATCHES BUTTON PHYSICS EXACTLY */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(187, 152, 69, 0.15);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* --- 4. BUTTONS (HEIGHT LOCKED) --- */
.cta-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    margin-top: 40px !important;
    flex-wrap: wrap !important;
}

/* SHARED GEOMETRY */
.store-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* THE LOCK: 56px EXACTLY */
    height: 56px !important;
    max-height: 56px !important;
    min-height: 56px !important;
    
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    
    /* PHYSICS ENGINE */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease !important;
}

.store-badge:hover {
    transform: translateY(-5px) !important;
}

/* ANDROID */
#btn-android-hero {
    background: transparent !important;
    border: none !important;
    overflow: hidden !important;
}
.google-badge {
    height: 100% !important; /* Fills the 56px container */
    width: auto !important;
    display: block !important;
}

/* iOS */
#hdr-ios {
    background-color: #000000 !important;
    border: 1px solid #bb9845 !important;
    min-width: 140px !important;
    padding: 0 10px !important; /* Horizontal only */
    
    /* THE MISSING HEIGHT LOCKS */
    height: 38px !important;
    max-height: 38px !important;
    min-height: 38px !important;
    
    /* ESSENTIAL ALIGNMENT FIXES */
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* iOS HOVER */
#hdr-ios:hover {
    background-color: #0a0a0a !important;
    border-color: #edd785 !important;
    box-shadow: 0 8px 25px rgba(187, 152, 69, 0.2) !important;
}

/* iOS INNER CONTENT */
#hdr-ios svg {
    width: 22px !important;
    fill: #ffffff !important;
    margin-right: 12px !important;
    transition: fill 0.3s ease !important;
}
#hdr-ios:hover svg { fill: #edd785 !important; }

.ios-text-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    line-height: 1.1 !important;
}

.ios-label { font-size: 10px !important; color: #ccc !important; text-transform: uppercase !important; }
.ios-value { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; font-family: -apple-system, BlinkMacSystemFont, sans-serif !important; }

/* --- 1. FORCE SCROLLBAR HIDE --- */
.app-carousel::-webkit-scrollbar{ display:none !important; }
.app-carousel { -ms-overflow-style: none !important; scrollbar-width: none !important; }

/* --- 2. GLASS BUTTONS --- */
.glass-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    
    /* SHAPE & GLASS */
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    
    /* LAYOUT */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    
    /* --- 3. CSS BACKUP KILLER --- */
    outline: none !important;
    border-style: solid !important; /* Overrides "dotted" */
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* FORCE REMOVAL OF DOTTED LINES */
.glass-nav-btn:focus, 
.glass-nav-btn:active, 
.glass-nav-btn:visited {
    outline: 0 none !important;
    outline-style: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.glass-nav-btn:hover {
    background: rgba(187, 152, 69, 0.2) !important;
    border-color: #bb9845 !important;
}

/* --- 4. ICON COLOR (GOLD) & SIZE --- */
.glass-nav-btn svg {
    fill: #bb9845 !important;
    display: block !important;
}

/* POSITIONS */
.prev-btn { left: 10px !important; }
.next-btn { right: 10px !important; }

/* --- 5. RESPONSIVE SIZING --- */
/* MOBILE */
.glass-nav-btn { width: 36px !important; height: 36px !important; }
.glass-nav-btn svg { width: 28px !important; height: 28px !important; }

/* DESKTOP */
@media(min-width:768px){
    .glass-nav-btn { width: 50px !important; height: 50px !important; }
    .glass-nav-btn svg { width: 32px !important; height: 32px !important; }
    .prev-btn { left: 20px !important; }
    .next-btn { right: 20px !important; }
    .carousel-item { width: 320px !important; }
}

/* CAROUSEL ITEMS */
.carousel-item {
    flex: 0 0 auto !important;
    width: 280px;
    border-radius: 16px !important;
    overflow: hidden !important;
    scroll-snap-align: center !important;
    border: 1px solid #222 !important;
    transition: transform 0.3s ease !important;
}
.carousel-item:hover { transform: translateY(-5px) !important; border-color: #bb9845 !important; }

/* --- SWIPE ANIMATION --- */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* --- SURGICAL MOBILE OPTIMIZATION (UNIFIED) --- */
@media (max-width: 768px) {
    /* 1. Header & Logo: Slim and locked */
    nav { height: 60px !important; } 
    .hero-logo { height: 40px !important; } 

    /* 2. THE GAP KILLER: Force the hero to sit right under the nav */
    section:first-of-type { 
        padding-top: 80px !important; 
        margin-top: 0 !important;
    }

    /* 3. Title Sizing: Brutal scale-down */
    h1, .serif.gold-glow { 
        font-size: 26px !important; 
        line-height: 1.2 !important; 
        margin-bottom: 15px !important; 
    }
    h2 { 
        font-size: 20px !important; 
        line-height: 1.2 !important; 
        margin-bottom: 12px !important; 
    }
    h3 { 
        font-size: 18px !important; 
        line-height: 1.2 !important; 
        margin-bottom: 12px !important; 
    }
    
    /* 4. Section Spacing: Eliminate voids */
    section { 
        padding-top: 20px !important; 
        padding-bottom: 20px !important; 
    }
    /* Tighten the flex container gaps (Why Smart People Get Stuck) */
    section div[style*="gap: 40px"], 
    section div[style*="gap: 50px"] {
        gap: 10px !important; 
    }

    /* 5. Chart & Card Sync: Maximum Web Size */
    .glass-card { 
        padding: 12px 8px !important; 
        margin: 0 auto !important; 
    }
    .chart-container { 
        height: 320px !important; 
        min-height: 320px !important; 
        margin: -10px 0 !important; 
    }
    #radarChartCanvas, #somaticChartCanvas { 
        max-height: 320px !important; 
    }
    /* Sub-heading within cards (High Noise vs Low Signal) */
    .glass-card p[style*="margin-top: 15px"] {
        margin-top: 5px !important;
    }

    /* 6. Carousel & Content */
    .container-custom h2 { font-size: 20px !important; }
    #card-carousel { gap: 10px !important; padding: 0 10px !important; }
    .carousel-item { width: 240px !important; }

    /* 7. Typography: Crisp readability */
    p { 
        font-size: 15px !important; 
        line-height: 1.4 !important; 
        margin-bottom: 12px !important; 
    }
    
    /* 8. Button Logic */
    #hdr-ios { 
        height: 44px !important; 
        min-height: 44px !important; 
        min-width: 120px !important;
    }

    /* 9. Copyright */
    p[id=copyright] {
        font-size: 8px !important;
        letter-spacing: 2px !important;
        font-weight: normal !important;
        margin-top: 10px !important;
    }
}
/* --- SURGICAL PLATFORM FILTERING --- */

/* 1. Hide Android button on iOS devices */
body.is-ios #btn-android-hero, 
body.is-ios #btn-android-nav, 
body.is-ios #btn-android-footer { 
    display: none !important; 
}

/* 2. Hide iOS button on Android devices */
body.is-android #hdr-ios, 
body.is-android .only-ios, 
body.is-android .only-ios-header { 
    display: none !important; 
}

/* --- HIDE ALL FLOATING INTERFACE ELEMENTS --- */
#stfHelpFab,      /* The Help FAB ID from 20-enqueue.php */
.stf-chat-fab,    /* The shared Chat FAB class used by both bubbles */
#ast-scroll-top { /* The Astra Scroll-to-Top ID from self-tunify.css */
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}
