:root {
    scroll-behavior: smooth;
    /* Brand Colors */
    --color-sun-pop: #FFD22A;
    --color-hot-pink: #FF3EA5;
    --color-aqua-pop: #21C6C7;
    --color-mint: #8FE7C2;
    --color-ink: #111315;
    --color-white: #ffffff;
    --color-off-white: #f9f9f9;
    --color-amber: #df6a59;
    --pos-blue: #064796;
    --lavender: #79528e;
    --camo-green: #324612;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-ink);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.container {
    padding: 0 var(--spacing-sm);
    max-width: 1400px;
    /* Large screens */
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-heading);
    transition: var(--transition-standard);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.btn--primary {
    background-color: var(--color-hot-pink);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 62, 165, 0.4);
}

.btn--primary:hover {
    background-color: var(--color-sun-pop);
    color: var(--color-ink);
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(255, 210, 42, 0.5);
}

/* Typography Highlights */
.text-highlight {
    color: var(--color-hot-pink);
    position: relative;
    display: inline-block;
}

/* Add a fun underline SVG or shape later if needed, for now just color */


/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse;
    /* Mobile: Video top, Text bottom */
    width: 100%;
    min-height: auto;
    /* Let content stack naturally on mobile to avoid gaps */
}

.hero__content {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Mobile: Center CTA */
    text-align: center;
    /* Mobile: Center text */
    background-color: var(--color-white);
    z-index: 10;
}

.hero__headline {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.95;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero__subhead {
    font-size: 1.125rem;
    color: var(--color-ink);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    max-width: 40ch;
}

.hero__visual {
    flex: 1;
    height: 50vh;
    /* Fixed height for video container on mobile */
    min-height: 0;
    /* Override previous 50vh min-height */
    background-color: var(--color-ink);
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Responsiveness */
@media (min-width: 900px) {
    .hero {
        flex-direction: row;
        /* Text Left, Video Right */
        height: 85vh;
        /* Shorter than 100vh */
        max-height: 750px;
        /* Cap height to fit video better */
        min-height: 600px;
    }

    .hero__content {
        flex: 0 0 35%;
        /* Text takes ~1/3 */
        padding: var(--spacing-xl) var(--spacing-lg);
        align-items: flex-start;
        /* Desktop: Reset to Left align */
        text-align: left;
        /* Desktop: Reset to Left align */
    }

    .hero__visual {
        flex: 1;
        /* Video takes remaining space */
        height: 100%;
    }

    .hero__headline {
        font-size: 5.5rem;
    }

    .hero__subhead {
        font-size: 1.25rem;
    }
}

/* Scrolling Banner */
.banner-marquee {
    background-color: var(--color-sun-pop);
    color: var(--color-ink);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
    position: relative;
    user-select: none;
    border-top: 4px solid var(--color-ink);
    border-bottom: 4px solid var(--color-ink);
    /* Jaunty Angle */
    transform: rotate(-2deg) scale(1.05);
    /* Rotate and scale to cover edges */
    margin: -1rem 0;
    /* Overlap nicely */
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-md) 0;
    margin: -1rem 0;
    position: relative;
    z-index: 20;
}

/* Update marquee to fit inside wrapper without margins causing issues */
.banner-marquee {
    margin: 0;
    width: 110%;
    /* Ensure it's wide enough when rotated */
    margin-left: -5%;
    /* Center it back */
}

.banner-marquee__content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    gap: var(--spacing-lg);
    width: max-content;
    /* Ensure container fits content */
    padding-left: var(--spacing-lg);
    /* Initial offset */
}

.banner-marquee__item {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    display: inline-block;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
        /* Move by 1/3 since we have 3 sets */
    }
}

/* Section Common */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

/* Products Carousel */
.products {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-off-white);
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    /* Space for shadows */
    width: 100%;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.product-card {
    flex: 0 0 300px;
    /* Mobile width */
    scroll-snap-align: center;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-ink);
    /* Subtle border on hover */
}

.product-card__visual {
    height: 350px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.video-placeholder-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-white);
    font-size: 1.5rem;
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.product-card__content {
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Tighter gap */
}

.product-title {
    font-size: 1.5rem;
}

.product-desc {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    /* Reduced margin */
}

.scent-notes {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.product-price {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.price-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 1.125rem;
}

.price-current {
    font-weight: 900;
    color: var(--color-ink);
    font-size: 1.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.btn--subscribe {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    /* Matching rounded feel */
}

.where-to-buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.store-icons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
}

.store-icons img {
    height: 30px;
    /* Fixed height for consistency */
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.store-icons img:hover {
    transform: scale(1.1);
}

.link-one-time {
    font-size: 0.875rem;
    text-decoration: underline;
    color: #666;
    margin-top: 0;
}

.product-disclaimers {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xs) 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.product-disclaimers li {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-sub {
    font-size: 0.75rem;
    text-decoration: underline;
    margin-top: var(--spacing-xs);
    color: #888;
}

.carousel-btn {
    background: var(--color-white);
    border: 2px solid var(--color-ink);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    flex-shrink: 0;
    display: none;
    /* Hidden on mobile */
}

.carousel-btn:hover {
    background: var(--color-ink);
    color: var(--color-white);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .product-card {
        flex: 0 0 350px;
        /* Wider on desktop */
    }

    .carousel-btn {
        display: flex;
        /* Show buttons */
    }

    .carousel-track {
        gap: var(--spacing-lg);
    }
}

/* How it Works Section */
.how-it-works {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
}

.steps-grid {
    display: flex;
    /* Flex for mobile horizontal scroll */
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    overflow-x: auto;
    /* Enable scroll */
    padding-bottom: var(--spacing-sm);
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.steps-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    flex: 0 0 80%;
    /* Show most of card, peek next one */
    scroll-snap-align: center;
}

.step-card__visual {
    width: 100%;
    /* Removed fixed aspect-ratio to prevent cropping */
    max-height: 250px;
    /* Cap height explicitly to keep them small */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    background-color: var(--color-off-white);
    /* Fallback */
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-card:hover .step-card__visual {
    transform: translateY(-5px);
}

.step-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    object-position: center;
}

.step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--color-sun-pop);
    color: var(--color-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-ink);
    z-index: 2;
}

.step-title {
    font-size: 1.75rem;
    margin-top: var(--spacing-xs);
}

.step-desc {
    max-width: 30ch;
    color: #555;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .steps-grid {
        display: grid;
        /* Back to grid for desktop */
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        overflow-x: visible;
        padding-bottom: 0;
    }

    .step-card {
        flex: unset;
        /* Reset flex sizing */
    }

    .step-card__visual {
        height: 300px;
        /* Fixed height for consistency */
        max-height: none;
    }

    .step-desc {
        font-size: 1rem;
    }
}

/* Social Feed */
.social-feed {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
}

/* Removed .social-grid in favor of reusable .carousel-track */

.social-card {
    flex: 0 0 280px;
    /* Carousel width */
    aspect-ratio: 9 / 16;
    background-color: var(--color-ink);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: scale(1.02);
}

.social-card__visual {
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-video,
.social-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

/* Desktop Social */
@media (min-width: 768px) {
    .social-card {
        flex: 0 0 320px;
        /* Slightly larger on desktop */
    }
}

/* FAQ Section */
.faq {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background-color: var(--color-mint);
    /* Pastel */
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--color-ink);
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 4px 4px 0 var(--color-ink);
    transform: translate(-2px, -2px);
}

.faq-question {
    padding: var(--spacing-md);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 900;
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    line-height: 1.6;
    color: #444;
}

/* Footer */
.site-footer {
    background-color: var(--color-ink);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Comparison Section */
.comparison {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
}

.comparison-grid-wrapper {
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    /* Scroller space */
}

.comparison-grid {
    display: grid;
    /* Tighter columns: Features, Brand, Comp1, Comp2, Comp3 */
    grid-template-columns: 1fr 100px 80px 80px 80px;
    min-width: 500px;
    /* Allow tighter fit */
    gap: 2px;
    background-color: var(--color-ink);
    /* Border color for gap */
    position: relative;
    /* For pseudo-element border */
    border-radius: 12px;
    /* For shape */
    clip-path: inset(0 round 12px);
    /* Clip children (sticky headers) */
    overflow: visible;
    /* Allow sticky to work */
}

/* Border overlay to sit on top of sticky headers */
.comparison-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--color-ink);
    border-radius: 12px;
    z-index: 50;
    pointer-events: none;
}

.grid-header,
.grid-cell {
    padding: var(--spacing-sm) var(--spacing-xs);
    /* Reduced padding */
    text-align: center;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Sticky Features Column */
.header-feature,
.cell-feature {
    justify-content: flex-start;
    text-align: left;
    background-color: var(--color-off-white);
    position: sticky;
    left: 0;
    z-index: 20;
    border-right: 2px solid var(--color-ink);
    /* Separation line */
}

.header-feature {
    background-color: var(--color-white);
    z-index: 25;
    /* Higher than cells */
}

.header-competitor {
    background-color: #eee;
    font-size: 0.9rem;
    padding: 2px;
    flex-direction: column;
    overflow: visible;
}

.header-competitor img,
.header-brand img {
    width: 100%;
    height: 100px;
    /* Significantly smaller */
    object-fit: contain;
    /* Show whole bottle/logo */
    display: block;
    margin-bottom: 4px;
}

.header-competitor span,
.header-brand span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.header-brand {
    background-color: var(--color-mint);
    color: var(--color-ink);
    padding: 2px;
    flex-direction: column;
    overflow: visible;
}

.cell-brand {
    background-color: rgba(143, 231, 194, 0.2);
    /* faint mint */
    font-size: 1.5rem;
}

.grid-cell:not(.cell-feature) {
    font-size: 1.25rem;
    /* slightly smaller emoji for tight space */
}

/* Response to smaller screens */
@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
        min-width: auto;
    }

    .grid-cell:not(.cell-feature) {
        font-size: 1.5rem;
    }
}

/* Out of Stock Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 19, 21, 0.85);
    /* --color-ink with opacity */
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background-color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 4px solid var(--color-ink);
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-ink);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.modal__close:hover {
    transform: scale(1.1) rotate(90deg);
}

.modal__title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.modal__text {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
}

/* Ensure store icons signal clickability */
.store-icons img {
    cursor: pointer;
}