/* Maker Playbooks — scannable table UI */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f5f1ea;
  --ink: #1b1714;
  --muted: #6c645b;
  --faint: #a79f94;
  --line: #ece6dc;
  --line-2: #e3dccf;
  --accent: #ef4710;
  --accent-soft: #fdeee7;
  --money: #0c7a52;
  --chip: #f3efe7;
  --chip-ink: #3f3a33;
  --glass: rgba(250, 248, 244, 0.85);
  --shadow: 0 1px 2px rgba(28, 22, 16, 0.04), 0 6px 20px rgba(28, 22, 16, 0.05);
  --shadow-lift: 0 2px 6px rgba(28, 22, 16, 0.06), 0 18px 44px rgba(28, 22, 16, 0.12);
  --radius: 14px;
  --maxw: 1180px;
}

[data-theme="dark"] {
  --bg: #131110;
  --surface: #1c1917;
  --surface-2: #221e1b;
  --ink: #f3ede4;
  --muted: #a9a094;
  --faint: #6f665b;
  --line: #2a2521;
  --line-2: #332d28;
  --accent: #ff6a3d;
  --accent-soft: #2a1b13;
  --money: #34c38a;
  --chip: #262220;
  --chip-ink: #d8d0c5;
  --glass: rgba(19, 17, 16, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* contain hover tooltips without breaking scroll/sticky */
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
.faint { color: var(--faint); }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- top -- */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark { display: inline-flex; }
.brand-name { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------------------------------------------------------------- hero -- */
.hero { max-width: 760px; margin: 0 auto; padding: 40px 24px 26px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.eyebrow a:hover { text-decoration-thickness: 2px; }
.hero-sub a { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero-sub a:hover { text-decoration: underline; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin: 0 auto; max-width: 580px; font-size: 1.04rem; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------ controls -- */
.controls {
  background: transparent;
  margin-top: 10px;
}
.controls-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 180px;
  padding: 0 12px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--faint);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field input {
  border: 0; background: none; outline: none; flex: 1;
  font: inherit; font-size: 0.92rem; color: var(--ink);
}
.controls select {
  height: 40px;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; appearance: none; -webkit-appearance: none; max-width: 190px;
}
.controls select:hover { border-color: var(--faint); }
.result-count { margin-left: auto; font-size: 0.86rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.reset-btn {
  height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--muted); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.reset-btn:hover { color: var(--ink); border-color: var(--faint); }
.reset-btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------- table -- */
.table-region { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 6px; }
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden; /* horizontal-only scroller: lets vertical swipes scroll the page on touch */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table.founders {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.founders thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.founders tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
  color: var(--ink);
  height: 44px;
}
.founders tbody tr:last-child td { border-bottom: 0; }
.founders tbody tr { transition: background 0.12s; }
.founders tbody tr:hover { background: var(--surface-2); }

/* column sizing */
.c-rank { width: 44px; text-align: center; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-company { min-width: 178px; }
.c-founder { min-width: 138px; }
.c-mrr { width: 130px; }
.c-cat { width: 110px; }
.c-chan { min-width: 138px; }
.c-watch { width: 84px; }
.c-details { width: 104px; text-align: center; }

/* sticky rank + company (left) and the playbook button (right) while
   scrolling sideways, so the key context + the open-card action are always
   visible no matter how wide the table gets. */
.founders th.c-rank, .founders td.c-rank { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.founders th.c-company, .founders td.c-company { position: sticky; left: 44px; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--line); }
.founders th.c-details, .founders td.c-details { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: inset 1px 0 0 var(--line); }
.founders thead th.c-rank, .founders thead th.c-company, .founders thead th.c-details { z-index: 3; background: var(--surface-2); }
.founders tbody tr:hover td.c-rank, .founders tbody tr:hover td.c-company, .founders tbody tr:hover td.c-details { background: var(--surface-2); }

/* company cell */
.fav {
  width: 22px; height: 22px; border-radius: 5px; object-fit: contain;
  background: var(--surface-2); border: 1px solid var(--line); padding: 2px;
  vertical-align: middle; margin-right: 9px;
}
.company {
  display: inline-block; max-width: 128px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  font-weight: 650; letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
a.company:hover { color: var(--accent); }

/* founder cell */
.founder { display: inline-flex; align-items: center; gap: 6px; max-width: 124px; text-decoration: none; color: var(--muted); font-weight: 500; }
.founder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.founder:hover { color: var(--accent); }
.founder-ic { display: inline-flex; color: var(--faint); flex: 0 0 auto; }
.founder-ic svg { width: 13px; height: 13px; }
a.founder:hover .founder-ic { color: var(--accent); }

/* revenue cell */
.rev-line { display: inline-flex; align-items: baseline; gap: 5px; }
.rev-num { font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em; color: var(--money); font-variant-numeric: tabular-nums; }
.rev-b-none .rev-num { color: var(--ink); }
.rev-num.rev-dash { color: var(--faint); }
.rev-qual { font-size: 0.62rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.rev-qual.rev-annualized, .rev-qual.rev-derived { color: var(--accent); }
.info { display: inline-flex; align-items: center; position: relative; color: var(--faint); cursor: help; }
.info svg { width: 14px; height: 14px; }
.info:hover, .info:focus { color: var(--accent); outline: none; }
.tip {
  position: absolute; top: calc(100% + 8px); right: -4px;
  width: 250px; max-width: 70vw; padding: 10px 12px;
  background: var(--ink); color: var(--bg);
  font-size: 0.78rem; font-weight: 450; line-height: 1.45; letter-spacing: 0;
  text-align: left; white-space: normal; border-radius: 10px; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 50;
}
.tip::after { content: ""; position: absolute; top: -5px; right: 9px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.info:hover .tip, .info:focus .tip { opacity: 1; visibility: visible; transform: none; }

/* category badge */
.cat-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 650;
  padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); white-space: nowrap;
}
.cat-web-saas { background: #e8f0fe; color: #1a56b8; }
.cat-mobile-app { background: #eafaf1; color: #0e7a4b; }
.cat-portfolio-multiple { background: #f3ecfe; color: #6b32c9; }
.cat-agency-service { background: #fef0e8; color: #c2570f; }
.cat-content-newsletter { background: #fff4e0; color: #a9760a; }
.cat-ecommerce { background: #fde9f1; color: #bf2a6e; }
.cat-course-info-product { background: #e6f6fb; color: #0d7f9c; }
.cat-chrome-extension { background: #eef1f4; color: #4a5568; }
[data-theme="dark"] .cat-badge { background: var(--chip); color: var(--chip-ink); }

/* icon cells */
.ic-row { display: inline-flex; align-items: center; gap: 6px; }
.cell-ic { display: inline-flex; color: var(--ic, var(--muted)); }
.cell-ic svg { width: 16px; height: 16px; display: block; }

/* watch cell */
.watch { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 550; }
.watch:hover { color: var(--ink); }
.watch-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.watch-ic svg { width: 11px; height: 11px; }
.watch:hover .watch-ic { background: var(--accent); color: #fff; }

/* details button — accent-tinted so it reads as the row's primary action */
.details-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--accent-soft);
  background: var(--accent-soft); color: var(--accent);
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.13s;
}
.details-btn:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

/* pills (used in detail card) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 8px; border-radius: 999px;
  background: var(--chip); color: var(--chip-ink); font-size: 0.8rem; font-weight: 550;
}
.pill-ic { display: inline-flex; color: var(--ic, var(--faint)); }
.pill-ic svg { width: 14px; height: 14px; display: block; }
.mtags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.mtag { font-size: 0.72rem; font-weight: 550; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--chip-ink); border: 1px solid var(--line); }

/* ----------------------------------------------------------- detail card -- */
.detail {
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 28px 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  position: fixed;
  inset: 0;
  margin: auto;
}
.detail::backdrop { background: rgba(20, 16, 12, 0.5); backdrop-filter: blur(3px); }
.detail-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: var(--surface-2); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.detail-close:hover { color: var(--ink); background: var(--chip); }
.d-head { display: flex; align-items: flex-start; gap: 14px; padding-right: 36px; }
.d-fav { width: 46px; height: 46px; border-radius: 11px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); padding: 5px; flex: 0 0 auto; }
.d-head h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-head h3 a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.d-head h3 a:hover { color: var(--accent); }
.d-head h3 .ext svg { width: 14px; height: 14px; }
.d-sub { margin: 5px 0 0; font-size: 0.9rem; color: var(--muted); }
.d-sub a { text-decoration: none; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.d-sub a:hover { color: var(--accent); }
.d-rev { margin-left: auto; text-align: right; white-space: nowrap; }
.d-rev .rev-num { font-size: 1.4rem; }
.d-revnote { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.d-quote {
  margin: 16px 0 4px; padding: 6px 0 6px 16px; border-left: 3px solid var(--accent);
  font-size: 1.05rem; line-height: 1.5; font-weight: 500; font-style: italic; color: var(--ink);
}
.d-pills { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 4px; }
.d-pillgroup { display: flex; flex-direction: column; gap: 7px; }
.d-pilllabel { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.d-sec { margin-top: 18px; }
.d-sec h4 { margin: 0 0 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.d-sec p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.d-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.d-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-btn:hover { border-color: var(--faint); }
.d-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.d-btn.primary .watch-ic { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* empty / error */
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state h3 { margin: 0 0 16px; font-weight: 700; }
.load-error { padding: 40px; text-align: center; color: var(--muted); }
#sentinel { height: 1px; }

/* ---------------------------------------------------------- analytics --- */
.insights { border-top: 1px solid var(--line); margin-top: 48px; }
/* full-bleed bands that alternate background so each section reads as its own
   block; the hairline between bands is the only divider (none under headings) */
.ins-band { background: var(--surface-2); }
.ins-band-alt { background: var(--bg); }
.ins-band + .ins-band { border-top: 1px solid var(--line); }
.insights-inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; }
.ins-band:first-child .insights-inner { padding-top: 64px; }
.ins-band:last-child .insights-inner { padding-bottom: 44px; }

/* section intro */
.ins-head { max-width: 760px; margin: 0 auto; text-align: center; }
.ins-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.ins-kicker-ic { display: inline-flex; }
.ins-kicker-ic svg { width: 14px; height: 14px; }
.ins-head h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.6vw, 2.7rem); letter-spacing: -0.035em; font-weight: 850; line-height: 1.05; }
.ins-head h2 em { font-style: normal; color: var(--accent); }
.ins-head p { margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--muted); }

/* decorative brand-icon band */
.icon-map { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 28px auto 0; max-width: 640px; }
.map-ic { display: inline-flex; color: var(--ic, var(--muted)); opacity: 0.5; transition: opacity 0.15s, transform 0.15s; }
.map-ic:hover { opacity: 1; transform: translateY(-2px); }
.map-ic svg { width: 22px; height: 22px; display: block; }

/* editorial stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 850; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat-num small { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-left: 1px; }
.stat-label { display: block; margin-top: 11px; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }

/* numbered sections — band padding separates them, so no divider under the head */
.sec { margin-top: 46px; }
.insights-inner > .sec:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.sec-num {
  font-size: 2.4rem; font-weight: 850; line-height: 1; letter-spacing: -0.04em;
  color: var(--accent); font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.sec-titles h3 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.025em; }
.sec-titles p { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); max-width: 760px; }

/* consensus playbook — editorial list, not boxes */
.playbook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 36px; }
.playbook li { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pb-ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.pb-ic svg { width: 19px; height: 19px; }
.pb-body h4 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.pb-body h4 em { font-style: normal; color: var(--accent); }
.pb-body p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.pb-body p em { font-style: italic; color: var(--ink); }

/* bar charts */
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chart-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px; box-shadow: var(--shadow);
}
.chart-card.chart-wide { grid-column: 1 / -1; }
.chart-card h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.ch-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.ch-ic svg { width: 15px; height: 15px; }
.chart-note { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 0.72rem; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 42px; align-items: center; gap: 12px; }
.bar-label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.83rem; font-weight: 550; color: var(--ink); min-width: 0; }
.bar-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-ic { display: inline-flex; color: var(--ic, var(--muted)); flex: 0 0 auto; }
.bar-ic svg { width: 15px; height: 15px; display: block; }
.bar-track { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
[data-theme="dark"] .bar-track { background: var(--chip); }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ff8a5c); }
.bar-val { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* distribution engines */
.engines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.engine {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.engine::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.engine-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.engine-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.engine-ic svg { width: 22px; height: 22px; }
.engine-tag { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.engine-head h4 { margin: 3px 0 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.engine ol { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 9px; }
.engine li { font-size: 0.88rem; line-height: 1.5; color: var(--muted); padding-left: 4px; }
.engine li::marker { color: var(--accent); font-weight: 700; }

/* quotes */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-grid blockquote {
  margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 20px 18px; box-shadow: var(--shadow);
}
.quote-grid blockquote::before {
  content: "\201C"; position: absolute; left: 16px; top: 8px;
  font-family: Georgia, "Times New Roman", serif; font-size: 3rem; line-height: 1; color: var(--accent); opacity: 0.32;
}
.quote-grid blockquote p { margin: 0; font-size: 0.96rem; line-height: 1.5; font-weight: 550; font-style: italic; color: var(--ink); }
.q-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.q-avatar {
  position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--av, var(--accent)); color: #fff; font-size: 0.86rem; font-weight: 700; line-height: 1;
}
.q-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--av, var(--accent)); }
.quote-grid cite { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--accent); }

.ins-caveat { max-width: 780px; margin: 48px auto 0; font-size: 0.82rem; line-height: 1.6; color: var(--faint); text-align: center; }

/* footer */
.site-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 46px;
  border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.86rem; color: var(--muted);
}
.foot-thanks { max-width: 620px; }
.foot-thanks p { margin: 0; line-height: 1.6; }
.foot-thanks .foot-fine { margin-top: 6px; font-size: 0.8rem; color: var(--faint); }
.foot-thanks a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-thanks a:hover { color: var(--accent); }
.site-foot .twitter { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.site-foot .twitter:hover { color: var(--accent); }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 940px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.chart-wide { grid-column: auto; }
  .playbook { grid-template-columns: 1fr; gap: 0; }
  .engines { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .controls select { flex: 1 1 auto; max-width: none; }
  .result-count { width: 100%; margin-left: 0; order: 5; }
  .table-region { padding: 16px 12px 6px; }
  .detail { padding: 22px 20px 20px; }
  .d-head h3 { font-size: 1.15rem; }
  .d-rev { margin-left: 0; }
  .insights-inner { padding: 40px 16px; }
  .ins-band:first-child .insights-inner { padding-top: 44px; }
  .sec { margin-top: 38px; }
  .sec-head { gap: 14px; }

  /* phones: drop the sticky columns so the whole table scrolls as one block,
     instead of a tiny strip wedged between the sticky columns */
  .founders th.c-rank, .founders td.c-rank,
  .founders th.c-company, .founders td.c-company,
  .founders th.c-details, .founders td.c-details {
    position: static;
    box-shadow: none;
  }
  .sec-num { font-size: 1.9rem; }
  .sec-titles h3 { font-size: 1.25rem; }
  .quote-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 124px 1fr 40px; gap: 9px; }
}

@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
