/* Copyright (c) 2026 DNA Genics, S.L. All rights reserved. */

.atlas-product {
    --atlas-product-ink: #f0e7da;
    --atlas-product-muted: #cec0ad;
    --atlas-product-gold: #f4c482;
    --atlas-product-line: #584d3a;
    --atlas-product-bg: #06141c;
    --atlas-product-panel: #122129;
    --atlas-product-raised: #192a32;
}

.hpl-page.atlas-product:not(:where(.shared-roots-product-page, .acp-atlas-product)) {
    --hd-ink: var(--atlas-product-ink);
    --hd-bg: var(--atlas-product-bg);
    --hd-muted: var(--atlas-product-muted);
    --hd-forest: var(--atlas-product-ink);
    --hd-border: var(--atlas-product-line);
    --hd-sand: var(--atlas-product-panel);
    --hd-sage: var(--atlas-product-raised);
    background: var(--atlas-product-bg);
    line-height: 1.6;
}

.atlas-product .hpl-container { max-width: 1390px; }
.atlas-product .hpl-eyebrow { color: var(--atlas-product-gold); }
.atlas-product .hpl-skip-link { inset-inline-start: 1rem; left: auto; background: #0b1c25; }
.atlas-product .hpl-text-link,
.atlas-product a:hover { color: var(--atlas-product-gold); }
.atlas-product .hpl-text-link:hover { color: #ffe3b5; }
.atlas-product :is(a, button, summary, input, [tabindex]):focus-visible {
    outline: 2px solid var(--atlas-product-gold);
    outline-offset: 3px;
}

.atlas-product .hpl-button--primary,
.atlas-product .hpl-button--cream {
    border-color: var(--atlas-product-gold);
    background: #e8b577;
    color: #16130e;
}
.atlas-product .hpl-button--primary:hover,
.atlas-product .hpl-button--cream:hover { border-color: #ffe0b1; background: #ffe0b1; color: #16130e; }
.atlas-product .hpl-button--outline { border-color: #b29162; background: #091820; color: var(--atlas-product-ink); }
.atlas-product .hpl-button--outline:hover { border-color: var(--atlas-product-gold); background: #21343d; color: #fff4de; }

.atlas-product .atlas-product-hero {
    display: grid;
    place-items: center;
    min-height: clamp(24rem, 34vw, 34rem);
    padding-block: clamp(2rem, 4vw, 4rem);
    border-block-end: 1px solid var(--atlas-product-line);
    background: var(--atlas-product-hero-art) center / cover no-repeat #0b1c25;
}

.atlas-product .atlas-product-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: .9rem;
    text-align: center;
}

.atlas-product .atlas-product-hero-copy {
    width: min(100%, 40rem);
    padding: clamp(1rem, 2.8vw, 1.75rem);
    border: 1px solid #806444;
    border-radius: .85rem;
    background: rgba(6, 20, 28, .88);
}

.atlas-product .atlas-product-hero-copy .hpl-eyebrow { margin-block-end: .62rem; letter-spacing: .23em; }
.atlas-product .atlas-product-hero-copy h1 {
    max-width: none;
    margin: 0 auto .9rem;
    color: #fff0db;
    font-size: clamp(2.85rem, 5.6vw, 5.6rem);
    font-style: italic;
    font-weight: 500;
    line-height: .94;
    text-wrap: balance;
}

.atlas-product .atlas-product-hero-description { max-width: 45ch; margin: 0 auto 1.15rem; color: var(--atlas-product-ink); font-size: 1.02rem; line-height: 1.58; }
.atlas-product .atlas-product-hero-actions { display: flex; flex-flow: row wrap; justify-content: center; align-items: stretch; margin: 0; }
.atlas-product .atlas-product-hero-actions .hpl-button { min-height: 2.8rem; padding: .58rem 1.1rem; }
.atlas-product-sample-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1rem;
    max-width: 100%;
    padding-inline: .85rem;
    border-radius: .65rem;
    background: #0a1b24;
}
.atlas-product .atlas-product-sample-links .hpl-text-link { min-height: 44px; font-size: .82rem; }

.atlas-product-nav { border-block-end: 1px solid var(--atlas-product-line); background: #0b1921; }
.atlas-product-nav .hpl-container { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(1rem, 3vw, 2.8rem); }
.atlas-product-nav a { display: inline-grid; min-height: 3rem; place-items: center; font-size: .88rem; text-align: center; text-decoration: none; }
.atlas-product-nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }

.atlas-product .hpl-section { padding-block: clamp(1.9rem, 4vw, 3.9rem); }
.atlas-product .hpl-section + .hpl-section { border-block-start: 1px solid var(--atlas-product-line); }
.atlas-product .hpl-section-header { align-items: end; margin-block-end: 1.28rem; }
.atlas-product .hpl-section h2 { font-size: clamp(2rem, 3.65vw, 3.35rem); line-height: 1.04; }
.atlas-product .hpl-section-header > p { line-height: 1.55; }
.atlas-product :is(.hpl-report-mockup, .hpl-report-preview) {
    border: 1px solid var(--atlas-product-line);
    background: var(--atlas-product-panel);
    color: var(--atlas-product-ink);
}

.atlas-product :is(.hpl-report-mockup-heading > span, .hpl-report-mockup figcaption) { color: var(--atlas-product-muted); }
.atlas-product :is(.hpl-report-mockup-link, .hap-image-disclosure summary) { color: var(--atlas-product-gold); }
.atlas-product .hpl-report-preview-button { border-color: var(--atlas-product-line); background: var(--atlas-product-raised); color: var(--atlas-product-ink); cursor: pointer; }
.atlas-product .hpl-report-preview-button:hover,
.atlas-product .hpl-report-preview-button[aria-pressed="true"] { border-color: var(--atlas-product-gold); background: #e8b577; color: #16130e; }
.atlas-product :is(.hpl-report-mockup picture, .hpl-report-mockup img, .hpl-report-mockup-fallback, .hpl-report-preview-art) { background: #07161f; }
.atlas-product .hpl-report-preview::backdrop { background: rgba(0, 9, 16, .83); }

.atlas-product :is(.acp-reference-section, .srp-map-section) { background: #0b1a23; }
.atlas-product .heritage-panel-library { padding: clamp(.72rem, 1.7vw, 1.25rem); border: 1px solid var(--atlas-product-line); border-radius: .72rem; background: var(--atlas-product-panel); }
.hpl-page.atlas-product .heritage-panel-library[data-srp-collection] .srp-collection-controls [aria-pressed="true"] { border-color: var(--atlas-product-gold); background: #e8b577; color: #16130e; }
.atlas-product .heritage-panel-library .srp-collection-controls .hpl-button { transition: none; }
.atlas-product .heritage-panel-library .srp-collection-count { color: var(--atlas-product-muted); }
.atlas-product .heritage-panel-library .psm-map-shell { border-color: var(--atlas-product-line); }
.atlas-product .heritage-panel-library .psm-map { background: #0b1921; }
.atlas-product .heritage-panel-library .psm-map-cluster-core { background: #26383e; color: var(--atlas-product-ink); }
.atlas-product .heritage-panel-library .psm-table-shell { border-color: var(--atlas-product-line); background: #122129; }
.atlas-product .heritage-panel-library .psm-table-search { border-color: #817052; background: #0c1a23; color: var(--atlas-product-ink); }
.atlas-product .heritage-panel-library .psm-table-scroll { border-color: var(--atlas-product-line); background: #0c1a23; }
.atlas-product .heritage-panel-library .psm-table thead th { border-color: var(--atlas-product-line); background: #1a2a32; }
.atlas-product .heritage-panel-library .psm-table-cell { border-color: var(--atlas-product-line); }
.atlas-product .heritage-panel-library .psm-table-row:is(:hover, :focus-visible) { background: #25363c; }
.atlas-product .heritage-panel-library .psm-table-row:focus-visible { outline-color: var(--atlas-product-gold); }
.atlas-product .heritage-panel-library :is(.psm-table-page-status, .psm-table-portrait-notice) { color: var(--atlas-product-muted); }
.atlas-product .heritage-panel-library .psm-table-page-btn { border-color: #817052; background: #152832; color: var(--atlas-product-ink); }

.atlas-product :is(.acp-pricing, .srp-pricing) { background: #0c1b23; }
.atlas-product :is(.acp-pricing-layout, .srp-pricing-layout) { display: grid; grid-template-columns: minmax(10rem, .65fr) minmax(0, 2fr); align-items: start; gap: 1rem clamp(1rem, 3vw, 2.6rem); }
.atlas-product :is(.acp-pricing-intro, .srp-pricing-intro) h2 { margin: 0 0 .55rem; }
.atlas-product :is(.acp-pricing-intro, .srp-pricing-intro) p { max-width: 39ch; margin: 0; font-size: .92rem; }
.atlas-product :is(.acp-offer-grid, .srp-offer-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.atlas-product :is(.acp-offer-grid--single, .srp-offer-grid--single) { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
.atlas-product :is(.acp-offer, .srp-offer) {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .65rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--atlas-product-line);
    border-radius: .72rem;
    background: var(--atlas-product-panel);
}
.atlas-product :is(.acp-offer, .srp-offer) h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.13; }
.atlas-product :is(.acp-offer-price, .srp-offer-price) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0; color: var(--atlas-product-gold); font: 600 clamp(1.55rem, 2.3vw, 2.15rem)/1.05 var(--hd-serif); }
.atlas-product :is(.acp-offer-original, .srp-offer-original) { color: var(--atlas-product-muted); font: 400 .82rem/1.35 var(--hd-sans); }
.atlas-product :is(.acp-offer-detail, .srp-offer-detail) { margin: 0; font-size: .89rem; line-height: 1.45; }
.atlas-product :is(.acp-offer, .srp-offer) .hpl-button { margin-block-start: auto; min-height: 44px; padding: .48rem .9rem; }

.atlas-product .hpl-steps { gap: .85rem; }
.atlas-product .hpl-steps > li { padding: .9rem 1rem; border: 1px solid var(--atlas-product-line); border-radius: .65rem; background: var(--atlas-product-panel); }
.atlas-product .hpl-steps li > .dna-icon { display: block; width: 1.35rem; height: 1.35rem; margin-block-end: .65rem; color: var(--atlas-product-gold); }
.atlas-product .hpl-steps h3 { margin-block-end: 0; font-size: clamp(1.28rem, 2.15vw, 1.7rem); }
.atlas-product .hpl-compatibility { gap: 1.35rem; margin-block-start: 1.55rem; padding-block-start: 1.2rem; border-color: var(--atlas-product-line); }
.atlas-product .hpl-privacy-note > .dna-icon { color: var(--atlas-product-gold); }
.atlas-product .hpl-section--cream { background: #0c1b23; }
.atlas-product .hpl-faq-layout { gap: clamp(1rem, 4vw, 3rem); }
.atlas-product .hpl-faq-list details { border-color: var(--atlas-product-line); }
.atlas-product .hpl-faq-list summary { padding-block: .68rem; min-height: 2.9rem; }
.atlas-product .hpl-faq-list summary .dna-icon { color: var(--atlas-product-gold); }

.atlas-product .hpl-closing {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-block-start: 1px solid var(--hd-line);
    background: var(--hd-cream);
    color: var(--hd-primary);
}
.atlas-product .hpl-closing-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: clamp(1.5rem, 4vw, 4rem);
}
.atlas-product .hpl-closing-layout > div { min-width: 0; }
.atlas-product .hpl-closing .hpl-eyebrow { color: #785f30; }
.atlas-product .hpl-closing h2 {
    max-width: 22ch;
    margin-block-end: .85rem;
    color: var(--hd-primary);
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    text-wrap: balance;
}
.atlas-product .hpl-closing p { color: var(--hd-text-muted); }
.atlas-product .hpl-closing .hpl-actions { min-width: 0; }
.atlas-product .hpl-closing .hpl-button--cream {
    border-color: var(--hd-primary);
    background: var(--hd-primary);
    color: var(--hd-surface);
}
.atlas-product .hpl-closing .hpl-button--cream:hover {
    border-color: #172a21;
    background: #172a21;
    color: var(--hd-surface);
}
.atlas-product .hpl-closing .hpl-closing-link { color: var(--hd-primary); }
.atlas-product .hpl-closing .hpl-closing-link:hover { color: #395b47; }
.atlas-product .hpl-closing a:focus-visible { outline-color: var(--hd-sage-strong); }

/* The two Heritage report landings share the Atlas layout and use the Heritage palette. */
.hpl-page.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) {
    --atlas-product-ink: var(--hd-ink);
    --atlas-product-muted: var(--hd-muted);
    --atlas-product-gold: var(--hd-gold);
    --atlas-product-accent: #76552e;
    --atlas-product-line: var(--hd-line);
    --atlas-product-bg: var(--hd-bg);
    --atlas-product-panel: var(--hd-surface);
    --atlas-product-raised: var(--hd-sage);
    background: var(--hd-bg);
    color: var(--hd-ink);
    line-height: 1.6;
}

.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.hpl-eyebrow, .hap-image-disclosure summary, .hpl-steps li > .dna-icon, .hpl-privacy-note > .dna-icon, .hpl-faq-list .dna-icon) {
    color: var(--atlas-product-accent);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.hpl-text-link, .hpl-report-mockup-link, .atlas-product-nav a:hover) {
    color: var(--hd-forest);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-skip-link { background: var(--hd-forest); transition: none; }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-skip-link:not(:focus) { opacity: 0; pointer-events: none; }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(a, button, summary, input, [tabindex]):focus-visible {
    outline-color: var(--hd-forest);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-button--primary {
    background: var(--hd-forest);
    border-color: var(--hd-forest);
    color: var(--hd-surface);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-button--primary:hover { background: #172a21; border-color: #172a21; }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-button--outline {
    background: transparent;
    border-color: var(--hd-sage-strong);
    color: var(--hd-forest);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-button--outline:hover {
    background: var(--hd-sage);
    border-color: var(--hd-forest);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.atlas-product-nav, .acp-reference-section, .srp-map-section, .hpl-section--cream, .hpl-report-mockup picture, .hpl-report-mockup img, .hpl-report-mockup-fallback, .hpl-report-preview-art) {
    background: var(--hd-cream);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-report-preview::backdrop { background: rgb(33 58 47 / .72); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-report-preview-button:is(:hover, [aria-pressed="true"]),
.hpl-page.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library[data-srp-collection] .srp-collection-controls [aria-pressed="true"] {
    background: var(--hd-forest);
    border-color: var(--hd-forest);
    color: var(--hd-surface);
}

.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library .psm-map { background: var(--hd-sage); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library .psm-map-cluster-core { background: var(--hd-forest); color: var(--hd-surface); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library :is(.psm-table-shell, .psm-table-scroll, .psm-table-search, .psm-table-page-btn) { background: var(--hd-surface); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library :is(.psm-table-search, .psm-table-page-btn) { border-color: var(--hd-sage-strong); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library :is(.psm-table thead th, .psm-table-row:hover, .psm-table-row:focus-visible) { background: var(--hd-sage); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .heritage-panel-library .psm-table-row:focus-visible { outline-color: var(--hd-forest); }

.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.acp-pricing, .srp-pricing) { background: var(--hd-sand); }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.acp-offer, .srp-offer) {
    gap: .7rem;
    padding: clamp(1.15rem, 2.4vw, 2rem);
    color: var(--hd-ink);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.acp-offer-price, .srp-offer-price) {
    color: var(--hd-forest);
    font-size: clamp(2rem, 3vw, 2.75rem);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) :is(.acp-offer, .srp-offer) .hpl-public-offer-terms {
    align-self: stretch;
    padding: .6rem .75rem;
    border-inline-start: 2px solid var(--hd-gold);
    background: var(--hd-sage);
    color: var(--hd-forest);
}
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-faq-list summary { padding-block: .9rem; min-height: 3rem; }
.atlas-product:where(.shared-roots-product-page, .acp-atlas-product) .hpl-faq-list details > div { padding-inline: 0 1.5rem; }

@media (max-width: 1030px) {
    .atlas-product :is(.acp-pricing-layout, .srp-pricing-layout) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    body:has(.atlas-product) { padding-bottom: env(safe-area-inset-bottom); }
    .atlas-product .hpl-container { padding-inline: clamp(.8rem, 4vw, 1.5rem); }
    .atlas-product .atlas-product-hero { min-height: 0; padding-block: 7.7rem .9rem; background-position: var(--atlas-product-hero-mobile-position, 28%) top; background-size: auto 16rem; }
    .atlas-product .atlas-product-hero-copy { padding: .92rem .65rem 1rem; }
    .atlas-product .atlas-product-hero-copy h1 { font-size: clamp(2.15rem, 10vw, 3.55rem); }
    .atlas-product .atlas-product-hero-description { font-size: .92rem; }
    .atlas-product .atlas-product-hero-actions .hpl-button { flex: 1 1 8rem; padding: .55rem .42rem; }
    .atlas-product-nav a { min-height: 2.75rem; font-size: .79rem; }
    .atlas-product .hpl-section-header { align-items: start; gap: .6rem; }
    .atlas-product .hpl-section-header > p { width: auto; }
    .atlas-product :is(.acp-offer-grid, .srp-offer-grid) { grid-template-columns: minmax(0, 1fr); }
    .atlas-product .hpl-closing-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
