/* ───────────────────────────────────────────────────────────
   Dashboard stylesheet — shared across home + the 4 function
   pages (Strategy, Product, Marketing, BD).

   Sidebar styles come first; everything below is the existing
   dashboard CSS, extracted from the inline <style> block.
   ─────────────────────────────────────────────────────────── */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #FAF6F1;
  --panel: #FFFFFF;
  --ink: #191818;
  --ink-2: #3B3836;
  --ink-3: #6E6864;
  --ink-4: #A29C96;
  --rule: #E1DAD1;
  --rule-soft: #EEE8DF;
  --replit: #FF3C00;
  --replit-wash: #FFE8DF;
  --anything: #0F766E;
  --anything-wash: #DCF2EE;
  --fly: #7E22CE;
  --fly-wash: #F1EBFF;
  --multica: #4338CA;
  --multica-wash: #E0E7FF;
  --hercules: #B45309;
  --hercules-wash: #FEF3C7;
  --yes: #1F9254;
  --no: #B3261E;
  --partial: #B7791F;
  --unk: #8E8883;
  --shadow: 0 1px 0 rgba(25,24,24,0.04), 0 6px 24px -12px rgba(25,24,24,0.08);

  --fn-market: #475569;
  --fn-market-wash: #E2E8F0;
  --fn-product: #047857;
  --fn-product-wash: #D1FAE5;
  --fn-marketing: #C2410C;
  --fn-marketing-wash: #FFEDD5;
  --fn-bd: #1E40AF;
  --fn-bd-wash: #DBEAFE;
  --fn-strategy: #5B21B6;
  --fn-strategy-wash: #EDE9FE;

  --sidebar-w: 240px;
  --sidebar-w-collapsed: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: ui-serif, "Source Serif 4", "New York", "Iowan Old Style", Georgia, serif; letter-spacing: -0.012em; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, "Courier New", monospace; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }

/* ─── Sidebar ───────────────────────────────────────────── */
body.has-sidebar { padding-left: var(--sidebar-w); transition: padding-left 0.18s ease; }
body.has-sidebar.sidebar-collapsed { padding-left: var(--sidebar-w-collapsed); }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--rule);
  z-index: 100;
  display: flex; flex-direction: column;
  transition: width 0.18s ease;
  overflow: hidden;
}
.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.sb-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.sb-brand .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--replit); flex-shrink: 0; }
.sb-brand .sb-logo {
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap; overflow: hidden;
  transition: opacity 0.12s ease;
}
.sidebar-collapsed .sb-brand .sb-logo { opacity: 0; pointer-events: none; }

.sb-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.sb-nav .sb-section-label {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 700;
  padding: 18px 12px 8px;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}
.sidebar-collapsed .sb-nav .sb-section-label { opacity: 0; pointer-events: none; height: 8px; padding: 4px 12px 0; }

.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 1px 0;
  border-radius: 6px; text-decoration: none;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  position: relative;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.sb-link:hover { background: var(--rule-soft); color: var(--ink); }
.sb-link.active { background: var(--rule-soft); color: var(--ink); font-weight: 600; }
.sb-link.active::before {
  content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px;
  border-radius: 2px;
}
.sb-link.active.home::before      { background: var(--ink); }
.sb-link.active.strategy::before  { background: var(--fn-strategy); }
.sb-link.active.product::before   { background: var(--fn-product); }
.sb-link.active.marketing::before { background: var(--fn-marketing); }
.sb-link.active.bd::before        { background: var(--fn-bd); }

.sb-link .sb-icon {
  flex-shrink: 0; width: 22px; text-align: center;
  font-size: 16px; line-height: 1;
}
.sb-link .sb-label {
  flex: 1; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.12s ease;
}
.sidebar-collapsed .sb-link .sb-label { opacity: 0; pointer-events: none; }

.sb-foot {
  border-top: 1px solid var(--rule);
  padding: 10px;
  flex-shrink: 0;
}
.sb-foot-link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; margin: 1px 0;
  border-radius: 6px; text-decoration: none;
  color: var(--ink-3); font-size: 12px;
  white-space: nowrap;
}
.sb-foot-link:hover { background: var(--rule-soft); color: var(--ink-2); }
.sb-foot-link .sb-icon { flex-shrink: 0; width: 22px; text-align: center; font-size: 14px; }
.sb-foot-link .sb-label { transition: opacity 0.12s ease; }
.sidebar-collapsed .sb-foot-link .sb-label { opacity: 0; pointer-events: none; }

.sb-action {
  width: 100%; padding: 9px 10px;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  margin-bottom: 4px;
  background: var(--ink); color: var(--bg);
}
.sb-action.secondary { background: var(--panel); color: var(--ink-2); border-color: var(--rule); }
.sb-action:hover { filter: brightness(1.08); }
.sb-action.secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--rule-soft); filter: none; }
.sb-action .sb-icon { flex-shrink: 0; width: 22px; text-align: center; font-size: 14px; }
.sb-action .sb-action-label { flex: 1; text-align: left; transition: opacity 0.12s; white-space: nowrap; overflow: hidden; }
.sidebar-collapsed .sb-action .sb-action-label { opacity: 0; pointer-events: none; }
.sb-action[disabled] { opacity: 0.6; cursor: wait; }

.sb-toggle {
  background: var(--rule-soft); border: 1px solid var(--rule);
  width: 100%; padding: 9px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-3); cursor: pointer; font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  margin-top: 6px;
}
.sb-toggle:hover { background: var(--rule); color: var(--ink-2); }
.sb-toggle .sb-toggle-arrow {
  font-family: ui-serif, Georgia, serif;
  display: inline-block;
  transition: transform 0.18s;
}
.sidebar-collapsed .sb-toggle .sb-toggle-arrow { transform: rotate(180deg); }
.sb-toggle .sb-toggle-text { transition: opacity 0.12s; }
.sidebar-collapsed .sb-toggle .sb-toggle-text { opacity: 0; pointer-events: none; width: 0; overflow: hidden; }

@media (max-width: 880px) {
  body.has-sidebar { padding-left: var(--sidebar-w-collapsed); }
  body.has-sidebar.sidebar-collapsed { padding-left: var(--sidebar-w-collapsed); }
  .sidebar { width: var(--sidebar-w-collapsed); }
  .sb-brand .sb-logo,
  .sb-link .sb-label,
  .sb-foot-link .sb-label,
  .sb-nav .sb-section-label,
  .sb-toggle .sb-toggle-text,
  .sb-action .sb-action-label { opacity: 0; pointer-events: none; }
}

/* ─── Flash toast (after refresh) ────────────────────────── */
.refresh-toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--ink); color: var(--bg);
  padding: 14px 18px; border-radius: 8px;
  font-size: 13.5px; max-width: 360px;
  box-shadow: 0 8px 24px -8px rgba(25,24,24,0.4);
  z-index: 200;
  animation: rt-in 0.18s ease-out;
}
.refresh-toast.error { background: var(--no); }
.refresh-toast .rt-close { float: right; cursor: pointer; opacity: 0.7; margin-left: 12px; }
.refresh-toast .rt-close:hover { opacity: 1; }
@keyframes rt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Modal — Claude prompt for full synthesis ──────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(25,24,24,0.5);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--panel); border-radius: 12px;
  max-width: 720px; width: 100%; max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(25,24,24,0.4);
  animation: m-in 0.2s ease-out;
}
@keyframes m-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
  padding: 22px 26px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: start; justify-content: space-between; gap: 16px;
}
.modal-head h3 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 22px; letter-spacing: -0.015em; margin: 0 0 4px; }
.modal-head .modal-sub { font-size: 13px; color: var(--ink-3); }
.modal-close {
  background: none; border: none; font-size: 22px; line-height: 1; color: var(--ink-3);
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-body p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.modal-body p b { color: var(--ink); }
.modal-prompt {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 6px;
  padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
  max-height: 360px; overflow-y: auto;
  margin: 0 0 16px;
}
.modal-foot {
  padding: 16px 26px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: var(--rule-soft);
}
.modal-btn {
  padding: 9px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  border: 1px solid var(--rule); background: var(--panel); color: var(--ink-2);
  transition: all 0.12s;
}
.modal-btn:hover { border-color: var(--ink); color: var(--ink); }
.modal-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal-btn.primary:hover { filter: brightness(1.1); }
.modal-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}
.modal-summary .ms-stat {
  background: var(--rule-soft); border-radius: 6px; padding: 10px 12px;
  text-align: center;
}
.modal-summary .ms-stat .ms-n { font-family: ui-serif, Georgia, serif; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.modal-summary .ms-stat .ms-l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* ─── Index cards (home page) ───────────────────────────── */
section.home-index { padding: 56px 0 0; }
.home-index-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
  padding: 24px 22px 22px; position: relative; overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  box-shadow: 0 1px 0 rgba(25,24,24,0.03);
  min-height: 200px;
}
.home-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -10px rgba(25,24,24,0.18); }
.home-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.home-card.strategy::before  { background: var(--fn-strategy); }
.home-card.product::before   { background: var(--fn-product); }
.home-card.marketing::before { background: var(--fn-marketing); }
.home-card.bd::before        { background: var(--fn-bd); }
.home-card .hc-icon { font-size: 26px; line-height: 1; margin-bottom: 14px; }
.home-card .hc-fn { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.home-card.strategy .hc-fn  { color: var(--fn-strategy); }
.home-card.product .hc-fn   { color: var(--fn-product); }
.home-card.marketing .hc-fn { color: var(--fn-marketing); }
.home-card.bd .hc-fn        { color: var(--fn-bd); }
.home-card .hc-title { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 23px; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 10px; }
.home-card .hc-blurb { font-size: 13px; color: var(--ink-3); line-height: 1.5; flex: 1; }
.home-card .hc-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-soft);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); display: flex; justify-content: space-between; align-items: center;
}
.home-card .hc-foot .hc-arrow { font-family: ui-serif, Georgia, serif; font-style: italic; font-size: 14px; }

/* ─── Page header (function pages) ─────────────────────── */
section.page-header { padding: 56px 0 32px; border-bottom: 1px solid var(--rule); }
.ph-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.ph-kicker.strategy  { color: var(--fn-strategy); }
.ph-kicker.product   { color: var(--fn-product); }
.ph-kicker.marketing { color: var(--fn-marketing); }
.ph-kicker.bd        { color: var(--fn-bd); }
.ph-kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.ph-title { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.022em; margin: 0 0 16px; max-width: 22ch; }
.ph-title em { font-style: italic; color: var(--ink-2); }
.ph-lede { font-size: 16px; color: var(--ink-2); line-height: 1.55; max-width: 70ch; margin: 0; }
.ph-jump { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ph-jump a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.ph-jump a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ─── Top bar (legacy — used on wiki pages) ─────────────── */
.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-size: 12px;
  color: var(--ink-3);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .brand { color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; text-decoration: none; }
.topbar .meta { letter-spacing: 0.04em; text-transform: uppercase; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--replit); display: inline-block; margin-right: 6px; vertical-align: middle; }
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px; }
.topbar nav a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.12s, border-color 0.12s; padding-bottom: 2px; }
.topbar nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.topbar nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ─── Title block (home only) — hero LEFT, stats RIGHT ──── */
.title-block { padding: 80px 0 48px; border-bottom: 1px solid var(--rule); }
.title-block .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }
.kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--ink); vertical-align: middle; margin-right: 10px; }
h1 {
  font-family: ui-serif, "Source Serif 4", "New York", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 16ch;
}
h1 em { font-style: italic; color: var(--ink-2); }
.lede {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(25,24,24,0.03);
}
.stat .n { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 32px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 6px; }
.stat .l { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.stats .stat:last-child { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--rule); }
@media (max-width: 1100px) {
  .title-block .wrap { grid-template-columns: 1fr; gap: 36px; align-items: stretch; }
  .stats { grid-template-columns: repeat(5, 1fr); padding: 20px; }
  .stats .stat:last-child { grid-column: auto; padding-top: 0; border-top: none; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--rule); }
}

/* ─── Positioning spread ────────────────────────────────── */
/* Horizontal scroll: 3 cards visible by default, more competitors slide in
   horizontally with mouse / trackpad / arrow keys. Snap to card edges. */
.positions {
  display: flex;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.positions > .pos {
  flex: 0 0 calc(100% / 3);
  min-width: 360px;
  padding: 56px clamp(20px, 2.4vw, 40px);
  position: relative;
  scroll-snap-align: start;
}
.positions > .pos + .pos { border-left: 1px solid var(--rule); }
.positions > .pos.replit { background: linear-gradient(180deg, rgba(255,60,0,0.04) 0%, rgba(255,60,0,0) 60%); }
.positions > .pos.anything { background: linear-gradient(180deg, rgba(15,118,110,0.04) 0%, rgba(15,118,110,0) 60%); }
.positions > .pos.fly { background: linear-gradient(180deg, rgba(126,34,206,0.05) 0%, rgba(126,34,206,0) 60%); }
.positions > .pos.multica { background: linear-gradient(180deg, rgba(67,56,202,0.05) 0%, rgba(67,56,202,0) 60%); }
.positions > .pos.hercules { background: linear-gradient(180deg, rgba(180,83,9,0.05) 0%, rgba(180,83,9,0) 60%); }
.pos.multica .flag .swatch { background: var(--multica); }
.pos.hercules .flag .swatch { background: var(--hercules); }
.pos.multica .pull { color: var(--multica); border-color: var(--multica); }
.pos.hercules .pull { color: var(--hercules); border-color: var(--hercules); }
.mtable thead th.col-multica { color: var(--multica); }
.mtable thead th.col-hercules { color: var(--hercules); }
.icp-notes .tag .pill.m { background: var(--multica-wash); color: var(--multica); }
.icp-notes .tag .pill.h { background: var(--hercules-wash); color: var(--hercules); }
.gap-col li .who.m { color: var(--multica); }
.gap-col li .who.h { color: var(--hercules); }

/* Custom scrollbar that doesn't intrude visually */
.positions::-webkit-scrollbar { height: 8px; }
.positions::-webkit-scrollbar-track { background: var(--rule-soft); }
.positions::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.positions::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
.positions { scrollbar-color: var(--rule) var(--rule-soft); scrollbar-width: thin; }

/* "more →" hint button injected by JS when the row overflows. */
.positions-more {
  display: none;
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 999px;
  width: 36px; height: 36px;
  font-size: 18px; line-height: 1;
  cursor: pointer; z-index: 5;
  box-shadow: 0 4px 12px -2px rgba(25,24,24,0.3);
  font-family: inherit;
  transition: transform 0.12s, opacity 0.18s;
}
.positions-more:hover { transform: translateY(-50%) scale(1.08); }
.positions-wrap { position: relative; }
.positions-wrap.has-overflow .positions-more { display: block; }
.flag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.flag .swatch { width: 10px; height: 10px; border-radius: 2px; }
.pos.replit .flag .swatch { background: var(--replit); }
.pos.anything .flag .swatch { background: var(--anything); }
.pos.fly .flag .swatch { background: var(--fly); }
.pos h2 {
  font-family: ui-serif, "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.pull {
  font-family: ui-serif, "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink-2);
  padding-left: 16px;
  border-left: 2px solid currentColor;
  margin: 14px 0 24px;
}
.pos.replit .pull { color: var(--replit); border-color: var(--replit); }
.pos.anything .pull { color: var(--anything); border-color: var(--anything); }
.pos.fly .pull { color: var(--fly); border-color: var(--fly); }
.pull em { color: var(--ink-2); font-style: italic; }
.summary dl { display: grid; grid-template-columns: 128px 1fr; gap: 12px 18px; margin: 0; font-size: 14px; }
.summary dt { color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.summary dd { margin: 0; color: var(--ink-2); }
.summary dd strong { color: var(--ink); }
.summary dd ul { padding-left: 18px; margin: 0; }
.summary dd li { margin-bottom: 2px; }

/* ─── Insights ─────────────────────────────────────────── */
section.insights { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; gap: 24px; }
.section-head h3 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.section-head .note { font-size: 12px; color: var(--ink-3); max-width: 32ch; text-align: right; }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.insight { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.insight .num {
  font-family: ui-serif, "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  color: var(--ink-4);
}
.insight .head { font-weight: 600; font-size: 16px; margin-bottom: 6px; letter-spacing: -0.005em; }
.insight .body { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.insight .body code { font-size: 13px; background: rgba(255,60,0,0.07); padding: 1px 6px; border-radius: 3px; color: var(--replit); }
.insight .body .t { background: rgba(15,118,110,0.08); color: var(--anything); }

/* ─── Feature matrix ───────────────────────────────────── */
section.matrix { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mtable th, .mtable td { text-align: left; padding: 14px 16px; vertical-align: top; }
.mtable thead th { font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-bottom: 10px; padding-top: 0; }
.mtable thead th.col-replit { color: var(--replit); }
.mtable thead th.col-anything { color: var(--anything); }
.mtable thead th.col-fly { color: var(--fly); }
.mtable tbody tr { border-bottom: 1px solid var(--rule-soft); }
.mtable tbody tr.group td { padding-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.mtable tbody tr.group td .g {
  font-family: ui-serif, "Source Serif 4", Georgia, serif;
  font-size: 20px; letter-spacing: -0.01em;
}
.mtable tbody tr.group td small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.mtable tbody td.f { font-weight: 500; width: 18%; }
.mtable tbody td.f a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.mtable tbody td.f a:hover { border-bottom-color: var(--ink); }
.mtable tbody td.c { width: 14%; }
.mtable tbody td.note { width: 12%; color: var(--ink-3); font-size: 12.5px; }
.mtable th, .mtable td { padding: 12px 12px; font-size: 12.5px; }
.cell .desc { font-size: 12px; }
.cell { display: inline-flex; align-items: flex-start; gap: 8px; }
.cell .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; margin-top: 2px;
}
.cell.yes .mark { background: rgba(31,146,84,0.12); color: var(--yes); }
.cell.no .mark { background: rgba(179,38,30,0.08); color: var(--no); }
.cell.partial .mark { background: rgba(183,121,31,0.12); color: var(--partial); }
.cell.unk .mark { background: rgba(142,136,131,0.12); color: var(--unk); }
.cell .desc { flex: 1; color: var(--ink-2); }
.cell .desc b { color: var(--ink); font-weight: 500; }
.legend { display: flex; gap: 18px; margin-top: 20px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.legend .cell { font-size: 12px; }
.legend .cell .desc { color: var(--ink-3); }

/* ─── ICP visualization ────────────────────────────────── */
section.icp { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.icp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: flex-start; }
.icp-viz svg { width: 100%; height: auto; max-width: 560px; }
.icp-notes h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.icp-notes .seg { padding: 20px 0; border-top: 1px solid var(--rule); }
.icp-notes .seg:first-child { border-top: none; padding-top: 0; }
.icp-notes .seg p { color: var(--ink-2); font-size: 14px; margin: 0; }
.icp-notes .tag { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.icp-notes .tag .pill { padding: 2px 8px; border-radius: 99px; font-weight: 500; }
.icp-notes .tag .pill.r { background: var(--replit-wash); color: var(--replit); }
.icp-notes .tag .pill.a { background: var(--anything-wash); color: var(--anything); }
.icp-notes .tag .pill.f { background: var(--fly-wash); color: var(--fly); }
.icp-notes .tag .pill.both { background: #E7E1D9; color: var(--ink-2); }

/* Legend chips on the ICP chart — clickable toggles */
.icp-svg .legend-chip { cursor: pointer; }
.icp-svg .legend-chip .hit { transition: fill 0.12s; }
.icp-svg .legend-chip:hover .hit { fill: rgba(25,24,24,0.06); }
.icp-svg .legend-chip:focus { outline: none; }
.icp-svg .legend-chip:focus .hit { fill: rgba(25,24,24,0.08); stroke: var(--ink-3); stroke-width: 1; }
.icp-svg .legend-chip.off { opacity: 0.35; }
.icp-svg .legend-chip.off rect:not(.hit) { fill: transparent !important; stroke-width: 1.5; }
.icp-svg .legend-chip.off text { text-decoration: line-through; }

/* When a ring is toggled off on the SVG, hide its arc + ring labels.
   The legend chip's .off class is mirrored on the SVG via JS. */
.icp-svg.off-r .ring-r:not(.hit), .icp-svg.off-r .ring-label.r { display: none; }
.icp-svg.off-a .ring-a:not(.hit), .icp-svg.off-a .ring-label.a { display: none; }
.icp-svg.off-f .ring-f:not(.hit), .icp-svg.off-f .ring-label.f { display: none; }
.icp-svg.off-h .ring-h:not(.hit), .icp-svg.off-h .ring-label.h { display: none; }
.icp-svg.off-m .ring-m:not(.hit), .icp-svg.off-m .ring-label.m { display: none; }

/* ─── Function tags ────────────────────────────────────── */
.fn-tag {
  display: inline-block; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; vertical-align: middle; margin-right: 4px;
}
.fn-tag.market    { background: var(--fn-market-wash); color: var(--fn-market); }
.fn-tag.product   { background: var(--fn-product-wash); color: var(--fn-product); }
.fn-tag.marketing { background: var(--fn-marketing-wash); color: var(--fn-marketing); }
.fn-tag.bd        { background: var(--fn-bd-wash); color: var(--fn-bd); }
.fn-tag.strategy  { background: var(--fn-strategy-wash); color: var(--fn-strategy); }

/* ─── Marketing section ────────────────────────────────── */
section.marketing-fn { padding: 32px 0 72px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(194,65,12,0.025), transparent 50%); }
.mkt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-bottom: 32px; }
.mkt-thesis h3 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 26px; letter-spacing: -0.018em; line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.mkt-thesis h3 em { color: var(--fn-marketing); font-style: italic; }
.mkt-thesis p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
.mkt-side { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; box-shadow: 0 1px 0 rgba(25,24,24,0.03); }
.mkt-side .mkt-side-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fn-marketing); font-weight: 700; margin-bottom: 12px; }
.mkt-side dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0; font-size: 13px; }
.mkt-side dt { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.mkt-side dd { margin: 0; color: var(--ink-2); }
.mkt-side dd b { color: var(--ink); font-weight: 600; }

.mkt-plays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.mkt-play { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--fn-marketing); border-radius: 8px; padding: 18px 18px 16px; display: flex; flex-direction: column; }
.mkt-play .mp-num { font-family: ui-serif, Georgia, serif; font-size: 20px; color: var(--fn-marketing); line-height: 1; margin-bottom: 8px; }
.mkt-play .mp-head { font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.005em; }
.mkt-play .mp-body { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.mkt-play .mp-body b { color: var(--ink); font-weight: 600; }
.mkt-play .mp-source { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); padding-top: 8px; border-top: 1px solid var(--rule-soft); margin-top: auto; }

.mkt-event { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 26px; }
.mkt-event .me-kicker { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #FCA5A5; font-weight: 700; margin-bottom: 8px; }
.mkt-event .me-head { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 23px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; }
.mkt-event .me-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mkt-event .me-day { font-size: 12.5px; line-height: 1.5; color: rgba(250,246,241,0.85); }
.mkt-event .me-day b { display: block; color: #FED7AA; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }

/* ─── BD section ───────────────────────────────────────── */
section.bd-fn { padding: 32px 0 72px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(30,64,175,0.03), transparent 50%); }
.bd-critical { background: #DBEAFE; border: 1px solid #93C5FD; border-left: 5px solid var(--fn-bd); border-radius: 10px; padding: 22px 26px; margin-bottom: 28px; }
.bd-critical .bdc-tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fn-bd); font-weight: 700; margin-bottom: 6px; }
.bd-critical .bdc-head { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.2; margin-bottom: 10px; color: #1E3A8A; letter-spacing: -0.01em; }
.bd-critical .bdc-body { font-size: 14px; color: #1E3A8A; line-height: 1.55; }
.bd-critical .bdc-body b { color: #0C1E5C; font-weight: 600; }
.bd-critical .bdc-body code { background: rgba(30,64,175,0.12); padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }

.bd-tier-head { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.bd-tier-head .bt-tier { background: var(--fn-bd); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.bd-tier-head h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.bd-tier-head .bt-window { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }

.bd-targets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bd-target {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: 18px 20px; box-shadow: 0 1px 0 rgba(25,24,24,0.03);
  display: flex; flex-direction: column; gap: 8px;
}
.bd-target .bt-name { font-weight: 700; font-size: 14.5px; color: var(--ink); letter-spacing: -0.005em; }
.bd-target .bt-name .bt-org { color: var(--ink-3); font-weight: 500; }
.bd-target .bt-role { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fn-bd); font-weight: 700; }
.bd-target .bt-pitch { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.bd-target .bt-pitch b { color: var(--ink); font-weight: 600; }
.bd-target .bt-meta { font-size: 11.5px; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--rule-soft); margin-top: 6px; line-height: 1.5; }
.bd-target .bt-meta b { color: var(--ink-2); font-weight: 600; }

.bd-tools { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.bd-tools th { text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 14px; background: var(--rule-soft); border-bottom: 1px solid var(--ink); }
.bd-tools td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink-2); }
.bd-tools tr:last-child td { border-bottom: none; }
.bd-tools td.tool { font-weight: 600; color: var(--ink); }
.bd-tools .warmth { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.bd-tools .warmth.high { background: #D1FAE5; color: #065F46; }
.bd-tools .warmth.med  { background: #FEF6E2; color: #7A5D17; }
.bd-tools .warmth.low  { background: #FEE2E2; color: #991B1B; }
.bd-tools .warmth.skip { background: var(--rule-soft); color: var(--ink-3); }

/* ─── UX optimization ──────────────────────────────────── */
section.ux { padding: 72px 0; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(255,60,0,0.015) 0%, rgba(15,118,110,0.015) 45%, rgba(126,34,206,0.02) 90%); }
.ux-lede { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); max-width: 64ch; margin: 0 0 32px; }
.ux-lede em { font-style: italic; color: var(--ink-2); }
.ux-lede mark { background: rgba(126,34,206,0.12); color: var(--fly); padding: 0 4px; border-radius: 3px; }

.ux-disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.ux-disc { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; position: relative; box-shadow: 0 1px 0 rgba(25,24,24,0.03); }
.ux-disc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 8px 8px 0 0; }
.ux-disc.builder::before { background: linear-gradient(90deg, var(--replit), var(--anything)); }
.ux-disc.runtime::before { background: var(--fly); }
.ux-disc .kicker { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.ux-disc.runtime .kicker { color: var(--fly); }
.ux-disc h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.2; }
.ux-disc p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
.ux-disc .who { font-size: 11.5px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--rule-soft); margin-top: 10px; }
.ux-disc .who b { color: var(--ink); }

.ux-block { margin-bottom: 44px; }
.ux-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.ux-block-head h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 22px; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.ux-block-head .n { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.ux-adopt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ux-adopt .a-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; font-size: 13px; line-height: 1.45; }
.ux-adopt .a-card .a-name { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.005em; }
.ux-adopt .a-card .a-note { color: var(--ink-3); font-size: 12.5px; }
.ux-adopt .a-card .a-src { display: inline-block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-top: 8px; }
.ux-adopt .a-card a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.ux-adopt .a-card a:hover { border-bottom-color: var(--ink); color: var(--ink); }

.ux-diff { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ux-diff .d-card { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid #5B21B6; border-radius: 6px; padding: 16px 14px; display: flex; flex-direction: column; }
.ux-diff .d-num { font-family: ui-serif, Georgia, serif; font-size: 22px; color: #5B21B6; line-height: 1; margin-bottom: 8px; }
.ux-diff .d-head { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.005em; line-height: 1.3; }
.ux-diff .d-body { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.ux-diff .d-body b { color: var(--ink); font-weight: 600; }

.ux-unlock { background: #F5EFFF; border: 1px solid #D8C4FF; border-left: 4px solid #5B21B6; border-radius: 8px; padding: 24px 26px; }
.ux-unlock .u-kicker { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #5B21B6; font-weight: 700; margin-bottom: 6px; }
.ux-unlock h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 22px; font-weight: 500; margin: 0 0 16px; color: #3F1D6D; letter-spacing: -0.01em; }
.ux-unlock ol { list-style: none; counter-reset: unlock; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ux-unlock ol li { counter-increment: unlock; display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 13.5px; color: #3F1D6D; line-height: 1.5; }
.ux-unlock ol li::before { content: counter(unlock, decimal-leading-zero); font-family: ui-serif, Georgia, serif; color: #7E22CE; font-size: 15px; font-weight: 500; padding-top: 1px; }
.ux-unlock ol li b { color: #2E1254; font-weight: 600; }
.ux-unlock ol li code { font-size: 12px; background: rgba(126,34,206,0.12); padding: 1px 5px; border-radius: 3px; color: #5B21B6; }

.ux-fly { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--fly); border-radius: 8px; padding: 24px 26px; }
.ux-fly .f-kicker { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fly); font-weight: 700; margin-bottom: 6px; }
.ux-fly h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 500; margin: 0 0 14px; color: var(--ink); letter-spacing: -0.01em; }
.ux-fly ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ux-fly li { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; padding-left: 18px; position: relative; }
.ux-fly li::before { content: "→"; position: absolute; left: 0; color: var(--fly); font-weight: 600; }
.ux-fly li b { color: var(--ink); }

.ux-anti { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.ux-anti li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; color: var(--ink-2); display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: baseline; list-style: none; }
.ux-anti li::before { content: "✕"; color: var(--no); font-weight: 700; font-size: 12.5px; padding-top: 1px; }
.ux-anti li b { color: var(--ink); font-weight: 600; }
.ux-anti li .src { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-left: 6px; }

.ux-ia { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.ux-ia table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ux-ia th { text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--ink); background: var(--rule-soft); }
.ux-ia td { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink-2); }
.ux-ia tr:last-child td { border-bottom: none; }
.ux-ia td.audience { font-weight: 600; color: var(--ink); }
.ux-ia .tag { display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.ux-ia .tag.r { background: var(--replit-wash); color: var(--replit); }
.ux-ia .tag.a { background: var(--anything-wash); color: var(--anything); }
.ux-ia .tag.f { background: var(--fly-wash); color: var(--fly); }
.ux-ia .tag.c { background: #EDE9FE; color: #5B21B6; }
.ux-ia td code { font-size: 12px; background: var(--rule-soft); padding: 1px 5px; border-radius: 3px; color: var(--ink); }

.ux-footer-link { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--ink); color: var(--bg); border-radius: 6px; font-size: 13.5px; }
.ux-footer-link a { color: var(--bg); text-decoration: none; border-bottom: 1px solid rgba(250,246,241,0.35); padding-bottom: 1px; }
.ux-footer-link a:hover { border-bottom-color: var(--bg); }

/* ─── Gaps + Next ──────────────────────────────────────── */
section.gaps { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.gap-col h4 { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; }
.gap-col ul { list-style: none; padding: 0; margin: 0; }
.gap-col li { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: baseline; }
.gap-col li:last-child { border-bottom: none; }
.gap-col li .who { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.gap-col li .who.r { color: var(--replit); }
.gap-col li .who.a { color: var(--anything); }
.gap-col li .who.f { color: var(--fly); }
.next ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.next ol li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: baseline; }
.next ol li::before { content: counter(step, decimal-leading-zero); font-family: ui-serif, Georgia, serif; color: var(--ink-4); font-size: 16px; }
.next ol li:last-child { border-bottom: none; }
.next code { font-size: 12.5px; background: var(--rule-soft); padding: 1px 6px; border-radius: 3px; color: var(--ink-2); }

/* ─── Footer ───────────────────────────────────────────── */
footer { padding: 56px 0 72px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: flex-start; }
footer .copy { font-size: 13px; color: var(--ink-3); max-width: 48ch; }
footer a { color: var(--ink-2); }
footer .links h5 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
footer .links ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
footer .links ul li { margin-bottom: 6px; }
footer .links ul li a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
footer .links ul li a:hover { border-bottom-color: var(--ink); }

/* ─── CreateOS strategic brief (used on Strategy page) ─── */
section.createos { padding: 80px 0; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(91,33,182,0.045), transparent 60%); }
.co-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5B21B6; margin-bottom: 24px; font-weight: 600; }
.co-kicker .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5B21B6; margin-right: 8px; vertical-align: middle; }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-bottom: 32px; align-items: start; }
.co-thesis h3 { font-family: ui-serif, "Source Serif 4", "New York", Georgia, serif; font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 18px; color: var(--ink); }
.co-thesis h3 em { color: #5B21B6; font-style: italic; }
.co-thesis p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.co-stack { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; box-shadow: 0 1px 0 rgba(25,24,24,0.03), 0 10px 30px -18px rgba(25,24,24,0.12); }
.co-stack-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.co-stack table { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-stack th { text-align: left; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); padding: 0 4px 8px; border-bottom: 1px solid var(--rule); font-weight: 500; }
.co-stack th.r { text-align: center; color: #5B21B6; }
.co-stack td { padding: 9px 4px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 12.5px; }
.co-stack td:first-child { color: var(--ink); font-weight: 500; }
.co-stack td.c { text-align: center; }
.co-stack tr.moat td { background: #EDE9FE; color: #5B21B6; font-weight: 500; }
.co-stack tr.moat td:first-child { color: #4C1D95; }
.co-stack tr.moat td b { color: #5B21B6; font-weight: 700; }

.co-gap { background: #FEE8E6; border: 1px solid #FCA5A5; border-left: 4px solid var(--no); border-radius: 6px; padding: 18px 22px; margin-bottom: 32px; }
.co-gap-tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--no); font-weight: 700; margin-bottom: 6px; }
.co-gap-head { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; color: #7F1D1D; }
.co-gap-body { font-size: 14px; color: #7F1D1D; line-height: 1.5; }
.co-gap-body b { color: #450A0A; }

.co-moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.co-move { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid #5B21B6; border-radius: 8px; padding: 22px; box-shadow: 0 1px 0 rgba(25,24,24,0.03); }
.co-move-num { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 28px; color: #5B21B6; line-height: 1; margin-bottom: 10px; }
.co-move-head { font-weight: 600; font-size: 15px; margin-bottom: 10px; line-height: 1.3; color: var(--ink); letter-spacing: -0.005em; }
.co-move-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.co-move-body b { color: #5B21B6; font-weight: 600; }
.co-move-when { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }

.co-hockey { background: var(--ink); color: var(--bg); border-radius: 8px; padding: 28px; margin-bottom: 28px; }
.co-hockey-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #A78BFA; margin-bottom: 10px; font-weight: 600; }
.co-hockey-eq { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 22px; color: var(--bg); }
.co-hockey-eq em { color: #C4B5FD; font-style: italic; }
.co-hockey-applied { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 18px; }
.co-hockey-applied > div { font-size: 13px; color: rgba(250,246,241,0.85); line-height: 1.55; }
.co-hockey-applied .tag { display: block; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #A78BFA; margin-bottom: 6px; font-weight: 700; }
.co-hockey-footer { font-size: 12px; color: rgba(250,246,241,0.55); padding-top: 16px; border-top: 1px solid rgba(250,246,241,0.15); line-height: 1.55; }

.co-links { display: flex; gap: 10px; flex-wrap: wrap; }
.co-links a { font-size: 12.5px; color: var(--ink-2); text-decoration: none; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 99px; transition: all 0.12s; background: var(--panel); }
.co-links a:hover { border-color: #5B21B6; color: #5B21B6; background: #EDE9FE; }

/* ─── Playbook strip ───────────────────────────────────── */
section.playbook { padding: 72px 0; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(25,24,24,0.018), transparent 55%); }
.pb-note { font-size: 12px; color: var(--ink-3); max-width: 44ch; text-align: right; }
.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.pb-card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: 24px 22px 18px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(25,24,24,0.03), 0 10px 30px -18px rgba(25,24,24,0.12);
}
.pb-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.pb-card.acquisition::before { background: #7E22CE; }
.pb-card.retention::before   { background: #1E40AF; }
.pb-card.revenue::before     { background: #059669; }
.pb-card.strategy::before    { background: #D97706; }
.pb-label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; color: var(--ink-3); }
.pb-card.acquisition .pb-label { color: #7E22CE; }
.pb-card.retention .pb-label   { color: #1E40AF; }
.pb-card.revenue .pb-label     { color: #059669; }
.pb-card.strategy .pb-label    { color: #D97706; }
.pb-head { font-family: ui-serif, "Source Serif 4", "New York", Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.22; letter-spacing: -0.012em; margin: 0 0 18px; color: var(--ink); }
.pb-section-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 6px; font-weight: 600; }
.pb-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 12.8px; line-height: 1.5; }
.pb-list li { padding-left: 20px; position: relative; color: var(--ink-2); margin-bottom: 5px; }
.pb-list.do li::before   { content: "✓"; position: absolute; left: 0; top: 0; color: #1F9254; font-weight: 700; font-size: 12px; }
.pb-list.dont li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #B3261E; font-weight: 700; font-size: 12px; }
.pb-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--ink-2); text-decoration: none; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.01em; }
.pb-link:hover { color: var(--ink); }
.pb-link .arrow { font-family: ui-serif, Georgia, serif; font-style: italic; }
.pb-cta { margin-top: 36px; padding: 22px 24px; background: var(--ink); color: var(--bg); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pb-cta .pb-cta-text { font-family: ui-serif, "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.pb-cta .pb-cta-text em { font-style: italic; color: var(--ink-4); }
.pb-cta .pb-cta-links { display: flex; gap: 16px; flex-shrink: 0; }
.pb-cta .pb-cta-links a { color: var(--bg); text-decoration: none; font-size: 13px; border-bottom: 1px solid rgba(250,246,241,0.25); padding-bottom: 2px; }
.pb-cta .pb-cta-links a:hover { border-bottom-color: var(--bg); }

/* ─── Responsive ───────────────────────────────────────── */
/* On narrow viewports, surface 1.2 cards at a time (peek the next one). */
@media (max-width: 1100px) {
  .positions > .pos { flex-basis: 88%; min-width: 280px; }
}
@media (max-width: 640px) {
  .positions > .pos { flex-basis: 92%; min-width: 240px; }
}
@media (max-width: 1100px) {
  .home-index-cards { grid-template-columns: repeat(2, 1fr); }
  .pb-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-grid { grid-template-columns: 1fr; }
  .mkt-plays { grid-template-columns: 1fr; }
  .mkt-event .me-grid { grid-template-columns: 1fr 1fr; }
  .bd-targets { grid-template-columns: 1fr; }
  .ux-adopt { grid-template-columns: repeat(2, 1fr); }
  .ux-diff { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .home-index-cards { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .icp-grid { grid-template-columns: 1fr; gap: 40px; }
  .gap-grid { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .mtable tbody td.note { display: none; }
  h1 { max-width: unset; }
  .pb-cta { flex-direction: column; align-items: flex-start; }
  .co-grid { grid-template-columns: 1fr; gap: 28px; }
  .co-moves { grid-template-columns: 1fr; }
  .co-hockey-applied { grid-template-columns: 1fr; }
  .ux-disciplines { grid-template-columns: 1fr; }
  .ux-unlock ol { grid-template-columns: 1fr; }
  .ux-fly ul { grid-template-columns: 1fr; }
  .ux-anti { grid-template-columns: 1fr; }
  .ux-footer-link { flex-direction: column; align-items: flex-start; }
  .mkt-event .me-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pb-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .mtable thead th:nth-child(7), .mtable tbody td:nth-child(7) { display: none; }
  .summary dl { grid-template-columns: 1fr; gap: 4px 0; }
  .summary dt { padding-top: 14px; }
  .summary dt:first-of-type { padding-top: 0; }
  .ux-adopt { grid-template-columns: 1fr; }
  .ux-diff { grid-template-columns: 1fr; }
}
