:root {
  color-scheme: light;
  --ink: oklch(19% 0.018 185);
  --muted: oklch(46% 0.026 190);
  --paper: oklch(97% 0.008 190);
  --paper-strong: oklch(99% 0.006 190);
  --wash: oklch(93% 0.016 190);
  --line: oklch(82% 0.018 190);
  --field: oklch(95% 0.012 190);
  --accent: oklch(58% 0.155 28);
  --accent-strong: oklch(54% 0.16 28);
  --accent-dark: oklch(40% 0.13 28);
  --green: oklch(55% 0.13 156);
  --green-ink: oklch(34% 0.1 156);
  --green-soft: oklch(91% 0.05 156);
  --amber: oklch(63% 0.12 82);
  --amber-ink: oklch(37% 0.1 80);
  --amber-soft: oklch(92% 0.052 82);
  --notice-amber: oklch(81% 0.13 82);
  --code: oklch(17% 0.02 210);
  --code-line: oklch(30% 0.022 210);
  --code-text: oklch(93% 0.01 190);
  --shadow: 0 24px 70px color-mix(in oklch, var(--ink) 15%, transparent);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-color: color-mix(in oklch, var(--line) 70%, var(--paper)) transparent;
  scrollbar-width: thin;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 99px;
  background: color-mix(in oklch, var(--line) 70%, var(--paper));
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklch, var(--muted) 46%, var(--paper));
  background-clip: content-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 26rem),
    linear-gradient(90deg, color-mix(in oklch, var(--line) 25%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklch, var(--line) 25%, transparent) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 46px 46px, 46px 46px, auto;
  font-size: 1.02rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--accent) 62%, transparent);
  outline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.top-notice {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
}

.top-notice span {
  color: var(--notice-amber);
  font-weight: 800;
}

.top-notice a {
  color: color-mix(in oklch, var(--paper) 82%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr minmax(132px, 148px);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.brand,
.site-nav,
.hero-actions,
.terminal-topline,
.route-strip,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
}

.site-nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.header-action {
  transition: color 160ms ease-out;
}

.site-nav a:hover,
.header-action:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.site-nav a[aria-current="page"] {
  font-weight: 850;
}

.header-action {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  min-height: calc(100svh - 96px);
  padding: clamp(28px, 4.8vw, 70px) clamp(18px, 6vw, 96px) clamp(30px, 4vw, 58px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12.8ch;
  margin-bottom: 20px;
  font-size: clamp(2.85rem, 6.2vw, 6.55rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.capability-layout p,
.workflow-lane p,
.coverage-grid p,
.use-case-list p,
.pricing-row p,
.disclaimer-section p,
.site-footer span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  max-width: 66ch;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.22vw, 1.16rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.copy-button {
  border: 1px solid var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms ease-out,
    color 160ms ease-out;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--paper-strong);
}

.button:disabled,
.copy-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.secondary,
.copy-button {
  background: var(--paper-strong);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}

.panel-row {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.panel-row strong {
  font-size: 1.02rem;
}

.mini-terminal,
.demo-output,
.code-block {
  overflow: hidden;
  background: var(--code);
  color: var(--code-text);
}

.mini-terminal {
  border-top: 0;
}

.demo-output,
.code-block {
  border: 1px solid color-mix(in oklch, var(--ink) 82%, transparent);
  box-shadow: var(--shadow);
}

.demo-output {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(620px, calc(100svh - 170px));
  min-height: 420px;
}

.terminal-topline {
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--code-line);
  color: color-mix(in oklch, var(--code-text) 76%, transparent);
  font-size: 0.86rem;
}

.status-pill,
.source-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 850;
}

.status-pill {
  background: var(--green-soft);
  color: var(--green-ink);
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
}

#response-output {
  min-height: 0;
  overscroll-behavior: contain;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.route-strip div {
  padding: 22px clamp(16px, 3vw, 42px);
}

.route-strip div + div {
  border-left: 1px solid var(--line);
}

.route-strip span,
.route-strip code {
  display: block;
}

.route-strip span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.route-strip code {
  color: var(--accent-dark);
  font-size: 0.94rem;
}

.capabilities-section,
.workflow-section,
.demo-section,
.coverage-section,
.use-cases-section,
.docs-section,
.pricing-section,
.final-cta {
  padding: clamp(56px, 7.5vw, 108px) clamp(18px, 6vw, 96px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-heading.compact {
  max-width: 690px;
}

.section-action {
  margin-top: 24px;
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) repeat(3, minmax(210px, 0.7fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-layout article {
  min-width: 0;
  min-height: 270px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 78%, var(--paper));
}

.capability-main {
  background: var(--ink) !important;
  color: var(--paper);
}

.capability-main p {
  color: color-mix(in oklch, var(--paper) 78%, transparent);
}

.capability-number {
  display: block;
  margin-bottom: clamp(34px, 5.5vw, 76px);
  color: var(--accent);
  font-weight: 850;
}

.workflow-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 58%, var(--paper));
}

.docs-section {
  background: color-mix(in oklch, var(--paper-strong) 78%, var(--wash));
}

.workflow-lane {
  display: grid;
  grid-template-columns: 0.94fr 1fr 1.06fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper-strong);
}

.workflow-lane article {
  min-width: 0;
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 74%, var(--paper));
}

.workflow-lane span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: clamp(32px, 4.8vw, 62px);
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
}

.workflow-lane h3 {
  max-width: 13ch;
  margin-bottom: 12px;
}

.playground {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(320px, 1.14fr);
  gap: 24px;
  align-items: start;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.demo-form label:first-child,
.demo-form label:nth-child(2),
.checkbox-row,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.demo-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
}

.demo-form input:focus {
  outline: 2px solid color-mix(in oklch, var(--accent) 52%, transparent);
  outline-offset: 2px;
}

.checkbox-row {
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.checkbox-row input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
}

.copy-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.coverage-grid,
.pricing-row {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.coverage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coverage-grid article,
.pricing-row article {
  min-height: 230px;
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.pricing-row article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
}

.pricing-row h2,
.pricing-row h3 {
  max-width: none;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  line-height: 1.15;
}

.source-state {
  margin-bottom: 22px;
}

.source-state.connected {
  background: var(--green-soft);
  color: var(--green-ink);
}

.source-state.planned {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.use-case-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.use-case-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(300px, 0.66fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.use-case-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
}

.steps {
  display: grid;
  gap: 18px;
}

.steps div {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--accent-dark);
  font-weight: 850;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps code {
  color: var(--ink);
}

.featured-plan {
  background: color-mix(in oklch, var(--accent) 9%, var(--paper-strong)) !important;
}

.price {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: clamp(1.85rem, 3.3vw, 3.15rem);
  font-weight: 850;
  line-height: 1;
}

.disclaimer-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(300px, 0.65fr);
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(30px, 5vw, 64px) clamp(18px, 7vw, 112px);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper);
}

.disclaimer-section p {
  margin-bottom: 0;
  color: color-mix(in oklch, var(--paper) 82%, transparent);
}

.disclaimer-section code {
  color: var(--paper-strong);
}

.final-cta {
  background: var(--accent);
  color: var(--paper-strong);
}

.final-cta .eyebrow {
  color: color-mix(in oklch, var(--paper-strong) 85%, transparent);
}

.final-cta .button.primary {
  background: var(--ink);
  border-color: var(--ink);
}

.site-footer {
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(18px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  gap: 22px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.page-hero {
  padding: clamp(44px, 5.8vw, 82px) clamp(18px, 6vw, 96px) clamp(34px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 58%, transparent);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.65rem, 5.8vw, 5.9rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.6;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(40px, 6vw, 82px) clamp(18px, 6vw, 96px);
}

.docs-toc {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 0;
  align-self: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 72%, transparent);
}

.docs-toc-heading,
.docs-toc-card {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.docs-toc-heading {
  display: grid;
  gap: 5px;
}

.docs-toc-heading span,
.docs-toc nav p,
.docs-toc-card span,
.docs-overview span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-toc-heading strong,
.docs-reference-link {
  font-size: 1.02rem;
}

.docs-reference-link {
  justify-self: start;
  text-align: left;
  color: var(--ink);
  font-weight: 850;
}

.docs-reference-link:hover,
.docs-reference-link:focus-visible {
  color: var(--accent-dark);
}

.docs-toc nav {
  display: grid;
  border-right: 1px solid var(--line);
}

.docs-toc nav p {
  margin: 0;
  padding: 16px 18px 7px;
  background: color-mix(in oklch, var(--paper-strong) 64%, var(--wash));
}

.docs-toc a {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--accent-dark);
}

.docs-toc-card {
  display: grid;
  gap: 10px;
  background: color-mix(in oklch, var(--accent) 7%, var(--paper-strong));
}

.docs-toc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.docs-toc-card a {
  padding: 0;
  border-bottom: 0;
  color: var(--accent-dark);
}

.docs-content {
  display: grid;
  gap: clamp(38px, 6vw, 76px);
  min-width: 0;
}

.docs-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper-strong);
}

.docs-overview div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.docs-overview code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
}

.docs-block {
  min-width: 0;
  padding-bottom: clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.docs-block h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 3.3vw, 3.55rem);
}

.docs-block p {
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.62;
}

.field-table {
  display: grid;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.field-table div {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 0.7fr);
  min-width: 0;
}

.field-table dt,
.field-table dd {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field-table dt {
  color: var(--accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 850;
}

.field-table dd {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-detail-section,
.checkout-section,
.key-delivery-section {
  padding: clamp(48px, 6.5vw, 88px) clamp(18px, 6vw, 96px);
}

.pricing-detail-section {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper-strong) 62%, var(--paper));
}

.pricing-row-large article {
  min-height: 300px;
}

.pricing-row-large .button {
  margin-top: 18px;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(300px, 0.56fr);
  gap: clamp(24px, 5vw, 70px);
  background: color-mix(in oklch, var(--paper-strong) 78%, var(--wash));
}

.checkout-form {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form label.plain-label {
  font-weight: 500;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
}

.checkout-form select {
  cursor: pointer;
  font-weight: 400;
}

.form-note,
.checkout-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-status {
  grid-column: 2;
  min-height: 24px;
}

.key-delivery-section {
  display: grid;
  gap: 18px;
  background: color-mix(in oklch, var(--paper-strong) 62%, var(--paper));
}

.key-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.key-delivery-panel {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--ink) 82%, transparent);
  background: var(--code);
  color: var(--code-text);
  box-shadow: var(--shadow);
}

#checkout-output {
  max-height: 420px;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .copy-button:hover {
    transform: none;
  }
}

@media (max-width: 1060px) {
  .hero-section,
  .playground,
  .docs-layout,
  .disclaimer-section,
  .docs-shell,
  .checkout-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .demo-output {
    max-height: 560px;
  }

  .docs-toc {
    position: static;
  }

  .checkout-status {
    grid-column: auto;
  }

  .hero-panel {
    transform: none;
  }

  .capability-layout,
  .coverage-grid,
  .pricing-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .top-notice {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .route-strip,
  .capability-layout,
  .workflow-lane,
  .coverage-grid,
  .pricing-row,
  .docs-overview,
  .use-case-list article,
  .field-table div {
    grid-template-columns: 1fr;
  }

  .route-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .capability-layout,
  .workflow-lane,
  .coverage-grid,
  .pricing-row,
  .docs-toc,
  .docs-overview {
    border-left: 0;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .demo-output {
    min-height: 360px;
    max-height: 70svh;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4.1rem);
  }

  .demo-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
