/* What We Test Page Styles */
/* Minimal, clean design inspired by Hims/Hers */
/* =========================================== */

/* Hero Section with Image */
.wwt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1a2e35;
    margin: 16px;
    border-radius: 24px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 46, 53, 0.3) 0%,
        rgba(26, 46, 53, 0.1) 30%,
        rgba(26, 46, 53, 0.4) 70%,
        rgba(26, 46, 53, 0.7) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: calc(var(--space-20) + 80px) 0 var(--space-12);
}

.wwt-hero-content {
    max-width: 500px;
}

.wwt-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wwt-hero-subtitle {
    font-size: 1.25rem;
    color: white;
    line-height: 1.6;
    margin-bottom: var(--space-8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-cta-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.hero-cta-buttons .btn-glow {
    background: var(--primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(143, 168, 138, 0.4);
}

.hero-cta-buttons .btn-glow:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 168, 138, 0.5);
}

.hero-cta-buttons .btn-link {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-cta-buttons .btn-link:hover {
    opacity: 0.85;
}

/* Floating Biomarker Marquee */
.biomarker-marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.biomarker-marquee-row {
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: var(--space-3);
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.biomarker-marquee-row[data-direction="right"] .marquee-track {
    animation-direction: reverse;
}

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

.biomarker-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.biomarker-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.biomarker-tag.category-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    color: #1a2e35;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.biomarker-tag.category-tag:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Intro Section */
.wwt-intro {
    padding: var(--space-16) 0;
    background: var(--bg-secondary);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.intro-content .intro-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto var(--space-10);
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    text-align: left;
}

.intro-feature {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.intro-feature:hover {
    border-color: rgba(143, 168, 138, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.intro-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(143, 168, 138, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.intro-feature-icon svg {
    width: 20px;
    height: 20px;
}

.intro-feature-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.intro-feature-text p {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Health Categories Section */
.wwt-categories-section {
    padding: var(--space-16) 0 var(--space-20);
    background: var(--bg-primary);
}

.wwt-categories-section .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.wwt-categories-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.wwt-categories-section .section-header p {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* Health Categories Accordion */
.health-categories {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.health-category {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.health-category:hover {
    border-color: rgba(143, 168, 138, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.health-category.open {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(143, 168, 138, 0.15);
}

/* Category Header (Button) */
.category-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.category-header:hover {
    background-color: rgba(143, 168, 138, 0.03);
}

.category-header:focus {
    outline: none;
}

.category-header:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* Category Icon */
.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.health-category.open .category-icon {
    background: var(--primary);
}

.health-category.open .category-icon svg {
    color: white;
}

/* Category Info */
.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.category-count {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Chevron */
.chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.health-category.open .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Category Content (Expandable) */
.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.health-category.open .category-content {
    max-height: 1000px;
    opacity: 1;
}

.category-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
    padding: 0 var(--space-6) 0 calc(var(--space-6) + 48px + var(--space-4));
}

/* Biomarker List */
.biomarker-list {
    list-style: none;
    padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 48px + var(--space-4));
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-3);
}

.biomarker-list li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.biomarker-list li:hover {
    background: var(--primary-light);
}

.biomarker-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Blog cross-links within biomarker list */
.biomarker-blog-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.biomarker-blog-link:hover {
    color: var(--primary-dark, #5a7a55);
    text-decoration: underline;
}

.biomarker-blog-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Popular Tests Section (Fat Footer Strategy) */
.wwt-popular-tests {
    padding: var(--space-16) 0 var(--space-20);
    background: var(--bg-primary);
}

.wwt-popular-tests .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.wwt-popular-tests .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.wwt-popular-tests .section-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.popular-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.popular-test-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-test-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(143, 168, 138, 0.15);
    transform: translateY(-2px);
}

.popular-test-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.popular-test-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.popular-test-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.popular-test-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

.popular-test-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

@media (max-width: 768px) {
    .wwt-popular-tests {
        padding: var(--space-12) 0 var(--space-16);
    }

    .wwt-popular-tests .section-header {
        padding: 0 var(--space-4);
        margin-bottom: var(--space-8);
    }

    .popular-tests-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: 0 var(--space-4);
    }

    .popular-test-card {
        padding: var(--space-4);
    }

    .popular-test-icon {
        width: 40px;
        height: 40px;
    }

    .popular-test-icon svg {
        width: 20px;
        height: 20px;
    }

    .popular-test-card h3 {
        font-size: 1rem;
    }
}

/* Women's Health Spotlight Section */
.wwt-spotlight {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.spotlight-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.spotlight-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.spotlight-content > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.spotlight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.spotlight-stat {
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered animation delays */
.spotlight-stat:nth-child(1) {
    transition-delay: 0s;
}

.spotlight-stat:nth-child(2) {
    transition-delay: 0.15s;
}

.spotlight-stat:nth-child(3) {
    transition-delay: 0.3s;
}

/* Animated state */
.spotlight-stats.animate .spotlight-stat {
    opacity: 1;
    transform: translateY(0);
}

.spotlight-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-3);
    line-height: 1;
}

.spotlight-stat .stat-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.spotlight-stats.animate .spotlight-stat .stat-text {
    opacity: 1;
    transform: translateY(0);
}

.stat-citation {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s, color 0.2s ease;
}

.spotlight-stats.animate .stat-citation {
    opacity: 1;
    transform: translateY(0);
}

.stat-citation:hover {
    color: var(--primary);
}

/* CTA Section */
.wwt-cta {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-glow {
    font-size: 1rem;
}

.cta-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-actions .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem !important;
    font-size: 1.0625rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wwt-hero {
        margin: 8px;
        border-radius: 16px;
        min-height: 100svh;
    }

    .hero-background-image {
        object-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 46, 53, 0.5) 0%,
            rgba(26, 46, 53, 0.3) 30%,
            rgba(26, 46, 53, 0.5) 60%,
            rgba(26, 46, 53, 0.8) 100%
        );
    }

    .hero-content-wrapper {
        padding: calc(var(--space-16) + 60px) 0 var(--space-8);
    }

    .wwt-hero-content {
        max-width: 100%;
        padding: 0 var(--space-4);
    }

    .wwt-hero-content h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .wwt-hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--space-6);
    }

    .hero-cta-buttons {
        flex-direction: row;
        align-items: center;
        gap: var(--space-4);
    }

    .hero-cta-buttons .btn-glow {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .biomarker-marquee-container {
        gap: var(--space-2);
        padding-bottom: var(--space-4);
    }

    .biomarker-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .marquee-track {
        gap: var(--space-2);
        animation-duration: 30s;
    }

    /* Hide some marquee rows on mobile for cleaner look */
    .biomarker-marquee-row:nth-child(6),
    .biomarker-marquee-row:nth-child(7) {
        display: none;
    }

    .wwt-intro {
        padding: var(--space-12) 0;
    }

    .intro-content {
        padding: 0 var(--space-4);
    }

    .intro-content .intro-lead {
        font-size: 1rem;
        margin-bottom: var(--space-8);
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .intro-feature {
        padding: var(--space-4);
    }

    .intro-feature-icon {
        width: 36px;
        height: 36px;
    }

    .intro-feature-icon svg {
        width: 18px;
        height: 18px;
    }

    .intro-feature-text h3 {
        font-size: 0.9375rem;
    }

    .intro-feature-text p {
        font-size: 0.875rem;
    }

    .wwt-categories-section {
        padding: var(--space-12) 0 var(--space-16);
    }

    .wwt-categories-section .section-header {
        margin-bottom: var(--space-8);
        padding: 0 var(--space-4);
    }

    .health-categories {
        gap: var(--space-2);
        padding: 0 var(--space-2);
    }

    .category-header {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon svg {
        width: 20px;
        height: 20px;
    }

    .category-info h3 {
        font-size: 1rem;
    }

    .category-count {
        font-size: 0.75rem;
    }

    .category-description {
        padding: 0 var(--space-4);
        font-size: 0.875rem;
    }

    .biomarker-list {
        padding: 0 var(--space-4) var(--space-4);
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .biomarker-list li {
        font-size: 0.875rem;
        padding: var(--space-2) var(--space-3);
    }

    .wwt-spotlight {
        padding: var(--space-16) 0;
    }

    .spotlight-content {
        padding: 0 var(--space-4);
    }

    .spotlight-content > p {
        margin-bottom: var(--space-8);
        font-size: 1rem;
    }

    .spotlight-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .spotlight-stat {
        padding: var(--space-6);
    }

    .spotlight-stat .stat-number {
        font-size: 2.5rem;
    }

    .spotlight-stat .stat-text {
        font-size: 1rem;
    }

    .stat-citation {
        font-size: 0.6875rem;
        margin-top: var(--space-2);
        padding-top: var(--space-2);
    }

    .wwt-cta {
        padding: var(--space-16) 0;
    }

    .cta-content {
        padding: 0 var(--space-4);
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .wwt-hero {
        margin: 0;
        border-radius: 0;
        min-height: 100svh;
    }

    .hero-content-wrapper {
        padding: calc(var(--space-12) + 60px) 0 var(--space-6);
    }

    .wwt-hero-content h1 {
        font-size: 1.625rem;
    }

    .wwt-hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-cta-buttons .btn-glow {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-cta-buttons .btn-link {
        font-size: 0.8125rem;
    }

    .biomarker-marquee-container {
        gap: 6px;
        padding-bottom: var(--space-3);
    }

    .biomarker-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    .marquee-track {
        gap: 6px;
        animation-duration: 20s;
    }

    /* Hide more rows on small mobile */
    .biomarker-marquee-row:nth-child(5),
    .biomarker-marquee-row:nth-child(6),
    .biomarker-marquee-row:nth-child(7) {
        display: none;
    }

    .category-header {
        padding: var(--space-3);
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }

    .category-icon svg {
        width: 18px;
        height: 18px;
    }

    .category-info h3 {
        font-size: 0.9375rem;
    }

    .category-description {
        padding: 0 var(--space-3);
        font-size: 0.8125rem;
    }

    .biomarker-list {
        padding: 0 var(--space-3) var(--space-3);
    }

    .biomarker-list li {
        font-size: 0.8125rem;
        padding: var(--space-2);
    }

    .intro-content h2,
    .wwt-categories-section .section-header h2,
    .spotlight-content h2,
    .cta-content h2 {
        font-size: 1.375rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .category-content {
        transition: none;
    }

    .chevron {
        transition: none;
    }

    .category-icon {
        transition: none;
    }

    .health-category {
        transition: none;
    }

    .marquee-track {
        animation: none;
    }

    /* Stats animation - show immediately without animation */
    .spotlight-stat {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .spotlight-stat .stat-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stat-citation {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .biomarker-tag {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .wwt-hero,
    .biomarker-marquee-container,
    .wwt-cta {
        display: none;
    }

    .health-category {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .category-content {
        max-height: none !important;
        opacity: 1 !important;
    }

    .chevron {
        display: none;
    }
}

/* =========================================== */
/* Biomarker Details Modal */
/* =========================================== */

/* Biomarker Click Hint */
.biomarker-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-3);
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.biomarker-click-hint .hint-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Make biomarker list items clickable */
.biomarker-list li {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Focus visible outline for keyboard navigation */
.biomarker-list li:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background: var(--primary-light);
}

/* Info icon before each biomarker */
.biomarker-list li::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa88a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.biomarker-list li:hover::before,
.biomarker-list li:focus::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Active state for touch feedback */
.biomarker-list li:active {
    background: var(--primary-light);
}

.biomarker-list li:active::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Arrow on hover */
.biomarker-list li::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa88a' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.biomarker-list li:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

.biomarker-list li:hover {
    background: var(--primary-light);
    padding-right: calc(var(--space-3) + 24px);
}

/* Modal Backdrop */
.biomarker-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.biomarker-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.biomarker-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.biomarker-modal-backdrop.open .biomarker-modal {
    transform: translateY(0) scale(1);
}

/* Modal Close Button */
.biomarker-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.biomarker-modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.biomarker-modal-close:hover {
    background: var(--primary-light);
    transform: rotate(90deg);
}

.biomarker-modal-close:hover svg {
    color: var(--primary);
}

/* Active state for touch */
.biomarker-modal-close:active {
    background: var(--primary-light);
}

.biomarker-modal-close:active svg {
    color: var(--primary);
}

.biomarker-modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Modal Header */
.biomarker-modal-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.biomarker-modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.biomarker-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-right: var(--space-8);
}

/* Modal Body */
.biomarker-modal-body {
    padding: var(--space-5) var(--space-6) var(--space-6);
}

.biomarker-modal-section {
    margin-bottom: var(--space-5);
}

.biomarker-modal-section:last-child {
    margin-bottom: 0;
}

.biomarker-modal-section h3 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.biomarker-modal-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Symptoms Tags */
.biomarker-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.biomarker-symptom-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    border: 1px solid rgba(143, 168, 138, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.biomarker-symptom-tag:hover {
    border-color: rgba(143, 168, 138, 0.4);
    background: linear-gradient(135deg, rgba(143, 168, 138, 0.08), rgba(143, 168, 138, 0.04));
    color: var(--text-primary);
}

/* Related Biomarkers */
.biomarker-modal-related {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.biomarker-related-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(143, 168, 138, 0.08), rgba(143, 168, 138, 0.04));
    border: 1.5px solid rgba(143, 168, 138, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-dark, #5a7a55);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 2px 6px rgba(143, 168, 138, 0.12);
}

.biomarker-related-tag:hover,
.biomarker-related-tag:active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #6b8a66));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(143, 168, 138, 0.3);
    transform: translateY(-1px);
}

.biomarker-related-tag:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Details Section */
.biomarker-modal-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4) !important;
    margin-top: var(--space-5);
}

.biomarker-detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.biomarker-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.biomarker-detail-item:first-child {
    padding-top: 0;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .biomarker-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .biomarker-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }

    /* Drag handle indicator for mobile modal */
    .biomarker-modal::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
        z-index: 11;
    }

    .biomarker-modal-backdrop.open .biomarker-modal {
        transform: translateY(0);
    }

    .biomarker-modal-header {
        padding: var(--space-6) var(--space-5) var(--space-3);
    }

    .biomarker-modal-title {
        font-size: 1.25rem;
    }

    .biomarker-modal-body {
        padding: var(--space-4) var(--space-5) var(--space-5);
    }

    .biomarker-modal-section p {
        font-size: 0.875rem;
    }

    /* Make info icon fully visible on mobile (no hover) */
    .biomarker-list li::before {
        opacity: 1;
    }

    .biomarker-list li::after {
        display: none;
    }

    .biomarker-list li:hover {
        padding-right: var(--space-3);
    }

    .biomarker-click-hint {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .biomarker-click-hint {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .biomarker-click-hint .hint-icon {
        width: 14px;
        height: 14px;
    }

    .biomarker-list li::before {
        width: 14px;
        height: 14px;
    }

    .biomarker-modal {
        max-height: 90vh;
    }

    .biomarker-modal-header {
        padding: var(--space-4);
    }

    .biomarker-modal-title {
        font-size: 1.125rem;
    }

    .biomarker-modal-body {
        padding: var(--space-3) var(--space-4) var(--space-4);
    }

    .biomarker-modal-section h3 {
        font-size: 0.8125rem;
    }

    .biomarker-modal-section p {
        font-size: 0.8125rem;
    }

    .biomarker-symptom-tag,
    .biomarker-related-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
}

/* Reduced motion for modal */
@media (prefers-reduced-motion: reduce) {
    .biomarker-modal-backdrop,
    .biomarker-modal,
    .biomarker-modal-close {
        transition: none;
    }
}
