/* ═════════════════════════════════════════════════════════════════════
   Overcli marketing site — palette mirrors the app's dark mode exactly
   (see /src/renderer/styles.css :root.dark in the overcli repo), so the
   site reads like an extension of the product, not a separate brand.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  /* — Surfaces (from app's --c-surface / muted / elevated) — */
  --bg:           #1c1c21;
  --bg-lift:      #24242b;
  --bg-card:      #2a2a33;
  --bg-deep:      #141418;

  /* — Ink — */
  --ink:          #e8e8ee;
  --ink-dim:      #a0a0a8;
  --ink-muted:    #666670;

  /* — Hairlines — */
  --line:         #25252a;
  --line-strong:  #34343b;

  /* — Accents — */
  --accent:       #7c8bff;
  --accent-hot:   #5d72ff;
  --claude:       #b587ff;
  --codex:        #5b9cff;
  --gemini:       #3dced7;
  --copilot:      #f471b5;
  --ollama:       #f29e4c;
  --add:          #4ade80;
  --rem:          #f87171;

  /* — Type — */
  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* — Rhythm — */
  --maxw: 1380px;
  --pad:  clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "calt";
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124, 139, 255, 0.08), transparent 60%),
              radial-gradient(900px 700px at -10% 40%, rgba(181, 135, 255, 0.06), transparent 60%),
              var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
}

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* Film-grain overlay — adds paper/noise texture over the whole page.
 * SVG noise, tiled, extremely low opacity. Static because motion here
 * would be a distraction. */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

code, kbd, pre {
  font-family: var(--f-mono);
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-lift);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  font-size: 11px;
  color: var(--ink-dim);
  margin: 0 1px;
}

/* ═════════════════════════════════════════════════════════════════════
   NAV
   ═════════════════════════════════════════════════════════════════════ */

.release-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px var(--pad);
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  transition: background 0.18s ease;
}
.release-ribbon:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg));
}
.rr-badge {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.rr-text strong { color: var(--ink); font-weight: 600; }
.rr-cta {
  color: var(--accent);
  white-space: nowrap;
}
.release-ribbon:hover .rr-cta { text-decoration: underline; }
@media (max-width: 560px) {
  .rr-text { flex-basis: 100%; text-align: center; order: 3; }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: block;
  width: 30px; height: 30px;
  padding: 3px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 8px 24px -8px rgba(124, 139, 255, 0.55);
  flex-shrink: 0;
  object-fit: contain;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.brand-ver {
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 140ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 220ms cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::before { right: 0; }
.nav-repo { color: var(--accent) !important; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}


/* ═════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 120px) var(--pad) 64px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.55fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.headline {
  font-family: var(--f-display);
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  color: var(--ink);
}
.headline .em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 900ms cubic-bezier(.2,.8,.2,1) forwards;
}
.headline-line[data-delay="220"] { animation-delay: 220ms; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 0 18px;
}
.lede-pun {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--f-display);
  font-style: italic;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
.lede-pun .pun-over {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.lede-pun .pun-dot {
  color: var(--accent);
  font-style: normal;
  margin: 0 1px;
  font-family: var(--f-mono);
  font-size: 14px;
}
.lede-pun .pun-cli {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.lede-pun em {
  color: var(--ink-dim);
  font-style: italic;
}
.lede code {
  color: var(--ink);
  background: var(--bg-lift);
  border: 1px solid var(--line-strong);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.88em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms, background 160ms, border-color 160ms, box-shadow 160ms;
}
.btn-primary {
  background: var(--accent);
  color: #0b0b10;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent-hot) inset,
              0 10px 30px -12px rgba(124,139,255,0.7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent-hot) inset,
              0 14px 38px -10px rgba(124,139,255,0.85);
}
.btn-bracket {
  color: rgba(11, 11, 16, 0.4);
  font-weight: 400;
}
.btn-ghost {
  color: var(--ink-dim);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  background: var(--bg-lift);
}

.btn-chip {
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 160ms, border-color 160ms;
}
.btn-chip:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.hero-meta {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-meta .meta-sep {
  color: var(--line-strong);
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.dot-ready { background: var(--add); box-shadow: 0 0 8px rgba(74,222,128,0.5); }

/* ─── Hero right — fake app window ─── */

.hero-right {
  position: relative;
}
.app-window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.6),
    0 20px 40px -20px rgba(124, 139, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: rotate(0.2deg);
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.2deg); }
  50%      { transform: translateY(-6px) rotate(-0.2deg); }
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #2f2f39, #262630);
  border-bottom: 1px solid var(--line);
}
.chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }
.app-tabs {
  display: flex;
  gap: 4px;
  margin-left: 22px;
}
.app-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 12px;
  font: inherit;
  font-size: 12px;
  color: var(--ink-muted);
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.app-tab.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.app-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  height: 640px;
  background: var(--bg);
  min-height: 0;
}
.app-window {
  display: grid;
  grid-template-rows: auto 1fr;
}

.app-sidebar {
  border-right: 1px solid var(--line);
  padding: 10px 8px 14px;
  background: var(--bg-lift);
  font-size: 11.5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.app-sidebar::-webkit-scrollbar { display: none; }

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-muted);
  font-size: 11px;
}
.search-glyph { color: var(--ink-muted); }
.search-placeholder { color: var(--ink-muted); opacity: 0.7; }

.proj {
  margin-bottom: 4px;
}
.proj-name {
  margin: 0;
  padding: 4px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.proj.collapsed .proj-name {
  color: var(--ink-dim);
  font-weight: 400;
}

.conv-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 0 0 14px;
}
.conv-list li {
  padding: 3px 8px;
  font-size: 11px;
  color: var(--ink-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-list li.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.conv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.conv-dot.on {
  background: var(--add);
  box-shadow: 0 0 5px var(--add);
}

.proj-actions {
  padding: 4px 6px 2px 18px;
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.proj-action.muted {
  margin-left: auto;
  color: var(--ink-muted);
}

.sidebar-section {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin: 14px 8px 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-section.muted { color: color-mix(in srgb, var(--ink-muted) 70%, transparent); }
.sidebar-section--first { margin-top: 0; padding-top: 0; border-top: 0; }

.active-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.active-list li {
  padding: 4px 8px;
  font-size: 11px;
  color: var(--ink-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-list li.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.active-sub {
  margin-left: auto;
  padding-left: 8px;
  font-size: 9px;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--f-display);
}

.proj-sub {
  margin: 4px 0 0;
  padding: 2px 8px 0 18px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}
.proj-sub + .agent-list li { padding-left: 18px; }
.agent-count, .sidebar-count {
  font-size: 9px;
  padding: 0 5px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-left: auto;
}
.sidebar-count { background: var(--bg); color: var(--ink-muted); }

.ws-list {
  list-style: none;
  margin: 0; padding: 0;
}
.ws-item {
  padding: 4px 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
}
.ws-glyph { color: var(--accent); width: 10px; display: inline-block; }
.ws-tools {
  margin-left: auto;
  display: flex;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 10px;
}
.ws-child {
  padding: 2px 8px 2px 24px;
  font-size: 10.5px;
  color: var(--ink-dim);
}

.agent-list {
  list-style: none;
  margin: 0; padding: 0;
}
.agent-list li {
  padding: 3px 8px 3px 10px;
  font-size: 11px;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}
.agent-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-dot.running {
  background: var(--add);
  box-shadow: 0 0 6px var(--add);
  animation: agent-pulse 1.6s ease-in-out infinite;
}
.agent-dot.idle { background: var(--line-strong); }
.agent-note {
  margin-left: auto;
  font-size: 9px;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--f-display);
}
@keyframes agent-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.sidebar-footer {
  margin-top: 14px;
  padding: 8px 6px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  --chat-accent: var(--claude);
}
.app-window[data-active="claude"] .app-main { --chat-accent: var(--claude); }
.app-window[data-active="codex"]  .app-main { --chat-accent: var(--codex);  }
.app-window[data-active="gemini"] .app-main { --chat-accent: var(--gemini); }
.app-window[data-active="ollama"] .app-main { --chat-accent: var(--ollama); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.chat-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cli-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--chat-accent) 22%, transparent);
  color: var(--chat-accent);
  letter-spacing: 0.06em;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--chat-accent) 40%, transparent);
  transition: color 400ms, background 400ms, border-color 400ms;
}
.chat-model-tag {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.chat-model-tag em {
  font-style: normal;
  color: var(--accent);
}
.chat-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.act-pill {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg-lift);
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.act-pill.act-danger {
  color: var(--rem);
  border-color: color-mix(in srgb, var(--rem) 45%, transparent);
  background: color-mix(in srgb, var(--rem) 12%, transparent);
}
.act-pill em {
  font-style: normal;
  opacity: 0.7;
  font-size: 9px;
}
.act-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.act-icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  border-radius: 4px;
  font-size: 12px;
  cursor: default;
}
.act-icon:hover {
  background: var(--bg-lift);
  color: var(--ink);
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 14px 16px 4px;
  position: relative;
}
.chat-scroll::-webkit-scrollbar { display: none; }
.chat-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  animation: card-in 320ms cubic-bezier(.2,.8,.2,1) forwards;
  font-size: 12px;
  line-height: 1.65;
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.card-response {
  border: 1px solid color-mix(in srgb, var(--chat-accent) 28%, var(--line));
  border-left: 2px solid var(--chat-accent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 4%, transparent), transparent),
    var(--bg-lift);
  padding: 10px 12px;
  transition: border-color 420ms, background 420ms;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 10px;
}
.card-label {
  font-size: 9.5px;
  color: var(--chat-accent);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-weight: 600;
  transition: color 420ms;
}
.card-actions {
  font-size: 9.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.card-body {
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.card-body .k        { color: var(--chat-accent); }
.card-body .c        { color: var(--ink-muted); font-style: italic; }
.card-body strong    { color: var(--ink); font-weight: 600; }
.card-body .add      { color: var(--add); }
.card-body .rem      { color: var(--rem); }

.card-tool {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
}
.card-tool-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: color-mix(in srgb, var(--chat-accent) 22%, transparent);
  color: var(--chat-accent);
  transition: color 420ms, background 420ms;
}
.card-tool-target {
  font-family: var(--f-mono);
  color: var(--ink);
  font-size: 11px;
}
.card-tool-stats {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.card-tool-stats .add { color: var(--add); }
.card-tool-stats .rem { color: var(--rem); }

.card-diff {
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.55;
  padding: 4px 10px;
  background: var(--bg-deep);
  border-radius: 4px;
  color: var(--ink-dim);
  white-space: pre;
  overflow-x: auto;
}
.card-diff .diff-add,
.card-diff .diff-rem,
.card-diff .diff-meta {
  display: block;
  padding: 0 6px;
  margin: 0 -6px;
}
.card-diff .diff-add  { color: var(--add); background: color-mix(in srgb, var(--add) 10%, transparent); }
.card-diff .diff-rem  { color: var(--rem); background: color-mix(in srgb, var(--rem) 10%, transparent); }
.card-diff .diff-meta { color: var(--accent); }

.card-exec {
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 6px 10px;
  background: var(--bg-deep);
  border-radius: 4px;
  color: var(--ink);
  white-space: pre-wrap;
}
.card-exec .prompt { color: var(--chat-accent); margin-right: 8px; }
.card-exec .stdout { color: var(--ink-muted); display: block; margin-top: 3px; }
.card-exec .pass   { color: var(--add); font-weight: 600; }
.card-exec .fail   { color: var(--rem); font-weight: 600; }

.writing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.writing-dots {
  display: inline-flex;
  gap: 3px;
}
.writing-dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--chat-accent);
  opacity: 0.35;
  animation: writing-pulse 1.2s ease-in-out infinite;
}
.writing-dots i:nth-child(2) { animation-delay: 0.15s; }
.writing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes writing-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.composer {
  margin: 0 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-lift);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.composer-plus {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}
.composer-placeholder {
  flex: 1;
  color: var(--ink-muted);
  font-size: 12px;
}
.composer-stop {
  appearance: none;
  background: color-mix(in srgb, var(--rem) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--rem) 50%, transparent);
  color: var(--rem);
  padding: 4px 14px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.chat-statusbar {
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.chat-statusbar [data-chat-model-full] {
  color: var(--chat-accent);
  transition: color 420ms;
}

@keyframes blink { 50% { opacity: 0; } }

/* (swim-lane styles removed — single rotating chat pane replaces them) */
.add { color: var(--add); }
.rem { color: var(--rem); }

/* (backend status row removed — the CLI pill in the chat header conveys the active backend now) */

.hero-caption {
  text-align: right;
  margin: 14px 4px 0 0;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  font-style: italic;
  font-family: var(--f-display);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.6),
    0 20px 40px -20px rgba(124, 139, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* ─── Hero marquee ─── */
.marquee {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0 16px;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%),
    var(--bg);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  animation: slide 42s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 3.6vw, 42px);
  line-height: 1.16;
  padding: 0.08em 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--ink);
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═════════════════════════════════════════════════════════════════════
   FEATURES
   ═════════════════════════════════════════════════════════════════════ */

.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) var(--pad) clamp(48px, 8vw, 96px);
}

.section-head {
  max-width: 820px;
  margin: 0 0 clamp(32px, 5vw, 72px);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.section-lede {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 62ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg);
  padding: 28px 26px 30px;
  position: relative;
  transition: background 220ms;
  min-height: 200px;
}
.feature:hover {
  background: var(--bg-lift);
}
.feature-num {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-lift);
  transition: color 240ms, border-color 240ms, background 240ms;
}
.feature:hover .feature-num {
  color: var(--accent);
  border-color: var(--accent);
}
.feature h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-variation-settings: "opsz" 36;
  padding-right: 52px;
}
.feature p {
  padding-right: 4px;
}
.feat-link {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.feat-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.65;
}
.feature code {
  color: var(--accent);
  background: transparent;
  font-size: 0.92em;
}
.feature em {
  color: var(--ink);
  font-style: italic;
  font-family: var(--f-display);
}
.feature kbd {
  font-size: 10.5px;
}


/* ═════════════════════════════════════════════════════════════════════
   COLOSSEUM
   ═════════════════════════════════════════════════════════════════════ */

.colosseum {
  position: relative;
  padding: clamp(64px, 11vw, 140px) var(--pad);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(124, 139, 255, 0.1), transparent 55%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.colosseum-head {
  max-width: 920px;
  margin: 0 auto clamp(40px, 7vw, 72px);
  text-align: center;
}

.display-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display-title .em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
.display-title span { display: block; }
@media (min-width: 720px) {
  .display-title span { display: inline; }
  .display-title span:not(:last-child)::after { content: " "; }
}

.colosseum-lede {
  margin: 0 auto;
  color: var(--ink-dim);
}

.flow-builder {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 0.8fr;
  gap: 14px;
}
.flow-builder-main {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-lift) 84%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  padding: 14px;
}
.flow-builder-rail {
  max-width: var(--maxw);
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}
.flow-start,
.flow-end {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.flow-end {
  color: color-mix(in srgb, var(--ok) 84%, white);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}
.flow-arrow {
  color: var(--ink-muted);
  font-size: 13px;
  white-space: nowrap;
}
.flow-step {
  min-width: 132px;
  border: 1px solid color-mix(in srgb, var(--codex) 45%, var(--line));
  background: color-mix(in srgb, var(--codex) 14%, var(--bg));
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.flow-step strong {
  font-size: 13px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.flow-step em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.flow-step { transition: border-color 240ms ease, background 240ms ease; }
.flow-step em { transition: opacity 220ms ease; }
.flow-step.is-swap em { opacity: 0; }

.flow-step[data-cli="claude"]  { border-color: color-mix(in srgb, var(--claude)  50%, var(--line)); background: color-mix(in srgb, var(--claude)  16%, var(--bg)); }
.flow-step[data-cli="codex"]   { border-color: color-mix(in srgb, var(--codex)   50%, var(--line)); background: color-mix(in srgb, var(--codex)   16%, var(--bg)); }
.flow-step[data-cli="gemini"]  { border-color: color-mix(in srgb, var(--gemini)  50%, var(--line)); background: color-mix(in srgb, var(--gemini)  16%, var(--bg)); }
.flow-step[data-cli="copilot"] { border-color: color-mix(in srgb, var(--copilot) 50%, var(--line)); background: color-mix(in srgb, var(--copilot) 16%, var(--bg)); }
.flow-step[data-cli="ollama"]  { border-color: color-mix(in srgb, var(--ollama)  50%, var(--line)); background: color-mix(in srgb, var(--ollama)  16%, var(--bg)); }

.flow-participant { transition: border-color 240ms ease; }
.flow-participant[data-cli="claude"]  { border-left: 3px solid var(--claude); padding-left: 9px; }
.flow-participant[data-cli="ollama"]  { border-left: 3px solid var(--ollama); padding-left: 9px; }
.flow-participant[data-cli="codex"]   { border-left: 3px solid var(--codex);  padding-left: 9px; }
.flow-participant[data-cli="gemini"]  { border-left: 3px solid var(--gemini); padding-left: 9px; }
.flow-participant[data-cli="copilot"] { border-left: 3px solid var(--copilot); padding-left: 9px; }

[data-flow-yaml] { transition: opacity 220ms ease; }
[data-flow-yaml].is-swap { opacity: 0.35; }

.flow-subhead {
  margin: 0 0 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.flow-participants {
  margin-top: 12px;
}
.flow-participant {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.flow-steps {
  margin-top: 12px;
}
.flow-step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
  margin-bottom: 10px;
}
.flow-step-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.flow-step-card header strong {
  font-size: 13px;
}
.flow-step-card header span {
  font-size: 11px;
  color: var(--ink-muted);
}
.flow-step-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.flow-step-card p + p {
  margin-top: 6px;
}
.flow-yaml {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 12px;
}
.flow-yaml pre {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-dim);
  white-space: pre-wrap;
}
@media (max-width: 920px) {
  .flow-builder { grid-template-columns: 1fr; }
  .flow-participant { grid-template-columns: 1fr; }
}

/* ── a flow captured mid-run, matching the definition above ── */
.flow-run-label {
  max-width: var(--maxw);
  margin: 22px auto 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.flow-run {
  max-width: var(--maxw);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-lift) 84%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  padding: 14px;
}
.flow-run-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.flow-run-id { display: flex; align-items: center; gap: 10px; }
.flow-run-title {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.flow-run-status {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--add);
  border: 1px solid color-mix(in srgb, var(--add) 40%, var(--line));
  background: color-mix(in srgb, var(--add) 12%, transparent);
}
.flow-run-status.watching {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.flow-run-status.watching::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  animation: watch-pulse 1.8s ease-in-out infinite;
}
@keyframes watch-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-run-status.watching::before { animation: none; }
}
.flow-run-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.flow-run-stats .frun-fast { color: var(--ollama); }
.flow-run-stats .frun-add { color: var(--add); }
.flow-run-stats .frun-rem { color: var(--rem); }
.flow-run-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.frun-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: var(--bg);
  white-space: nowrap;
}
.frun-pill strong { color: var(--ink); font-weight: 600; }
.frun-pill.done { color: var(--add); }
.frun-pill.watching {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.frun-pill.watching::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  animation: watch-pulse 1.8s ease-in-out infinite;
}
.frun-pill[data-cli="claude"] { border-color: color-mix(in srgb, var(--claude) 45%, var(--line)); }
.frun-pill[data-cli="ollama"] { border-color: color-mix(in srgb, var(--ollama) 45%, var(--line)); }
.frun-pill-arrow { color: var(--ink-muted); font-size: 12px; }

.flow-run-req {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.flow-run-req code {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
}

.flow-run-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
}
.frun-thread-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
  color: var(--ink-muted);
}
.frun-thread-step { color: var(--add); }

.flow-run-subhead {
  margin: 16px 0 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.flow-run-artifacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flow-run-artifacts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  font-size: 12px;
}
.flow-run-artifacts li.is-active {
  border-color: color-mix(in srgb, var(--ollama) 45%, var(--line));
  box-shadow: inset 2px 0 0 var(--ollama);
}
.frun-art-name {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  min-width: 96px;
}
.frun-art-from { font-size: 11px; color: var(--accent); }
.frun-art-meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-muted); }
.frun-art-note { margin-left: auto; font-size: 11.5px; font-style: italic; color: var(--ink-dim); }

.flow-run-step {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}
.frun-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.frun-step-tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ollama);
}
.frun-step-id { font-size: 12.5px; color: var(--ink-dim); }
.frun-step-id strong { color: var(--ink); }
.frun-step-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
  font-style: italic;
}
.frun-step-note code, .frun-step-inputs code {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ink);
}
.frun-step-inputs {
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.frun-step-inputs span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  color: var(--ink-muted);
  margin-right: 8px;
}
.frun-step-diff {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-lift) 60%, #000);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--ink-dim);
}
.frun-diff-path { color: var(--add); }
.frun-d-add { color: var(--add); }
.frun-d-rem { color: var(--rem); }
.frun-diff-foot {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--add);
}
@media (max-width: 720px) {
  .flow-run-pills { margin-left: 0; flex-wrap: wrap; }
  .flow-run-artifacts li { flex-wrap: wrap; gap: 6px 12px; }
  .frun-art-note { margin-left: 0; }
}

/* ── rebound: an inline review loop, styled like the real conversation ── */
.rebound-thread {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rb-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-lift);
  padding: 12px 14px;
}
.rb-build {
  border-left: 2px solid var(--claude);
  background: linear-gradient(180deg, color-mix(in srgb, var(--claude) 5%, transparent), transparent), var(--bg-lift);
}
/* reviewer turns are indented so the rebound reads as nested under the chat */
.rb-review,
.rb-round { margin-left: clamp(20px, 5vw, 52px); }
.rb-review {
  border-left: 2px solid var(--codex);
  background: linear-gradient(180deg, color-mix(in srgb, var(--codex) 5%, transparent), transparent), var(--bg-lift);
}
.rb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.rb-model {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--claude) 80%, var(--ink));
  font-weight: 600;
}
.rb-reviewer { color: color-mix(in srgb, var(--codex) 80%, var(--ink)); }
.rb-actions {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.rb-verdict {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--add) 84%, white);
  border: 1px solid color-mix(in srgb, var(--add) 40%, var(--line));
  background: color-mix(in srgb, var(--add) 14%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
}
.rb-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.rb-body + .rb-body { margin-top: 8px; }
.rb-body code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 4px;
  padding: 1px 5px;
}
.rb-nit strong { color: var(--ink); font-weight: 600; }
.rb-foot {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.rb-round {
  margin: 4px 0 -2px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--codex) 70%, var(--ink-muted));
}
@media (max-width: 920px) {
  .rebound-thread { max-width: 100%; }
}

/* rebound presets + custom dials */
.rb-presets {
  max-width: 880px;
  margin: clamp(22px, 4vw, 38px) auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-lift);
  padding: 18px 20px 20px;
}
.rb-presets-head {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-dim);
}
.rb-custom-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 7px;
}
.rb-preset-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.rb-preset {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  padding: 10px 12px;
}
.rb-preset strong { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.rb-preset span { font-size: 11.5px; line-height: 1.5; color: var(--ink-muted); }
.rb-preset { cursor: default; transition: border-color 160ms ease, background 160ms ease; }
.rb-preset.is-active,
.rb-preset:hover,
.rb-preset:focus-visible {
  border-color: color-mix(in srgb, var(--codex) 55%, var(--line));
  background: color-mix(in srgb, var(--codex) 10%, var(--bg));
  outline: none;
}
.rb-preset.is-active strong,
.rb-preset:hover strong,
.rb-preset:focus-visible strong { color: color-mix(in srgb, var(--codex) 80%, var(--ink)); }
.rb-preset-custom {
  border-style: dashed;
  border-color: var(--line-strong);
}
.rb-axes {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}
.rb-axes div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 7px 0;
}
.rb-axes div + div { border-top: 1px solid var(--line); }
.rb-axes dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 2px;
}
.rb-axes dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.rb-axes dd strong { color: var(--ink); font-weight: 600; }
.rb-axes dd em { font-style: normal; font-family: var(--f-mono); font-size: 0.92em; color: var(--ink-muted); }
.rb-opt {
  border-radius: 5px;
  padding: 1px 5px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.rb-opt.is-on {
  color: var(--ink);
  background: color-mix(in srgb, var(--codex) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--codex) 45%, transparent);
}
.rb-opt.is-on em { color: color-mix(in srgb, var(--ink) 80%, var(--codex)); }
@media (max-width: 720px) {
  .rb-preset-list { grid-template-columns: 1fr; }
  .rb-axes div { grid-template-columns: 1fr; gap: 3px; }
}

.col-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1180px) { .col-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .col-grid { grid-template-columns: 1fr; } }

.col {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 440px;
}
.col-out { min-height: 0; }
.col::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
}
.col-claude::before  { background: var(--claude); }
.col-codex::before   { background: var(--codex);  }
.col-gemini::before  { background: var(--gemini); }
.col-copilot::before { background: var(--copilot); }
.col-ollama::before  { background: var(--ollama); }

.col-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-lift);
}
.col-rank {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 144;
  width: 32px;
}
.col-claude  .col-rank { color: var(--claude); }
.col-codex   .col-rank { color: var(--codex); }
.col-gemini  .col-rank { color: var(--gemini); }
.col-copilot .col-rank { color: var(--copilot); }
.col-ollama  .col-rank { color: var(--ollama); }
.col-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ollama) 18%, transparent);
  color: var(--ollama);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 2px;
  font-family: var(--f-mono);
  font-style: normal;
  font-weight: 500;
}
.col-name {
  margin: 0;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.col-model {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.col-timer {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.col-out {
  flex: 1;
  margin: 0;
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  white-space: pre-wrap;
  overflow: hidden;
  min-height: 180px;
}
.col-out .diff-add { color: var(--add); }
.col-out .diff-rem { color: var(--rem); }
.col-out .k        { color: var(--accent); }
.col-out .c        { color: var(--ink-muted); }
.col-out .caret    { animation: blink 1s steps(2, end) infinite; color: var(--accent); }

.col-foot {
  display: flex;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-lift);
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.col-foot strong { color: var(--ink); font-weight: 600; }

.colosseum-ribbon {
  text-align: center;
  margin: clamp(28px, 5vw, 56px) auto 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.colosseum-ribbon span { color: var(--ink); }


/* ─── Featured flows from the registry ─── */
.flows-featured {
  max-width: var(--maxw);
  margin: clamp(56px, 9vw, 104px) auto 0;
}
.flows-featured-head {
  text-align: center;
  margin: 0 auto clamp(28px, 5vw, 44px);
}
.flows-featured-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 14px auto 0;
  max-width: 24ch;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}

.flows-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 960px) { .flows-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .flows-gallery { grid-template-columns: 1fr; } }

.flow-card {
  background: var(--bg);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 220ms;
}
.flow-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--claude);
  opacity: 0.55;
  transition: opacity 220ms;
}
.flow-card[data-lead="codex"]::before { background: var(--codex); }
.flow-card:hover { background: var(--bg-lift); }
.flow-card:hover::before { opacity: 1; }

.flow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.flow-card-head h4 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-variation-settings: "opsz" 36;
}
.flow-card-clis {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
  margin-top: 2px;
}
.flow-card-clis span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  background: var(--bg-lift);
}
.flow-card-clis span[data-cli="claude"] {
  color: var(--claude);
  border-color: color-mix(in srgb, var(--claude) 45%, var(--line));
  background: color-mix(in srgb, var(--claude) 12%, var(--bg));
}
.flow-card-clis span[data-cli="codex"] {
  color: var(--codex);
  border-color: color-mix(in srgb, var(--codex) 45%, var(--line));
  background: color-mix(in srgb, var(--codex) 12%, var(--bg));
}
.flow-card-clis .fc-mcp {
  color: var(--gemini);
  border-color: color-mix(in srgb, var(--gemini) 40%, var(--line));
  background: color-mix(in srgb, var(--gemini) 10%, var(--bg));
}

.flow-card-desc {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}

.flow-card-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
}
.fc-step {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
}
.fc-arrow { color: var(--ink-muted); font-size: 11px; }

.flow-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-card-tags li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.flow-card-tags li::before { content: "#"; opacity: 0.6; }

.flows-featured-foot {
  text-align: center;
  margin: clamp(24px, 4vw, 36px) auto 0;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-dim);
}
.flows-featured-foot a {
  color: var(--accent);
  text-decoration: none;
}
.flows-featured-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* spotlight — one flow, per-step backends */
.flow-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
  margin: 0 auto clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.flow-spotlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--claude), var(--codex) 60%, var(--ollama));
}
.flow-spotlight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.flow-spotlight-id h4 {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  font-variation-settings: "opsz" 48;
}
.flow-spotlight-desc {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 64ch;
}

.flow-spotlight-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.fsp-step {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border-left: 3px solid var(--line-strong);
}
.fsp-step[data-cli="claude"] { border-left-color: var(--claude); }
.fsp-step[data-cli="codex"]  { border-left-color: var(--codex); }
.fsp-step[data-cli="ollama"] { border-left-color: var(--ollama); }
.fsp-n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
  width: 18px;
  text-align: center;
}
.fsp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fsp-body strong {
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.fsp-role { font-size: 12px; color: var(--ink-dim); }
.fsp-loop .fsp-role { color: var(--ollama); }
.fsp-model {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.fsp-model[data-cli="claude"] {
  color: var(--claude);
  border-color: color-mix(in srgb, var(--claude) 45%, var(--line));
  background: color-mix(in srgb, var(--claude) 12%, var(--bg));
}
.fsp-model[data-cli="codex"] {
  color: var(--codex);
  border-color: color-mix(in srgb, var(--codex) 45%, var(--line));
  background: color-mix(in srgb, var(--codex) 12%, var(--bg));
}
.fsp-model[data-cli="ollama"] {
  color: var(--ollama);
  border-color: color-mix(in srgb, var(--ollama) 45%, var(--line));
  background: color-mix(in srgb, var(--ollama) 12%, var(--bg));
}
.fsp-out {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.fsp-out::before { content: "→ "; opacity: 0.6; }
@media (max-width: 680px) {
  .fsp-step { grid-template-columns: auto 1fr; row-gap: 8px; }
  .fsp-model, .fsp-out { grid-column: 2; justify-self: start; }
}

.flow-spotlight-foot {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.flows-subhead {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 20px;
}


/* ═════════════════════════════════════════════════════════════════════
   STORY
   ═════════════════════════════════════════════════════════════════════ */

.story {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) var(--pad);
}
.story-body {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}
.story-title {
  margin-bottom: 32px;
}
.story-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dim);
  margin: 0 0 20px;
  text-align: left;
}
.story-body p strong { color: var(--ink); font-weight: 600; }
.story-body a { color: var(--accent); }
.story-body a:hover { text-decoration: underline; text-underline-offset: 3px; }

.story-sig {
  margin-top: 32px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px !important;
  color: var(--ink-muted) !important;
  letter-spacing: 0.04em;
  text-align: center !important;
}
.story-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 500;
}


/* ═════════════════════════════════════════════════════════════════════
   DOWNLOAD
   ═════════════════════════════════════════════════════════════════════ */

.download {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--pad) clamp(64px, 11vw, 160px);
}
.dl-wrap {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .dl-wrap { grid-template-columns: 1fr; }
}
.dl-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.dl-table td {
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.dl-table tr:first-child td { border-top: 0; }
.dl-table tr:hover { background: var(--bg-lift); }

.dl-platform {
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-width: 180px;
}
.dl-glyph {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--accent);
  width: 32px;
  text-align: center;
}
.dl-platform strong {
  display: block;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dl-platform em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dl-format {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.dl-size {
  color: var(--ink-muted);
  font-size: 12px;
  text-align: right;
}
.dl-action {
  text-align: right;
}
.dl-btn {
  display: inline-block;
  padding: 9px 14px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  transition: all 160ms;
}
.dl-btn:hover {
  color: #0b0b10;
  background: var(--accent);
  border-color: var(--accent);
}
.dl-btn .btn-bracket { color: inherit; opacity: 0.5; }

.dl-note {
  align-self: start;
  height: fit-content;
  margin-top: 0;
  padding: 22px 24px;
  background: var(--bg-lift);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  border-top: 2px solid var(--gemini);
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}
.dl-note p { margin: 0 0 12px; }
.dl-note p:last-child { margin-bottom: 0; }
.note-tag {
  display: inline-block;
  margin-bottom: 10px !important;
  font-size: 11px !important;
  color: var(--gemini) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.dl-note em { font-style: italic; color: var(--ink); }
.dl-note strong { color: var(--ink); }
.note-snippet {
  margin-top: 18px !important;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}
.snippet-prompt {
  color: var(--accent);
  margin-right: 10px;
  user-select: none;
}
.note-foot {
  font-size: 11.5px !important;
  color: var(--ink-muted) !important;
  font-style: italic;
}


/* ═════════════════════════════════════════════════════════════════════
   FOOTER — tmux status line
   ═════════════════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.status-line {
  display: flex;
  align-items: center;
  padding: 10px var(--pad);
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.sl-cell {
  padding: 2px 12px;
  border-right: 1px solid var(--line-strong);
}
.sl-cell:last-child { border-right: 0; }
.sl-cell a { color: var(--accent); }
.sl-cell a:hover { color: var(--ink); }
.sl-brand {
  background: var(--accent);
  color: #0b0b10 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
}
.sl-mark {
  display: inline-block;
  width: 14px; height: 14px;
  padding: 1px;
  border-radius: 3px;
  vertical-align: -3px;
  background: #ffffff;
  object-fit: contain;
}
.sl-spacer {
  flex: 1;
  border-right: none;
}
.sl-clock {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg-lift);
}
.footer-fine {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad) 24px;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.footer-fine code {
  color: var(--ink-dim);
  background: var(--bg-lift);
  padding: 0 4px;
  border-radius: 3px;
}
.footer-dogfood { font-style: italic; color: var(--ink-dim); }
.footer-dogfood a { color: var(--accent); font-style: normal; }


/* ═════════════════════════════════════════════════════════════════════
   ⌘P PALETTE
   ═════════════════════════════════════════════════════════════════════ */

.palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
}
.palette-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.palette {
  width: min(560px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
}
.palette-overlay.open .palette {
  transform: translateY(0) scale(1);
}
.palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-lift);
}
.palette-caret {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
#palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
}
#palette-input::placeholder { color: var(--ink-muted); }
.palette-close {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.palette-close:hover { color: var(--ink); border-color: var(--ink-muted); }
.palette-results {
  list-style: none;
  margin: 0; padding: 6px;
  max-height: 340px;
  overflow-y: auto;
}
.palette-results li {
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-dim);
}
.palette-results li.hi {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-lift));
  color: var(--ink);
}
.palette-results li .hit {
  color: var(--accent);
  font-weight: 600;
}
.palette-results li .dir {
  color: var(--ink-muted);
  font-size: 11px;
  margin-left: auto;
}
.palette-results li.empty {
  color: var(--ink-muted);
  font-style: italic;
  justify-content: center;
  cursor: default;
}
.palette-results li.empty:hover { background: transparent; }
.palette-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: center;
}


/* ═════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion — respect the user. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none !important; }
  .app-window { animation: none !important; }
}


.nav-back {
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 4px;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-back:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}


/* Inline caveat inside a feature card. Quieter than the main body
 * paragraph, so it reads as an honest footnote, not a second pitch. */
.feature p.feature-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
  font-style: normal;
}
.feature p.feature-note em {
  color: var(--ink-dim);
  font-style: italic;
}
