/* ══════════════════════════════════════════════════════════════════
   Harness Bay — harnessbay.com

   Palette is lifted from the app's own design tokens (src/styles/tokens.css):
   warm near-blacks, one warm-stone accent, a soft signal blue for live cues,
   and the muted agent identity colors. The site should feel like the product,
   not like a different company's landing page.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* surfaces — warm near-blacks, matching the app */
  --bg: #131211;
  --bg-2: #171614;
  --bg-3: #1c1a18;
  --panel: #211f1d;
  --panel-2: #282624;
  --input: #1a1918;

  --border: #2d2a27;
  --border-soft: #262421;
  --border-hi: #3a3733;

  --text-1: #ece9e3;
  --text-2: #a39d93;
  --text-3: #6f6a62;

  --accent: #e0dbd3;
  --accent-soft: rgba(224, 219, 211, 0.12);
  --signal: #8ec8e0;
  --signal-soft: rgba(142, 200, 224, 0.14);
  --ok: #7fa87c;
  --warn: #cba55e;
  --danger: #c0705f;

  /* agent identity (app dark theme values) */
  --a-claude: #8d87a3;
  --a-codex: #7d9c8f;
  --a-cursor: #8295ab;
  --a-hermes: #a3839a;
  --a-openclaw: #ab8a76;
  --a-zcode: #a3937b;
  --a-grok: #8a8a8a;
  --a-opencode: #7f9ea8;
  --a-kimi: #6e8fb8;

  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); font-feature-settings: "ss01"; }
em { font-style: normal; }
::selection { background: rgba(224, 219, 211, 0.22); }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 400;
  background: var(--accent); color: #17150f;
  padding: 10px 16px; border-radius: var(--r-s);
  font-weight: 600; text-decoration: none;
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* ─────────── type scale ─────────── */
h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
}
.h1-accent {
  background: linear-gradient(96deg, var(--a-kimi), var(--a-codex) 46%, var(--a-zcode));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 700;
}
h3 { font-size: 1.09rem; font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: 0.97rem; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-soft);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(142, 200, 224, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(142, 200, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 200, 224, 0); }
}

.lede, .section-lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-2);
  max-width: 63ch;
}
.lede em, .section-lede em { color: var(--text-1); font-style: italic; }

/* ─────────── buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #17150f;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  padding: 11px 20px; border-radius: var(--r-m);
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-small { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--border-hi); }
.btn-ghost:hover { background: rgba(255,252,245,0.05); color: var(--text-1); box-shadow: none; }

/* ─────────── nav ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; gap: 26px;
  padding: 13px 28px;
  background: rgba(19, 18, 17, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms ease;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text-1); }
.nav-logo { border-radius: 6px; }
.nav-word { font-weight: 700; font-size: 16px; letter-spacing: -0.014em; }
.nav-ver {
  font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 7px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  transition: color 130ms ease;
}
.nav-links a:hover { color: var(--text-1); }

/* ─────────── hero ─────────── */
.hero {
  padding: 150px 28px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(110, 143, 184, 0.10), transparent 72%);
  pointer-events: none;
}
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-meta { font-size: 12px; color: var(--text-3); letter-spacing: 0.03em; }

/* ─────────── converge diagram ─────────── */
.converge {
  margin: 74px 0 0;
  display: grid;
  grid-template-columns: minmax(140px, 176px) minmax(90px, 1fr) auto minmax(70px, 0.7fr) minmax(150px, 190px);
  align-items: center;
  gap: 0;
}
.cv-agents { list-style: none; display: grid; gap: 8px; }
.cv-agents li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.cv-lines, .cv-out { width: 100%; height: 420px; overflow: visible; }
.cv-lines path, .cv-out path {
  stroke: var(--border-hi);
  stroke-width: 1.25;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.5s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
.cv-out path { stroke: var(--a-codex); opacity: 0.55; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.cv-hub { display: grid; justify-items: center; gap: 5px; padding: 0 6px; }
.cv-hub img {
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border-hi), 0 14px 40px rgba(0,0,0,0.55),
              0 0 60px rgba(110, 143, 184, 0.16);
}
.cv-hub span { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; }
.cv-hub em { font-size: 10.5px; color: var(--text-3); }

.cv-out-labels { list-style: none; display: grid; gap: 24px; }
.cv-out-labels li { display: grid; }
.cv-out-labels strong { font-size: 13.5px; font-weight: 600; }
.cv-out-labels span { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }

/* ─────────── agent mark chips ───────────
   Marks are generated from the app's AgentMarks.tsx by tools/build-marks.mjs.
   Single-path vendor marks are applied as a CSS mask so they can take the
   agent's identity color. Marks that are multi-tone by design (Kimi's blue/
   white K, the OpenClaw pixel lobster, the Hermes app icon) are <img> and keep
   the vendor's real colors — recoloring them would misrepresent the mark. */
.mark-chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--c, var(--text-3)) 17%, transparent);
  color: var(--c, var(--text-2));
  overflow: hidden;
}
.mark-chip .mk {
  width: 62%; height: 62%;
  background: currentColor;
  -webkit-mask: var(--mk) no-repeat center / contain;
  mask: var(--mk) no-repeat center / contain;
}
.mark-chip img { width: 68%; height: 68%; display: block; }
/* Marks that already read as a finished tile fill it edge to edge. */
.mark-chip.full { background: none; }
.mark-chip.full img { width: 100%; height: 100%; border-radius: inherit; }
.mark-chip.own { background: color-mix(in srgb, var(--c) 13%, var(--panel-2)); }
.mark-chip.lg { width: 30px; height: 30px; border-radius: 7px; }
.mark-chip.sm { width: 18px; height: 18px; border-radius: 4px; }

/* ─────────── interactive app demo ─────────── */
.demo-wrap { max-width: var(--maxw); margin: 0 auto; padding: 96px 28px 20px; }
.demo-head { margin-bottom: 30px; }
.demo-head h2 { margin-bottom: 14px; }

.appwin {
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,252,245,0.03);
}
.appwin-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
}
.tl { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.tl.r { background: #d05b52; } .tl.y { background: #cba55e; } .tl.g { background: #7fa87c; }
.appwin-title {
  margin-left: 12px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.demo-tag {
  margin-left: auto; font-size: 10px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px;
}

.appwin-body {
  display: grid;
  grid-template-columns: 178px 268px 1fr;
  height: 560px;
  font-size: 13px;
  line-height: 1.5;
}

/* sidebar */
.hb-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border-soft);
  padding: 10px 8px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.hb-nav { display: grid; gap: 1px; margin-bottom: 14px; }
.hb-navitem {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: default;
  font: inherit; font-size: 12.5px; color: var(--text-2);
  text-align: left; padding: 6px 8px; border-radius: var(--r-s);
  width: 100%;
}
.hb-navitem.on { background: rgba(255,252,245,0.07); color: var(--text-1); font-weight: 600; }
.hb-navitem svg { flex: none; opacity: 0.75; }

.hb-label {
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 8px 6px;
}
.hb-clear {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--signal);
}
.hb-machine {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--text-3);
  padding: 7px 8px 3px;
}
.hb-machine::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.hb-agent {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text-2);
  text-align: left; padding: 5px 8px; border-radius: var(--r-s);
  transition: background 120ms ease, color 120ms ease;
}
.hb-agent:hover { background: rgba(255,252,245,0.05); color: var(--text-1); }
.hb-agent.on { background: rgba(255,252,245,0.09); color: var(--text-1); font-weight: 600; }
.hb-agent .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-agent .ct { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.hb-agent .ro {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em;
  color: var(--text-3); border: 1px solid var(--border); border-radius: 3px;
  padding: 0 3px;
}

.hb-proj {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-2); padding: 5px 8px;
}
.hb-proj em { font-family: var(--mono); font-size: 10px; color: var(--text-3); }

.hb-side-foot {
  margin-top: auto; padding: 10px 8px 2px;
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; color: var(--text-3);
  border-top: 1px solid var(--border-soft);
}
.hb-dot-live {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); margin-left: auto;
}

/* inbox list */
.hb-list {
  background: var(--bg-3);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hb-list-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 12px 8px;
}
.hb-list-head strong { font-size: 14px; }
.hb-list-sub { font-size: 10px; color: var(--text-3); margin-left: auto; }
.hb-search {
  display: flex; align-items: center; gap: 7px;
  margin: 0 12px 8px;
  background: var(--input); border: 1px solid var(--border-soft);
  border-radius: var(--r-s); padding: 6px 9px;
  font-size: 12px; color: var(--text-3);
}
.hb-chips { display: flex; gap: 5px; padding: 0 12px 10px; }
.hb-chip {
  font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px;
}
.hb-chip.on { color: var(--text-2); border-color: var(--border-hi); }

.hb-rows { list-style: none; overflow-y: auto; flex: 1; padding: 0 6px 10px; }
.hb-group {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); padding: 8px 6px 5px;
}
.hb-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  width: 100%;
  background: none; border: 0; cursor: pointer;
  font: inherit; text-align: left;
  padding: 8px; border-radius: var(--r-s);
  transition: background 120ms ease;
}
.hb-row:hover { background: rgba(255,252,245,0.045); }
.hb-row.on { background: rgba(255,252,245,0.085); }
.hb-row-t {
  font-size: 12.5px; font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 2px;
}
.hb-row-m {
  font-size: 10.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.hb-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em;
  border-radius: 3px; padding: 1px 4px;
}
.hb-badge.attn { color: var(--warn); background: rgba(203,165,94,0.14); }
.hb-badge.live { color: var(--signal); background: var(--signal-soft); }
.hb-badge.done { color: var(--ok); background: rgba(127,168,124,0.13); }
.hb-badge.ide  { color: var(--text-3); border: 1px solid var(--border); }
.hb-empty { padding: 24px 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* conversation */
.hb-conv { background: var(--panel); display: flex; flex-direction: column; overflow: hidden; }
.hb-conv-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.conv-mark { display: inline-flex; flex: none; }
.hb-conv-id { min-width: 0; }
.hb-conv-id strong {
  display: block; font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hb-conv-id span { font-size: 10.5px; color: var(--text-3); }
.hb-tabs { display: flex; gap: 2px; margin-left: auto; flex: none; }
.hb-tabs button {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--text-3);
  padding: 4px 9px; border-radius: var(--r-s);
  transition: background 120ms ease, color 120ms ease;
}
.hb-tabs button:hover { color: var(--text-2); background: rgba(255,252,245,0.05); }
.hb-tabs button.on { color: var(--text-1); background: rgba(255,252,245,0.09); font-weight: 600; }

.hb-conv-body { flex: 1; overflow-y: auto; padding: 14px; }

.t-user, .t-agent { font-size: 12.5px; margin-bottom: 12px; }
.t-user {
  background: var(--panel-2); border-radius: 9px;
  padding: 8px 11px; margin-left: auto; max-width: 78%; width: fit-content;
}
.t-agent { color: var(--text-2); max-width: 92%; }
.t-agent strong { color: var(--text-1); font-weight: 600; }
.t-agent code, .t-user code {
  font-family: var(--mono); font-size: 11px;
  background: rgba(255,252,245,0.06); border-radius: 3px; padding: 1px 4px;
}
.t-who {
  display: block; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 4px;
}
.t-think {
  font-size: 11.5px; color: var(--text-3); font-style: italic;
  border-left: 2px solid var(--border-hi); padding: 2px 0 2px 9px;
  margin-bottom: 12px;
}
.t-act {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  background: var(--bg-3); border: 1px solid var(--border-soft);
  border-radius: var(--r-s); padding: 6px 9px; margin-bottom: 8px;
}
.t-act .k {
  font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); flex: none;
}
.t-act .out { margin-left: auto; color: var(--ok); flex: none; }
.t-limit {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: var(--warn);
  background: rgba(203,165,94,0.08); border: 1px solid rgba(203,165,94,0.22);
  border-radius: var(--r-s); padding: 7px 10px; margin-bottom: 12px;
}
.t-limit .mono { font-size: 10.5px; }
.t-foot { font-family: var(--mono); font-size: 10px; color: var(--text-3); }

/* browser + terminal workspace tabs */
.ws-url {
  display: flex; align-items: center; gap: 8px;
  background: var(--input); border: 1px solid var(--border-soft);
  border-radius: var(--r-s); padding: 6px 10px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
}
.ws-url .dots { display: flex; gap: 4px; color: var(--text-3); }
.ws-page {
  border: 1px solid var(--border-soft); border-radius: var(--r-s);
  background: var(--bg-3); padding: 26px 18px; text-align: center;
  margin-bottom: 12px;
}
.ws-page h4 { font-size: 15px; margin-bottom: 6px; }
.ws-page p { font-size: 11.5px; color: var(--text-3); }
.ws-hint { font-size: 11.5px; color: var(--text-3); }
.ws-term {
  font-family: var(--mono); font-size: 11.5px;
  background: #131211; border: 1px solid var(--border-soft);
  border-radius: var(--r-s); padding: 11px 12px;
  display: grid; gap: 4px; margin-bottom: 12px;
}
.ws-term .p { color: var(--text-3); }
.ws-term .ok { color: var(--ok); }
.ws-term .cur {
  display: inline-block; width: 7px; background: var(--text-2);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* composer */
.hb-composer {
  border-top: 1px solid var(--border-soft);
  padding: 11px 14px;
  background: var(--panel);
}
.hb-input {
  background: var(--input); border: 1px solid var(--border-soft);
  border-radius: var(--r-m); padding: 9px 11px;
  font-size: 12px; color: var(--text-3);
}
.hb-input-row {
  display: flex; align-items: center; gap: 7px;
  margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--text-3);
}
.hb-pill {
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px;
}
.hb-send { margin-left: auto; }
.hb-readonly {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--bg-3); border: 1px solid var(--border-soft);
  border-radius: var(--r-m); padding: 10px 12px;
  font-size: 11.5px; color: var(--text-2);
}
.hb-readonly strong { color: var(--text-1); display: block; font-size: 12px; margin-bottom: 2px; }
.hb-readonly .eye { color: var(--text-3); flex: none; margin-top: 2px; }

.demo-note {
  margin-top: 16px; font-size: 12px; color: var(--text-3); max-width: 70ch;
}

/* ─────────── generic sections ─────────── */
.section { padding: 104px 28px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section h2 { margin-bottom: 18px; }
.section .section-lede { margin-bottom: 46px; }

/* the jam */
.jam { list-style: none; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.jam li {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.jam-n { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.jam strong { display: block; font-size: 1.02rem; margin-bottom: 7px; }
.jam p { font-size: 14.5px; color: var(--text-2); }

/* four verbs */
.verbs { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-l); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
.verb { background: var(--bg); padding: 26px 24px; }
.verb header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.verb h3 { font-size: 1.22rem; }
.verb-count {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--signal); background: var(--signal-soft);
  border-radius: 20px; padding: 3px 9px; white-space: nowrap;
}
.verb p { font-size: 14.5px; color: var(--text-2); }

/* capability matrix */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-l); }
.matrix { width: 100%; border-collapse: collapse; min-width: 620px; }
.matrix th, .matrix td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.matrix thead th {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); vertical-align: bottom;
  border-bottom-color: var(--border);
}
.matrix thead th em {
  display: block; font-family: var(--mono);
  font-size: 9.5px; font-weight: 400; letter-spacing: 0.04em;
  color: var(--text-3); margin-top: 3px;
}
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: rgba(255,252,245,0.022); }
.matrix tbody th {
  font-weight: 600; font-size: 14px;
}
.m-agent { display: flex; align-items: center; gap: 10px; }
.m-agent .sub {
  display: block; font-family: var(--mono);
  font-size: 9.5px; font-weight: 400; color: var(--text-3); letter-spacing: 0.03em;
}
.matrix td { width: 15%; }
.cell-yes, .cell-no { display: inline-block; }
.cell-yes {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(127,168,124,0.16);
  position: relative;
}
.cell-yes::after {
  content: ""; position: absolute; inset: 0;
  background: no-repeat center / 9px 9px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fa87c' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
}
.cell-no { width: 15px; height: 1.5px; background: var(--border-hi); vertical-align: middle; }
.matrix-foot {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 16px; font-size: 12px; color: var(--text-3);
}
.mfk { display: inline-flex; align-items: center; gap: 8px; }

/* workbench cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--r-l); padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.card-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-m);
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 15px;
}
.card h3 { margin-bottom: 7px; }
.card p { font-size: 14.5px; color: var(--text-2); }

/* unreachable-machine example */
.unreach { margin-top: 46px; }
.unreach-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.unreach-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 15px 18px;
  max-width: 620px;
}
.ub-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
/* Flex containers here mix a status dot with a run of prose. The prose must be
   wrapped in one element and allowed to grow — bare text nodes would each
   become their own flex item and stack into narrow columns. */
.ub-head > span:last-child,
.honest-quote > span:last-child,
.t-limit > span:last-child { flex: 1; min-width: 0; }
.ub-head em { color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.ub-warn {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--danger);
}
.ub-line { font-size: 12.5px; color: var(--text-2); }
.ub-line.dim { color: var(--text-3); }
.ub-line.skip { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* trust spec */
.spec { border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; }
.spec-row {
  display: grid; grid-template-columns: 230px 1fr; gap: 22px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(odd) { background: rgba(255,252,245,0.014); }
.spec-row span { font-size: 13px; color: var(--text-3); }
.spec-row strong { font-size: 14px; font-weight: 500; color: var(--text-1); }
.spec-row .mono { font-size: 12.5px; color: var(--text-2); }

.honest {
  margin-top: 40px;
  border: 1px solid var(--border); border-left: 2px solid var(--warn);
  border-radius: var(--r-m);
  padding: 22px 24px;
  max-width: 720px;
}
.honest h3 { margin-bottom: 9px; }
.honest p { font-size: 14px; color: var(--text-2); }
.honest-quote {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 14px 0;
  background: rgba(203,165,94,0.07); border-radius: var(--r-s);
  padding: 11px 13px;
  font-size: 13px !important; color: var(--warn) !important;
}
.honest-quote .mono { font-size: 12px; }
.honest-quote .ub-warn { margin-top: 7px; }
.honest-tail { font-size: 13px !important; color: var(--text-3) !important; }

/* download */
.release { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.release-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 24px;
}
.release-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.release-icon { border-radius: 15px; flex: none; }
.release-id { flex: 1; }
.release-id h3 { font-size: 1.2rem; margin-bottom: 4px; }
.release-meta { font-size: 13px; color: var(--text-2); }
.release-file { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.release-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ok); background: rgba(127,168,124,0.13);
  border-radius: 20px; padding: 3px 9px; flex: none;
}
.rt {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 9px 16px; margin: 18px 0 0;
}
.rt li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.tick {
  width: 14px; height: 14px; flex: none;
  background: no-repeat center / 11px 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fa87c' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
}
.verify { margin-top: 20px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.verify-toggle {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.verify-toggle:hover { color: var(--text-1); }
.verify-toggle span {
  font-family: var(--mono); font-size: 14px; color: var(--text-3);
}
.verify-body { margin-top: 12px; }
.verify-body p { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.verify-body pre {
  background: var(--bg-3); border: 1px solid var(--border-soft);
  border-radius: var(--r-s); padding: 11px 13px;
  overflow-x: auto; font-size: 11.5px; color: var(--text-2);
  line-height: 1.7;
}
.verify-link { font-size: 12.5px; color: var(--signal); text-decoration: none; display: inline-block; margin-top: 10px; }
.verify-link:hover { text-decoration: underline; }

.release-side { display: grid; gap: 14px; }
.side-card {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--r-m); padding: 18px;
}
.side-card h4 { margin-bottom: 6px; }
.side-card p { font-size: 13px; color: var(--text-2); margin-bottom: 11px; }
.side-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px;
}
.side-tag.ok { color: var(--ok); border-color: rgba(127,168,124,0.3); }

/* footer */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 28px 30px; background: var(--bg-2); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { font-size: 14.5px; }
.footer-brand p { font-size: 12.5px; color: var(--text-3); }
.footer-meta {
  margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: 12.5px; color: var(--text-3);
}
.footer-meta a { color: var(--text-2); text-decoration: none; }
.footer-meta a:hover { color: var(--text-1); text-decoration: underline; }
.footer-legal {
  max-width: var(--maxw); margin: 26px auto 0;
  font-size: 11px; color: var(--text-3); line-height: 1.6;
}

/* ─────────── reveal on scroll ─────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cv-lines path, .cv-out path { animation: none; stroke-dashoffset: 0; }
  .pulse { animation: none; }
  .ws-term .cur { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ─────────── responsive ─────────── */
@media (max-width: 1080px) {
  .appwin-body { grid-template-columns: 164px 240px 1fr; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { padding-top: 122px; }
  .jam { grid-template-columns: 1fr; gap: 4px; }
  .jam li { padding-block: 16px; }
  .verbs, .cards, .release { grid-template-columns: 1fr; }
  .release-side { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }

  /* diagram collapses to a labelled grid — the lines stop carrying meaning */
  .converge { grid-template-columns: 1fr; gap: 26px; margin-top: 56px; }
  .cv-lines, .cv-out { display: none; }
  .cv-agents { grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
  .cv-hub { justify-items: start; }
  .cv-out-labels { gap: 14px; }

  /* the three-pane window can't compress honestly — show the two that matter */
  .appwin-body { grid-template-columns: 1fr; height: auto; }
  .hb-side { display: none; }
  .hb-list { border-right: 0; border-bottom: 1px solid var(--border-soft); max-height: 300px; }
  .hb-conv-body { min-height: 280px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 74px 20px; }
  .hero { padding: 108px 20px 30px; }
  .demo-wrap { padding: 74px 20px 20px; }
  .nav { padding: 11px 18px; gap: 14px; }
  .cta .btn { width: 100%; }
  .release-side { grid-template-columns: 1fr; }
  .rt { grid-template-columns: 1fr; }
  .cv-agents { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
}
