/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * DNA Segment Comparator product page styling.
 * Provides hero, sample stats, feature grid, workflow, FAQ, and finale sections.
 */

:root {
    --dsc-bg: #ffffff;
    --dsc-bg-alt: #f8fafc;
    --dsc-text: #0f172a;
    --dsc-text-muted: #475569;
    --dsc-primary: #0d9488;
    --dsc-primary-dark: #0f766e;
    --dsc-accent: #14b8a6;
    --dsc-border: #e2e8f0;
    --dsc-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --dsc-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);
    --dsc-radius: 12px;
    --dsc-radius-lg: 18px;
}

.dsc-main {
    background: var(--dsc-bg);
    color: var(--dsc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dsc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--dsc-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.dsc-skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.dsc-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--dsc-primary);
    color: #fff;
    box-shadow: var(--dsc-shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.dsc-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO
   ======================================== */
.dsc-hero {
    padding: 7rem 0 3rem;
    background: linear-gradient(180deg, var(--dsc-bg-alt) 0%, var(--dsc-bg) 100%);
}

.dsc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--dsc-primary-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.dsc-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--dsc-text);
}

.dsc-hero-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dsc-primary-dark);
    margin-bottom: 1rem;
}

.dsc-hero-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--dsc-text-muted);
    margin-bottom: 1.5rem;
}

.dsc-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dsc-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dsc-text);
}

.dsc-price-note {
    font-size: 0.85rem;
    color: var(--dsc-text-muted);
}

.dsc-hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dsc-btn-primary,
.dsc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--dsc-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.dsc-btn-primary {
    background: var(--dsc-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.dsc-btn-primary:hover {
    background: var(--dsc-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.dsc-btn-secondary {
    background: #fff;
    color: var(--dsc-primary-dark);
    border-color: var(--dsc-border);
}

.dsc-btn-secondary:hover {
    border-color: var(--dsc-primary);
    color: var(--dsc-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

.dsc-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.dsc-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.5rem;
    color: var(--dsc-text-muted);
    font-size: 0.9rem;
}

.dsc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dsc-trust-item i {
    color: var(--dsc-primary);
}

.dsc-hero-media img {
    width: 100%;
    height: auto;
    border: 1px solid var(--dsc-border);
}

/* ========================================
   SECTIONS / CHAPTER HEADERS
   ======================================== */
.dsc-section {
    padding: 4rem 0;
}

.dsc-section:nth-of-type(even) {
    background: var(--dsc-bg-alt);
}

.dsc-chapter-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.dsc-chapter-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dsc-primary);
    margin-bottom: 0.75rem;
}

.dsc-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--dsc-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.dsc-section-subtitle {
    font-size: 1rem;
    color: var(--dsc-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   SAMPLE STATS
   ======================================== */
.dsc-stats-row {
    gap: 0;
}

.dsc-stat-card {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dsc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dsc-shadow);
}

.dsc-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--dsc-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.dsc-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dsc-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dsc-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dsc-text);
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.dsc-feature-card {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dsc-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dsc-shadow);
    border-color: rgba(13, 148, 136, 0.3);
}

.dsc-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--dsc-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.dsc-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dsc-text);
}

.dsc-feature-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--dsc-text-muted);
    margin-bottom: 0;
}

/* ========================================
   WORKFLOW STEPS
   ======================================== */
.dsc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dsc-step {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.dsc-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dsc-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dsc-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dsc-text);
}

.dsc-step-content p {
    font-size: 0.9rem;
    color: var(--dsc-text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ========================================
   SCREENSHOTS
   ======================================== */
.dsc-screenshot-frame {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius-lg);
    padding: 0.75rem;
    box-shadow: var(--dsc-shadow-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.dsc-screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--dsc-radius-lg) - 4px);
}

/* ========================================
   REQUIREMENTS
   ======================================== */
.dsc-req-card {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 1.5rem;
    height: 100%;
}

.dsc-req-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dsc-text);
}

.dsc-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dsc-req-list li {
    padding: 0.45rem 0;
    color: var(--dsc-text-muted);
    border-bottom: 1px solid var(--dsc-border);
}

.dsc-req-list li:last-child {
    border-bottom: none;
}

.dsc-req-list strong {
    color: var(--dsc-text);
    margin-right: 0.35rem;
}

/* ========================================
   FAQ
   ======================================== */
.dsc-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.dsc-faq-item {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.dsc-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dsc-text);
}

.dsc-faq-question i {
    transition: transform 0.2s ease;
    color: var(--dsc-text-muted);
}

.dsc-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dsc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.dsc-faq-answer p {
    margin: 0;
    padding-bottom: 1.1rem;
    color: var(--dsc-text-muted);
    line-height: 1.6;
}

.dsc-faq-item.dsc-faq-open .dsc-faq-answer {
    max-height: 500px;
}

/* ========================================
   FINALE
   ======================================== */
.dsc-finale {
    background: linear-gradient(180deg, var(--dsc-bg-alt) 0%, var(--dsc-bg) 100%);
}

.dsc-finale-card {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--dsc-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.dsc-finale-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--dsc-text);
}

.dsc-finale-subtitle {
    font-size: 1.05rem;
    color: var(--dsc-text-muted);
    margin-bottom: 1.75rem;
}

.dsc-finale-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dsc-finale-footnote {
    font-size: 0.9rem;
    color: var(--dsc-text-muted);
    margin: 0;
}

.dsc-disclaimer {
    max-width: 800px;
    margin: 1.75rem auto 0;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.03);
    border-left: 4px solid var(--dsc-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--dsc-text-muted);
    line-height: 1.55;
}

.dsc-disclaimer strong {
    color: var(--dsc-text);
}

/* ========================================
   RELATED PRODUCTS (uses _ProductRelatedItems with cssPrefix "dsc")
   ======================================== */
.dsc-related-products {
    padding: 4rem 0;
    background: var(--dsc-bg-alt);
}

.dsc-related-title {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dsc-text);
}

.dsc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dsc-related-card {
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

.dsc-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dsc-shadow);
}

.dsc-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--dsc-bg-alt);
}

.dsc-related-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.dsc-related-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--dsc-text);
}

.dsc-related-content p {
    font-size: 0.9rem;
    color: var(--dsc-text-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.dsc-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--dsc-primary-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.dsc-related-link:hover {
    color: var(--dsc-primary);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@@media (max-width: 768px) {
    .dsc-hero {
        padding: 4.5rem 0 2rem;
    }

    .dsc-section {
        padding: 2.5rem 0;
    }

    .dsc-hero-ctas {
        flex-direction: column;
    }

    .dsc-btn-primary,
    .dsc-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@@media print {
    .dsc-back-to-top,
    .dsc-hero-ctas,
    .dsc-finale-buttons {
        display: none !important;
    }
}
