/* Layout uses the product palette exported from src/core/theme-colors.ts. */
:root {
  --canvas: #07101f;
  --surface: #111827;
  --surface-2: #0f172a;
  --ink: #f8fafc;
  --ink-2: #dbe4ee;
  --ink-3: #a7b4c4;
  --line: #263241;
  --line-2: #3a4657;
  --accent: #818cf8;
  --accent-soft: #1e1b4b;
  --primary-bg: #6366f1;
  --primary-fg: #fff;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wrap {
  width: min(1360px, calc(100% - 80px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  z-index: 50;
}
.skip:focus {
  top: 8px;
}
.header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand svg {
  width: 32px;
  height: 32px;
}
.header nav {
  display: flex;
  gap: 26px;
  font-size: 12px;
  color: var(--ink-2);
}
.header nav a:hover,
.nav-end a:hover {
  color: var(--accent);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
}
#website-theme {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 20px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 45px;
  align-items: center;
  padding-block: 75px 65px;
  min-height: 590px;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  font: 10px/1.7 var(--mono);
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
h1 {
  font-size: clamp(42px, 4.5vw, 65px);
  line-height: 1.1;
  letter-spacing: -2.5px;
  font-weight: 650;
  margin: 0 0 26px;
}
.accent-text {
  color: var(--accent);
}
.intro {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 0 28px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 19px;
  min-height: 45px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
}
.primary {
  background: var(--primary-bg);
  border-color: var(--primary-bg);
  color: var(--primary-fg);
}
.primary:hover {
  filter: brightness(1.12);
}
.secondary:hover {
  background: var(--surface);
}
.meta {
  font: 10px/1.7 var(--mono);
  color: var(--ink-3);
  margin-top: 18px;
}
.hero-product {
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
  display: block;
  background: var(--surface);
  box-shadow: 0 24px 65px #0003;
}
.hero-product img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 285px;
  object-fit: cover;
  object-position: left top;
}
.hero-product-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font: 9px var(--mono);
  letter-spacing: 0.8px;
  color: var(--ink-3);
}
.hero-product-bar > span:last-child {
  margin-left: auto;
}
.hero-product-caption {
  display: block;
  border-top: 1px solid var(--line);
  font-size: 10px;
  padding: 12px 15px;
  color: var(--ink-3);
}
.providers {
  padding: 28px 0 34px;
  border-block: 1px solid var(--line);
}
.providers .eyebrow {
  text-align: center;
  color: var(--ink-3);
  font-size: 9px;
  margin-bottom: 20px;
}
.providers > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.providers > div > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  color: var(--ink-2);
}
.providers b {
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
}
.section {
  padding-block: 85px;
}
.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}
h2 {
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin: 0 0 20px;
}
h3 {
  line-height: 1.4;
  font-weight: 600;
}
.section-head > p:last-child {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-3);
  max-width: 800px;
}
.native-demo {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 50px #0002;
}
.native-demo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  padding: 14px 18px;
}
.mono {
  font: 11px/1.6 var(--mono);
}
.native-demo-top .mono {
  font-size: 9px;
  color: var(--ink-3);
}
.native-demo-top a {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.demo-tour {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 17px;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.demo-tour button {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
}
.demo-tour button[aria-pressed="true"] {
  background: var(--primary-bg);
  border-color: var(--primary-bg);
  color: var(--primary-fg);
}
#native-console {
  display: block;
  width: 100%;
  height: 800px;
  border: 0;
  background: var(--canvas);
}
.native-demo-hint {
  margin: 0;
  background: var(--surface-2);
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.85;
}
.anatomy-intro {
  max-width: 800px;
  padding-top: 70px;
}
.anatomy-intro > p:last-child {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.95;
}
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.anatomy-grid article {
  padding: 24px 25px 26px 0;
  border-bottom: 1px solid var(--line);
}
.anatomy-grid .mono,
.metrics-grid .mono {
  color: var(--accent);
  font-size: 10px;
}
.anatomy-grid h3 {
  font-size: 16px;
  margin: 10px 0;
}
.anatomy-grid p,
.metrics-grid p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 0;
}
.evidence-shot {
  margin: 38px 0 0;
}
.evidence-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line-2);
}
.evidence-shot figcaption {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 11px;
}
.analysis-section {
  background: var(--surface-2);
  padding-block: 80px;
  border-block: 1px solid var(--line);
}
.handoff-states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.handoff-states article {
  padding: 20px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid #34d399;
}
.handoff-states h3 {
  font-size: 14px;
  margin: 12px 0 8px;
}
.handoff-states p {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.85;
}
.state-key {
  font: 9px var(--mono);
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.handoff-needs_decision {
  border-top-color: #fbbf24 !important;
}
.handoff-needs_input {
  border-top-color: #fb923c !important;
}
.handoff-blocked {
  border-top-color: #f87171 !important;
}
.handoff-needs_review {
  border-top-color: #2dd4bf !important;
}
.handoff-followup_suggested {
  border-top-color: #38bdf8 !important;
}
.handoff-done {
  border-top-color: #94a3b8 !important;
}
.human-label-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 28px 0 35px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.human-label-note h3 {
  font-size: 17px;
  margin: 0 0 9px;
}
.human-label-note p {
  max-width: 790px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.95;
  margin: 0;
}
.human-label-note .button {
  white-space: nowrap;
  flex-shrink: 0;
}
.suggestion-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.suggestion-lanes article {
  border-left: 2px solid var(--accent);
  padding-left: 21px;
}
.suggestion-lanes h3 {
  font-size: 18px;
  margin: 12px 0;
}
.suggestion-lanes p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-3);
}
.suggestion-lanes .eyebrow {
  font-size: 9px;
}
.fine-print {
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-3);
  margin-top: 22px;
}
.relationship-map {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 30px;
}
.relationship-origin {
  border-left: 3px solid var(--accent);
  padding: 15px 20px;
  background: var(--surface);
  max-width: 490px;
}
.relationship-origin strong,
.relationship-branches strong {
  display: block;
  font-size: 16px;
  margin: 8px 0;
}
.relationship-origin > span:last-child,
.relationship-branches > div > span:last-child {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}
.relationship-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0 0 30px;
  padding-left: 20px;
  border-left: 1px solid var(--line-2);
}
.relationship-branches > div {
  position: relative;
  border-top: 1px solid var(--line-2);
  padding: 20px 0 0;
}
.relationship-arrow {
  position: absolute;
  left: -22px;
  top: 14px;
  color: var(--accent);
}
.relationship-branches .mono {
  font-size: 9px;
  color: var(--accent);
}
.relationship-map > p {
  font-size: 11px;
  margin: 25px 0 0;
  color: var(--ink-3);
}
.relation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 36px;
}
.relation-grid .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.relation-grid h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.relation-grid p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 0;
}
.section-action {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
}
.section-action p {
  font-size: 11px;
  color: var(--ink-3);
  max-width: 600px;
}
.metrics-section {
  padding-block: 80px;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metrics-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 22px;
}
.metrics-grid h3 {
  font-size: 17px;
  margin: 11px 0;
}
.semantic-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 28px;
}
.semantic-mix .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.semantic-mix p {
  font-size: 12px;
  line-height: 2;
  color: var(--ink-3);
  margin: 0;
}
.metric-definitions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding-block: 20px;
  margin: 24px 0;
  border-block: 1px solid var(--line);
}
.metric-definitions p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 0;
}
.metrics-section .fine-print {
  max-width: 1000px;
  margin-top: 22px;
}
.workflow-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 45px;
}
.workflow-tabs {
  border-top: 1px solid var(--line);
}
.workflow-tabs button {
  display: flex;
  gap: 16px;
  text-align: left;
  align-items: center;
  width: 100%;
  padding: 22px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-3);
  min-height: 73px;
}
.workflow-tabs button .mono {
  font-size: 10px;
  color: var(--accent);
}
.workflow-tabs button > span:last-child {
  margin-left: auto;
}
.workflow-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--ink);
  border-left: 3px solid var(--accent);
}
.workflow-panels {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 33px;
  min-height: 330px;
}
.workflow-number {
  font: 11px var(--mono);
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 23px;
}
.workflow-panels h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.workflow-panels p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 0;
}
.workflow-path {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.workflow-path span {
  font: 9px/1.6 var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 6px 9px;
  border-radius: 4px;
}
.workflow-path i {
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
}
.reference-section,
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr;
  gap: 70px;
}
.reference-section {
  border-top: 1px solid var(--line);
}
.reference-heading h2,
.faq-section h2 {
  font-size: 30px;
}
.reference-heading p {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 360px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 0;
  font-size: 13px;
  font-weight: 550;
}
summary::-webkit-details-marker {
  display: none;
}
.plus {
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.15s;
}
details[open] .plus {
  transform: rotate(45deg);
}
.detail-no {
  font: 10px var(--mono);
  color: var(--ink-3);
}
details p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.95;
  margin: 0 0 23px;
}
.compatibility-section {
  border-top: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  min-width: 660px;
}
thead {
  background: var(--surface-2);
}
th,
td {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
tbody th {
  font-weight: 550;
}
td {
  color: var(--ink-3);
}
.local-note {
  display: flex;
  gap: 23px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 35px;
}
.local-note > span {
  font-size: 28px;
  color: var(--accent);
}
.local-note h3 {
  font-size: 18px;
  margin: 0 0 14px;
}
.local-note p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-3);
  max-width: 1000px;
}
.install-section {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
  padding-block: 75px;
}
.install-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.install-section h2 {
  max-width: 500px;
}
.install-layout > div > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-3);
}
.install-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  margin-top: 27px;
}
.install-links a {
  color: var(--accent);
  width: fit-content;
  border-bottom: 1px solid var(--line-2);
}
.install-card {
  background: var(--canvas);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 24px;
  min-width: 0;
}
.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 10px var(--mono);
  color: var(--ink-3);
}
.copy-button {
  border: 1px solid var(--line-2);
  color: var(--accent);
  background: transparent;
  border-radius: 4px;
  font: 9px var(--mono);
  padding: 6px 10px;
}
.copy-button:hover {
  background: var(--surface);
}
.install-card pre {
  font: 12px/1.9 var(--mono);
  overflow: auto;
  padding-block: 12px;
  margin: 0 0 17px;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal-result {
  font: 10px var(--mono);
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.terminal-result span {
  margin-right: 8px;
}
#copy-status {
  font-size: 11px;
  margin: 0;
  min-height: 18px;
}
.install-notes {
  margin-top: 32px;
  padding-left: 17px;
  font-size: 11px;
  line-height: 1.95;
  color: var(--ink-3);
}
.install-notes li {
  padding-left: 5px;
  margin-top: 8px;
}
.faq-section summary {
  font-size: 13px;
  align-items: baseline;
}
.closing {
  border-block: 1px solid var(--line);
  text-align: center;
  padding-block: 70px;
}
.closing h2 {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 17px;
}
.closing > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.closing .actions {
  justify-content: center;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 32px;
}
.footer .brand {
  font-size: 20px;
}
.footer .brand svg {
  width: 26px;
}
.footer p {
  font-size: 10px;
  color: var(--ink-3);
  margin: 2px;
}
.footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 11px;
}
.gallery-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.gallery-tabs button {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 5px;
}
.gallery-tabs button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.gallery-frame {
  margin: 15px 0 0;
}
.gallery-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 7px;
}
.gallery-frame figcaption {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 12px;
}
.theme-choices {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.theme-choices a {
  font-size: 10px;
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 28px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .header nav {
    gap: 18px;
  }
  .providers > div {
    justify-content: center;
    gap: 20px 30px;
  }
  .human-label-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .handoff-states {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .anatomy-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .relationship-branches {
    gap: 16px;
  }
  .relationship-branches strong {
    font-size: 14px;
  }
  .reference-section,
  .faq-section {
    gap: 40px;
  }
  .install-layout {
    gap: 35px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    height: 72px;
    gap: 12px;
  }
  .header nav {
    display: none;
  }
  .nav-end {
    gap: 17px;
  }
  .brand {
    font-size: 23px;
  }
  .brand svg {
    width: 29px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 45px;
    padding-bottom: 40px;
    gap: 28px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
  .hero .eyebrow {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .intro {
    font-size: 13px;
    max-width: 540px;
  }
  .hero-product img {
    min-height: 0;
  }
  .hero-product-caption {
    font-size: 9px;
  }
  .providers {
    padding: 25px 0;
  }
  .providers > div {
    gap: 15px 25px;
  }
  .providers > div > span {
    font-size: 11px;
  }
  .providers b {
    font-size: 18px;
  }
  .providers .eyebrow {
    font-size: 8px;
  }
  .section {
    padding-block: 58px;
  }
  h2 {
    font-size: 29px;
  }
  .section-head {
    margin-bottom: 26px;
  }
  .section-head > p:last-child {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 17px;
  }
  .native-demo-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
  .demo-tour {
    padding: 10px;
    gap: 6px;
  }
  .demo-tour button {
    font-size: 10px;
    padding: 7px 9px;
  }
  #native-console {
    height: 720px;
  }
  .native-demo-hint {
    font-size: 10px;
    padding: 12px 14px;
  }
  .anatomy-intro {
    padding-top: 48px;
  }
  .anatomy-intro > p:last-child {
    font-size: 12px;
  }
  .anatomy-grid article {
    padding: 18px 14px 18px 0;
  }
  .anatomy-grid h3 {
    font-size: 14px;
  }
  .anatomy-grid p {
    font-size: 11px;
  }
  .analysis-section,
  .metrics-section {
    padding-block: 55px;
  }
  .handoff-states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .handoff-states article {
    padding: 16px 13px;
  }
  .handoff-states h3 {
    font-size: 13px;
  }
  .handoff-states p {
    font-size: 10px;
  }
  .suggestion-lanes,
  .relation-grid,
  .semantic-mix,
  .metric-definitions {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .suggestion-lanes h3 {
    font-size: 16px;
  }
  .human-label-note p {
    font-size: 11px;
  }
  .relationship-map {
    padding: 21px;
  }
  .relationship-branches {
    grid-template-columns: 1fr;
    margin-left: 10px;
  }
  .relationship-origin strong {
    font-size: 15px;
  }
  .relation-grid h3 {
    font-size: 18px;
  }
  .relation-grid p {
    font-size: 12px;
  }
  .section-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .metrics-grid article {
    padding: 17px 14px;
  }
  .metrics-grid h3 {
    font-size: 15px;
  }
  .metrics-grid p {
    font-size: 11px;
  }
  .evidence-shot figcaption {
    font-size: 9px;
  }
  .semantic-mix p {
    font-size: 11px;
  }
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .workflow-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border: 0;
  }
  .workflow-tabs button {
    font-size: 11px;
    padding: 12px 10px;
    min-height: 68px;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .workflow-tabs button[aria-selected="true"] {
    border: 1px solid var(--accent);
  }
  .workflow-panels {
    padding: 25px;
    min-height: 310px;
  }
  .workflow-panels h3 {
    font-size: 23px;
  }
  .workflow-panels p {
    font-size: 12px;
  }
  .workflow-path span {
    font-size: 8px;
  }
  .reference-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .reference-heading h2,
  .faq-section h2 {
    font-size: 27px;
  }
  .reference-heading p {
    max-width: none;
  }
  .compatibility-section table {
    font-size: 11px;
    min-width: 600px;
  }
  th,
  td {
    padding: 14px;
  }
  .fine-print {
    font-size: 10px;
  }
  .local-note {
    padding: 21px;
    gap: 12px;
  }
  .local-note > span {
    font-size: 23px;
  }
  .local-note h3 {
    font-size: 16px;
  }
  .local-note p {
    font-size: 11px;
  }
  .install-section {
    padding-block: 52px;
  }
  .install-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .install-links {
    margin-top: 21px;
  }
  .install-card {
    padding: 19px;
  }
  .install-notes {
    font-size: 10px;
  }
  .closing {
    padding-block: 52px;
  }
  .closing h2 {
    font-size: 31px;
  }
  .closing > p:not(.eyebrow) {
    font-size: 12px;
  }
  .footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 26px;
  }
  .footer > div:last-child {
    width: 100%;
    gap: 25px;
  }
  .footer p {
    font-size: 9px;
  }
  .footer > div:nth-child(2) {
    flex: 1;
    min-width: 180px;
  }
  .gallery-tabs button {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .hero h1 {
    font-size: 39px;
  }
  .anatomy-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .state-key {
    font-size: 8px;
  }
  .nav-github {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.metrics-section .evidence-shot {
  margin: 0 0 30px;
}
.gallery-frame strong {
  color: var(--ink);
}

/* Show the workspace at the scale it was designed for. The native console
   retains its own columns, resizers and responsive behavior. */
.hero { grid-template-columns: minmax(0, 1fr); gap: 34px; min-height: 0; padding-top: 56px; }
.hero-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: start; }
.hero-copy > .eyebrow { grid-column: 1 / -1; }
.hero-copy > h1 { grid-column: 1; grid-row: 2 / 5; margin-bottom: 0; }
.hero-copy > .intro, .hero-copy > .actions, .hero-copy > .meta { grid-column: 2; }
.hero-product { width: min(2560px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
.hero-product img { min-height: 0; object-fit: contain; }
.native-demo { width: min(3000px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
.native-demo-viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--accent) var(--surface); }
.workspace-width { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 17px; background: var(--surface); }
.workspace-width > span:first-child { font: 9px var(--mono); color: var(--ink-3); margin-right: 5px; }
.workspace-width button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 5px; padding: 8px 12px; font-size: 11px; }
.workspace-width button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.workspace-width-note { font-size: 10px; color: var(--ink-3); margin-left: auto; }
.native-demo[data-workspace-width="3440"] #native-console { width: 3440px; max-width: none; height: 1160px; }
@media (max-width: 760px) {
  .hero-copy { display: block; }
  .hero-copy > h1 { margin-bottom: 24px; }
  .hero-product, .native-demo { width: calc(100vw - 24px); }
  .workspace-width-note { width: 100%; margin-left: 0; }
  .workspace-width { padding: 10px; }
}
