/* ==========================================================================
   Zmew — content pages (docs, support, legal)
   Requires base.css.
   ========================================================================== */

/* ── PAGE LAYOUT ────────────────────────────────────────────────────────── */
.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 130px var(--gutter) 80px;
    line-height: 1.65;
}

.page-header {
    margin-bottom: 48px;
}

.page h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-lead {
    font-size: 1.1rem;
    color: var(--fg2);
    max-width: 560px;
}

.page-meta {
    color: var(--fg2);
    font-size: .9rem;
}

/* Section blocks within a page (docs guides, support walkthrough) */
.block {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.block h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.015em;
    margin-bottom: 16px;
}

.block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 8px;
}

.block > p:not([class]) {
    color: var(--fg2);
    margin-bottom: 20px;
}

.note {
    color: var(--fg2);
    font-size: .875rem;
    margin-top: 16px;
}

/* ── LINKS & INLINE ─────────────────────────────────────────────────────── */
.page a:not([class]) {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--brand-rgb), .25);
    transition: border-color .2s;
}

.page a:not([class]):hover {
    border-bottom-color: var(--brand);
}

.page code {
    background: rgba(var(--brand-rgb), .08);
    color: var(--fg);
    border-radius: 5px;
    padding: 3px 6px;
    font-family: inherit;
    font-size: .94em;
    overflow-wrap: anywhere;
}

/* ── PROSE (legal) ──────────────────────────────────────────────────────── */
.prose h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 48px 0 16px;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 10px;
}

.prose p:not([class]),
.prose li {
    color: var(--fg2);
    margin-bottom: 14px;
}

.prose ul {
    padding-left: 22px;
    margin-bottom: 14px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--fg);
    font-weight: 600;
}

/* ── NUMBERED STEPS ─────────────────────────────────────────────────────── */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 12px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 18px 20px 18px 62px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg2);
    color: var(--fg2);
    overflow-wrap: anywhere;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.steps .step-title {
    display: block;
    color: var(--fg);
    font-size: .96rem;
    margin-bottom: 4px;
}

/* ── CALLOUT ────────────────────────────────────────────────────────────── */
.callout {
    background: rgba(var(--brand-rgb), .06);
    border: 1px solid rgba(var(--brand-rgb), .15);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 32px 0 48px;
}

.page .callout p {
    color: var(--fg);
    margin-bottom: 8px;
}

.page .callout p:last-child {
    margin-bottom: 0;
}

/* Contact variant: icon · text · button in a row */
.callout--contact {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0 56px;
}

.callout--contact .callout-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
}

.callout--contact .callout-text {
    flex: 1;
}

.callout--contact .callout-text p {
    font-size: .92rem;
    color: var(--fg2);
}

.callout--contact .callout-text strong {
    display: block;
    margin-bottom: 4px;
}

/* ── FAQ (native <details>) ─────────────────────────────────────────────── */
.faq-group {
    margin-bottom: 52px;
}

.faq-group h2 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.faq-group details {
    border-bottom: 1px solid var(--border);
}

.faq-group details:last-child {
    border-bottom: none;
}

.faq-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-weight: 600;
    transition: color .2s;
}

.faq-group summary::-webkit-details-marker {
    display: none;
}

.faq-group summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-right: 2px solid var(--fg2);
    border-bottom: 2px solid var(--fg2);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .25s;
}

.faq-group details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.faq-group summary:hover {
    color: var(--brand);
}

.faq-answer {
    padding-bottom: 20px;
    font-size: .95rem;
    color: var(--fg2);
    line-height: 1.75;
}

.faq-answer p,
.faq-answer ul {
    margin-bottom: 10px;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer strong {
    color: var(--fg);
    font-weight: 600;
}

/* ── DOWNLOADS LIST (docs) ──────────────────────────────────────────────── */
.download-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.download-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg2);
    font-weight: 600;
}

.page .download-list a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: none;
    font-size: .9rem;
    white-space: nowrap;
}

.page .download-list a:hover {
    text-decoration: underline;
}

/* ── STILL NEED HELP ────────────────────────────────────────────────────── */
.still-help {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin-top: 16px;
}

.still-help h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.still-help p {
    color: var(--fg2);
    margin-bottom: 20px;
    font-size: .95rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .page {
        padding: 110px var(--gutter) 60px;
    }

    .callout--contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps li {
        padding-right: 14px;
    }
}
