/* ──────────────────────────────────────────────────────────────────
   Probily marketing — page supplement.
   Chrome (pubnav/pubfoot, verbatim from the production reference) +
   the components the four new pages add on top of marketing-bureau.css.
   Everything token-driven so light/dark + accent tweaks flow through.
   ────────────────────────────────────────────────────────────────── */

/* PASS 1.2 §2 — the duplicate .pubnav/.pubfoot chrome block that lived here
   (a stale verbatim copy, height 44px vs the component's 48px, plus a 560px
   rule that hid the nav links) was REMOVED: the self-contained
   _partials/public_header.html + public_footer.html own the chrome. */

/* ── Reveal on scroll / motion ─────────────────────────────────── */
[data-rev] { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease-emphasis), transform 620ms var(--ease-emphasis); }
[data-rev].in { opacity: 1; transform: none; }
:root[data-motion="off"] [data-rev] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { [data-rev] { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media print { [data-rev] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Section rhythm helpers used by the new pages */
.pg-sec { padding-top: var(--pub-sec-y); padding-bottom: var(--pub-sec-y); }
.pg-sec.tight { padding-top: var(--pub-sec-y-band); padding-bottom: var(--pub-sec-y-band); }
.pg-sec.band { background: var(--bg-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.pg-head { max-width: 640px; }
.pg-head.center { margin: 0 auto; text-align: center; }
.pg-head h2 { font-family: var(--font-sans); font-size: var(--pub-type-section); font-weight: 600; letter-spacing: -0.022em; color: var(--text-primary); margin: 13px 0 0; line-height: var(--pub-lh-snug); }
.pg-head .lead { font-family: var(--font-serif); font-size: var(--pub-type-body); line-height: var(--pub-lh-body); color: var(--text-secondary); margin: 16px 0 0; }
.pg-head.center .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }

/* ── Entity-graph motif (inline SVG) ───────────────────────────── */
.pg-graph { display: block; width: 100%; height: auto; }
.pg-graph .edge { stroke: var(--border-strong); stroke-width: 1.4; fill: none; }
.pg-graph .edge.hot { stroke: color-mix(in oklch, var(--brand-500) 55%, transparent); }
.pg-graph .elabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; fill: var(--text-disabled); }
.pg-graph .node circle, .pg-graph .node rect { fill: var(--bg-2); stroke-width: 1.6; }
.pg-graph .node .glyph { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--text-primary); text-anchor: middle; }
.pg-graph .node .nlabel { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; fill: var(--text-primary); }
.pg-graph .node .nsub { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-tertiary); letter-spacing: 0.03em; }
.pg-graph .n-org rect { stroke: var(--et-company); }
.pg-graph .n-person circle { stroke: var(--et-person); }
.pg-graph .n-gov rect { stroke: var(--brand-500); }
.pg-graph .n-money circle { stroke: var(--money); }
.pg-graphframe { padding: 26px 24px 20px; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--border-subtle); background: var(--bg-0); }
.pg-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.pg-legend .sw { width: 10px; height: 10px; border: 1.6px solid; }
.pg-legend .sw.org { border-color: var(--et-company); border-radius: 2px; }
.pg-legend .sw.person { border-color: var(--et-person); border-radius: 50%; }
.pg-legend .sw.gov { border-color: var(--brand-500); border-radius: 2px; }
.pg-legend .sw.money { border-color: var(--money); border-radius: 50%; }
.pg-legend .lg.note { margin-left: auto; color: var(--text-disabled); text-transform: none; letter-spacing: 0.02em; }

/* ── Receipt row (provenance, reused on Product + Security) ─────── */
.pg-receipts { display: grid; gap: 10px; margin-top: 22px; }
.pg-rc { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-1); padding: 13px 16px; }
.pg-sec.band .pg-rc { background: var(--bg-2); }
.pg-rc .src { display: flex; align-items: center; gap: 8px; font-size: var(--pub-type-meta); font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.pg-rc .src .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.pg-rc .mid { min-width: 0; }
.pg-rc .ref { font-size: var(--pub-type-meta); color: var(--text-secondary); }
.pg-rc .url { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-rc .meta { text-align: right; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); line-height: var(--pub-lh-body); white-space: nowrap; }
.pg-rc .meta .sha { color: var(--brand-500); }
.pg-rc .meta a { color: var(--brand-500); text-decoration: none; }
@media (max-width: 680px) { .pg-rc { grid-template-columns: 1fr; gap: 6px; } .pg-rc .meta { text-align: left; } }

/* ── Workspace mock (Product · the paid value) ─────────────────── */
.pg-ws { display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; background: var(--bg-0); }
.pg-ws .rail { border-right: 1px solid var(--border-subtle); background: var(--bg-1); padding: 14px 12px; }
.pg-ws .rail .rl { font-family: var(--font-mono); font-size: var(--pub-type-meta); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-disabled); padding: 0 6px 8px; }
.pg-ws .rail .proj { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: var(--r-sm); font-size: var(--pub-type-meta); color: var(--text-secondary); }
.pg-ws .rail .proj .dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.pg-ws .rail .proj.on { background: var(--bg-2); color: var(--text-primary); font-weight: 500; }
.pg-ws .canvas { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.pg-ws .ws-top { display: flex; align-items: center; gap: 10px; }
.pg-ws .ws-top .t { font-size: var(--pub-type-body); font-weight: 600; color: var(--text-primary); }
.pg-ws .ws-top .c { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); border: 1px solid var(--border-default); border-radius: 999px; padding: 2px 8px; }
.pg-ws .merge { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-ws .rep { border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-1); padding: 12px; }
.pg-ws .rep .rh { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.pg-ws .rep .rt { font-size: var(--pub-type-meta); color: var(--text-primary); margin-top: 7px; line-height: var(--pub-lh-meta); }
.pg-ws .rep .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pg-ws .mini { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-secondary); border: 1px solid var(--border-default); border-radius: 999px; padding: 2px 8px; background: var(--bg-2); }
.pg-ws .mini.hot { color: var(--brand-500); border-color: color-mix(in oklch, var(--brand-500) 34%, transparent); }
.pg-ws .link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px dashed color-mix(in oklch, var(--brand-500) 34%, transparent); border-radius: 9px; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-secondary); background: color-mix(in oklch, var(--brand-500) 5%, transparent); }
.pg-ws .link b { color: var(--brand-500); font-weight: 500; }
@media (max-width: 760px) { .pg-ws { grid-template-columns: 1fr; } .pg-ws .rail { border-right: 0; border-bottom: 1px solid var(--border-subtle); display: flex; gap: 6px; overflow: auto; } .pg-ws .merge { grid-template-columns: 1fr; } }

/* ── Plan teaser (Product → Pricing) ───────────────────────────── */
.pg-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.pg-plan { border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-0); padding: 20px 18px; display: flex; flex-direction: column; }
.pg-sec.band .pg-plan { background: var(--bg-2); }
.pg-plan.feat { border-color: color-mix(in oklch, var(--brand-500) 40%, transparent); background: color-mix(in oklch, var(--brand-500) 6%, var(--bg-0)); }
.pg-plan .nm { font-family: var(--font-mono); font-size: var(--pub-type-meta); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-tertiary); }
.pg-plan.feat .nm { color: var(--brand-500); }
.pg-plan .pr { font-family: var(--font-mono); font-size: var(--pub-type-section); color: var(--text-primary); margin: 12px 0 2px; letter-spacing: -0.01em; }
.pg-plan .pr small { font-size: var(--pub-type-meta); color: var(--text-tertiary); letter-spacing: 0; }
.pg-plan .ds { font-size: var(--pub-type-meta); color: var(--text-secondary); line-height: var(--pub-lh-meta); margin-top: 8px; flex: 1; }
.pg-plan .go { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--brand-500); margin-top: 14px; text-decoration: none; transition: opacity var(--dur-2) var(--ease-out); }
.pg-plan a.go:hover { opacity: 0.7; text-decoration: underline; }
@media (max-width: 860px) { .pg-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pg-plans { grid-template-columns: 1fr; } }

/* ── Wikipedia hub — tool catalogue ────────────────────────────── */
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.wiki-card { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: 12px;
  background: var(--bg-1); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.wiki-card:hover { border-color: color-mix(in oklch, var(--brand-500) 42%, transparent); transform: translateY(-2px); }
.wiki-card .wc-h { display: flex; align-items: center; gap: 9px; padding: 15px 16px 0; }
.wiki-card .wc-ic { width: 30px; height: 30px; border-radius: var(--r-sm); flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border-default); color: var(--brand-500); }
.wiki-card .wc-n { font-size: var(--pub-type-body); font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.wiki-card .wc-q { font-family: var(--font-serif); font-size: var(--pub-type-body); line-height: var(--pub-lh-meta); color: var(--text-secondary); padding: 11px 16px 0; }
.wiki-card .wc-viz { margin: 14px 16px 0; height: 62px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-0); overflow: hidden; }
.wiki-card .wc-viz svg { display: block; width: 100%; height: 100%; }
.wiki-card .wc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; margin-top: 16px; border-top: 1px solid var(--border-subtle); }
.wiki-card .wc-api { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-disabled); letter-spacing: 0.03em; }
.wiki-card .wc-go { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--brand-500); display: inline-flex; align-items: center; gap: 5px; }
/* viz primitives */
.wv-bar { fill: color-mix(in oklch, var(--brand-500) 62%, transparent); }
.wv-bar.mut { fill: var(--border-strong); }
.wv-line { fill: none; stroke: var(--brand-500); stroke-width: 1.8; }
.wv-area { fill: color-mix(in oklch, var(--brand-500) 12%, transparent); }
.wv-dot { fill: var(--brand-500); }
.wv-add { fill: color-mix(in oklch, var(--success) 55%, transparent); }
.wv-del { fill: color-mix(in oklch, var(--danger) 55%, transparent); }
.wv-grid { stroke: var(--border-subtle); stroke-width: 1; }
.wv-lang { fill: var(--bg-3); }
.wv-lang.on { fill: color-mix(in oklch, var(--brand-500) 58%, transparent); }
@media (max-width: 900px) { .wiki-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wiki-grid { grid-template-columns: 1fr; } }

/* connective band */
.wiki-flow { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: center; gap: 0; margin-top: 26px; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.wiki-flow .cell { padding: 20px 18px; }
.wiki-flow .cell .cl { font-family: var(--font-mono); font-size: var(--pub-type-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-disabled); }
.wiki-flow .cell .ct { font-size: var(--pub-type-body); color: var(--text-primary); font-weight: 600; margin-top: 7px; }
.wiki-flow .cell .cd { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); margin-top: 5px; line-height: var(--pub-lh-meta); }
.wiki-flow .cell.amber { background: color-mix(in oklch, var(--brand-500) 6%, transparent); }
.wiki-flow .ar { display: flex; align-items: center; justify-content: center; color: var(--text-disabled); }
@media (max-width: 760px) { .wiki-flow { grid-template-columns: 1fr; } .wiki-flow .ar { transform: rotate(90deg); padding: 4px 0; } }

/* ── Legal — tabbed docs + sticky scroll-spy TOC ───────────────── */
.lg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-top: 30px; }
.lg-tab { position: relative; padding: 11px 16px; font-size: var(--pub-type-body); font-weight: 500; color: var(--text-tertiary); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 140ms; }
.lg-tab:hover { color: var(--text-secondary); }
.lg-tab.on { color: var(--text-primary); border-bottom-color: var(--brand-500); }
.lg-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--pub-gap-split); padding-top: 40px; padding-bottom: 8px; align-items: start; }
.lg-toc { position: sticky; top: 64px; font-size: var(--pub-type-meta); display: flex; flex-direction: column; }
.lg-toc a { display: flex; gap: 9px; color: var(--text-tertiary); text-decoration: none; padding: 6px 0 6px 14px; border-left: 1px solid var(--border-subtle); line-height: var(--pub-lh-meta); }
.lg-toc a .tn { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-disabled); }
.lg-toc a:hover { color: var(--text-primary); }
.lg-toc a.on { color: var(--text-primary); border-left-color: var(--brand-500); }
.lg-toc a.on .tn { color: var(--brand-500); }
.lg-docs { min-width: 0; max-width: 680px; }
.lg-doc-head { padding-bottom: 26px; margin-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.lg-doc-head h1 { font-family: var(--font-sans); font-size: var(--pub-type-title); font-weight: 560; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.lg-doc-head .lg-lede { font-family: var(--font-serif); font-size: var(--pub-type-body); line-height: var(--pub-lh-meta); color: var(--text-secondary); margin: 12px 0 0; max-width: 54ch; }
.lg-updated { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); margin-top: 16px; letter-spacing: 0.02em; }
.lg-updated .k { color: var(--text-disabled); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.lg-sec { padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: 64px; }
.lg-sec:last-child { border-bottom: 0; }
.lg-sec h2 { font-family: var(--font-sans); font-size: var(--pub-type-section); font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); margin: 0 0 12px; display: flex; align-items: baseline; gap: 12px; }
.lg-sec h2 .n { font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--brand-500); }
.lg-sec p { color: var(--text-secondary); font-size: var(--pub-type-body); line-height: var(--pub-lh-body); margin: 0 0 12px; max-width: 65ch; }
.lg-sec p.lg-strong { color: var(--text-primary); font-weight: 500; border-left: 2px solid var(--brand-500); padding-left: 14px; }
.lg-sec p:last-child { margin-bottom: 0; }
.lg-sec a { color: var(--brand-500); text-decoration: none; }
.lg-sec a:hover { color: var(--brand-400); }
.lg-list { list-style: none; margin: 4px 0 12px; padding: 0; max-width: 65ch; }
.lg-list li { position: relative; padding: 0 0 9px 18px; font-size: var(--pub-type-body); color: var(--text-secondary); line-height: var(--pub-lh-body); }
.lg-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); }
.lg-foot-note { font-family: var(--font-mono); font-size: var(--pub-type-meta); line-height: var(--pub-lh-body); color: var(--text-tertiary); border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-1); padding: 14px 16px; margin: 40px 0 0; max-width: 900px; }
@media (max-width: 900px) { .lg-layout { grid-template-columns: 1fr; gap: 20px; } .lg-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .lg-toc a { border-left: 0; border-top: 1px solid var(--border-subtle); padding: 6px 10px; } .lg-toc a.on { border-left: 0; border-top-color: var(--brand-500); } }

/* ── mkt-hero: allow an eyebrow tick + meta row ────────────────── */
.mkt-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-family: var(--font-mono); font-size: var(--pub-type-meta); color: var(--text-tertiary); letter-spacing: 0.02em; }
.mkt-hero .hero-meta .m { display: inline-flex; align-items: center; gap: 7px; }
.mkt-hero .hero-meta .m .d { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.mkt-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
