/* ==========================================================================
   Trellara — v3 "enterprise control plane" concept
   Shared stylesheet for index.html and compare.html
   ========================================================================== */

:root {
  /* Surfaces — deeper, cooler, more contrast discipline than v2 */
  --bg:         #060a0f;
  --surface:    #0b1118;
  --surface-2:  #101923;
  --surface-3:  #16212d;

  /* Lines */
  --line:        rgba(138, 166, 194, 0.13);
  --line-strong: rgba(138, 166, 194, 0.26);

  /* Text */
  --ink:   #e8eef5;
  --dim:   #9aabbb;
  --faint: #62727f;

  /* BRAND is blue. STATUS colors are reserved and mean one thing each.
     This separation is deliberate: on a product whose whole claim is that
     state is legible, brand must never be confusable with a health signal. */
  --brand:      #6d8dff;
  --brand-dim:  rgba(109, 141, 255, 0.13);
  --brand-ink:  #0a1024;

  --pass:  #2fd39d;   /* verified / converged — never used decoratively */
  --pass-dim: rgba(47, 211, 157, 0.13);
  --warn:  #e8b23f;   /* degraded / lagging */
  --alert: #ef6d52;   /* blocked / at risk */
  --info:  #63b6f2;   /* informational values: LSNs, ids, commands */

  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
::selection { background: rgba(109, 141, 255, 0.32); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.wrap--narrow { max-width: 940px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; font-weight: 600; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 9px; /* mark */
  font-family: var(--mono); font-size: 0.98rem; font-weight: 700;
  letter-spacing: 0.02em; text-decoration: none; flex: none;
}
.logo .dot {
  /* The product mark. Brand indigo, never a status colour: green on this site
     means verified and nothing else, and a logo carries no verification state. */
  width: 19px; height: 19px; flex: none;
  background: url(assets/mark.svg) center / contain no-repeat;
  border-radius: 0;
  filter: drop-shadow(0 0 8px rgba(109, 141, 255, 0.30));
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.topnav {
  display: flex; gap: 24px; margin-left: auto;
  font-size: 0.875rem; color: var(--dim);
}
.topnav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.top-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.release-pill {
  font-family: var(--mono); font-size: 0.775rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--dim);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 4px 11px; white-space: nowrap;
}
.top-cta {
  font-size: 0.83rem; font-weight: 650;
  padding: 9px 15px; text-decoration: none; white-space: nowrap;
  color: var(--brand-ink); background: var(--brand);
  border-radius: var(--radius-sm);
}
.top-cta:hover { filter: brightness(1.09); }

/* ==========================================================================
   Type scale
   ========================================================================== */

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  line-height: 1.07; letter-spacing: -0.028em; font-weight: 700;
}
h1 .accent { color: var(--brand); }

h2 {
  margin: 0 0 18px; max-width: 820px;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
}
h3 { font-weight: 650; letter-spacing: -0.012em; }

.chapter {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-family: var(--mono); font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--brand);
}
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.lede { max-width: 700px; color: var(--dim); font-size: 1.06rem; margin: 0 0 44px; }
.lede a { color: var(--brand); }

code.chip {
  font-family: var(--mono); font-size: 0.86em;
  padding: 1px 7px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--info); white-space: nowrap;
}

/* ==========================================================================
   Maturity tags — the honesty device. Every product claim carries one.
   ========================================================================== */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; border: 1px solid;
  white-space: nowrap; vertical-align: 2px;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag--now      { color: var(--pass);  border-color: rgba(47, 211, 157, 0.34); background: var(--pass-dim); }
.tag--next     { color: var(--warn);  border-color: rgba(232, 178, 63, 0.32); background: rgba(232, 178, 63, 0.09); }
.tag--vision   { color: var(--info);  border-color: rgba(99, 182, 242, 0.32); background: rgba(99, 182, 242, 0.09); }
.tag--research { color: var(--faint); border-color: var(--line); background: transparent; }

/* Legend strip */
.legend {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.legend-inner {
  display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 26px; align-items: start; padding: 22px 0;
}
.legend-title {
  font-family: var(--mono); font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  max-width: 130px; line-height: 1.5; padding-top: 3px;
}
.legend-item p { margin: 8px 0 0; font-size: 0.82rem; color: var(--dim); line-height: 1.5; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 0.97rem; text-decoration: none;
  border: 1px solid transparent; transition: filter 0.15s, border-color 0.15s, color 0.15s;
}
.btn.solid { background: var(--brand); color: var(--brand-ink); }
.btn.solid:hover { filter: brightness(1.09); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn .arrow { font-family: var(--mono); opacity: 0.75; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(68px, 8.5vw, 118px) 0; }
.section--raised { border-top: 1px solid var(--line); background: var(--surface); }
.section--tight { padding-top: clamp(48px, 6vw, 76px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: clamp(58px, 8vw, 108px) 0 clamp(46px, 6vw, 76px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.kicker {
  font-family: var(--mono); font-size: 0.79rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 20px;
}
.hero-sub { margin: 0 0 30px; max-width: 580px; color: var(--dim); font-size: clamp(1.02rem, 1.35vw, 1.16rem); }

.trust {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.trust span {
  font-family: var(--mono); font-size: 0.775rem; color: var(--faint);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px;
}
.trust span b { color: var(--dim); font-weight: 600; }

/* Console panel with tabs */
.console {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: stretch; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.console-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 13px 17px; color: var(--faint);
  font-family: var(--mono); font-size: 0.79rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  border-bottom: 2px solid transparent; border-right: 1px solid var(--line);
}
.console-tab:hover { color: var(--dim); }
.console-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); background: var(--surface); }
.console-meta {
  margin-left: auto; display: flex; align-items: center; padding: 0 16px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--faint); white-space: nowrap;
}
.console-body {
  padding: 20px 20px 24px; min-height: 388px;
  font-family: var(--mono); font-size: 0.795rem; line-height: 1.78;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.t-cmd { color: var(--ink); font-weight: 700; }
.t-cmd::before { content: "$ "; color: var(--brand); }
.t-ok    { color: var(--pass); }
.t-warn  { color: var(--warn); }
.t-alert { color: var(--alert); }
.t-info  { color: var(--info); }
.t-dim   { color: var(--dim); }
.t-faint { color: var(--faint); }
.cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--brand); vertical-align: -2px;
  animation: blink 1.5s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Metric strip — repo-verifiable numbers only
   ========================================================================== */

.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.metric { padding: 26px 22px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; }
.metric b {
  display: block; font-family: var(--mono); font-size: 1.62rem;
  font-weight: 700; color: var(--ink); letter-spacing: -0.025em; line-height: 1.2;
}
.metric span { display: block; margin-top: 5px; font-size: 0.82rem; color: var(--dim); }
.metrics-note {
  padding: 0 0 22px; font-family: var(--mono); font-size: 0.775rem; color: var(--faint);
}

/* ==========================================================================
   Incident timeline
   ========================================================================== */

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl-col { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.tl-head {
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.79rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.tl-col.bad  .tl-head { color: var(--alert); background: rgba(239, 109, 82, 0.07); }
.tl-col.good .tl-head { color: var(--pass);  background: var(--pass-dim); }
.tl-item {
  display: grid; grid-template-columns: 66px 1fr; gap: 16px;
  padding: 15px 22px; border-top: 1px solid var(--line);
}
.tl-item:first-of-type { border-top: none; }
.tl-time { font-family: var(--mono); font-size: 0.79rem; color: var(--faint); padding-top: 3px; }
.tl-item p { margin: 0; font-size: 0.92rem; color: var(--dim); }
.tl-item p b { color: var(--ink); font-weight: 620; }
.tl-col.bad  .tl-item:last-child p b { color: var(--alert); }
.tl-col.good .tl-item:last-child p b { color: var(--pass); }

/* ==========================================================================
   Reference architecture diagram
   ========================================================================== */

.arch {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: clamp(20px, 3vw, 34px);
  overflow-x: auto;
}
.arch-layer { min-width: 640px; }
.arch-label {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 10px;
}
.arch-row { display: grid; gap: 12px; }
.arch-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.arch-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.arch-box {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 15px 17px;
}
.arch-box.wide { grid-column: 1 / -1; }
.arch-box.brand { border-color: rgba(109, 141, 255, 0.42); background: linear-gradient(180deg, rgba(109, 141, 255, 0.09), transparent); }
.arch-box.proof { border-color: rgba(47, 211, 157, 0.34); background: linear-gradient(180deg, rgba(47, 211, 157, 0.07), transparent); }
.arch-box h4 {
  margin: 0 0 5px; font-size: 0.9rem; font-weight: 650;
  font-family: var(--mono); letter-spacing: -0.005em;
}
.arch-box p { margin: 0; font-size: 0.79rem; color: var(--faint); line-height: 1.55; }
.arch-box .sub { color: var(--dim); }
.arch-flow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-family: var(--mono); font-size: 0.775rem; color: var(--faint);
}
.arch-flow::before { content: "▼"; color: var(--brand); font-size: 0.775rem; }
.arch-flow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.arch-caption {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--dim);
}
.arch-caption b { color: var(--ink); font-weight: 620; }

/* ==========================================================================
   Capability grid
   ========================================================================== */

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 24px; display: flex; flex-direction: column;
}
.cap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cap h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; }
.cap p { margin: 0 0 14px; font-size: 0.89rem; color: var(--dim); }
.cap .cmd {
  margin-top: auto; padding-top: 13px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.79rem; color: var(--faint);
  overflow-wrap: anywhere;
}
.cap .cmd b { color: var(--info); font-weight: 500; }

/* ==========================================================================
   Feature rows with evidence panels
   ========================================================================== */

.feature-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px); align-items: center;
  padding: clamp(34px, 5vw, 54px) 0; border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; padding-top: 0; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { margin: 0 0 14px; font-size: clamp(1.34rem, 2.2vw, 1.78rem); line-height: 1.25; }
.feature-copy p { margin: 0 0 14px; color: var(--dim); max-width: 500px; }
.feature-copy .mini { font-family: var(--mono); font-size: 0.79rem; color: var(--faint); line-height: 1.7; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 20px 22px;
  font-family: var(--mono); font-size: 0.775rem; line-height: 1.75;
}
.panel-title {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.panel .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.panel .row:last-child { border-bottom: none; }
.panel .row em { font-style: normal; color: var(--faint); flex: none; }
.panel .row b { font-weight: 650; text-align: right; }
.ok { color: var(--pass); } .wa { color: var(--warn); } .al { color: var(--alert); } .in { color: var(--info); }

/* ==========================================================================
   Fleet visual
   ========================================================================== */

.fleet-visual { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 26px; }
.dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 7px; }
.dots i { aspect-ratio: 1; border-radius: 2px; background: var(--pass); opacity: 0.8; transition: background 0.5s; }
.dots i.off   { background: #2b3843; opacity: 1; }
.dots i.catch { background: var(--warn); }
.fleet-legend {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px;
  font-family: var(--mono); font-size: 0.775rem; color: var(--dim);
}
.fleet-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; }

/* ==========================================================================
   Failure matrix
   ========================================================================== */

.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cell {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 17px;
  display: flex; flex-direction: column; gap: 9px; min-height: 128px;
}
.cell .status {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--pass);
}
.cell .status::before { content: "● "; }
.cell h4 { margin: 0; font-size: 0.94rem; line-height: 1.35; font-weight: 620; }
.cell p { margin: 0; font-size: 0.795rem; color: var(--faint); line-height: 1.55; }
.matrix-note { margin-top: 22px; font-family: var(--mono); font-size: 0.79rem; color: var(--faint); }
.matrix-note a { color: var(--brand); }

/* ==========================================================================
   Posture list (deployment / security)
   ========================================================================== */

.posture { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 60px); }
.posture-item { padding: 20px 0; border-top: 1px solid var(--line); }
.posture-item:first-child, .posture-item:nth-child(2) { border-top: none; padding-top: 0; }
.posture-item h4 {
  margin: 0 0 7px; font-size: 0.94rem; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
}
.posture-item p { margin: 0; font-size: 0.885rem; color: var(--dim); }
.posture-item .mono { font-family: var(--mono); font-size: 0.79rem; color: var(--faint); display: block; margin-top: 7px; }

/* ==========================================================================
   Evaluation ladder
   ========================================================================== */

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.rung {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 24px; position: relative;
  display: flex; flex-direction: column;
}
.rung .when {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--brand); letter-spacing: -0.02em; line-height: 1;
}
.rung .what { margin: 12px 0 8px; font-size: 1.02rem; font-weight: 650; }
.rung p { margin: 0 0 16px; font-size: 0.87rem; color: var(--dim); }
.rung .cmd {
  margin-top: auto; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.775rem; color: var(--info);
  overflow-wrap: anywhere; line-height: 1.6;
}
.rung .out {
  margin-top: 10px; font-family: var(--mono); font-size: 0.775rem; color: var(--faint);
}

/* ==========================================================================
   Audience cards
   ========================================================================== */

.aud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.aud article {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 26px;
}
.aud .tag-line {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.aud h3 { margin: 0 0 9px; font-size: 1.1rem; }
.aud p { margin: 0 0 12px; color: var(--dim); font-size: 0.9rem; }
.aud .proof-q {
  margin: 0; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 0.83rem; color: var(--faint); font-style: italic;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.road-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface-3);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.road-head h3 { margin: 0; font-size: 1rem; }
.road-col ul { margin: 0; padding: 10px 22px 20px; list-style: none; }
.road-col li {
  padding: 11px 0 11px 20px; border-bottom: 1px dashed var(--line);
  font-size: 0.88rem; color: var(--dim); position: relative;
}
.road-col li:last-child { border-bottom: none; }
.road-col li::before {
  content: "—"; position: absolute; left: 0; color: var(--faint); font-family: var(--mono);
}
.road-col li b { color: var(--ink); font-weight: 620; }
.road-col li.road-research { color: var(--faint); }
.road-col li.road-research b { color: var(--dim); }
.road-col li.road-research .tag { margin-left: 6px; }

/* ==========================================================================
   Comparison band (homepage pointer)
   ========================================================================== */

.compare-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(109, 141, 255, 0.055), transparent), var(--surface);
}
.compare-band-inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(38px, 5vw, 58px) 0;
}
.compare-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.compare-band p { margin: 0; color: var(--dim); max-width: 640px; }
.compare-band .versus {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.compare-band .versus span {
  font-family: var(--mono); font-size: 0.775rem; color: var(--dim);
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px;
}

/* ==========================================================================
   Comparison page specifics
   ========================================================================== */

.page-head { padding: clamp(52px, 7vw, 92px) 0 clamp(30px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 900px; }
.page-head .lede { font-size: 1.1rem; max-width: 760px; margin-bottom: 0; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 22px 26px; margin: 40px 0 0;
}
.toc h2 {
  font-size: 0.775rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 8px; font-size: 0.9rem; break-inside: avoid; }
.toc a { color: var(--dim); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.vs { padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.vs-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.vs-head h2 { margin: 0; font-size: clamp(1.6rem, 2.9vw, 2.2rem); }
.vs-kind {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: 3px; padding: 4px 9px;
}
.vs-verdict {
  margin: 22px 0 30px; padding: 18px 22px;
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2); color: var(--ink); font-size: 1rem;
}
.vs-verdict b { color: var(--brand); }
.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.vs-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 22px 24px; }
.vs-card.theirs { border-color: rgba(232, 178, 63, 0.26); }
.vs-card.ours   { border-color: rgba(47, 211, 157, 0.26); }
.vs-card h3 {
  margin: 0 0 14px; font-size: 0.775rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.vs-card.theirs h3 { color: var(--warn); }
.vs-card.ours h3   { color: var(--pass); }
.vs-card ul { margin: 0; padding: 0; list-style: none; }
.vs-card li {
  padding: 9px 0 9px 20px; border-bottom: 1px dashed var(--line);
  font-size: 0.895rem; color: var(--dim); position: relative;
}
.vs-card li:last-child { border-bottom: none; }
.vs-card li::before { content: "▸"; position: absolute; left: 0; color: var(--faint); font-size: 0.79rem; top: 10px; }
.vs-card li b { color: var(--ink); font-weight: 620; }
.vs-body p { color: var(--dim); max-width: 860px; }
.vs-body p b { color: var(--ink); font-weight: 620; }
.vs-body h4 {
  margin: 30px 0 12px; font-size: 1.02rem; font-weight: 650;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.use-when {
  margin-top: 28px; padding: 20px 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-3);
}
.use-when h4 {
  margin: 0 0 10px; font-size: 0.775rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint);
  border: none; padding: 0;
}
.use-when p { margin: 0 0 10px; font-size: 0.93rem; }
.use-when p:last-child { margin-bottom: 0; }

/* Matrix table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.matrix-table {
  width: 100%; min-width: 940px; border-collapse: collapse;
  font-size: 0.845rem; background: var(--surface-2);
}
table.matrix-table th, table.matrix-table td {
  padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.matrix-table thead th {
  position: sticky; top: 0; background: var(--surface-3);
  font-family: var(--mono); font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line-strong); z-index: 2;
}
table.matrix-table thead th.us { color: var(--pass); }
table.matrix-table tbody th {
  font-weight: 620; color: var(--ink); width: 210px;
  border-right: 1px solid var(--line); background: var(--surface);
}
table.matrix-table td { color: var(--dim); }
table.matrix-table td.us { background: rgba(47, 211, 157, 0.045); color: var(--ink); }
table.matrix-table tbody tr:last-child th,
table.matrix-table tbody tr:last-child td { border-bottom: none; }
.mk { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; }
.mk-y { color: var(--pass); } .mk-p { color: var(--warn); } .mk-n { color: var(--faint); }

/* Honest disclosure */
.disclosure {
  border: 1px solid rgba(239, 109, 82, 0.3); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(239, 109, 82, 0.055), transparent), var(--surface-2);
  padding: clamp(24px, 3.5vw, 38px);
}
.disclosure h2 { margin-top: 0; color: var(--ink); }
.disclosure ul { margin: 0; padding: 0; list-style: none; }
.disclosure li {
  padding: 12px 0 12px 26px; border-bottom: 1px dashed var(--line);
  color: var(--dim); position: relative;
}
.disclosure li:last-child { border-bottom: none; }
.disclosure li::before {
  content: "✕"; position: absolute; left: 0; top: 12px;
  color: var(--alert); font-family: var(--mono); font-size: 0.8rem;
}
.disclosure li b { color: var(--ink); font-weight: 620; }

/* Sources */
.sources { font-size: 0.85rem; color: var(--faint); }
.sources ul { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--dim); }
.sources a:hover { color: var(--brand); }

/* ==========================================================================
   Closing + footer
   ========================================================================== */

.closing {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 62% 82% at 50% 112%, rgba(109, 141, 255, 0.14), transparent), var(--bg);
  padding: clamp(74px, 10vw, 128px) 0;
}
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 5vw, 66px); align-items: start; }
.closing h2 { margin-bottom: 16px; }
.closing .lede { margin-bottom: 30px; }
.partner-terms {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); padding: 24px 26px;
}
.partner-terms h3 {
  margin: 0 0 16px; font-size: 0.775rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.partner-terms dl { margin: 0; }
.partner-terms dt {
  font-family: var(--mono); font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand);
  margin-top: 18px;
}
.partner-terms dt:first-of-type { margin-top: 0; }
.partner-terms dd { margin: 6px 0 0; font-size: 0.885rem; color: var(--dim); }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--faint); font-size: 0.85rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-inner b { color: var(--dim); font-family: var(--mono); font-weight: 600; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--brand); }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo .dot, .dots i.catch, .cursor { animation: none; }
  .dots i { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .metrics-inner { grid-template-columns: repeat(3, 1fr); }
  .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(-n+3) { border-top: none; }
  .metric:nth-child(4) { border-left: none; }
  .legend-inner { grid-template-columns: repeat(2, 1fr); }
  .legend-title { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 980px) {
  .hero-grid, .timeline, .feature-row, .closing-grid,
  .compare-band-inner, .vs-cols, .roadmap { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .posture { grid-template-columns: 1fr; }
  .posture-item:nth-child(2) { border-top: 1px solid var(--line); padding-top: 20px; }
  .dots { grid-template-columns: repeat(16, 1fr); }
  .toc ol { columns: 1; }
  .topnav { display: none; }
}

@media (max-width: 720px) {
  .aud { grid-template-columns: 1fr; }
  .caps, .ladder { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric { border-left: 1px solid var(--line); }
  .metric:nth-child(odd) { border-left: none; }
  .metric:nth-child(-n+2) { border-top: none; }
  .metric:nth-child(3) { border-top: 1px solid var(--line); }
  .console-body { min-height: 420px; font-size: 0.775rem; }
  .console-meta { display: none; }
  .release-pill { display: none; }
  .legend-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   v3.1 — enterprise evaluation surface
   Added 2026-08-31 in response to the enterprise-readiness review.
   Three ideas: four deep claims instead of nine flat cards; an evidence
   table whose empty rows are as legible as its full ones; neutral surfaces
   for ordinary information so status colour keeps meaning something.
   ========================================================================== */

/* ---- Evidence table -------------------------------------------------- */
.evidence { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.evidence-inner { padding: clamp(46px, 6vw, 72px) 0 clamp(38px, 5vw, 56px); }
.evidence h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); max-width: 780px; }
.evidence .lede { margin-bottom: 34px; }

.ev-grid { display: grid; gap: clamp(26px, 4vw, 54px); grid-template-columns: 1fr; }
@media (min-width: 940px) { .ev-grid { grid-template-columns: 1fr 1fr; } }

.ev-col > h3 {
  margin: 0 0 4px; font-family: var(--mono); font-size: 0.79rem;
  font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.ev-col--have > h3 { color: var(--pass); }
.ev-col--gap  > h3 { color: var(--faint); }
.ev-col > p.ev-note { margin: 0 0 20px; font-size: 0.86rem; color: var(--faint); max-width: 46ch; }

.ev-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
@media (min-width: 620px) { .ev-row { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 18px; align-items: baseline; } }
.ev-row:last-child { border-bottom: 1px solid var(--line); }
.ev-row dt { font-size: 0.885rem; color: var(--dim); }
.ev-row dd {
  margin: 0; font-family: var(--mono); font-size: 0.815rem;
  line-height: 1.6; color: var(--ink); overflow-wrap: anywhere;
}
.ev-row dd .qual { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--faint); margin-top: 3px; }
.ev-col--gap .ev-row dd { color: var(--faint); }
.ev-col--gap .ev-row dt { color: var(--faint); }
.ev-foot {
  margin: 26px 0 0; font-family: var(--mono); font-size: 0.775rem;
  color: var(--faint); line-height: 1.7; max-width: 82ch;
}

/* ---- Four claims ------------------------------------------------------ */
.claims { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 30px); margin-top: clamp(34px, 4vw, 52px); }

.claim {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: clamp(24px, 3.2vw, 40px);
}
.claim-num {
  font-family: var(--mono); font-size: 0.79rem; font-weight: 700;
  color: var(--brand); letter-spacing: 0.1em;
}
.claim-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 12px; margin: 8px 0 0;
}
.claim-head h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; font-weight: 640; }
.claim-body { display: grid; gap: clamp(18px, 3vw, 40px); margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .claim-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.claim-body > div { min-width: 0; }
.claim-body > p { margin: 0 0 14px; color: var(--dim); font-size: 0.955rem; }
.claim-body > p:last-of-type { margin-bottom: 0; }

.falsify {
  border-left: 2px solid var(--brand); padding: 2px 0 2px 16px;
  align-self: start; min-width: 0;
}
.falsify h4 {
  margin: 0 0 8px; font-family: var(--mono); font-size: 0.76rem;
  font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint);
}
.falsify p { margin: 0 0 10px; font-size: 0.875rem; color: var(--dim); }
.falsify .cmd {
  display: block; font-family: var(--mono); font-size: 0.795rem;
  color: var(--info); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px; overflow-x: auto;
  white-space: pre; margin: 0 0 8px; max-width: 100%;
}

/* progressive disclosure — the old capability cards live in here */
.claim details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.claim summary {
  cursor: pointer; font-family: var(--mono); font-size: 0.79rem;
  font-weight: 700; color: var(--dim); letter-spacing: 0.04em;
  list-style: none; display: flex; align-items: center; gap: 9px;
}
.claim summary::-webkit-details-marker { display: none; }
.claim summary::before {
  content: "+"; color: var(--brand); font-weight: 700;
  width: 1em; display: inline-block; text-align: center;
}
.claim details[open] summary::before { content: "\2212"; }
.claim summary:hover { color: var(--ink); }
.sub-caps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; }
@media (min-width: 780px) { .sub-caps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sub-cap h5 {
  margin: 0 0 6px; font-size: 0.925rem; font-weight: 640;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px;
}
.sub-cap p { margin: 0 0 8px; font-size: 0.855rem; color: var(--dim); line-height: 1.6; }
.sub-cap .cmd { font-family: var(--mono); font-size: 0.79rem; color: var(--faint); overflow-wrap: anywhere; }

/* ---- Sequence diagram ------------------------------------------------- */
.seq { margin-top: clamp(30px, 4vw, 48px); }
.seq-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: clamp(18px, 2.6vw, 30px);
  overflow-x: auto;
}
.seq-frame svg { display: block; min-width: 720px; width: 100%; height: auto; }
.seq-caption {
  margin: 14px 0 0; font-size: 0.875rem; color: var(--faint);
  max-width: 78ch; line-height: 1.65;
}
.seq-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0;
  font-family: var(--mono); font-size: 0.775rem; color: var(--faint);
}

/* ---- Illustrative-output labelling ------------------------------------ */
.illus {
  display: block; margin: 10px 0 0; font-family: var(--mono);
  font-size: 0.775rem; color: var(--faint); line-height: 1.6;
}
.panel-illus { margin-top: 10px; }

/* ---- Compare hub ------------------------------------------------------ */
.hub { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 720px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block; text-decoration: none; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); transition: border-color 0.15s, background 0.15s;
}
.hub-card:hover { border-color: var(--line-strong); background: var(--surface-3); }
.hub-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 640; }
.hub-card p { margin: 0; font-size: 0.865rem; color: var(--dim); line-height: 1.6; }
.hub-card .verdict {
  display: block; margin-top: 10px; font-family: var(--mono);
  font-size: 0.775rem; color: var(--faint);
}
.hub-card--stop { border-color: rgba(232, 178, 63, 0.3); }
.hub-card--stop h3 { color: var(--warn); }

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ==========================================================================
   launch: narrow-screen console
   The terminal panels are column-aligned monospace. Wrapping them destroys the
   alignment and makes a deliberate artifact look broken, so below the width
   where they fit, they scroll horizontally instead.
   ========================================================================== */
@media (max-width: 720px) {
  .console-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    overscroll-behavior-x: contain;
  }
  .console-body > * { white-space: pre; }
  pre.code, .tablewrap { overflow-x: auto; }
}
.topnav-source { white-space: nowrap; }
.topnav-source::after { content: "\00a0\2197"; font-size: 0.82em; opacity: 0.7; }
.gen-note {
  margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: var(--faint); line-height: 1.7;
}
.tablewrap { overflow-x: auto; }

.muted { color: var(--faint); }

.foot-name {
  display: block; margin-top: 7px; max-width: 46ch;
  font-size: 0.78rem; line-height: 1.7; color: var(--faint);
}
.foot-name a { color: var(--faint); text-decoration: underline;
               text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.foot-name a:hover { color: var(--brand); }
