/* ==========================================================================
   faq.css — cinematic-dark FAQ page (NVIDIA-grade rebuild)
   Video hero + CSS-only <details> accordion + mono-caps category dividers.
   Pairs with /pages/faq.html. Tokens in /css/base/variables.css.
   ========================================================================== */

.faq-page {
    background-color: var(--ink);
    color: var(--on-black);
    font-family: var(--font-body);
}

/* Override global `p { color: var(--gray-700); }` from typography.css.
   Targeted rules: only paragraphs INSIDE answer containers, not eyebrows / headlines / copy
   which already set their own explicit colors. */
.faq-answer p,
.accordion-content p { color: var(--on-black-mute); }

.faq-page main {
    display: block;
    position: relative;
    background: var(--ink);
}

.faq-page main > section { position: relative; z-index: 1; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--red);
    color: var(--on-black);
    padding: 12px 20px;
    z-index: 9999;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0; margin: -1px;
}

/* ==========================================================================
   §A — HERO (atmospheric video + bottom-left text panel)
   ========================================================================== */
.faq-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 70vh;
    background: var(--ink);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.faq-hero__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: var(--ink);
}

.faq-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    filter: saturate(0.92) contrast(1.08);
    background: var(--ink);
}

.faq-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            105deg,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(10, 10, 10, 0.82) 28%,
            rgba(10, 10, 10, 0.42) 55%,
            rgba(10, 10, 10, 0.12) 78%,
            transparent 95%
        );
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.65) 0%, transparent 28%);
}

.faq-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 10, 0.50) 40%,
        rgba(10, 10, 10, 0.85) 75%,
        rgba(200, 16, 46, 0.10) 100%
    );
}

.faq-hero__panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    padding: 0 32px 96px;
    margin-left: max(32px, calc((100vw - 1280px) / 2));
}

.faq-hero__panel::before {
    content: "";
    position: absolute;
    left: 32px;
    top: -16px;
    width: 56px;
    height: 1px;
    background: linear-gradient(to right, rgba(200, 16, 46, 0.85), rgba(200, 16, 46, 0));
    box-shadow: 0 0 12px rgba(200, 16, 46, 0.35);
}

.faq-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--red);
    text-shadow: 0 0 12px rgba(200, 16, 46, 0.40);
    margin: 0 0 32px 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.faq-hero__eyebrow-rule {
    width: 28px;
    height: 1px;
    background: var(--red);
    opacity: 0.7;
}

.faq-hero__headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--on-black);
    margin: 0 0 24px 0;
    max-width: 18ch;
    text-shadow:
        0 2px 24px rgba(10, 10, 10, 0.55),
        0 0 64px rgba(200, 16, 46, 0.10);
}

.faq-hero__headline em {
    font-style: italic;
    font-weight: 400;
    color: color-mix(in oklab, var(--red) 70%, var(--on-black));
}

.faq-hero__subhead {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.45;
    color: var(--on-black-mute);
    max-width: 48ch;
    margin: 0;
    text-shadow: 0 1px 18px rgba(10, 10, 10, 0.55);
}

.faq-hero__subhead em {
    font-style: italic;
    color: color-mix(in oklab, var(--red) 60%, var(--on-black));
}

@media (max-width: 768px) {
    .faq-hero { min-height: 60vh; }
    .faq-hero__panel { padding: 0 24px 56px; margin-left: 0; }
}

/* ==========================================================================
   §B — FAQ BODY
   ========================================================================== */
.faq-body {
    background: #0e0e0e;
    padding: 112px 0 128px;
    position: relative;
    overflow: hidden;
}

.faq-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 8%, rgba(200, 16, 46, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(200, 16, 46, 0.04) 0%, transparent 65%);
}

.faq-body__inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 32px;
}

.faq-body__loading {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--on-black-mute);
    padding: 80px 0;
    text-align: center;
}

/* --- CATEGORY (mono-caps divider) --- */
.faq-cat {
    padding: 0 0 16px;
    margin-bottom: 56px;
}
.faq-cat:last-of-type { margin-bottom: 0; }

.faq-cat__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 0 0 28px;
    margin: 0 0 12px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.10);
}

.faq-cat__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    line-height: 1;
}

.faq-cat__rule {
    display: block;
    height: 1px;
    background: linear-gradient(to right, rgba(200, 16, 46, 0.55) 0%, rgba(245, 241, 232, 0.10) 60%, transparent 100%);
}

.faq-cat__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--on-black);
    margin: 0;
    line-height: 1;
    text-align: right;
}

.faq-cat__list {
    display: flex;
    flex-direction: column;
}

/* --- FAQ ITEM (CSS-only <details> accordion) --- */
.faq-item {
    border-top: 1px solid rgba(245, 241, 232, 0.08);
    transition: background 400ms ease;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}

.faq-item[open] {
    background: linear-gradient(to right, rgba(200, 16, 46, 0.05), transparent 70%);
}

/* hide native disclosure marker */
.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }

.faq-item__head {
    display: grid;
    grid-template-columns: 56px 1fr 32px;
    align-items: center;
    gap: 24px;
    padding: 28px 24px;
    margin: 0 -24px;
    cursor: pointer;
    user-select: none;
    transition: color 400ms ease;
    outline: none;
}

.faq-item__head:hover,
.faq-item__head:focus-visible {
    outline: none;
}

.faq-item__head:focus-visible .faq-item__q {
    color: var(--red);
}

.faq-item__num {
    font: 400 1.125rem/1 var(--font-display);
    color: rgba(245, 241, 232, 0.30);
    letter-spacing: -0.01em;
    transition: color 400ms ease;
}

.faq-item[open] .faq-item__num,
.faq-item__head:hover .faq-item__num {
    color: var(--red);
}

.faq-item__q {
    font: 400 clamp(1rem, 1.4vw, 1.1875rem)/1.4 var(--font-display);
    letter-spacing: -0.005em;
    color: var(--on-black);
    transition: color 400ms ease;
}

/* + / − icon (red, hairline) */
.faq-item__icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
    justify-self: end;
}

.faq-item__icon-bar {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--red);
    transform: translateY(-50%);
    transition: opacity 300ms ease, transform 400ms cubic-bezier(.2,.7,.2,1);
}

.faq-item__icon-bar--v {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon-bar--v {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
}

.faq-item__body {
    padding: 0 24px 32px;
    margin: 0 -24px;
}

.faq-item__answer {
    padding-left: 80px;
    font: 400 var(--text-base)/1.7 var(--font-body);
    color: var(--on-black-mute);
    max-width: 70ch;
}

.faq-item__answer p {
    margin: 0 0 14px;
    color: var(--on-black-mute);
}
.faq-item__answer p:last-child { margin-bottom: 0; }

.faq-item__answer strong {
    color: var(--on-black);
    font-weight: 600;
}

.faq-item__answer em {
    font-style: italic;
    color: color-mix(in oklab, var(--red) 60%, var(--on-black));
}

.faq-item__answer a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 16, 46, 0.40);
    transition: border-color 300ms ease;
}
.faq-item__answer a:hover { border-bottom-color: var(--red); }

.faq-item__list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.faq-item__list li {
    position: relative;
    padding: 4px 0 4px 20px;
    color: var(--on-black-mute);
}

.faq-item__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 1px;
    background: var(--red);
}

/* --- EMPTY --- */
.faq-body__empty {
    border-top: 1px solid rgba(245, 241, 232, 0.08);
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
    padding: 96px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.faq-body__empty-rule {
    width: 48px;
    height: 1px;
    background: var(--red);
}

.faq-body__empty-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0;
}

.faq-body__empty-copy {
    font: 400 var(--text-xl)/1.45 var(--font-display);
    font-style: italic;
    color: var(--on-black);
    margin: 0;
    max-width: 40ch;
}

.faq-body__empty-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 14px 26px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    border: 1px solid var(--red);
    transition: background 500ms ease, color 500ms ease, box-shadow 600ms ease;
}

.faq-body__empty-link:hover,
.faq-body__empty-link:focus-visible {
    background: var(--red);
    color: var(--on-black);
    box-shadow: 0 0 24px rgba(200, 16, 46, 0.30);
    outline: none;
}

/* ==========================================================================
   §C — ASK
   ========================================================================== */
.faq-ask {
    background: var(--ink);
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}

.faq-ask::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(200, 16, 46, 0.06) 0%,
        transparent 65%
    );
}

.faq-ask__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.faq-ask__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 28px;
}

.faq-ask__eyebrow .rule {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--red);
}

.faq-ask__headline {
    font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--font-display);
    letter-spacing: -0.02em;
    color: var(--on-black);
    margin: 0 0 28px;
    max-width: 22ch;
}

.faq-ask__headline em {
    font-style: italic;
    font-weight: 400;
    color: color-mix(in oklab, var(--red) 70%, var(--on-black));
}

.faq-ask__copy {
    font: 400 var(--text-lg)/1.55 var(--font-body);
    color: var(--on-black-mute);
    margin: 0 0 36px;
    max-width: 56ch;
}

.faq-ask__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    border: 1px solid var(--red);
    transition: background 500ms ease, color 500ms ease, box-shadow 600ms ease;
}

.faq-ask__cta:hover,
.faq-ask__cta:focus-visible {
    background: var(--red);
    color: var(--on-black);
    box-shadow:
        inset 0 0 8px rgba(200, 16, 46, 0.20),
        0 0 24px rgba(200, 16, 46, 0.30),
        0 0 48px rgba(200, 16, 46, 0.18);
    outline: none;
}

.faq-ask__arrow { transition: transform 300ms ease; }
.faq-ask__cta:hover .faq-ask__arrow { transform: translateX(4px); }

/* ==========================================================================
   ART DIRECTION PASS — FAQ accordion editorial upgrade
   ========================================================================== */

/* FAQ item rows — generic class aliases (for future CMS-rendered variants) */
.faq-question,
.accordion-item {
    border-bottom: 1px solid rgba(245, 241, 232, 0.10);
    padding: 0;
    position: relative;
}

/* Question trigger — generic aliases */
.faq-item__question,
.faq-question__text,
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
    cursor: pointer;
    font: 400 clamp(1.1rem, 1.6vw, 1.375rem)/1.3 var(--font-display);
    font-style: italic;
    letter-spacing: -0.015em;
    color: var(--on-black);
    text-align: left;
    background: transparent;
    border: none;
    width: 100%;
    transition: color 400ms ease-out;
}

.faq-item__question:hover,
.faq-question__text:hover,
.accordion-trigger:hover {
    color: color-mix(in oklab, var(--red) 65%, var(--on-black));
}

/* Answer body — generic aliases */
.faq-answer,
.accordion-content {
    font: 400 var(--text-base)/1.7 var(--font-body);
    color: var(--on-black-mute);
    max-width: 72ch;
    padding: 0 0 32px;
}

/* Upgrade existing faq-item question trigger: italic display heading, hover color */
.faq-item__head {
    font: 400 clamp(1rem, 1.4vw, 1.1875rem)/1.3 var(--font-display);
    font-style: italic;
    letter-spacing: -0.01em;
    transition: color 400ms ease-out;
}

.faq-item__head:hover,
.faq-item__head:focus-visible {
    color: color-mix(in oklab, var(--red) 65%, var(--on-black));
    outline: none;
}

/* Upgrade existing answer body: max-width + line-height */
.faq-item__answer {
    font: 400 var(--text-base)/1.7 var(--font-body);
    color: var(--on-black-mute);
    max-width: 72ch;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .faq-cat__head {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }
    .faq-cat__title {
        grid-column: 1 / -1;
        text-align: left;
        order: 3;
    }
    .faq-item__head { grid-template-columns: 36px 1fr 32px; gap: 16px; padding: 22px 16px; margin: 0 -16px; }
    .faq-item__body { padding: 0 16px 28px; margin: 0 -16px; }
    .faq-item__answer { padding-left: 52px; }
}

@media (max-width: 640px) {
    .faq-body { padding: 80px 0 96px; }
    .faq-body__inner { padding: 0 24px; }
    .faq-ask { padding: 80px 0 100px; }
    .faq-ask__inner { padding: 0 24px; }
    .faq-item__answer { padding-left: 0; }
}