:root {
  color: #08080a;
  background: #fbf7ef;
  font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #fbf7ef;
  --surface: #fff;
  --ink: #08080a;
  --muted: #625e68;
  --border: #ded8d0;
  --teal: #08726c;
  --orange: #ff982a;
  --purple: #5635b8;
  --green: #83bd22;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 10; left: 12px; top: 12px; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header, footer { width: min(100% - 48px, 1220px); min-height: 92px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header > p, footer > p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 33px; font-weight: 850; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.brand img { width: 58px; height: 58px; }

main { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agent-contract, .human-note, .expansion { width: min(100% - 48px, 1220px); margin-inline: auto; }
.agent-contract { padding: 68px 0 84px; }
.contract-intro { position: relative; max-width: 980px; padding: 0 0 56px 42px; }
.contract-intro::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 88%; border-radius: 99px; background: var(--teal); }
.eyebrow { margin-bottom: 10px; color: var(--teal); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin-bottom: 24px; font-size: clamp(50px, 7vw, 84px); font-weight: 900; letter-spacing: -.06em; line-height: .98; }
.directive { max-width: 900px; margin: 0; color: #2e2a31; font-size: clamp(18px, 2vw, 24px); line-height: 1.52; }

.contract-steps { counter-reset: setup; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.contract-steps > li { counter-increment: setup; display: grid; grid-template-columns: 64px minmax(180px, 240px) minmax(0, 1fr); column-gap: 26px; padding: 32px 18px 34px 0; border-bottom: 1px solid var(--border); }
.contract-steps > li::before { content: counter(setup, decimal-leading-zero); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 850; }
.contract-steps > li:nth-child(2)::before { background: var(--orange); color: var(--ink); }
.contract-steps > li:nth-child(3)::before { background: var(--purple); }
.contract-steps > li:nth-child(4)::before { background: var(--green); color: var(--ink); }
.contract-steps h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.035em; line-height: 1.15; }
.contract-steps p { grid-column: 3; margin-bottom: 14px; color: #3e3a43; font-size: 17px; line-height: 1.62; }
.contract-steps p:last-child { margin-bottom: 0; }
.contract-steps pre { grid-column: 3; max-width: 100%; margin: 8px 0 18px; padding: 22px; overflow-x: auto; border-radius: 12px; background: #17171a; color: #f8f8f6; font-size: 14px; line-height: 1.65; }
.contract-steps code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.contract-steps .note { color: var(--muted); font-size: 15px; }

.human-note { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.human-note > div:first-child { position: relative; padding: 68px 42px 142px; }
.human-note > div:first-child::before { content: ""; position: absolute; right: 104px; bottom: 48px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #ff3853; }
.human-note > div:first-child::after { content: ""; position: absolute; right: 42px; bottom: 34px; width: 78px; height: 72px; border-radius: 44px 44px 8px 8px; background: #0c8f89; }
.human-note h2, .expansion h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.04; letter-spacing: -.05em; }
.human-note > div:last-child { max-width: 660px; padding: 76px 32px 68px 80px; }
.human-note > div:last-child p { color: #3e3a43; font-size: 18px; line-height: 1.62; }
.human-note > div:last-child p:last-child { margin-bottom: 0; }

.expansion { padding: 84px 0 96px; }
.expansion > h2 { margin-bottom: 34px; }
.expansion-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.expansion-grid article { min-height: 280px; padding: 34px 30px; border-left: 1px solid var(--border); }
.expansion-grid article:first-child { border-left: 0; }
.expansion-grid span { display: inline-block; margin-bottom: 44px; color: var(--teal); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.expansion-grid h3 { margin-bottom: 12px; font-size: 25px; letter-spacing: -.035em; }
.expansion-grid p { min-height: 82px; margin-bottom: 18px; color: var(--muted); line-height: 1.55; }
.expansion-grid a { color: var(--teal); font-weight: 750; text-underline-offset: 4px; }
footer { min-height: 112px; }
footer .brand { font-size: 25px; }
footer .brand img { width: 42px; height: 42px; }

@media (max-width: 820px) {
  .site-header, footer, .agent-contract, .human-note, .expansion { width: min(100% - 32px, 1220px); }
  .site-header { min-height: 74px; }
  .site-header .brand { font-size: 27px; }
  .site-header .brand img { width: 45px; height: 45px; }
  .agent-contract { padding: 48px 0 64px; }
  .contract-intro { padding: 0 0 42px 24px; }
  .contract-intro::before { width: 8px; }
  .contract-steps > li { grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; padding: 26px 0; }
  .contract-steps h2 { grid-column: 2; }
  .contract-steps p, .contract-steps pre { grid-column: 1 / -1; }
  .contract-steps p { margin-top: 16px; }
  .contract-steps pre { font-size: 12px; }
  .human-note { grid-template-columns: 1fr; }
  .human-note > div:first-child { padding: 42px 24px 118px; }
  .human-note > div:first-child::before { right: 82px; bottom: 39px; width: 20px; height: 20px; }
  .human-note > div:first-child::after { right: 24px; bottom: 28px; width: 72px; height: 66px; }
  .human-note > div:last-child { padding: 28px 24px 42px; }
  .expansion { padding: 64px 0 72px; }
  .expansion-grid { grid-template-columns: 1fr; }
  .expansion-grid article { min-height: 0; border-left: 0; border-top: 1px solid var(--border); }
  .expansion-grid article:first-child { border-top: 0; }
  .expansion-grid span { margin-bottom: 24px; }
  .expansion-grid p { min-height: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 24px; }
}
