:root {
  color-scheme: dark;
  --bg: #111311;
  --panel: #181b18;
  --raised: #20241f;
  --text: #eeefe8;
  --muted: #a7ada2;
  --line: #32382f;
  --accent: #e8b66f;
  --ink: #171914;
  --soft: #25271f;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f0;
  --panel: #efefe6;
  --raised: #e5e7dc;
  --text: #22271f;
  --muted: #596052;
  --line: #d3d7c9;
  --accent: #81511d;
  --ink: #fff;
  --soft: #efeadb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a,
button {
  touch-action: manipulation;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(44px, 5.6vw, 78px);
}
h2 {
  font-size: clamp(30px, 3.3vw, 44px);
}
h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
code,
kbd,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.86em;
}
p code,
li code,
td code {
  background: var(--panel);
  color: var(--text);
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.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;
  left: 16px;
  top: -100px;
  padding: 10px 18px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px;
  margin: auto;
  min-height: 84px;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 29px;
  height: 29px;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 27px/1 var(--mono);
  border-radius: 5px;
}
.brand-label {
  font: 10px var(--mono);
  border: 1px solid var(--line);
  padding: 3px 5px;
  color: var(--muted);
  margin-left: 2px;
  letter-spacing: 0.03em;
}
.desktop-nav {
  display: flex;
  gap: 30px;
  margin: auto;
  font-size: 13px;
  color: var(--muted);
}
.desktop-nav [aria-current] {
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--accent);
  color: var(--ink);
  padding: 13px 21px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 5px;
}
.button:hover {
  color: var(--ink);
  filter: brightness(1.08);
}
.button-small {
  font-size: 12px;
  padding: 9px 14px;
  gap: 18px;
}
.button-secondary {
  background: none;
  color: var(--text);
  border-color: var(--line);
}
.button-secondary:hover {
  color: var(--text);
  border-color: var(--muted);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.eyebrow,
.doc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.13em;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.hero {
  padding: 100px 0 76px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero h1 {
  max-width: 650px;
  line-height: 1.04;
}
.hero h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 17px;
  line-height: 1.7;
  max-width: 490px;
  margin-top: 26px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 31px 0 25px;
}
.hero-meta {
  font: 11px var(--mono);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
}
.badge {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.meta-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.meta-row > span:first-child {
  display: none;
}
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px #00000012;
}
.terminal-top {
  height: 43px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font: 10px var(--mono);
  color: var(--muted);
}
.terminal-dots {
  display: flex;
  gap: 5px;
}
.terminal-dots i {
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 50%;
}
/* The demo stays fully readable without JavaScript. Motion only highlights its state. */
.demo-label {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
}
.handoff-body {
  padding: 24px;
}
.demo-profiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.demo-profile {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: border-color 240ms ease;
}
.demo-profile[data-owner="true"] {
  border-color: var(--accent);
  background: var(--soft);
}
.profile-caption {
  display: block;
  color: var(--muted);
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.06em;
}
.demo-profile strong {
  display: block;
  margin: 5px 0 7px;
  font: 12px/1.5 var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
}
.profile-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  /* The longest label ("Context transferred") can wrap to two lines in the narrowest card;
     reserving the space up front means that never shifts the surrounding layout. */
  min-height: 30px;
}
.profile-state::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
}
.profile-state[data-tone="accent"] {
  color: var(--accent);
}
.profile-state[data-tone="accent"]::before {
  background: var(--accent);
  border-color: var(--accent);
}
.profile-arrow {
  color: var(--muted);
  text-align: center;
}
/* A single status line is the main storytelling device; the demo never needs a full
   numbered-step breakdown to be understandable. */
.demo-status {
  /* Reserved for two lines at the smallest configured size: the longest status line must
     never shift the surrounding layout relative to the shortest one. */
  min-height: 39px;
  margin: 0;
  font: 500 13px/1.5 var(--sans);
  color: var(--text);
  letter-spacing: -0.01em;
}
.demo-progress {
  display: none;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-top: 18px;
}
.demo-progress span {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.demo-progress span::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.handoff-demo[data-enhanced] .demo-progress {
  display: grid;
}
.demo-playback {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#demo-position {
  font: 9px/1.5 var(--mono);
  color: var(--muted);
}
.demo-controls {
  display: flex;
  gap: 6px;
}
.demo-controls button {
  font: 10px/1.5 var(--mono);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  min-height: 32px;
}
#demo-toggle {
  min-width: 76px;
}
.demo-controls button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.demo-controls button:disabled {
  color: var(--muted);
  cursor: default;
}
.terminal-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  color: var(--muted);
}
.terminal-caption {
  margin-top: 12px;
  font-size: 11px;
}
.install-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.install-strip p {
  font-size: 13px;
}
.install-strip strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.install-strip .code-block {
  margin: 0;
  min-width: 435px;
}
.code-block {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 20px 0;
}
.code-block pre {
  margin: 0;
  padding: 20px 82px 20px 20px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.85;
  color: var(--text);
  tab-size: 2;
}
.code-block pre code {
  font-size: inherit;
}
.copy-button {
  display: none;
  position: absolute;
  top: 12px;
  right: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  padding: 7px 9px;
  border-radius: 3px;
}
.js .copy-button {
  display: block;
}
.copy-button:hover {
  color: var(--text);
  border-color: var(--muted);
}
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2 {
  max-width: 500px;
}
.section-heading p {
  max-width: 420px;
  font-size: 15px;
}
.section-heading .eyebrow {
  margin-bottom: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.feature-number {
  font: 11px var(--mono);
  color: var(--accent);
  display: block;
  margin-bottom: 25px;
}
.feature h3 {
  margin-bottom: 13px;
}
.feature p {
  font-size: 14px;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.handoff-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.handoff-panel > div {
  padding: 32px;
}
.handoff-panel > div + div {
  border-left: 1px solid var(--line);
}
.handoff-route {
  display: flex;
  align-items: center;
  gap: 15px;
  font: 13px var(--mono);
  margin-bottom: 32px;
}
.handoff-route span {
  color: var(--accent);
}
.handoff-panel h3 {
  margin-bottom: 12px;
}
.handoff-panel p {
  font-size: 14px;
}
.small-note {
  font-size: 12px;
  margin-top: 20px;
  max-width: 850px;
}
.docs-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.docs-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.docs-link h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.docs-link p {
  font-size: 13px;
}
.docs-link > span {
  color: var(--accent);
}
.end-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 72px 0;
}
.end-cta h2 {
  font-size: 35px;
  margin-bottom: 10px;
}
.end-cta p {
  font-size: 14px;
}
.site-footer {
  max-width: 1344px;
  margin: auto;
  padding: 35px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.site-footer .brand {
  font-size: 15px;
}
.site-footer .brand-mark {
  width: 23px;
  height: 23px;
  font-size: 21px;
}
.site-footer p {
  font-size: 11px;
  margin-top: 10px;
}
.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
/* Documentation */
.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 190px;
  gap: 46px;
  max-width: 1440px;
  padding: 0 48px;
  margin: auto;
  align-items: start;
}
.docs-sidebar,
.page-toc {
  position: sticky;
  top: 115px;
  max-height: calc(100vh - 145px);
  overflow: auto;
  padding-top: 6px;
  margin-top: 35px;
}
.nav-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  margin: 0 0 18px 12px;
}
.docs-sidebar nav > a,
.mobile-doc-nav nav > a {
  display: block;
  padding: 9px 12px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.docs-sidebar nav > a[aria-current],
.mobile-doc-nav nav > a[aria-current] {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  background: var(--soft);
}
.docs-sidebar nav > a:hover {
  color: var(--text);
}
.sidebar-meta {
  font: 10px/1.8 var(--mono);
  color: var(--muted);
  padding: 28px 12px;
}
.sidebar-meta a {
  color: var(--text);
}
.doc-main {
  min-width: 0;
  padding: 35px 0 65px;
}
.search-area {
  position: relative;
  margin-bottom: 50px;
}
.search-area label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  padding: 0 12px;
  gap: 10px;
  color: var(--muted);
}
.search-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 11px 0;
  border: 0;
  color: var(--text);
  background: none;
  font-size: 12px;
  outline-offset: 0;
}
.search-input-wrap input::placeholder {
  color: var(--muted);
}
kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 3px;
}
.search-input-wrap > span {
  font-size: 22px;
}
.search-area #search-status {
  font-size: 11px;
  margin-top: 5px;
}
.search-area #search-status:empty {
  display: none;
}
#search-results {
  position: absolute;
  top: 75px;
  left: 0;
  right: 0;
  z-index: 15;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 5px;
  max-height: 420px;
  overflow: auto;
  box-shadow: 0 10px 30px #00000025;
}
#search-results a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
#search-results a:last-child {
  border: 0;
}
#search-results a:hover,
#search-results a:focus {
  background: var(--raised);
}
#search-results strong {
  font-size: 13px;
  font-weight: 500;
}
#search-results small {
  display: block;
  color: var(--accent);
  font: 10px var(--mono);
  margin-bottom: 3px;
}
#search-results p {
  font-size: 11px;
  margin-top: 4px;
}
.doc-eyebrow {
  margin-bottom: 16px;
}
.doc-main h1 {
  font-size: clamp(36px, 3.7vw, 50px);
  letter-spacing: -0.045em;
}
.doc-lead {
  font-size: 17px;
  margin: 18px 0 36px;
  line-height: 1.7;
  max-width: 640px;
}
.doc-content {
  font-size: 14px;
}
.doc-content h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
  margin: 48px 0 18px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.doc-content h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 30px 0 12px;
}
.doc-content p {
  margin: 12px 0;
}
.doc-content a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-content ul,
.doc-content ol {
  padding-left: 22px;
  color: var(--muted);
  margin: 16px 0;
}
.doc-content li {
  margin: 9px 0;
  padding-left: 4px;
}
.doc-content strong {
  color: var(--text);
  font-weight: 550;
}
.callout {
  border-left: 2px solid var(--accent);
  background: var(--soft);
  padding: 17px 21px;
  margin: 25px 0;
}
.callout p {
  margin: 0;
  font-size: 13px;
}
.callout strong {
  display: block;
  margin-bottom: 5px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 22px 0;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}
th {
  background: var(--panel);
  font-weight: 500;
  color: var(--text);
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  color: var(--muted);
}
tr:last-child td {
  border-bottom: 0;
}
.page-toc .nav-label {
  margin-left: 0;
}
.page-toc nav a {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  padding: 7px 0;
}
.page-toc nav a:hover {
  color: var(--accent);
}
.source-link {
  display: inline-block;
  font: 10px var(--mono);
  margin-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.page-pagination {
  display: flex;
  gap: 20px;
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  justify-content: space-between;
}
.page-pagination a {
  font-size: 14px;
}
.page-pagination span {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  margin-bottom: 5px;
}
.mobile-doc-nav {
  display: none;
}
.command-index {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.command-index a {
  font: 11px var(--mono);
  padding: 6px 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none !important;
}
.command-syntax {
  color: var(--accent);
  font: 12px/1.7 var(--mono);
  overflow-wrap: anywhere;
}
.version-note {
  font-size: 12px !important;
}
.doc-content details {
  border: 1px solid var(--line);
  padding: 15px 18px;
  margin: 16px 0;
  border-radius: 4px;
}
.doc-content summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}
.doc-content details[open] summary {
  margin-bottom: 15px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 125px;
    padding-bottom: 90px;
  }
}
@media (max-width: 1150px) {
  .header-inner,
  .container,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .hero-grid {
    gap: 36px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 35px;
    padding: 0 32px;
  }
  .page-toc {
    display: none;
  }
  .desktop-nav {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .hero {
    padding-top: 65px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 64px;
    max-width: 650px;
  }
  .hero-description {
    max-width: 600px;
  }
  .hero-terminal {
    max-width: 640px;
    width: 100%;
  }
  .section {
    padding: 65px 0;
  }
  .section-heading {
    gap: 30px;
  }
  .features {
    gap: 25px;
  }
  .install-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .install-strip .code-block {
    width: 100%;
    min-width: 0;
  }
  .desktop-nav {
    margin-left: auto;
    margin-right: 0;
  }
  .desktop-nav > a:first-child,
  .desktop-nav > a:last-child {
    display: none;
  }
  .header-inner {
    gap: 20px;
  }
  .header-actions {
    gap: 10px;
  }
  .site-footer {
    align-items: flex-start;
  }
  .footer-links {
    gap: 15px;
  }
  .end-cta h2 {
    font-size: 30px;
  }
}
@media (max-width: 650px) {
  .header-inner {
    min-height: 72px;
    padding: 14px 20px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-label {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 6px;
  }
  .button-small {
    padding: 8px 10px;
    gap: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .container {
    padding: 0 22px;
  }
  .hero {
    padding: 52px 0 40px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .button {
    padding: 12px 16px;
    gap: 15px;
    font-size: 13px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .hero-meta {
    font-size: 10px;
    gap: 10px;
  }
  .handoff-body {
    padding: 20px 16px;
  }
  .demo-profile {
    padding: 10px 8px;
  }
  .demo-profile strong {
    font-size: 10px;
  }
  .profile-state {
    font-size: 9px;
  }
  .demo-profiles {
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
  }
  .demo-status {
    font-size: 12px;
  }
  .demo-controls button {
    padding: 7px;
  }
  .handoff-demo .terminal-bottom {
    font-size: 8px;
  }
  .terminal-top {
    padding: 0 16px;
    font-size: 9px;
  }
  .terminal-bottom {
    padding: 12px 16px;
    font-size: 9px;
  }
  .terminal-caption {
    font-size: 10px;
  }
  .section {
    padding: 52px 0;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-number {
    margin-bottom: 14px;
  }
  .feature {
    padding-top: 20px;
  }
  .handoff-panel {
    grid-template-columns: 1fr;
  }
  .handoff-panel > div {
    padding: 25px;
  }
  .handoff-panel > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .handoff-route {
    margin-bottom: 20px;
    font-size: 12px;
  }
  .docs-links {
    grid-template-columns: 1fr;
  }
  .end-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 52px 0;
    gap: 22px;
  }
  .site-footer {
    padding: 30px 22px;
    flex-direction: column;
    gap: 22px;
  }
  .footer-links {
    gap: 17px;
  }
  .docs-layout {
    display: block;
    padding: 0 22px;
  }
  .docs-sidebar {
    display: none;
  }
  .doc-main {
    padding-top: 18px;
  }
  .mobile-doc-nav {
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
    font-size: 12px;
  }
  .mobile-doc-nav summary {
    cursor: pointer;
    color: var(--muted);
  }
  .mobile-doc-nav nav {
    padding-top: 22px;
  }
  .mobile-doc-nav .sidebar-meta {
    padding-bottom: 5px;
  }
  .search-area {
    margin-bottom: 35px;
  }
  .search-input-wrap kbd {
    display: none;
  }
  .doc-main h1 {
    font-size: 38px;
  }
  .doc-lead {
    font-size: 15px;
    margin-bottom: 26px;
  }
  .doc-content h2 {
    font-size: 23px;
    margin-top: 36px;
  }
  .code-block pre {
    font-size: 11px;
    padding-left: 14px;
  }
  .doc-content {
    font-size: 14px;
  }
  .page-pagination {
    gap: 25px;
  }
  .page-pagination a {
    font-size: 12px;
  }
  .callout {
    padding: 15px;
  }
  th,
  td {
    padding: 11px 12px;
  }
}
/* Three cards in a row get too cramped on a phone; stack the routing chain vertically
   instead of shrinking it past readability. */
@media (max-width: 480px) {
  .demo-profiles {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .profile-arrow {
    transform: rotate(90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Homepage: compact product evidence, with shared handbook styles kept intact. */
.home .hero { padding: 58px 0 0; }
.home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.home .hero-meta { margin-bottom: 26px; font-size: 11px; gap: 14px; }
.home .badge { padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; }
.home .meta-row { gap: 14px; }
.home .eyebrow { font-size: 10px; letter-spacing: .09em; margin-bottom: 16px; }
.home .eyebrow::before { display: none; }
.home h1 { font-size: clamp(34px, 3.45vw, 48px); line-height: 1.13; letter-spacing: -.045em; font-weight: 600; }
.home .hero-description { font-size: 16px; line-height: 1.75; margin-top: 22px; max-width: 490px; }
.home .hero-actions { align-items: center; gap: 22px; margin: 27px 0 18px; }
.home .hero-actions .text-link { margin: 0; }
.home .hero-footnote { font-size: 12px; max-width: 400px; }
.home .hero-copy { order: 1; }
.home .hero-terminal { margin: 0; min-width: 0; order: 2; }
.home .terminal { border-radius: 5px; box-shadow: none; }
.home .terminal-top { height: 39px; font-size: 10px; padding: 0 22px; }
.home .cli-output { padding: 23px 24px; margin: 0; font-size: 12px; line-height: 1.7; overflow: auto; color: var(--muted); }
.home .cli-output code { font-size: inherit; }
.home .cli-command, .home .cli-heading { color: var(--text); }
.home .cli-command { font-weight: 600; }
.home .cli-command > span, .home .cli-success { color: var(--accent); }
.home .terminal-caption { font-size: 11px; line-height: 1.65; margin-top: 12px; }
.home .terminal-caption a { text-decoration: underline; text-underline-offset: 3px; }
.home .product-facts { grid-column: 1 / -1; order: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 21px 0; margin: 0; border-block: 1px solid var(--line); font-size: 12px; }
.home .product-facts span { color: var(--accent); margin-right: 6px; }
.home .section { padding: 60px 0; }
.home h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.home h3 { font-size: 17px; font-weight: 550; letter-spacing: -.02em; line-height: 1.4; }
.home .section-heading { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 32px; }
.home .section-heading p { font-size: 14px; max-width: 460px; }
.home .section-heading .eyebrow { font-size: 10px; }
.home .workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.home .workflow-steps li { border-top: 1px solid var(--line); padding-top: 19px; }
.home .step-number { display: block; color: var(--accent); font: 11px var(--mono); margin-bottom: 16px; }
.home .workflow-steps h3 { margin-bottom: 10px; }
.home .workflow-steps p { font-size: 14px; line-height: 1.7; }
.home .workflow-steps code { display: inline-block; margin-top: 18px; font-size: 11px; color: var(--text); background: var(--panel); padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; }
.home .command-or { font-size: 11px; color: var(--muted); margin: 0 7px; }
.home .text-link { font-size: 12px; margin-top: 18px; }
.home .continuation-note { display: grid; grid-template-columns: .55fr 1fr 1.3fr; gap: 28px; border-left: 2px solid var(--accent); background: var(--panel); padding: 22px 24px; margin-top: 32px; }
.home .continuation-note h3 { font-size: 14px; }
.home .continuation-note strong { display: block; font: 12px var(--mono); margin: 3px 0 9px; }
.home .continuation-note p { font-size: 12px; line-height: 1.7; }
.home .safety-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.home .safety-intro > p:not(.eyebrow), .home .cli-section > div > p:not(.eyebrow), .home .install-section > div > p:not(.eyebrow) { font-size: 14px; margin-top: 18px; max-width: 430px; }
.home .safety-links { display: flex; gap: 24px; }
.home .safety-list { margin: 0; }
.home .safety-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.home .safety-list > div:first-child { padding-top: 0; border-top: 0; }
.home .safety-list > div:last-child { padding-bottom: 0; }
.home .safety-list dt { font-size: 14px; font-weight: 550; margin-bottom: 6px; }
.home .safety-list dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.home .cli-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.home .cli-section > div > p.handbook-note { font-size: 11px; max-width: 320px; margin-top: 24px; }
.home .command-list a { display: grid; grid-template-columns: 115px 1fr 10px; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.home .command-list a:first-child { padding-top: 0; }
.home .command-list code { font-size: 12px; color: var(--text); }
.home .command-list span { color: var(--muted); font-size: 12px; }
.home .command-list a:hover code, .home .command-list a:hover span { color: var(--accent); }
.home .install-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 54px 0 60px; }
.home .install-section h2 { font-size: 27px; max-width: 360px; }
.home .install-label { color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.home .install-command { min-width: 0; }
.home .install-command .code-block { margin: 12px 0; }
.home .install-command pre { font-size: 12px; padding: 20px 70px 20px 16px; }
.home .install-command > p { font-size: 12px; }
.home .install-command > p a { border-bottom: 1px solid var(--line); }
@media (max-width: 1150px) {
  .home .hero-grid, .home .section-heading, .home .safety-section, .home .cli-section, .home .install-section { gap: 36px; }
  .home .hero-actions { gap: 16px; }
  .home .hero-actions .button { font-size: 13px; padding: 11px 14px; gap: 12px; }
  .home .product-facts { justify-content: flex-start; gap: 12px 25px; }
  .home .cli-output { font-size: 11px; padding: 22px 20px; }
  .home .command-list a { grid-template-columns: 100px 1fr 10px; gap: 8px; }
}
@media (max-width: 850px) {
  .home .hero { padding-top: 38px; }
  .home .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .home h1 { font-size: 34px; }
  .home .hero-description { font-size: 14px; line-height: 1.7; margin-top: 18px; }
  .home .hero-meta { margin-bottom: 22px; }
  .home .hero-actions { margin-top: 22px; gap: 14px; }
  .home .cli-output { font-size: 10px; padding: 20px 14px; }
  .home .terminal-top { padding: 0 14px; font-size: 9px; }
  .home .workflow-steps { gap: 22px; }
  .home .workflow-steps h3 { font-size: 16px; }
  .home .workflow-steps p { font-size: 13px; }
  .home .continuation-note { grid-template-columns: 1fr 1.2fr; gap: 18px 26px; }
  .home .continuation-note h3 { grid-column: 1 / -1; }
  .home .command-list a { grid-template-columns: 1fr 10px; gap: 4px; }
  .home .command-list code { grid-column: 1; }
  .home .command-list span:not([aria-hidden]) { grid-column: 1; grid-row: auto; }
  .home .command-list span[aria-hidden] { grid-column: 2; grid-row: span 2; }
  .home .install-section { grid-template-columns: 1fr; gap: 24px; }
  .home .install-section h2, .home .install-section > div > p:not(.eyebrow) { max-width: none; }
}
@media (max-width: 650px) {
  .home .hero { padding: 30px 0 28px; border-bottom: 1px solid var(--line); }
  .home .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .home .hero-terminal { order: 3; }
  .home .product-facts { order: 2; }
  .home .hero-meta { margin-bottom: 23px; }
  .home h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .home .hero-description { font-size: 15px; }
  .home .hero-actions { gap: 16px; margin-bottom: 16px; }
  .home .hero-actions .text-link { font-size: 12px; }
  .home .hero-footnote { font-size: 11px; }
  .home .cli-output { font-size: 11px; padding: 20px 16px; }
  .home .terminal-caption { font-size: 10px; }
  .home .product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; font-size: 11px; padding: 19px 0; }
  .home .product-facts li:last-child { grid-column: 1 / -1; }
  .home .section { padding: 40px 0; }
  .home h2 { font-size: 27px; }
  .home .section-heading, .home .safety-section, .home .cli-section { grid-template-columns: 1fr; gap: 24px; }
  .home .section-heading { margin-bottom: 25px; gap: 16px; }
  .home .workflow-steps { grid-template-columns: 1fr; gap: 23px; }
  .home .workflow-steps li { position: relative; padding: 18px 0 0 34px; }
  .home .step-number { position: absolute; left: 0; top: 21px; }
  .home .workflow-steps h3 { font-size: 17px; }
  .home .workflow-steps p { font-size: 14px; }
  .home .continuation-note { grid-template-columns: 1fr; padding: 20px; gap: 20px; margin-top: 26px; }
  .home .continuation-note h3 { grid-column: auto; }
  .home .continuation-note strong { margin-top: 0; }
  .home .safety-list > div:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
  .home .command-list a { grid-template-columns: 105px 1fr 10px; gap: 8px; }
  .home .command-list code, .home .command-list span:not([aria-hidden]), .home .command-list span[aria-hidden] { grid-column: auto; grid-row: auto; }
  .home .install-section { padding: 40px 0; }
  .home .install-command pre { font-size: 11px; }
}
@media (max-width: 360px) {
  .home .cli-output { font-size: 10px; padding: 18px 12px; }
  .home .hero-actions { align-items: flex-start; flex-direction: column; }
  .home .product-facts { grid-template-columns: 1fr; }
  .home .product-facts li:last-child { grid-column: auto; }
}
/* Keep the compact navigation on one line at the smallest supported width. */
@media (max-width: 360px) {
  .header-inner { padding: 12px 14px; gap: 8px; }
  .header-inner .brand { font-size: 15px; gap: 7px; }
  .header-actions { gap: 4px; }
  .header-actions .theme-button { width: 30px; }
  .header-actions .button-small { font-size: 11px; gap: 8px; white-space: nowrap; }
}

/* Handbook: readable technical reference with compact, explicit navigation. */
.docs-layout { max-width: 1360px; padding: 0 40px; grid-template-columns: 200px minmax(0, 720px) 170px; gap: 40px; }
.docs-sidebar, .page-toc { top: 108px; margin-top: 32px; max-height: calc(100vh - 135px); }
.docs-sidebar nav > a, .mobile-doc-nav nav > a { font-size: 12px; padding: 9px 12px; line-height: 1.5; }
.docs-sidebar nav > a:hover, .mobile-doc-nav nav > a:hover { color: var(--text); background: var(--panel); }
.sidebar-meta { padding: 22px 12px; font-size: 10px; }
.doc-main { padding: 30px 0 56px; }
.search-area { margin-bottom: 30px; }
.search-input-wrap input { font-size: 12px; padding: 10px 0; }
.doc-eyebrow { justify-content: space-between; margin-bottom: 14px; font-size: 10px; letter-spacing: .08em; }
.doc-eyebrow a { color: var(--muted); text-transform: none; border: 1px solid var(--line); padding: 3px 7px; border-radius: 3px; letter-spacing: 0; }
.doc-eyebrow a:hover { color: var(--accent); border-color: var(--muted); }
.doc-main h1 { font-size: clamp(32px, 3vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -.04em; }
.doc-lead { font-size: 16px; line-height: 1.7; margin: 16px 0 28px; }
.doc-content { font-size: 14px; line-height: 1.8; }
.doc-content > p:first-child { margin-top: 0; }
.doc-content h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; font-weight: 550; margin: 38px 0 17px; padding-top: 26px; }
.doc-content h3 { font-size: 17px; line-height: 1.4; font-weight: 550; margin: 25px 0 12px; }
.doc-content strong { font-weight: 600; }
.doc-content li { margin: 10px 0; }
.doc-content li::marker { color: var(--accent); }
.doc-content .code-block { margin: 17px 0; border-radius: 4px; }
.doc-content .code-block pre { font-size: 12px; line-height: 1.85; padding: 18px 78px 18px 18px; }
.doc-content .command-syntax { font-size: 11px; line-height: 1.8; padding: 12px 15px; border-left: 2px solid var(--accent); background: var(--panel); margin: 14px 0 17px; }
.doc-content .callout { border-left-width: 2px; background: var(--panel); padding: 17px 20px; margin: 24px 0; }
.doc-content .callout strong { font-size: 13px; margin-bottom: 6px; }
.doc-content .callout p { font-size: 13px; line-height: 1.8; }
.doc-content .table-wrap { border-radius: 4px; margin: 20px 0; }
.doc-content th { font-size: 11px; font-weight: 600; }
.doc-content th, .doc-content td { padding: 12px 14px; line-height: 1.65; }
.doc-content table code { font-size: 11px; white-space: nowrap; }
.doc-content td:first-child { color: var(--text); }
.doc-content .command-index { margin: 22px 0 28px; gap: 7px; }
.doc-content .command-index a { font-size: 11px; padding: 5px 9px; color: var(--text); }
.doc-content .command-index a:hover { color: var(--accent); border-color: var(--muted); }
.guide-path { display: flex; flex-wrap: wrap; border-block: 1px solid var(--line); gap: 0 22px; margin: 24px 0 28px; padding: 10px 0; }
.doc-content .guide-path a { text-decoration: none; font-size: 12px; color: var(--text); padding: 5px 0; }
.guide-path span { color: var(--accent); font: 10px var(--mono); margin-right: 7px; }
.doc-content .guide-path a:hover { color: var(--accent); }
.page-toc .nav-label { font-size: 9px; margin-bottom: 13px; }
.page-toc nav a { font-size: 11px; padding: 6px 0; }
.page-pagination { margin-top: 40px; padding-top: 20px; }
.page-pagination a { font-size: 13px; line-height: 1.6; }
.page-pagination a:last-child { margin-left: auto; text-align: right; }
.mobile-page-toc { display: none; }
@media (max-width: 1150px) {
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding-inline: 32px; }
  .mobile-page-toc { display: block; border-block: 1px solid var(--line); margin: 0 0 25px; padding: 12px 0; font-size: 12px; }
  .mobile-page-toc summary { color: var(--muted); cursor: pointer; }
  .mobile-page-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 12px; }
  .mobile-page-toc nav a { display: block; padding: 7px 0; line-height: 1.5; }
}
@media (max-width: 900px) {
  .docs-layout { display: block; max-width: 760px; }
  .docs-sidebar { display: none; }
  .mobile-doc-nav { display: block; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .mobile-doc-nav summary { cursor: pointer; color: var(--text); }
  .mobile-doc-nav nav { display: grid; grid-template-columns: 1fr 1fr; padding-top: 16px; gap: 0 16px; }
  .mobile-doc-nav .nav-label, .mobile-doc-nav .sidebar-meta { grid-column: 1 / -1; }
  .mobile-doc-nav .nav-label { display: none; }
  .mobile-doc-nav .sidebar-meta { padding: 16px 12px 0; }
  .doc-main { padding-top: 24px; }
}
@media (max-width: 650px) {
  .docs-layout { padding-inline: 22px; }
  .doc-main { padding-top: 18px; padding-bottom: 40px; }
  .search-area { margin-bottom: 25px; }
  .doc-main h1 { font-size: 34px; }
  .doc-lead { font-size: 15px; margin-bottom: 22px; }
  .doc-content h2 { font-size: 21px; margin-top: 32px; padding-top: 23px; }
  .doc-content .code-block pre { font-size: 11px; padding-left: 14px; }
  .doc-content .command-syntax { padding: 10px 12px; }
  .doc-content .callout { padding: 15px 16px; }
  .doc-content th, .doc-content td { padding: 11px 12px; }
  .guide-path { gap: 0 18px; }
  .page-pagination a { font-size: 12px; max-width: 48%; }
}
@media (max-width: 360px) {
  .mobile-doc-nav nav, .mobile-page-toc nav { grid-template-columns: 1fr; }
  .doc-main h1 { font-size: 30px; }
}
