/* AGIdock — warm paper, one amber
 *
 * Only give display:grid or display:flex to an element whose children are all
 * elements. Grid and flex turn every child element AND every contiguous run of
 * bare text into a separate item, so a paragraph holding
 * <strong>…</strong> plain text <a>…</a> shatters across the columns. Where a
 * bold lead-in sits on its own line above the text, the <strong> is made a
 * block and the paragraph stays a paragraph. Table layout has no such rule,
 * which is why the comparison is a real <table>.
 *
 * One layout serves every width. Below 1024px it becomes a single column at
 * most 640px wide; the rules for that are at the end of each part, not in a
 * second copy of the page.
 */

@font-face {
  font-family: "Inter Tight";
  src: url(/inter-tight.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url(/jetbrains-mono.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f1;
  --card: #fff;

  --fg: #141712;
  --fg-2: #4f554a;
  --fg-3: #6a7064;
  --fg-4: #8a8f82;
  --fg-cell: #5e6458;

  --line: #e3e2da;
  --line-soft: #eeede6;
  --edge: #d6d5cc;
  --edge-mark: #c9c8be;

  --sun: #fcae2c;
  --sun-edge: #f29a0e;
  --sun-pale: #fedc9a;
  --sun-wash: #fef6e4;
  --amber: #b45309;
  --ink: #92400e;
  --ink-hover: #78350f;
  --wash-fg: #403529;

  --glow: radial-gradient(
    closest-side,
    rgba(252, 174, 44, .243) 0%,
    rgba(252, 174, 44, .108) 38%,
    rgba(252, 174, 44, .034) 65%,
    rgba(252, 174, 44, 0) 100%
  );
  --dots: radial-gradient(circle, rgba(20, 23, 18, .18) 1px, transparent 1.6px);
  --lift:
    0 0 0 4px rgba(252, 174, 44, .297),
    0 1px 2px rgba(20, 23, 18, .06),
    0 12px 24px -12px rgba(20, 23, 18, .22),
    0 30px 60px -30px rgba(20, 23, 18, .30);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------------------
   foundation
   ------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font: 16px/1.5 var(--sans);
}

body:not(.doc) :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 84px;
}

::selection {
  background: var(--sun);
  color: var(--fg);
}

a {
  color: var(--ink);
  text-underline-offset: .16em;
}

a:hover {
  color: var(--ink-hover);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* A compound adjective must not break at its own hyphen. */
.nb {
  white-space: nowrap;
}

.dot,
.acc,
.arrow {
  color: var(--ink);
}

.quiet {
  color: var(--fg-4);
}

.dollar {
  color: var(--fg-4);
}

/* -------------------------------------------------------------------------
   the mark: a slot with something docked in it
   ------------------------------------------------------------------------- */

.mark {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.mark .slot {
  fill: var(--card);
  stroke: var(--edge-mark);
  stroke-width: 1.5;
}

.mark .core {
  fill: var(--amber);
}

/* -------------------------------------------------------------------------
   top bar
   ------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 241, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font: 700 16px/1 var(--mono);
}

.brand:hover {
  color: var(--fg);
}

.top nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 36px;
}

.top nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  color: var(--fg-2);
  text-decoration: none;
  font: 13px var(--mono);
}

.top nav a:hover {
  color: var(--fg);
}

.top nav a[aria-current] {
  gap: 8px;
  color: var(--fg);
  font-weight: 700;
}

.top nav a[aria-current]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
}

.top nav .ext {
  width: 11px;
  height: 11px;
}

.top .cta:hover {
  color: var(--fg);
}

.top .cta {
  grid-area: cta;
  justify-self: end;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  color: var(--fg);
  background: var(--sun);
  border: 1px solid var(--edge);
  border-radius: 999px;
  text-decoration: none;
  font: 500 13px var(--mono);
}

/* -------------------------------------------------------------------------
   shared pieces
   ------------------------------------------------------------------------- */

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--fg-2);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--edge);
  border-radius: 999px;
  font: 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.kicker {
  color: var(--ink);
  font: 12px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede {
  max-width: 540px;
  color: var(--fg-2);
  font-size: 20px;
  line-height: 1.55;
}

.sub {
  max-width: 600px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  color: var(--fg);
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(180, 83, 9, .6);
  text-decoration: none;
  font: 700 14px var(--mono);
}

.button:hover {
  color: var(--fg);
}

.button.secondary {
  padding: 0 24px;
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: none;
  font-weight: 500;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  color: var(--fg);
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 700 13px var(--mono);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* The prompt a reader hands to their agent. */
.prompt {
  padding: 24px;
  background: var(--bg);
  border-radius: 14px;
  font: 15px/1.75 var(--mono);
}

.url {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--fg-4);
}

.us .tick {
  color: var(--amber);
}

/* -------------------------------------------------------------------------
   hero: a glow from the top centre over a dot grid. Both are painted behind
   the section, so nothing in the markup exists only to be decoration.
   ------------------------------------------------------------------------- */

.hero,
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -760px;
  width: 2000px;
  height: 1400px;
  transform: translateX(-50%);
  background: var(--glow);
  pointer-events: none;
}

.hero::after,
.closing::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--dots);
  background-size: 40px 40px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}

.split {
  display: grid;
  align-items: center;
}

.split .copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

/* -------------------------------------------------------------------------
   /
   ------------------------------------------------------------------------- */

.home .split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  max-width: 1240px;
  padding-top: 112px;
  padding-bottom: 104px;
}

/* each line is set by hand, so the size follows the column down to 1024px
   rather than let a line overrun it */
.home .hero h1 {
  font-size: clamp(72px, 7.7vw, 96px);
  white-space: nowrap;
}

.home .hero .actions {
  padding-top: 8px;
}

/* the demo, in a terminal window on a slim gradient bezel */
.terminal {
  position: relative;
  min-width: 0;
}

.terminal .bezel {
  position: relative;
  z-index: 2;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--sun-pale) 0%, var(--sun) 45%, #b45309 100%);
  box-shadow:
    0 0 0 6px rgba(252, 174, 44, .189),
    0 30px 60px -30px rgba(20, 23, 18, .35);
}

.terminal .glass {
  overflow: hidden;
  background: #0c0c0c;
  border-radius: 14px;
}

.terminal .titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #1b1c1a;
  border-bottom: 1px solid #2a2c27;
}

.terminal .lights {
  display: flex;
  gap: 8px;
}

.terminal .lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal .lights i + i {
  background: #febc2e;
}

.terminal .lights i + i + i {
  background: #28c840;
}

.terminal .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #8e9388;
  font: 12px var(--mono);
}

/* The session is text, so it is set on a fixed grid of 74 columns whose type
   scales with the window, the way a picture of it would: 94cqw is the width
   inside the padding, and a column of JetBrains Mono is 0.6em. Every line is
   written to fit in 72. */
.terminal .glass {
  container-type: inline-size;
}

.screen {
  padding: 2.4cqw 3cqw 2.8cqw;
  color: #d9d9d2;
  font-family: var(--mono);
  font-size: calc(94cqw / 44.4);
  line-height: 1.6;
}

.screen .ln {
  display: block;
  overflow: hidden;
  white-space: pre;
}

/* the agent's own banner: a face beside its name, three lines tall */
.screen .banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 2ch;
  margin-bottom: 1.6em;
}

.screen .bot {
  display: block;
  width: 4em;
  height: 4em;
}

.screen .bot .face {
  fill: var(--sun);
}

.screen .bot .eye {
  fill: #0c0c0c;
}

.screen .name {
  color: #f6f6f0;
  font-weight: 700;
}

.screen .you {
  margin: 0 -3cqw;
  padding: 0 3cqw;
  color: #f6f6f0;
  background: #262822;
  font-weight: 700;
}

.screen b {
  color: var(--sun);
  font-weight: 400;
}

.screen em {
  color: #8fd18a;
  font-style: normal;
}

.screen .dim {
  color: #8e9388;
}

.screen .said {
  color: #f1f1ea;
}

.screen .type {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: pre;
}

.screen .t1 {
  width: 68ch;
}

.screen .t2 {
  width: 69ch;
}

.screen .cur {
  display: inline-block;
  width: 1ch;
  height: 1.3em;
  vertical-align: top;
  margin-top: .15em;
  opacity: 0;
  background: #d9d9d2;
}

.screen .status {
  display: grid;
}

.screen .status > span {
  grid-area: 1 / 1;
}

.screen .busy {
  opacity: 0;
  color: var(--sun);
}

.screen .status .s13 {
  color: #8e9388;
}

/* One 17.5s loop: the prompt is typed, the steps land one by one, the
   answer comes, and it holds for five seconds before it starts again. Each
   element has its own keyframes on the shared clock, so the loop restarts
   them together. An element's own style is its final state, which is also
   what a reader who has asked for less motion sees. */
.screen .a {
  animation: 17.5s step-end infinite;
}

.screen .type {
  animation-timing-function: linear;
}

.screen .t1 { animation-name: demo-t1; }
.screen .t2 { animation-name: demo-t2; }
.screen .busy { animation-name: demo-busy; }
.screen .s4 { animation-name: demo-s4; }
.screen .s5 { animation-name: demo-s5; }
.screen .s6 { animation-name: demo-s6; }
.screen .s7 { animation-name: demo-s7; }
.screen .s8 { animation-name: demo-s8; }
.screen .s9 { animation-name: demo-s9; }
.screen .s10 { animation-name: demo-s10; }
.screen .s11 { animation-name: demo-s11; }
.screen .s12 { animation-name: demo-s12; }
.screen .s13 { animation-name: demo-s13; }

.screen .c1 {
  animation: demo-c1 17.5s step-end infinite, demo-blink 1s step-end infinite;
}

.screen .c2 {
  animation: demo-c2 17.5s step-end infinite, demo-blink 1s step-end infinite;
}

@keyframes demo-t1 {
  0%, 2.86% { width: 0; animation-timing-function: steps(68, end); }
  14.86% { width: 68ch; }
}

@keyframes demo-t2 {
  0%, 15.43% { width: 0; animation-timing-function: steps(69, end); }
  25.14% { width: 69ch; }
}

@keyframes demo-c1 {
  0% { opacity: 1; }
  14.86% { opacity: 0; }
}

@keyframes demo-c2 {
  0% { opacity: 0; }
  15.43% { opacity: 1; }
  28.57% { opacity: 0; }
}

@keyframes demo-blink {
  50% { background: transparent; }
}

@keyframes demo-busy {
  0% { opacity: 0; }
  28.57% { opacity: 1; }
  69.71% { opacity: 0; }
}

@keyframes demo-s4 { 0% { opacity: 0; } 29.71% { opacity: 1; } }
@keyframes demo-s5 { 0% { opacity: 0; } 36.57% { opacity: 1; } }
@keyframes demo-s6 { 0% { opacity: 0; } 41.14% { opacity: 1; } }
@keyframes demo-s7 { 0% { opacity: 0; } 44.00% { opacity: 1; } }
@keyframes demo-s8 { 0% { opacity: 0; } 49.14% { opacity: 1; } }
@keyframes demo-s9 { 0% { opacity: 0; } 53.71% { opacity: 1; } }
@keyframes demo-s10 { 0% { opacity: 0; } 58.29% { opacity: 1; } }
@keyframes demo-s11 { 0% { opacity: 0; } 62.29% { opacity: 1; } }
@keyframes demo-s12 { 0% { opacity: 0; } 66.29% { opacity: 1; } }
@keyframes demo-s13 { 0% { opacity: 0; } 69.71% { opacity: 1; } }

/* the shadow it casts on the page: a wide soft pool and a tighter core */
.terminal::before,
.terminal::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.terminal::before {
  left: 50%;
  top: calc(100% + 2px);
  width: 130%;
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 23, 18, .20) 0%, rgba(20, 23, 18, .09) 40%, rgba(20, 23, 18, .025) 75%, rgba(20, 23, 18, 0) 100%);
  filter: blur(14px);
}

.terminal::after {
  left: 12%;
  right: 12%;
  top: calc(100% + 8px);
  height: 42px;
  background: radial-gradient(closest-side, rgba(20, 23, 18, .32) 0%, rgba(20, 23, 18, .12) 55%, rgba(20, 23, 18, 0) 100%);
  filter: blur(10px);
}

/* the sections below the hero */
.band {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home section:not(.hero) > .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 128px;
  padding-bottom: 128px;
}

.home .head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.home h2 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
}

/* 01 — the bill */
.bill {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}

.facts {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 36px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.facts li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
}

.facts li + li {
  border-top: 1px solid var(--line);
}

.facts b {
  flex: none;
  width: 92px;
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
}

.facts p {
  color: var(--fg-2);
  font-size: 14px;
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
}

.saving {
  flex: 1.1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 44px 48px;
  color: var(--fg);
  background: var(--sun);
  border-radius: 24px;
}

.saving .vs {
  margin-bottom: auto;
  padding-bottom: 32px;
  font: 700 13px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.saving .upto {
  font-size: 20px;
  font-weight: 600;
}

.saving b {
  font-size: 180px;
  line-height: .84;
  font-weight: 700;
  letter-spacing: -.06em;
}

.saving .less {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.duel {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.duel > div {
  flex: 1 1 420px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.duel .us {
  padding: 28px 32px 0 0;
}

.duel .them {
  padding: 28px 0 0 32px;
  border-left: 1px solid var(--line);
}

.duel p {
  font-size: 17px;
  line-height: 1.5;
}

.duel .them p {
  color: var(--fg-2);
}

.duel .tick {
  margin-top: 4px;
}

.who {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-3);
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.us .who {
  color: var(--ink);
}

#bill .button {
  width: 385px;
}

/* 02 — why: one table, so the two sides are named once in the header rather
   than beside every claim */
.sheet {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.versus {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.versus thead td {
  width: 220px;
}

.versus th,
.versus td {
  padding: 32px;
  text-align: left;
  vertical-align: top;
}

.versus thead th,
.versus thead td {
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line);
  font: 400 12px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.versus thead th.us {
  color: var(--ink);
}

.versus thead th.us::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--ink);
}

.versus .us {
  background: var(--sun-wash);
}

.versus tbody tr + tr {
  border-top: 1px solid var(--line-soft);
}

.versus tbody th {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.versus .n {
  display: block;
  margin-bottom: 8px;
  color: var(--fg-4);
  font: 400 11px var(--mono);
  letter-spacing: 0;
}

.cell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cell p {
  color: var(--fg-cell);
  font-size: 15px;
  line-height: 1.6;
}

.us .cell p {
  color: var(--fg-2);
}

.cell strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
}

/* the table header names the other side; a card on a phone has none */
.versus .who {
  display: none;
}

.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  text-decoration: none;
  font: 500 14px var(--mono);
}

/* 03 — getting started */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.35fr);
  align-items: stretch;
  gap: 16px;
}

.step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--fg);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
}

.step h3 {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}

.step .tasks {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.7;
}

.step .then {
  margin-top: auto;
  color: var(--fg-2);
  font: 13px var(--mono);
}

.step.lit {
  gap: 20px;
  padding: 32px 36px;
  background: var(--card);
  border-color: var(--sun-edge);
  box-shadow: var(--lift);
}

.step.lit .num {
  color: var(--fg);
  background: var(--sun);
}

.step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 16px;
}

.step-head .copy-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.join {
  display: flex;
  align-items: center;
  justify-content: center;
}

.join svg {
  width: 44px;
  height: 44px;
  padding: 12px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* closing — the hero's glow and grid, mirrored from the bottom */
.home .closing > .wrap {
  align-items: center;
  gap: 28px;
  padding-top: 144px;
  padding-bottom: 144px;
  text-align: center;
}

.closing::before {
  top: auto;
  bottom: -760px;
}

.closing::after {
  background-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 100%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 100%, #000 35%, transparent 100%);
}

.home .closing h2 {
  max-width: 900px;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.closing .sub {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
}

.closing .actions {
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}

/* -------------------------------------------------------------------------
   /pricing.html
   ------------------------------------------------------------------------- */

.pricing .split {
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: end;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.pricing .hero h1 {
  font-size: 68px;
}

.pricing .lede,
.essay .lede {
  line-height: 1.65;
}

.pricing .lede {
  max-width: 520px;
}

.ask {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--sun-edge);
  border-radius: 24px;
  box-shadow: var(--lift);
}

.ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ask h2 {
  min-width: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.pricing main {
  padding-bottom: 128px;
}

.pricing .button {
  height: 56px;
  padding: 0 30px;
  font-size: 15px;
}

/* what the prices below are buying */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 32px;
}

.specs li:first-child {
  padding-left: 0;
}

.specs li + li {
  border-left: 1px solid var(--line);
}

.specs svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--amber);
}

.specs p {
  font-size: 19px;
  font-weight: 600;
}

.specs b {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-4);
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* the card */
.card {
  max-width: 1000px;
  margin: 104px auto 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(20, 23, 18, .05),
    0 40px 80px -48px rgba(20, 23, 18, .35);
}

.card::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--sun);
}

.book {
  width: 100%;
  border-collapse: collapse;
}

.book th,
.book td {
  padding: 24px 16px;
  text-align: left;
}

.book th:first-child,
.book td:first-child {
  padding-left: 40px;
}

.book th:last-child,
.book td:last-child {
  padding-right: 40px;
}

.book thead th {
  padding-top: 28px;
  padding-bottom: 18px;
  color: var(--fg-4);
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.book tbody td {
  border-top: 1px solid var(--line-soft);
}

.book .what {
  font-size: 17px;
  font-weight: 500;
}

.book .what i {
  color: var(--fg-3);
  font-style: normal;
  font-weight: 400;
}

.book .unit {
  width: 292px;
  color: var(--fg-3);
  font-size: 14px;
}

.book .num {
  width: 196px;
  text-align: right;
}

.book td.num {
  font: 700 18px var(--mono);
  font-variant-numeric: tabular-nums;
}

.book thead .unit {
  color: var(--fg-4);
  font-size: 11px;
}

.book .narrow {
  display: none;
}

.example {
  padding: 32px 40px 36px;
  color: var(--wash-fg);
  background: var(--sun-wash);
  border-top: 1px solid var(--sun-pale);
  font-size: 16px;
  line-height: 1.7;
}

.example .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--fg);
  background: var(--sun);
  border-radius: 999px;
  font: 700 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.example b {
  padding: 0 4px;
  color: var(--fg);
  background: linear-gradient(transparent 55%, rgba(252, 174, 44, .5) 55%, rgba(252, 174, 44, .5) 92%, transparent 92%);
  font: 700 24px var(--mono);
}

.fine {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: 1000px;
  margin: 80px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.fine .credit {
  white-space: nowrap;
  font: 700 28px var(--mono);
  letter-spacing: -.02em;
}

.fine .credit span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fine p + p {
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.8;
}

.fine strong {
  color: var(--fg);
}

.pricing main > .actions {
  max-width: 1000px;
  margin: 72px auto 0;
}

/* -------------------------------------------------------------------------
   /agent-native-cloud.html
   ------------------------------------------------------------------------- */

.essay .hero {
  border-bottom: 1px solid var(--line);
}

.essay .split {
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 72px;
  padding-top: 80px;
  padding-bottom: 64px;
}

.essay .hero h1 {
  font-size: clamp(56px, 6.2vw, 80px);
}

.essay .lede {
  max-width: 580px;
}

/* the sketches: pencil on the page's own paper, fading out at every edge */
.sketch img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(1.06) contrast(1.1);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

.part {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.part h2 {
  position: sticky;
  top: 104px;
  align-self: start;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
}

.body.wide {
  gap: 40px;
  max-width: none;
}

.essay main p {
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.8;
}

.essay main strong {
  color: var(--fg);
  font-weight: 600;
}

/* a bold sentence on its own line, then the rest of the paragraph */
.lead {
  max-width: 580px;
}

.pull {
  padding-left: 24px;
  border-left: 3px solid var(--sun);
}

.pull strong,
.lead strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 0;
  list-style: none;
  counter-reset: pair;
}

.pair li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-increment: pair;
}

.pair li::before {
  content: counter(pair);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--fg);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.pair li + li::before {
  color: var(--fg);
  background: var(--sun);
}

.essay .pair p {
  font-size: 17px;
  line-height: 1.75;
}

.aside {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px;
  background: var(--sun-wash);
  border-radius: 16px;
}

.aside svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  color: var(--amber);
}

.essay .aside p {
  color: var(--wash-fg);
}

.beside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 40px;
}

.beside > div {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.beside .sketch,
.last .sketch {
  margin: -24px 0;
}

.essay .big {
  max-width: 780px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.02em;
}

mark {
  color: var(--fg);
  background: linear-gradient(transparent 60%, rgba(252, 174, 44, .45) 60%, rgba(252, 174, 44, .45) 94%, transparent 94%);
  font-weight: 600;
}

.last {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 72px;
  padding: 104px 0 128px;
}

.last .copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.last h2 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
}

.last .actions {
  margin-top: 12px;
}

.essay .button {
  height: 56px;
  padding: 0 30px;
  font-size: 15px;
}

/* -------------------------------------------------------------------------
   footer
   ------------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.foot .sign {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--fg-3);
  font-size: 14px;
}

.foot .brand {
  color: var(--fg);
}

.foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}

.foot .cols > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--fg-2);
  font-size: 14px;
}

.foot .label {
  color: var(--fg-3);
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.foot a {
  color: var(--fg-2);
  text-decoration: none;
}

.foot a[href^="mailto:"] {
  color: var(--ink);
}

.foot a:hover {
  color: var(--ink-hover);
}

/* -------------------------------------------------------------------------
   one column, below 1024px
   ------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .wrap {
    max-width: 640px;
    padding: 0 20px;
  }

  [id] {
    scroll-margin-top: 16px;
  }

  /* the bar is two rows here, so it scrolls away rather than hold a sixth
     of a phone's screen */
  .top {
    position: static;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .top .bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 0 16px;
    max-width: 640px;
    height: auto;
    padding: 0 16px 0 20px;
  }

  .top .brand {
    height: 64px;
    gap: 9px;
    font-size: 15px;
  }

  .mark {
    width: 20px;
    height: 20px;
  }

  .top nav {
    gap: 22px;
    margin: 0 -16px 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .top nav a {
    flex: none;
    gap: 6px;
    padding: 0 2px;
    font-size: 12.5px;
  }

  .top nav a[aria-current] {
    gap: 6px;
  }

  .top nav .ext {
    display: none;
  }

  .top .cta {
    height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero::before,
  .closing::before {
    top: -440px;
    width: 860px;
    height: 800px;
  }

  .closing::before {
    top: auto;
    bottom: -440px;
  }

  .hero::after,
  .closing::after {
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 0%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 45% at 50% 0%, #000 35%, transparent 100%);
  }

  .closing::after {
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 100%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 100%, #000 35%, transparent 100%);
  }

  .split,
  .home .split,
  .pricing .split,
  .essay .split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .split .copy {
    gap: 22px;
  }

  .pill {
    gap: 8px;
    padding: 7px 12px;
    font-size: 10.5px;
  }

  .pill::before {
    width: 6px;
    height: 6px;
  }

  .lede {
    font-size: 16.5px;
    line-height: 1.6;
  }

  .kicker {
    font-size: 11px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .button,
  .button.secondary {
    width: 100%;
    padding: 0 20px;
  }

  .prompt {
    padding: 16px;
    border-radius: 12px;
    font-size: 12.5px;
  }

  .url {
    word-break: break-all;
  }

  .tick {
    width: 16px;
    height: 16px;
  }

  /* / */
  br.wide {
    display: none;
  }

  .home .hero h1 {
    font-size: 56px;
    white-space: normal;
  }

  .home .hero .actions {
    padding-top: 4px;
  }

  .terminal {
    margin: 10px 6px 54px;
  }

  .terminal .bezel {
    padding: 1.5px;
    border-radius: 13px;
    box-shadow:
      0 0 0 5px rgba(252, 174, 44, .189),
      0 24px 48px -24px rgba(20, 23, 18, .35);
  }

  .terminal .glass {
    border-radius: 11.5px;
  }

  .terminal .titlebar {
    height: 28px;
    padding: 0 10px;
  }

  .terminal .lights {
    gap: 6px;
  }

  .terminal .lights i {
    width: 9px;
    height: 9px;
  }

  .terminal .title {
    font-size: 10.5px;
  }

  .terminal::before {
    top: calc(100% + 1px);
    width: 160vw;
    height: 48px;
    filter: blur(9px);
  }

  .terminal::after {
    left: 10%;
    right: 10%;
    top: calc(100% + 4px);
    height: 22px;
    filter: blur(6px);
  }

  .home section:not(.hero) > .wrap {
    gap: 18px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home .head {
    gap: 18px;
  }

  .home h2 {
    font-size: 36px;
  }

  .bill {
    flex-direction: column;
    gap: 18px;
  }

  .facts {
    padding: 4px 20px;
    border-radius: 20px;
  }

  .facts li {
    gap: 16px;
    padding: 18px 0;
  }

  .facts b {
    width: 58px;
    font-size: 30px;
  }

  .facts p {
    font-size: 13px;
  }

  .facts strong {
    margin-bottom: 2px;
    font-size: 15.5px;
  }

  .saving {
    gap: 6px;
    padding: 28px 24px;
    border-radius: 20px;
  }

  .saving .vs {
    padding-bottom: 14px;
    font-size: 10.5px;
  }

  .saving .upto {
    font-size: 17px;
  }

  .saving b {
    font-size: 116px;
    line-height: .86;
  }

  .saving .less {
    font-size: 19px;
  }

  .duel {
    flex-direction: column;
  }

  .duel > div {
    flex: none;
    gap: 12px;
  }

  .duel .us {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .duel .them {
    padding: 18px 0 0;
    border-left: 0;
  }

  .duel p {
    font-size: 14.5px;
  }

  .duel .tick {
    margin-top: 3px;
  }

  .who {
    margin-bottom: 4px;
    font-size: 10px;
  }

  #bill .button {
    width: 100%;
  }

  /* the comparison as one card per row */
  .sheet {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .versus,
  .versus tbody,
  .versus tr,
  .versus th,
  .versus td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .versus thead {
    display: none;
  }

  .versus tbody tr {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .versus tbody tr + tr {
    margin-top: 18px;
    border-top: 1px solid var(--line);
  }

  .versus th,
  .versus td {
    padding: 16px 18px;
  }

  .versus tbody th {
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

  .versus .n {
    display: inline;
    margin: 0 10px 0 0;
  }

  .versus .who {
    display: block;
  }

  .cell {
    gap: 12px;
  }

  .cell p {
    font-size: 14px;
    line-height: 1.55;
  }

  .cell strong {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .more a {
    font-size: 13px;
  }

  .sub {
    font-size: 15.5px;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .step {
    gap: 10px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .step .num {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .step h3 {
    margin-top: 4px;
    font-size: 21px;
  }

  .step .tasks {
    font-size: 15px;
  }

  .step.lit {
    gap: 10px;
    padding: 22px 20px;
  }

  /* the copy button goes under the prompt it copies */
  .step-head {
    display: contents;
  }

  .step.lit .num {
    order: 1;
  }

  .step.lit h3 {
    order: 2;
  }

  .step.lit .prompt {
    order: 3;
    margin-top: 4px;
  }

  .step.lit .copy-btn {
    order: 4;
    align-self: flex-start;
    padding: 0 16px;
    font-size: 12px;
  }

  .step.lit .then {
    order: 5;
  }

  .join {
    position: relative;
    z-index: 1;
    margin: -8px 0;
  }

  .join svg {
    width: 38px;
    height: 38px;
    padding: 10px;
    transform: rotate(90deg);
  }

  .home .closing > .wrap {
    gap: 18px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .home .closing h2 {
    font-size: 38px;
    line-height: 1.04;
    letter-spacing: -.04em;
  }

  .closing .sub {
    font-size: 15.5px;
  }

  .closing .actions {
    width: 100%;
    padding-top: 8px;
  }

  /* /pricing.html */
  .pricing .hero h1 {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .pricing .lede,
  .essay .lede {
    font-size: 17px;
  }

  .ask {
    margin-top: 8px;
    gap: 14px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .ask-head {
    flex-wrap: wrap;
  }

  .ask h2 {
    font-size: 19px;
  }

  .pricing main {
    padding-bottom: 64px;
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 0;
  }

  .specs li,
  .specs li:first-child {
    padding: 22px 12px 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .specs li + li {
    border-left: 0;
  }

  .specs li:nth-child(2n) {
    padding: 22px 0 22px 16px;
    border-left: 1px solid var(--line);
  }

  .specs svg {
    display: none;
  }

  .specs p {
    font-size: 16px;
  }

  .specs b {
    font-size: 10px;
  }

  .card {
    margin-top: 56px;
    border-radius: 20px;
  }

  .card::before {
    height: 5px;
  }

  .book,
  .book thead,
  .book tbody {
    display: block;
  }

  .book tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 16px;
    padding: 18px 20px;
  }

  .book tbody tr {
    border-top: 1px solid var(--line-soft);
  }

  .book thead tr {
    padding: 16px 20px 10px;
  }

  .book th,
  .book td,
  .book th:first-child,
  .book td:first-child,
  .book th:last-child,
  .book td:last-child {
    width: auto;
    padding: 0;
    border: 0;
  }

  .book thead th {
    font-size: 10px;
  }

  .book .narrow {
    display: inline;
  }

  .book thead .unit {
    display: none;
  }

  .book .what {
    font-size: 15px;
    line-height: 1.45;
  }

  .book td.unit {
    grid-column: 1;
    font-size: 12.5px;
  }

  .book .num {
    grid-column: 2;
    grid-row: 1;
  }

  .book td.num {
    font-size: 16px;
  }

  .example {
    padding: 20px 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .example .tag {
    margin-bottom: 12px;
    font-size: 10.5px;
  }

  .example b {
    padding: 0 3px;
    font-size: 20px;
  }

  .fine {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 48px;
    padding-top: 28px;
  }

  .fine .credit {
    font-size: 24px;
  }

  .fine .credit span {
    display: inline;
    margin: 0 0 0 10px;
    font-size: 11px;
  }

  .fine p + p {
    font-size: 14px;
    line-height: 1.75;
  }

  .pricing main > .actions {
    margin-top: 44px;
  }

  /* /agent-native-cloud.html */
  .essay .split {
    padding-bottom: 32px;
  }

  .essay .hero h1 {
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .sketch,
  .beside .sketch,
  .last .sketch {
    margin: 0 16px;
  }

  .part {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 56px 0;
  }

  .part h2,
  .last h2 {
    position: static;
    margin-bottom: 4px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  .body,
  .body.wide,
  .beside > div {
    gap: 20px;
  }

  .essay main p {
    font-size: 16px;
    line-height: 1.75;
  }

  .pull {
    padding-left: 18px;
  }

  .pull strong,
  .lead strong {
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: -.01em;
  }

  .pair {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .pair li {
    gap: 12px;
  }

  .pair li::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .essay .pair p {
    font-size: 16px;
  }

  .aside {
    gap: 12px;
    padding: 20px;
    border-radius: 14px;
  }

  .aside svg {
    width: 20px;
    height: 20px;
    margin-top: 4px;
  }

  .beside {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .essay .big {
    font-size: 22px;
    letter-spacing: -.015em;
  }

  /* the sketch sits under the heading, above the text */
  .last {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 56px 0 64px;
  }

  .last .copy {
    display: contents;
  }

  .last h2 {
    order: 1;
  }

  .last .sketch {
    order: 2;
  }

  .last .lead {
    order: 3;
  }

  .last .actions {
    order: 4;
    margin-top: 12px;
  }

  /* footer */
  .foot .wrap {
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .foot .brand {
    gap: 9px;
    font-size: 15px;
  }

  .foot .cols {
    flex-direction: column;
    gap: 20px;
  }

  .foot .cols > div:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .foot .cols > div:first-child .label {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .foot .cols > div:first-child a {
    display: flex;
    align-items: center;
    height: 44px;
  }

  .foot .cols > div + div {
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

/* -------------------------------------------------------------------------
   rendered markdown pages: the docs and the legal pages. Prose end to end, so
   they keep a reading measure and the plainer type of a reference.
   ------------------------------------------------------------------------- */

body.doc {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.6rem 6rem;
  font-size: 16px;
  line-height: 1.65;
}

body.doc > nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.6rem;
  padding: 1.25rem 0 1.1rem;
  color: var(--fg-4);
  background: rgba(247, 246, 241, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 13px var(--mono);
}

body.doc > nav a {
  color: var(--fg-2);
  text-decoration: none;
}

body.doc > nav a:hover {
  color: var(--fg);
}

body.doc > nav a:first-child {
  color: var(--fg);
  font-weight: 700;
}

body.doc h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.045em;
}

body.doc h2 {
  margin: 3rem 0 .8rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}

body.doc h3 {
  margin: 2rem 0 .5rem;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.01em;
}

body.doc strong {
  font-weight: 650;
}

body.doc ul,
body.doc ol {
  padding-left: 1.2rem;
}

body.doc li {
  margin: .35rem 0;
}

body.doc pre {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.55;
}

body.doc code {
  font-family: var(--mono);
}

body.doc :is(p, li, td) code {
  padding: .06rem .32rem;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .86em;
}

/* A table wider than the measure scrolls in its own box, not the page. */
body.doc .table {
  overflow-x: auto;
  margin: 1.4rem 0;
}

body.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

body.doc th,
body.doc td {
  padding: .6rem .8rem .6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

body.doc th {
  color: var(--fg-3);
  border-bottom-color: var(--edge);
  font: 500 .65rem var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  body.doc {
    padding: 0 1.2rem 5rem;
  }
}

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

  .screen * {
    animation: none !important;
  }
}
