/* ========================================
   RESPONSIVE STYLES — BEYOND
   Mobile & Tablet Adaptations
   ======================================== */

/* Prevent global horizontal scroll drift on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- TABLET & BELOW (< 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    /* Slider: show 2 cards on tablet */
    .reels-slider-track .reel-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    /* Bento Box Grid — Stack all 4 cards one below another */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bento-grid-bottom {
        grid-column: span 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Upload Section */
    .upload-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Execution / Strategy Section */
    .exec-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Ideas Section */
    .ideas-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Compounds Section */
    .compounds-testimonials {
        grid-template-columns: 1fr;
    }

    /* Pricing Section */
    .pricing-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pricing-v2-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Process Pillars */
    .pillars-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MOBILE LANDSCAPE & PHONES (< 768px) --- */
@media (max-width: 768px) {
    /* Navigation */
    .nav__menu {
        display: none;
    }
    .nav__mobile-toggle {
        display: flex;
    }

    /* Section Padding */
    .section,
    .reels-grid-section,
    .bento-section,
    .statement-section,
    .upload-section,
    .exec-section,
    .hiw-section,
    .ideas-section,
    .compounds-section,
    .pricing-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Responsive Headlines */
    .reels-grid-headline,
    .bento-headline,
    .statement-headline,
    .upload-headline,
    .exec-headline,
    .hiw-headline,
    .ideas-headline,
    .compounds-headline,
    .pricing-header__headline {
        font-size: clamp(2rem, 7.5vw, 2.75rem);
    }

    /* Bento Box Mobile Tweaks */
    .bento-card {
        padding: 24px 20px;
    }
    .bento-card__title {
        font-size: 1.3rem;
    }
    .bento-card__desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .bento-card__editing-visual {
        height: 210px;
        margin-bottom: 20px;
    }
    .bento-badges-row {
        gap: 8px;
        margin-bottom: 24px;
    }
    .bento-badge-item {
        font-size: 0.74rem;
        padding: 5px 12px;
    }

    /* Slider Arrows hidden on mobile to avoid horizontal squishing */
    .reels-slider-arrow {
        display: none;
    }

    /* Mobile Audio Waveform element below exec-body */
    .mobile-audio-wave {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        color: var(--accent-purple-light);
        width: 100%;
    }
    .mobile-audio-wave svg {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    /* Upload Stats Bar */
    .upload-stats-bar {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
        margin-bottom: 3rem;
    }
    .upload-stat {
        max-width: 100%;
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .upload-stats-divider {
        display: none;
    }

    /* Timeline Window Mobile Scrollable Container */
    .timeline-window,
    .exec-premiere {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .timeline-chrome,
    .premiere-chrome,
    .timeline-ruler,
    .premiere-ruler,
    .timeline-tracks,
    .premiere-tracks,
    .timeline-statusbar,
    .premiere-audio {
        min-width: 520px;
    }

    /* How It Works Steps */
    .hiw-steps {
        flex-direction: column;
        border-radius: 14px;
    }
    .hiw-step {
        padding: 20px 20px 22px;
    }
    .hiw-step__divider {
        width: 100%;
        height: 1px;
    }

    /* How It Works Phone Mockups Fan */
    .hiw-phones {
        height: 330px;
        margin-bottom: 40px;
    }
    .hiw-phone {
        width: 135px;
        height: 250px;
    }
    .hiw-phone--center {
        width: 160px;
        height: 290px;
    }
    .hiw-phone--left {
        transform: translateX(-65px) translateY(18px) rotate(-6deg);
    }
    .hiw-phone--right {
        transform: translateX(65px) translateY(18px) rotate(6deg);
    }
    .hiw-phone:hover.hiw-phone--left  { transform: translateX(-65px) translateY(10px) rotate(-4deg); }
    .hiw-phone:hover.hiw-phone--right { transform: translateX(65px) translateY(10px) rotate(4deg); }

    /* Pillars */
    .pillars-container {
        grid-template-columns: 1fr;
    }

    /* Ideas Cards */
    .ideas-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* --- SMALL MOBILE (< 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Slider: show 1 card on small mobile */
    .reels-slider-track .reel-card {
        flex: 0 0 100%;
    }

    /* Bento visual height */
    .bento-card__editing-visual {
        height: 190px;
    }

    /* Ideas Cards */
    .ideas-cards {
        grid-template-columns: 1fr;
    }

    /* How It Works Phone Mockups Fan Small Mobile */
    .hiw-phones {
        height: 290px;
    }
    .hiw-phone {
        width: 115px;
        height: 215px;
        border-radius: 16px;
    }
    .hiw-phone--center {
        width: 135px;
        height: 250px;
        border-radius: 18px;
    }
    .hiw-phone--left {
        transform: translateX(-50px) translateY(15px) rotate(-6deg);
    }
    .hiw-phone--right {
        transform: translateX(50px) translateY(15px) rotate(6deg);
    }
}
