/* Solenta site: paper-and-ink redesign (2026).
   Light engineering-editorial language: off-white paper, ink type, one
   high-vis yellow accent used as a marker highlight (the memory metaphor).
   The product's dark UI appears only as artifacts: screenshots, the memory
   panel, the prompt card, terminal blocks. The page itself never goes dark.
   Shape scale: cards 14px, controls 9px, chips pill.
   Modern CSS: scroll-driven animations (animation-timeline), cross-document
   view transitions, animated ::details-content with interpolate-size,
   text-box leading trim, color-mix() in oklch, fluid clamp() type.
   Progressive enhancement: the page is complete without JS and without any
   of these; motion only ever adds. */

/* Cross-document view transitions: same-origin page navs cross-fade. */
@view-transition {
  navigation: auto;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Lets block-size animate to auto, for the FAQ accordion. */
  interpolate-size: allow-keywords;

  --paper: #f5f5f2;
  --paper-raised: #fcfcfa;
  --ink: #191918;
  --muted: #5d5d58;
  --dim: #8f8f89;
  --border: rgba(25, 25, 24, 0.12);
  --border-strong: rgba(25, 25, 24, 0.24);
  --accent: #f2e51f;
  --accent-down: #e6d90f;

  /* Dark app-artifact surfaces: mocks, terminals, screenshots frames. */
  --panel: #131312;
  --panel-2: #1c1c1b;
  --panel-text: #ebebe8;
  --panel-muted: #a5a5a0;
  --panel-dim: #77776f;
  --panel-border: rgba(255, 255, 255, 0.1);

  --green: #1d8a50;
  --radius-card: 14px;
  --radius-ctl: 9px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
img { max-width: 100%; display: block; }
code, pre, .mono { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(25, 25, 24, 0.22);
  border-radius: 8px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-track { background: transparent; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Marker highlight: ink text over a yellow stripe, the signature move.
   The stripe sweeps in when the parent .reveal lands (JS pages only). */
.em {
  padding: 0 0.06em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 44%;
  background-position: 0 82%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
html.js .reveal .em {
  background-size: 0% 44%;
  transition: background-size 0.9s var(--ease) 0.4s;
}
html.js .reveal.in .em { background-size: 100% 44%; }

/* ---------------- scroll progress (scroll-driven animations) ------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-ctl);
  background: var(--accent);
  border: 1px solid rgba(25, 25, 24, 0.25);
  color: var(--ink) !important;
  font-size: 13.5px;
  font-weight: 650;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  text-decoration: none;
  background: var(--accent-down);
}
.nav-cta:active { transform: translateY(1px); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 0;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Faint engineering grid, biased toward the headline. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 24, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 62% at 32% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 32% 0%, #000 25%, transparent 78%);
}

/* The brand diamond, oversized, as a faint structural watermark. */
.hero-bg::after {
  content: "";
  position: absolute;
  width: clamp(340px, 38vw, 560px);
  aspect-ratio: 1;
  right: -6%;
  top: 4%;
  border: 2px solid rgba(25, 25, 24, 0.07);
  rotate: 45deg;
  border-radius: 24px;
}

.hero-inner { position: relative; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(38px, 7.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 740;
  margin: 0 0 26px;
  max-width: 15ch;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 0 34px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-ctl);
  font-size: 14.5px;
  font-weight: 620;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: box-shadow 0.3s, border-color 0.25s, background 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: rgba(25, 25, 24, 0.28);
  box-shadow: 0 8px 26px color-mix(in oklch, var(--accent) 45%, transparent);
}
.btn-primary:hover {
  text-decoration: none;
  background: var(--accent-down);
  box-shadow: 0 12px 36px color-mix(in oklch, var(--accent) 60%, transparent);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(25, 25, 24, 0.04);
  text-decoration: none;
}
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* JS hides the platform you are already on from the alternates line. */
[hidden] { display: none !important; }

/* Alternates under the hero CTA: the other two platforms and the steps. */
.hero-alt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-alt a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.hero-alt a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------------- hero screenshot ---------------- */
.hero-shot { margin-top: clamp(52px, 7vw, 88px); }
.shot-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.shot {
  border: 1px solid rgba(25, 25, 24, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(30, 30, 22, 0.28);
}
/* Scroll-driven entrance: the window tilts up and settles as it enters.
   Unsupported engines just show the window; no JS fallback needed. */
@supports (animation-timeline: view()) {
  .shot {
    animation: shot-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes shot-rise {
    from {
      transform: perspective(1400px) rotateX(16deg) translateY(70px) scale(0.94);
      opacity: 0.35;
    }
    to {
      transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
    }
  }
}
.shot img { width: 100%; }

/* ---------------- agents band ----------------
   The one full-accent color block on the page. */
section#agents {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--accent);
  border-top: 1px solid rgba(25, 25, 24, 0.2);
  border-bottom: 1px solid rgba(25, 25, 24, 0.2);
  text-align: center;
}
.agents-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 680;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
.agents-sub {
  margin: 0 auto 34px;
  max-width: 52ch;
  color: rgba(25, 25, 24, 0.72);
  font-size: 15.5px;
  line-height: 1.65;
}
.agent-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(25, 25, 24, 0.3);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
@media (hover: hover) {
  .agent-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 25, 24, 0.18);
  }
}
.agent-chip img { opacity: 0.9; }

/* ---------------- sections ---------------- */
section { padding: clamp(88px, 11vw, 152px) 0; position: relative; }
section#agents { padding: clamp(56px, 7vw, 88px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
}
.section-head p + p { margin-top: 14px; }
.section-head code { font-size: 0.9em; color: var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
}

/* ---------------- memory ---------------- */
/* Split composition, panel on the left: DOM keeps the heading first for
   readers; the grid swaps the visual order on desktop only. */
.memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.memory-grid .memory-panel { order: -1; }
.memory-grid .section-head { margin-bottom: 0; }

/* The memory panel is a dark app artifact on the paper page. */
.memory-panel {
  background: var(--panel);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(30, 30, 22, 0.3);
}
.memory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--panel-border);
  color: var(--panel-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  background: var(--panel-2);
}
.memory-search .ph { font-size: 15px; color: var(--panel-muted); }
.memory-search-hint { margin-left: auto; color: var(--panel-dim); }
.memory-entry {
  padding: 17px 22px;
  border-top: 1px solid var(--panel-border);
}
.memory-search + .memory-entry { border-top: none; }
.memory-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--panel-dim);
  margin: 0 0 6px;
}
.mdot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--panel-dim);
  flex: none;
}
.memory-entry > p:last-child {
  margin: 0;
  color: var(--panel-text);
  font-size: 14.5px;
}

/* ---------------- planboard ---------------- */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(30, 30, 22, 0.1);
}
.board > div { padding: 22px 24px 24px; }
.board > div + div { border-left: 1px solid var(--border); }
.board h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-todo { background: var(--dim); }
.col-doing { background: var(--accent); outline: 1px solid rgba(25, 25, 24, 0.4); outline-offset: -1px; }
.col-done { background: var(--green); }
.board article {
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.board article p { margin: 0; color: var(--ink); font-size: 14.5px; }
.board article .memory-meta {
  color: var(--dim);
  font-size: 11.5px;
  margin: 0 0 6px;
}
.board article .board-action {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 640;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.section-head .board-claim {
  color: var(--ink);
  font-weight: 620;
}

/* ---------------- bento ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cell {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
@media (hover: hover) {
  .cell:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: 0 14px 34px rgba(30, 30, 22, 0.1);
  }
}
.cell h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.cell p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.cell p code { color: var(--ink); font-size: 0.9em; }
.cell .cell-img {
  margin: 20px -26px -26px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
/* Cap screenshot height so an image cell does not stretch its whole row. */
.cell .cell-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: left top;
}
/* A few cells carry the accent so the grid is not a wall of one paper. */
.cell-tint {
  background: color-mix(in oklch, var(--accent) 26%, var(--paper-raised));
  border-color: rgba(25, 25, 24, 0.22);
}
.cell-tint p { color: rgba(25, 25, 24, 0.72); }
.cell-a { grid-column: span 4; }
.cell-b {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Twelve span-3 cells after the opening 4+2 row: every row closes full. */
.cell-e { grid-column: span 3; }
.cell-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-ctl);
  background: var(--accent);
  border: 1px solid rgba(25, 25, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--ink);
}
.cell-icon .ph { font-size: 18px; }
.cell-tint .cell-icon { background: var(--paper); }

/* ---------------- orchestration ---------------- */
.orch {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.orch-title {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 700;
  text-wrap: balance;
}
.orch-sub { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.7; }
/* The prompt card is a dark app artifact, like the memory panel. */
.prompt-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  font-size: 14px;
  box-shadow: 0 30px 70px rgba(30, 30, 22, 0.3);
}
.prompt-card .prompt-line {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--panel-text);
}
.prompt-card .prompt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-dim);
  margin-bottom: 12px;
}
.orch-points { margin: 24px 0 0; padding: 0; list-style: none; }
.orch-points li {
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.orch-points li strong { color: var(--ink); font-weight: 630; }

/* ---------------- compare ---------------- */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow-x: auto;
  background: var(--paper-raised);
  box-shadow: 0 24px 60px rgba(30, 30, 22, 0.1);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th {
  text-align: left;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--border-strong);
}
.compare th:nth-child(2) { color: var(--ink); }
.compare th:nth-child(2), .compare td:nth-child(2) {
  background: color-mix(in oklch, var(--accent) 18%, transparent);
}
.compare td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink); }
.compare .yes, .compare .no, .compare .some { white-space: nowrap; }
.compare .yes .ph { color: var(--ink); font-size: 17px; font-weight: 700; }
.compare .yes-dim .ph { color: var(--muted); }
.compare .no .ph { color: var(--dim); font-size: 15px; }
.compare .some {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------------- faq ---------------- */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--border);
}
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--dim);
  transition: transform 0.3s var(--ease), color 0.2s;
  flex: none;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--ink);
}
.faq-list summary:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* Animated open/close: block-size interpolates to auto (interpolate-size
   on :root). Engines without it just snap open, which is the old behavior. */
.faq-list details::details-content {
  opacity: 0;
  block-size: 0;
  overflow-y: clip;
  transition:
    content-visibility 0.4s allow-discrete,
    opacity 0.4s var(--ease),
    block-size 0.4s var(--ease);
}
.faq-list details[open]::details-content {
  opacity: 1;
  block-size: auto;
}
.faq-list details p {
  margin: -4px 4px 0;
  padding: 0 0 22px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------------- trust ---------------- */
section#trust { padding-bottom: clamp(48px, 6vw, 80px); }
section#trust .section-head {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
section#trust .section-head h2 { font-size: clamp(34px, 4.4vw, 58px); }

/* ---------------- install ---------------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.install-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  min-width: 0; /* grid item: let long commands wrap instead of widening the track */
  background: var(--paper-raised);
}
/* The platform JS detected: raised, with the primary (yellow) button. */
.install-card.is-you {
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(25, 25, 24, 0.08);
}
.install-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.install-head h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.install-head .os-note { color: var(--dim); font-size: 13px; margin: 0; }
.you-chip { display: none; }
.install-card.is-you .you-chip {
  display: inline-block;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.install-steps {
  flex: 1; /* pushes every card's caveat down to a shared baseline */
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.install-steps li + li { margin-top: 9px; }
.install-steps b { color: var(--ink); font-weight: 600; }
.install-steps code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(25, 25, 24, 0.06);
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* The caveats people otherwise discover after downloading. */
.install-warn {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.release-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dim);
}
.section-head p.release-line { margin: 14px 0 0; font-size: 12.5px; }

.install-all { margin: 22px 0 0; font-size: 14px; }
.install-all a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.install-all a:hover { color: var(--ink); }

.final-cta {
  margin-top: clamp(44px, 5vw, 64px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  background: var(--paper-raised);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13.5px;
}
.footer-inner a { color: var(--muted); transition: color 0.2s; }
.footer-inner a:hover { color: var(--ink); text-decoration: none; }
.footer-inner .spacer { margin-left: auto; }

/* ---------------- docs ---------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 110px;
}
/* ponytail: pages without a sidebar (changelog) get the single column */
.docs-layout:not(:has(.docs-nav)) { grid-template-columns: minmax(0, 1fr); }
.docs-layout:not(:has(.docs-nav)) .docs-content { margin: 0 auto; }
.docs-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav a {
  color: var(--muted);
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.docs-nav a:hover { color: var(--ink); text-decoration: none; background: rgba(25, 25, 24, 0.05); }
.docs-nav a.active { color: var(--ink); border-left-color: var(--accent); background: rgba(25, 25, 24, 0.05); }
.docs-content { max-width: 760px; }
.docs-content h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 700;
}
.docs-content > .lede { color: var(--muted); font-size: 17.5px; margin: 0 0 48px; }
.docs-content h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 660;
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { font-size: 16.5px; margin: 28px 0 8px; font-weight: 640; }
.docs-content p { color: var(--muted); margin: 0 0 14px; font-size: 15.5px; }
.docs-content ul { color: var(--muted); padding-left: 20px; margin: 0 0 14px; }
.docs-content li { margin-bottom: 6px; font-size: 15.5px; }
.docs-content strong { color: var(--ink); font-weight: 620; }
.docs-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--accent) 80%, var(--ink)); text-decoration-thickness: 2px; }
.docs-content a:hover { text-decoration-color: var(--ink); }
.docs-content code {
  background: rgba(25, 25, 24, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.5px 6px;
  font-size: 13px;
  color: var(--ink);
}
.docs-content pre {
  background: var(--panel);
  border-radius: var(--radius-ctl);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.docs-content pre code { background: none; border: none; padding: 0; color: var(--panel-muted); }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}
.doc-table th {
  text-align: left;
  color: var(--dim);
  font-weight: 560;
  font-size: 12.5px;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border-strong);
}
.doc-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.doc-table td:first-child { color: var(--ink); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.callout {
  border: 1px solid rgba(25, 25, 24, 0.2);
  background: color-mix(in oklch, var(--accent) 22%, var(--paper));
  border-radius: var(--radius-ctl);
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink);
}
.callout p { margin: 0; color: var(--ink); }

/* ---------------- reveal ----------------
   Progressive enhancement: content is visible by default. Only when JS
   runs (html.js set inline in <head>) do elements start hidden and
   animate in. If JS is blocked or fails, the page shows everything. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  html.js .reveal .em { background-size: 100% 44%; transition: none; }
  .faq-list details::details-content { transition: none; }
  @supports (animation-timeline: view()) {
    .shot { animation: none; }
  }
  @supports (animation-timeline: scroll()) {
    .progress { animation: none; }
  }
}

/* ---------------- mobile ---------------- */
@media (max-width: 900px) {
  .hero { padding-top: 60px; }
  .hero h1 { letter-spacing: -0.035em; }
  .orch, .board, .memory-grid { grid-template-columns: 1fr; gap: 36px; }
  .memory-grid .memory-panel { order: 0; }
  .board { gap: 0; }
  .board > div + div { border-left: none; border-top: 1px solid var(--border); }
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-e { grid-column: span 1; }
  .install-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  section#agents { padding: 56px 0; }
  .memory-search-hint { display: none; }
  .hero-bg::after { display: none; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .docs-nav a { border-left: none; border: 1px solid var(--border); }
  .nav-links { gap: 16px; }
}

@media (max-width: 560px) {
  /* Nav must stay on one line AND inside the viewport: GitHub is in the
     hero CTA and the footer, and everything else tightens up. */
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-links { gap: 12px; }
  .nav-cta { padding: 6px 12px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 46px); }
  /* Compare table fits the viewport instead of scrolling sideways. */
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 11px 12px; }
  .compare th:first-child, .compare td:first-child { padding-left: 16px; }
}
