/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
    --color-bg:           #ffffff;
    --color-bg-alt:       #f8f9fa;
    --color-bg-mint:      #f0f8f4;
    --color-bg-dark:      #111111;
    --color-card:         #ffffff;
    --color-accent:       #4caf50;
    --color-accent-dark:  #388e3c;
    --color-accent-light: #81c784;
    --color-accent-glow:  rgba(76, 175, 80, 0.08);
    --color-red:          #e53935;
    --color-amber:        #f57c00;
    --color-text:         #1a1a1a;
    --color-text-muted:   #666666;
    --color-text-light:   #999999;
    --color-border:       #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-shadow:       rgba(0, 0, 0, 0.06);

    --font-display: 'Raleway', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 4px var(--color-shadow);
    --shadow-md:  0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);

    --transition: all 0.2s ease;

    --max-width:  1060px;
    --narrow:     780px;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-accent-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* =========================================
   Layout
   ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.content-narrow {
    max-width: var(--narrow);
    margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 3rem); }

.bg-light { background: var(--color-bg-alt); }
.bg-dark  { background: var(--color-bg-dark); color: #e0e0e0; }

/* =========================================
   Header / Navigation
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 62px;
    gap: 0;
}

.header-inner .main-nav--left  { grid-column: 1; grid-row: 1; }
.header-inner .logo             { grid-column: 2; grid-row: 1; }
.header-inner .main-nav--right  { grid-column: 3; grid-row: 1; }
.header-inner .nav-toggle       { grid-column: 1; grid-row: 1; }

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    justify-self: center;
}

.logo-top {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.logo-main span { color: #c62828; }
.logo:hover .logo-main { color: #c62828; }

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.main-nav--left  { justify-content: flex-start; padding-right: clamp(1rem, 3vw, 2.5rem); }
.main-nav--right { justify-content: flex-end;   padding-left:  clamp(1rem, 3vw, 2.5rem); }

.main-nav a {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active { color: var(--color-accent-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav-drawer { display: none; }

/* =========================================
   Hero
   ========================================= */
.hero {
    background: var(--color-bg);
    padding-top: 40px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-text);
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Hero Swiper */
.hero-swiper-wrap {
    width: 100%;
    overflow: hidden;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

.hero-swiper {
    width: 100%;
    overflow: visible;
}

.hero-swiper .swiper-slide {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.55;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: clamp(260px, 40vw, 480px);
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Nav arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: var(--color-text);
    transition: background 0.2s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: #fff;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Pagination dots */
.hero-swiper .swiper-pagination {
    bottom: -1.75rem;
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--color-text-muted);
    opacity: 0.4;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

.hero-swiper-wrap { padding-bottom: 2.5rem; }

.slide-review-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.slide-review-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;

}

/* Match carousel score pill font size to review link */
.hero-swiper .score-number {
    font-size: 0.8rem;
    line-height: 1;
}

.hero-swiper .score-label {
    font-size: 0.8rem;
}

/* =========================================
   Section Titles
   ========================================= */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: var(--color-text);
}

.section-title--center { text-align: center; }
.section-title--light  { color: #fff; }

/* =========================================
   Lead / Highlight text
   ========================================= */
.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.highlight-text {
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-accent-dark);
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-block: 1.75rem;
    line-height: 1.6;
}

/* =========================================
   Tip / Callout Box
   ========================================= */
.tip-box {
    background: var(--color-bg-mint);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin-block: 1.75rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.tip-box strong { color: var(--color-accent-dark); }

/* =========================================
   Article Images
   ========================================= */
.article-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-block: 2rem;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    object-fit: cover;
    max-height: 460px;
}

.article-image--contained { margin-block: 0; }
.article-image--contained img { max-height: 560px; }

/* =========================================
   Two-Column (What Is section)
   ========================================= */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-top: 1rem;
}

/* =========================================
   Wavelength Grid
   ========================================= */
.wavelength-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-block: 1.75rem;
}

.wavelength-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #ffffff;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.wavelength-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.wavelength-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.wavelength-item p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.wavelength-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    pointer-events: none;
}

/* Red */
.wavelength-red .wavelength-icon {
    background: linear-gradient(135deg, #f48a8a, #b71c1c);
    color: #fff;
}
.wavelength-red strong { color: #b71c1c; }
.wavelength-red .wavelength-glow {
    background: linear-gradient(to top, rgba(183, 28, 28, 0.13), transparent);
}

/* Blue */
.wavelength-blue .wavelength-icon {
    background: linear-gradient(135deg, #7aaff5, #1040a8);
    color: #fff;
}
.wavelength-blue strong { color: #1040a8; }
.wavelength-blue .wavelength-glow {
    background: linear-gradient(to top, rgba(16, 64, 168, 0.12), transparent);
}

/* Green */
.wavelength-green .wavelength-icon {
    background: linear-gradient(135deg, #6ec98a, #1b5e20);
    color: #fff;
}
.wavelength-green strong { color: #1b5e20; }
.wavelength-green .wavelength-glow {
    background: linear-gradient(to top, rgba(27, 94, 32, 0.12), transparent);
}

/* Near-Infrared */
.wavelength-nir .wavelength-icon {
    background: linear-gradient(135deg, #c084f5, #4a0072);
    color: #fff;
}
.wavelength-nir strong { color: #4a0072; }
.wavelength-nir .wavelength-glow {
    background: linear-gradient(to top, rgba(74, 0, 114, 0.12), transparent);
}

/* =========================================
   Wavelength Section Banner
   ========================================= */
.wave-length-section {
    min-height: 300px;
    width: 100%;
    border-radius: 14px;
    background-image: url('../assets/wavelengths.jpg');
    background-size: cover;
    background-position: bottom right;
    margin-block: 1.75rem;
    padding: 1.5rem;
    position: relative;
    overflow: visible;
    margin-bottom: 4rem;
}

.wave-length-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

/* Info panel */
.wls-info-panel {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 320px;
    z-index: 1;
    text-align: center;
}

.wls-info-slide {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    animation: wls-fade 0.25s ease;
}

.wls-info-slide.wls-info--active { display: flex; }

@keyframes wls-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wls-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.1rem;
}

.wls-info--red  .wls-info-icon { background: linear-gradient(135deg, #f48a8a, #b71c1c); color: #fff; }
.wls-info--blue .wls-info-icon { background: linear-gradient(135deg, #7aaff5, #1040a8); color: #fff; }
.wls-info--green .wls-info-icon { background: linear-gradient(135deg, #6ec98a, #1b5e20); color: #fff; }
.wls-info--nir  .wls-info-icon { background: linear-gradient(135deg, #c084f5, #4a0072); color: #fff; }

.wls-info--red  strong { color: #770d0d; }
.wls-info--blue strong { color: #173c8b; }
.wls-info--green strong { color: #08480c; }
.wls-info--nir  strong { color: #4a0072; }

.wls-info-slide strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.wls-info-slide p {
    font-size: 0.8rem;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}
.wls-overlay {
    position: absolute;
    bottom: -1.5rem;
    left: 1.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wls-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.wls-badges {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 0.5rem 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    gap: 10px;
}

.wls-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    min-width: 100px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

.wls-divider {
    width: 1px;
    height: 48px;
    background: rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.wls-dot {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 0.7rem;
}

.wls-dot--red   { background: radial-gradient(circle, #ce0000 0%, #e25959 50%, rgba(224, 82, 82, 0) 100%); box-shadow: 0 0 10px 5px rgb(226 132 132); }
.wls-dot--blue  { background: radial-gradient(circle, #2861c2 0%, #3074b9 50%, rgba(82, 153, 224, 0) 100%); box-shadow: 0 0 10px 5px rgb(55 124 193); }
.wls-dot--green { background: radial-gradient(circle, #248448 0%, #3ea865 50%, rgba(82, 176, 116, 0) 100%); box-shadow: 0 0 10px 5px rgb(101 186 131); }
.wls-dot--nir   { background: radial-gradient(circle, #c89af5 0%, #9052e0 50%, rgba(144,82,224,0) 100%); box-shadow: 0 0 10px 5px rgb(144, 82, 224); }

.wls-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    line-height: 1.2;
}

.wls-nm {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-align: center;
    font-weight: 500;
}

@media (max-width: 640px) {
    /* Stack the whole section vertically */
    .wave-length-section {
        min-height: 480px;
        height: 80vh;
        max-height: 650px;
        margin-bottom: 0;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 14px;
    }

    /* Info panel inside section, at the bottom */
    .wls-info-panel {
        position: static;
        width: 100%;
        order: 2;
    }

    .wls-info-slide {
        border-radius: 0;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.25rem;
    }

    /* Overlay (title + badges) sits at the top */
    .wls-overlay {
        position: static;
        order: 1;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1rem 1.25rem;
        border-radius: 14px 14px 0 0;
        gap: 0.6rem;
    }

    .wls-title {
        text-shadow: none;
        font-size: 1.1rem;
    }

    .wls-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }

    .wls-badge {
        background: rgba(255,255,255,0.5);
        border-radius: 10px;
        padding: 0.75rem 0.5rem;
        min-width: 0;
        border: 1px solid rgba(255,255,255,0.4);
    }

    .wls-badge--active {
        outline: 2px solid var(--color-accent-dark);
        outline-offset: 0;
    }

    /* Info panel sits at the bottom */
    .wls-info-slide {
        border-radius: 0 0 14px 14px;
        background: rgba(255,255,255,0.55);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.25rem;
    }

    .wls-dot { margin-bottom: 0.4rem; }
}

/* =========================================
   Hero Meta Line
   ========================================= */
.hero-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* =========================================
   Trust Badge Strip
   ========================================= */
.trust-strip {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: 1rem;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.trust-badge svg { color: var(--color-accent-dark); flex-shrink: 0; }

/* =========================================
   Institutions Bar
   ========================================= */
.institutions-bar {
    background: var(--color-bg);
    padding-block: 1.1rem;
    text-align: center;
}

.institutions-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    opacity: 0.5;
    margin-bottom: 0.75rem;
    margin-top: 20px;
}

.institutions-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.institutions-list li {
    padding-inline: 1.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.institutions-list li img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.2s ease;
}

.institutions-list li img:hover {
    filter: grayscale(100%) opacity(0.7);
}

@media (max-width: 640px) {
    .institutions-list li + li { border-left: none; }
    .institutions-list { gap: 0.75rem 1.5rem; }
    .institutions-list li { padding-inline: 0; }
    .institutions-list li img { height: 22px; max-width: 90px; }
}

/* =========================================
   Methodology Stats
   ========================================= */
.methodology-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: var(--narrow);
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--color-bg-mint);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-lg);
}

.methodology-stat {
    text-align: center;
    padding: 0.5rem;
}

.mstat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent-dark);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.mstat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 560px) {
    .methodology-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   References Section
   ========================================= */
.references-section {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.references-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    counter-reset: refs;
}

.references-list li {
    counter-increment: refs;
    position: relative;
    padding-left: 2.25rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 0.875rem;
}

.references-list li::before {
    content: '[' counter(refs) ']';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-accent-dark);
    font-size: 0.75rem;
    top: 2px;
    min-width: 1.75rem;
}

.references-list em { font-style: italic; }

.references-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================================
   Red Light Penetration Section
   ========================================= */

:root {
    --color-rl: #e53935;
    --color-rl-soft: rgba(229, 57, 53, 0.15);
    --color-rl-faint: rgba(229, 57, 53, 0.07);
}

.penetration-wrap {
    position: relative;
    background: linear-gradient(to bottom, #fdf5f5, var(--color-bg));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Animated beam lines */
.beam {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.beam::after {
    content: '';
    display: block;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, var(--color-rl), rgba(229,57,53,0.3), transparent);
    animation: beam-fall 2.4s ease-in-out infinite;
    opacity: 0.4;
}

.beam--1 { left: 25%; }
.beam--2 { left: 50%; opacity: 0.6; }
.beam--3 { right: 25%; }

.beam--1::after { animation-delay: 0s; }
.beam--2::after { animation-delay: 0.35s; }
.beam--3::after { animation-delay: 0.7s; }

@keyframes beam-fall {
    0%   { transform: translateY(-100%); opacity: 0; }
    20%  { opacity: 0.45; }
    80%  { opacity: 0.35; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Skin layers */
.skin-layers { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; }

.skin-layer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skin-depth {
    flex-shrink: 0;
    width: 52px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.skin-layer {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skin-layer h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.skin-layer p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Epidermis */
.skin-layer--epidermis {
    background: linear-gradient(to right, #fef9e7, #fefce8);
    border-color: #f9e090;
}

/* Dermis — hero layer */
.skin-layer--dermis {
    background: linear-gradient(to right, #fff0f0, #fff5f5);
    border-color: rgba(229, 57, 53, 0.45);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.18);
    padding: 1.25rem 1.5rem;
}

/* Pulsing zap icons on dermis */
.dermis-zap {
    position: absolute;
    color: var(--color-rl);
    animation: zap-pulse 2s ease-in-out infinite;
}

.dermis-zap--1 { top: 0.75rem; right: 1rem;   animation-delay: 0s; }
.dermis-zap--2 { bottom: 0.75rem; right: 2.5rem; animation-delay: 0.5s; }
.dermis-zap--3 { top: 1.25rem; right: 2.75rem;  animation-delay: 1s; }

@keyframes zap-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%       { opacity: 0.9;  transform: scale(1.15); }
}

.dermis-content { position: relative; z-index: 1; }

.dermis-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.dermis-heading h3 { margin-bottom: 0; }

.primary-target-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: var(--color-rl-soft);
    color: var(--color-rl);
    border: 1px solid rgba(229, 57, 53, 0.35);
    white-space: nowrap;
}

.dermis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.dermis-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: var(--color-rl-faint);
    color: var(--color-text);
    border: 1px solid rgba(229, 57, 53, 0.18);
}

/* Subcutaneous */
.skin-layer--subcut {
    background: linear-gradient(to right, #fff7f0, #fff9f5);
    border-color: #fddcb5;
}

/* Footer stats */
.penetration-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.penetration-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pstat-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-rl-soft);
    border: 2px solid var(--color-rl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-rl);
}

.pstat-icon--dot { flex-direction: column; }

.pstat-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-rl);
    animation: zap-pulse 2s ease-in-out infinite;
}

.pstat-icon--gradient {
    background: linear-gradient(135deg, var(--color-rl-soft), var(--color-rl-faint));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.pstat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.pstat-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Science block */
.penetration-science {
    max-width: var(--narrow);
    margin-inline: auto;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
}

.penetration-science h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    color: var(--color-text);
}

.penetration-science-dot { color: var(--color-rl); }

.penetration-science p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .penetration-stats { grid-template-columns: 1fr; }
    .skin-depth { width: 40px; font-size: 0.65rem; }
    .dermis-zap { display: none; }
    .penetration-science { padding: 1.25rem; }
}

/* =========================================
   Clinical Evidence Section
   ========================================= */

.evidence-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.evidence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-bg-mint);
    border-radius: 50%;
    color: var(--color-accent-dark);
    margin-bottom: 1rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.evidence-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.7;
}

/* Stat cards grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.evidence-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.evidence-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(76, 175, 80, 0.4);
}

.evidence-card-top {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.evidence-trend-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.evidence-stat {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.evidence-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.evidence-period {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

.evidence-citation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    flex-shrink: 0;
}

.evidence-citation svg { margin-top: 2px; flex-shrink: 0; }

.evidence-journal {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

.evidence-author {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Wavelength science block */
.wavelength-science {
    background: var(--color-card);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.wavelength-science-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.wavelength-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-block: 1.25rem;
}

.wavelength-row--border {
    border-bottom: 1px solid var(--color-border-light);
}

.wavelength-tag-wrap {
    flex-shrink: 0;
    width: 168px;
    padding-top: 2px;
}

.wavelength-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.wavelength-tag--red   { background: rgba(224, 82, 82, 0.1);  color: #c62828; }
.wavelength-tag--blue  { background: rgba(82, 153, 224, 0.1); color: #1565c0; }
.wavelength-tag--green { background: var(--color-bg-mint);    color: var(--color-accent-dark); }

.wavelength-science-body { flex: 1; min-width: 0; }

.wavelength-mechanism {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.wavelength-result {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    margin-bottom: 0;
}

.wavelength-details {
    margin-bottom: 0.5rem;
}

.wavelength-details summary {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
}

.wavelength-details summary::-webkit-details-marker { display: none; }
.wavelength-details summary:hover { color: var(--color-accent); }

.wavelength-details[open] summary { margin-bottom: 0.75rem; }

.wavelength-details-body {
    background: var(--color-bg-mint);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    color: #1b5e20;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.wavelength-source {
    font-size: 0.78rem;
    color: var(--color-text-light);
    padding-top: 0.6rem;
    border-top: 1px solid rgba(76, 175, 80, 0.15);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Bottom callout */
.evidence-callout {
    background: var(--color-bg-mint);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
    text-align: center;
}

.evidence-callout p { margin-bottom: 0; }

/* Responsive */
@media (max-width: 860px) {
    .evidence-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .evidence-grid { grid-template-columns: 1fr; }

    .wavelength-row { flex-direction: column; gap: 0.75rem; }
    .wavelength-tag-wrap { width: auto; }
    .wavelength-science { padding: 1.25rem; }
}

/* =========================================
   Product Cards
   ========================================= */
.product-card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.product-card:hover { box-shadow: var(--shadow-md); }

.product-card--featured {
    border-color: rgba(218, 218, 218, 0.5);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2), var(--shadow-md);
}

.trophy-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f9a825, #f57f17);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem 0.4rem 0.6rem;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(245, 127, 23, 0.55);
    animation: trophy-glow 2.5s ease-in-out infinite;
}

@keyframes trophy-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(245, 127, 23, 0.5); }
    50%       { box-shadow: 0 4px 22px rgba(245, 127, 23, 0.85); }
}

/* Card Header — overlaid on image */
.product-card-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}

.product-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.35);
    align-self: flex-end;
    padding: 8px;
}

.product-card--featured .product-rank-badge,
.product-rank-badge--featured {
    background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffd700, #4caf50, #2196f3, #9c27b0);
    border-color: transparent;
}

.product-meta { flex: 1; min-width: 0; }

/* "BEST OVERALL: Gleam LED Mask" style heading */
.product-category {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: -2px;
}

.product-name {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.product-name a { color: #fff; text-decoration: none; }
.product-name a:hover { color: rgba(255,255,255,0.85); }

.product-score-pill {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-left: auto;
}

.score-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.score-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* Product image — full bleed with header overlaid */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-light);
}

.product-image-wrap img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.03); }

/* Product body */
.product-body {
    padding: 1.75rem 2rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Specs */
.specs-block {
    background: var(--color-bg-mint);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-block: 1.25rem;
    border-left: 4px solid var(--color-accent);
}

.specs-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    margin-bottom: 0.45rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.specs-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* Expert / Conclusion quote */
.expert-quote {
    background: var(--color-bg-mint);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.1rem 1.4rem;
    margin-block: 1.5rem;
    font-style: italic;
    font-size: 0.925rem;
    color: var(--color-text);
    line-height: 1.7;
}

.expert-attribution {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.6rem;
}

/* Best For */
.best-for {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--color-border);
}

/* Pros & Cons — single-column stacked */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-block: 1.5rem;
}

.pros, .cons {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem 1.1rem;
}

.pros {
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.cons {
    background: rgba(229, 57, 53, 0.04);
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.pros-title, .cons-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid currentColor;
    opacity: 0.6;
}

.pros-title { color: var(--color-accent-dark); }
.cons-title { color: var(--color-red); }

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    font-size: 0.875rem;
    padding-left: 1.3rem;
    position: relative;
    margin-bottom: 0.45rem;
    line-height: 1.55;
    color: var(--color-text);
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
    top: 1px;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 700;
    font-size: 0.85rem;
    top: 1px;
}

/* CTA Button — red, full-width, rainbow border */
.product-cta-wrap {
    margin-top: 1.5rem;
    padding: 4px;
    border-radius: calc(var(--radius-md) + 4px);
    background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffd700, #4caf50, #2196f3, #9c27b0);
    background-size: 300% 300%;
    animation: rainbow-shift 4s linear infinite;
}

@keyframes rainbow-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-cta {
    display: block;
    position: relative;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #111111;
    color: #fff !important;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
}

/* Rainbow overlay fades in on hover */
.product-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffd700, #4caf50, #2196f3, #9c27b0);
    background-size: 300% 300%;
    animation: rainbow-shift 4s linear infinite;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    border-radius: inherit;
}

.product-cta:hover::before { opacity: 1; }

.product-cta:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

.product-cta--plain {
    margin-top: 1.5rem;
    border: 2px solid #111111;
}

/* =========================================
   Comparison Table
   ========================================= */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card);
    font-size: 0.875rem;
    min-width: 520px;
}

.comparison-table thead {
    background: #1a1a1a;
    color: #fff;
}

.comparison-table th {
    padding: 0.8rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.comparison-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table tbody tr:hover td { background: var(--color-bg-alt); }

.row-featured td { background: rgba(76, 175, 80, 0.04); }
.row-featured:hover td { background: rgba(76, 175, 80, 0.08) !important; }

.td-rank {
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    width: 56px;
    font-family: var(--font-display);
}

.row-featured .td-rank { color: var(--color-accent-dark); }

.td-product { font-weight: 500; }

.table-product-link {
    color: var(--color-text);
    font-weight: 500;
}

.table-product-link:hover { color: var(--color-accent-dark); }

.td-highlight {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.td-score { width: 72px; text-align: center; }

.score-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* =========================================
   Methodology Grid
   ========================================= */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: var(--narrow);
    margin-inline: auto;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.methodology-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.methodology-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.methodology-icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg-mint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-accent-dark);
}

.methodology-icon svg { width: 22px; height: 22px; }

.methodology-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.methodology-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* =========================================
   Final Thoughts / Dark Section
   ========================================= */
.bg-dark .section-title { color: #fff; }
.bg-dark p { color: rgba(224, 224, 224, 0.8); }

.bottom-line-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    margin-top: 2.5rem;
    text-align: center;
}

.bottom-line-box h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.bottom-line-box p {
    color: rgba(224, 224, 224, 0.75);
    margin-bottom: 1.75rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    position: relative;
    background: #111111;
    color: #fff;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.2s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffd700, #4caf50, #2196f3, #9c27b0);
    background-size: 300% 300%;
    animation: rainbow-shift 4s linear infinite;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    border-radius: inherit;
}

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

.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================
   Link Accent
   ========================================= */
.link-accent {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(56, 142, 60, 0.35);
}

.link-accent:hover { text-decoration-color: var(--color-accent); }

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding-block: 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-logo-top {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.footer-logo-main {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.footer-logo-main span { color: #c62828; }

.footer-copy {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.back-to-top {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-accent-dark);
}

.back-to-top:hover { color: var(--color-accent); }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .wavelength-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col-layout { grid-template-columns: 1fr; }
    .two-col-image { order: -1; }
    .wavelength-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .header-inner .logo { grid-column: 2; justify-self: start; padding-left: 0.25rem; }

    .main-nav--left,
    .main-nav--right {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-border);
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        z-index: 99;
        justify-content: flex-start;
    }

    .main-nav--left.open,
    .main-nav--right.open { display: flex; }

    /* Stack right nav below left when open */
    .main-nav--right.open {
        top: auto;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 1.5rem 1.25rem;
        background: var(--color-card);
    }

    /* Wrapper that holds both navs when mobile menu opens */
    .mobile-nav-drawer {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-border);
        padding: 0.75rem 1.5rem 1.25rem;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    .mobile-nav-drawer.open { display: flex; }

    .mobile-nav-drawer a {
        padding-block: 0.7rem;
        border-bottom: 1px solid var(--color-border-light);
        font-size: 0.95rem;
        color: var(--color-text-muted);
        font-weight: 500;
    }

    .mobile-nav-drawer a:last-child { border-bottom: none; }
    .mobile-nav-drawer a:hover { color: var(--color-accent-dark); }

    .main-nav--left,
    .main-nav--right { display: none !important; }

    .nav-toggle { display: flex; margin-right: 0.5rem; }

    .product-card-header { padding: 1.25rem 1.25rem 1rem; }
    .product-image-wrap  { padding: 1rem 1.25rem; }
    .product-body        { padding: 1.25rem; }

    .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .wavelength-grid { grid-template-columns: 1fr; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .product-card-header {
        flex-direction: column;
    }

    .product-score-pill { align-self: flex-start; }
}

/* =========================================
   Scroll Animation
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
