/* Tailwind theme and Inter font configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    font-family: 'Inter', sans-serif;
}

/* 1. Base Light & Clean */
.background-light {
    background-color: #FFFFFF;
    /* Pure White */
}

.text-dark {
    color: #171717;
    /* Deep Black */
}

.text-faded-dark {
    color: #64748B;
    /* Subtle Slate Gray */
}

/* Style for active titles and descriptions */
.text-active {
    color: #171717 !important;
}

/* Style for navigation icons */
.icon-nav-item {
    color: #64748B;
    /* Faded Gray by default */
    transition: all 0.2s ease-in-out;
}

/* Icon Styling Updates */

/* Default State: 100% Opacity for all */
.icon-nav-item {
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

/* Hover State */
.icon-nav-item:hover {
    transform: scale(1.05);
    /* Slightly reduced scale from 1.1 */
}

/* Active State - Different Shadow */
.icon-nav-item.active-icon div {
    /* Stronger, colored shadow for active state */
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
    transform: scale(1.1);
    background-color: #ffffff;
    /* Ensure white bg popping out */
    border: 1px solid #E5E7EB;
    /* Subtle border definition */
}

/* Default State Shadow (Enhanced) */
.icon-nav-item div {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Equivalent to shadow-md */
}

/* Layout Adjustment for Header */
body {
    /* Changed back to allow scrolling */
    min-height: 100vh;
    padding-top: 80px;
    /* Space for Fixed Header */
}

/* Responsive Layout */
.main-layout-desktop {
    display: flex;
    flex-direction: column;
    /* Mobile Default: Stacked */
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 1024px) {
    .main-layout-desktop {
        flex-direction: row;
        /* Desktop: Side-by-Side */
    }
}

.sticky-column {
    /* Mobile: Fixed at Bottom */
    display: flex;
    position: fixed;
    /* Bottom: show slightly more than top half. Adjust as needed. 
       -60vh means we pull it down. 
       Let's try a simpler approach: bottom alignment */
    bottom: -25vh;
    /* Lowered further per user request */
    left: 0;
    width: 100%;
    height: 70vh;
    /* Large enough to show screen */

    z-index: 50;
    /* Phone ON TOP of text */

    background-color: transparent;
    /* No background color, just the phone */
    border-bottom: none;

    justify-content: center;
    align-items: flex-start;
    /* Align top of phone to top of container? No, align center or top. */
    /* We want the TOP of the phone to be visible. */
    padding-top: 2rem;

    pointer-events: none;
    /* Let clicks pass through to content? Or maybe not needed if behind. */
    transition: all 0.3s ease;
}

/* Mockup sizing for mobile */
.sticky-column .mockup-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Mobile: Show top */
}

.sticky-column .mockup-wrapper img {
    /* Scale it up so it looks big and background-like */
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Mobile Specific: Restrict width */
@media (max-width: 767px) {
    .sticky-column .mockup-wrapper img {
        max-width: 85%;
    }
}

@media (min-width: 1024px) {
    .sticky-column {
        display: flex;
        /* Desktop: Visible */
        position: sticky;
        /* Desktop: Sticky */
        top: 80px;
        height: calc(100vh - 80px);
        width: 50%;
        border-bottom: none;
        justify-content: center;
        align-items: center;
    }

    .sticky-column .mockup-wrapper {
        height: auto;
        width: 100%;
        padding-bottom: 0;
        display: block;
        /* Reset */
    }

    .sticky-column .mockup-wrapper img {
        max-height: 80vh;
        width: auto;
    }
}

/* Inline Mobile Image - HIDDEN (User prefers fixed mockup) */
.mobile-app-img-container {
    display: none !important;
}

/* Scrolling Content */
.content-scroll-area {
    width: 100%;
    z-index: 10;
    /* Text BEHIND phone */
    position: relative;
    padding-top: 2rem;
    padding-bottom: 55vh;
}

@media (min-width: 1024px) {
    .content-scroll-area {
        width: 50%;
        padding-top: 0;
        padding-bottom: 50vh;
    }
}

/* App Content Blocks - Mobile: "Naked" Floating Text */
.app-content-block {
    /* Mobile: Minimalist Style */
    min-height: auto;
    margin: 2rem 1rem;
    padding: 1rem;
    /* Reduced padding */
    background-color: transparent;
    /* No card background */
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
}

/* Mobile Typography Overrides (< 768px) */
@media (max-width: 767px) {
    .app-content-block h3 {
        font-size: 2.25rem !important;
        /* Smaller than desktop 6xl */
        line-height: 2.5rem;
        /* Add subtle shadow for contrast against phone */
        text-shadow: 0 4px 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8);
    }

    .app-content-block p {
        font-size: 1rem !important;
        /* Smaller than desktop lg */
        /* Add background highlight for readability instead of full card */
        background-color: rgba(255, 255, 255, 0.7);
        padding: 0.5rem;
        border-radius: 8px;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        margin-bottom: 0.5rem !important;
        /* Reduce space below text */
    }

    /* Reduce space below title */
    .app-content-block h3 {
        margin-bottom: 0.25rem !important;
    }

    /* Reduce space below icon */
    .app-content-block .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    .uppercase {
        background-color: transparent !important;
        /* Don't highlight the label */
        text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
    }
}

/* Active State for Mobile Cards */
.app-content-block.active-content {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.app-content-block:not(.active-content) {
    /* Inactive text (behind phone or scroll) is faded out */
    opacity: 0.1;
    transform: scale(0.98);
    filter: blur(2px);
}

@media (min-width: 1024px) {
    .app-content-block {
        /* Desktop: Clean Split View (Reset Card Styles) */
        min-height: calc(100vh - 80px);
        padding: 4rem;
        margin: 0;
        background-color: transparent;
        backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
        border: none;
        justify-content: center;
    }

    .app-content-block:not(.active-content) {
        opacity: 0.4;
        transform: none;
    }
}

/* 3. iPhone Mockup Frame - Clean and Minimalist Design */
.mockup-frame {
    background-color: #FAFAFA;
    /* Very light gray for the frame */
    padding: 10px;
    border-radius: 50px;
    /* Very light and soft shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    /* Subtle outline */
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
    max-width: 350px;
}

/* The screen is the screenshot */
.mockup-screen {
    border-radius: 40px;
    overflow: hidden;
    display: block;
    transition: opacity 0.3s ease-in-out;
    /* Enable smooth fade */
}

/* 4. Unified Sticky Header */
.unified-header {
    position: fixed;
    /* Fixed to viewport */
    top: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    /* Subtle separator */
    width: 100%;

    /* Layout: Default (Mobile) = Center Logo */
    justify-content: center;
}

/* Ensure inner container centers logo on mobile */
.unified-header>div {
    justify-content: center !important;
}

@media (min-width: 1024px) {
    .unified-header>div {
        justify-content: space-between !important;
    }
}

/* Icon Container - Mobile: Hidden */
#icon-nav-container {
    display: none;
}

@media (min-width: 1024px) {
    .unified-header {
        /* Desktop: Logo Left, Icons Right */
        justify-content: space-between;
    }

    #icon-nav-container {
        display: flex;
        /* Restore icons on desktop */
    }
}

/* Button Container Mobile Override (< 768px) */
@media (max-width: 767px) {
    [id^="buttons-app-"] {
        display: flex !important;
        flex-direction: row !important;
        /* Force side-by-side */
        gap: 0.5rem;
        /* Space between buttons */
        justify-content: flex-start;
        align-items: center;
        /* Ensure vertical center alignment */
        flex-wrap: nowrap;
        /* Added to prevent full width stacking on small devices */
        width: 100%;
    }

    [id^="buttons-app-"] a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        /* Reset any margins */
        height: 44px !important;
        /* Fixed height for consistency */
        padding: 0 1rem !important;
        /* Horizontal padding only */
        font-size: 0.8rem;
        /* readable size */
        width: auto !important;
        flex: 0 1 auto;
        /* Do not stretch, allow shrink if needed */
        /* Equal width removed per user request */
        white-space: nowrap;
        border-width: 2px !important;
        /* Force border width on both */
        border-style: solid !important;
        box-sizing: border-box !important;
    }

    /* Target the first button (App Store - Black) to ensure it has a transparent border to match the second */
    [id^="buttons-app-"] a:first-child {
        border-color: transparent;
        /* Or black if it's the filled one, wait. */
        /* The filled button has bg-black. Transparent border adds to size but is invisible. */
        border-color: transparent !important;
        /* Ideally we might want border-black if we want it to look larger, but transparent matches the layout size. */
    }

    /* The second button has border-black defined inline, so it stays black. */
}