/*
 * LastRun Main Website Styles
 * Professional stylesheet following best practices
 * Matches pre-launch glassmorphism aesthetic
 */

/* ===========================
   CSS VARIABLES & THEME
   =========================== */
:root {
    /* Mountain Colors - Matching Pre-launch */
    --mountain-blue: #2D5A87;
    --ice-blue: #7DB8E8;
    --snow-white: #F8FAFC;
    --powder-blue: #B8E0FF;

    /* Gradient Steps */
    --gradient-1: #1a365d;
    --gradient-2: #2d5a87;
    --gradient-3: #7db8e8;
    --gradient-4: #b8e0ff;

    /* Role Colors */
    --skier-green: #4CAF50;
    --snowboarder-blue: #3B82F6;

    /* Accent Colors */
    --warning-red: #EF4444;
    --gold-accent: #F59E0B;

    /* Neutral Colors */
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Shadows - Three-tier system */
    --shadow-soft: 0 4px 20px rgba(45, 90, 135, 0.1);
    --shadow-elevated: 0 8px 40px rgba(45, 90, 135, 0.15);
    --shadow-floating: 0 12px 60px rgba(45, 90, 135, 0.2);

    /* Glassmorphism - Matching "You're Early" card */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 10px;

    /* Fluid Spacing - Scales smoothly from mobile (375px) to desktop (1920px) */
    /* Uses clamp(min, preferred, max) for viewport-responsive sizing */
    --spacing-xs: clamp(0.375rem, 0.5vw + 0.25rem, 0.5rem);        /* 6px → 8px */
    --spacing-sm: clamp(0.75rem, 1.5vw + 0.25rem, 1rem);           /* 12px → 16px */
    --spacing-md: clamp(1rem, 2.5vw + 0.5rem, 2rem);               /* 16px → 32px */
    --spacing-lg: clamp(1.5rem, 4vw + 0.5rem, 3rem);               /* 24px → 48px */
    --spacing-xl: clamp(2rem, 6vw + 0.5rem, 4rem);                 /* 32px → 64px */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 50px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===========================
   BACKGROUND (FIXED)
   =========================== */
.microfiber-bg {
    position: fixed;
    top: 20px; /* TEST: Start at 20px from top */
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/mountain-backdrop-microfiber-pattern.png');
    background-size: 100% auto; /* Always edge-to-edge width, scale height proportionally */
    background-position: center top; /* Lock to top, centered horizontally */
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
}

/* Mobile: TEST with same 20px */
@media (max-width: 480px) {
    .microfiber-bg {
        top: 20px; /* TEST: Start at 20px from top */
    }
}

/* ===========================
   SNOWFALL ANIMATION
   =========================== */
.snowfall {
    position: fixed;
    top: -10%;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    color: #E0EFFF;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
    font-size: 20px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 3s; font-size: 18px; }
.snowflake:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 1s; }
.snowflake:nth-child(4) { left: 60%; animation-duration: 22s; animation-delay: 4s; font-size: 22px; }
.snowflake:nth-child(5) { left: 75%; animation-duration: 16s; animation-delay: 2s; }
.snowflake:nth-child(6) { left: 90%; animation-duration: 19s; animation-delay: 5s; font-size: 16px; }

@keyframes fall {
    from { transform: translateY(-100px) rotate(0deg); }
    to { transform: translateY(calc(100vh + 100px)) rotate(360deg); }
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-soft);
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--mountain-blue);
}

.nav-links a.active {
    font-weight: 700;
    color: var(--mountain-blue);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===========================
   MAIN CONTENT AREA
   =========================== */
.main-content {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Account for fixed header */
    min-height: 100vh;
}

/* ===========================
   LOGO SECTION
   =========================== */
.logo-section {
    text-align: center;
    /* Fluid padding: 8px mobile → 32px desktop (maintains home page appearance) */
    /* ===== CHANGE: 2025-12-07 - Moved logo up 30px for mobile above-fold ===== */
    padding: clamp(0.5rem, 3vw, 2rem) 0;
    margin-top: -30px;
}

.logo-main {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ===========================
   GLASSMORPHISM CARDS
   =========================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    /* MOBILE FIX 2 (REVISED): Increased minimum padding to match rules images - 2025-11-07 */
    /* Fluid padding: 8px mobile → 48px desktop (matches 16px total buffer with parent) */
    padding: clamp(0.5rem, 3vw + 0.5rem, 3rem);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    margin: var(--spacing-md) auto;
    max-width: 900px;
}

.glass-card-wide {
    max-width: 1200px;
}

/* ===========================
   IMAGE CAROUSEL
   =========================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;  /* Let it fill the screen */
    /* ===== CHANGE: 2025-12-07 - Moved carousel up 35px for mobile above-fold ===== */
    margin: calc(var(--spacing-md) - 35px) auto var(--spacing-md) auto;
    padding: 0;  /* Remove padding */
}

/* Viewport clamps the visible area */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Desktop: no padding, Mobile: 10% peek padding */
}

@media (min-width: 769px) {
    .carousel-wrapper {
        padding-inline: 0;
        max-width: 1200px;  /* Contain it on desktop */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding-inline: 10vw;
    }
}

/* The horizontal belt that slides left endlessly */
.carousel-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;  /* 10px buffer between images */
    will-change: transform;
    /* Desktop: scroll through items at 400px each + gaps (10px) = total px in 60s */
    animation: carousel-slide-desktop 60s linear infinite;
}

/* Hover to pause on pointer devices only (desktop) */
@media (hover: hover) and (pointer: fine) {
    .carousel-container:hover .carousel-track {
        animation-play-state: paused;
    }
}

/* Desktop animation: Move exactly 4090px (10 items × 400px + 9 gaps × 10px) */
@keyframes carousel-slide-desktop {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-4090px, 0, 0); }
}

/* Mobile animation: Move items plus gaps */
@media (max-width: 768px) {
    .carousel-track {
        animation: carousel-slide-mobile 60s linear infinite;
    }

    @keyframes carousel-slide-mobile {
        from { transform: translate3d(0, 0, 0); }
        to   { transform: translate3d(calc((-80vw * 10) + (-10px * 9)), 0, 0); }
    }
}

/* ===== CHANGE: 2025-11-04 - Logo rail pattern for infinite scroll ===== */
/* Each item is a fixed column; width changes by breakpoint */
.carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    /* Desktop default: exactly 400px square */
    width: 400px;
    height: 400px;
    max-width: 400px;
}

/* Desktop: 3 full images in view - wrapper is 1200px, so each item is 400px */
@media (min-width: 769px) {
    .carousel-item {
        width: 400px;
        height: 400px;
        min-width: 400px;
        max-width: 400px;
    }
}

/* Mobile: 1 image centered with peeks on both sides */
@media (max-width: 768px) {
    .carousel-item {
        width: 80vw;
        height: 80vw;  /* Square aspect ratio */
        min-width: 280px;
        min-height: 280px;
        max-width: 600px;
        max-height: 600px;
    }
}
/* ===== END CHANGE ===== */

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures square fill */
    border-radius: var(--radius-md);  /* Rounded corners already set */
    background: var(--gray-200);
}

.carousel-item span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

/* Fade edges - COMMENTED OUT */
/*
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}
*/

/* Carousel Controls - COMMENTED OUT */
/*
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: var(--shadow-elevated);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    box-shadow: var(--shadow-floating);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--mountain-blue);
}
*/

/* ===========================
   PHONE CAROUSEL (App Screenshots)
   =========================== */
.phone-carousel {
    max-width: 1000px;
}

.phone-carousel .carousel-item {
    /* Override standard carousel item sizing */
    aspect-ratio: auto;
    height: auto;
    width: auto;
    /* No padding - use gap instead */
}

.carousel-item.phone-screen {
    /* Remove background to eliminate gray sides */
    background: transparent;
}

/* Desktop: 250px wide, 495px tall for app screenshots */
@media (min-width: 769px) {
    .carousel-item.phone-screen {
        width: 250px !important;
        height: 495px !important;
        max-width: 250px !important;
        max-height: 495px !important;
        min-width: 250px !important;
        min-height: 495px !important;
        flex: 0 0 250px !important;
    }
}

/* Mobile: height-based sizing for phone screenshots */
/* FIX 2025-11-28: Removed conflicting constraints, use height-based sizing */
@media (max-width: 768px) {
    .carousel-item.phone-screen {
        width: auto;           /* Let width be determined by image */
        height: 55vh;          /* Height-based sizing */
        max-height: 450px;     /* Reasonable maximum */
        min-height: 280px;     /* Minimum for usability */
        min-width: 0;          /* Override base 280px min-width - allow shrink to fit */
        max-width: none;       /* Override base 600px max-width */
    }

    .phone-carousel .carousel-wrapper {
        padding-inline: 2vw;   /* Reduced from 10vw - phone images don't need big peek padding */
    }

    .phone-carousel .carousel-track {
        gap: 6px;              /* 3x the previous 2px */
    }
}

/* Phone carousel animation: 7 items × 250px + 6 gaps × 10px = 1810px */
.phone-carousel .carousel-track {
    animation: carousel-slide-phone 50s linear infinite;
}

@keyframes carousel-slide-phone {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-1810px, 0, 0); }
}

.carousel-item.phone-screen span,
.carousel-item.phone-screen img {
    /* Larger radius for phone look - applied directly to image */
    border-radius: 20px;
    box-shadow: var(--shadow-elevated);
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Ensures images fit nicely without distortion */
}

/* Mobile phone image override - must come AFTER the above rule */
@media (max-width: 768px) {
    .carousel-item.phone-screen img {
        width: auto;
        height: 100%;
        max-width: 100%;
        background: transparent;
        box-shadow: none;  /* Remove shadow on mobile for cleaner look */
        border: 2px solid rgba(45, 90, 135, 0.2);  /* Subtle border like quick-link buttons */
    }
}

/* ===========================
   PRODUCT GALLERY (Buy Page)
   =========================== */
.product-gallery-container {
    max-width: 700px;
    margin: calc(var(--spacing-lg) / 2) auto var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.product-main-image {
    width: 100%;
    max-width: 540px;
    margin: 0 auto var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    max-height: 540px;
    display: block;
    object-fit: contain;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    max-width: 690px;
    margin: 0 auto;
}

.product-thumbnail {
    aspect-ratio: 1;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-soft);
}

.product-thumbnail.active {
    border-color: var(--snowboarder-blue);
    transform: scale(1.08);
    box-shadow: var(--shadow-elevated);
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: white;
    box-shadow: var(--shadow-floating);
}

.gallery-nav-btn.prev {
    left: 10px;
}

.gallery-nav-btn.next {
    right: 10px;
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--mountain-blue);
}

/* ===========================
   GAME BADGES
   =========================== */
.game-badges {
    display: flex;
    justify-content: center;
    /* Fluid gap: 16px mobile → 32px desktop */
    gap: clamp(1rem, 2.5vw + 0.5rem, 2rem);
    /* 0px top (flush with logo), fluid bottom: 16px → 32px */
    margin: 0 0 clamp(1rem, 2.5vw + 0.5rem, 2rem);
    flex-wrap: wrap;
}

.badge-icon {
    height: 60px;
    width: auto;
}

/* ===========================
   SECTION HEADINGS
   =========================== */
.section-title {
    /* Fluid font size: 20px mobile → 32px desktop */
    font-size: clamp(1.25rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
    color: var(--gradient-1);
    text-align: center;
    /* Fluid margins: (16px → 48px) top, (12px → 32px) bottom */
    margin: clamp(1rem, 4vw, 3rem) 0 clamp(0.75rem, 2vw + 0.25rem, 2rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-wrap: balance;
}

.section-subtitle {
    /* Fluid font size: 16px mobile → 24px desktop */
    font-size: clamp(1rem, 2.5vw + 0.25rem, 1.5rem);
    font-weight: 600;
    color: var(--mountain-blue);
    text-align: center;
    /* Fluid margins: (12px → 16px) top, (16px → 32px) bottom */
    margin: clamp(0.75rem, 1.5vw, 1rem) 0 clamp(1rem, 2.5vw + 0.5rem, 2rem);
    /* Horizontal padding for mobile breathing room */
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
    text-wrap: balance;
}

/* Spacing adjustments when subtitle follows tagline */
.tagline + .section-subtitle {
    margin-top: 0; /* Remove gap between tagline and subtitle */
    /* ===== CHANGE: 2025-12-07 - Reduced spacing to product showcase by 1/2 ===== */
    margin-bottom: 2.875rem; /* Was 5.75rem (92px), now ~46px */
}

/* Remove bottom margin from tagline when followed by subtitle */
.tagline:has(+ .section-subtitle) {
    margin-bottom: 0.25rem; /* Tight spacing between tagline and subtitle */
}

.tagline {
    /* Fluid font size: 17.6px mobile → 28px desktop */
    font-size: clamp(1.1rem, 2.75vw + 0.5rem, 1.75rem);
    font-weight: 600;
    color: var(--gradient-1);
    text-align: center;
    /* Fluid margins: (32px → 64px) top, (16px → 32px) bottom */
    margin: clamp(2rem, 6vw + 0.5rem, 4rem) 0 clamp(1rem, 2.5vw + 0.5rem, 2rem);
    text-wrap: balance;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--snowboarder-blue), #1e88e5);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.btn-secondary {
    background: white;
    color: var(--mountain-blue);
    border: 2px solid var(--mountain-blue);
}

.btn-secondary:hover {
    background: var(--mountain-blue);
    color: white;
}

.btn-amazon {
    background: #FF9900;
    color: #232F3E;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 700;
}

.btn-amazon:hover {
    background: #FFA724;
}

/* ===== CHANGE: 2025-12-07 - Full-width Buy on Amazon button ===== */
.buy-button-full {
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: var(--spacing-sm) 0;
}

.btn-full-width {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.1rem;
}
/* ===== END CHANGE ===== */

/* ===========================
   PRODUCT SECTION
   =========================== */
.product-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.product-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.product-info {
    text-align: center;
}

/* ===== CHANGE: 2025-12-07 - Dual button show/hide for desktop/mobile ===== */
.product-buy-btn-mobile {
    display: none;  /* Hidden on desktop */
}

.product-buy-btn-desktop {
    display: inline-block;  /* Shown on desktop */
}
/* ===== END CHANGE ===== */

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gradient-1);
    margin: var(--spacing-sm) 0;
}

.product-description {
    text-align: left;
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1rem;
}

/* ===========================
   QUICK LINKS
   =========================== */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: var(--spacing-lg) auto;
}

.quick-link {
    display: block;
    padding: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--mountain-blue);
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(45, 90, 135, 0.2);
    box-shadow: var(--shadow-soft);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--snowboarder-blue);
}

/* ===========================
   APP STORE BUTTONS
   =========================== */

/* Coming Soon overlay for app buttons */
.app-buttons-coming-soon {
    position: relative;
    display: inline-block;
    width: 100%;
}

.app-buttons-coming-soon .app-buttons {
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;  /* Disable clicking */
}

.app-buttons-coming-soon::after {
    content: attr(data-coming-soon-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mountain-blue);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 10;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-900);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.app-btn svg {
    width: 24px;
    height: 24px;
}

/* ===========================
   COMING SOON OVERLAY
   =========================== */
.app-section-container {
    position: relative;
    /* Updated 2025-12-07: Reduced top margin by 40% for tighter sign-to-tagline spacing */
    /* Was: clamp(1.5rem, 4vw, 2.75rem) = 24-44px, Now: clamp(0.9rem, 2.4vw, 1.65rem) = 14-26px */
    margin: clamp(0.9rem, 2.4vw, 1.65rem) 0 clamp(1.5rem, 4vw + 0.5rem, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Adjust tagline spacing inside app section */
/* Updated 2025-12-07: Reduced margin-top by 40% (48px → 29px) for tighter sign-to-tagline spacing */
.app-section-container .tagline {
    margin-top: 1.8rem; /* ~29px (was 3rem/48px) - 40% reduction */
    margin-bottom: 3px; /* 3px gap - reduced further */
}

.app-section-container .section-subtitle {
    margin-bottom: 3px; /* 3px gap - reduced further */
}

/* How to Play page: Reduce header spacing after game badges */
.game-badges + .app-section-container .section-title {
    margin-top: var(--spacing-sm); /* 1rem (16px) instead of 3rem (48px) - closer to icons */
    margin-bottom: 0; /* 0px bottom, spacing to video handled by content padding */
}

.app-section-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    /* MOBILE FIX 1 & 2: Reduced top padding (8px → 15px) and side padding (8px → 48px) - 2025-11-07 */
    /* Fluid padding: 0 top, (8px → 48px) sides, (24px → 48px) bottom */
    padding: 0
             clamp(0.5rem, 4vw + 0.5rem, 3rem)
             clamp(1.5rem, 4vw + 0.5rem, 3rem);
}

.app-section-container.coming-soon .app-section-content {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    border-radius: var(--radius-lg);
}

/* Sharp overlay text - not blurred, customizable via data-coming-soon-text attribute */
/* MOBILE FIX 5 (REVISED): Moved UP to center on app images - 2025-11-07 */
.app-section-container.coming-soon::after {
    content: attr(data-coming-soon-text);
    position: absolute;
    top: 40%; /* Changed from 50% to visually center on app carousel images */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: var(--mountain-blue);
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.7),
        2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Fallback if no data attribute is provided */
.app-section-container.coming-soon:not([data-coming-soon-text])::after {
    content: 'Coming Soon';
}

.app-section-container.coming-soon .app-section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: var(--radius-lg);
    z-index: 5;
    pointer-events: none;
}

/* ===========================
   VIDEO CONTAINER
   =========================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-md);
}

/* ===========================
   RULES & SCORING IMAGES
   =========================== */
.rules-container,
.scoring-container {
    max-width: 900px;
    margin: var(--spacing-md) auto;
}

.rules-page {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
}

.scoring-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-container {
    max-width: 900px;
    margin: var(--spacing-md) auto;
    padding: 0 var(--spacing-md);
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gradient-1);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

/* MOBILE FIX 6: Added horizontal padding for rules/scoring images - 2025-11-07 */
@media (max-width: 768px) {
    .rules-container,
    .scoring-container {
        padding-left: 1rem;  /* 16px buffer from screen edge */
        padding-right: 1rem; /* 16px buffer from screen edge */
    }
}

/* ===========================
   IMAGE GALLERY (About Page)
   =========================== */
/* ===== CHANGE: 2025-10-22 - Changed gallery layout: thumbnails below main image on all screens ===== */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

/* ===== CHANGE: 2025-10-22 - Made gallery frame auto-size to fit each image ===== */
/* ===== CHANGE: 2025-10-22 - Reduced size by 20% (600px -> 480px) ===== */
.gallery-main {
    max-width: 100%;
    max-height: 480px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 auto;
}
/* ===== END CHANGE ===== */

/* ===== CHANGE: 2025-10-22 - Changed to object-fit: contain to show full image without cropping ===== */
/* ===== CHANGE: 2025-10-22 - Removed height: 100% to prevent cropping on wide screens ===== */
/* ===== CHANGE: 2025-10-22 - Made image auto-size, frame wraps to image dimensions ===== */
/* ===== CHANGE: 2025-10-22 - Reduced size by 20% (600px -> 480px) ===== */
.gallery-main img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
}
/* ===== END CHANGE ===== */

.gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    justify-content: center;
}
/* ===== END CHANGE ===== */

/* ===== CHANGE: 2025-10-22 - Added width constraint for thumbnails in row layout ===== */
.gallery-thumb {
    width: 120px;
    aspect-ratio: 4/3;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}
/* ===== END CHANGE ===== */

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--snowboarder-blue);
    transform: scale(1.08);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-info {
    text-align: center;
    margin: var(--spacing-md) 0;
}

.contact-info p {
    margin: var(--spacing-xs) 0;
    color: var(--gray-700);
    font-size: 1rem;
}

.contact-email {
    color: var(--mountain-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ===========================
   SOCIAL LINKS
   =========================== */
.social-section {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(45, 90, 135, 0.3);
    background: white;
    color: var(--mountain-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--snowboarder-blue);
    color: white;
    border-color: var(--snowboarder-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
    margin-top: var(--spacing-xl);
}

.footer-links {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--mountain-blue);
    text-decoration: underline;
}

/* ===========================
   POPUP MODAL (Email Signup)
   =========================== */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--spacing-md);
}

.popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.popup-modal.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--gray-900);
}

.popup-logo {
    width: 200px;
    margin: 0 auto;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gradient-1);
    margin-bottom: var(--spacing-sm);
}

.popup-text {
    font-size: 1rem;
    color: var(--mountain-blue);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* ===== CHANGE: 2025-12-07 - Success state styling ===== */
.popup-success-state {
    text-align: center;
}

.popup-success-state .btn-amazon {
    display: inline-block;
    margin-top: var(--spacing-md);
}
/* ===== END CHANGE ===== */

/* Email Form Styles */
.email-form {
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.email-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--snowboarder-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3B82F6, #1e88e5);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.error {
    display: block;
    color: var(--warning-red);
    background: rgba(239, 68, 68, 0.1);
}

.form-message.info {
    display: block;
    color: var(--skier-green);
    background: rgba(76, 175, 80, 0.1);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
        box-shadow: var(--shadow-elevated);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: var(--spacing-md);
    }

    /* Mobile carousel sizing handled by main rules above */

    /* ===== CHANGE: 2025-10-22 - Removed redundant gallery rules (now default) ===== */
    /* Layout is now column-based with row thumbnails by default */

    .gallery-thumb {
        width: 80px; /* Smaller thumbnails on mobile */
    }
    /* ===== END CHANGE ===== */

    /* REMOVED: .section-title and .tagline font-size overrides - now handled by fluid clamp() */

    .product-showcase {
        flex-direction: column;
    }

    /* ===== CHANGE: 2025-12-07 - Mobile: show mobile button, hide desktop button ===== */
    .product-buy-btn-mobile {
        display: inline-block;
        width: 80%;
        text-align: center;
        order: 1;
    }

    .product-buy-btn-desktop {
        display: none;
    }

    .product-image {
        order: 2;
    }

    .product-info {
        order: 3;
    }
    /* ===== END CHANGE ===== */

    /* ===== ADDED: 2025-11-04 - Session 7A Mobile Responsive Improvements =====
       ISSUE: Quick links buttons stretched too wide on tablet screens
       FIX: Reduce max-width from 500px to 85% and tighten spacing
       WHY: Better proportions on tablet (768px) screens, more breathing room on sides
       IMPACT: Tablet only (>480px and ≤768px), no desktop changes */
    .quick-links {
        max-width: 85%;
        gap: 1.5rem;  /* Reduced from 2rem for tighter vertical spacing */
    }

    .quick-link {
        padding: 1.25rem 2rem;  /* Reduced vertical from 2rem to 1.25rem */
    }
    /* ===== END CHANGE ===== */
}

/* Mobile */
@media (max-width: 480px) {
    .main-content {
        padding-top: 60px;
    }

    /* REMOVED: .glass-card padding override - now handled by fluid clamp() */
    /* REMOVED: .section-title font-size override - now handled by fluid clamp() */
    /* REMOVED: .tagline font-size override - now handled by fluid clamp() */

    .badge-icon {
        height: 50px;
    }

    .product-price {
        font-size: 2rem;
    }

    .app-buttons {
        flex-direction: column;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .app-btn {
        width: 100%;
        justify-content: center;
    }

    /* Coming Soon - Mobile */
    .app-section-container.coming-soon::after {
        font-size: 1.5rem;
    }

    /* ===== ADDED: 2025-11-04 - Session 7A Mobile Responsive Improvements =====
       ISSUE #1: Quick links buttons stretched edge-to-edge on mobile phones
       FIX: Add horizontal padding container and reduce button size
       WHY: Buttons were touching screen edges (see Screenshot 2025-11-04 095326.png)
       REFERENCE: Compared to sixesandones.com mobile layout for best practices
       IMPACT: Mobile only (≤480px) */
    .quick-links {
        max-width: 100%;
        padding: 0 1.25rem;  /* 20px buffer on each side */
        gap: 1rem;  /* Reduced from 2rem for more compact stacking */
    }

    .quick-link {
        padding: 1rem 1.5rem;  /* Reduced from 2rem vertical to 1rem */
        font-size: 1.25rem;  /* Reduced from 1.5rem (24px) to 1.25rem (20px) */
    }

    /* REMOVED: .section-subtitle font-size overrides - now handled by fluid clamp() in main definition */
    /* Horizontal padding for mobile still needed for edge spacing */

    /* REMOVED: .logo-section and .logo-main overrides - now handled by fluid clamp() */
    /* Fluid padding in main .logo-section definition scales smoothly 8px → 32px */
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--snowboarder-blue);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
