/* ═══════════════════════════════════════════════════════
   21VOX BITCOIN PULSE FRONT PAGE: "The Window"
   /bitcoin-pulse (bitcoin-pulse/index.html). Loaded after styles.css. Everything is under .pf.
   Leads with a real screenshot of the Desk; the dashboard itself is /bitcoin-pulse/app.
   ═══════════════════════════════════════════════════════ */

:root {
    --pf-text: #f5f0e8;
    --pf-body: #d9d3c9;
    --pf-pill: #e6e0d6;
    --pf-muted: #a8a196;
    --pf-dim: #8a8378;
    --pf-card: #0f0e0d;
    --pf-shot: #111110;
    --pf-line: #262420;
    --pf-band-line: #1c1b19;
    --pf-outline: #3a3732;
    --pf-green: #3ecf8e;
    --pf-ink: #140c02;
}

/* Georgia sized to DM Serif Display's width, so headings barely reflow when the web font arrives */
@font-face { font-family: 'DM Serif Fallback'; src: local('Georgia'); size-adjust: 97%; }

body { background: var(--black); }
main.pf { --serif: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif; color: var(--pf-text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
/* Resets carry no extra weight (:where), so the component rules below set their own margins and colours */
.pf :where(h1, h2, h3, p, figure, ol, ul, table) { margin: 0; }
.pf :where(a) { color: inherit; text-decoration: none; }
.pf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pf a:focus-visible, .pf summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
/* Same box as the site header's inner row, so the page lines up with the logo */
.pf-wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.pf-eyebrow { margin-bottom: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.pf-h2 { margin-bottom: 16px; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.08; color: var(--pf-text); text-wrap: balance; }
.pf-h2 em, .pf-hero h1 em { color: var(--orange); }
.pf-link { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pf .pf-link:hover { color: #ffa53d; }

/* Buttons */
.pf-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 10px; font-size: 16px; font-weight: 700; transition: background 0.2s ease, border-color 0.2s ease; }
.pf .pf-btn--primary { background: var(--orange); color: var(--pf-ink); }
.pf .pf-btn--primary:hover { background: #ffa53d; }
.pf .pf-btn--ghost { border: 1px solid var(--pf-outline); color: var(--pf-text); }
.pf .pf-btn--ghost:hover { border-color: var(--orange); }

/* ── 1. Hero: the copy, then a real screenshot of the Desk ── */
.pf-hero { padding-block: 64px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.pf-hero-copy { flex: 1 1 400px; min-width: 0; max-width: 500px; }
.pf-hero h1 { margin-bottom: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.4vw, 68px); line-height: 1.02; color: var(--pf-text); text-wrap: balance; }
.pf-lede { margin-bottom: 30px; font-size: 19px; color: var(--pf-body); }
.pf-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pf-fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-muted); }
.pf-shot { flex: 1.5 1 560px; min-width: 0; }
.pf-shot-frame { overflow: hidden; background: var(--pf-shot); border: 1px solid var(--pf-line); border-top: 2px solid var(--orange); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.pf-shot img { display: block; width: 100%; height: auto; }
.pf-shot figcaption { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--pf-dim); }

/* ── 2. Stat strip ── */
.pf-stats { padding-bottom: 72px; }
.pf-stats-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--pf-line); }
.pf-stat { padding: 22px 24px; }
.pf-stat:first-child { padding-left: 0; }
.pf-stat + .pf-stat { border-left: 1px solid var(--pf-line); }
.pf-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--pf-text); font-variant-numeric: tabular-nums; }
.pf-stat b.pf-zero { color: var(--orange); }
.pf-stat span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--pf-muted); }

/* ── 3 and 5. A heading column beside a list or table ── */
.pf-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.pf-side { flex: 1 1 300px; min-width: 0; max-width: 360px; }
.pf-side p { color: var(--pf-body); }
.pf-side p + p { margin-top: 16px; font-size: 15px; color: var(--pf-muted); }

/* ── 3. What's on the screen: one row per question ── */
.pf-screen { padding-bottom: 88px; scroll-margin-top: 24px; }
.pf-qs { flex: 999 1 560px; min-width: 0; list-style: none; padding: 0; border-top: 1px solid var(--pf-line); }
.pf-q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--pf-line); }
.pf-q-t { flex: 1 1 280px; min-width: 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.pf-q-card { flex: 0 1 220px; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.pf-q-card span { display: block; font-weight: 400; color: var(--pf-muted); }
.pf-q-when { flex: 0 0 120px; text-align: right; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-muted); }
.pf-q-when--live { color: var(--pf-green); }

/* ── 4. Three ways to use it (a band) ── */
.pf-band { background: var(--pf-card); border-block: 1px solid var(--pf-band-line); }
.pf-modes { padding-block: 80px 88px; }
.pf-modes .pf-h2 { margin-bottom: 36px; }
.pf-modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pf-mode { display: flex; flex-direction: column; overflow: hidden; background: var(--black); border: 1px solid var(--pf-line); border-radius: 16px; }
.pf-mode-img { height: 220px; overflow: hidden; background: var(--pf-shot); border-bottom: 1px solid var(--pf-line); }
.pf-mode-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pf-mode-img--phone { display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; }
.pf-mode-img--phone img { flex: none; width: 190px; height: auto; border: 1px solid var(--pf-outline); border-bottom: 0; border-radius: 18px 18px 0 0; }
.pf-mode-body { padding: 22px 24px 26px; }
.pf-mode h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.pf-key { min-width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--pf-outline); border-bottom-width: 3px; border-radius: 7px; font-family: var(--mono); font-size: 13px; color: var(--pf-text); }
.pf-key svg { width: 12px; height: 16px; }
.pf-mode p { font-size: 16px; color: var(--pf-body); }

/* ── 5. Where the numbers come from ── */
.pf-sources { padding-block: 88px; }
.pf-table-box { flex: 999 1 560px; min-width: 0; overflow-x: auto; border: 1px solid var(--pf-line); border-radius: 16px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pf-table th { padding: 14px 20px; background: var(--pf-card); text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-dim); }
.pf-table td { padding: 14px 20px; border-top: 1px solid var(--pf-line); color: var(--pf-body); }
.pf-table th:last-child, .pf-table td:last-child { text-align: right; }
.pf-table td:first-child { font-weight: 700; color: var(--pf-text); }
.pf-table td:last-child { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.pf-table .pf-live { color: var(--pf-green); }

/* ── 6. FAQ ── */
.pf-faq { padding-bottom: 88px; }
.pf-faq .pf-h2 { margin-bottom: 28px; }
.pf-faq-list { max-width: 860px; border-top: 1px solid var(--pf-line); }
.pf-faq-item { padding: 18px 0; border-bottom: 1px solid var(--pf-line); }
.pf-faq-item summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--pf-text); }
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary::after { content: '+'; flex: none; font-family: var(--sans); color: var(--orange); }
.pf-faq-item[open] summary::after { content: '\2212'; }
.pf-faq-item p { margin-top: 12px; color: var(--pf-body); }

/* ── 7. Closing call to action (a band) ── */
.pf-end { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.pf-end h2 { flex: 1 1 480px; min-width: 0; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.06; text-wrap: balance; }
.pf-end h2 em { color: var(--orange); }
.pf-end .pf-btn { min-height: 54px; padding: 0 28px; font-size: 17px; }

@media (max-width: 1023px) {
    .pf-modes-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .pf-stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .pf-stat:nth-child(n+3) { border-top: 1px solid var(--pf-line); }
}

/* Phones: the hero shows Pulse on a phone, and every row stacks */
@media (max-width: 640px) {
    .pf-wrap { padding-inline: 16px; }
    .pf-eyebrow { font-size: 11px; margin-bottom: 14px; }
    .pf-h2 { font-size: 34px; margin-bottom: 12px; }
    .pf-hero { padding-block: 36px 32px; gap: 28px; }
    .pf-hero h1 { margin-bottom: 16px; }
    .pf-lede { margin-bottom: 24px; font-size: 17px; }
    .pf-btns { flex-direction: column; }
    .pf-btn { min-height: 52px; font-size: 17px; }
    .pf-fine { text-align: center; font-size: 10px; }
    .pf-shot { flex-basis: 100%; }
    .pf-shot-frame { height: 440px; display: flex; justify-content: center; align-items: flex-start; padding-top: 18px; }
    .pf-shot-frame img { flex: none; width: 240px; border: 1px solid var(--pf-outline); border-bottom: 0; border-radius: 22px 22px 0 0; }
    .pf-shot figcaption { font-size: 10px; }
    .pf-stats { padding-bottom: 44px; }
    .pf-stat { padding: 16px 12px 16px 14px; }
    .pf-stat:nth-child(odd) { padding-left: 0; }
    .pf-stat b { font-size: 32px; }
    .pf-stat span { font-size: 13px; }
    .pf-split { gap: 22px; }
    .pf-screen { padding-bottom: 48px; }
    .pf-q { padding: 14px 0; gap: 4px 12px; }
    .pf-q-t { flex-basis: 100%; font-size: 20px; }
    .pf-q-card { flex: 1 1 0; font-size: 14px; }
    .pf-q-card span { display: none; }
    .pf-q-when { flex: none; }
    .pf-modes { padding-block: 44px 48px; }
    .pf-modes .pf-h2 { margin-bottom: 22px; }
    .pf-modes-grid { gap: 14px; }
    .pf-mode-img { height: 150px; }
    .pf-mode-img--phone img { width: 150px; }
    .pf-mode-body { padding: 16px 18px 18px; }
    .pf-mode h3 { font-size: 23px; margin-bottom: 6px; }
    .pf-mode p { font-size: 15px; }
    .pf-sources { padding-block: 48px; }
    /* The table becomes a list: what and how often on one line, the source under it */
    .pf-table-box { border: 0; border-top: 1px solid var(--pf-line); border-radius: 0; overflow: visible; }
    .pf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .pf-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--pf-line); }
    .pf-table td { padding: 0; border: 0; }
    .pf-table td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; font-size: 14px; color: var(--pf-muted); }
    .pf-table td:last-child { font-size: 11px; }
    .pf-faq { padding-bottom: 48px; }
    .pf-faq-item { padding: 16px 0; }
    .pf-faq-item summary { font-size: 20px; }
    .pf-faq-item p { font-size: 15px; }
    .pf-end { padding-block: 44px 48px; flex-direction: column; align-items: stretch; gap: 22px; }
    .pf-end h2 { flex: none; font-size: 36px; }
}
