/* Darkroom skin for the long-form root pages (privacy / terms / support).
   Loads AFTER css/home.css and reuses its tokens, nav, and footer; this file
   adds only what home.css lacks: prose typography, cards, FAQ, and print. */

/* ---- Page scaffold ---- */
.page {
    max-width: 720px;
    margin-inline: auto;
    padding: calc(var(--nav-h) + clamp(40px, 8vh, 88px)) 20px 72px;
}

/* ---- Page header ---- */
.page-head {
    text-align: center;
    margin-bottom: clamp(40px, 7vh, 72px);
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head .headline {
    font-size: clamp(34px, 6vw, 56px);
    margin-bottom: 16px;
}
.page-head .subtitle {
    color: var(--text-mid);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    max-width: 560px;
    margin-inline: auto;
}
/* load animation is pure CSS so it never depends on JS; the global
   reduced-motion block in home.css collapses it to instant */
@keyframes page-head-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.page-head > * { animation: page-head-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.page-head > :nth-child(2) { animation-delay: 0.08s; }
.page-head > :nth-child(3) { animation-delay: 0.16s; }
.page-head > :nth-child(4) { animation-delay: 0.24s; }

/* ---- Scroll reveals (hidden state comes from home.css html.js gate) ---- */
html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Long-form prose cards ---- */
.content-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 32px);
    margin-bottom: 16px;
}
.content-card h2 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.content-card p {
    color: var(--text-mid);
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 12px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { list-style: none; margin: 14px 0 2px; }
.content-card li {
    color: var(--text-mid);
    font-size: 15.5px;
    line-height: 1.6;
    position: relative;
    padding-inline-start: 20px;
    margin-bottom: 9px;
}
.content-card li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}
.content-card a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(94, 160, 255, 0.4);
    transition: text-decoration-color 0.15s ease-out;
}
.content-card a:hover { text-decoration-color: var(--accent-glow); }
.content-card strong { color: var(--text-hi); font-weight: 600; }

/* ---- Cross-link cards ---- */
.links-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 40px;
}
.link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    padding: 20px 22px;
    text-decoration: none;
    transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}
.link-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.link-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-low);
    margin-bottom: 6px;
}
.link-title { color: var(--text-hi); font-weight: 600; font-size: 16px; }

/* ---- Last-updated note ---- */
.footer { text-align: center; margin-top: 40px; }
.footer p { color: var(--text-low); font-size: 13px; font-family: var(--font-mono); }

/* ---- Nav: current page ---- */
.nav-links a[aria-current="page"] { color: var(--text-hi); }

/* ---- Support: contact CTA (nav-cta recipe, one size up) ---- */
.contact-btn {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 26px;
    border-radius: 999px;
    background:
        linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
        linear-gradient(120deg, var(--accent-a), var(--accent-b)) border-box;
    border: 1px solid transparent;
    color: var(--text-hi);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: box-shadow 0.15s ease-out;
}
.contact-btn:hover { box-shadow: 0 0 24px -8px rgba(94, 160, 255, 0.5); }

/* ---- Support: formats ---- */
.formats-section {
    text-align: center;
    margin-bottom: clamp(48px, 8vh, 72px);
}
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-desc { color: var(--text-mid); font-size: 15.5px; margin-bottom: 22px; }
.formats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ---- Support: FAQ ---- */
.faq-section { display: grid; gap: clamp(36px, 6vh, 56px); }
.faq-category-title {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-hi);
    font-size: 15.5px;
    font-weight: 550;
    text-align: start;
    cursor: pointer;
}
.faq-question:hover .faq-chevron { color: var(--accent-glow); }
.faq-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-low);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease-out;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent-glow); }
.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; min-height: 0; }
.faq-answer p {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.65;
    padding: 0 20px 16px;
}
.faq-answer strong { color: var(--text-hi); font-weight: 600; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Support: system requirements ---- */
.requirements {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: clamp(40px, 7vh, 64px);
    text-align: center;
}
.requirements h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.requirements p { color: var(--text-mid); font-size: 14.5px; margin-bottom: 6px; }
.requirements p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .links-section { grid-template-columns: 1fr; }
}

/* ---- Print: legal pages must stay printable despite the dark theme ---- */
@media print {
    :root { color-scheme: light; }
    html, body { background: #fff !important; color: #000 !important; }
    body::after { display: none !important; } /* film grain */
    .site-nav, .skip-link, .site-footer, .contact-btn, .links-section { display: none !important; }
    .page { max-width: none; padding: 0; }
    .page-head > * { animation: none !important; }
    html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .page-head .headline, .content-card h2, .faq-category-title, .section-title,
    .requirements h3, .faq-question, .content-card strong, .faq-answer strong { color: #000 !important; }
    .page-head .subtitle, .content-card p, .content-card li, .faq-answer p,
    .requirements p, .section-desc { color: #222 !important; }
    .eyebrow, .section-label, .footer p, .pro-tag { color: #444 !important; }
    .chip { color: #000 !important; background: none !important; border-color: #ccc !important; }
    .chip.is-pro::after { display: none !important; }
    .content-card, .faq-item, .requirements {
        background: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    .content-card li::before { background: #000 !important; }
    a { color: #000 !important; }
    .content-card a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; color: #444; }
    .faq-answer-wrap { grid-template-rows: 1fr !important; }
    .faq-chevron { display: none !important; }
}
