﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Y-DNA Ancestry Product Page - Cinematic Styling
 * Grounded, dignified design celebrating the direct paternal line.
 */

/* ========================================
   CSS VARIABLES - Paternal Color Palette
   ======================================== */
:root {
    /* Core Colors - Grounded, masculine tones */
    --ydl-deep: #1A1A1F;
    --ydl-slate-dark: #24242B;
    --ydl-slate-medium: #2D2D35;
    --ydl-steel: #4A6B8A;
    --ydl-steel-light: #5A7B9A;
    --ydl-steel-dark: #3A5B7A;
    --ydl-amber: #C4956A;
    --ydl-amber-light: #D4A87A;
    --ydl-ivory: #F5F3F0;
    --ydl-ivory-dim: rgba(245, 243, 240, 0.7);
    --ydl-ivory-soft: rgba(245, 243, 240, 0.5);

    /* Typography */
    --ydl-font-display: 'Cormorant Garamond', Georgia, serif;
    --ydl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --ydl-section-padding: 120px;
    --ydl-section-padding-mobile: 80px;

    /* Transitions */
    --ydl-transition-fast: 0.2s ease;
    --ydl-transition-medium: 0.4s ease;
    --ydl-transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BODY OVERRIDES - Dark grounded theme
   ======================================== */
body:has(.ydl-main) {
    background-color: var(--ydl-deep) !important;
    background-image: none !important;
}

.ydl-main {
    background-color: var(--ydl-deep);
    color: var(--ydl-ivory);
    font-family: var(--ydl-font-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    position: relative;
    z-index: 1;
}

body:has(.ydl-main) #wrapper,
body:has(.ydl-main) #content-wrapper,
body:has(.ydl-main) #content-fluid,
body:has(.ydl-main) > div {
    background: transparent !important;
}

body:has(.ydl-main) footer {
    background-color: var(--ydl-deep) !important;
}

.ydl-main p {
    color: var(--ydl-ivory-dim);
}

/* ========================================
   ACCESSIBILITY - Skip Link
   ======================================== */
.ydl-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--ydl-steel);
    color: white;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top var(--ydl-transition-fast);
}

.ydl-skip-link:focus {
    top: 0;
    outline: 3px solid var(--ydl-steel-light);
    outline-offset: 2px;
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */
.ydl-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--ydl-steel), var(--ydl-amber));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   PAGE NAVIGATION DOTS
   ======================================== */
.ydl-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.ydl-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(245, 243, 240, 0.3);
    border: 2px solid transparent;
    transition: all var(--ydl-transition-fast);
    position: relative;
}

.ydl-nav-dot:hover,
.ydl-nav-dot.active {
    background: var(--ydl-steel);
    transform: scale(1.2);
}

.ydl-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ydl-transition-fast);
}

.ydl-nav-dot:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .ydl-page-nav {
        display: none;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.ydl-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ydl-steel);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--ydl-transition-medium);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 107, 138, 0.3);
}

.ydl-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ydl-back-to-top:hover {
    background: var(--ydl-steel-light);
    transform: translateY(-4px);
}

/* ========================================
   SECTION BASE STYLES
   ======================================== */
.ydl-section {
    padding: var(--ydl-section-padding) 0;
    position: relative;
}

@media (max-width: 768px) {
    .ydl-section {
        padding: var(--ydl-section-padding-mobile) 0;
    }
}

.ydl-chapter-header {
    text-align: center;
    margin-bottom: 60px;
}

.ydl-chapter-number {
    display: inline-block;
    font-family: var(--ydl-font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ydl-steel);
    margin-bottom: 16px;
}

.ydl-section-title {
    font-family: var(--ydl-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: white;
    margin: 0 0 16px;
    line-height: 1.2;
}

.ydl-section-subtitle {
    font-size: 1.125rem;
    color: var(--ydl-ivory-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   HERO SECTION - "One Line, Carried Forward"
   ======================================== */
.ydl-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.ydl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ydl-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(0.7) brightness(0.9);
}

.ydl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 31, 0.75) 0%,
        rgba(26, 26, 31, 0.85) 50%,
        rgba(26, 26, 31, 0.95) 100%
    );
}

/* Continuous line motif - representing unbroken paternal lineage */
.ydl-hero-line-motif {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ydl-hero-line-motif::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(74, 107, 138, 0.3) 20%,
        rgba(74, 107, 138, 0.5) 50%,
        rgba(74, 107, 138, 0.3) 80%,
        transparent 100%
    );
    animation: lineGlow 4s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.ydl-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Badge */
.ydl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(74, 107, 138, 0.15);
    border: 1px solid rgba(74, 107, 138, 0.3);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ydl-steel-light);
    margin-bottom: 32px;
}

/* Hero Title - Poetic, composed */
.ydl-hero-title {
    font-family: var(--ydl-font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--ydl-ivory-dim);
}

.ydl-title-prelude {
    display: block;
    font-style: italic;
}

.ydl-title-accent {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 600;
    font-style: normal;
    color: white;
    margin-top: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ydl-steel-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Lead */
.ydl-hero-lead {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--ydl-ivory-dim);
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Hero Stats */
.ydl-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ydl-stat-item {
    text-align: center;
}

.ydl-stat-value {
    display: block;
    font-family: var(--ydl-font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ydl-amber);
}

.ydl-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ydl-ivory-dim);
    margin-top: 4px;
}

.ydl-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 243, 240, 0.2);
}

@media (max-width: 576px) {
    .ydl-stat-divider {
        display: none;
    }
    .ydl-hero-stats {
        gap: 32px;
    }
}

/* Hero Price */
.ydl-hero-price {
    margin-bottom: 32px;
}

.ydl-price-tag {
    display: inline-flex;
    flex-direction: column;
    padding: 16px 32px;
    background: rgba(36, 36, 43, 0.8);
    border: 1px solid rgba(74, 107, 138, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ydl-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ydl-ivory-dim);
}

.ydl-price-amount {
    font-family: var(--ydl-font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ydl-amber);
}

.ydl-price-note {
    font-size: 0.8rem;
    color: var(--ydl-ivory-dim);
}

/* Hero CTA Buttons */
.ydl-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ydl-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--ydl-steel) 0%, var(--ydl-steel-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--ydl-transition-medium);
    box-shadow: 0 4px 20px rgba(74, 107, 138, 0.3);
}

.ydl-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 107, 138, 0.4);
    color: white;
    text-decoration: none;
}

.ydl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(245, 243, 240, 0.3);
    cursor: pointer;
    transition: all var(--ydl-transition-medium);
}

.ydl-btn-secondary:hover {
    background: rgba(245, 243, 240, 0.1);
    border-color: rgba(245, 243, 240, 0.5);
    color: white;
    text-decoration: none;
}

.ydl-btn-large {
    padding: 20px 48px;
    font-size: 1.125rem;
}

/* Trust Badges */
.ydl-trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.ydl-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ydl-ivory-dim);
}

.ydl-trust-item i {
    color: var(--ydl-steel);
}

/* Scroll Indicator */
.ydl-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ydl-ivory-dim);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.ydl-scroll-indicator:hover {
    color: var(--ydl-steel);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UNDERSTANDING SECTION - What is Y-DNA?
   ======================================== */
.ydl-understanding {
    background: linear-gradient(180deg, var(--ydl-deep) 0%, var(--ydl-slate-dark) 100%);
}

.ydl-understanding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .ydl-understanding-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.ydl-understanding-text {
    font-size: 1.125rem;
    line-height: 1.9;
}

.ydl-understanding-lead {
    font-family: var(--ydl-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ydl-understanding-lead em {
    color: var(--ydl-steel);
    font-style: italic;
}

.ydl-understanding-text p {
    margin-bottom: 20px;
    color: var(--ydl-ivory-dim);
}

.ydl-key-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.ydl-key-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(74, 107, 138, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--ydl-steel);
}

.ydl-key-point i {
    color: var(--ydl-steel);
    margin-top: 4px;
    flex-shrink: 0;
}

.ydl-key-point span {
    color: var(--ydl-ivory-dim);
}

/* Visual Element - Inheritance Diagram */
.ydl-understanding-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ydl-inheritance-diagram {
    width: 100%;
    max-width: 350px;
    padding: 40px 30px;
    background: rgba(36, 36, 43, 0.6);
    border: 1px solid rgba(74, 107, 138, 0.2);
    border-radius: 16px;
    text-align: center;
}

.ydl-diagram-title {
    font-family: var(--ydl-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 32px;
}

.ydl-diagram-generations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ydl-diagram-gen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ydl-diagram-gen span {
    font-size: 0.8rem;
    color: var(--ydl-ivory-dim);
}

.ydl-diagram-person {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.ydl-diagram-person.ydl-male {
    background: rgba(74, 107, 138, 0.2);
    border: 2px solid var(--ydl-steel);
    color: var(--ydl-steel);
}

.ydl-diagram-person.ydl-you {
    background: var(--ydl-steel);
    color: white;
}

.ydl-diagram-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--ydl-steel), var(--ydl-steel-light));
}

.ydl-visual-label {
    margin-top: 24px;
    font-family: var(--ydl-font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--ydl-steel);
}

/* ========================================
   LINEAGE SECTION - A Line That Rarely Changes
   ======================================== */
.ydl-lineage {
    background: var(--ydl-slate-dark);
    position: relative;
    overflow: hidden;
}

/* Continuous line background motif */
.ydl-lineage::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(74, 107, 138, 0.2) 10%,
        rgba(74, 107, 138, 0.2) 90%,
        transparent 100%
    );
}

.ydl-lineage-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ydl-lineage-intro {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--ydl-ivory-dim);
    margin-bottom: 24px;
}

.ydl-lineage-quote {
    margin: 40px 0;
    padding: 32px 40px;
    background: rgba(74, 107, 138, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(74, 107, 138, 0.2);
}

.ydl-lineage-quote p {
    font-family: var(--ydl-font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--ydl-ivory);
    margin: 0;
    line-height: 1.6;
}

.ydl-lineage-quote em {
    color: var(--ydl-steel-light);
    font-style: normal;
    font-weight: 600;
}

.ydl-contrast-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .ydl-contrast-cards {
        grid-template-columns: 1fr;
    }
}

.ydl-contrast-card {
    padding: 32px;
    border-radius: 12px;
    text-align: left;
}

.ydl-contrast-card.many {
    background: rgba(45, 45, 53, 0.5);
    border: 1px solid rgba(245, 243, 240, 0.1);
}

.ydl-contrast-card.one {
    background: rgba(74, 107, 138, 0.15);
    border: 1px solid rgba(74, 107, 138, 0.3);
}

.ydl-contrast-card h4 {
    font-family: var(--ydl-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.ydl-contrast-card.one h4 {
    color: var(--ydl-steel-light);
}

.ydl-contrast-card p {
    color: var(--ydl-ivory-dim);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ydl-stability-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
    padding: 24px;
    background: rgba(196, 149, 106, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(196, 149, 106, 0.2);
    text-align: left;
}

.ydl-stability-note i {
    color: var(--ydl-amber);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.ydl-stability-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ydl-ivory-dim);
}

/* ========================================
   HAPLOGROUPS SECTION - Deep Time
   ======================================== */
.ydl-haplogroups {
    background: linear-gradient(180deg, var(--ydl-slate-dark) 0%, var(--ydl-slate-medium) 100%);
}

.ydl-haplogroups-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.ydl-haplogroups-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ydl-ivory-dim);
}

.ydl-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

.ydl-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--ydl-steel) 0%,
        var(--ydl-steel-light) 50%,
        var(--ydl-amber) 100%
    );
}

.ydl-timeline-item {
    position: relative;
    padding: 0 0 48px 40px;
}

.ydl-timeline-item:last-child {
    padding-bottom: 0;
}

.ydl-timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ydl-steel);
    border: 3px solid var(--ydl-deep);
    box-shadow: 0 0 0 3px rgba(74, 107, 138, 0.3);
}

.ydl-timeline-era {
    font-family: var(--ydl-font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ydl-steel);
    margin-bottom: 8px;
}

.ydl-timeline-title {
    font-family: var(--ydl-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.ydl-timeline-text {
    color: var(--ydl-ivory-dim);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   REVEALS SECTION - What This Report Shows
   ======================================== */
.ydl-reveals {
    background: var(--ydl-slate-medium);
}

.ydl-reveals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .ydl-reveals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ydl-reveals-grid {
        grid-template-columns: 1fr;
    }
}

.ydl-reveal-card {
    padding: 32px;
    background: rgba(26, 26, 31, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(245, 243, 240, 0.08);
    transition: all var(--ydl-transition-medium);
}

.ydl-reveal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 107, 138, 0.3);
    background: rgba(26, 26, 31, 0.7);
}

.ydl-reveal-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(74, 107, 138, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--ydl-steel);
}

.ydl-reveal-card h3 {
    font-family: var(--ydl-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.ydl-reveal-card p {
    color: var(--ydl-ivory-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   GUIDANCE SECTION - Reading Results Correctly
   ======================================== */
.ydl-guidance {
    background: linear-gradient(180deg, var(--ydl-slate-medium) 0%, var(--ydl-slate-dark) 100%);
}

.ydl-guidance-content {
    max-width: 900px;
    margin: 0 auto;
}

.ydl-guidance-intro {
    text-align: center;
    margin-bottom: 48px;
}

.ydl-guidance-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ydl-ivory-dim);
}

.ydl-guidance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .ydl-guidance-cards {
        grid-template-columns: 1fr;
    }
}

.ydl-guidance-card {
    padding: 28px;
    background: rgba(74, 107, 138, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(74, 107, 138, 0.15);
    text-align: center;
}

.ydl-guidance-card i {
    font-size: 2rem;
    color: var(--ydl-steel);
    margin-bottom: 16px;
}

.ydl-guidance-card h4 {
    font-family: var(--ydl-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.ydl-guidance-card p {
    color: var(--ydl-ivory-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.ydl-guidance-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: rgba(196, 149, 106, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(196, 149, 106, 0.2);
}

.ydl-guidance-note > i {
    font-size: 2rem;
    color: var(--ydl-amber);
    flex-shrink: 0;
}

.ydl-guidance-note h4 {
    font-family: var(--ydl-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 8px;
}

.ydl-guidance-note p {
    color: var(--ydl-ivory-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   EXPERIENCE SECTION - The Report
   ======================================== */
.ydl-experience {
    background: var(--ydl-slate-dark);
}

.ydl-experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .ydl-experience-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.ydl-experience-text h3 {
    font-family: var(--ydl-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.ydl-experience-text p {
    color: var(--ydl-ivory-dim);
    line-height: 1.8;
    margin-bottom: 24px;
}

.ydl-experience-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ydl-experience-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ydl-ivory-dim);
}

.ydl-experience-feature i {
    color: var(--ydl-steel);
    width: 20px;
    text-align: center;
}

.ydl-experience-visual {
    position: relative;
}

.ydl-report-preview {
    background: rgba(26, 26, 31, 0.6);
    border: 1px solid rgba(74, 107, 138, 0.2);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.ydl-report-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ydl-report-preview-label {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--ydl-steel);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}

/* ========================================
   SCIENCE SECTION - Scientific Foundation
   ======================================== */
.ydl-science {
    background: linear-gradient(180deg, var(--ydl-slate-dark) 0%, var(--ydl-deep) 100%);
}

.ydl-science-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .ydl-science-grid {
        grid-template-columns: 1fr;
    }
}

.ydl-science-card {
    padding: 32px;
    background: rgba(36, 36, 43, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(245, 243, 240, 0.08);
}

.ydl-science-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--ydl-amber);
}

.ydl-science-card h3 {
    font-family: var(--ydl-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.ydl-science-card p {
    color: var(--ydl-ivory-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.ydl-science-quote {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 40px;
    background: rgba(196, 149, 106, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(196, 149, 106, 0.2);
}

.ydl-science-quote p {
    font-family: var(--ydl-font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ydl-amber);
    margin: 0;
    line-height: 1.6;
}

.ydl-science-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(74, 107, 138, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(74, 107, 138, 0.2);
}

.ydl-science-disclaimer i {
    color: var(--ydl-steel);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.ydl-science-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ydl-ivory-dim);
}

/* ========================================
   FINAL CTA - "Follow the Line That Endured"
   ======================================== */
.ydl-final {
    position: relative;
    padding: var(--ydl-section-padding) 0;
    overflow: hidden;
}

.ydl-final-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ydl-final-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: saturate(0.6);
}

.ydl-final-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 31, 0.9) 0%,
        rgba(26, 26, 31, 0.85) 50%,
        rgba(26, 26, 31, 0.95) 100%
    );
}

.ydl-final-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ydl-final-chapter {
    display: inline-block;
    font-family: var(--ydl-font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ydl-steel);
    margin-bottom: 20px;
}

.ydl-final-title {
    font-family: var(--ydl-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: white;
    margin: 0 0 24px;
    line-height: 1.2;
}

.ydl-final-lead {
    font-family: var(--ydl-font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ydl-ivory-dim);
    line-height: 1.7;
    margin-bottom: 40px;
}

.ydl-final-lead strong {
    color: var(--ydl-steel-light);
    font-weight: 600;
    font-style: normal;
}

.ydl-final-price {
    display: inline-flex;
    flex-direction: column;
    padding: 24px 48px;
    background: rgba(36, 36, 43, 0.8);
    border: 1px solid rgba(74, 107, 138, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

.ydl-final-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ydl-ivory-dim);
}

.ydl-final-amount {
    font-family: var(--ydl-font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--ydl-amber);
}

.ydl-final-note {
    font-size: 0.85rem;
    color: var(--ydl-ivory-dim);
}

.ydl-final-cta {
    margin-bottom: 40px;
}

.ydl-final-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.ydl-final-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ydl-ivory-dim);
}

.ydl-final-feature i {
    color: var(--ydl-steel);
}

.ydl-final-tagline {
    font-family: var(--ydl-font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--ydl-ivory-soft);
    margin: 0;
}

/* ========================================
   STICKY CTA BAR
   ======================================== */
.ydl-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 31, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(74, 107, 138, 0.3);
    padding: 16px 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--ydl-transition-medium);
}

.ydl-sticky-cta.visible {
    transform: translateY(0);
}

.ydl-sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ydl-sticky-cta-text h4 {
    font-family: var(--ydl-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.ydl-sticky-cta-text p {
    font-size: 0.85rem;
    color: var(--ydl-ivory-dim);
    margin: 0;
}

.ydl-sticky-cta-button {
    padding: 12px 28px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ydl-sticky-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .ydl-sticky-cta-button {
        width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .ydl-page-nav,
    .ydl-back-to-top,
    .ydl-sticky-cta,
    .ydl-scroll-progress,
    .ydl-scroll-indicator {
        display: none !important;
    }
    
    .ydl-main {
        background: white;
        color: black;
    }
    
    .ydl-section {
        page-break-inside: avoid;
    }
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.ydna-related-products {
    padding: 60px 0;
    background: var(--ydl-deep);
}

.ydna-related-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--ydl-ivory);
    margin-bottom: 40px;
    font-family: var(--ydl-font-display);
    font-weight: 700;
}

.ydna-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .ydna-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ydna-related-grid {
        grid-template-columns: 1fr;
    }
}

.ydna-related-card {
    background: var(--ydl-slate-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--ydl-transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(74, 107, 138, 0.2);
}

.ydna-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--ydl-steel);
}

.ydna-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(74, 107, 138, 0.2);
}

.ydna-related-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ydna-related-content h4 {
    font-size: 1.2rem;
    color: var(--ydl-ivory);
    margin-bottom: 8px;
    font-family: var(--ydl-font-body);
    font-weight: 600;
}

.ydna-related-content p {
    font-size: 0.95rem;
    color: var(--ydl-ivory-dim);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.ydna-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ydl-steel);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ydl-transition-fast);
    margin-top: auto;
}

.ydna-related-link:hover {
    color: var(--ydl-steel-light);
    text-decoration: underline;
}

.ydna-related-link i {
    transition: transform 0.2s ease;
}

.ydna-related-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.ydl-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.ydl-faq-item {
    border-bottom: 1px solid rgba(250, 248, 245, 0.1);
    margin-bottom: 0;
}

.ydl-faq-item:last-child {
    border-bottom: none;
}

.ydl-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--ydl-ivory);
    font-family: var(--ydl-font-body);
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--ydl-transition-fast);
}

.ydl-faq-question:hover {
    color: var(--ydl-amber);
}

.ydl-faq-question .dna-icon-chevron-down {
    flex-shrink: 0;
    transition: transform var(--ydl-transition-fast);
    color: var(--ydl-steel);
}

.ydl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.ydl-faq-item.active .ydl-faq-answer,
.ydl-faq-answer.active {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.ydl-faq-answer p {
    margin: 0 0 1rem;
    color: var(--ydl-ivory-dim);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.ydl-faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--ydl-ivory-dim);
}

.ydl-faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.ydl-faq-answer strong {
    color: var(--ydl-ivory);
    font-weight: 600;
}
