/* ==========================================================================
   DewPoint — Swiss-Industrial Product Design System (v6)
   Core Story: AI + Database = Amazing Dashboard (First!), backed by
   Verified Multi-Table Joins & Unbreakable Zero-Row Privacy SVG Inspector.
   Typefaces: IBM Plex Sans + IBM Plex Mono.
   ========================================================================== */

:root {
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-subtle: #eeede8;
  --code-bg: #141817;
  --code-ink: #e7ecea;

  --ink: #131716;
  --ink-2: #3b4340;
  --ink-3: #68726e;

  --line: #d5d4cd;
  --line-strong: #b6b5ac;

  --brand: #1b5b47;
  --brand-hover: #134435;
  --brand-tint: #e5efe9;
  --brand-line: #a7c7bb;

  --ochre: #c27d12;
  --ochre-tint: #fcf3e1;
  --ochre-line: #e5c685;

  --blue: #2b549e;
  --red: #c23321;
  --red-tint: #fbeae7;
  --red-line: #eab1a9;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111413;
  --surface: #171b1a;
  --surface-subtle: #1e2321;
  --code-bg: #0c0e0e;
  --code-ink: #e5ebe8;

  --ink: #ededeb;
  --ink-2: #b9c0bd;
  --ink-3: #808a86;

  --line: #2a302e;
  --line-strong: #3d4542;

  --brand: #389e7e;
  --brand-hover: #47b290;
  --brand-tint: #172923;
  --brand-line: #274d40;

  --ochre: #e8aa3d;
  --ochre-tint: #282114;
  --ochre-line: #57431b;

  --blue: #7ea0e8;
  --red: #eb5d4b;
  --red-tint: #2a1816;
  --red-line: #5c2b25;

  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
code, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.frame {
  max-width: 1240px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

/* ==========================================================================
   Sticky Top Bar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-sq {
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.logo-sq svg { width: 14px; height: 14px; }

.logo-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.logo-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-items a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-items a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { border-color: var(--ink); }

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* ==========================================================================
   HERO — Immediate Value: AI + Database = Amazing Dashboard!
   ========================================================================== */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  border-bottom: 1px solid var(--line);
}

.hero-left {
  padding: 48px 40px 44px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.kicker-plain {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-title span.accent-line {
  color: var(--brand);
  display: block;
}

.hero-body {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* Official AI Agent Logo Selector + Install Command */
.agents-install-block {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
}

.agents-label-bar {
  padding: 7px 12px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-logo-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.agent-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: none;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.agent-logo-btn:last-child { border-right: none; }
.agent-logo-btn:hover { background: var(--surface-subtle); color: var(--ink); }

.agent-logo-btn.active {
  background: var(--brand-tint);
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.agent-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
}

.cmd-line-bar {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-str {
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow-x: auto;
}

.cmd-prompt {
  color: #eab308;
  margin-right: 8px;
  user-select: none;
}

.copy-cmd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-cmd:hover { background: #ffffff; color: #111413; }

/* Right Side of Hero: THE LIVE INTERACTIVE DASHBOARD ITSELF! */
.hero-right {
  background: var(--surface-subtle);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hero-dash-window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 23, 22, 0.06);
}

.hd-chrome {
  padding: 9px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.hd-conn {
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.tag-flat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid var(--brand-line);
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-ochre {
  background: var(--ochre-tint);
  color: var(--ochre);
  border-color: var(--ochre-line);
}

.hd-body {
  padding: 16px;
}

.hd-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hd-kpi {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--surface);
}

.hd-kpi-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.hd-kpi-val {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}

.hd-kpi-delta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand);
  font-weight: 600;
}

.hd-chart-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--surface);
}

.hd-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hd-chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.hd-svg-stage {
  width: 100%;
  height: 158px;
}

.hd-svg-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Interactive Chat Prompt Pills right under the Hero Dashboard */
.hero-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-chat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.hero-prompt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hp-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s ease;
}

.hp-pill:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.hp-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Supported Database Drivers Strip */
.ecosystem-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.eco-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ==========================================================================
   Generic Section Headers
   ========================================================================== */

.sec-block {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 58px;
}

.sec-head {
  padding: 52px 40px 34px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: end;
}

.sec-index {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.sec-h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.026em;
}

.sec-desc {
  font-size: 0.96rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 01 (#how) — HOW IT WORKS: 3-STEP WORKFLOW + CSV vs. DB LEDGER
   ========================================================================== */

.steps-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.step-col {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.step-col:last-child { border-right: none; }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.step-h3 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.step-p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.58;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-cell {
  padding: 24px 32px;
  border-right: 1px solid var(--line);
}

.ledger-cell:last-child { border-right: none; }

.ledger-code {
  margin-top: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  border-radius: 3px;
  line-height: 1.5;
  overflow-x: auto;
}

.ledger-code.bad {
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  color: var(--red);
}

.ledger-code.good {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  color: var(--brand);
}

/* ==========================================================================
   SECTION 02 (#demo) — FULL 84-TABLE WAREHOUSE WORKSPACE SIMULATOR
   ========================================================================== */

.workspace-sim {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.ws-left {
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ws-prompt-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.83rem;
  line-height: 1.42;
  cursor: pointer;
}

.ws-prompt-btn.active {
  border-color: var(--brand);
  border-left-width: 3px;
  background: var(--brand-tint);
  color: var(--ink);
}

.ws-prompt-step {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 3px;
}

.ws-yaml-box {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 13px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-x: auto;
}

.ws-right {
  padding: 26px 30px;
  background: var(--surface);
}

.ws-dash-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.w-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
}

.w-card.changed {
  border-color: var(--ochre);
  background: var(--ochre-tint);
}

.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }
.c-6 { grid-column: span 6; }

.w-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 6px;
}

.w-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
}

.w-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 1px 6px;
  border-radius: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-big {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.w-sub {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 66px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.hbar-track {
  height: 8px;
  background: var(--surface-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  background: var(--brand);
  transition: width 0.35s ease;
}

/* ==========================================================================
   SECTION 03 (#benchmarks) — HACKER NEWS SYSTEMS INTERNALS & BENCHMARKS
   ========================================================================== */

.bench-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.bench-stat-cell {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.bench-stat-cell:last-child { border-right: none; }

.bench-num {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  line-height: 1.05;
  margin-bottom: 6px;
}

.bench-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.bench-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}

.bench-tables-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-bottom: 1px solid var(--line);
}

.bench-col {
  padding: 26px 36px;
  border-right: 1px solid var(--line);
}

.bench-col:last-child { border-right: none; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}

.spec-table th, .spec-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.spec-table th {
  background: var(--surface-subtle);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec-table td.win-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
}

/* 6-Subsystem Interactive Engineering Explorer */
.internals-explorer {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.internals-nav {
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
}

.internal-tab {
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: block;
}

.internal-tab:last-child { border-bottom: none; }
.internal-tab:hover { background: var(--surface); color: var(--ink); }

.internal-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--brand);
}

.itab-file {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 2px;
}

.itab-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.internals-detail {
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.repro-strip {
  padding: 13px 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   SECTION 04 (#privacy) — UNBREAKABLE ZERO-ROW SVG DIAGRAM + 2-COL INSPECTOR
   Works cleanly at 1440px, 1280px, 769px IDE split-pane, and 375px mobile!
   ========================================================================== */

.airlock-controls {
  padding: 16px 40px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schema-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schema-tab {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 3px;
  cursor: pointer;
}

.schema-tab.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.mode-seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.mode-seg-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border: none;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.mode-seg-btn.active-safe {
  background: var(--brand);
  color: #ffffff;
}

.mode-seg-btn.active-unsafe {
  background: var(--red);
  color: #ffffff;
}

/* Full-Width Responsive Vector Flow Diagram (Scales cleanly at ANY width!) */
.privacy-flow-banner {
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.privacy-flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-dash-stream {
  fill: none;
  stroke-width: 2.2;
  stroke-dasharray: 6 6;
  animation: marchStream 0.9s linear infinite;
}

@keyframes marchStream {
  to { stroke-dashoffset: -24; }
}

/* Generous 2-Column Side-by-Side Inspector (Zero Cramped Wrapping!) */
.inspector-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.inspector-pane {
  padding: 26px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.inspector-pane:last-child { border-right: none; }

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 11.5px;
  margin-top: 12px;
}

.db-table th, .db-table td {
  padding: 8px 9px;
  border: 1px solid var(--line);
  text-align: left;
}

.db-table th {
  background: var(--surface-subtle);
  color: var(--ink-3);
  font-size: 10.5px;
}

.cell-sensitive {
  background: var(--red-tint);
  color: var(--red);
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 500;
}

.test-row-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 4px;
}

.test-row-input {
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.test-row-input:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

.wire-pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.56;
  margin-top: 12px;
  overflow-x: auto;
  white-space: pre;
}

.wire-audit {
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wire-audit.safe {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  color: var(--brand);
}

.wire-audit.unsafe {
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  color: var(--red);
}

/* ==========================================================================
   SECTION 04 (#users) — TEAMS & DEPLOYMENT
   ========================================================================== */

.role-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.role-tab {
  text-align: left;
  padding: 16px 20px;
  border: none;
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink-2);
  cursor: pointer;
}

.role-tab:last-child { border-right: none; }

.role-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--brand);
}

.role-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 32px 40px;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.deploy-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.deploy-col {
  padding: 32px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.deploy-col:last-child { border-right: none; }

.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.plain-list li::before {
  content: "— ";
  color: var(--brand);
  font-weight: 700;
}

.footer-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 40px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints (Clean at 769px IDE split-pane & mobile!)
   ========================================================================== */

@media (max-width: 1020px) {
  .nav-items, .logo-tag { display: none; }
  .hero-split,
  .sec-head,
  .steps-three,
  .ledger-row,
  .workspace-sim,
  .bench-tables-split,
  .internals-explorer,
  .inspector-two-col,
  .role-detail,
  .deploy-two {
    grid-template-columns: 1fr;
  }
  .bench-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bench-stat-cell {
    border-bottom: 1px solid var(--line);
  }
  .hero-left,
  .step-col,
  .ledger-cell,
  .ws-left,
  .bench-col,
  .internals-nav,
  .inspector-pane,
  .deploy-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .inspector-pane:last-child,
  .deploy-col:last-child,
  .bench-col:last-child,
  .step-col:last-child,
  .ledger-cell:last-child {
    border-bottom: none;
  }
  .role-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero-left, .hero-right, .sec-head, .airlock-controls, .privacy-flow-banner, .inspector-pane, .bench-col, .internals-detail, .repro-strip, .role-detail, .deploy-col, .ecosystem-strip {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hd-kpis, .role-bar, .bench-metrics-grid { grid-template-columns: 1fr; }
  .agent-logo-tabs { grid-template-columns: repeat(3, 1fr); }
  .c-3, .c-4, .c-6 { grid-column: span 12; }
}
