/* =========================================================
   RealityDesynced — PLATFORM (V2)
   A modern community platform: clean cards, Chakra Petch headings, Inter body,
   one blue accent taken from the wordmark, and the red slit kept for the brand.
   Loaded LAST (after monolith.css, lattice.css and command.css). It remaps their
   colour and font variables, so every page picks up the new look, then styles the
   new header, footer and home page (classes start with "pf-").
   ========================================================= */

/* ---------- colour tokens (dark is the default; light below) ---------- */
:root {
  --ink: #0C0E12; --ink-2: #14171C; --ink-3: #1C2027; --ink-4: #232830;
  --line: #272B33; --line-2: #343A44;
  --bone: #ECEDF0; --titanium: #C3C7CF; --steel: #A2A7B1; --dim: #8C929C;
  --cy: #8EA2FF; --cy-ink: #0C0E12; --cy-soft: rgba(142,162,255,.10);
  --vi: #A493FF; --amber: #E3B04B; --ir: #FF2A1F; --ir-text: #FF7A70; --ok: #5CC994; --ok-text: #8FE0B6;
  --ir-bg: rgba(255,42,31,.07); --ir-line: rgba(255,90,80,.45);
  --glass: #14171C; --glass-2: #1C2027; --glass-solid: #14171C;
  --edge: #272B33; --edge-2: #3A4150;
  --glow-cy: transparent; --glow-vi: transparent; --glow-ir: transparent; --star: transparent;
  --chamfer: none; --chamfer-sm: none;
  --pbg: #3B58D4; --pfg: #FFFFFF; --pbg-h: #4A66E0;
  --shadow: rgba(0,0,0,.45);
  --cube-cut: var(--ink);
  --pf-wrap: 1240px;
  --pf-r: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #F5F6F8; --ink-2: #FFFFFF; --ink-3: #ECEEF2; --ink-4: #E3E6EB;
  --line: #DDE0E6; --line-2: #C6CBD4;
  --bone: #0F1219; --titanium: #3E4450; --steel: #555B66; --dim: #6A707B;
  --cy: #2F4FC2; --cy-ink: #FFFFFF; --cy-soft: rgba(47,79,194,.08);
  --vi: #5650D6; --amber: #8A5A00; --ir-text: #C4170D; --ok: #1B6A46; --ok-text: #14603A;
  --ir-bg: rgba(196,23,13,.05); --ir-line: rgba(196,23,13,.35);
  --glass: #FFFFFF; --glass-2: #F0F2F5; --glass-solid: #FFFFFF;
  --edge: #DDE0E6; --edge-2: #C6CBD4;
  --pbg: #2F4FC2; --pfg: #FFFFFF; --pbg-h: #253F9E;
  --shadow: rgba(15,18,25,.12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --ink: #F5F6F8; --ink-2: #FFFFFF; --ink-3: #ECEEF2; --ink-4: #E3E6EB; --line: #DDE0E6; --line-2: #C6CBD4;
    --bone: #0F1219; --titanium: #3E4450; --steel: #555B66; --dim: #6A707B;
    --cy: #2F4FC2; --cy-ink: #FFFFFF; --cy-soft: rgba(47,79,194,.08); --vi: #5650D6; --amber: #8A5A00;
    --ir-text: #C4170D; --ok: #1B6A46; --ok-text: #14603A; --glass: #FFFFFF; --glass-2: #F0F2F5; --glass-solid: #FFFFFF;
    --edge: #DDE0E6; --edge-2: #C6CBD4; --pbg: #2F4FC2; --pbg-h: #253F9E; --shadow: rgba(15,18,25,.12); color-scheme: light;
  }
}

/* ---------- base: flat background, no star field or grain ---------- */
body { background: var(--ink); color: var(--bone); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::before, body::after { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }
* { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---------- type: Chakra Petch for headings, Inter for everything else ---------- */
.wide, .lf-title, .lf-band-title, .msplit-ver, .msplit-pct, .lf-stat b, .m-dial-n b, .sig b, .sb-headline, .choice b {
  font-family: 'Chakra Petch', 'Inter', sans-serif !important; font-weight: 700; letter-spacing: .005em; font-stretch: normal; font-variation-settings: normal;
}
.wide { text-transform: none; }
.btn-ghost, .cg-pill, .f, .console-btn .cap, .head-file, .foot-col a, .sb-n-t, .sb-title, .sb-pill, .sb-past b, .foot-nav a {
  font-family: 'Inter', system-ui, sans-serif !important;
}
.cap { letter-spacing: .06em; }
.lead { color: var(--titanium); }

/* ---------- cards: the old glass/chamfer panels become simple rounded cards ---------- */
.lf-stat, .lf-class, .lf-table, .lf-ledger, .lf-lattice, .m-panel, .signal, .slab, .sys, .mod-item, .check-card,
.alert-box, .rel, .receipt, .verify-banner, .m-intro, .m-versions > div, .notice, .map-side, .pin-picker, .stage {
  clip-path: none !important; border-radius: var(--pf-r) !important;
  background: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--line);
}
.stage { background: #0B0C0F !important; }
.lf-class:hover, .lf-ledger:hover, a.m-panel:hover, a.rel:hover { box-shadow: inset 0 0 0 1px var(--cy); }
.hud-frame .hf { display: none; }

/* ---------- buttons, fields, filters ---------- */
.btn {
  clip-path: none !important; border-radius: 10px; border: 0;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: 0; text-transform: none;
  background: var(--pbg); color: var(--pfg); min-height: 44px;
}
.btn:hover { background: var(--pbg-h); color: var(--pfg); }
.btn-cy, .cg-chamfer { background: var(--pbg); color: var(--pfg); }
.btn-ghost, .cg-pill { border-radius: 10px; background: var(--ink-2); color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover, .cg-pill:hover { background: var(--ink-3); color: var(--bone); box-shadow: inset 0 0 0 1px var(--steel); }
.btn-sm { font-size: 14px; }
.f { border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--titanium); }
.f:hover { box-shadow: inset 0 0 0 1px var(--steel); color: var(--bone); }
.f.on, .f[aria-pressed="true"] { background: var(--cy-soft); color: var(--cy); box-shadow: inset 0 0 0 1px var(--cy); }
.input { border-radius: 10px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); }
.input:focus { box-shadow: inset 0 0 0 1px var(--cy), 0 0 0 3px var(--cy-soft); }
.choice label { border-radius: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--cy); background: var(--cy-soft); }
.choice b { font-size: 15px; text-transform: none; letter-spacing: 0; }
.drop { border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--ink-2); }
.sample-tag { border-radius: 4px; }
.flash { border-radius: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--cy); }
.site-nav a[href*="type=mandela"] { color: inherit; }

/* ---------- Mandela split (used on the home page and entry pages) ---------- */
.msplit-side { border-radius: var(--pf-r); padding: 24px !important; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.msplit-side.side-b { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); margin-top: 0; }
.msplit-side.is-mine { box-shadow: inset 0 0 0 2px var(--cy); }
.msplit-ver { text-transform: none; letter-spacing: 0; font-size: clamp(20px, 2.4vw, 32px); }
.msplit-compact .msplit-ver { font-size: clamp(18px, 2vw, 28px); }
.msplit-pick, .msplit-pick.pick-a, .msplit-pick.pick-b { background: var(--pbg); color: var(--pfg); box-shadow: none; }
.msplit-bar i, .side-b .msplit-bar i { box-shadow: none; background: var(--cy); }
.msplit-lock, .msplit-status { border-radius: 10px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.msplit-grid { gap: 16px; padding-top: 0; }
.msplit-slit { display: none; }

/* ---------- search console ---------- */
.console { border-radius: 16px; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px var(--shadow); }

/* =========================================================
   New layout pieces (pf-)
   ========================================================= */
.pf-wrap { max-width: var(--pf-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .pf-wrap { padding-left: 16px; padding-right: 16px; } }
.pf-disp { font-family: 'Chakra Petch', 'Inter', sans-serif; font-weight: 700; }
.pf-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.pf-muted { color: var(--steel); }
.pf-h2 { margin: 0; font-family: 'Chakra Petch', 'Inter', sans-serif; font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.pf-section { padding-top: clamp(40px, 5vw, 56px); }
.pf-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 22px; }
.pf-section-head p { margin: 0; max-width: 520px; color: var(--steel); font-size: 15.5px; line-height: 1.6; }
.pf-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--pf-r); }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: var(--cy-soft); color: var(--cy); }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--pbg); color: var(--pfg); font: 600 14.5px/1 'Inter', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.pf-btn:hover { background: var(--pbg-h); color: var(--pfg); }
.pf-btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
.pf-btn-ghost { background: var(--ink-2); color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.pf-btn-ghost:hover { background: var(--ink-3); color: var(--bone); }
.pf-link { color: var(--cy); font-weight: 600; text-decoration: none; }
.pf-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); flex-shrink: 0; }
.pf-dot.is-open { background: var(--ir); }
.pf-dot.is-closed { background: var(--ok); }
.pf-dot.is-split { background: var(--amber); }

/* ---------- header ---------- */
.pf-head { position: sticky; top: 0; z-index: 40; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.pf-head-in { position: relative; height: 72px; display: flex; align-items: center; gap: 24px; }
.pf-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--bone); }
.pf-brand img { display: block; width: 46px; height: 46px; }
.pf-word { display: flex; flex-direction: column; gap: 2px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.pf-word-2 { display: flex; align-items: flex-end; }
.pf-word-slit { width: 2px; height: 20px; margin: 0 3px -4px; background: var(--ir); }
.pf-word-cut { color: var(--steel); position: relative; top: 4px; }
.pf-nav { display: flex; align-items: center; gap: 2px; flex-grow: 1; }
.pf-navlink, .pf-nav .nav-more-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--titanium); font: 500 14.5px 'Inter', system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.pf-navlink:hover, .pf-nav .nav-more-btn:hover, .pf-nav .nav-more-btn[aria-expanded="true"] { background: var(--ink-3); color: var(--bone); }
.pf-navlink[aria-current="page"], .pf-nav .nav-more.is-active .nav-more-btn { color: var(--bone); background: var(--ink-3); }
.pf-nav .nav-more-btn svg { transition: transform .2s; }
.pf-nav .nav-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pf-nav .nav-more { position: static; }
.pf-mobile-only { display: none !important; }
.pf-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pf-search {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; width: 220px; padding: 0 12px; border-radius: 8px;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); color: var(--steel); font-size: 14px; text-decoration: none;
}
.pf-search:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--titanium); }
.pf-search kbd { margin-left: auto; font: 11px 'JetBrains Mono', monospace; padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.pf-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); cursor: pointer; padding: 0; }
.pf-icon-btn:hover { background: var(--ink-3); }
.pf-icon-btn svg { width: 18px; height: 18px; }
.pf-share-btn { white-space: nowrap; }
.pf-head .menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; }
.pf-head .menu-btn span { left: 12px; right: 12px; }
.pf-head .menu-btn span:first-child { top: 17px; }
.pf-head .menu-btn span:last-child { top: 25px; }

/* Browse panel (wide screens) */
@media (min-width: 1041px) {
  .pf-nav .nav-more-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 24px; right: 24px; z-index: 50;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px;
    background: var(--ink-2); border-radius: var(--pf-r); box-shadow: 0 0 0 1px var(--line), 0 20px 44px var(--shadow);
    transform: none; width: auto;
  }
  .pf-nav .nav-more-panel.open { display: grid; }
  .pf-nav .nav-more-panel::before { display: none; }
}
.pf-mega-h { margin: 0 10px 6px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.pf-mega-col { display: flex; flex-direction: column; gap: 2px; }
.pf-mega-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--bone); }
.pf-mega-link:hover { background: var(--ink-3); }
.pf-mega-link[aria-current="page"] .pf-mega-t { color: var(--cy); }
.pf-mega-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--cy-soft); color: var(--cy); font: 700 15px 'Chakra Petch', sans-serif; }
.pf-mega-tx { display: flex; flex-direction: column; gap: 2px; }
.pf-mega-t { font-weight: 600; font-size: 15px; }
.pf-mega-d { font-size: 13px; color: var(--steel); }
.pf-mega-promo { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 12px; background: var(--ink); }
.pf-mega-promo b { font: 700 20px/1.2 'Chakra Petch', sans-serif; }
.pf-mega-promo p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--steel); }

/* Header: tablet and phone */
@media (max-width: 1240px) { .pf-search { width: auto; } .pf-search .pf-search-t, .pf-search kbd { display: none; } }
@media (max-width: 1040px) {
  .pf-head .menu-btn { display: inline-flex; }
  .pf-share-btn { display: none; }
  .pf-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    max-height: calc(100vh - 72px); overflow-y: auto;
    background: var(--ink-2); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px var(--shadow);
  }
  .pf-nav.open { display: flex; }
  .pf-navlink { height: 48px; font-size: 16px; }
  .pf-mobile-only { display: inline-flex !important; }
  .pf-nav .nav-more-btn { display: none; }
  .pf-nav .nav-more-panel { display: flex !important; flex-direction: column; gap: 16px; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); position: static; box-shadow: none; background: none; }
  .pf-nav .nav-more-panel::before { display: none; }
  .pf-mega-promo { display: none; }
}
@media (max-width: 600px) {
  .pf-head-in { height: 62px; gap: 8px; }
  .pf-nav { top: 62px; max-height: calc(100vh - 62px - 72px); }
  .pf-brand img { width: 40px; height: 40px; }
  .pf-word { font-size: 14px; }
  .pf-tools { gap: 4px; }
  .pf-tools .pf-icon-btn { box-shadow: none; background: transparent; width: 44px; height: 44px; }
  .pf-search { box-shadow: none; background: transparent; width: 44px; height: 44px; padding: 0; justify-content: center; color: var(--bone); }
}

/* Phone tab bar */
.pf-tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .pf-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 72px; padding-bottom: env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    background: var(--ink-2); border-top: 1px solid var(--line);
  }
  .pf-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--steel); text-decoration: none; min-height: 48px; justify-content: center; }
  .pf-tab svg { width: 22px; height: 22px; }
  .pf-tab[aria-current="page"] { color: var(--cy); font-weight: 600; }
  .pf-tab-share { color: var(--bone); font-weight: 600; }
  .pf-tab-share span { width: 48px; height: 48px; margin-top: -22px; border-radius: 14px; background: var(--pbg); color: var(--pfg); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(47,79,194,.35); }
}

/* ---------- footer ---------- */
.pf-foot { margin-top: clamp(56px, 7vw, 80px); background: var(--ink-2); border-top: 1px solid var(--line); }
.pf-foot-top { display: grid; grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.pf-foot-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pf-foot-brand p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--steel); max-width: 32ch; }
.pf-foot-col { display: flex; flex-direction: column; gap: 4px; }
.pf-foot-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--steel); }
.pf-foot-col a { font-size: 14px; color: var(--titanium); text-decoration: none; padding: 5px 0; }
.pf-foot-col a:hover { color: var(--cy); }
.pf-foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--steel); }
.pf-foot-bar a { color: var(--steel); text-decoration: none; }
.pf-foot-bar a:hover { color: var(--cy); }
.pf-foot-bar .pf-mono { margin-left: auto; }
@media (max-width: 860px) { .pf-foot-top { grid-template-columns: 1fr 1fr; } .pf-foot-brand { grid-column: 1 / -1; } .pf-foot-bar .pf-mono { margin-left: 0; } }

/* ---------- the split wordmark (same recipe as the live site) ---------- */
.pf-wm { position: relative; margin: 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; line-height: .92; letter-spacing: .01em; text-transform: uppercase; width: max-content; }
.pf-wm > span { display: block; }
.pf-wm-a { position: relative; z-index: 1; color: var(--bone); clip-path: inset(-10px 50% -10px -10px); }
.pf-wm-b, .pf-wm-c { position: absolute; inset: 0; clip-path: inset(-10px -10px -10px 50%); }
.pf-wm-c { z-index: 0; color: var(--ir); opacity: .32; transform: translate(.06em, .16em); }
.pf-wm-b { z-index: 1; color: transparent; background: linear-gradient(120deg, var(--cy), var(--vi)); -webkit-background-clip: text; background-clip: text; transform: translateY(.13em); }
.pf-wm-slit { position: absolute; z-index: 2; top: -.15em; bottom: -.3em; left: 50%; width: 2px; border-radius: 2px; background: var(--ir); box-shadow: 0 0 22px 2px rgba(255,42,31,.7); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite-motion) .pf-wm-b { animation: pfdesync 8s steps(1) infinite; }
}
@keyframes pfdesync {
  0%, 100% { transform: translateY(.13em); }
  92% { transform: translate(.06em, .09em); clip-path: inset(-10px -10px 52% 50%); }
  93% { transform: translate(-.03em, .16em); clip-path: inset(46% -10px -10px 50%); }
  94% { transform: translateY(.13em); clip-path: inset(-10px -10px -10px 50%); }
}

/* ---------- home: hero ---------- */
.pf-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; }
.pf-hero-copy { flex: 1.15 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pf-hero .pf-wm { font-size: clamp(50px, 7.4vw, 112px); }
@media (max-width: 420px) { .pf-hero .pf-wm { font-size: 13.4vw; } }
.pf-hero-lead { margin: 14px 0 0; font-size: 19px; line-height: 1.55; color: var(--steel); max-width: 560px; }
.pf-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-trust li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; }
.pf-trust svg { width: 15px; height: 15px; color: var(--ok); }
.pf-hero-cta { display: none; }

.pf-compose { flex: 1 1 400px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px var(--shadow); }
.pf-compose h2 { margin: 0; font: 700 24px/1.2 'Chakra Petch', sans-serif; }
.pf-compose-sub { margin: 4px 0 0; font-size: 14px; color: var(--steel); }
.pf-compose fieldset { margin: 0; padding: 0; border: 0; }
.pf-compose legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.pf-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-kind { position: relative; }
.pf-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-kind span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 600; text-align: center; }
.pf-kind b { font: 700 18px 'Chakra Petch', sans-serif; color: var(--cy); }
.pf-kind input:checked + span { background: var(--cy-soft); box-shadow: inset 0 0 0 1.5px var(--cy); }
.pf-kind input:focus-visible + span { outline: 2px solid var(--cy); outline-offset: 2px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field label { font-size: 13.5px; font-weight: 600; }
.pf-field textarea { resize: vertical; min-height: 92px; padding: 12px; border: 0; border-radius: 10px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); font: 14.5px/1.5 'Inter', sans-serif; }
.pf-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cy), 0 0 0 3px var(--cy-soft); }
.pf-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1.5px dashed var(--line-2); color: var(--steel); font-size: 13.5px; line-height: 1.4; }
.pf-note svg { width: 22px; height: 22px; flex-shrink: 0; }
.pf-compose .pf-btn { width: 100%; min-height: 48px; }
.pf-compose-foot { margin: 0; text-align: center; font-size: 13px; }
.pf-compose-foot a { color: var(--steel); }

@media (max-width: 760px) {
  .pf-hero { padding-top: 32px; gap: 28px; }
  .pf-hero-copy { gap: 18px; }
  .pf-hero-lead { font-size: 16px; margin-top: 10px; }
  .pf-hero-cta { display: inline-flex; }
}

/* ---------- home: stats ---------- */
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding-top: 32px; }
.pf-stat { padding: 20px; display: flex; flex-direction: column-reverse; gap: 2px; }
.pf-stat dd { margin: 0; font: 700 34px/1.1 'Chakra Petch', sans-serif; }
.pf-stat dt { font-size: 14px; color: var(--steel); }
@media (max-width: 600px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 20px; } .pf-stat { padding: 14px; } .pf-stat dd { font-size: 26px; } }

/* ---------- home: feed ---------- */
.pf-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pf-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--steel); text-decoration: none; }
.pf-tabs a:hover { color: var(--bone); background: var(--ink-3); }
.pf-tabs a[aria-current="true"] { color: var(--cy); background: var(--cy-soft); }
@media (max-width: 600px) { .pf-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; } .pf-tabs a { flex-shrink: 0; } }
.pf-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.pf-post { display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pf-post:hover { border-color: var(--cy); box-shadow: 0 6px 20px var(--shadow); }
.pf-post-main { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pf-post-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111113; }
.pf-post-media img, .pf-post-media .plate-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-post-type { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.94); color: #0F1219; }
.pf-post-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255,255,255,.94); color: #0F1219; display: flex; align-items: center; justify-content: center; }
.pf-post-play svg { width: 18px; height: 18px; margin-left: 2px; }
.pf-post-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px; }
.pf-post-title { font: 600 19px/1.25 'Chakra Petch', sans-serif; }
.pf-post-main:hover .pf-post-title { color: var(--cy); }
.pf-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--steel); }
.pf-post-status { display: inline-flex; align-items: center; gap: 6px; color: var(--bone); font-weight: 500; }
.pf-post-meta .pf-mono { font-size: 12px; }
.pf-post-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--steel); }
.pf-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--titanium); font-size: 10.5px; font-weight: 700; }
.pf-post-by { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-post-foot .sample-tag { margin-left: auto; }
.pf-post-act { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--steel); font: 500 13px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.pf-post-act:first-of-type { margin-left: auto; }
.pf-post-foot .sample-tag + .pf-post-act { margin-left: 0; }
.pf-post-act:hover { background: var(--ink-3); color: var(--bone); }
.pf-post-act svg { width: 17px; height: 17px; }
.pf-more { display: flex; justify-content: center; padding-top: 28px; }
.pf-empty { padding: 40px; text-align: center; color: var(--steel); }

/* ---------- home: Mandela poll ---------- */
.pf-poll { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 18px; }
.pf-poll-intro { flex: 1 1 320px; padding: 36px; display: flex; flex-direction: column; gap: 14px; background: var(--cy-soft); }
.pf-poll-intro .pf-chip { align-self: flex-start; background: var(--ink-2); }
.pf-poll-intro h2 { margin: 0; font: 700 32px/1.12 'Chakra Petch', sans-serif; }
.pf-poll-intro h2 a { text-decoration: none; }
.pf-poll-intro h2 a:hover { color: var(--cy); }
.pf-poll-intro p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--steel); }
.pf-poll-body { flex: 1.5 1 480px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pf-poll-body .msplit { padding: 0; margin: 0; }
@media (max-width: 600px) { .pf-poll-intro { padding: 22px; } .pf-poll-intro h2 { font-size: 24px; } .pf-poll-body { padding: 18px; } }

/* ---------- home: how it works ---------- */
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pf-step { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pf-step-n { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--cy-soft); color: var(--cy); font: 700 16px 'Chakra Petch', sans-serif; }
.pf-step b { font: 700 19px 'Chakra Petch', sans-serif; }
.pf-step span:last-child { font-size: 14.5px; line-height: 1.6; color: var(--steel); }
.pf-ledger { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; text-decoration: none; color: inherit; }
.pf-ledger:hover { border-color: var(--cy); }
.pf-ledger svg { width: 22px; height: 22px; color: var(--ok); flex-shrink: 0; }
.pf-ledger-t { flex: 1 1 320px; font-size: 14.5px; }
.pf-ledger .pf-mono { font-size: 13px; color: var(--steel); }

/* ---------- home: categories ---------- */
.pf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pf-cat { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; color: inherit; transition: border-color .15s; }
.pf-cat:hover { border-color: var(--cy); }
.pf-cat-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--cy-soft); color: var(--cy); font: 700 17px 'Chakra Petch', sans-serif; }
.pf-cat b { font: 700 22px 'Chakra Petch', sans-serif; }
.pf-cat p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--steel); }
.pf-cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; font-size: 13.5px; font-weight: 500; }
.pf-cat-foot span:first-child { color: var(--steel); }
.pf-cat-foot span:last-child { color: var(--cy); }

/* ---------- home: map teaser ---------- */
.pf-map { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 18px; }
.pf-map-copy { flex: 1 1 340px; padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pf-map-copy h2 { margin: 0; font: 700 30px/1.15 'Chakra Petch', sans-serif; }
.pf-map-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--steel); }
.pf-map-copy .pf-btn { align-self: flex-start; }
.pf-map-art { flex: 1.5 1 440px; min-height: 300px; position: relative; background: var(--ink-3); border-left: 1px solid var(--line); text-decoration: none; }
.pf-map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-map-dots circle { fill: var(--line-2); }
.pf-map-pin { fill: var(--ir); stroke: var(--ink-2); stroke-width: 3; }
.pf-map-pin.is-closed { fill: var(--ok); }
@media (max-width: 600px) { .pf-map-copy { padding: 22px; } .pf-map-copy h2 { font-size: 24px; } .pf-map-art { min-height: 200px; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- home: closing call to action ---------- */
.pf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px; border-radius: 18px; background: #0F1219; color: #ECEDF0; }
:root[data-theme="dark"] .pf-cta { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.pf-cta h2 { margin: 0; font: 700 30px/1.15 'Chakra Petch', sans-serif; }
.pf-cta p { margin: 8px 0 0; font-size: 15.5px; opacity: .78; }
.pf-cta .pf-btn { background: #2F4FC2; color: #FFFFFF; }
.pf-cta .pf-btn:hover { background: #4A66E0; }
@media (max-width: 600px) { .pf-cta { padding: 22px; } .pf-cta h2 { font-size: 22px; } .pf-cta .pf-btn { width: 100%; } }
