/* --- Solar Tabs Section (GSAP Scroll) --- */
:root {
    /* Brand-aligned pastel backgrounds */
    --brand-yellow: #fffde7;
    /* Light Yellow (matches accent) */
    --brand-lilac: #f9fafb;
    /* Cool Gray (Neutral for 'Problems') */
    --brand-pink: #f1f8e9;
    /* Light Green (matches primary) */
    --brand-green: #fff8e1;
    /* Amber hint (matches accent hover) */
    --brand-gray: #f9f9f9;
}

.sx-tabs-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    font-family: var(--font-body);
}

.sx-pin-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .sx-pin-container {
        min-height: 100vh;
        justify-content: flex-start;
        /* Start from top to avoid pushing header off-screen */
        padding-top: calc(var(--header-height, 80px) + 2rem);
        /* Offset for sticky site header */
    }
}

/* Sticky Rail */
.sx-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    /* gray-100 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    will-change: transform, background-color;
}

@media (min-width: 768px) {
    .sx-sticky-header {
        border: none;
        box-shadow: none;
        position: relative;
    }
}

.sx-tabs-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    /* gap-3 */
    overflow-x: auto;
    padding: 1.25rem 40vw;
    /* py-5 px-[40vw] */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.sx-tabs-rail::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .sx-tabs-rail {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        /* gap-4 */
        padding: 0 7.5vw;
        overflow-x: visible;
    }
}

/* Tab Buttons */
.sx-tab-btn {
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    min-width: 220px;
    background-color: var(--brand-gray);
    color: #9ca3af;
    /* text-gray-400 */
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
}

@media (min-width: 768px) {
    .sx-tab-btn {
        min-width: 0;
        font-size: 0.875rem;
        /* text-sm */
    }
}

.sx-tab-btn.active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 1;
    color: var(--color-primary-dark);
    /* Primary Dark */
}

/* Active Colors - Fixed selectors to match HTML classes */
.sx-tab-btn.active.bg-brand-yellow {
    background-color: var(--brand-yellow);
    color: var(--color-primary-dark);
    /* Darker yellow/brown text */
}

.sx-tab-btn.active.bg-brand-lilac {
    background-color: var(--brand-lilac);
    color: var(--color-primary-dark);
    /* Dark Gray */
}

.sx-tab-btn.active.bg-brand-pink {
    background-color: var(--brand-pink);
    color: var(--color-primary-dark);
    /* Primary Green */
}

.sx-tab-btn.active.bg-brand-green {
    background-color: var(--brand-green);
    color: var(--color-primary-dark);
    /* Primary Green */
}


/* Content Slides */
.sx-content-wrapper {
    position: relative;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .sx-content-wrapper {
        margin-top: 3rem;
    }
}

.sx-horizontal-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Reduced from 4rem for mobile */
    /* gap-16 */
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sx-horizontal-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2.5rem;
        /* gap-10 */
        padding: 0 7.5vw;
    }
}

/* Mobile Spacer for tracking */
.mobile-spacer {
    height: 3rem;
    /* Reduced mobile height */
    width: 100%;
    display: block;
}

@media (min-width: 768px) {
    .mobile-spacer {
        height: 10rem;
        /* Original height for desktop scroll */
    }
}

/* Panels/Cards */
.sx-panel {
    will-change: transform;
    flex: none;
    width: 94vw;
}

@media (min-width: 768px) {
    .sx-panel {
        width: 85vw;
    }
}

.sx-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 48px;
    padding: 2rem;
    background-color: var(--brand-gray);
    /* Default */
}

@media (min-width: 768px) {
    .sx-card-inner {
        padding: 3.5rem;
        /* p-14 */
    }
}

.sx-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .sx-card-grid {
        grid-template-columns: 1fr 1fr;
        /* lg:grid-cols-2 */
        gap: 4rem;
    }
}

.sx-card-image {
    aspect-ratio: 4 / 3;
    border-radius: 36px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.sx-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sx-card-content h3 {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

@media (min-width: 768px) {
    .sx-card-content h3 {
        font-size: 3.5rem;
        /* text-6xl */
    }
}

.sx-card-text {
    margin-bottom: 2.5rem;
    color: #4b5563;
    /* gray-600 */
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 500;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .sx-card-text {
        font-size: 1.25rem;
        /* text-xl */
    }
}

.sx-btn-black {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(14, 34, 7, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--font-heading);
}

.sx-btn-black:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 20px 25px -5px rgba(251, 201, 26, 0.3);
}

/* Lists */
.sx-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sx-check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 768px) {
    .sx-check-item {
        font-size: 1.5rem;
        /* text-2xl */
    }
}

.sx-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #000;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* Grid for "Who it's for" */
.sx-compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .sx-compare-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sx-compare-box {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 32px;
}

.sx-compare-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.sx-compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 700;
}

/* Grid for "What you get" */
.sx-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .sx-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sx-benefit-item {
    display: flex;
    gap: 0.75rem;
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
}

.sx-icon-circle {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem;
    border-radius: 9999px;
    height: fit-content;
}