/* WIRK site: one stylesheet for the landing page, contact, docs and legal pages. System fonts, no external requests.
   Tokens follow the shared clean design: cream page, white surfaces, ink text, hairlines, pill controls. */

:root {
  --bg: #faf6ec;
  --surface: #fffdf8;
  --fg: #1d1d1f;
  --muted: #6f6a62;
  --faint: #a1a1a6;
  --line: #e9e2d4;
  --hover: #f4eee2;
  --selected: #f3ebe0;
  --accent: var(--fg);
  --accent-strong: var(--fg);
  --accent-soft: var(--selected);
  --on-accent: #ffffff;
  --code-bg: var(--hover);
  --brick: #8b2e1f;
  --brick-hover: #7a2819;
  --brick-pale: #f1ded1;
  --green: #2f7d4f;
  --amber: #a26b00;
  --blue: #3a6ea5;
  --soon: #a26b00;
  --soon-bg: var(--hover);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --wide: 1120px;
  --docs-panel: var(--hover);
  --syntax-key: #245b91;
  --syntax-string: #24684a;
  --syntax-number: #694a91;
  --syntax-literal: #8b451f;
  color-scheme: light;
}

/* Light is the default; dark applies only when chosen explicitly. */
html.docs-page[data-docs-theme="dark"] {
  --bg: #16130f; --surface: #1e1a15; --fg: #f2f2f2; --muted: #a1a1a6; --faint: #6e6e73; --brick: #c8573f;
  --line: #2e2820; --hover: #26211a; --selected: #2e2820; --on-accent: #111111;
  --syntax-key: #9cc7f5; --syntax-string: #9dd7b4; --syntax-number: #d2bcf5; --syntax-literal: #f0ad86;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--fg); text-decoration-color: var(--faint); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); text-decoration-color: var(--brick); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
code, pre, kbd { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 999px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header and footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wide); margin: 0 auto; padding: 18px 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: 0.1em; font-size: 0.95rem;
}
.brand-face { display: block; flex: none; color: var(--brick); }
.brand-face .face-friendly { animation: face-friendly 4s step-end 1; }
.brand-face .face-working { opacity: 0; animation: face-working 4s step-end 1; }
.brand-face .face-wink { opacity: 0; animation: face-wink 4s step-end 1; }
@keyframes face-friendly { 0% { opacity: 1; } 25% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes face-working { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes face-wink { 0% { opacity: 0; } 25% { opacity: 0; } 50% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-face .face-friendly, .brand-face .face-working, .brand-face .face-wink { animation: none; } }
.static-face { width: 38px; height: 24px; vertical-align: middle; }
.static-face .face-friendly { animation: none; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.site-header nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-header nav a:not(.button):hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-footer {
  max-width: var(--wide); margin: 96px auto 0; padding: 28px 24px 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-start; }

/* Buttons: pills */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--brick); color: #fff; font: 500 0.95rem var(--sans); text-decoration: none;
  border: 1px solid var(--brick); cursor: pointer;
}
.button:hover { background: var(--brick-hover); border-color: var(--brick-hover); color: #fff; }
.button.small { min-height: 32px; padding: 0 14px; font-size: 0.85rem; }
.button.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.button.ghost:hover { background: var(--hover); border-color: var(--faint); color: var(--brick); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  font: 600 0.72rem/1.6 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--soon); background: var(--soon-bg);
}

/* Landing: the established content, in the clean style. Brick stays the one accent. */
.landing { --section: 112px; --accent: var(--brick); --accent-strong: var(--brick-hover); --accent-soft: var(--brick-pale); overflow-x: clip; font-size: 16px; }
@media (max-width: 700px) { .landing { --section: 72px; } }
.landing main { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.landing h1, .landing h2 { letter-spacing: -0.025em; }
.lede { color: var(--muted); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero { padding: 70px 0 48px; display: grid; gap: 44px; }
.hero-copy { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(3.6rem, 5.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  max-width: 10ch;
  margin: 0;
}
.landing em { font-style: normal; color: var(--accent); }
.hero .lede {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 19em;
  margin: 0 0 18px;
}
.hero-detail { max-width: 37em; color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 26px; }
.conversation { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 56px; align-items: center; padding: var(--section) 0 0; }
.conversation .conversation-intro h2 { margin: 0 0 18px; }
.conversation-intro p { max-width: 32em; font-size: 1.05rem; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.conversation-intro .text-link { display: inline-block; margin-top: 10px; font-size: .9rem; }
.board-demo { min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px #54251b0b; overflow: hidden; }
.board-chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: #f4ebde; font-size: .75rem; }
.board-chrome > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.board-chrome .static-face { width: 28px; height: 18px; }
.board-status { padding: 4px 8px; border: 1px solid var(--line); border-radius: 20px; white-space: nowrap; color: var(--muted); }
.board-heading { padding: 22px 24px 18px; }
.board-heading h3 { font-size: 1.3rem; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 8px; }
.board-heading p { font-size: .8rem; line-height: 1.5; color: var(--muted); max-width: 48ch; margin: 0; }
.board-thread-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: .75rem; }
.board-thread-heading > span { color: var(--muted); }
.board-feed { height: 490px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 18px 24px; }
.board-messages { list-style: none; padding: 0; margin: 0; }
.board-message { display: flex; gap: 10px; margin: 0 0 18px; }
.board-message:last-child { margin-bottom: 0; }
.board-message[hidden] { display: none; }
.board-message > div { min-width: 0; flex: 1; }
.board-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; }
.board-avatar.second { background: #394f58; }
.board-avatar.agent { border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.board-avatar.reviewer { background: #e4e8df; color: #3b5140; }
.board-avatar.implementer { background: #e5eaf0; color: #334d63; }
.board-avatar.dependency { background: #eee3ce; color: #6a4c23; }
.board-avatar .static-face { width: 24px; height: 17px; }
.message-author { display: flex; align-items: baseline; gap: 7px; font-size: .76rem; margin: 0 0 6px; }
.message-author > span, .message-author time { color: var(--muted); font-size: .65rem; }
.message-author time { margin-left: auto; }
.board-message p { padding: 10px 12px; margin: 0; font-size: .875rem; line-height: 1.5; background: #f4eee4; border-radius: 0 10px 10px 10px; }
.board-message:has(.agent) p { background: transparent; border: 1px solid var(--line); }
.mention { color: var(--accent); font-weight: 600; }
.board-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 16px; }
.board-controls[hidden] { display: none; }
.board-controls button { border: 0; background: transparent; color: var(--accent); font: 600 .75rem var(--sans); cursor: pointer; padding: 9px 6px; min-height: 44px; }
.board-progress { color: var(--muted); font-size: .65rem; }
.board-demo figcaption { border-top: 1px solid var(--line); padding: 12px 22px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.board-feed:focus-visible, .board-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.board-demo[data-enhanced] .board-message:not([hidden]) { animation: message-arrive .25s ease-out; }
@keyframes message-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .board-demo[data-enhanced] .board-message:not([hidden]) { animation: none; } }
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 14ch; }
  .hero .lede { max-width: 28em; }
  .conversation { grid-template-columns: 1fr; gap: 30px; }
  .conversation-intro { max-width: 600px; }
  .board-demo { width: 100%; max-width: 650px; justify-self: center; }
}
@media (max-width: 500px) {
  .board-chrome { padding: 12px; gap: 6px; font-size: .65rem; }
  .board-heading { padding: 18px 16px; }
  .board-thread-heading { margin-inline: 16px; font-size: .7rem; }
  .board-feed { padding: 16px 12px; height: 440px; }
  .board-message { gap: 8px; }
  .message-author { gap: 5px; font-size: .72rem; }
  .message-author > span, .message-author time { font-size: .6rem; }
  .board-controls { gap: 5px; padding-inline: 8px; }
  .board-controls button { font-size: .7rem; }
  .board-progress { font-size: .6rem; }
}
.actions { display: flex; gap: 27px; align-items: center; flex-wrap: wrap; }
.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  padding-bottom: 4px;
}
.text-link span { margin-left: 12px; }
.hero h1 em, .hero h1 > span { display: block; }
.hero-art { min-width: 0; margin: 0; }
.hero-art figcaption { margin: 0 0 22px; color: var(--muted); font: 600 .75rem/1.4 var(--mono); }
.mood .brand-face { width: 280px; max-width: 100%; height: auto; color: var(--brick); margin: 0 auto; }
.mood-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mood { width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; }
.mood:focus-visible { outline: 2px solid var(--brick); outline-offset: 8px; }
.mood:disabled { cursor: default; }
.mood .face-friendly, .mood .face-working, .mood .face-wink { animation-duration: 4s; animation-iteration-count: infinite; }
.mood[data-paused="true"] .face-friendly, .mood[data-paused="true"] .face-working, .mood[data-paused="true"] .face-wink { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mood .face-friendly, .mood .face-working, .mood .face-wink { animation: none; } }
@keyframes edge-reveal { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
.context-graph { position: relative; aspect-ratio: 2 / 1; border: 1px solid var(--line); border-radius: 12px; background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px); background-size: 20px 20px; }
.graph-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.edge-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; marker-end: url(#edge-arrow); opacity: .6; stroke-dasharray: 900; animation: edge-reveal 2.5s ease-out 1; }
#edge-arrow path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.edge-lines .match-edge { stroke-dasharray: 5 5; animation: none; }
@media (prefers-reduced-motion: reduce) { .edge-lines path { animation: none; } }
.edge-ports circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.edge-labels rect { fill: var(--bg); stroke: var(--accent-soft); }
.edge-labels text { fill: var(--accent); font: 14px var(--mono); text-anchor: middle; dominant-baseline: central; }
.graph-node, .graph-ticket { position: absolute; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 0 var(--accent-soft), 0 10px 24px #8b2e1f09; }
.graph-node { width: 21%; height: 26%; padding: 14px 16px; display: flex; flex-direction: column; }
.graph-node header, .graph-ticket header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.graph-node header { font-size: .75rem; font-weight: 600; }
.graph-node header small { color: var(--muted); font: .58rem var(--mono); white-space: nowrap; }
.artifact-body { display: flex; gap: 12px; align-items: center; flex: 1; min-height: 0; }
.artifact-body > div:last-child { min-width: 0; }
.artifact-body strong { font-size: clamp(.75rem, 1.05vw, .95rem); line-height: 1.3; display: block; letter-spacing: -.02em; }
.artifact-body p { font-size: .72rem; line-height: 1.4; color: var(--muted); margin: 5px 0 0; }
.graph-node footer, .graph-ticket footer { display: flex; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); font: .65rem/1.4 var(--mono); color: var(--muted); }
.relevance { color: var(--accent); font-weight: 500; white-space: nowrap; }
.graph-deck, .graph-call, .graph-pdf { left: 4%; }
.graph-pr, .graph-dependency, .graph-duplicate { left: 75%; }
.graph-deck, .graph-pr { top: 4%; }
.graph-call, .graph-dependency { top: 37%; }
.graph-pdf, .graph-duplicate { top: 70%; }
.graph-ticket { left: 38%; top: 29%; width: 24%; height: 42%; padding: 22px; border-color: var(--accent); box-shadow: 0 5px 0 var(--accent-soft), 0 16px 36px #8b2e1f12; display: flex; flex-direction: column; }
.graph-ticket header { font: .65rem var(--mono); color: var(--accent); }
.graph-ticket header small { background: var(--accent-soft); padding: 4px 7px; border-radius: 4px; font-size: .58rem; }
.graph-ticket h2 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); letter-spacing: -.06em; margin: 17px 0 8px; }
.graph-ticket > p { font-size: .9rem; margin: 0; }
.ticket-assignee { display: flex; align-items: center; gap: 8px; font-size: .7rem; margin: auto 0 14px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; background: var(--accent-soft); border-radius: 50%; color: var(--accent); font: 600 .75rem var(--sans); }
.graph-ticket footer { justify-content: flex-end; font-size: .65rem; }
.deck-preview, .pdf-preview, .call-preview, .pr-preview, .ticket-preview, .duplicate-preview { width: 48px; height: 54px; flex: none; color: var(--accent); }
.deck-preview { position: relative; background: var(--accent); color: var(--on-accent); border-radius: 3px; padding: 7px; font: 700 .46rem/1.3 var(--sans); box-shadow: 3px 3px 0 var(--accent-soft); }
.deck-preview i { display: block; width: 18px; height: 2px; background: currentColor; margin-top: 3px; opacity: .5; }
.pdf-preview { background: var(--bg); border: 1px solid var(--line); padding: 5px 7px; border-radius: 2px 9px 2px 2px; }
.pdf-preview b { font-size: .75rem; }
.pdf-preview i { display: block; height: 2px; margin-top: 4px; background: var(--accent-soft); }
.call-preview { display: flex; align-items: center; gap: 3px; }
.call-preview i { width: 3px; height: 14px; background: var(--accent); border-radius: 3px; }
.call-preview i:nth-child(2n) { height: 29px; }
.call-preview i:nth-child(3n) { height: 40px; }
.pr-preview { font: .5rem/1.7 var(--mono); background: var(--code-bg); border-radius: 4px; padding: 6px; }
.pr-preview span { display: block; }
.ticket-preview { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 1.5rem; }
.duplicate-preview { position: relative; }
.duplicate-preview i { position: absolute; width: 28px; height: 34px; top: 4px; left: 3px; border: 1px dashed var(--accent); border-radius: 4px; background: var(--bg); }
.duplicate-preview i:last-child { top: 11px; left: 12px; }
@media (max-width: 1279px) {
  .context-graph { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
  .graph-edges { display: none; }
  .graph-node, .graph-ticket { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .graph-node { min-height: 144px; }
  .graph-ticket { grid-column: 1 / -1; width: min(360px, 100%); justify-self: center; min-height: 230px; }
  .artifact-body strong { font-size: 1rem; }
  .artifact-body p { font-size: .75rem; }
  .graph-node footer { font-size: .65rem; }
}
@media (max-width: 600px) {
  .hero-copy { display: block; }
  .hero-copy .lede { margin-top: 24px; }
  .context-graph { grid-template-columns: 1fr; padding: 16px; }
  .graph-ticket { grid-column: 1; }
}
.section-heading h2, .start h2, .drift-intro h2, .conversation-intro h2, .dashboard-intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 700;
}
/* The tools stay a static, wrapping list until their pause control is ready. */
.connected-tools { margin-top: 48px; border-block: 1px solid var(--line); padding: 24px 0 18px; }
.tools-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.connected-tools h2 { font-size: 1rem; margin: 0; }
.logo-pause { font: inherit; font-size: .75rem; padding: 6px 10px; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.logo-window { overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--fg); border-radius: 14px; margin-block: 16px; }
.landing .tool-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 0; list-style: none; padding: 0; margin: 12px 0; }
.landing .tool-logos li { display: flex; justify-content: center; align-items: center; flex: 0 0 260px; height: 92px; padding: 16px 32px; border: 0; background: none; border-radius: 0; }
.tool-logos img { object-fit: contain; max-width: 100%; }
.codex-logo { gap: 10px; }
.codex-logo span { font-size: 1.1rem; font-weight: 600; }
.codex-logo small { display: block; font-size: .65rem; font-weight: 400; }
.tools-caption { color: var(--muted); font-size: .7rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .landing .tool-logos[data-moving="true"] { flex-wrap: nowrap; justify-content: flex-start; width: max(1560px, 200%); animation: logo-scroll 24s linear infinite; }
  .tool-logos[data-moving="true"] li { flex-basis: calc(100% / 6); }
  .landing .tool-logos[data-paused="true"] { animation-play-state: paused; }
  .logo-window:hover .tool-logos { animation-play-state: paused; }
}
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .landing .tool-logos li[aria-hidden="true"], .logo-pause { display: none; }
}
.demos .section-heading { margin-bottom: 0; }
.demos code { color: var(--fg); background: var(--code-bg); }
.demos {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(180px, .65fr); align-items: center; gap: 60px;
  background: var(--surface); border: 1px solid var(--line); padding: 72px 56px; margin: var(--section) 0 0; border-radius: 14px;
}
.section-heading {
  max-width: 880px;
  margin-bottom: 38px;
}
.section-heading p {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 580px;
  margin: 18px 0 0;
}
.demos .section-heading a { display: inline-block; margin-top: 18px; font-weight: 600; }
.native-demo, .dashboard-proof, .drift, .two-ways, .ticket-context, .start { padding-top: var(--section); }
.dashboard-intro p { font-size: 1.1rem; line-height: 1.55; margin: 18px 0 0; }
.start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.setup-intro { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.setup-intro p { font-size: 1.1rem; margin: 18px 0 0; }
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prompt-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 14px 20px; font: 600 .7rem var(--mono); color: var(--accent); }
.prompt-top h3 { margin: 0; font: 600 1rem var(--sans); letter-spacing: -.02em; color: var(--fg); }
.terminal-setup pre { margin: 0; padding: 21px 20px; border: 0; border-radius: 0; background: transparent; font-size: .95rem; line-height: 1.8; }
.terminal-setup pre code { background: transparent; padding: 0; }
.copy-prompt {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font: inherit;
  padding: 7px 10px;
  cursor: pointer;
}
.copy-prompt:hover {
  background: var(--accent-strong);
}
#agent-prompt {
  font:
    500 1rem/1.55 var(--sans),
    sans-serif;
  padding: 17px 20px;
  margin: 0;
}
.prompt-foot {
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.pricing {
  padding: var(--section) 0;
}
.pricing .section-heading {
  margin-bottom: 42px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.plan:last-child {
  border-right: 0;
}
.plan.featured {
  background: var(--accent-soft);
}
.plan h3 {
  font-size: 1.1rem;
  margin: 0 0 37px;
}
.plan .price {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  letter-spacing: -0.06em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 15px;
}
.plan .price span {
  display: block;
  font:
    400 0.64rem/1.5 var(--mono),
    monospace;
  color: var(--muted);
  letter-spacing: 0;
}
.plan .terms {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 24px;
  min-height: 5.5em;
}
.plan .button {
  display: block;
  margin-top: auto;
  text-align: center;
  font-size: 0.65rem;
  padding: 10px 6px;
}
.pricing-note {
  max-width: 62em;
  font: 0.85rem/1.6 var(--sans);
  color: var(--muted);
  margin: 20px 0 0;
}
p.pricing-note:first-of-type { margin-top: 28px; font-weight: 600; color: var(--fg); }
ul.pricing-note { margin-top: 6px; padding-left: 1.1em; columns: 2 22em; column-gap: 40px; }
ul.pricing-note li { break-inside: avoid; margin-bottom: 2px; }
@media (max-width: 1000px) {
  .hero { padding-top: 50px; }
  .hero h1 {
    max-width: none;
  }
}
@media (max-width: 700px) {
  .landing .site-header { padding: 15px 17px; }
  .landing .site-header nav {
    gap: 10px;
  }
  .landing .site-header nav .wide {
    display: none;
  }
  .landing .site-header nav a,
  .landing .site-footer nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .landing .site-header nav a { white-space: nowrap; }
  .landing .wordmark,
  .landing .copy-prompt { min-height: 44px; }
  .landing main {
    padding: 0 17px;
  }
  .hero {
    padding: 50px 0 40px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }
  .hero-art { width: 100%; }
  .demos {
    display: block;
    padding: 48px 20px;
  }
  .mood-panel { margin-top: 40px; }
  .mood { width: 220px; }
  .setup-intro { display: block; }
  .setup-intro .button { margin-top: 22px; }
  .start {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .plan:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 480px) {
  .plan h3 {
    margin-bottom: 16px;
  }
  .plan .terms {
    min-height: 0;
  }
}
@media (max-width: 360px) {
  .landing .site-header { gap: 8px; }
  .landing .wordmark { gap: 5px; }
  .landing .wordmark .brand-face { width: 40px; height: auto; }
  .landing .site-header nav { gap: 6px; }
  .landing .site-header .button.small { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before,
  .landing *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.dashboard-prompt { margin: 28px 0 14px; font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--accent); }
.dashboard-player { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; cursor: pointer; }
.dashboard-player video { display: block; width: 100%; height: auto; }
.drift-intro { max-width: 720px; margin-bottom: 40px; }
.drift-intro h2 { margin: 0; }
.drift-intro p { margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.drift-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.drift-pair > figure { display: flex; flex-direction: column; }
.drift-pair > figure svg { flex: 1; aspect-ratio: 7 / 5; }
@media (max-width: 900px) { .drift-pair { grid-template-columns: 1fr; } }
.drift-panel, .token-chart { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.drift-panel figcaption, .token-chart figcaption { margin-bottom: 12px; font-size: 1.15rem; font-weight: 700; }
.drift-panel svg, .token-chart svg { display: block; width: 100%; height: auto; }
.drift-panel text, .token-chart text { fill: var(--muted); font: 500 13px var(--sans); }
.drift-paths path { fill: none; stroke-width: 2; stroke-linecap: round; }
.drift-panel.off .drift-paths path { stroke: #b5412c; }
.drift-panel.on .drift-paths path { stroke: #245b91; }
.drift-x { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; }
.drift-goal { fill: var(--surface); stroke: var(--fg); stroke-width: 3; }
.drift-note { margin: 10px 0 0; color: var(--muted); font: 500 .75rem/1.4 var(--mono); }
.token-chart text { font-size: 22px; }
.token-axis { fill: none; stroke: var(--accent-soft); stroke-width: 2; }
.token-line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.token-line.off { stroke: #b5412c; }
.token-line.on { stroke: #245b91; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .drift-paths path { stroke-dasharray: 1; animation: drift-draw linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    @keyframes drift-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }
}
h1.hero-claim { display: block; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; }
.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.way h3 { margin: 0; font-size: 1.3rem; }
.way ul { margin: 0; padding-left: 1.1em; color: var(--muted); line-height: 1.6; flex: 1; }
.way li + li { margin-top: 8px; }
.watch-video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dashboard-player:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.dashboard-player[data-capture="mobile"] { max-width: 390px; margin-inline: auto; }
.dashboard-player[data-capture="mobile"] video { aspect-ratio: 390 / 844; }
@keyframes dashboard-open { from { transform: translateY(12px); } to { transform: translateY(0); } }
.dashboard-player[data-opened="true"] { animation: dashboard-open .45s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .dashboard-player { animation: none; } }

.static-face { width: 38px; height: 24px; vertical-align: middle; }
.static-face .face-friendly { animation: none; }

/* Hero: copy on the left, a fleet console on the right. */
.hero-fleet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 9vh, 112px) 0 72px;
}
.hero-fleet .hero-copy { display: block; }
.hero-eyebrow { margin: 0 0 18px; font: 600 .8rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.hero-fleet h1.hero-claim { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.hero-claim span { display: block; }
@media (min-width: 961px) { .hero-fleet .hero-claim span { white-space: nowrap; } }
.hero-claim b { font-weight: inherit; white-space: nowrap; }
.hero-fleet .lede { max-width: 30em; margin: 24px 0 30px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 400; line-height: 1.55; color: var(--muted); }
.hero-fleet .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fleet .hero-detail { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }

.fleet-console {
  margin: 0; overflow: hidden; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.06);
  font: 500 clamp(.7rem, .95vw, .82rem)/1.5 var(--mono);
}
.console-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--green); }
.console-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: console-pulse 2s ease-in-out infinite; }
.console-body { padding: 18px 18px 20px; }
.console-cmd { margin: 0 0 12px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-cmd .prompt { color: var(--brick); margin-right: 8px; }
.console-cmd q { color: var(--amber); quotes: "\"" "\""; }
.fleet-rows { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.fleet-rows li { display: grid; grid-template-columns: 8px 6.5em 6em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); transition: background-color .4s; }
.fleet-rows li:first-child { border-top: 0; }
.fleet-rows .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.fleet-rows b { font-weight: 600; color: var(--fg); }
.fleet-rows code { color: var(--faint); background: none; border: 0; padding: 0; font: inherit; }
.fleet-rows .task { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.fleet-rows .state { justify-self: end; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: .9em; color: var(--brick); background: var(--brick-pale); }
.fleet-rows .state.ok { color: var(--green); background: var(--hover); }
.fleet-rows li.drifts:not(.steered) .dot { background: var(--brick); }
.fleet-rows li.steered { background: var(--hover); }
.console-steer { min-height: 1.5em; }
.console-note { margin: 0; color: var(--muted); }
.fleet-console[data-enhanced] .console-steer, .fleet-console[data-enhanced] .console-note { opacity: 0; transition: opacity .5s; }
.fleet-console[data-stage="steer"] .console-steer, .fleet-console[data-stage="steer"] .console-note { opacity: 1; }
@keyframes console-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .console-live::before { animation: none; } }
@media (max-width: 960px) {
  .hero-fleet { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-fleet::before { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%); }
}
@media (max-width: 560px) {
  .fleet-rows li { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "dot name state" ". task task"; gap: 4px 10px; }
  .fleet-rows .dot { grid-area: dot; }
  .fleet-rows b { grid-area: name; }
  .fleet-rows .state { grid-area: state; }
  .fleet-rows .task { grid-area: task; white-space: normal; }
  .fleet-rows code { display: none; }
  .console-body { padding: 16px 14px 18px; }
  .console-cmd.console-steer { white-space: normal; }
  .hero-fleet .actions .button { flex: 1 1 140px; text-align: center; }
}
@media (max-width: 700px) {
  .landing .site-header { padding-block: 6px; }
  .drift-panel, .token-chart { padding: 16px 14px; }
  .drift-panel text { font-size: 14px; }
  .token-chart text { font-size: 22px; }
  .board-feed { height: 320px; }
  .graph-pr, .graph-dependency, .graph-duplicate { display: none; }
}

/* A faithful mock of the Work page, in the app's clean style, fading out at the bottom like a cropped screenshot. */
.shot { margin: 0 auto; max-width: 1120px; max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.app {
  display: grid; grid-template-columns: 200px 1fr; min-height: 640px; text-align: left; font-size: 13px; line-height: 1.5;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 80px rgba(0,0,0,.07);
}
.app ul { list-style: none; margin: 0; padding: 0; }
.app-side { border-right: 1px solid var(--line); padding: 16px 10px; }
.app-logo { display: flex; align-items: center; gap: 8px; margin: 0 6px 22px; font-weight: 600; letter-spacing: .1em; font-size: 12px; }
.app-logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--brick); }
.app-side .lab { margin: 12px 10px 4px; color: var(--faint); font-size: 12px; }
.app-side .ws { margin: 0 0 4px; padding: 5px 10px; border-radius: 8px; background: var(--selected); font-weight: 500; }
.app-side li { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 8px; color: var(--muted); }
.app-side li i { width: 12px; height: 12px; border: 1.5px solid var(--faint); border-radius: 4px; }
.app-side li.on { background: var(--selected); color: var(--fg); font-weight: 500; box-shadow: inset 2px 0 0 var(--brick); }
.app-side li.on i { border-color: var(--brick); }
.app-main { padding: 14px 28px 22px; min-width: 0; background: var(--bg); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); margin-bottom: 22px; }
.find { width: 240px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--faint); }
.chips { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.chips .chip { padding: 2px 10px; border-radius: 999px; background: var(--selected); }
.chips b { color: var(--fg); font-weight: 600; }
.grp { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-weight: 600; font-size: 13px; }
.grp small { color: var(--faint); font-weight: 400; }
.d { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d.amber { background: var(--amber); } .d.blue { background: var(--blue); } .d.green { background: var(--green); }
.rows li { display: grid; grid-template-columns: 14px 1fr 70px 90px 160px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rows b, .rows u { font-weight: 400; text-decoration: none; color: var(--muted); font-size: 12px; }
.rows em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; }

/* Contact */
.contact { max-width: 560px !important; padding-top: 56px !important; }
.contact h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0; }
.contact .lede { margin: 16px 0 36px; font-size: 1.1rem; max-width: none; color: var(--muted); }
.contact form { display: grid; gap: 18px; }
.contact label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.contact input, .contact select, .contact textarea {
  font: 400 1rem var(--sans); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%;
}
.contact input, .contact select { min-height: 44px; }
.contact textarea { resize: vertical; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--brick); outline-offset: 1px; }
.contact .button { justify-self: start; }
.contact .note, .contact .direct { margin: 0; color: var(--muted); font-size: 0.85rem; }
.contact .direct { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact .direct a { color: var(--fg); }

/* Code everywhere */
pre {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; font-size: 0.84rem; line-height: 1.6; tab-size: 2;
}
:not(pre) > code {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px;
  padding: 0.05em 0.35em; font-size: 0.88em; overflow-wrap: anywhere;
}

/* Docs */
.docs-theme-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.docs-theme-control[hidden] { display: none; }
.docs-theme-control select {
  font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px;
}
.docs-layout {
  max-width: var(--wide); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start;
}
.docs-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 8px 0 24px; font-size: 0.93rem; }
.docs-nav ul, .docs-menu ul { list-style: none; margin: 0 0 18px; padding: 0; }
.docs-nav li a, .docs-menu li a {
  display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--muted); text-decoration: none;
}
.docs-nav li a:hover, .docs-menu li a:hover { color: var(--fg); background: var(--surface); }
.docs-nav li a[aria-current], .docs-menu li a[aria-current] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-group { margin: 0 0 6px; font: 500 0.78rem/1.4 var(--sans); color: var(--faint); }
.docs-menu { display: none; }

.docs-contents { margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.docs-contents > summary { min-height: 44px; padding: 8px 0; line-height: 1.5; cursor: pointer; font-weight: 600; }
.docs-contents ul { margin: 0; padding: 0 0 8px 22px; }
.docs-contents li { margin: 0; }
.docs-contents a { display: block; min-height: 44px; padding: 8px 0; line-height: 1.5; overflow-wrap: anywhere; }

.prose { min-width: 0; max-width: 760px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 8px 0 16px; font-weight: 600; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 1.1rem; margin: 30px 0 8px; }
.prose h4 { font-size: 1rem; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li code, .prose p code { overflow-wrap: anywhere; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }
.docs pre {
  max-width: 100%; margin: 18px 0; padding: 16px 18px;
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--docs-panel); border: 1px solid var(--line);
}
.docs .tok-key, .docs .tok-command { color: var(--syntax-key); font-weight: 600; }
.docs .tok-string { color: var(--syntax-string); }
.docs .tok-number { color: var(--syntax-number); }
.docs .tok-literal, .docs .tok-method { color: var(--syntax-literal); font-weight: 600; }
.docs .tok-punctuation { color: var(--fg); }
.docs :not(pre) > code {
  border: 0; border-radius: 4px;
  padding: 0.05em 0.3em; background: var(--hover);
}
.prose blockquote {
  margin: 20px 0; padding: 12px 16px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 8px; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.docs .table { max-width: 100%; }
.docs th, .docs td { padding: 10px 13px; border-color: var(--line); overflow-wrap: anywhere; }
.docs th {
  color: var(--fg); background: var(--hover);
  font: 600 0.86rem/1.4 var(--sans); letter-spacing: 0; text-transform: none;
}
.docs .table code { background: transparent; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { font: 600 0.74rem/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td code { overflow-wrap: break-word; }
.as-markdown { margin-top: 40px; font-size: 0.9rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.steps a {
  display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); text-decoration: none; color: var(--fg); font-weight: 600;
}
.steps a span { display: block; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.steps a:hover { border-color: var(--accent); }
.steps .next { grid-column: 2; text-align: right; }

/* Legal pages */
.legal main { max-width: 760px; margin: 24px auto 0; padding: 0 16px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin: 16px 0 12px; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; }
.contents { margin: 20px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contents p { margin: 0 0 8px; font: 600 0.74rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contents ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.contents li { margin: 0 0 6px; break-inside: avoid; font-size: 0.93rem; }
.contents a { text-decoration: none; }
@media (max-width: 640px) { .contents ul { columns: 1; } .legal h2 { margin-top: 32px; } }

/* Not found */
.notfound { max-width: 640px; margin: 64px auto; padding: 0 16px; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { display: none; }
  .docs-menu {
    display: block; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  }
  .docs-menu summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
  .docs-menu nav { padding: 4px 14px 2px 24px; }
}
@media (max-width: 600px) {
  .docs .site-header { gap: 8px; flex-wrap: wrap; }
  .docs .site-header nav { width: 100%; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
  .docs-theme-control { font-size: 0; }
  .docs-theme-control select { font-size: 0.85rem; max-width: 76px; }
  .docs th, .docs td { padding: 9px 10px; }
}
@media (max-width: 360px) {
  .docs .site-header { flex-wrap: wrap; }
  .docs .site-header nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-header nav { gap: 14px; }
  .site-header nav .wide { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps .next { grid-column: 1; }
  pre { font-size: 0.8rem; }
}

