html,
body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    /* Black background behind hero */
    min-height: 100vh;
    position: relative;
    font-family: 'Inter', sans-serif;
    overscroll-behavior: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS */
}

* {
    box-sizing: border-box;
}

/* Sunrise Sky Background Animation REMOVED - Using Video */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #050505;
    /* Fallback dark */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smooth crossfade */
}

.hero-video.active {
    opacity: 1;
}

/* Initial fade-in animation removed in favor of transition class logic, 
   or we can keep it for the very first load but class toggle is safer */

/* Hero Content & Title Styling */
.content {
    position: absolute;
    z-index: 20;
    text-align: center;
    width: 100%;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info {
    position: relative;
    min-height: auto;
    /* Removed long scroll area to fix gap */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    padding-bottom: 100px;
    /* Significant spacing from hero */
    z-index: 5;
    background-color: #000000;
}

.sticky-wrapper {
    position: relative;
    /* Change from sticky to relative since section is shorter */
    top: auto;
    /* Sit comfortably in view */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    padding: 20px;
}

.brain-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    opacity: 0.9;
    /* Red color is set in SVG stroke attributes, but we can enforce here if needed */
    /* Red color is set in SVG stroke attributes */
}

.stat-text {
    /* Removed position: sticky from here since parent is sticky */
    color: #ffffff;
    font-size: 3rem;
    /* Adjusted slightly for longer text */
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.stat-text span {
    color: #333333;
    /* Ensure base span color matches default */
    transition: color 0.1s linear;
}

.stat-text span.active {
    color: #ffffff;
}

.citation {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.6em;
    /* Smaller font for citation */
    color: #999;
    font-weight: 400;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -1px;
    margin: 0;
    margin-top: 20px;
    line-height: 1.2;
}

.hero-subtitle-sub {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.4;
}

.hero-subtitle-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    animation: appleReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    margin-right: 0.28em;
    /* Added margin to separate words */
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    opacity: 0;
    /* Animation handled in JS for custom timing */
}

@keyframes fadeInButtons {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-btn {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.store-btn img {
    height: 50px;
    /* Adjust based on SVG natural size, usually 40-50px is good */
    width: auto;
    display: block;
}

.store-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Apple-style Word Animation */
.hero-word {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
    animation: appleReveal 0.8s ease-out forwards;
    margin-right: 0.25em;
    will-change: opacity, filter, transform;
}

@keyframes appleReveal {
    0% {
        opacity: 0;
        filter: blur(4px);
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Sound Toggle Button */
.sound-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: white;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sound-toggle svg {
    width: 20px;
    height: 20px;
}

/* Global Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    /* Reduced slightly for white bg */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glassmorphic Navigation Bar */
.glass-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 850px;
    /* Widened as requested */
    max-width: 90%;
    padding: 10px 10px 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    /* Max radius for pill shape */
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(5, 5, 5, 0.85);
    /* Dark/Black background on scroll */
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-cta {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #888;
}

.mobile-menu-footer {
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.mobile-nav-btn-wrapper {
    margin-top: 20px;
    width: 100%;
}

.mobile-nav-cta {
    display: block;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 22px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    margin-top: auto;
}

.mobile-nav-cta:active {
    transform: scale(0.96);
    background-color: #f0f0f0;
}

.nav-cta:hover {
    transform: scale(1.02);
    background-color: #f0f0f0;
}

/* Music Consent Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    /* Strong blur for the "site entry" feel */
    -webkit-backdrop-filter: blur(25px);
    z-index: 20000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInPopup 0.5s ease-out forwards;
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.popup-content {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    animation: popUpScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popUpScale {
    to {
        transform: scale(1);
    }
}

.popup-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.popup-text {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-btn.primary {
    background: white;
    color: black;
}

.popup-btn.primary:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.popup-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.popup-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Reviews Section */
.reviews {
    position: relative;
    background-color: #000000;
    padding: 100px 20px;
    /* Standardized padding */
    min-height: auto;
    /* Removed min-height 100vh */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 5;
    /* Slide over the info section */
}

.reviews-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
    /* Duplicate content logic is handled in HTML */
    margin-bottom: 30px;
    /* Add spacing between rows */
}

/* Reverse animation for second row */
.reviews-track.reverse {
    animation-direction: reverse;
}

/* Pause animation on hover */
.reviews-grid:hover .reviews-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half way since we double the content */
    }
}

.review-card {
    background: #111;
    /* Dark card background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
    break-inside: auto;
    box-sizing: border-box;
    flex: 0 0 350px;
    /* Fixed width for consistent slide */
    width: 350px;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.user-profile {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #0F9D58;
    /* Green stars like in the image */
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-date {
    color: #666;
    font-size: 0.8rem;
}

.card-menu {
    margin-left: auto;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.review-text {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.review-text strong {
    color: white;
    font-weight: 700;
}

/* Ambient Glow Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* adjusted per Step 14 to remove 3rd arg */
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    /* Reddish glow */
    top: 20%;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(50, 50, 200, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    /* Blueish/purple glow */
    bottom: 10%;
    right: -100px;
}

/* Quitting Hard Section */
.quitting-section {
    background-color: #000000;
    background-color: #000000;
    padding: 100px 5%;
    color: white;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quitting-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically relative to cards */
    max-width: 1200px;
    width: 100%;
    margin-bottom: 100px;
    gap: 40px;
}

.quitting-left {
    flex: 0 0 35%;
    /* Fixed width for text area */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quitting-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    color: #ffffff;
}

.research-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0061F2;
    /* Bright blue */
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: transform 0.2s, background-color 0.2s;
}

.research-btn:hover {
    background-color: #0056D6;
    transform: translateY(-2px);
}

.quitting-sub {
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

.quitting-right {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.quit-card {
    position: relative;
    width: 220px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
}

.quit-card:hover {
    transform: translateY(-10px);
}

.quit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quit-label {
    position: absolute;
    bottom: 30px;
    left: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Gradient overlay for text readability */
.quit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.quitting-quote {
    max-width: 900px;
    text-align: center;
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* For Blue text within quote */
.blue-text {
    color: #0061F2;
}

@media (max-width: 900px) {
    .quitting-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .quitting-right {
        width: 100%;
        overflow-x: auto;
        /* Allow scroll if screen narrow */
        padding-bottom: 20px;
        /* Scrollbar space */
        justify-content: flex-start;
    }

    .quit-card {
        flex-shrink: 0;
    }
}

/* FAQ Section */
.faq-section {
    background-color: #000000;
    background-color: #000000;
    padding: 100px 5%;
    color: white;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: #e0e0e0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.faq-item {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    padding: 30px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: #111;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.faq-item p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.faq-item ul {
    color: #b0b0b0;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item li {
    margin-bottom: 5px;
}

.faq-item strong {
    color: #e0e0e0;
}

@media (max-width: 800px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-title {
        font-size: 2.2rem;
    }
}

.reviews-badge {
    display: inline-block;
    padding: 8px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge img {
    width: 18px;
    height: 18px;
}

/* Streak Cards Section */
.streak-section {
    background-color: #000000;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.streak-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.streak-sub {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    padding: 0 20px;
}

.streak-carousel {
    width: 100%;
    position: relative;
    padding: 20px 0;
    /* Fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.streak-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollStreak 40s linear infinite;
    /* Slow scroll speed */
}

.streak-track img {
    height: 300px;
    /* Adjust based on image aspect ratio */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.streak-track img:hover {
    transform: scale(1.05);
    z-index: 2;
}

@keyframes scrollStreak {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Scroll exactly half (first set) to loop seamlessly */
    }
}

/* Footer */
.site-footer {
    background-color: #000000;
    padding: 80px 5% 50px;
    color: white;
    border-top: 1px solid #111;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-sun-icon {
    width: 24px;
    height: 24px;
    filter: invert(61%) sepia(91%) saturate(1914%) hue-rotate(345deg) brightness(101%) contrast(105%);
    /* Bright Orange */
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    /* Regular */
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.footer-store-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-store-btn img {
    height: 36px;
    transition: transform 0.2s ease;
}

.footer-store-btn img:hover {
    transform: translateY(-2px);
}

.footer-tagline-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-buttons {
    display: flex;
    gap: 16px;
}

.footer-store-btn {
    display: inline-block;
}

.footer-store-btn img {
    height: 44px;
    transition: transform 0.2s ease;
}

.footer-store-btn:hover img {
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        width: 100%;
        justify-content: space-between;
        gap: 30px;
    }
}

/* Blog Page Styles */
.blog-page {
    background-color: #050505;
    color: white;
}

.blog-main {
    padding-top: 150px;
    /* Space for fixed nav */
    padding-bottom: 100px;
    min-height: 80vh;
}

.blog-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 800px;
    /* Increased from 600px */
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Search Bar */
.blog-search-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.blog-search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.blog-search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 99px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.blog-search-bar input:focus {
    border-color: #555;
}

.blog-search-bar svg {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Filter Pills */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 99px;
    background: #111;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: #222;
    color: white;
}

.filter-pill.active {
    background: #3b82f6;
    /* Blue accent */
    color: white;
}

.filter-pill.icon-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    /* Orange Case Study */
    color: white;
}

/* Grid */
.blog-grid-section {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-thumb {
    height: 240px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.02);
}

.blog-content {
    padding: 0 5px;
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    color: white;
}

.blog-card p {
    font-size: 1rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

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

    .glass-nav {
        min-width: 0;
        width: 90%;
        padding: 8px 10px 8px 20px;
        top: 20px;
    }

    .nav-link,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {

    /* Enable touch scrolling */
    html {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        width: 100%;
        max-width: 100vw;
        touch-action: pan-y;
        height: auto !important;
    }

    /* Hero section */
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible !important;
        touch-action: auto !important;
    }

    /* Video should not block touch */
    .hero-video {
        pointer-events: none;
    }

    /* Content stays absolute but allows touch through */
    .content {
        pointer-events: auto;
        touch-action: pan-y;
    }

    /* Info section */
    .info {
        min-height: auto;
        padding-top: 80px;
        touch-action: pan-y;
    }

    .sticky-wrapper {
        position: relative;
        top: auto;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.6rem;
        padding: 0 10px;
        line-height: 1.1;
    }

    .hero-subtitle-sub {
        font-size: 1.15rem;
        padding: 0 15px;
        margin-top: 25px;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 8px 18px;
        margin-bottom: 30px;
    }

    .store-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .store-btn img {
        height: 56px;
    }

    /* Content/Video */
    .content {
        top: 52%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Info Section */
    .stat-text {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    .brain-icon {
        width: 40px;
        height: 40px;
    }

    /* Quitting Section */
    .quitting-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 60px;
        align-items: center;
    }

    .quitting-left {
        align-items: center;
        width: 100%;
        flex: 0 0 auto;
        text-align: center;
    }

    .quitting-title {
        font-size: 2rem;
    }

    .quitting-sub {
        font-size: 0.95rem;
    }

    .quitting-right {
        width: 100%;
    }

    /* Reviews */
    .reviews-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    /* Streak Section */
    .streak-section {
        padding: 60px 20px;
    }

    .streak-title {
        font-size: 2rem;
    }

    /* FAQ */
    .faq-title {
        font-size: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    /* Footer */
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        width: 100%;
        text-align: left;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .footer-column {
        align-items: flex-start;
        text-align: left;
    }

    /* Blog */
    .blog-hero {
        padding: 120px 20px 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .blog-search-bar {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .blog-search-bar input {
        width: 100%;
        box-sizing: border-box;
    }

    .blog-filters {
        gap: 8px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    /* Navigation */
    .glass-nav {
        width: 92%;
        min-width: auto;
        padding: 8px 12px 8px 16px;
    }

    .nav-logo-img {
        height: 32px;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    /* Mobile Menu Overlay adjustments */
    .mobile-menu-overlay {
        padding: 30px 20px;
    }

    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
    }

    .mobile-nav-cta {
        font-size: 1rem;
        padding: 14px;
    }

    .article-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hide sound toggle on mobile to avoid overlap */
    .sound-toggle {
        display: none;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0px;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: none;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 20px 5%;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active~.cookie-banner {
    display: none !important;
}

.cookie-banner-content {
    flex: 1;
    max-width: 800px;
}

.cookie-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.cookie-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: #3b82f6;
    color: white;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.decline {
    background: transparent;
    color: #888;
    border: 1px solid #444;
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-btn.decline {
        flex: 0.5;
        /* Make decline button slightly smaller on mobile to emphasize accept */
    }
}

/* CTA Section */
.cta-section {
    background-color: #000000;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.cta-primary-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 18px 40px;
    border-radius: 99px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    border: none;
    display: inline-block;
}

.cta-primary-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    background-color: #ffffff;
}

.cta-guarantee {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Hero Layout Updates */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    /* Animation removed here, controlled by children in JS */
}

@media (min-width: 900px) {

    /* Keep column even on desktop to place CTA UNDER badges as requested */
    .hero-actions {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        /* Hidden initially */
    }

    .store-buttons {
        margin-top: 0;
        /* Reset */
    }
}

/* Ensure mobile also hides it initially if we want consistent animation */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.hero-cta-btn {
    font-size: 1.1rem;
    padding: 16px 32px;
    white-space: nowrap;
}

.hero-guarantee {
    color: #ffffff;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 900px) {

    /* Mobile Homepage Optimizations */
    .hero-actions .store-buttons {
        flex-direction: row;
        /* Ensure side by side */
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .hero-actions .store-btn img {
        height: 38px;
        /* Smaller badges */
        width: auto;
    }

    .hero-cta-btn {
        box-shadow: none !important;
        /* Remove glow/shadow */
        background-color: #ffffff !important;
    }

    .hero-guarantee {
        color: #ffffff !important;
        /* White text on mobile */
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Legal Pages (Privacy Policy, Terms) */
.legal-page {
    background-color: #000000;
    color: #ffffff;
}

.legal-content {
    max-width: 800px;
    margin: 120px auto 40px;
    /* Space for fixed navbar */
    padding: 20px;
    line-height: 1.6;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content .subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #ddd;
}

.legal-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #ccc;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    color: #ccc;
}

.legal-content a {
    color: #ffffff;
    text-decoration: underline;
}