/*
 * FAMILEY LANDING PAGE - PREMIUM GLASS CARD DESIGN
 * 
 * Glass Effect Implementation:
 * - Semi-transparent white background (15% opacity) creates the glass surface
 * - backdrop-filter: blur(16px) provides the signature frosted glass effect
 * - Subtle noise/grain overlay adds realism and premium texture
 * - Soft shadows create depth and elevation from background
 * - White border (20% opacity) defines the glass edge
 * - Graceful fallback for browsers without backdrop-filter support
 * 
 * Design Philosophy:
 * - App Store / Google Play editorial card style
 * - Premium, calm, emotional aesthetic
 * - High readability over blurred background image
 * - Generous spacing and typography hierarchy
 * - Accessible and responsive across all devices
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

/* CSS Custom Properties for Glass Effect */
:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.35);
    --glass-blur: 16px;
    --glass-radius: 20px;
    --text-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --text-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

/* Mobile-optimized glass effect variables */
@media (max-width: 767px) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.22);
        --glass-bg-hover: rgba(255, 255, 255, 0.28);
        --glass-border: rgba(255, 255, 255, 0.25);
        --glass-blur: 14px;
        --glass-radius: 18px;
        --text-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
        --text-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Extra small screen glass optimization */
@media (max-width: 480px) {
    :root {
        --glass-radius: 16px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* Hero Section - Premium Layout */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align card to left for editorial style */
    padding: 2rem;
    overflow: hidden; /* Prevents zoomed image from causing scrollbars */
}

/* Dedicated Background Layer */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.webp'); /* Modern WebP format - 95% smaller! */
    background-size: cover;
    background-position: left center; /* Aligns left edge and centers vertically */
    background-repeat: no-repeat;
    z-index: 0;
}

/* Fallback for browsers that don't support WebP */
.no-webp .hero-bg {
    background-image: url('bg_optimized.png');
}

/* Mobile-optimized background for smaller devices */
@media (max-width: 767px) {
    .hero-bg {
        background-image: url('bg_mobile.webp');
        background-position: center center; /* Center the mobile image */
    }

    .no-webp .hero-bg {
        background-image: url('bg_mobile_optimized.png');
    }
}

/* Extra small devices - optimize further */
@media (max-width: 480px) {
    .hero-bg {
        background-position: center center;
        background-size: cover;
    }
}

/* Warm blurred background with vignette for premium aesthetic */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Vignette effect - darker at edges, lighter in center for focus */
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Content Card with Glassmorphism - Premium Glass Effect */
.content-card {
    position: relative;
    z-index: 2;
    width: 50%;
    max-width: 580px; /* Optimal reading width for editorial content */
    padding: 3.5rem; /* Generous padding for premium feel */
    
    /* Semi-transparent white background (15% opacity for optimal glass effect) */
    background: var(--glass-bg);
    
    /* Modern backdrop blur for glassmorphism with webkit fallback */
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    
    /* Rounded corners for modern aesthetic (20px for premium feel) */
    border-radius: var(--glass-radius);
    
    /* Subtle white border for glass edge definition */
    border: 1px solid var(--glass-border);
    
    /* Soft layered shadow for depth and elevation */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Inner highlight for glass shimmer */
}

/* Subtle noise/grain overlay for realism and texture */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--glass-radius);
    /* Fine-grain noise texture for premium glass effect */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay; /* Blends naturally with glass background */
}

/* Ensure content is above the grain overlay */
.content-card > * {
    position: relative;
    z-index: 2;
}

/* Graceful fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(16px)) {
    .content-card {
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Typography - Premium Editorial Style */
.main-heading {
    /* Large serif headline for emotional impact */
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: var(--text-shadow-md); /* Enhanced readability over image */
}

.subheading {
    /* Sans-serif body text with high contrast */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: var(--text-shadow-sm); /* Subtle shadow for readability */
}

/* Features List - Vertical Layout with Generous Spacing */
.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-item {
    /* Left-aligned icons with text, App Store editorial style */
    display: flex;
    align-items: flex-start;
    gap: 1rem; /* Generous spacing between icon and text */
    margin-bottom: 1.75rem; /* Increased vertical spacing */
    padding: 0;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    /* Simple line icons aligned left */
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px; /* Optical alignment with text */
}

.feature-item span {
    flex: 1;
    /* High contrast sans-serif body text */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: var(--text-shadow-sm); /* Readability over image */
}

/* CTA Section - App Store Editorial Style */
.cta-section {
    padding-top: 1.5rem;
    margin-top: auto; /* Pushes to bottom in flex layout */
}

.cta-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: var(--text-shadow-sm);
}

/* App badges aligned at bottom */
.app-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-badge:active {
    transform: translateY(0);
}

.app-badge svg {
    display: block;
    width: 135px;
    height: 40px;
    /* Add subtle shadow to badges for depth */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* =================================================================
   CTA BUTTON COMPONENTS
   Reusable button components for various call-to-action needs
   ================================================================= */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Primary CTA Button (High Contrast with Glow Effect) */
.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
    background: #f0f0f0;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

/* Glow Effect Modifier */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-glow:hover::before {
    opacity: 1;
}

/* Glass CTA Button (Transparent/Blur Effect) */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-light);
    transform: translateY(-2px);
}

.btn-glass:active {
    transform: translateY(0);
}

/* Store Badge Styles (Already exists, keeping for reference) */
.store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    height: 48px;
    width: auto;
    display: block;
}

/* Waitlist Form Component */
.waitlist-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.glass-input {
    flex: 1;
    min-width: 200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 4px;
    transition: border-color var(--transition-fast);
}

.glass-input input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.glass-input input::placeholder {
    color: var(--text-muted);
}

.glass-input:focus-within {
    border-color: #ffffff;
    background: var(--glass-bg-hover);
}

/* Hero CTA Container (for app badges) */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Accessibility for Button Focus States */
.btn:focus,
.btn-primary:focus,
.btn-glass:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Mobile Touch Optimizations */
@media (pointer: coarse) {
    /* Increase touch targets on mobile devices */
    .btn {
        padding: 16px 32px;
        min-height: 48px;
        min-width: 48px;
    }
    
    .store-badge {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Enhanced touch feedback */
    .store-badge:active {
        opacity: 0.7;
    }
    
    /* Remove hover states on touch devices, add active/focus states */
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.97);
        opacity: 0.8;
    }
    
    /* Haptic feedback simulation with visual states */
    .feature-item:active {
        opacity: 0.8;
    }
}


/* Desktop and Tablet Styles - CTA positioning */
@media (min-width: 768px) {
    .content-card {
        /* Ensure relative positioning for absolute children */
        position: relative;
        /* Add space at bottom for CTA */
        padding-bottom: 9rem;
    }

    .cta-section {
        /* Position absolutely within card */
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        width: auto;
        max-width: none;
        padding: 1.5rem 1.5rem 2rem;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: none;
        box-shadow: none;
        z-index: 10;
    }

    .cta-text {
        display: block;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 1rem;
        margin-bottom: 1.25rem;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 500;
        text-shadow: var(--text-shadow-sm);
    }

    .app-badges {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .content-card {
        width: 75%;
        padding: 3rem;
        padding-bottom: 9rem;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .hero-section {
        background-position: center;
    }

    .hero-section::before {
        /* Adjusted vignette for tablet layout */
        background: radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .cta-section {
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        padding: 1.5rem 1.5rem 2rem;
    }
}

/* Large Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    .content-card {
        width: 50%;
    }

    .cta-section {
        left: 3.5rem;
        right: auto;
        width: calc(100% - 7rem);
        max-width: 450px;
        padding: 1.5rem 0 2rem;
    }
}

/* Mobile Styles - Portrait (max-width: 767px) */
@media (max-width: 767px) {
    html {
        font-size: 17px; /* Larger base font for better readability */
    }

    .hero-section {
        min-height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bg {
        /* Background image at top 35% of screen */
        position: relative;
        height: 35vh;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        flex-shrink: 0;
    }

    .hero-bg::after {
        /* Stronger dark overlay for better contrast */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    .hero-section::before {
        /* Remove vignette effect on mobile */
        display: none;
    }

    .content-card {
        /* Solid light beige background for maximum readability */
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2.5rem 2rem;
        padding-bottom: calc(2.5rem + 90px); /* Add space for fixed CTA */

        /* Solid light beige background */
        background: #F5F1E8;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        /* Remove borders for clean look */
        border: none;
        border-radius: 0;

        /* Subtle shadow for depth */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);

        /* Enable scrolling for content */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .content-card::before {
        display: none; /* Remove texture overlay */
    }

    .main-heading {
        font-size: 2rem; /* Optimized heading size */
        margin-bottom: 1.35rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
        color: #2C2416;
        font-weight: 700;
        text-shadow: none;
    }

    .subheading {
        font-size: 1.05rem; /* Comfortable reading size */
        margin-bottom: 1.85rem;
        line-height: 1.65;
        color: #4A3F2E;
        font-weight: 400;
        text-shadow: none;
    }

    .features-list {
        margin-bottom: 1.85rem;
        flex: 1; /* Push CTA section down */
    }

    .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 1.1rem;
        margin-bottom: 1.65rem;
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .feature-item:active {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-icon {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
        margin-top: 2px;
        color: #6B5842;
        filter: none;
    }

    .feature-item span {
        font-size: 1.05rem; /* Clear, readable feature text */
        line-height: 1.6;
        color: #3D3426;
        font-weight: 400;
        text-shadow: none;
    }
    
    .cta-section {
        /* Fixed at bottom of screen on mobile - darker beige */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #E8E1D3;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 100;
        padding: 1.15rem 1.25rem;
        padding-bottom: calc(1.15rem + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    }

    .cta-text {
        display: none; /* Hide CTA text on mobile */
    }

    .hero-cta {
        display: flex;
        gap: 0.85rem;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        min-height: 52px;
    }

    .store-badge {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, opacity 0.2s ease;
        min-height: 52px;
    }

    .store-badge:active {
        transform: scale(0.95);
        opacity: 0.85;
    }

    .store-badge img {
        height: 42px;
        width: auto;
        display: block;
        max-width: 100%;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 16px; /* Maintain readable base size */
    }

    .hero-section {
        padding: 0;
    }

    .hero-bg {
        height: 35vh;
    }

    .hero-bg::after {
        /* Stronger overlay for better contrast */
        background: rgba(0, 0, 0, 0.45);
    }

    .content-card {
        padding: 2rem 1.75rem;
        padding-bottom: calc(2rem + 90px);
        margin: 0;
        border-radius: 0;
        background: #F5F1E8;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    }

    .content-card::before {
        display: none;
    }

    .main-heading {
        font-size: 1.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
        font-weight: 700;
        color: #2C2416;
        text-shadow: none;
    }

    .subheading {
        font-size: 1rem;
        margin-bottom: 1.65rem;
        line-height: 1.65;
        font-weight: 400;
        color: #4A3F2E;
        text-shadow: none;
    }

    .feature-item {
        margin-bottom: 1.55rem;
        gap: 1.05rem;
        padding: 0.7rem 0.5rem;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
        color: #6B5842;
        filter: none;
    }

    .feature-item span {
        font-size: 1rem;
        line-height: 1.6;
        font-weight: 400;
        color: #3D3426;
        text-shadow: none;
    }
    
    .cta-section {
        padding: 1.05rem 1.15rem;
        padding-bottom: calc(1.05rem + env(safe-area-inset-bottom));
        background: #E8E1D3;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    }

    .cta-text {
        display: none;
    }

    .hero-cta {
        display: flex;
        gap: 0.75rem;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        min-height: 50px;
    }

    .store-badge {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }

    .store-badge img {
        height: 40px;
        width: auto;
        max-width: 100%;
    }
}

/* Extra Small Mobile Styles (max-width: 360px) */
@media (max-width: 360px) {
    .hero-section {
        padding: 0;
    }

    .hero-bg {
        height: 35vh;
    }

    .hero-bg::after {
        /* Strong overlay for readability */
        background: rgba(0, 0, 0, 0.45);
    }

    .content-card {
        padding: 1.75rem 1.5rem;
        padding-bottom: calc(1.75rem + 90px);
        margin: 0;
        border-radius: 0;
        background: #F5F1E8;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    }

    .content-card::before {
        display: none;
    }

    .main-heading {
        font-size: 1.7rem;
        margin-bottom: 1.15rem;
        line-height: 1.2;
        font-weight: 700;
        color: #2C2416;
        text-shadow: none;
    }

    .subheading {
        font-size: 0.95rem;
        margin-bottom: 1.45rem;
        line-height: 1.65;
        font-weight: 400;
        color: #4A3F2E;
        text-shadow: none;
    }

    .feature-item {
        margin-bottom: 1.45rem;
        gap: 0.95rem;
        padding: 0.65rem 0.45rem;
    }

    .feature-icon {
        width: 22px;
        height: 22px;
        color: #6B5842;
        filter: none;
    }

    .feature-item span {
        font-size: 0.95rem;
        line-height: 1.6;
        font-weight: 400;
        color: #3D3426;
        text-shadow: none;
    }
    
    .cta-text {
        display: none;
    }
    
    .hero-cta {
        display: flex;
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        min-height: 46px;
    }
    
    .store-badge {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
    }
    
    .store-badge img {
        height: 34px;
        width: auto;
        max-width: 100%;
    }
}

/* Landscape Mode - Mobile Landscape (max-height: 500px) */
@media (max-width: 767px) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        height: 100vh;
        padding: 0;
    }

    .hero-bg {
        height: auto;
        flex: 0 0 35%;
    }

    .hero-bg::after {
        /* Strong overlay in landscape for readability */
        background: rgba(0, 0, 0, 0.45);
    }

    .content-card {
        padding: 1.5rem 1.75rem;
        padding-bottom: calc(1.5rem + 90px);
        max-height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        background: #F5F1E8;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    }

    .content-card::before {
        display: none;
    }

    .main-heading {
        font-size: 1.65rem;
        margin-bottom: 0.95rem;
        line-height: 1.2;
        font-weight: 700;
        color: #2C2416;
        text-shadow: none;
    }

    .subheading {
        font-size: 0.95rem;
        margin-bottom: 1.15rem;
        line-height: 1.6;
        font-weight: 400;
        color: #4A3F2E;
        text-shadow: none;
    }

    .features-list {
        margin-bottom: 1.15rem;
    }

    .feature-item {
        margin-bottom: 1.1rem;
        gap: 0.9rem;
        padding: 0.55rem 0.45rem;
    }

    .feature-item span {
        font-size: 0.95rem;
        line-height: 1.55;
        font-weight: 400;
        color: #3D3426;
        text-shadow: none;
    }

    .feature-icon {
        width: 22px;
        height: 22px;
        margin-top: 2px;
        color: #6B5842;
        filter: none;
    }
    
    .cta-section {
        padding: 0.95rem 1.15rem;
        padding-bottom: calc(0.95rem + env(safe-area-inset-bottom));
        background: #E8E1D3;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    }

    .cta-text {
        display: none;
    }

    .hero-cta {
        gap: 0.65rem;
    }

    .store-badge {
        min-width: 115px;
    }

    .store-badge img {
        height: 38px;
    }
}

/* iPad and Landscape Tablets */
@media (min-width: 768px) and (max-height: 800px) and (orientation: landscape) {
    .content-card {
        padding: 2rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 1rem 1.5rem;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .content-card {
        animation: fadeInUp 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .feature-item {
        animation: fadeIn 0.6s ease-out backwards;
    }
    
    .feature-item:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .feature-item:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .feature-item:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* Focus Styles for Accessibility */
.app-badge:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .content-card {
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .main-heading,
    .subheading,
    .feature-item span,
    .cta-text {
        color: #ffffff;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }
}
