/* biome-ignore-all lint/style/noDescendingSpecificity: sections are grouped by component, not by specificity */
/*
 * The landing page (#35). Layout and type after surninsynergy.com: a cool grey ground, hairline
 * column rules, frosted panels, wide heavy caps. The dark theme uses the web app's dark palette.
 * Every section is one headline, one line of copy and one live mock that shows the claim.
 * No inline style or script: the CSP in _headers allows same-origin files only.
 */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800 900;
  font-stretch: 125%;
  font-display: swap;
  src: url("/fonts/archivo-wide-latin.woff2") format("woff2");
}
:root {
  --ground: #dfe2eb;
  --panel: rgba(255, 255, 255, 0.45);
  --glow: rgba(255, 255, 255, 0.45);
  --shadow: rgba(20, 24, 40, 0.3);
  --panel-solid: #f4f5f8;
  --rule: rgba(49, 50, 51, 0.1);
  --ink: #313233;
  --muted: #5f6166;
  --on-accent: #ffffff;
  --ink-inverse: #f5f6f9;
  --tile: #313233;
  --logo-filter: brightness(0) opacity(0.82);
  --agent: #4b5bd6;
  --agent-soft: rgba(75, 91, 214, 0.12);
  --ok: #2f8a5b;
  --bad: #c0453a;
  --warn: #b5651d;
  --term: #1d1f24;
  --term-ink: #d9dce4;
  --term-dim: #8a8f9c;
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(20, 24, 40, 0.08);
  --tag: #eef0f3;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: oklch(0.18 0.004 264);
    --glow: oklch(1 0 0 / 3%);
    --shadow: rgba(0, 0, 0, 0.5);
    --panel: oklch(0.215 0.005 264);
    --panel-solid: oklch(0.26 0.006 264);
    --rule: oklch(1 0 0 / 10%);
    --ink: oklch(0.95 0.003 264);
    --muted: oklch(0.74 0.008 264);
    --ink-inverse: oklch(0.22 0.004 264);
    --tile: oklch(0.26 0.006 264);
    --on-accent: oklch(0.22 0.004 264);
    --logo-filter: none;
    --agent: oklch(0.82 0.08 230);
    --agent-soft: oklch(0.82 0.08 230 / 14%);
    --ok: #5cc28c;
    --bad: #ef7d72;
    --warn: #e0a060;
    --term: oklch(0.14 0.004 264);
    --term-ink: oklch(0.93 0.004 264);
    --term-dim: oklch(0.72 0.008 264);
    --card: oklch(0.26 0.006 264);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
    --tag: oklch(1 0 0 / 7%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: oklch(0.18 0.004 264);
  --glow: oklch(1 0 0 / 3%);
  --shadow: rgba(0, 0, 0, 0.5);
  --panel: oklch(0.215 0.005 264);
  --panel-solid: oklch(0.26 0.006 264);
  --rule: oklch(1 0 0 / 10%);
  --ink: oklch(0.95 0.003 264);
  --muted: oklch(0.74 0.008 264);
  --ink-inverse: oklch(0.22 0.004 264);
  --tile: oklch(0.26 0.006 264);
  --on-accent: oklch(0.22 0.004 264);
  --logo-filter: none;
  --agent: oklch(0.82 0.08 230);
  --agent-soft: oklch(0.82 0.08 230 / 14%);
  --ok: #5cc28c;
  --bad: #ef7d72;
  --warn: #e0a060;
  --term: oklch(0.14 0.004 264);
  --term-ink: oklch(0.93 0.004 264);
  --term-dim: oklch(0.72 0.008 264);
  --card: oklch(0.26 0.006 264);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
  --tag: oklch(1 0 0 / 7%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  background-image: radial-gradient(1100px 560px at 75% -10%, var(--glow), transparent 70%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--ground);
}
a {
  color: inherit;
}
code {
  font-family: var(--f-mono);
  font-size: 0.9em;
}
:focus-visible {
  outline: 2px solid var(--agent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  position: relative;
}
.rules {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 4% 1fr 1fr 1fr 4%;
}
.rules span {
  border-left: 1px solid var(--rule);
}
.rules span:last-child {
  border-right: 1px solid var(--rule);
}

.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-size: clamp(28px, 4.2vw, 50px);
}
.lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
  font-size: 17px;
}
.eyebrow {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  text-decoration: none;
}
.ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex: none;
}
.chip .ico {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 6px;
  font: 500 15px var(--f-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark {
  background: var(--ink);
  color: var(--ink-inverse);
}
.btn-dark:hover {
  opacity: 0.88;
}
.btn-ghost {
  background: var(--panel);
  border-color: var(--rule);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--muted);
}
.gh {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* header */
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 74%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo .tile {
  display: grid;
  place-items: center;
}
.logo .tile img {
  width: 30px;
  height: 30px;
  display: block;
  filter: var(--logo-filter);
}
.logo .w {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}
nav.links {
  display: flex;
  gap: 30px;
}
nav.links a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}
nav.links a:hover {
  color: var(--ink);
}
.hdr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 900px) {
  nav.links {
    display: none;
  }
}
.theme-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--muted);
}
.theme-btn .ico {
  width: 18px;
  height: 18px;
}
.theme-btn .moon {
  display: none;
}
.is-dark .theme-btn .sun {
  display: none;
}
.is-dark .theme-btn .moon {
  display: block;
}
@media (max-width: 480px) {
  .hdr-actions .btn-ghost {
    display: none;
  }
  .hdr-actions .btn-dark .gh-lbl {
    display: none;
  }
  .hdr-actions .btn-dark {
    padding: 10px 12px;
  }
}

section {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
section > .wrap {
  padding-block: clamp(56px, 8vw, 104px);
}
.sec {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.sec.flip {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}
.sec.flip .txt {
  order: 2;
}
.txt {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 900px) {
  .sec,
  .sec.flip {
    grid-template-columns: 1fr;
  }
  .sec.flip .txt {
    order: 0;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -34px var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.panel-head b {
  color: var(--ink);
  font-weight: 600;
}

/* bento + wide sections */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 28px;
}
/* both cells share the rows: headlines line up, panels end level */
.bento .cell {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
}
.bento .cell > .panel {
  display: flex;
  flex-direction: column;
}
.bento .cell > .panel > :last-child {
  margin-top: auto;
}
.soon {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px dashed currentColor;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .bento .cell {
    grid-row: auto;
    grid-template-rows: none;
    gap: 22px;
  }
}
/* split sections share one height, so the page keeps a steady rhythm */
@media (min-width: 901px) {
  .wrap.sec:not(.wide) {
    min-height: calc(480px + 2 * clamp(56px, 8vw, 104px));
  }
}
.sec.wide {
  grid-template-columns: minmax(0, 1fr);
}
.sec.wide .txt {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(28px, 5vw, 64px);
}
.sec.wide .txt .eyebrow,
.sec.wide .txt .h2 {
  grid-column: 1;
}
.sec.wide .txt .lede,
.sec.wide .txt .facts {
  grid-column: 2;
}
.sec.wide .txt .h2 {
  grid-row: 2 / span 2;
  align-self: start;
}
@media (max-width: 900px) {
  .sec.wide .txt {
    grid-template-columns: 1fr;
  }
  .sec.wide .txt > .eyebrow,
  .sec.wide .txt > .h2,
  .sec.wide .txt > .lede,
  .sec.wide .txt > .facts {
    grid-column: 1;
    grid-row: auto;
  }
}
.sec.wide .iso svg {
  max-height: 300px;
}
section {
  scroll-margin-top: 72px;
}
@media (max-width: 600px) {
  .rules span:nth-child(2),
  .rules span:nth-child(3),
  .rules span:nth-child(4) {
    border-left: 0;
  }
  .hero .ctas .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- HERO ---------- */
.hero .wrap {
  padding-block: clamp(28px, 3.5vw, 44px) clamp(40px, 6vw, 72px);
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(34px, 5.8vw, 92px);
}
.hero h1 .l2 {
  display: block;
  padding-left: 1.1em;
}
.hero h1 .ol {
  color: var(--agent);
}
.works {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.works b {
  color: var(--ink);
  font-weight: 500;
}
.hero-side {
  display: grid;
  gap: 18px;
  max-width: 400px;
  justify-items: start;
}
.hero-side .lede {
  font-size: 17px;
  color: var(--ink);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: 1fr;
  }
  .hero h1 .l2 {
    padding-left: 0.6em;
  }
}

/* the agent's Claude Code session, a desktop app window over the board */
.cc {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 370px;
  height: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  font: 13px / 1.5 var(--f-body);
  box-shadow:
    0 0 0 1px var(--rule),
    0 40px 70px -28px rgba(10, 12, 20, 0.45);
}
.cc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--ground) 55%, var(--card));
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.cc-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}
.cc-bar span {
  flex: 1;
  text-align: center;
  margin-right: 42px;
}
.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.cc-head b {
  font-weight: 600;
}
.cc-mcp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.cc-mcp i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.cc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px 8px;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 28px);
}
.cc-log {
  display: grid;
  gap: 8px;
}
.cc-user {
  justify-self: end;
  max-width: 80%;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--tag);
}
.cc-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.cc-say {
  line-height: 1.45;
}
.cc-ok,
.cc .ok {
  color: var(--ok);
}
.cc-think {
  color: #d97757;
  font-size: 12.5px;
}
.cc-spin {
  display: inline-block;
  animation: spin 1.4s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cc-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 12px 12px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.cc-compose b {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ink-inverse);
  font-size: 13px;
}
.pop {
  animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes pop {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* board mock */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.col {
  background: color-mix(in srgb, var(--ground) 55%, transparent);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 250px;
}
.col h4 {
  margin: 0;
  font: 600 12px var(--f-body);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 2px 2px 0;
}
.card {
  background: var(--panel-solid);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.35;
  display: grid;
  gap: 7px;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    opacity 0.35s,
    filter 0.35s;
}
.card .key {
  font: 500 11px var(--f-mono);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.card .by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.card.agent {
  border-color: color-mix(in srgb, var(--agent) 50%, transparent);
  box-shadow: 0 0 0 3px var(--agent-soft);
}
.card.agent .by {
  color: var(--agent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.lbl {
  font: 500 10px var(--f-body);
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--rule);
  color: var(--muted);
}
.presence {
  display: flex;
}
.presence i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--panel-solid);
  margin-left: -6px;
  display: grid;
  place-items: center;
  font: 600 10px var(--f-body);
  font-style: normal;
  color: #fff;
}
.presence i.ai,
.seg .av.ai {
  color: var(--on-accent);
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: all 0.35s;
  background: var(--tile);
  color: #f5f6f9;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* hero: the app window, drawn like the Board screen on the design canvas */
.app {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  overflow: hidden;
}
.app-side {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.as-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font: 800 10px var(--f-display);
  font-stretch: 125%;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.as-logo img {
  filter: var(--logo-filter);
}
.as-org {
  padding: 0 6px;
  font-weight: 600;
  color: var(--ink);
}
.as-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.as-label {
  padding: 0 8px 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.as-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.as-item .ico {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}
.as-item b {
  margin-left: auto;
  font: 500 11px var(--f-mono);
  color: var(--muted);
  transition: color 0.3s;
}
.as-item.on {
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  font-weight: 600;
}
.as-item .k {
  width: 26px;
  font: 500 10px var(--f-mono);
  color: var(--muted);
}
.adot {
  width: 6px;
  height: 6px;
  margin: 0 8px 0 4px;
  border-radius: 50%;
  background: var(--agent);
  flex: none;
}
.adot.off {
  background: none;
  border: 1px solid var(--muted);
}
.as-item.busy .adot {
  animation: beat 1.2s infinite;
}
.as-item.busy b {
  color: var(--agent);
}
@keyframes beat {
  50% {
    box-shadow: 0 0 0 4px var(--agent-soft);
  }
}

.app-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs .here {
  color: var(--ink);
}
.crumbs .presence {
  margin-left: auto;
}
.crumbs .tool,
.app-tabs .tools span {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.app-title {
  padding: 18px 24px 0;
}
.app-title h3 {
  margin: 0;
  font: 700 26px / 1.2 var(--f-body);
  letter-spacing: -0.01em;
}
.app-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px 24px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.app-tabs > span:not(.tools) {
  padding: 8px 8px 7px;
  border-bottom: 2px solid transparent;
}
.app-tabs > span.on {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
.app-tabs .tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 4px;
}
.app-tabs .tools .new {
  margin-left: 4px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 500;
}
.bboard {
  overflow-x: auto;
  padding: 14px 24px 64px;
  scrollbar-width: none;
}
.bcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  align-items: start;
}
.bcol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 250px;
}
.colhead {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--tag);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.sc {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.sc-prog {
  background: linear-gradient(90deg, var(--muted) 50%, transparent 50%);
}
.sc-rev {
  background: conic-gradient(var(--muted) 0 75%, transparent 0);
}
.tcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  transition: box-shadow 0.3s;
}
.tcard .props {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.tcard .key {
  font: 500 10.5px var(--f-mono);
}
.tcard .p {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--tag);
  color: var(--ink);
}
.tcard .who {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tcard.agent .who {
  color: var(--agent);
}
.tcard.live {
  box-shadow:
    var(--card-shadow),
    0 0 0 1.5px color-mix(in srgb, var(--agent) 55%, transparent);
}
.tcard.live .who::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent);
  animation: beat 1.2s infinite;
}
.tcard.lifted {
  box-shadow: 0 14px 28px -10px var(--shadow);
}
.tcard .who.swap {
  animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.on {
  opacity: 1;
}
.cursor svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
  stroke: var(--ground);
  stroke-width: 1.2;
}
.cursor span {
  margin-top: 12px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #c26a3d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.stage {
  position: relative;
  padding-bottom: 120px;
}
.stage .app {
  margin-right: 120px;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-side {
    display: none;
  }
  .stage .app {
    margin-right: 90px;
  }
  .cc {
    width: 340px;
  }
}
@media (max-width: 820px) {
  .stage {
    padding-bottom: 0;
  }
  .stage .app {
    margin-right: 0;
  }
  .cc {
    position: relative;
    width: auto;
    margin: -56px 10px 0 22px;
  }
  .app-title,
  .bboard {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-tabs {
    margin-inline: 16px;
  }
  .app-tabs .tools span:not(.new) {
    display: none;
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.pillar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
}
.pillar + .pillar {
  border-left: 1px solid var(--rule);
}
.pillar .n {
  width: 30px;
  height: 30px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.pillar .n .ico {
  width: 15px;
  height: 15px;
}
.pillar span.s {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}
.pillar:hover .n {
  background: var(--tile);
  color: #f5f6f9;
  border-color: var(--tile);
}
@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* ---------- NOTION IMPORT ---------- */
.imp {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 24px minmax(0, 1.4fr);
  align-items: start;
  gap: 6px;
  padding: 12px;
}
.imp-mid {
  display: grid;
  place-items: center;
  padding-top: 60px;
  color: var(--muted);
}
.imp-board {
  padding: 0;
  gap: 6px;
}
.imp-board .col {
  min-height: 210px;
  padding: 6px;
  gap: 6px;
}
.imp-board .key,
.imp-board h4 {
  white-space: nowrap;
}
.imp-board .card {
  padding: 6px 8px;
  font-size: 12px;
}
.ndb {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel-solid);
  font-size: 12.5px;
  overflow: hidden;
}
.ndb-h,
.nrow {
  display: grid;
  grid-template-columns: 4.8em minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}
/* one line per row: long titles end in an ellipsis, status chips stay on one line */
.nrow > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nrow .st {
  white-space: nowrap;
}
.ndb-h {
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.nrow {
  border-bottom: 1px solid var(--rule);
  transition:
    background 0.3s,
    color 0.3s;
}
.nrow:last-child {
  border-bottom: 0;
}
.nrow span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nrow .st {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--rule);
  color: var(--muted);
}
.nrow.done {
  color: var(--muted);
}
.nrow.done .id {
  color: var(--ok);
}
.imp-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.bar-track {
  flex: 1 1 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.4s;
}
/* stacked when the panel is narrow: on phones, and beside the text on small laptops */
@media (max-width: 600px), (min-width: 901px) and (max-width: 1180px) {
  .imp {
    grid-template-columns: 1fr;
  }
  .imp-mid {
    padding: 0;
    transform: rotate(90deg);
  }
}

/* ---------- NATIVE: tool collapse ---------- */
.native {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
@media (max-width: 560px) {
  .native {
    grid-template-columns: 1fr;
  }
}
.toolwall {
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.toolwall span {
  font: 11.5px var(--f-mono);
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.5s;
}
.toolwall.collapsed span {
  opacity: 0.22;
}
.two {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.two .t {
  border: 1px solid color-mix(in srgb, var(--agent) 45%, transparent);
  background: var(--agent-soft);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  transition:
    transform 0.5s,
    opacity 0.5s;
}
.two .t code {
  color: var(--agent);
  font-weight: 500;
  font-size: 14px;
}
.two .t span {
  color: var(--muted);
  font-size: 13px;
}
.inbox {
  padding: 6px 14px 14px;
  display: grid;
  gap: 6px;
}
.inbox .row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 7px 10px;
  background: var(--panel-solid);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.inbox .row .k {
  font: 11px var(--f-mono);
  color: var(--muted);
}
.inbox .row .tag {
  font-size: 11px;
  color: var(--agent);
}

/* ---------- ACCESS: view as ---------- */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: color-mix(in srgb, var(--ground) 60%, transparent);
  border-radius: 8px;
}
.seg button {
  border: 0;
  background: none;
  padding: 7px 12px;
  border-radius: 6px;
  font: 500 13px var(--f-body);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.seg button[aria-pressed="true"] {
  background: var(--panel-solid);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.seg .av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 600 9px var(--f-body);
}
.access {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
@media (max-width: 680px) {
  .access {
    grid-template-columns: 1fr;
  }
}
.grid6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  align-content: start;
}
.card.hidden-slot {
  background: none;
  border-style: dashed;
  color: var(--muted);
  font-size: 12px;
  place-content: center;
  min-height: 74px;
}
.rules-list {
  border-left: 1px solid var(--rule);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 12.5px;
}
@media (max-width: 680px) {
  .rules-list {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}
.rule {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  transition: all 0.3s;
  background: var(--panel-solid);
}
.rule .eff {
  font: 600 10.5px var(--f-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rule .eff.deny {
  color: var(--bad);
}
.rule .eff.allow {
  color: var(--ok);
}
.rule code {
  font-size: 10.5px;
  color: var(--muted);
  word-break: break-word;
}
.rule .say {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.rule.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--rule);
}
.rule:not(.on) {
  opacity: 0.5;
}
.access-note {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  min-height: 42px;
}
.access-note b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- ISOLATION ---------- */
.iso {
  position: relative;
  padding: 16px;
}
.iso svg {
  width: 100%;
  height: auto;
  display: block;
}
.iso .orgbox {
  fill: var(--panel-solid);
  stroke: var(--rule);
}
.iso .proj {
  fill: var(--panel);
  stroke: var(--rule);
}
.iso .wall {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.iso text {
  fill: var(--ink);
  font-family: var(--f-body);
}
.iso .mut {
  fill: var(--muted);
}
.iso .mono {
  font-family: var(--f-mono);
}
.iso .agentfill {
  fill: var(--agent);
}
.iso .pkt {
  fill: var(--agent);
}
.iso .badge-bg {
  fill: var(--bad);
}
.iso .badge-tx {
  fill: var(--on-accent);
  font: 600 12px var(--f-mono);
}
.iso .on-accent {
  fill: var(--on-accent);
}
.iso .okfill {
  fill: var(--ok);
}
.iso-log {
  border-top: 1px solid var(--rule);
  padding: 10px 14px;
  font: 12.5px / 1.7 var(--f-mono);
  color: var(--muted);
  min-height: 72px;
}
.iso-log .r {
  color: var(--bad);
}
.iso-log .g {
  color: var(--ok);
}

/* ---------- GUARDRAILS ---------- */
.chart {
  padding: 14px 16px 6px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart .bar {
  fill: var(--agent);
  opacity: 0.75;
}
.chart .bar.over {
  fill: var(--bad);
  opacity: 1;
}
.chart .limit {
  stroke: var(--bad);
  stroke-dasharray: 4 4;
}
.chart .axis {
  stroke: var(--rule);
}
.chart text {
  fill: var(--muted);
  font: 11px var(--f-body);
}
.events {
  padding: 8px 16px 14px;
  display: grid;
  gap: 6px;
}
.ev {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--panel-solid);
  border: 1px solid var(--rule);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.ev.on {
  opacity: 1;
}
.ev .t {
  font: 11.5px var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ev b {
  font-weight: 600;
}
.ev b.who {
  color: var(--agent);
}
.pill {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill.bad {
  color: var(--bad);
}
.pill.ok {
  color: var(--ok);
}
.pill.ag {
  color: var(--agent);
}

/* a hidden copy of the finished frame holds each mock's size while it plays */
.held {
  display: grid;
}
.held > .ghost,
.held > .live {
  grid-area: 1 / 1;
  min-width: 0;
  display: inherit;
  gap: inherit;
  align-content: start;
}
.held > .ghost {
  visibility: hidden;
}
pre.held > .ghost,
pre.held > .live {
  display: block;
}
.nrow .id,
.ndb-h span:first-child {
  font: 500 10.5px var(--f-mono);
  color: var(--muted);
  align-self: center;
}

/* ---------- NATIVE: files, not context ---------- */
.exp {
  grid-column: 1 / -1;
}
.exp-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
@media (max-width: 640px) {
  .exp-body {
    grid-template-columns: 1fr;
  }
  .exp-files {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 12px 0 0;
  }
}
.exp-term {
  margin: 0;
  font: 12px / 1.6 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.exp-term .p {
  color: var(--muted);
}
.exp-term .g {
  color: var(--ok);
}
.exp-files {
  border-left: 1px solid var(--rule);
  padding-left: 14px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.exp-dir {
  font: 600 12px var(--f-mono);
}
.exp-files .held > div {
  display: grid;
  gap: 3px;
}
.exp-files .f {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 12px var(--f-mono);
  color: var(--muted);
}
.exp-files .f .ico {
  width: 13px;
  height: 13px;
}
#exp-ctx {
  color: var(--agent);
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ---------- HANDOFFS: a comment thread ---------- */
.thread {
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}
.th-doc {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.th-doc mark {
  background: color-mix(in srgb, #e0a060 30%, transparent);
  color: inherit;
  border-bottom: 2px solid #e0a060;
  padding: 0 1px;
}
.cm {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}
.cm > i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 9.5px var(--f-body);
  font-style: normal;
  color: #fff;
}
.cm > i.ai {
  color: var(--on-accent);
}
.cm b {
  font-weight: 600;
  margin-right: 8px;
}
.cm b.ag {
  color: var(--agent);
}
.cm .on {
  font-size: 12px;
  color: var(--muted);
}
.cm p {
  margin: 3px 0 0;
}
.men {
  color: var(--agent);
  background: var(--agent-soft);
  border-radius: 4px;
  padding: 0 4px;
}
.th-ev {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 34px;
  font-size: 12px;
  color: var(--muted);
}
.th-ev code {
  font: 11.5px var(--f-mono);
  color: var(--ink);
}

/* ---------- TICKETS: intake queue ---------- */
.tk {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.tk-req {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font: 12px / 1.6 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tk-req .p {
  color: var(--agent);
  font-weight: 600;
}
.tk-req .g {
  color: var(--muted);
}
.tk-req .ok {
  color: var(--ok);
  font-weight: 600;
}
.tk-queue .live,
.tk-queue .ghost {
  gap: 6px;
}
.tk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.tk-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.tk-t {
  font-size: 13.5px;
}
.tk-src {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 11px var(--f-mono);
  color: var(--muted);
}
.ext {
  font: 500 10.5px var(--f-body);
  padding: 0 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.pill.tk-new {
  color: var(--muted);
}
.pill.tk-reviewing {
  color: var(--warn);
}
.pill.tk-approved {
  color: var(--ok);
}
.pill.tk-declined {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- OPEN SOURCE ---------- */
.repo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 760px) {
  .repo {
    grid-template-columns: 1fr;
  }
}
.repo-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* the buttons sit at the bottom, level with the end of the terminal beside them */
.repo-card .ctas {
  margin-top: auto;
}
.repo-card .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}
.repo-card .name a {
  color: var(--agent);
  text-decoration: none;
}
.repo-card .name a:hover {
  text-decoration: underline;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.langs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tree {
  font: 12.5px / 1.75 var(--f-mono);
  color: var(--muted);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}
.repo-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
}
@media (max-width: 520px) {
  .tree .d {
    display: none;
  }
}
.tree b {
  color: var(--ink);
  font-weight: 500;
}
.term {
  background: var(--term);
  color: var(--term-ink);
  font: 13px / 1.75 var(--f-mono);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 760px) {
  .term {
    border-radius: 0 0 12px 12px;
  }
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--term-dim);
  font-size: 12px;
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.term-bar span {
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.term pre {
  margin: 0;
  padding: 16px 18px;
  /* long commands wrap inside the window instead of running past its edge */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 420px;
}
#os-term {
  display: grid;
}
.os-ghost,
.os-live {
  grid-area: 1 / 1;
}
.os-ghost {
  visibility: hidden;
}
.copy-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--term-dim);
  border-radius: 4px;
  font: 12px var(--f-body);
  padding: 3px 9px;
  cursor: pointer;
}
.copy-btn:hover {
  color: #fff;
}
.term .p {
  color: var(--term-dim);
}
.term .c {
  color: #fff;
}
.term .g {
  color: #7fd1a3;
}
.term .a {
  color: #9ea8ff;
}
.feat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* ---------- WIKI (roadmap) ---------- */
.doc-body {
  padding: 18px 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.doc-body h3 {
  margin: 0 0 4px;
  font: 600 22px var(--f-body);
}
.doc-body p {
  margin: 0;
  color: var(--ink);
}
.dl {
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.dl.reading {
  border-left-color: var(--agent);
  background: var(--agent-soft);
}
.embed {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel-solid);
  margin-left: 0;
  font-size: 13px;
}
.embed .key {
  font: 500 11px var(--f-mono);
  color: var(--muted);
}
.embed .pill {
  margin-left: auto;
}
.secret {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  margin-left: 0;
  color: var(--muted);
}
.secret.skipped {
  filter: blur(2px);
  opacity: 0.5;
}

/* ---------- CTA ---------- */
.cta .wrap {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.cta h2 {
  font-size: clamp(34px, 6.4vw, 84px);
}
.cta .mail {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted);
  user-select: all;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}
.foot-links {
  display: flex;
  gap: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pop,
  .cc-spin {
    animation: none;
  }
  * {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every component transition */
    transition: none !important;
  }
}

/* in place of inline styles */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.hero-head {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.chip.start {
  justify-self: start;
}
.chip.sm {
  padding: 3px 8px;
  font-size: 12px;
}
.panel-head.split {
  border-top: 1px solid var(--rule);
}
.panel-head.wrapped {
  flex-wrap: wrap;
}
.av-ai {
  background: var(--agent);
}
.av-ad {
  background: #6e6480;
}
.av-os {
  background: #55705f;
}
.av-mk {
  background: #7d6e52;
}
.iso-log .why {
  opacity: 0.7;
}
.os-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  align-items: end;
}
.repo-card .name .gh {
  width: 22px;
  height: 22px;
}
.dot.ts {
  color: #3178c6;
}

/* ---------- CONNECT ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
  counter-reset: step;
}
/* the three cards share rows: titles, intros, code and notes line up, and the cards end level */
.steps > li {
  counter-increment: step;
  padding: 18px;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 16px;
  }
  .steps > li {
    grid-row: auto;
    grid-template-rows: none;
  }
}
/* every step has the same anatomy: a label, then one dark block that fills the row */
.step-body {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}
.step-body.solo {
  grid-template-rows: 1fr;
}
.step-body .code {
  height: 100%;
}
.code.ui pre {
  white-space: pre;
  overflow-x: auto;
}
.code.ui .g {
  color: var(--term-dim);
}
.code.ui .ok {
  color: var(--ok);
}
/* both agent panes sit in one cell: switching never changes the card's height */
.panes {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.panes.tabbed > .pane {
  grid-area: 1 / 1;
}
.pick.ready .nojs {
  display: none;
}
.pane {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0;
}
.pane .where,
.step-body > .where {
  font-size: 13px;
  color: var(--muted);
}
.panes.tabbed .pane:not(.on) {
  visibility: hidden;
}
.seg-t {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: var(--rule);
  vertical-align: middle;
}
.seg-t button {
  border: 0;
  background: none;
  padding: 3px 10px;
  border-radius: 5px;
  font: 500 13px var(--f-body);
  color: var(--muted);
  cursor: pointer;
}
.seg-t button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}
.seg-t:not(.ready) {
  display: none;
}
.steps h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 17px var(--f-body);
}
.steps h3::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.steps p strong {
  color: var(--ink);
  font-weight: 600;
}
.steps .note {
  font-size: 13px;
}
:not(pre) > code {
  background: var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.85em;
}
.code {
  position: relative;
  background: var(--term);
  color: var(--term-ink);
  border-radius: 8px;
  min-width: 0;
}
.code pre {
  margin: 0;
  padding: 38px 16px 14px;
  font: 12.5px / 1.65 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.code .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--term);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--term-dim);
  border-radius: 4px;
  font: 12px var(--f-body);
  padding: 3px 9px;
  cursor: pointer;
}
.code .copy:hover {
  color: #fff;
}
.code .copy[hidden] {
  display: none;
}

/* 404 */
.lost .wrap {
  padding-block: clamp(80px, 14vw, 180px);
  display: grid;
  gap: 24px;
  justify-items: start;
}
.lost h1 {
  font-size: clamp(40px, 8vw, 96px);
}
@media (max-width: 820px) {
  .stage .toast {
    bottom: 76px;
  }
}
