/* VARIABLES (Matching your Controller UI) */
:root {
    /* Brand Palette */
    --primary: #009D94;          /* Core Teal */
    --primary-dark: #007A73;     /* Hover State Teal */
    --accent: #FF8C00;           /* Vivid Dark Orange */
    --accent-dark: #D97700;      /* Hover State Orange */
    /*--dark-bg: #1E293B;*/
    
    /* Surface & Backgrounds */
    --bg: #F0F7F7;               /* Soft Ice Canvas Tint */
    --surface: #FFFFFF;          /* Card & Section Base */
    --twilight: #182830;         /* Deep Slate Navy (Dark Sections / Text) */
    --dark-bg: #0F1720;
    

    /* Typography */
    --text: #182830;             /* Deep Slate Navy */
    --text-muted: #52667A;       /* Muted Navy Slate */
    
    /* Deprecated legacy mapping for backward compatibility */
    --secondary: #009D94;        

    /* Soft UI Elements */
    --border: rgba(0, 157, 148, 0.12); /* Subtle Teal Border */
    --shadow: 0 10px 30px -5px rgba(24, 40, 48, 0.08); /* Soft Ambient Drop Shadow */
    --radius: 16px;              /* Rounder, Modern Corners */
    
    /* Fonts */
    --font-head: 'Inter', 'Open Sans', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4 { 
    font-family: var(--font-head); 
    font-weight: 800; 
    line-height: 1.2; 
    letter-spacing: -0.03em; /* Tightens the large text slightly */
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* UTILS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.orange { color: var(--accent); }
.teal { color: var(--primary) !important; }
.blue { color:#7dd3fc;} 
.full-width { width: 100%; }

/* BUTTONS */
   .hero-buttons {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;         
        flex-wrap: wrap;    
    }

/* Unified Button Layouts */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid transparent;
}
.btn-primary .lucide, .btn-secondary .lucide {
    width: 20px;
    height: 20px;
    margin-bottom: 0; 
    color: inherit; /* This forces the arrow to exactly match the text color */
}
.trust-badges .lucide {
    width: 18px;  /* Adjust this number up or down to find the perfect size */
    height: 18px; 
    margin-right: 4px; /* Adds a tiny bit of breathing room between the icon and the text */
}

/* Primary Button Specifics */
.btn-primary {
    background-color: var(--primary);
    color: var(--twilight);
    box-shadow: none;
    border: 1px solid var(--primary);
}


.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--surface); /* Changes text to white on hover */
    box-shadow: 0 10px 20px -5px rgba(0, 157, 148, 0.4);
    transform: translateY(-2px);
}

/* Secondary Button Specifics */
.btn-secondary {
    background: transparent;
    color: var(--twilight);
    font-weight: 600;
    border: 1px solid var(--primary);
    margin-left: 10px;
}

.btn-secondary:hover {
    color: var(--twilight);
    border: 1px solid var(--primary-dark);
    background: rgba(0, 157, 148, 0.05);
    transform: translateY(-2px);
}

/* Fix the Icon Spacing inside Buttons */
.btn-primary .lucide, 
.btn-secondary .lucide {
    width: 20px;
    height: 20px;
    margin-bottom: 0; /* Kills the global 12px margin so it doesn't stretch the button */
}

/* NAVBAR */
.navbar { 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(10px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid var(--border); 
    
    /* NEW: Scales top/bottom padding from 15px up to 25px */
    padding: clamp(15px, 2vw, 25px) 0; 
}
.logo-svg {
    /* Scales height: 40px min (mobile), 6vw fluid, 75px max (desktop) */
    height: clamp(40px, 6vw, 75px);
    width: auto;
    display: block;
    transition: height 0.2s ease-out; /* Smooths out manual window resizing */
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; font-family: var(--font-head); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--text); color: white !important; padding: 8px 20px; border-radius: 20px; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { padding: 120px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.pill-label { display: inline-block; background: #E0F2FE; color: var(--primary-dark); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; max-width: 90%; }
.trust-badges { margin-top: 30px; display: flex; gap: 20px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.trust-badges i { color: var(--secondary); margin-right: 5px; }

/* Premium Glow Effect for Headline */
.text-glow {
    color: var(--accent); /* Uses your new deep amber */
    position: relative;
    display: inline-block;
}

.text-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;  /* Expanded horizontal room */
    height: 300%; /* Massively expanded vertical room to prevent clipping */
    /* Switched to an ellipse to better wrap a line of text */
    background: radial-gradient(ellipse at center, rgba(236,163,49,0.15) 0%, rgba(255,255,255,0) 60%);
    z-index: -1;
    pointer-events: none;
}

/* Adjust secondary button icon alignment */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary .lucide {
    width: 20px;
    height: 20px;
    margin-bottom: 0;
}

/* PHONE MOCKUP (CSS Only) */
.phone-mockup {
    width: 300px; 
    height: 620px;
    background: transparent;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.1); /* Ultra-thin, barely visible edge */
    margin: 0 auto;
    position: relative;
    box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.15); /* Soft, floating shadow */
    overflow: hidden;
}

.screen-content {
    background: linear-gradient(180deg, #e3e3e3 0%, #eaeaea 100%);
    height: 100%; padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sun-arc-visual {
    width: 200px; height: 100px;
    border-top-left-radius: 110px; border-top-right-radius: 110px;
    border: 4px solid var(--primary); border-bottom: 0;
    position: relative;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}
.time-display { font-size: 3rem; font-weight: 800; color: white; margin-top: 20px; font-family: var(--font-head); }
.status-pill { background: rgba(255,255,255,0.1); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-top: 10px; letter-spacing: 1px; }

/* PROBLEM SECTION */
.problem-grid-2x2 {
    display: grid;
    /* Uses min() to prevent mobile overflow while keeping desktop size */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); 
    gap: 2rem;
}

.section-problem { padding: 120px 0; background: white; }
.section-header { max-width: 600px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.0rem; margin-bottom: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { padding: 30px; }
.feature-card {
    background: #ffffff;
    /* Adds a crisp edge */
    border: 1px solid rgba(0, 0, 0, 0.04); 
    /* Softer, wider, more diffuse shadow */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04); 
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.icon-box { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.blue-bg { background: #dbeafe; color: var(--secondary); }
.orange-bg { background: #ffedd5; color: var(--accent-dark); }
.gray-bg { background: #f1f5f9; color: var(--text-muted); }

.premium-square-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  max-width: 420px;
  aspect-ratio: 1 / 1; /* Ensures the image renders as a perfect square */
  object-fit: cover; /* Prevents stretching if the original file isn't perfectly square */
  border-radius: 12px; /* Softens the harsh corners */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); /* Subtle premium drop shadow */
  display: block;
}

/* SOLUTION SECTION */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
/* Force the Science section to a 60/40 split on Desktop */

.product-placeholder { 
    background: #f1f5f9; height: 400px; border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; flex-direction: column; 
    border: 2px dashed #cbd5e1;
}
.lead { font-size: 1.2rem; font-weight: 600; color: var(--accent); margin-bottom: 30px; }

/* 3. The Grid List */
.feature-list {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Keeps the list centered vertically next to the slider */
    margin: 0;
}

.feature-list li {
    margin-bottom: 0; 
    display: flex;
    align-items: center; 
    gap: 25px; 
    padding: 16px 0; 
    border-bottom: 1px solid #e2e8f0; 
    opacity: 0.4; /* NEW: Dims the item by default */
    transition: opacity 0.3s ease; /* NEW: Smooth fade */
}

/* Remove the line from the very last item so it looks clean at the bottom */
.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.active {
    opacity: 1;
}
.feature-list li.active .stage-icon {
    transform: scale(1.25); /* Enlarges the active bubble by 25% */
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); /* Gives it a deeper drop shadow */
}

/* Custom Stage Icons for the Feature List */
.stage-icon {
    width: 32px;        
    height: 32px;       
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem; 
    flex-shrink: 0; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* NEW: Smooth scaling */
}

/* Color matched to the light temperature of each stage */
.icon-morning { background: #fef3c7; color: #d97706; } /* Warm Yellow */
.icon-day     { background: #dbeafe; color: #2563eb; } /* Bright Blue */
.icon-dusk    { background: #ffedd5; color: #ea580c; } /* Deep Amber */
.icon-night   { background: #f1f5f9; color: #475569; } /* Dark Slate */

.feature-list strong {
    font-size: 1rem; 
}

.feature-list li p {
    font-size: 0.85rem; /* Smaller text prevents the card from stretching vertically */
    margin: 5px 0 0 0; 
    line-height: 1.4;
}

/* Vertical Slider Wrapper */
/* =======================================
   USAGE SLIDER & LIST ALIGNMENT 
   ======================================= */

/* 1. The Wrapper */
.usage-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Pushes the slider into the vertical center */
    padding: 0; 
}

/* 2. The Slider */

input[type=range].circadian-slider {
    /* Modern standard for vertical sliders */
    writing-mode: vertical-lr; 
    direction: rtl;
    
    width: 8px;
    height:100%;
    max-height: 400px; 
    cursor: pointer;
    accent-color: var(--accent); 
    transform: rotate(180deg); /* Keeps 1 at the top, 4 at the bottom */
    background-color: #e2e8f0; 
    border-radius: 8px;
}

/* Slider Attention Pulse Animation */
@keyframes slider-glow {
    0% { filter: drop-shadow(0 0 0px rgba(249, 115, 22, 0)); }
    15% { filter: drop-shadow(0 0 12px rgba(249, 115, 22, .85)); } /* Peaks quickly */
    30% { filter: drop-shadow(0 0 0px rgba(249, 115, 22, 0)); }  /* Fades out */
    100% { filter: drop-shadow(0 0 0px rgba(249, 115, 22, 0)); } /* Long 3-second pause */
}

/* Target all the curves in your chart */
#interactive-chart path {
    transition: opacity 0.4s ease, stroke-width 0.4s ease;
}

/* The class we will apply via JS to fade out non-selected curves */
.dimmed {
    opacity: 0.15;
}

/* Make the trigger icons look clickable */
[id^="trigger-"] {
    cursor: pointer;
}


/* This class gets added by JS when scrolling into view */
.attention-pulse {
    animation: slider-glow 5s infinite ease-in-out; /* Repeats every 4 seconds */
}

/* PRIVACY SECTION */
.section-privacy { padding: 80px 0; background: var(--dark-bg); color: white; }
.privacy-box h2 { margin-bottom: 20px; }
.tech-specs { display: flex; justify-content: center; gap: 30px; margin-top: 40px; color: #94a3b8; font-weight: 600; }

/* SHOP SECTION */
.section-shop { padding: 120px 0; background: var(--bg); }
.pricing-grid { display: flex; justify-content: center; gap: 30px; max-width: 900px; margin: 0 auto; }
/* 1. Base Price Card */
.price-card { 
    background: white; 
    padding: 40px; 
    border-radius: 20px; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow);
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    z-index: 1; 
    /* Override JS transition speed for a snappy hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important; 
}

.price-card h3 {
    font-size: 1.3em;
    font-weight: 525;
    letter-spacing: 0.01em; /* Adjust this value to dial in the exact spacing */
}

/* Standard Card Hover */
.price-card.visible:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid var(--primary); 
}

/* 2. Featured Price Card */
.price-card.featured { 
    border: 1px solid var(--primary); 
    z-index: 0; 
}

/* Preserve the 1.05 scale when the JS reveal finishes */
.price-card.featured.visible {
    transform: scale(1.03) translateY(0) !important;
}

/* Featured Card Hover */
.price-card.featured.visible:hover {
    transform: scale(1.03) translateY(-5px) !important; 
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18) !important; 
}


/* 2. The New Corner Ribbon */
.badge {
    position: absolute;
    top: 30px;                   /* Pushes it down from the top edge */
    left: -38px;                 /* Pulls it left so the flat edges hide outside the box */
    width: 170px;                /* Makes it long enough to span the diagonal corner */
    transform: rotate(-45deg);   /* The exact 45-degree angle */
    background: var(--primary);  /* Teal background */
    color: white;
    text-align: center;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* A premium drop shadow */
}

.price { font-size: 3rem; font-weight: 600; color: var(--text-muted); margin: 10px 0; font-family: var(--font-head); text-align: center; }
.kit-desc { color: var(--text-muted); margin-bottom: 25px; min-height: 50px; }
.kit-features li { margin-bottom: 6px; padding-left: 20px; position: relative; font-size: 0.9rem; }
.kit-features li::before { content: "•"; color: var(--primary); position: absolute; left: 0; font-weight: bold; }


/* Section Header with Line */
.addons-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 30px;
}
.addons-header h3 {
    font-size: 1.2rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
}
.feature-card h3{
    margin-bottom: .6rem;
}
.divider-line {
    height: 1px;
    background: #e2e8f0;
    width: 100%;
}

/* The Grid (2 Columns) */
.addons-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* The Horizontal Card */
.addon-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.addon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.addon-icon {
    background: #fff7ed;
    width: 50px; height: 50px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.addons-grid .addon-card:nth-child(1) { z-index: 40; }
.addons-grid .addon-card:nth-child(2) { z-index: 30; }
.addons-grid .addon-card:nth-child(3) { z-index: 20; }
.addons-grid .addon-card:nth-child(4) { z-index: 10; }

.addon-info { flex: 1; }
.addon-info h4 { margin: 0 0 4px 0; font-size: 1.1rem; color: #1e293b; }
.addon-info p { margin: 0; font-size: 0.85rem; color: #64748b; }

.addon-action { text-align: right; }
.addon-price { font-weight: 800; font-size: 1.2rem; color: #1e293b; margin-bottom: 5px; }

/* Smaller Button */
.btn-sm {
    padding: 6px 16px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn-sm:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background-color: #1e293b; /* Deep Slate Gray */
    padding: 60px 0 20px; 
    border-top: none; /* Looks cleaner without a border on dark backgrounds */
    color: #e2e8f0; 
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 50px; 
    margin-bottom: 40px; 
}

.footer-brand .brand-text {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 10px;
}

.footer-links h4 { 
    margin-bottom: 20px; 
    color: #ffffff; /* Forces headers to white */
    letter-spacing: 0.5px;
}

.footer-links a { 
    display: block; 
    margin-bottom: 12px; 
    color: #cbd5e1; /* Bright, legible slate-grey */
    font-size: 0.95rem; 
    transition: color 0.2s ease;
}

.footer-links a:hover { 
    color: var(--primary); /* Teal on hover */
}

.copyright { 
    text-align: center; 
    color: #64748b; 
    font-size: 0.85rem; 
    padding-top: 20px; 
    /* A translucent white line so it blends perfectly with the dark gray */
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

/* 1. The Section (Background Image) */
.section-solution {
    position: relative;
    padding: 60px 0; 
    min-height: 300px; 
    display: flex;
    align-items: center;
    overflow: hidden; /* Keeps the background images contained */
    background-color: #000; /* Fallback color */
}

/* NEW: Stacked Background Layers */
.solution-bg-layers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* Keeps it behind your text */
}

.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: left center; /* Keeps Controller anchored left */
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.8s ease-in-out; /* The smooth crossfade magic */
}

.bg-layer.active {
    opacity: 1; /* Shows the active layer */
}

/* Map the images to the layers */
.bg-morning { background-image: url('assets/LuxidiaCore_morning.webp'); }
.bg-noon    { background-image: url('assets/LuxidiaCore_noon.webp'); }
.bg-dusk    { background-image: url('assets/LuxidiaCore_evening.webp'); }
.bg-night   { background-image: url('assets/LuxidiaCore_nightlight.webp'); }

/* 2. The Container (Ensure it sits above the backgrounds) */
.section-solution .container {
    position: relative;
    z-index: 10; /* <--- CRUCIAL: Puts your glass card on top of the images */
    display: flex;
    justify-content: flex-end; 
    align-items: center;       
    width: 100%;               
}

/* 2. The Container (The Grid) */
/* We make the container the flex parent to control the card position */
.section-solution .container {
    display: flex;
    justify-content: flex-end; /* <--- PUSHES CONTENT TO THE RIGHT */
    align-items: center;       /* Vertically centers the card */
    width: 100%;               /* Ensures container spans the width */
}

/* 3. The Glass Card (The Text Box) */
.solution-content-right {
    background: rgba(255, 255, 255, 0.90); 
    backdrop-filter: blur(10px);           
    padding: 35px; /* Reduced from 50px to shrink the box */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.8);
    width: 100%;
    max-width: 520px; /* Drastically shrunk down from 650px */
}


/* =====================================
   BACKGROUND IMAGE SECTION UPGRADES
   ===================================== */

/* 1. Add Parallax Depth to the Background */
.section-usage {
    /* This locks the background image in place while the user scrolls past it */
    background-attachment: fixed !important; 
    background-position: center right !important; /* Ensures the switch stays in frame */
}
.usage-bg-img {
    filter: grayscale(20%) brightness(1.05) contrast(0.95);
}

/* 2. Fix the Overlay Gradient */
.usage-overlay {
    padding: 120px 0;
    width: 100%;
    height: 100%;
}

/* 3. The Glassmorphism Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: #ffffff;
    /* Pushes it slightly down and to the right to sit nicely over the image */
    transform: translateY(30px); 
}

.glass-badge .lucide {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.glass-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.glass-badge .badge-title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
}

.glass-badge .badge-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 1. SECTION WRAPPER */
.section-usage {
    background-color: #ffffff;
    background-image: url('assets/lightswitch.jpg');
    background-repeat: no-repeat;
    background-position: right center; /* Switch stays on Right */
    background-size: contain; 
    
    min-height: 600px;
    display: block; /* Change from flex to block so container works normally */
    padding: 120px 0;
}

/* 2. THE CONTAINER (Force Left Alignment) */
.section-usage .container {
    display: flex;
    justify-content: flex-start; /* <--- FORCE CONTENT TO THE LEFT */
    width: 100%;
}

/* =====================================
   ZERO FRICTION: TEXT CARD & CHECKLIST
   ===================================== */

/* Turn the text container into a premium frosted card */
.usage-content {
    background: rgba(15, 23, 42, 0.8); /* Deep twilight, slightly see-through */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thin glass rim */
    border-radius: 24px;
    padding: 40px;
    max-width: 550px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Force the typography to pop against the dark glass */
.usage-content h2 { 
    color: #ffffff; 
    margin-bottom: 10px; 
    font-size: 2.2rem;
}

.usage-content .lead { 
    color: var(--primary); 
    font-weight: 700; 
    margin-bottom: 20px;
}

.usage-content .usage-text p { 
    color: #cbd5e1; /* Soft slate so it's not blindingly white */
    font-size: 1.1rem; 
    line-height: 1.6; 
}

/* Upgrade the checklist to match the premium card */
.feature-checklist {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Forces two equal columns */
    gap: 15px;
    align-items: center;
}

.check-item { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff; 
    padding: 14px 18px; 
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* Make sure the icons match your brand amber */
.check-item .lucide { 
    color: var(--primary); 
    width: 20px;
    height: 20px;
}


/* 3. THE TEXT CONTENT (Padded & Sized) */
.usage-content {
    max-width: 500px; /* Keep it narrow so it doesn't hit the switch */
    margin-left: 0;
    text-align: left;
    text-shadow: none !important;
}

.usage-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-shadow: inherit;
}


.feature-card, .step-card, .control-card{
    padding: 30px;
    background: var(--surface);
    border: none; /* Kills the old 1px solid line */
    box-shadow: var(--shadow); /* Applies the soft ambient shadow */
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add this hover effect to make the cards feel interactive */
.feature-card:hover, .step-card:hover, .control-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

/* Reveal Animation State */
.solution-text {
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    visibility: visible;
}

/* =========================================
   THE SCIENCE SUITE (Unified Section)
   ========================================= */

/* The Main Wrapper */
#science-suite {
    background-color: #e2e8f0; 
    padding: 120px 0; 
    border-top: 1px solid #cbd5e1;
    
    /* NEW: Anchors the background text and prevents page stretching */
    position: relative; 
    overflow: hidden; 
}
/* Ensures the content floats safely above the background text */
#science-suite .container {
    position: relative;
    z-index: 10;
}



/* The Spacers between the zig-zag layouts */
.science-spacer {
    height: 100px;
}

/* Text Container Overrides */
#science-suite .solution-text {
    padding: 0; /* Removes default padding so it aligns nicely in the grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The White Pills */
.science-pill {
    background: #ffffff; 
    color: #475569;
    align-self: flex-start; /* Prevents the pill from stretching the full width */
    margin-bottom: 1.5rem;
}

/* Standardized Headers */
#science-suite h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Standardized Paragraphs */
#science-suite p {
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.6;
    margin-bottom: 20px;
}
#science-suite p:last-child {
    margin-bottom: 0; /* Ensures the bottom of the card is flush */
}

/* Emphasized Paragraph (The bold callout) */
.science-emphasis {
    font-size: 1.05rem !important; 
    font-weight: 600 !important; 
    color: var(--text) !important; 
    margin-bottom: 10px !important;
}

#science-suite .feature-card {
    /* The lighter, softer resting state */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#science-suite .feature-card:hover {
    /* The deeper, pronounced hover state */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-5px);
}


/* The class added by JavaScript when scrolling */
.feature-card.visible, 
.price-card.visible, 
.solution-text.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.check-item {
    /* Change the text color to white or a very light slate */
    color: #FFFFFF !important; 
    
    /* Slightly lighten the glass background to help the text stand out */
    background: rgba(255, 255, 255, 0.1); 
    
    /* Ensure there is no dark text-shadow interfering */
    text-shadow: none;
    
    /* Keep your existing layout properties */
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.check-item i { color: var(--secondary); }


/* The Crisp Canvas Theme */
.section-emf {
    background: #ffffff; /* Pure White */
    padding: 120px 0;
    border-top: 1px solid #e2e8f0; /* Razor-thin physical divider */
}

/* Ensure the text stays dark */
.section-emf h2 {
    color: var(--text);
}

.section-emf p {
    color: var(--text-muted);
}

/* ========================
   FAQ & HELP PAGE STYLES
   ======================== */

/* 1. The Search Bar */
#faq-search {
    width: 100%;
    padding: 12px 16px 12px 42px; /* Extra left padding for the icon */
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

#faq-search:focus {
    border-color: var(--primary); /* Orange highlight */
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* 2. Utility Button (Email Support) */
.btn-utility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.btn-utility:hover {
    background: #e2e8f0;
    color: var(--text);
}

/* 3. The FAQ List */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s ease;
}

/* The Question (Clickable Header) */
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
}

.faq-question:hover {
    background: #f8fafc;
}

/* The Plus Icon */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    line-height: 1;
}

/* The Answer (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Content inside the answer needs padding 
   (We don't put padding on .faq-answer directly to make the animation smooth) */
.faq-answer > * {
    padding: 0 20px 20px 20px;
    margin: 0; /* Reset margins on <p> tags inside */
}

/* 4. ACTIVE STATE (When Open) */
.faq-item.open {
    border-color: var(--primary); /* Orange border when open */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg); /* Turn + into x */
    color: var(--primary);
}

.faq-item.open .faq-question {
    color: var(--primary-dark);
}

/* 5. Return Button (Specific to Help Page footer) */
.btn-return-footer {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    opacity: 0.6;
    transition: 0.2s;
}

.btn-return-footer:hover {
    opacity: 1;
    color: var(--text);
}

/* ========================
   FAQ TYPOGRAPHY & FORMATTING
   ======================== */

/* Wrapper for the answer text */
.faq-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    /* The padding is handled by the parent .faq-answer > * rule in your existing CSS */
}

/* 1. Spacing for Paragraphs */
.faq-content p {
    margin-bottom: 12px; /* Adds space between text blocks */
}
.faq-content p:last-child {
    margin-bottom: 0; /* No extra space at the very bottom */
}

/* 2. List Indentation & Bullets */
.faq-content ol, 
.faq-content ul {
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 24px; /* CRITICAL: This creates the indentation */
}

/* 3. List Item Spacing */
.faq-content li {
    margin-bottom: 8px; /* Space between steps */
    padding-left: 5px;  /* Space between bullet/number and text */
}

/* 4. Bold Text Styling */
.faq-content strong {
    color: var(--text); /* Make bold text darker/blacker */
    font-weight: 700;
}

/* 5. Links inside Answers */
.faq-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.faq-content a:hover {
    color: var(--primary-dark);
}

/* 6. Specific fix for the "Step Headers" in your reset instructions */
.faq-content lh {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--secondary); /* Optional: Make step headers blue */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* "Show More" Button - Matches Site Theme */
.btn-show-more {
    display: block;
    width: 100%;
    max-width: 300px;       /* Keeps it neat, not too wide */
    margin: 30px auto 0;    /* Centers it */
    padding: 12px 24px;

    /* Typography matches your other buttons */
    font-family: var(--font-head); 
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* Start Neutral (Like .btn-secondary) */
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
    border-radius: 50px;    /* The signature pill shape */

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    /* Hover Effect: Brand Orange */
    border-color: var(--primary);
    color: var(--primary);
    background: #fff7ed; /* Very faint orange tint */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}


/* Slider */
.slider-container {
  opacity: 0;
  pointer-events: none;
  width: 100%;
  max-width: 400px;
  margin-top: 50px;
}
.slider-container.visible {
  opacity: 1;
  pointer-events: auto;
  animation: popBounce 0.45s forwards; 
}
.slider-container label {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaaaaa;
  margin-bottom: 20px;
  font-weight: 600;
}
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, rgb(255, 100, 0) 0%, rgb(255, 180, 90) 40%, rgb(240, 250, 255) 100%);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.custom-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

/* Bulb & Glow */
.bulb-container {
  position: relative;
  width: 400px;  
  height: 600px; 
}
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.glow-master {
  position: absolute;
  top: calc(15% - 15px); /* Moves the anchor exactly 30px higher */
  left: 50%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(70px); 
  transform-origin: center center;
  animation: 
    masterGlowScale 8s linear forwards,
    masterGlowOpacity 8s linear forwards,
    masterGlowColor 8s linear forwards;
}
/* Bulb Image Keyframes */
.layer-1400 { opacity: 0; animation: layerAnim1400 8s linear forwards; }
.layer-2700 { opacity: 0; animation: layerAnim2700 8s linear forwards; }
.layer-5000 { opacity: 0; animation: layerAnim5000 8s linear forwards; }
.layer-6500 { opacity: 0; animation: layerAnim6500 8s linear forwards; }

/* Bulb Image Keyframes (Stacking Method) */
@keyframes layerAnim1400 {
  0%          { opacity: 0; }
  10%         { opacity: 1; }
  100%        { opacity: 1; } /* Never fades out */
}
@keyframes layerAnim2700 {
  0%          { opacity: 0; }
  25.5%       { opacity: 1; }
  100%        { opacity: 1; } /* Never fades out */
}
@keyframes layerAnim5000 {
  0%, 25.5%   { opacity: 0; } /* Stays hidden until 25.5% */
  70.6%       { opacity: 1; }
  100%        { opacity: 1; } /* Never fades out */
}
@keyframes layerAnim6500 {
  0%, 70.6%   { opacity: 0; } /* Stays hidden until 70.6% */
  100%        { opacity: 1; }
}

/* Master Glow Keyframes (Synced to 4 stages) */
@keyframes masterGlowScale {
  0%          { transform: translate(-50%, 0) scale(0.4); }
  25.5%       { transform: translate(-50%, 0) scale(0.8); }
  70.6%       { transform: translate(-50%, 0) scale(1.4); }
  100%        { transform: translate(-50%, 0) scale(2.0); }
}
@keyframes masterGlowOpacity {
  0%          { opacity: 0; }
  10%         { opacity: 0.8; }
  95%         { opacity: 1; }
  100%        { opacity: 1; }
}
@keyframes masterGlowColor {
  0%          { background-color: rgb(255, 80, 0); }
  25.5%       { background-color: rgb(255, 190, 100); }
  70.6%       { background-color: rgb(255, 250, 245); }
  100%        { background-color: rgb(220, 240, 255); }
}


/* Slider Bounce Keyframes */
@keyframes popBounce {
  0% { opacity: 0; transform: translateY(-40px); animation-timing-function: ease-in; }
  40% { opacity: 1; transform: translateY(12px); animation-timing-function: ease-out; }
  65% { transform: translateY(-6px); animation-timing-function: ease-in; }
  85% { transform: translateY(2px); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translateY(0); }
}

/* Subtle Skip Intro Button */
.skip-intro-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35); 
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400; 
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  outline: none;
}

.skip-intro-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease; /* Smooth icon sliding */
}

.skip-intro-btn:hover {
  color: rgba(255, 255, 255, 0.9); 
}

/* Make the arrow slide to the right on hover */
.skip-intro-btn:hover i {
  transform: translateX(3px);
}

.skip-intro-btn.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Modern SVG Icon Styling */
.lucide {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px; /* Keeps the lines thin and premium */
    color: var(--primary); /* Uses your new 1800K Amber glow */
    transition: transform 0.3s ease;
}

/* Optional: Make them lift slightly when hovering over their parent card */
.feature-card:hover .lucide, 
.step-card:hover .lucide {
    transform: translateY(0px) scale(1.1);
}


/* =========================================
   INTERACTIVE BIOLOGICAL CHART
   ========================================= */
.chart-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

/* Base Colors */
.path-melatonin { stroke: #38bdf8; }
.path-cortisol { stroke: #eca331; }
.path-hgh { stroke: #8b5cf6; }
.path-bodytemp { stroke: #14b8a6; }
.path-serotonin { stroke: #f472b6; }
.path-leptin { stroke: #10b981; } /* Sage Green */
.path-ghrelin { stroke: #f43f5e; stroke-dasharray: 4 4; } /* Dashed Coral Red */

/* The Inactive State (Transparent & Thin) */
.chart-path.inactive {
    opacity: 0.15;
    stroke-width: 1.25px;
}

/* Micro-Gesture: Hovering an Inactive Line */
.chart-path.inactive:hover {
    opacity: 0.4;
    stroke-width: 2px;
}

/* The Active State (Bold & Solid) */
.chart-path.active {
    opacity: 1;
    stroke-width: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Fills (Only visible when active) */
.fill-path {
    opacity: 0;
    pointer-events: none; /* Prevents fills from stealing mouse clicks */
    transition: opacity 0.4s ease;
}
.fill-path.active {
    opacity: 1;
}

/* Classes applied by JS */
.chart-path.hidden, .fill-path.hidden {
    opacity: 0 !important;
}

/* The Interactive Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.legend-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: #f1f5f9;
    color: var(--dark-bg);
}

.legend-item.active {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--dark-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Legend Pills Micro-Gestures */
.legend-item.inactive {
    opacity: 0.5;
    background: transparent;
    border-color: transparent;
}
.legend-item.inactive:hover {
    opacity: 0.8;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Floating Scrubber Tooltip */
.chart-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s ease;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================================
   CHART NAVIGATION ARROWS
   ========================================= */
.chart-nav-btn {
    position: absolute;
    top: 35%; /* Slightly above center to align with the curves visually */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20; /* Keep above the SVG and invisible scrubber */
}

.chart-nav-btn:hover {
    color: var(--dark-bg);
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Specific Positions */
.nav-prev {
    left: -15px; /* Floats slightly outside the left bound */
}
.nav-prev:hover {
    transform: translateY(-50%) translateX(-2px) scale(1.05);
}

.nav-next {
    right: -15px; /* Floats slightly outside the right bound */
}
.nav-next:hover {
    transform: translateY(-50%) translateX(2px) scale(1.05);
}

/* Hide on very small screens where they might cover too much data */
@media (max-width: 600px) {
    .chart-nav-btn {
        width: 36px;
        height: 36px;
        left: 5px;
    }
    .nav-next {
        right: 5px;
        left: auto;
    }
    .interactive-clock-wrapper {
      transform: translateX(-50%) scale(0.85);
      bottom: 25px; /* Lowered for mobile */
    }
    .sunrise-hero {
            min-height: 80vh; /* Reduces the height to 60% of the screen */
            /* OR use a fixed pixel height like: min-height: 500px; */
    }
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Speech Bubble Card */
.speech-bubble {
    position: relative;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08); /* Matches your other cards */
    margin-bottom: 30px; /* Leaves space for the triangle */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    width: 100%;
}

.speech-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

/* The Triangle Pointer pointing down */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Pulls it down outside the box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* Subtle Quote Icon Background */
.quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    color: #f1f5f9; /* Very faint gray */
    z-index: 0;
}

.speech-bubble p {
    position: relative;
    z-index: 1; /* Keeps text above the quote icon */
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

/* Star Rating */
.stars {
    color: var(--accent); /* Your brand amber/gold */
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Customer Name & State */
.customer-info {
    text-align: center;
}

.customer-info h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.customer-info span {
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* =========================================
   PRODUCT IMAGE INTEGRATION
   ========================================= */


/* For the Add-on Cards */
.addon-image {
    background: #ffffff;
    width: 60px; 
    height: 60px;
    border-radius: 8px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    border: 1px solid #e2e8f0;
}

.addon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* =========================================
   ENGINEERING & HARDWARE SECTION
   ========================================= */

/* The warning strobe animation for the PWM wave */
@keyframes pwmPulse {
    0% { filter: drop-shadow(0 0 2px rgba(248, 113, 113, 0.2)); opacity: 0.5; }
    100% { filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.9)); opacity: 1; transform: scale(1.2); }
}

.waveform-block svg {
    display: block;
}



/* ========================================= */
/* --- HERO ROOM CROSSFADE SECTION ---       */
/* ========================================= */

.sunrise-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b1121; /* Dark base prevents any white flash during transitions */
}

/* Background Image Container */
.room-bg-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Base Image Layer */
.room-bg-stack .room-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* Changed from center to keep the lamp in frame */
  opacity: 0;
  transition: opacity 3s ease-in-out;
  will-change: opacity;
}

/* Active State */
.room-bg-stack .room-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Ensure Text & Card are legible over the image */
.hero-container-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.sunrise-text {
  max-width: 600px;
  background: rgba(15, 23, 42, 0.65); /* Frosted dark glass so copy is readable in 6500K bright mode */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sunrise-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.sunrise-text p {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.6;
}


/* ========================================= */
/* --- INTERACTIVE GLASS CLOCK ---           */
/* ========================================= */

.interactive-clock-wrapper {
  position: absolute;
  bottom: 40px; /* Lowered from 80px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}


/* Text Displays */
.clock-readout {
  color: #ffffff;
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 16px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
  letter-spacing: 1px;
  
  /* NEW: Locks the width and centers the text */
  min-width: 150px;
  text-align: center;
}

.clock-instruction {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  user-select: none;
}

/* ========================================= */
/* --- CLOCK PHASE TEXT (THIN & CLEAN) ---   */
/* ========================================= */

.clock-phase-container {
  position: relative;
  height: 24px; /* Reserves space so the container doesn't collapse */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.phase-text {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 400; /* Clean, thin appearance */
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 2px;
  
  /* Drop shadow ensures legibility even over bright images */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); 
  
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.8s ease-in-out;
  pointer-events: none;
  white-space: nowrap;
}

.phase-text.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/* --- MELANOPSIN CURVE SECTION ---          */
/* ========================================= */


/* Custom styling for the pill in this specific section */
.spectrum-pill, .engineering-pill {
    background: rgba(0, 157, 148, 0.15);
    color: var(--primary); /* Assumes --primary is your teal */
    border: 1px solid rgba(0, 157, 148, 0.3);
    margin-bottom: 1.5rem;
}


/* Removes the extra gap under the final paragraph */
.section-spectrum p:last-child, .section-engineering p:last-child {
    margin-bottom: 0;
}

/* The slightly larger, bolder paragraph */
.spectrum-emphasized, .engineering-emphasized {
    font-size: 1.05rem !important; 
    font-weight: 600;
    margin-bottom: 10px !important;
    color: #e2e8f0 !important; /* Made this a touch brighter so it stands out */
}
.note{
    font-size: 0.75rem !important;
}

/* =========================================
   3D FLYING CARD CAROUSEL
   ========================================= */

.flying-card-stage {
    position: relative;
    height: 600px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Gives the 3D depth */
}

/* The Pre-Reveal "Stacked" State */
.flying-card-stage:not(.stage-revealed) .flying-card {
    opacity: 0 !important;
    /* Pulls all cards into the dead center, pushed deep into the background */
    transform: translateX(0) translateY(80px) scale(0.4) translateZ(-400px) rotateY(0deg) rotateZ(0deg) !important;
    pointer-events: none;
}

/* Base Card Styling */
.flying-card {
    position: absolute;
    width: 360px;
    height: 520px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    /* The Magic: Smoothly animates position, scale, and fade */
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Starting state is hidden in the back */
    opacity: 0;
    transform: scale(0.6) translateZ(-400px);
    pointer-events: none;
}

/* Image Top Half */
.card-hero-img {
    height: 220px;
    width: 100%;
    background: #e2e8f0;
    overflow: hidden;
}

.card-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Text Bottom Half */
.card-text-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.card-icon {
    position: absolute;
    top: -20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    border: 3px solid #ffffff;
}

.card-text-body {
    background: #f8fafc; /* NEW: Soft gray background */
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    border-top: 1px solid #e2e8f0; /* Optional: Adds a crisp line between the white UI and the gray text */
}

.card-text-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-text-body h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 24px; /* Increased from 12px */
}

/* =========================================
   THE 3D POSITIONS (Managed by JS)
   ========================================= */

/* The Center, Active Card */
.flying-card.active {
    opacity: 1;
    transform: translateX(0) scale(1.02) translateZ(0); /* Nudged up from 1.0 */
    z-index: 10;
    box-shadow: 
        0 0 0 2px rgba(0, 157, 148, 0.15), /* Subtle teal ring for edge definition */
        0 35px 70px -15px rgba(15, 23, 42, 0.4); /* Deeper, more grounded drop shadow */
    pointer-events: auto;
}

.flying-card.active .card-hero-img img {
    transform: scale(1.05); /* Slight zoom on the active image */
}

/* The Cards Immediately to the Left/Right */
.flying-card.prev-1 {
    opacity: 1;
    filter: brightness(0.85);
    /* Added rotateZ(-3deg) at the end */
    transform: translateX(-55%) translateY(6%) scale(0.85) translateZ(-100px) rotateY(5deg) rotateZ(-3deg);
    z-index: 5;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    cursor: pointer;
}

.flying-card.next-1 {
    opacity: 1;
    filter: brightness(0.85);
    /* Added rotateZ(3deg) at the end */
    transform: translateX(55%) translateY(6%) scale(0.85) translateZ(-100px) rotateY(-5deg) rotateZ(3deg);
    z-index: 5;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    cursor: pointer;
}

/* The Cards Two Steps Away */
.flying-card.prev-2 {
    opacity: 1;
    filter: brightness(0.65);
    /* Added rotateZ(-6deg) at the end */
    transform: translateX(-95%) translateY(12%) scale(0.7) translateZ(-200px) rotateY(10deg) rotateZ(-6deg);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.flying-card.next-2 {
    opacity: 1;
    filter: brightness(0.65);
    /* Added rotateZ(6deg) at the end */
    transform: translateX(95%) translateY(12%) scale(0.7) translateZ(-200px) rotateY(-10deg) rotateZ(6deg);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

/* Hover effects for side cards to invite clicking (brightens them instead of changing opacity) */
.flying-card.prev-1:hover, .flying-card.next-1:hover,
.flying-card.prev-2:hover, .flying-card.next-2:hover {
    filter: brightness(0.98);
    border: 1px solid #e2e8f0;
}

/* Navigation Buttons */
.flying-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

.fly-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fly-btn:hover {
    background: var(--primary);
    color: #ffffff;
    stroke: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.fly-btn svg {
    transition: stroke 0.2s ease, color 0.2s ease;
}

.fly-btn:hover svg,
.fly-btn:hover svg * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}


/* =========================================
   OVERRIDE SLIDER ANIMATION (EXACT SCALE)
   ========================================= */

.flying-card.active .override-handle {
    animation: overrideScrub 4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.flying-card.active .mock-ui-fill {
    animation: overrideFill 4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.flying-card.active .override-time-counter::after {
    animation: overrideTimeCount 4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.flying-card.active .mock-nudge-minus {
    animation: overrideNudgePop 4s ease-out 0.6s both;
}

.override-time-counter::after {
    content: "30m";
}

/* 1. Handle Choreography (Mapped to 150m scale) */
@keyframes overrideScrub {
    0% { transform: translateY(0) scale(1); left: 17.2%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
    10% { transform: translateY(-3px) scale(1.07); left: 17.2%; box-shadow: 0 8px 12px rgba(0,0,0,0.15); }
    
    /* Slide to 60m (37.9% position) */
    25% { transform: translateY(-3px) scale(1.07); left: 37.9%; box-shadow: 0 8px 12px rgba(0,0,0,0.15); }
    
    /* Drop flat and wait */
    30%, 49% { transform: translateY(0) scale(1); left: 37.9%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } 
    
    /* Tick back to 55m (34.5% position) */
    50%, 64% { transform: translateY(0) scale(1); left: 34.5%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } 
    
    /* Tick back to 50m (31.0% position) */
    65%, 100% { transform: translateY(0) scale(1); left: 31%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } 
}

/* 2. Orange Track Fill */
@keyframes overrideFill {
    0%, 10% { width: 17.2%; }
    25%, 49% { width: 37.9%; }
    50%, 64% { width: 34.5%; }
    65%, 100% { width: 31%; }
}

/* 3. Text Incrementing Magic (Steps evenly during the 10%-25% slide window) */
@keyframes overrideTimeCount {
    0%, 10% { content: "30m"; }
    12.5%   { content: "35m"; }
    15%     { content: "40m"; }
    17.5%   { content: "45m"; }
    20%     { content: "50m"; }
    22.5%   { content: "55m"; }
    25%, 49% { content: "1h 0m"; } /* Hold at 60m */
    50%, 64% { content: "55m"; } /* Instantly change on Click 1 */
    65%, 100% { content: "50m"; } /* Instantly change on Click 2 */
}

/* 4. Minus Button "Pop" Effect */
@keyframes overrideNudgePop {
    0%, 49% { transform: scale(1); color: #cbd5e1; }
    50%     { transform: scale(1.3); color: var(--accent); } /* Click 1 */
    53%, 64% { transform: scale(1); color: #cbd5e1; }
    65%     { transform: scale(1.3); color: var(--accent); } /* Click 2 */
    68%, 100% { transform: scale(1); color: #cbd5e1; }
}

/* =========================================
   DUAL SYNC TOGGLE (DEFAULT STATIC STATES)
   ========================================= */

/* 1. Toggle Knob defaults to the left */
.mock-toggle-knob {
    transform: translateX(4px);
}

/* 2. "Natural" is highlighted Teal by default */
.mock-lbl-natural {
    color: var(--primary);
}

/* 3. "Fixed" is grayed out by default */
.mock-lbl-fixed {
    color: var(--text-muted);
}

/* 4. Natural Description is visible */
.mock-sec-natural {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 5. Fixed Description is hidden slightly below */
.mock-sec-fixed {
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
}

/* =========================================
   DUAL SYNC TOGGLE ANIMATION (ONE-SHOT)
   ========================================= */

/* The animations trigger when the card is in the center */
/* 2.5s duration, 0.6s delay, run once (both) */
.flying-card.active .mock-toggle-knob {
    animation: syncToggleKnob 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}
.flying-card.active .mock-lbl-natural {
    animation: syncLblNatural 2.5s ease 0.6s both;
}
.flying-card.active .mock-lbl-fixed {
    animation: syncLblFixed 2.5s ease 0.6s both;
}
.flying-card.active .mock-sec-natural {
    animation: syncSecNatural 2.5s ease 0.6s both;
}
.flying-card.active .mock-sec-fixed {
    animation: syncSecFixed 2.5s ease 0.6s both;
}

/* 1. The Switch Knob */
@keyframes syncToggleKnob {
    0%, 30%  { transform: translateX(4px); } /* Standard starting left-padding */
    40%, 100% { transform: translateX(28px); } /* Snaps to the right */
}

/* 2. "Natural" Label Color (Teal to Gray) */
@keyframes syncLblNatural {
    0%, 30%  { color: var(--primary); }
    40%, 100% { color: var(--text-muted); }
}

/* 3. "Fixed" Label Color (Gray to Teal) */
@keyframes syncLblFixed {
    0%, 30%  { color: var(--text-muted); }
    40%, 100% { color: var(--primary); }
}

/* 4. Crossfade the inner UI Text */
@keyframes syncSecNatural {
    0%, 30%  { opacity: 1; transform: translateY(0); pointer-events: auto; }
    40%, 100% { opacity: 0; transform: translateY(-5px); pointer-events: none; }
}

@keyframes syncSecFixed {
    0%, 30%  { opacity: 0; transform: translateY(5px); pointer-events: none; }
    40%, 100% { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* =========================================
   SMART OFFSETS ANIMATION (SEQUENTIAL)
   ========================================= */

.flying-card.active .mock-rise-handle { animation: offsetRiseScrub 6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.flying-card.active .mock-rise-time::after { animation: offsetRiseTime 6s cubic-bezier(0.4, 0, 0.2, 1) both; }

.flying-card.active .mock-nudge-plus { animation: offsetNudgePop 6s ease-out both; }
.flying-card.active .mock-set-handle { animation: offsetSetScrub 6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.flying-card.active .mock-set-time::after { animation: offsetSetTime 6s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Default static states */
.mock-rise-handle, .mock-set-handle { left: 50%; }
.mock-rise-time::after, .mock-set-time::after { content: "0m"; }

/* --- 1. Sunrise Animates (0s to ~2.5s) --- */
@keyframes offsetRiseScrub {
    0%, 10% { transform: translateY(0) scale(1); left: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
    15%     { transform: translateY(-3px) scale(1.07); left: 50%; box-shadow: 0 8px 12px rgba(0,0,0,0.15); } /* Lift */
    35%     { transform: translateY(-3px) scale(1.07); left: 37.5%; box-shadow: 0 8px 12px rgba(0,0,0,0.15); } /* Drag to -30m */
    40%, 100% { transform: translateY(0) scale(1); left: 37.5%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } /* Drop & Hold */
}

@keyframes offsetRiseTime {
    0%, 20% { content: "0m"; }
    27%     { content: "-15m"; }
    35%, 100% { content: "-30m"; }
}

/* --- 2. Sunset Animates (3.5s to 6s) --- */
@keyframes offsetNudgePop {
    0%, 53%  { transform: scale(1); color: #cbd5e1; }
    56%      { transform: scale(1.3); color: var(--accent); } /* Click +15m */
    60%, 68% { transform: scale(1); color: #cbd5e1; }
    71%      { transform: scale(1.3); color: var(--accent); } /* Click +30m */
    75%, 83% { transform: scale(1); color: #cbd5e1; }
    86%      { transform: scale(1.3); color: var(--accent); } /* Click +45m */
    90%, 100%{ transform: scale(1); color: #cbd5e1; }
}

@keyframes offsetSetScrub {
    0%, 55%  { transform: translateY(0) scale(1); left: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
    57%, 70% { transform: translateY(0) scale(1); left: 56.25%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } /* Jump to +15m */
    72%, 85% { transform: translateY(0) scale(1); left: 62.5%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } /* Jump to +30m */
    87%, 100%{ transform: translateY(0) scale(1); left: 68.75%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } /* Jump to +45m */
}

@keyframes offsetSetTime {
    0%, 55%  { content: "0m"; }
    56%, 70% { content: "+15m"; }
    71%, 85% { content: "+30m"; }
    86%, 100%{ content: "+45m"; }
}

/* =========================================
   AMBIANCE SLIDERS & SCROLL ANIMATION
   ========================================= */

/* Bind the scroll physics */
.flying-card.active .mock-ambiance-scroll { animation: ambScroll 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

/* Bind Kelvin (Spectrum) Animations */
.flying-card.active .mock-k-min { animation: kMinAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-k-max { animation: kMaxAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-k-range { animation: kRangeAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-k-val-min::after { animation: kValMinAnim 12s step-end infinite; }
.flying-card.active .mock-k-val-max::after { animation: kValMaxAnim 12s step-end infinite; }

/* Bind Brightness Animations */
.flying-card.active .mock-b-min { animation: bMinAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-b-max { animation: bMaxAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-b-range { animation: bRangeAnim 12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.flying-card.active .mock-b-val-min::after { animation: bValMinAnim 12s step-end infinite; }
.flying-card.active .mock-b-val-max::after { animation: bValMaxAnim 12s step-end infinite; }

/* 1. Page Scroll Sequence */
@keyframes ambScroll {
    0%, 40%   { transform: translateY(0); }
    45%, 85%  { transform: translateY(-135px); }
    90%, 100% { transform: translateY(0); }
}

/* 2. Kelvin (Spectrum) Values */
.mock-k-val-min::after { content: "1800K"; }
.mock-k-val-max::after { content: "6000K"; }

/* Left handle moves first */
@keyframes kMinAnim {
    0%, 10%   { left: 10%; background: #ffb04f; }
    18%, 88%  { left: 25%; background: #ffd085; }
    92%, 100% { left: 10%; background: #ffb04f; }
}
/* Right handle moves second */
@keyframes kMaxAnim {
    0%, 22%   { left: 90%; background: #cce0ff; }
    30%, 88%  { left: 75%; background: #e0edff; }
    92%, 100% { left: 90%; background: #cce0ff; }
}
/* Range tracks the handles independently */
@keyframes kRangeAnim {
    0%, 10%   { clip-path: inset(0 10% 0 10%); } /* Left thumb 10%, Right thumb 90% (10% inset from right) */
    18%, 22%  { clip-path: inset(0 10% 0 25%); } /* Left thumb 25%, Right thumb 90% */
    30%, 88%  { clip-path: inset(0 25% 0 25%); } /* Left thumb 25%, Right thumb 75% (25% inset from right) */
    92%, 100% { clip-path: inset(0 10% 0 10%); }
}
@keyframes kValMinAnim {
    0%, 14%   { content: "1800K"; }
    14%, 88%  { content: "2700K"; }
    92%, 100% { content: "1800K"; }
}
@keyframes kValMaxAnim {
    0%, 26%   { content: "6000K"; }
    26%, 88%  { content: "5000K"; }
    92%, 100% { content: "6000K"; }
}

/* 3. Brightness Values */
.mock-b-val-min::after { content: "12%"; }
.mock-b-val-max::after { content: "100%"; }

/* Left handle moves first */
@keyframes bMinAnim {
    0%, 50%   { left: 12%; }
    58%, 88%  { left: 30%; }
    92%, 100% { left: 12%; }
}
/* Right handle moves second */
@keyframes bMaxAnim {
    0%, 62%   { left: 100%; }
    70%, 88%  { left: 80%; }
    92%, 100% { left: 100%; }
}
/* Range tracks the handles independently */
@keyframes bRangeAnim {
    0%, 50%   { left: 12%; width: 88%; }
    58%, 62%  { left: 30%; width: 70%; }
    70%, 88%  { left: 30%; width: 50%; }
    92%, 100% { left: 12%; width: 88%; }
}
@keyframes bValMinAnim {
    0%, 54%   { content: "12%"; }
    54%, 88%  { content: "30%"; }
    92%, 100% { content: "12%"; }
}
@keyframes bValMaxAnim {
    0%, 66%   { content: "100%"; }
    66%, 88%  { content: "80%"; }
    92%, 100% { content: "100%"; }
}

/* =========================================
   CIRCADIAN ZONES ANIMATION (DRAWER PULL)
   ========================================= */

/* Base styling: Permanently tinted with a faint border */
.mock-zone-btn {
    padding: 12px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--zbg); 
    opacity: 0.5; 
    transform: scale(0.95);
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

/* Bind the animations only when the card is active */
.flying-card.active .mock-zone-drawer { animation: drawerPull 7.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.flying-card.active .mock-drawer-arrow { animation: arrowFlip 7.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.flying-card.active .mock-tab-text::after { animation: tabTextSwap 7.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

.flying-card.active .mock-z-kitchen { animation: zoneHighlight1 7.5s ease-in-out both; }
.flying-card.active .mock-z-living  { animation: zoneHighlight2 7.5s ease-in-out both; }
.flying-card.active .mock-z-hall    { animation: zoneHighlight3 7.5s ease-in-out both; }
.flying-card.active .mock-z-bedroom { animation: zoneHighlight4 7.5s ease-in-out both; }

/* Default state for the tab text */
.mock-tab-text::after { content: "Kitchen"; }

/* Default state for the tab container */
.mock-tab-container {
    background-color: #f97316; /* Starts as Kitchen orange */
}

/* Bind the color swap animation */
.flying-card.active .mock-tab-container { 
    animation: tabColorSwap 7.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; 
}

/* 1. Drawer slides down, holds, and retracts */
@keyframes drawerPull {
    0%, 8%    { transform: translateY(0); } 
    13%, 88%  { transform: translateY(340px); } /* Increased from 190px */
    93%, 100% { transform: translateY(0); } 
}

/* Flips the chevron arrow when open */
@keyframes arrowFlip {
    0%, 8%    { transform: rotate(0deg); }
    13%, 88%  { transform: rotate(180deg); }
    93%, 100% { transform: rotate(0deg); }
}

/* Swaps the text on the drawer tab as selection changes */
@keyframes tabTextSwap {
    0%, 28%  { content: "Kitchen"; }
    32%, 47% { content: "Living Room"; }
    51%, 66% { content: "Hall"; }
    70%, 100%{ content: "Haley's Room"; }
}

/* Swaps the background color on the drawer tab */
@keyframes tabColorSwap {
    0%, 28%  { background-color: #f97316; } /* Kitchen (Orange) */
    32%, 47% { background-color: #14b8a6; } /* Living Room (Teal) */
    51%, 66% { background-color: #3b82f6; } /* Hall (Blue) */
    70%, 100%{ background-color: #a855f7; } /* Bedroom (Purple) */
}

/* 2. Kitchen Zone (Starts Active) */
@keyframes zoneHighlight1 {
    0%, 28%   { transform: scale(1.05); opacity: 1; border-color: var(--zc); border-left-color: var(--zc); box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: var(--text); font-weight: 700; }
    32%, 100% { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
}

/* 3. Living Room */
@keyframes zoneHighlight2 {
    0%, 28%   { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
    32%, 47%  { transform: scale(1.05); opacity: 1; border-color: var(--zc); border-left-color: var(--zc); box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: var(--text); font-weight: 700; }
    51%, 100% { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
}

/* 4. Hall */
@keyframes zoneHighlight3 {
    0%, 47%   { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
    51%, 66%  { transform: scale(1.05); opacity: 1; border-color: var(--zc); border-left-color: var(--zc); box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: var(--text); font-weight: 700; }
    70%, 100% { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
}

/* 5. Bedroom (Ends Active) */
@keyframes zoneHighlight4 {
    0%, 66%   { transform: scale(0.95); opacity: 0.5; border-color: #e2e8f0; border-left-color: transparent; color: var(--text-muted); font-weight: 600; }
    70%, 100% { transform: scale(1.05); opacity: 1; border-color: var(--zc); border-left-color: var(--zc); box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: var(--text); font-weight: 700; }
}

/* =========================================
   CIRCADIAN RING ANIMATION (ADVANCED 24-HOUR)
   ========================================= */

/* 1. Full 360-Degree Inner Light Ring (Rotated 5% / 18deg CCW) */
.mock-active-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 182px;
    height: 182px;
    border-radius: 50%;
    background: conic-gradient(
        from -18deg, 
        #d3e3ff 0deg,           
        #d3e3ff 116.25deg,      
        #fff8d1 138.75deg,      
        #ff6c00 161.25deg,      
        #ff6c00 180deg,         
        #ff6c00 277.5deg,       
        #fff8d1 300deg,         
        #d3e3ff 322.5deg,       
        #d3e3ff 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 77px, black 77.5px);
    mask: radial-gradient(circle, transparent 77px, black 77.5px);
}

/* 2. Outer Daytime Solid Ring */
.mock-day-arc {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 224px; height: 224px;
    border-radius: 50%;
    /* Started 1 degree earlier and extended to tuck safely underneath the rounded cap dots */
    background: conic-gradient(from 276.5deg, var(--primary) 0deg, var(--primary) 200.75deg, transparent 200.75deg);
    /* Cut exactly at 98px to create a mathematically perfect 14px thick ring centered at 105px */
    -webkit-mask: radial-gradient(circle, transparent 98px, black 98px);
    mask: radial-gradient(circle, transparent 98px, black 98px);
}

/* Rounded Caps & White Dots for the Day Arc */
.mock-dot-rise, .mock-dot-set {
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    margin-top: -7px; margin-left: -7px;
    background: #fff;
    border: 4px solid var(--primary);
    border-radius: 50%;
}
/* Placed exactly at radius 105px at the start and end angles */
.mock-dot-rise { transform: rotate(277.5deg) translateY(-105px); }
.mock-dot-set  { transform: rotate(116.25deg) translateY(-105px); }

/* 3. Nightlight Dashed Line (Matches UI stroke-width="3" and dasharray="6 8") */
.mock-night-arc {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 192px; height: 192px;
    border-radius: 50%;
    /* 3.6deg dash and 4.8deg gap (8.4 total) mathematically matches the 6 8 dash array */
    background: repeating-conic-gradient(var(--accent) 0deg, var(--accent) 3deg, transparent 3deg, transparent 5.5deg);
    /* Lowering the transparent stop to 92px creates a 3px thick stroke */
    -webkit-mask-image: radial-gradient(circle, transparent 90px, black 93px), conic-gradient(from 165deg, black 0deg, black 105deg, transparent 105deg);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(circle, transparent 93px, black 93px), conic-gradient(from 165deg, black 0deg, black 105deg, transparent 105deg);
    mask-composite: intersect;
}

/* 4. The Current Time Marker */
.mock-now-marker {
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 117px;
    margin-left: -2px; margin-top: -117px;
    transform-origin: bottom center;
}
.mock-now-marker::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 44px;
    background: #285285;
    border-radius: 2px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.3);
}

/* Bind Animations (15s for 5 stops) */
.flying-card.active .mock-now-marker { animation: nowMarkerRotate 15s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.flying-card.active .mock-center-data { animation: centerTextFade 15s ease-in-out infinite; }
.flying-card.active .mock-ring-period::after { animation: ringPeriodText 15s step-end infinite; }
.flying-card.active .mock-ring-time::after { animation: ringTimeText 15s step-end infinite; }
.flying-card.active .mock-ring-temp::after { animation: ringTempText 15s step-end infinite; }
.flying-card.active .mock-ring-bright::after { animation: ringBrightText 15s step-end infinite; }

/* Default Static States */
.mock-now-marker { transform: rotate(-82.5deg); }
.mock-ring-period::after { content: "Sunrise"; }
.mock-ring-time::after { content: "6:30 AM"; }
.mock-ring-temp::after { content: "2200K"; }
.mock-ring-bright::after { content: "12%"; }

/* 1. Marker Rotation Sequence */
@keyframes nowMarkerRotate {
    0%, 14%  { transform: rotate(-82.5deg); } 
    20%, 34% { transform: rotate(0deg); }     
    40%, 54% { transform: rotate(116.25deg); }
    60%, 74% { transform: rotate(142.5deg); } 
    80%, 94% { transform: rotate(210deg); }   
    100%     { transform: rotate(277.5deg); } 
}

/* 2. Center Text Cross-Fade & Zoom */
@keyframes centerTextFade {
    0%, 14%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    16%, 18% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    20%, 34% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    36%, 38% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    40%, 54% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    56%, 58% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    60%, 74% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    76%, 78% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    80%, 94% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    96%, 98% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    100%     { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 3. Period Text (Swaps while opacity is 0) */
@keyframes ringPeriodText {
    0%, 16.9%  { content: "Sunrise"; }
    17%, 36.9% { content: "Midday"; }
    37%, 56.9% { content: "Sunset"; }
    57%, 76.9% { content: "Evening"; }
    77%, 96.9% { content: "Nightlight"; }
    97%, 100%  { content: "Sunrise"; }
}

/* 4. Clock Time Text */
@keyframes ringTimeText {
    0%, 16.9%  { content: "6:30 AM"; }
    17%, 36.9% { content: "12:00 PM"; }
    37%, 56.9% { content: "7:45 PM"; }
    57%, 76.9% { content: "9:30 PM"; }
    77%, 96.9% { content: "2:00 AM"; }
    97%, 100%  { content: "6:30 AM"; }
}

/* 5. Color Temp Text */
@keyframes ringTempText {
    0%, 16.9%  { content: "2200K"; }
    17%, 36.9% { content: "6000K"; }
    37%, 56.9% { content: "2700K"; }
    57%, 76.9% { content: "2000K"; }
    77%, 96.9% { content: "1500K"; }
    97%, 100%  { content: "2200K"; }
}

/* 6. Brightness Text */
@keyframes ringBrightText {
    0%, 16.9%  { content: "35%"; }
    17%, 36.9% { content: "100%"; }
    37%, 56.9% { content: "50%"; }
    57%, 76.9% { content: "25%"; }
    77%, 96.9% { content: "5%"; }
    97%, 100%  { content: "35%"; }
}





/* Mobile Placement */
@media (max-width: 900px) {

    .testimonial-grid {
        grid-template-columns: 1fr; /* Stacks the 3 columns into 1 on mobile */
        gap: 30px;
    }
    .section-usage {
        background-position: bottom right;
        background-size: 60%;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 300px;
    }
    
    .usage-content {
        padding-left: 0; /* Remove extra padding on mobile */
        max-width: 100%;
    }
    .sunrise-hero {
        flex-direction: column;
        text-align: center;
    }
    .sunrise-text {
        padding: 15% 5% 5% 5%;
        align-items: center;
    }
    .sunrise-text h1 {
        font-size: 2.5rem;
    }
}
/* Hide the mobile image on desktop */
.mobile-usage-visual {
    display: none;
}

/* MOBILE RESPONSIVE (Unified & Cleaned) */
@media (max-width: 768px) {

    .room-bg-stack .room-slide {
        width: auto;         /* Allow the width to stretch as far as needed */
        max-width: none;     /* Break out of the global 100% max-width cage */
        height: 100%;        /* Lock the image exactly to the section's height */
        left: auto;          /* Remove the left anchor */
        right: 0;            /* Lock the lamp to the right edge of the screen */
    }

    /* 1. Base Layout Stacking */
    .nav-links { display: none; } 
    .mobile-toggle { display: block; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .trust-badges { justify-content: center; flex-wrap: wrap; }
    
    .grid-3, .split-layout { grid-template-columns: 1fr; }
    .pricing-grid { flex-direction: column; gap: 40px; } /* Added gap for breathing room */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    
    .hero-buttons {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;         
        flex-wrap: wrap;    
    }

    .slider-container label {
        color: #ffffff !important;
        opacity: 0.9;
    }

    .sunrise-text {
        padding: 10% 5% 2% 5% !important; /* Reduced top and bottom padding */
        align-items: center;
    }

    .slider-container {
        margin-top: 20px !important; /* Reduced from 50px to pull the bulb up */
    }

    .bulb-container {
        width: 280px;  /* Slightly smaller to fit better on small screens */
        height: 380px; /* Reduced height to pull the bulb up the screen */
        margin-top: -30px; /* Pulls the bulb container closer to the slider */
    }

    /* Adjust the glow master to follow the new bulb position */
    .glow-master {
        top: 4% !important; /* Moves the glow higher to match the new bulb height */
        width: 280px;
        height: 280px;
    }
        .usage-slider-wrapper {
            display: none;
        }
        /* 1. The Parent: Must have a height for the sticky child to 'slide' within */
    .section-solution {
        display: block; 
        padding: 0;
        overflow: visible;      /* CRITICAL: Allows children to stick */
        min-height: 200vh;      /* INCREASED: Makes the scroll path longer */
        background: transparent;
        position: relative;
    }

    /* 2. The Sticky Container: Pin this to the top */
    .solution-bg-layers {
        position: -webkit-sticky; 
        position: sticky;
        top: 0;                 /* Locks it to the very top of the phone screen */
        height: 50vh;           /* Takes up half the screen */
        width: 100%;
        z-index: 1;             /* Stays behind the scrolling text */
    }

    /* 3. The Scrolling Drawer: Slides up FROM BELOW the image */
    .solution-content-right {
        position: relative;
        z-index: 10;            /* Higher than the image */
        margin-top: 5vh;       /* Start the text below the sticky image */
        background: rgba(255, 255, 255, 0.7); /* See-through glass look */
        backdrop-filter: blur(15px);          
        -webkit-backdrop-filter: blur(15px);
        border-radius: 30px 30px 0 0;
        padding: 40px 20px 100px; 
        box-shadow: 0 -15px 40px rgba(0,0,0,0.1);
    }

    .mobile-icon-triggers {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 20;
    }
    .mobile-icon-triggers .stage-icon {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid transparent;
        transition: 0.3s;
    }

    .mobile-icon-triggers .stage-icon.active {
        border-color: var(--primary);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
    }
    /* 4. Touch-Friendly Slider & Icons */
    .feature-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .feature-list li {
        background: rgba(255,255,255,0.4);
        border-radius: 12px;
        padding: 12px !important;
        border: 1px solid rgba(0,0,0,0.05);
    }
    .stage-icon { width: 28px; height: 28px; font-size: 0.75rem; }
    .usage-slider-wrapper { margin-right: 20px; }

    input[type=range].circadian-slider::-webkit-slider-thumb { width: 28px; height: 28px; }
    input[type=range].circadian-slider::-moz-range-thumb { width: 28px; height: 28px; }

    /* 5. Add-on Grid Optimization */
    .addons-grid { grid-template-columns: 1fr; gap: 15px; }
    .addon-card { padding: 15px; }
    
    body { overflow-x: hidden; }

    /* Resize the Silent Smart Light graphic on mobile */
    .emf-graphic {
        width: 180px !important;  /* Shrunk from 280px */
        height: 180px !important; /* Shrunk from 280px */
        margin: 0 auto;           /* Centers it */
    }

    .emf-graphic svg {
        width: 80px !important;   /* Shrunk from 140px */
        height: 80px !important;  /* Shrunk from 140px */
    }

    .emf-graphic div {
        font-size: 0.7rem !important; /* Slightly smaller text */
    }
    /* Stack privacy features vertically on mobile */
    .tech-specs {
        flex-direction: column; /* Switches from horizontal to vertical */
        gap: 15px;              /* Adds breathing room between items */
        align-items: center;    /* Centers them for a clean look */
        margin-top: 30px;
    }

    .tech-specs span {
        font-size: 1rem;        /* Makes the text a bit easier to read on mobile */
    }

    /* 1. Remove the background image on mobile */
    .section-usage {
        position: relative;
        background-image: url('assets/wall_switch.png') !important;
        background-size: cover !important;
        background-position:70% center !important;
        min-height: 80vh; /* Fills most of the mobile screen */
        display: flex;
        align-items: center;
        padding: 0 !important;
    }
    .usage-overlay {
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to bottom, 
            rgba(255, 255, 255, 0.7) 0%, 
            rgba(255, 255, 255, 0.4) 50%, 
            rgba(255, 255, 255, 0.8) 100%
        );
        backdrop-filter: blur(2px); /* Softens the 90s look of the photo */
        padding: 60px 0;
        display: flex;
        align-items: center;
    }
    .usage-content {
        text-align: left; /* Keep the text left-aligned as requested earlier */
        max-width: 100%;
        z-index: 2;
    }

    /* Ensure the checklist items are clear on top of the image */
    .check-item {
        background: rgba(255, 255, 255, 0.6);
        padding: 8px 12px;
        border-radius: 8px;
        margin-bottom: 8px;
        backdrop-filter: blur(2px);
    }

    /* 2. Style the new mobile image container */
    .mobile-usage-visual {
        display: block; /* Shows on mobile */
        width: 100%;
        max-width: 280px;
        margin: 20px auto; /* Centers it */
    }

    .mobile-usage-visual img {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    }

    /* 3. Center the text for mobile clarity */
    .usage-content {
        text-align: center;
        max-width: 100%;
        padding: 25px;
        border-radius: 16px;
        margin: 0 15px;
    }

    .feature-checklist {
        grid-template-columns: 1fr;  /* Stacks items vertically on mobile */
        gap: 12px;                   
        padding-left: 10%;           
    }

    .check-item {
        text-align: left;            /* Ensures text stays left-aligned */
        width: 100%;
    }
        .usage-overlay {
        /* On mobile, stack the gradient top-to-bottom */
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(15, 23, 42, 0.2) 100%);
    }
    .glass-badge {
        margin-top: 40px;
        transform: none;
    }
    .hero-container-content {
        margin-top: 150px;
    }
    #science .split-layout {
        grid-template-columns: 1.5fr 1fr;
    }
    .card-text-body h3 {
        margin-bottom: 8px; /* Reduces the gap from 24px down to 8px on mobile */
    }
    .price-card.featured.visible {
        transform: scale(1.0) translateY(0) !important;
    }

    .flying-card-stage { height: 550px; perspective: 800px; }
    .flying-card { width: 300px; height: 480px; }
    
    /* Bring them closer together on small screens */
    .flying-card.prev-1 { transform: translateX(-35%) scale(0.85) translateZ(-100px); }
    .flying-card.next-1 { transform: translateX(35%) scale(0.85) translateZ(-100px); }
    .flying-card.prev-2 { transform: translateX(-65%) scale(0.7) translateZ(-200px); opacity: 0; pointer-events: none;}
    .flying-card.next-2 { transform: translateX(65%) scale(0.7) translateZ(-200px); opacity: 0; pointer-events: none;}

}









/* 1. Full-Bleed Section Wrapper */
.addon-carousel-section {
    position: relative;
    grid-column: 1 / -1; 
    width: 100vw;
    margin-left: calc(50% - 50vw); /* Breaks out of the 1100px container */
    
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0 0 0;
    margin-top: 20px;
}
.addon-carousel-section:last-of-type {
    border-bottom: none;
}

/* 2. Keep the Header aligned with the main website container */
.addon-carousel-header {
    max-width: 1100px;
    margin: 0 auto 15px auto;
    padding: 0 20px; /* Matches your global container padding */
}

.addon-carousel-header h4 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 4px;
}


/* 3. The Horizontal Track */
.addon-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    
    /* Fixed: The massive padding is ONLY applied to the Left to align with your header. */
    /* The right side stays at 20px so the scrolling stops cleanly at the last card. */
    padding: 20px 20px 40px max(20px, calc(50vw - 550px + 20px));
    scroll-padding-left: max(20px, calc(50vw - 550px + 20px)); /* Instructs the snap physics where the start line is */
    
    scrollbar-width: none; 
}
.addon-carousel::-webkit-scrollbar { display: none; }


/* 1. Center the track if all cards fit */
.addon-carousel.is-centered {
    justify-content: center;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 2. Bypass the scroll observer and force cards to be pure white & active */
.addon-carousel.is-centered .swipe-card {
    opacity: 1 !important; /* Forces the card to be solid white! */
    transform: scale(1) translateY(-10px) !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15) !important;
    border-color: var(--primary) !important;
}

/* 3. Individual White Cards (Resting State) */
.swipe-card {
    flex: 0 0 360px; 
    scroll-snap-align: start; /* Snaps firmly to the left padding instead of the center */
    background: #ffffff; !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, opacity 0.4s ease;
    transform: scale(0.95);
    opacity: 0.5;
}

/* 4. The Snapped (Active) State */
.swipe-card.snapped, .swipe-card:hover {
    transform: scale(1) translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    opacity: 1;
    border-color: var(--primary);
}

/* Inside the Card */
.swipe-img-box {
    height: 340px; 
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
}

.swipe-img-box img {
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

.swipe-info {
    padding: 25px; /* Increased from 10px to give the bulb text breathing room */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.swipe-title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.swipe-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; flex: 1; }

.swipe-action {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.swipe-price { font-weight: 500; font-size: 1.1rem; color: var(--text); }

/* Desktop Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.carousel-arrow:hover { border-color: var(--primary); color: var(--primary); }
.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

/* ----------------------------------------- */
/* KIT CAROUSEL OVERRIDES                    */
/* ----------------------------------------- */

/* Remove the track background so it blends with the shop section */
.kits-carousel-wrapper {
    background: transparent !important;
    border: none !important;
    margin-top: 40px !important;
}

/* Make kit cards wider and pad the interior */
.kit-card {
    position: relative;
    overflow: hidden; 
    flex: 0 0 400px; /* Wider than the 360px bulb cards */
}

/* Apply specific padding ONLY to the text block inside the kits */
.kit-card .swipe-info {
    padding: 0 30px 30px 30px; 
}
/* Maintain the thick teal border for the featured kit */
.kit-card.featured-kit {
    border: 2px solid var(--primary) !important;
}

/* Ensure the banner floats over the card edge properly */
.kit-card .badge {
    z-index: 10;
}

/* 5. Mobile Layout */
@media (max-width: 768px) {
    .carousel-arrow { display: none; }
    
    .addon-carousel {
        /* Fixed: Removes the 50vw mobile padding hack. Cards start cleanly at the left edge. */
        padding: 20px 20px 40px 20px;
        scroll-padding-left: 20px;
        gap: 15px;
    }
    
    .swipe-card {
        flex: 0 0 280px; 
        scroll-snap-align: start; /* Snaps cleanly to the left 20px margin */
    }

    .swipe-img-box {
        height: 240px; /* Shrinks the massive desktop image box to fit the smaller 250px mobile card */
    }
    .kit-card {
        flex: 0 0 300px; 
        /* Padding removed from the wrapper here too */
    }
    
    .kit-card .swipe-info {
        padding: 0 20px 25px 20px; /* Snug, mobile-friendly text padding */
    }
}