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

:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #fafafa;
  --selected: #eeeeee;
  --text: #202020;
  --muted: #666666;
  --faint: #707070;
  --line: #dedede;
  --line-dark: #c9c9c9;
  --green: #30a46c;
  --green-text: #1f7a4d;
  --red: #e5484d;
  --mono: "Geist Mono", Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --body-font: var(--mono);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #000000; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
::selection { background: var(--text); color: var(--background); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: inherit; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); }
code { font-size: .94em; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; top: -60px; left: 20px; padding: 8px 12px; background: var(--text); color: #ffffff; z-index: 100; }
.skip-link:focus { top: 12px; color: #ffffff; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .96); }
.header-inner { min-height: 52px; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.wordmark { color: var(--text); text-decoration: none; font-size: 13px; }
.header-logo { display: inline-grid; place-items: center; justify-self: start; width: 32px; height: 44px; color: #111111; }
.header-logo svg { display: block; width: 28px; height: 28px; }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: 30px; color: var(--text); font-size: 13px; }
.header-inner nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header-inner nav a[aria-current="page"] { font-weight: 700; }
.header-inner nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: currentColor; content: ""; }
.header-end { display: flex; align-items: center; justify-self: end; gap: 14px; }
.github-link { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text); }
.github-link svg { width: 18px; height: 18px; }
.maker { color: var(--text); font-size: 12px; white-space: nowrap; }
.maker a { margin-left: 5px; font-weight: 700; }
.wordmark, .header-logo, .header-inner nav a, .github-link, .maker a, .welcome-line a, .text-link, .footer-links a, .docs-sidebar a, .about-links a, .transcript summary {
  transition: color 120ms ease, opacity 120ms ease;
}

.hero { padding-bottom: 64px; text-align: center; }
.hero-marquee { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 28px; background: #ffffff; }
.hero-marquee::after { position: absolute; z-index: 1; inset: 72% 0 0; background: linear-gradient(to bottom, transparent, #ffffff); pointer-events: none; content: ""; }
.hero-brand { position: relative; z-index: 2; }
.hero-inner { padding-top: 32px; }
.hero-warp { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 28% 35%, #e7e2ea 0 1px, transparent 1.5px), radial-gradient(circle at 72% 60%, #eeeaf0 0 1px, transparent 1.5px), #ffffff; background-size: 12px 12px, 16px 16px, auto; }
.hero-warp canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.hero-warp[data-ready="true"] canvas { opacity: 1; }
.hero-warp[data-mask="ready"] + .hero-brand .pixel-logo { opacity: 0; }
.pixel-logo {
  display: block;
  width: min(100%, 532px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  color: var(--text);
}
.pixel-logo path { fill: currentColor; shape-rendering: crispEdges; }
.welcome-line { margin-top: 16px; color: var(--text); font-size: 12px; }
.welcome-line span { padding: 0 4px; }
.welcome-line a { color: var(--text); }
.hero-copy { max-width: 680px; margin: 0 auto; }
.hero-copy p:first-child { color: #000000; font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }
.hero-copy p:last-child { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-family: var(--body-font); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 34px; margin: 40px auto 0; }
.install-command { display: flex; align-items: center; width: 320px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 3px; text-align: left; font-size: 13px; }
.install-command > span { margin-right: 9px; color: var(--text); }
.install-command code { color: var(--text); }
.copy-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px auto;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 3px;
  transition: color 120ms ease, transform 120ms var(--ease-out);
}
.copy-button svg {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1);
}
.copy-button .copy-icon { opacity: 1; scale: 1; filter: blur(0); }
.copy-button .check-icon { opacity: 0; scale: .25; filter: blur(4px); }
.copy-button.copied { color: var(--green); }
.copy-button.copied .copy-icon { opacity: 0; scale: .25; filter: blur(4px); }
.copy-button.copied .check-icon { opacity: 1; scale: 1; filter: blur(0); }
.copy-button:active, .button:active, .capture-controls button:active, .recording-viewer-actions button:active { transform: scale(.96); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.copy-feedback { display: block; min-height: 20px; margin: 8px auto -4px; color: var(--green-text); font-family: var(--body-font); font-size: 13px; }
.install-note { margin: 10px auto 0; color: var(--faint); font-family: var(--body-font); font-size: 13px; }

.section-label, .page-kicker { font-weight: 700; color: var(--text); }
.process-section { padding: 56px 0 40px; background: var(--background); }
.process-intro { display: grid; grid-template-columns: 1fr 1fr; width: min(1200px, calc(100% - 64px)); align-items: stretch; }
.process-intro .section-heading { display: block; padding: 28px 96px 28px 0; }
.section-number { padding-top: 7px; color: var(--faint); font-size: 12px; }
.process-intro .section-heading h2 { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.process-intro .section-heading h2 span { margin-right: 3px; }
.process-intro .section-heading h2 + p { max-width: 420px; margin-top: 24px; color: var(--muted); font-family: var(--body-font); font-size: 16px; line-height: 1.6; }
.process-steps { margin: 0; padding: 6px 0 6px 72px; border-left: 1px solid var(--line); list-style: none; }
.process-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0 20px; }
.process-steps li > span { padding-top: 2px; color: var(--faint); font-size: 12px; }
.process-steps strong { font-size: 14px; }
.process-steps p { margin-top: 5px; color: var(--muted); font-family: var(--body-font); font-size: 14px; line-height: 1.55; }
.demo-wrap { width: min(1100px, calc(100% - 64px)); margin: 72px auto 0; }
.demo-tabs { position: relative; display: flex; width: fit-content; gap: 28px; }
.demo-tabs button { min-height: 36px; padding: 0 0 9px; border: 0; background: transparent; color: var(--faint); font-size: 12px; text-align: left; transition: color 120ms ease, opacity 120ms ease; }
.demo-tabs button span { margin-right: 8px; color: var(--faint); font-size: 12px; }
.demo-tabs button[aria-selected="true"] { color: var(--text); font-weight: 700; }
.tab-indicator { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; background: var(--text); pointer-events: none; transform: translateX(var(--indicator-x, 0)) scaleX(var(--indicator-width, 0)); transform-origin: left center; }
.demo-tabs[data-ready] .tab-indicator { transition: transform 240ms cubic-bezier(0.2, 0, 0, 1); }
.capture-shell { display: grid; margin-top: 0; background: var(--background); outline: 1px solid rgb(0 0 0 / .1); box-shadow: none; }
.capture-shell [role="tabpanel"][data-state] { grid-area: 1 / 1; transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1), transform 220ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 180ms; }
.capture-shell [role="tabpanel"][data-state="active"] { z-index: 1; opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.capture-shell [role="tabpanel"][data-state="inactive"] { z-index: 0; opacity: 0; visibility: hidden; transform: translateY(4px) scale(.995); pointer-events: none; }
.demo-tabs[data-motion="none"] button, .demo-tabs[data-motion="none"] .tab-indicator, .capture-shell[data-motion="none"] [role="tabpanel"][data-state] { transition: none; }
.demo-image { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 650; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.capture-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 17px; color: var(--faint); font-family: var(--body-font); font-size: 13px; }
.capture-controls p { max-width: 690px; }
.capture-actions { display: flex; align-items: center; gap: 18px; flex: none; font-family: var(--mono); }
.capture-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 12px; }
.capture-controls button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: var(--text); font-size: 12px; transition: opacity 120ms ease, transform 120ms var(--ease-out); }
.capture-controls button svg { width: 13px; height: 13px; overflow: visible; }
.mobile-pan-note { display: none; }
.icon-play, .icon-pause { transform-box: fill-box; transform-origin: center; transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1); }
.icon-play { opacity: 1; scale: 1; filter: blur(0); }
.icon-pause { opacity: 0; scale: .25; filter: blur(4px); }
.motion-toggle[aria-pressed="true"] .icon-play { opacity: 0; scale: .25; filter: blur(4px); }
.motion-toggle[aria-pressed="true"] .icon-pause { opacity: 1; scale: 1; filter: blur(0); }

body.recording-viewer-open { overflow: hidden; }
.recording-viewer {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--background);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 18px 60px rgb(0 0 0 / .18);
  color: var(--text);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}
.recording-viewer[open] { opacity: 1; }
.recording-viewer[data-state="closing"] { opacity: 0; pointer-events: none; }
.recording-viewer::backdrop { background: rgb(0 0 0 / .46); opacity: 0; transition: opacity 160ms var(--ease-out); }
.recording-viewer[open]::backdrop { opacity: 1; }
.recording-viewer[data-state="closing"]::backdrop { opacity: 0; }
@starting-style {
  .recording-viewer[open], .recording-viewer[open]::backdrop { opacity: 0; }
}
.recording-viewer-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: min(760px, calc(100dvh - 32px)); min-height: 0; }
.recording-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 16px 12px 18px; border-bottom: 1px solid var(--line); }
.recording-viewer-heading p { color: var(--faint); font-size: 11px; }
.recording-viewer-heading h2 { margin-top: 1px; font-size: 16px; font-weight: 700; }
.recording-viewer-actions { display: flex; align-items: center; gap: 8px; }
.recording-viewer-actions button { min-height: 44px; border: 0; background: transparent; color: var(--text); transition: color 120ms ease, transform 120ms var(--ease-out); }
.recording-viewer-play { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; }
.recording-viewer-play svg { width: 13px; height: 13px; overflow: visible; }
.recording-viewer-close { display: grid; place-items: center; width: 44px; padding: 0; border-radius: 3px; }
.recording-viewer-close svg { width: 18px; height: 18px; }
.recording-viewer-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.recording-viewer-tabs button { position: relative; min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--faint); text-align: left; }
.recording-viewer-tabs button + button { border-left: 1px solid var(--line); }
.recording-viewer-tabs button span { margin-right: 8px; font-size: 11px; }
.recording-viewer-tabs button[aria-pressed="true"] { color: var(--text); font-weight: 700; }
.recording-viewer-tabs button[aria-pressed="true"]::after { position: absolute; right: 18px; bottom: -1px; left: 18px; height: 2px; background: var(--text); content: ""; }
.recording-viewer-content { min-height: 0; overflow: auto; padding: 16px; overscroll-behavior: contain; background: var(--surface); outline: none; -webkit-overflow-scrolling: touch; }
.recording-viewer-content:focus-visible { box-shadow: inset 0 0 0 2px var(--text); }
.recording-viewer-image { display: block; width: 1100px; max-width: none; height: auto; margin-inline: auto; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.recording-viewer-help { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.run-result { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin-top: 58px; border-bottom: 1px solid var(--line-dark); text-align: center; }
.run-result > div { padding: 0 22px 10px; }
.run-result span { color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.run-result p { margin-top: 1px; color: var(--faint); font-size: 12px; }
.transcript { max-width: 980px; margin-top: 18px; color: var(--muted); font-family: var(--body-font); font-size: 14px; }
.transcript summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; cursor: pointer; color: var(--text); font-family: var(--mono); font-size: 14px; font-weight: 700; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary svg { width: 16px; height: 16px; flex: none; transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.transcript[open] summary svg { transform: rotate(180deg); }
.transcript p { max-width: 980px; margin-top: 8px; line-height: 1.55; }
.transcript code { color: var(--text); }

.benchmark-section { width: min(1200px, calc(100% - 64px)); padding-top: 48px; padding-bottom: 64px; }
.benchmark-heading { margin-bottom: 31px; }
.benchmark-heading .section-number { margin-bottom: 5px; }
.benchmark-heading h2 { color: #000000; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.benchmark-heading h2 + p { max-width: 780px; margin-top: 13px; color: var(--muted); font-family: var(--body-font); font-size: 16px; line-height: 1.6; }
.benchmark-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 54px; padding: 8px 14px; color: var(--faint); font-size: 12px; }
.benchmark-task { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 13px; }
.custom-select { position: relative; width: 240px; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--background); color: var(--text); text-align: left; }
.custom-select-trigger > svg { width: 16px; height: 16px; margin-left: 12px; flex: none; transform-box: fill-box; transform-origin: center; transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.custom-select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.custom-select-menu { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; width: 100%; padding: 5px; border: 1px solid var(--line-dark); border-radius: 7px; background: var(--background); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .12); color: var(--text); }
.custom-select-menu [role="option"] { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; padding: 6px 9px; border-radius: 2px; cursor: pointer; }
.custom-select-menu [role="option"].is-active { background: var(--selected); }
.custom-select-menu [role="option"] svg { width: 14px; height: 14px; opacity: 0; scale: .25; filter: blur(4px); transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1); }
.custom-select-menu [role="option"][aria-selected="true"] svg { opacity: 1; scale: 1; filter: blur(0); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 400; }
thead th { background: var(--surface); color: var(--muted); font-size: 12px; }
.benchmark-table { min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; white-space: nowrap; }
.benchmark-table th, .benchmark-table td { padding-inline: 14px; }
.benchmark-table thead th { padding-top: 13px; padding-bottom: 13px; background: transparent; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; }
.benchmark-table th:nth-child(1) { width: 22%; }
.benchmark-table th:nth-child(2) { width: 11%; }
.benchmark-table th:nth-child(3) { width: 12%; }
.benchmark-table th:nth-child(4) { width: 12%; }
.benchmark-table th:nth-child(5) { width: 14%; }
.benchmark-table th:nth-child(6) { width: 13%; }
.benchmark-table th:nth-child(7) { width: 16%; }
.benchmark-table th:not(:first-child), .benchmark-table td { text-align: left; font-variant-numeric: tabular-nums; }
.benchmark-table tbody th { color: var(--text); }
.agent-label { display: inline-flex; align-items: center; gap: 9px; vertical-align: middle; }
.agent-logo { display: block; width: 18px; height: 18px; flex: none; object-fit: contain; }
.metric-content { display: grid; grid-template-columns: minmax(32px, 1fr) auto; align-items: center; gap: 8px; }
.metric-bar { position: relative; display: block; width: 100%; height: 14px; background: var(--line); }
.metric-bar::after { position: absolute; inset: 0; background: var(--text); content: ""; transform: scaleX(var(--bar-scale)); transform-origin: left center; transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.metric-value { min-width: 47px; }
.benchmark-table td[data-metric="toolCalls"] .metric-value { min-width: 28px; }
.benchmark-table td[data-metric="inputTokens"] .metric-value { min-width: 54px; }
.benchmark-table td[data-metric="outputTokens"] .metric-value { min-width: 40px; }
.benchmark-table td[data-metric="rss"] .metric-content { gap: 10px; }
.benchmark-table td[data-metric="rss"] .metric-value { min-width: 72px; }
.handwork-row th, .handwork-row td { border-bottom-color: transparent; background: var(--selected); color: var(--text); font-weight: 700; }
.handwork-row th:first-child { border-radius: 4px 0 0 4px; }
.handwork-row td:last-child { border-radius: 0 4px 4px 0; }
.row-tag { margin-left: 7px; padding: 2px 5px; border: 1px solid var(--line-dark); border-radius: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.benchmark-scale-note { margin-top: 10px; color: var(--faint); font-size: 11px; }
.benchmark-result { margin-top: 24px; color: var(--text); font-family: var(--body-font); font-size: 15px; }
.benchmark-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 18px 0; }
.benchmark-notes p { color: var(--faint); font-family: var(--body-font); font-size: 13px; line-height: 1.55; }
.benchmark-notes p + p { padding-left: 32px; border-left: 1px solid var(--line-dark); }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 48px; width: min(1280px, calc(100% - 64px)); min-height: 220px; padding: 64px 40px 72px; }
.closing h2 { color: #000000; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.closing h2 + p { margin-top: 12px; color: var(--muted); font-family: var(--body-font); font-size: 16px; }
.closing code { color: var(--faint); font-style: italic; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--text); background: var(--text); color: #ffffff; text-decoration: none; font-size: 13px; white-space: nowrap; transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.button:hover { background: #000000; color: #ffffff; }

.site-footer { display: flex; align-items: flex-start; gap: 32px; width: min(1280px, calc(100% - 64px)); margin: auto; padding: 26px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand .wordmark { color: var(--text); }
.site-footer p { margin-top: 2px; color: var(--faint); font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 36px; margin-left: auto; color: var(--text); }
.footer-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links > a:not(.github-link) { text-underline-offset: 6px; }
.footer-github { flex: none; }
.footer-note { display: none; }

.docs-page { padding-top: 64px; padding-bottom: 96px; }
.docs-hero { max-width: 760px; }
.docs-hero h1 { max-width: 720px; margin-top: 14px; color: #000000; font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.page-lead, .about-lead { max-width: 690px; margin-top: 18px; color: var(--muted); font-family: var(--body-font); font-size: 17px; line-height: 1.65; }
.docs-hero .page-lead { max-width: 620px; margin-top: 14px; font-size: 16px; }
.docs-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 72px; margin-top: 64px; align-items: start; }
.docs-sidebar { position: sticky; top: 80px; align-self: start; }
.docs-nav-heading { min-height: 32px; color: var(--text); font-weight: 700; }
.docs-nav-toggle { display: none; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font-weight: 700; text-align: left; }
.docs-nav-toggle svg { display: none; width: 16px; height: 16px; transform-box: fill-box; transform-origin: center; transition: transform 150ms ease; }
.docs-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 17px; color: var(--muted); font-size: 12px; }
.docs-sidebar nav a { margin-inline: -8px; padding: 5px 8px; border-radius: 3px; text-decoration: none; }
.docs-sidebar nav a[aria-current="location"] { background: var(--selected); color: var(--text); font-weight: 700; }
.docs-repo { display: block; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; }
.docs-content { min-width: 0; max-width: 760px; }
.doc-section { margin-top: 64px; scroll-margin-top: 84px; }
.doc-section:first-child { margin-top: 0; }
.doc-section h2 { margin-bottom: 20px; color: #000000; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.doc-section h2 > span { display: block; margin-bottom: 5px; color: var(--faint); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.doc-section p { margin: 17px 0; color: var(--muted); font-family: var(--body-font); font-size: 16px; line-height: 1.7; }
.doc-section p code, .prose code { padding: 2px 4px; background: var(--selected); color: var(--text); }
.doc-section .text-link { display: inline-block; margin-top: 3px; font-size: 13px; }
pre { margin: 20px 0; padding: 18px 20px; overflow: auto; border-left: 2px solid var(--text); background: var(--surface); color: var(--text); line-height: 1.8; }
pre code { padding: 0; background: transparent; white-space: pre; font-size: 12px; }
.code-comment { color: var(--faint); }
.note { margin: 20px 0; padding: 16px 18px; border-left: 2px solid var(--line-dark); background: var(--surface); }
.note strong { color: var(--text); font-size: 14px; }
.note p { margin: 7px 0 0; font-size: 15px; }
.doc-section table { min-width: 540px; border: 0; font-family: var(--body-font); font-size: 14px; }
.doc-section thead th { background: transparent; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.doc-section td { color: var(--muted); }
.doc-section th { white-space: nowrap; }

.about-page { padding-top: 64px; padding-bottom: 88px; }
.about-hero { max-width: 760px; }
.about-hero h1 { max-width: 720px; margin-top: 14px; color: #000000; font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.about-lead { max-width: 620px; margin-top: 14px; font-size: 17px; }
.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; margin-top: 72px; }
.about-section .section-number, .about-resources .section-number { padding-top: 0; margin-bottom: 5px; }
.about-section h2, .about-resources h2 { color: #000000; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.about-section h2 .row-tag { position: relative; top: -2px; vertical-align: middle; }
.about-copy { max-width: 500px; margin-top: 22px; }
.about-copy p { margin-bottom: 18px; color: var(--muted); font-family: var(--body-font); font-size: 16px; line-height: 1.7; }
.about-copy p:last-child { margin-bottom: 0; }
.about-resources { margin-top: 80px; padding-top: 42px; border-top: 1px solid var(--line); }
.about-resources > h2 + p { max-width: 600px; margin-top: 8px; color: var(--muted); font-family: var(--body-font); font-size: 15px; }
.about-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.about-links a { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
.about-links span { display: inline; font-size: 13px; }
.about-links span:first-child { text-decoration: underline; text-underline-offset: 5px; }

.error-page { display: grid; align-content: center; min-height: calc(100vh - 210px); padding-top: 72px; padding-bottom: 96px; }
.error-page h1 { max-width: 720px; margin-top: 14px; color: #000000; font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.16; letter-spacing: -.04em; }
.error-page > p:not(.page-kicker) { max-width: 560px; margin-top: 18px; color: var(--muted); font-family: var(--body-font); font-size: 18px; }
.error-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover, .header-logo:hover, .header-inner nav a:hover, .github-link:hover, .maker a:hover, .welcome-line a:hover, .text-link:hover, .footer-links a:hover, .docs-sidebar a:hover, .about-links a:hover, .transcript summary:hover { opacity: .58; }
  .docs-sidebar nav a:hover { background: var(--surface); color: var(--text); opacity: 1; }
  .copy-button:hover { color: var(--faint); }
  .copy-button.copied:hover { color: var(--green); }
  .demo-tabs button:not([aria-selected="true"]):hover { color: var(--text); }
  .capture-controls button:hover { opacity: .58; }
}

@media (max-width: 820px) {
  .header-inner { gap: 16px; padding-inline: 20px; }
  .wrap { width: calc(100% - 48px); }
  .docs-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 48px; }
  .about-columns { gap: 40px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 24px; }
  .header-inner { min-height: 60px; gap: 8px; padding-inline: 14px; }
  .header-logo { width: 44px; }
  .header-inner nav { gap: 16px; font-size: 13px; }
  .header-inner nav a[aria-current="page"]::after { bottom: 5px; }
  .header-end { gap: 0; }
  .header-end .github-link { width: 44px; height: 44px; }
  .maker { display: none; }
  .wrap { width: calc(100% - 36px); }
  .hero { padding-bottom: 38px; }
  .hero-marquee { padding: 36px 0 30px; }
  .hero-inner { padding-top: 26px; }
  .pixel-logo { width: 100%; }
  .welcome-line { max-width: 300px; margin-inline: auto; line-height: 1.9; }
  .welcome-line span { padding: 0 2px; }
  .hero-copy p:first-child { font-size: 26px; }
  .hero-copy p:last-child { font-size: 16px; }
  .hero-actions { align-items: center; flex-direction: column; gap: 15px; }
  .install-command { width: min(100%, 320px); }
  .copy-feedback { margin-top: 9px; }
  .install-note { max-width: 330px; font-size: 13px; }
  .process-section { padding-top: 26px; padding-bottom: 40px; }
  .process-intro { grid-template-columns: 1fr; width: calc(100% - 36px); }
  .process-intro .section-heading { padding: 0 0 32px; }
  .process-intro .section-heading h2 + p { max-width: 360px; }
  .process-steps { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .demo-wrap { width: calc(100% - 24px); margin-top: 40px; }
  .demo-tabs { width: 100%; }
  .demo-tabs button { min-width: max-content; min-height: 44px; padding-inline: 10px; flex: 1; }
  .capture-shell { overflow: hidden; }
  .capture-shell [role="tabpanel"][data-state] { min-width: 0; }
  .demo-image { width: 100%; max-width: 100%; }
  .capture-controls { align-items: flex-start; flex-direction: column; gap: 7px; padding-inline: 6px; }
  .capture-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .mobile-pan-note { display: inline; color: var(--text); font-weight: 600; }
  .capture-actions a { order: -1; padding-inline: 12px; border: 1px solid var(--line-dark); border-radius: 3px; text-decoration: none; }
  .recording-viewer { width: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .recording-viewer-shell { height: 100dvh; }
  .recording-viewer-header { padding-inline: 12px 8px; }
  .recording-viewer-play { width: 44px; padding: 0; justify-content: center; }
  .recording-viewer-play span { display: none; }
  .recording-viewer-tabs button { padding-inline: 12px; }
  .recording-viewer-tabs button[aria-pressed="true"]::after { right: 12px; left: 12px; }
  .recording-viewer-content { padding: 0; }
  .recording-viewer-image { margin-inline: 0; }
  .run-result { grid-template-columns: 1fr 1fr; row-gap: 18px; margin-top: 42px; }
  .run-result > div { padding-inline: 8px; }
  .benchmark-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .benchmark-task { width: 100%; }
  .custom-select { width: auto; flex: 1; }
  .benchmark-notes { grid-template-columns: 1fr; gap: 12px; }
  .benchmark-notes p + p { padding-left: 0; border-left: 0; }
  .benchmark-section { padding-top: 48px; padding-bottom: 56px; }
  .benchmark-heading { margin-bottom: 32px; }
  .benchmark-table { display: block; min-width: 0; white-space: normal; }
  .benchmark-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .benchmark-table tbody { display: grid; gap: 12px; }
  .benchmark-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--background); }
  .benchmark-table th, .benchmark-table td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
  .benchmark-table tbody th { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .benchmark-table td::before { display: block; margin-bottom: 5px; color: var(--faint); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; content: attr(data-label); }
  .metric-content { grid-template-columns: minmax(36px, 1fr) auto; gap: 8px 10px; }
  .handwork-row th, .handwork-row td { background: transparent; }
  .handwork-row { background: var(--selected) !important; border-color: var(--line-dark) !important; }
  .handwork-row th:first-child, .handwork-row td:last-child { border-radius: 0; }
  .closing { align-items: flex-start; flex-direction: column; min-height: 0; padding: 52px 0 58px; }
  .closing h2 { font-size: 24px; }
  .site-footer { width: calc(100% - 36px); flex-direction: column; padding: 24px 0 36px; }
  .footer-links { flex-wrap: wrap; margin-left: 0; gap: 12px 24px; }
  .docs-page { padding-top: 48px; padding-bottom: 72px; }
  .docs-hero h1 { font-size: 27px; }
  .docs-layout { display: block; margin-top: 38px; }
  .docs-sidebar { position: static; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .docs-nav-heading { display: none; }
  .docs-nav-toggle { display: flex; font-size: 14px; }
  .docs-nav-toggle svg { display: block; }
  .docs-sidebar nav { flex-direction: column; gap: 2px; margin-top: 8px; font-size: 14px; }
  .docs-sidebar nav a { display: flex; align-items: center; min-height: 44px; margin-inline: 0; padding: 8px 10px; }
  .docs-repo { display: none; }
  .doc-section { margin-top: 52px; }
  .doc-section .table-scroll { overflow: visible; }
  .doc-section table { display: block; min-width: 0; }
  .doc-section table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .doc-section table tbody { display: block; }
  .doc-section table tr { display: grid; grid-template-columns: minmax(96px, .75fr) minmax(0, 1.75fr); gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .doc-section table th, .doc-section table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  pre { padding: 15px; }
  pre code { font-size: 12px; }
  .about-page { padding-top: 48px; padding-bottom: 72px; }
  .about-hero h1 { font-size: 27px; }
  .about-columns { grid-template-columns: 1fr; gap: 52px; margin-top: 56px; }
  .about-copy { margin-top: 18px; }
  .about-resources { margin-top: 60px; padding-top: 34px; }
  .about-links { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .error-page { min-height: calc(100vh - 250px); padding-top: 64px; padding-bottom: 72px; }
  .error-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copy-button, .button, .capture-controls button { transition: none; }
  .recording-viewer, .recording-viewer::backdrop, .recording-viewer-actions button { transition: none; }
  .copy-button svg, .icon-play, .icon-pause, .custom-select-menu [role="option"] svg { scale: 1; filter: none; transition: opacity 120ms ease; }
  .custom-select-trigger > svg, .metric-bar::after { transition: none; }
  .transcript summary svg, .demo-tabs[data-ready] .tab-indicator, .capture-shell [role="tabpanel"][data-state] { transition: none; }
}
