:root {
  color-scheme: light;
  --ink: #29202a;
  --muted: #6b5c62;
  --paper: #fffaf5;
  --sheet: #fffefd;
  --coral: #ca4930;
  --coral-deep: #a93825;
  --coral-soft: #ffe4d9;
  --blue: #28458d;
  --blue-soft: #e8edff;
  --yellow: #ffd36a;
  --line: #dfd0ca;
  --shadow: 0 24px 70px rgba(72, 43, 39, 0.14);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 211, 106, 0.3), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header,
main,
.site-footer {
  width: min(1420px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.site-header > p {
  margin: 0;
  color: var(--muted);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: var(--ink);
  font-family: Iowan Old Style, Charter, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50% 50% 46% 54% / 55% 43% 57% 45%;
  background: var(--coral);
  color: white;
  font-family: ui-sans-serif, sans-serif;
  font-size: 0.86rem;
  transform: rotate(-5deg);
}

.site-nav {
  display: flex;
  gap: 24px;
  justify-self: end;
}

.site-nav a {
  justify-self: end;
  color: var(--blue);
  font-weight: 750;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 5vw, 92px);
  width: min(1760px, calc(100vw - max(32px, (100vw - 1420px) / 2) - 32px));
  min-height: 610px;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 100px 0 110px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Iowan Old Style, Charter, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  max-width: 1080px;
  font-size: clamp(3.6rem, 5vw, 5.9rem);
}

h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
}

.hero-lede {
  max-width: 880px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px 15px 5px 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 2px 3px 0 var(--ink);
  transform: translate(2px, 2px);
}

.button-primary {
  background: var(--coral);
  color: white;
}

.text-link {
  color: var(--blue);
  font-weight: 750;
  text-underline-offset: 5px;
}

.missing-piece {
  --piece-size: clamp(90px, 6vw, 126px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--piece-size));
  gap: clamp(12px, 1.1vw, 20px);
  justify-self: center;
  opacity: 0.88;
  transform: rotate(-9deg);
}

.missing-piece span {
  width: var(--piece-size);
  height: var(--piece-size);
  border: 3px dashed var(--coral);
  background: var(--coral-soft);
}

.missing-piece span:nth-child(2) {
  background: transparent;
  border-color: var(--blue);
  transform: translate(clamp(18px, 1.8vw, 34px), calc(var(--piece-size) * -0.7)) rotate(12deg);
}

.handoff {
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 68px;
}

.section-heading h2 {
  max-width: 900px;
}

.section-heading p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.handoff-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.76fr) 100px minmax(310px, 1.25fr) 100px minmax(180px, 0.76fr);
  align-items: center;
}

.system-note {
  position: relative;
  z-index: 2;
  padding: 25px;
  border: 1px solid #cbbcb7;
  background: var(--sheet);
  box-shadow: 8px 10px 0 rgba(41, 32, 42, 0.08);
}

.system-note-out {
  transform: rotate(-2deg);
}

.system-note-back {
  background: var(--blue-soft);
  border-color: #b7c1e6;
  transform: rotate(2deg);
}

.note-label,
.request-overline {
  margin: 0 0 17px;
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.case-label {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.system-note h3 {
  margin: 7px 0 10px;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.55rem;
}

.system-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.note-foot {
  margin: 22px -25px -25px;
  padding: 13px 25px;
  border-top: 1px dashed var(--line);
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.handoff-arrow {
  position: relative;
  z-index: 1;
  color: var(--blue);
  text-align: center;
}

.handoff-arrow span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.handoff-arrow svg {
  display: block;
  width: 130%;
  margin-left: -15%;
  overflow: visible;
}

.handoff-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.request-slip {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: 38px 35px 32px;
  border: 1px solid #cfc0ba;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(58, 42, 46, 0.035) 29px 30px),
    var(--sheet);
  box-shadow: var(--shadow);
}

.request-slip::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 12px;
  background: linear-gradient(135deg, transparent 6px, var(--sheet) 0) 0 0 / 12px 12px repeat-x;
  content: "";
}

.paperclip {
  position: absolute;
  top: -27px;
  right: 24px;
  width: 28px;
  color: var(--coral);
  transform: rotate(14deg);
}

.paperclip path,
.file-chip path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.requested-by {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.8rem;
}

.request-head h3 {
  margin: 0;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 2rem;
  line-height: 1.04;
}

.request-head > p:last-child {
  margin: 11px 0 25px;
  color: var(--muted);
  font-size: 0.85rem;
}

.request-form {
  display: grid;
  gap: 15px;
}

.request-form label,
.example-field {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 750;
}

.request-form label > span,
.example-label > span {
  color: var(--coral-deep);
}

.request-form input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfbfba;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.file-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px dashed var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
}

.file-chip svg {
  width: 18px;
}

.request-submit {
  display: block;
  margin-top: 4px;
  padding: 11px 14px;
  border: 0;
  border-radius: 5px;
  background: var(--coral);
  color: white;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.form-note {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.event-type {
  margin: 0 0 17px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-note dl {
  display: grid;
  gap: 8px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.system-note dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dotted #aeb7d4;
}

.system-note dt,
.system-note dd {
  margin: 0;
}

.verified {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 22px 0 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.verified span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}

.explanation {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.explanation-copy {
  max-width: 820px;
}

.explanation-copy p:last-child {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.request-range {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.request-range li {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 5px 6px 0 rgba(41, 32, 42, 0.07);
}

.request-range li:nth-child(1) {
  transform: rotate(1deg);
}

.request-range li:nth-child(2) {
  background: var(--coral-soft);
  transform: rotate(-1.2deg);
}

.request-range li:nth-child(3) {
  background: var(--blue-soft);
  transform: rotate(0.7deg);
}

.request-range strong,
.request-range span {
  display: block;
}

.request-range a {
  color: inherit;
  text-decoration: none;
}

.request-range a > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.build-cost {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.build-cost-copy {
  max-width: 940px;
}

.build-cost-copy > p {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.ops-sheet {
  max-width: 1120px;
  margin: 58px 0 0;
  padding: 34px 38px 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  background: var(--sheet);
  box-shadow: 7px 8px 0 rgba(41, 32, 42, 0.07);
}

.ops-sheet h3 {
  margin: 0 0 24px;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.55rem;
}

.ops-sheet ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ops-sheet li {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.ops-sheet li span {
  color: var(--muted);
}

.fit-note {
  max-width: 760px;
  margin: 27px 0 0;
  color: var(--muted);
}

.agent-use-case {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.agent-copy {
  max-width: 850px;
}

.agent-copy > p,
.proof-intro > p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.agent-copy code,
.agent-flow code {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.agent-copy .text-link {
  display: inline-block;
  margin-top: 22px;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 58px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.agent-flow li {
  position: relative;
  min-height: 155px;
  padding: 25px 34px 25px 0;
}

.agent-flow li + li {
  padding-left: 34px;
  border-left: 1px dashed var(--line);
}

.agent-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: -10px;
  width: 20px;
  background: var(--paper);
  color: var(--coral-deep);
  content: "→";
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.1rem;
  text-align: center;
}

.agent-flow strong,
.agent-flow span {
  display: block;
}

.agent-flow span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.proof {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.proof-intro {
  max-width: 850px;
}

.proof-list {
  display: grid;
  gap: 0;
  margin: 55px 0 0;
  border-top: 1px solid var(--line);
}

.proof-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  gap: 30px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.proof-list div:first-child {
  padding-top: 23px;
}

.proof-list dt {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.proof-list dd {
  margin: 0;
  color: var(--muted);
}

.boundary-note {
  max-width: 920px;
  margin: 42px 0 0;
  padding: 22px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 211, 106, 0.16);
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  margin: 25px 0 110px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 740px;
}

.contact p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
}

.button-light {
  background: var(--coral);
  color: white;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  padding: 35px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.wordmark-footer {
  font-size: 1.05rem;
}

.wordmark-footer .wordmark-mark {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.site-footer p {
  max-width: 430px;
  margin: 8px 0 0;
}

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

p code,
li code,
dd code {
  color: var(--blue);
  font-size: 0.9em;
}

.docs-main {
  max-width: 1420px;
}

.docs-hero {
  max-width: 1160px;
  padding: 105px 0 100px;
}

.docs-hero h1 {
  max-width: 1100px;
  font-size: clamp(3.6rem, 6vw, 6rem);
}

.docs-hero > p {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.agent-docs-hero {
  max-width: 1240px;
}

.docs-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 20px 0;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.docs-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.docs-copy {
  max-width: 920px;
}

.docs-copy h2 {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
}

.docs-copy > p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.docs-copy a,
.setup-list a,
.site-footer a {
  color: var(--blue);
  text-underline-offset: 4px;
}

.code-block {
  max-width: 100%;
  margin: 42px 0 0;
  overflow-x: auto;
  padding: 26px 28px;
  border: 1px solid #443845;
  border-left: 5px solid var(--coral);
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 7px 8px 0 rgba(41, 32, 42, 0.1);
  color: #fffaf5;
  font-size: 0.86rem;
  line-height: 1.72;
  tab-size: 2;
}

.code-block-large {
  max-width: 1040px;
}

.docs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 70px;
  align-items: start;
}

.docs-split .code-block {
  margin-top: 0;
}

.return-path {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 44px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
  font-weight: 700;
}

.return-path span:nth-child(odd) {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.return-path span:nth-child(even) {
  color: var(--coral-deep);
}

.endpoint-list {
  margin-top: 45px;
  border-top: 1px solid var(--line);
}

.endpoint-list > div {
  display: grid;
  grid-template-columns: 72px minmax(280px, 0.65fr) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.endpoint-list code {
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.endpoint-list strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}

.endpoint-list span {
  color: var(--muted);
}

.setup-list {
  max-width: 1120px;
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}

.setup-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.setup-list dt {
  color: var(--coral-deep);
  font-weight: 800;
}

.setup-list dd {
  margin: 0;
  color: var(--muted);
}

.guide-steps {
  display: grid;
  max-width: 1120px;
  margin: 52px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.guide-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) 1fr;
  gap: 28px;
  padding: 22px 24px 22px 30px;
  border-bottom: 1px solid var(--line);
}

.guide-steps li::before {
  position: absolute;
  top: 31px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.guide-steps span {
  color: var(--muted);
}

.agent-example-path,
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}

.agent-example-path > div,
.example-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 5px 6px 0 rgba(41, 32, 42, 0.07);
}

.agent-example-path > div:nth-child(2) {
  background: var(--coral-soft);
}

.agent-example-path > div:nth-child(3) {
  background: var(--blue-soft);
}

.agent-example-path strong,
.agent-example-path span {
  display: block;
}

.agent-example-path span,
.example-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.example-grid h3 {
  margin: 0;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.45rem;
}

.direct-note {
  max-width: 860px;
  margin: 38px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 211, 106, 0.16);
  color: var(--muted);
}

.docs-contact {
  margin-top: 70px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-copy {
    max-width: 800px;
  }

  .missing-piece {
    --piece-size: 64px;
    position: absolute;
    right: 28px;
    bottom: 48px;
    gap: 9px;
  }

  .missing-piece span:nth-child(2) {
    transform: translate(18px, -45px) rotate(12deg);
  }

  .handoff-stage {
    grid-template-columns: minmax(180px, 0.8fr) 60px minmax(310px, 1.2fr);
    gap: 0;
  }

  .arrow-back {
    display: none;
  }

  .system-note-back {
    grid-column: 3;
    width: 75%;
    margin: 28px 0 0 auto;
  }

  .docs-split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .docs-split .code-block {
    margin-top: 0;
  }

}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .site-header > p {
    display: none;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 76px 0 84px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.8rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .missing-piece {
    --piece-size: 52px;
    right: 22px;
    bottom: 28px;
    gap: 8px;
    opacity: 0.42;
    transform: rotate(-9deg) scale(0.62);
  }

  .missing-piece span {
    border-width: 2px;
  }

  .missing-piece span:nth-child(2) {
    transform: translate(16px, -42px) rotate(12deg);
  }

  .handoff {
    padding: 82px 0 95px;
  }

  .section-heading { margin-bottom: 55px; }

  .handoff-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .system-note {
    width: 78%;
  }

  .system-note-out {
    justify-self: start;
  }

  .system-note-back {
    grid-column: 1;
    width: 78%;
    margin: 0 0 0 auto;
  }

  .handoff-arrow {
    width: 86px;
    height: 42px;
    margin: -12px auto;
    transform: rotate(78deg);
  }

  .handoff-arrow svg {
    width: 110px;
  }

  .handoff-arrow span {
    display: none;
  }

  .arrow-back {
    display: block;
    transform: rotate(102deg);
  }

  .request-slip {
    padding: 34px 25px 29px;
  }

  .explanation {
    padding: 88px 0;
  }

  .request-range,
  .agent-flow {
    grid-template-columns: 1fr;
  }

  .request-range {
    gap: 30px;
  }

  .request-range li:nth-child(2) {
    margin-inline: 5px -5px;
  }

  .agent-use-case {
    padding: 88px 0;
  }

  .build-cost {
    padding: 88px 0;
  }

  .ops-sheet {
    padding: 28px 22px 26px;
  }

  .ops-sheet li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .agent-flow li {
    min-height: 0;
    padding: 22px 0 25px;
  }

  .agent-flow li + li {
    padding-left: 0;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .agent-flow li:not(:last-child)::after {
    top: auto;
    right: 12px;
    bottom: -12px;
    transform: rotate(90deg);
  }

  .proof {
    padding: 88px 0;
  }

  .proof-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 35px 0 90px;
    padding: 58px 0;
  }

  .contact .button {
    justify-self: start;
    white-space: normal;
  }

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

  .docs-hero {
    padding: 76px 0 74px;
  }

  .docs-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .docs-local-nav {
    gap: 10px 20px;
  }

  .docs-section {
    padding: 72px 0;
  }

  .code-block {
    margin-top: 34px;
    padding: 22px 18px;
    font-size: 0.76rem;
  }

  .return-path {
    align-items: flex-start;
    flex-direction: column;
  }

  .return-path span:nth-child(even) {
    margin-left: 20px;
    transform: rotate(90deg);
  }

  .endpoint-list > div,
  .setup-list > div,
  .guide-steps li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .endpoint-list > div {
    padding: 20px 0;
  }

  .agent-example-path,
  .example-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 410px) {
  .header-link {
    font-size: 0.72rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .system-note {
    width: 86%;
  }

  .request-head h3 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Product and acquisition pages */
.topic-main {
  max-width: 1420px;
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(52px, 7vw, 120px);
  align-items: center;
  min-height: 650px;
  padding: 90px 0;
}

.topic-hero-copy h1 {
  max-width: 980px;
}

.topic-hero-copy > p,
.pricing-hero > p {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hosted-preview {
  position: relative;
  padding: 34px 31px 30px;
  border: 1px solid #cfc0ba;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(58, 42, 46, 0.035) 29px 30px),
    var(--sheet);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hosted-preview::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 12px;
  background: linear-gradient(135deg, transparent 6px, var(--sheet) 0) 0 0 / 12px 12px repeat-x;
  content: "";
}

.hosted-preview-label,
.hosted-preview-sender {
  margin: 0;
  font-size: 0.74rem;
}

.hosted-preview-label {
  color: var(--coral-deep);
  font-weight: 800;
}

.hosted-preview-sender {
  margin-top: 17px;
  color: var(--muted);
}

.hosted-preview h2 {
  margin-top: 7px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.03;
}

.hosted-preview-fields {
  display: grid;
  gap: 12px;
  margin: 28px 0 20px;
}

.preview-control {
  display: grid;
  gap: 5px;
}

.preview-control > span,
.preview-summary > span,
.preview-attachment div > span,
.preview-inline-file div > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
}

.preview-control input,
.preview-control textarea,
.preview-input-value,
.preview-select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.preview-control textarea {
  min-height: 58px;
  resize: none;
  line-height: 1.35;
}

.preview-select {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.preview-select strong {
  font-weight: 600;
}

.preview-select > span {
  color: var(--blue);
  font-size: 1rem;
}

.preview-checkbox {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 0.76rem;
}

.preview-checkbox > span,
.preview-checklist span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.68rem;
}

.preview-checkbox strong,
.preview-checklist strong {
  font-weight: 600;
}

.preview-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.preview-summary strong {
  font-size: 0.8rem;
  text-align: right;
}

.preview-confidence > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.preview-confidence em {
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 0.61rem;
  font-style: normal;
}

.preview-attachment,
.preview-inline-file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.preview-attachment > div,
.preview-inline-file > div {
  display: grid;
  min-width: 0;
}

.preview-attachment strong,
.preview-inline-file strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-attachment small,
.preview-inline-file small {
  color: var(--muted);
  font-size: 0.62rem;
}

.preview-attachment > b {
  color: var(--blue);
  font-size: 0.75rem;
}

.preview-file-icon {
  display: inline-grid;
  width: 36px;
  height: 42px;
  place-items: center;
  border-radius: 2px 8px 2px 2px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 0.58rem;
  font-weight: 850;
}

.preview-upload {
  display: grid;
  gap: 3px;
  padding: 16px 12px;
  border: 1px dashed var(--blue);
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
}

.preview-upload strong {
  font-size: 0.78rem;
}

.preview-upload span,
.preview-upload small {
  font-size: 0.64rem;
}

.preview-document-art {
  width: 40px;
  height: 50px;
  padding: 9px 7px;
  border: 1px solid #d6c8c2;
  background: var(--sheet);
  box-shadow: 2px 2px 0 rgba(41, 32, 42, 0.08);
}

.preview-document-art i {
  display: block;
  height: 2px;
  margin-bottom: 5px;
  background: #d8c9c3;
}

.preview-document-art i:nth-child(2) {
  width: 72%;
}

.preview-document-art i:nth-child(4) {
  width: 84%;
}

.preview-image-art {
  position: relative;
  width: 52px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #b8c2e3;
  border-radius: 3px;
  background: linear-gradient(165deg, #dce5ff 0 52%, #f2ba85 53% 70%, #d86a49 71%);
}

.preview-image-art::before {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff7cf;
  content: "";
}

.preview-inline-file a {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 750;
}

.preview-checklist {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  background: white;
}

.preview-checklist > div {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.hosted-preview-actions {
  display: flex;
  gap: 9px;
}

.hosted-preview-action {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 11px 14px;
  border: 1px solid var(--coral);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.hosted-preview-action-primary {
  background: var(--coral);
  color: white;
}

.hosted-preview-action-secondary {
  background: white;
  color: var(--coral-deep);
}

.hosted-preview > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.topic-section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.topic-copy {
  max-width: 920px;
}

.topic-copy h2,
.topic-related h2,
.topic-price h2 {
  max-width: 900px;
}

.topic-copy > p,
.topic-price p {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.topic-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.topic-steps li,
.topic-service-grid article,
.pricing-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 5px 6px 0 rgba(41, 32, 42, 0.07);
}

.topic-steps li:nth-child(2),
.topic-service-grid article:nth-child(2),
.pricing-grid article:nth-child(2) {
  background: var(--coral-soft);
}

.topic-steps li:nth-child(3),
.topic-service-grid article:nth-child(3),
.pricing-grid article:nth-child(3) {
  background: var(--blue-soft);
}

.topic-steps strong,
.topic-steps span {
  display: block;
}

.topic-steps span {
  margin-top: 9px;
  color: var(--muted);
}

.topic-code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 36px;
  margin-top: 48px;
}

.topic-code-grid h3 {
  margin: 0;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.45rem;
}

.topic-code-grid > div {
  min-width: 0;
}

.topic-code-grid .code-block {
  height: calc(100% - 35px);
  margin-top: 14px;
}

.code-method {
  color: #ffd36a;
  font-weight: 800;
}

.topic-endpoints {
  max-width: 1180px;
}

.topic-service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.topic-service-grid h3,
.pricing-grid h3 {
  margin: 0;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.5rem;
}

.topic-service-grid p,
.pricing-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.topic-price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.topic-related {
  padding: 95px 0;
  border-top: 1px solid var(--line);
}

.topic-related > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.topic-related a {
  display: flex;
  min-height: 125px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.topic-related a:hover {
  border-color: var(--coral);
}

.topic-related a span {
  margin-top: 20px;
  color: var(--blue);
  font-family: ui-sans-serif, sans-serif;
  font-size: 0.78rem;
}

.pricing-hero {
  max-width: 1120px;
  min-height: 570px;
  padding: 120px 0;
}

.pricing-grid article > strong {
  display: block;
  margin-top: 20px;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.pricing-rules {
  max-width: 1100px;
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}

.pricing-rules > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-rules dt {
  color: var(--coral-deep);
  font-weight: 800;
}

.pricing-rules dd {
  margin: 0;
  color: var(--muted);
}

.policy-main {
  max-width: 1120px;
}

.policy-hero {
  max-width: 980px;
  padding: 120px 0 105px;
}

.policy-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.policy-hero p {
  max-width: 780px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.policy-sections section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) 1fr;
  gap: 60px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.policy-sections h2,
.policy-sections p {
  margin: 0;
}

.policy-sections h2 {
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 1.65rem;
}

.policy-sections p {
  max-width: 720px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .topic-hero {
    grid-template-columns: 1fr;
  }

  .hosted-preview {
    width: min(100%, 520px);
  }

  .topic-code-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px 0;
  }

  .site-nav {
    width: 100%;
    gap: 13px;
    justify-content: space-between;
    justify-self: stretch;
    font-size: 0.71rem;
  }

  .topic-hero {
    min-height: 0;
    gap: 62px;
    padding: 70px 0 80px;
  }

  .topic-hero h1,
  .pricing-hero h1,
  .policy-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .topic-section,
  .topic-related {
    padding: 76px 0;
  }

  .topic-steps,
  .topic-service-grid,
  .topic-related > div,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .topic-price {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pricing-hero {
    min-height: 0;
    padding: 80px 0;
  }

  .pricing-rules > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .policy-hero {
    padding: 80px 0 70px;
  }

  .policy-sections section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 410px) {
  .site-nav {
    gap: 9px;
    font-size: 0.65rem;
  }
}
