@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url(/fonts/geist-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url(/fonts/geist-mono-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f7f7f4;
  --card: #ffffff;
  --sunken: #efefea;
  --ink: #0f0f12;
  --ink-2: #34343b;
  --muted: #5f5f67;
  --line: #e5e5df;
  --line-strong: #d2d2cb;
  --rec: #ff4433;
  --rec-ink: #d42c1a;
  --rec-soft: #ffe4df;
  --ok: #0f7a4a;
  --danger: #c4282f;
  --dark: #121215;
  --dark-2: #1d1d21;
  --dark-line: #2c2c32;
  --dark-ink: #f4f4f1;
  --dark-muted: #a3a3ab;
  --shadow-sm: 0 1px 2px rgb(15 15 18 / 0.06);
  --shadow: 0 1px 2px rgb(15 15 18 / 0.05), 0 10px 30px -12px rgb(15 15 18 / 0.16);
  --shadow-lg: 0 2px 4px rgb(15 15 18 / 0.05), 0 30px 60px -24px rgb(15 15 18 / 0.3);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rec);
  outline-offset: 2px;
}

.mono {
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, 1160px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, 760px);
}

.small {
  color: var(--muted);
  font-size: 0.875rem;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Buttons */

.btn {
  --btn-bg: var(--card);
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out);
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn .i {
  transition: transform 200ms var(--ease-out);
}

.btn-ink {
  --btn-bg: var(--ink);
  --btn-ink: var(--bg);
  border-color: var(--ink);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0 0.95rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    border-color: var(--ink);
  }
  .btn-ink:hover:not(:disabled) {
    --btn-bg: color-mix(in oklab, var(--ink) 86%, var(--bg));
  }
  .btn:hover:not(:disabled) .i {
    transform: translateX(2px);
  }
}

.linkbtn {
  padding: 0.25rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.copy {
  flex: none;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.copy:active {
  transform: scale(0.96);
}

.copy[data-copied] {
  border-color: var(--ok);
  color: var(--ok);
}

/* Pills, REC dot and the crop-mark frame */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.rec {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px var(--rec-soft);
}

.framed {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.2em 0.06em;
  margin-inline: -0.02em;
  --c: var(--rec);
  --l: 0.32em;
  --t: 0.07em;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* Top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    background: var(--sunken);
    color: var(--ink);
  }
}

.nav .btn {
  margin-inline-start: 0.5rem;
}

@media (max-width: 760px) {
  .nav-link {
    display: none;
  }
}

.banner {
  padding: 0.7rem 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  text-align: center;
}

.banner a {
  font-weight: 600;
}

/* Hero */

/* Sized against the viewport height as well as its width, so the ad fan below the form lands in the first screen. */
.hero {
  padding-block: clamp(1.75rem, min(6vw, 7svh - 1.5rem), 4.5rem) 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: 19ch;
  font-size: clamp(2.6rem, min(7.2vw, 9.6svh), 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-title .framed {
  white-space: nowrap;
  --l: 0.28em;
  --t: 0.055em;
}

.hero-sub {
  max-width: 58rem;
  margin-top: clamp(0.9rem, 2svh, 1.25rem);
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.urlbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 34rem);
  margin-top: clamp(1.1rem, 3svh, 1.75rem);
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.urlbar:focus-within {
  border-color: var(--ink);
}

.urlbar-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-inline-start: 0.2rem;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--muted);
}

.urlbar-icon svg {
  width: 1rem;
  height: 1rem;
}

.urlbar input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  border: 0;
  background: none;
  font-size: 1rem;
  outline: none;
}

.urlbar input::placeholder {
  color: var(--muted);
}

.urlbar .btn {
  min-height: 2.9rem;
  padding-inline: 1.3rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-facts li::before {
  content: '';
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@media (max-width: 520px) {
  .urlbar {
    flex-wrap: wrap;
    border-radius: var(--r);
    padding: 0.5rem;
  }
  .urlbar input {
    flex-basis: calc(100% - 3rem);
  }
  .urlbar .btn {
    width: 100%;
  }
}

/* Hero stage: real ads fanned out under the form */

.stage {
  position: relative;
  margin-top: clamp(1.75rem, 5svh, 3.25rem);
  text-align: center;
}

.stage::before {
  content: '';
  position: absolute;
  inset: -2rem 0 0;
  background: radial-gradient(60% 70% at 50% 45%, color-mix(in oklab, var(--rec) 7%, transparent), transparent 70%);
  pointer-events: none;
}

.fan {
  --tall: clamp(11rem, min(26vw, 100svh - 29rem), 21rem);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.25rem);
  padding-inline: 1rem;
}

.fan .ad {
  --h: var(--tall);
  --rot: 0deg;
  --y: 0rem;
  flex: none;
  width: calc(var(--h) * var(--w));
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--rot)) translateY(var(--y));
}

.fan .ad-1x1 {
  --h: calc(var(--tall) * 0.66);
}

.fan .ad-4x5 {
  --h: calc(var(--tall) * 0.81);
}

.fan .ad:nth-child(1) {
  --rot: -5deg;
  --y: 1.25rem;
}
.fan .ad:nth-child(2) {
  --rot: -2.5deg;
  --y: 0.4rem;
}
.fan .ad:nth-child(4) {
  --rot: 2.5deg;
  --y: 0.4rem;
}
.fan .ad:nth-child(5) {
  --rot: 5deg;
  --y: 1.25rem;
}

.fan figcaption {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  font: 500 0.68rem/1.2 var(--mono);
}

.stage-note {
  position: relative;
  margin-top: 2.5rem;
  padding-inline: 1.25rem;
  text-wrap: balance;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .fan figcaption {
    display: none;
  }
  .fan .ad:nth-child(1),
  .fan .ad:nth-child(5) {
    display: none;
  }
  .fan {
    --tall: 15rem;
  }
}

@media (max-width: 420px) {
  /* Three cards (4:5, 9:16, 4:5) and their gaps fit the screen width. */
  .fan {
    --tall: min(12.5rem, (100vw - 2.75rem) / 1.86);
    gap: 0.5rem;
  }
}

/* Ad frames */

.ad {
  position: relative;
  margin: 0;
  border-radius: 14px;
  background: var(--card);
}

.ad-art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: inherit;
}

.ad-art img,
.ad-art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-story {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.7rem;
  background: linear-gradient(rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 42%);
  text-align: left;
  color: #17140f;
}

.ad-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.8;
}

.ad-handle i {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #17140f;
}

.ad-story b {
  font-family: var(--display);
  font-size: clamp(0.75rem, 10.5cqi, 1.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ad-pill {
  margin-top: auto;
  align-self: stretch;
  padding: 0.45rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.ad-feed {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  background: rgb(255 255 255 / 0.92);
  color: #17140f;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Hero tools row: where you can make ads from. A crop-mark focus frame hops between the tools (site.js). */

.from {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.from-label {
  color: var(--muted);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.from-tools {
  position: relative;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.tools .logo {
  width: 1.65rem;
  height: 1.65rem;
}

.tools li {
  animation: rise 520ms var(--ease-out) both;
}
.tools li:nth-child(1) {
  animation-delay: 260ms;
}
.tools li:nth-child(2) {
  animation-delay: 300ms;
}
.tools li:nth-child(3) {
  animation-delay: 340ms;
}
.tools li:nth-child(4) {
  animation-delay: 380ms;
}
.tools li:nth-child(5) {
  animation-delay: 420ms;
}
.tools li:nth-child(6) {
  animation-delay: 460ms;
}

/* Four red corners, each moved on its own with transform so the frame can change size without stretching. */
.focus {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.focus[data-on] {
  opacity: 1;
}

.focus i {
  --l: 0.7rem;
  --t: 2px;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--l);
  height: var(--l);
  border: 0 solid var(--rec);
  transition: transform 560ms cubic-bezier(0.77, 0, 0.175, 1);
}

.focus i:nth-child(1) {
  border-width: var(--t) 0 0 var(--t);
}
.focus i:nth-child(2) {
  border-width: var(--t) var(--t) 0 0;
}
.focus i:nth-child(3) {
  border-width: 0 0 var(--t) var(--t);
}
.focus i:nth-child(4) {
  border-width: 0 var(--t) var(--t) 0;
}

.focus[data-instant] i {
  transition: none;
}

.logo {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

/* Claude Code's mark is drawn in Anthropic's clay; the other vendors' marks are black. */
.logo-claude {
  color: #d97757;
}

.logo-web,
.logo-api {
  color: var(--muted);
}

@media (max-width: 560px) {
  .tools {
    gap: 0.1rem 0.25rem;
  }
  .tools a {
    font-size: 1rem;
    padding: 0.55rem 0.7rem;
  }
  .tools .logo {
    width: 1.45rem;
    height: 1.45rem;
  }
}

/* Sections */

.section {
  padding-block: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.kicker {
  margin-bottom: 0.9rem;
  color: var(--rec-ink);
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.section-sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.075rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Steps */

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

.step {
  position: relative;
  padding: 0.75rem 0.75rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.step-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  height: 9.5rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border-radius: calc(var(--r-lg) - 0.75rem);
  background: var(--sunken);
  overflow: hidden;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 0.8rem/1 var(--mono);
}

.step h3,
.step p {
  margin-inline: 0.75rem;
}

.step h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.step p {
  max-width: 19rem;
  margin: 0.5rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-url {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.mini-url .mono {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-btn {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.mini-chips span {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.mini-chips .on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mini-files {
  display: grid;
  align-self: stretch;
  text-align: left;
  gap: 0.35rem;
}

.mini-files > span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.72rem;
}

.mini-files .mono {
  flex: 1;
}

.mini-files b {
  font-size: 0.7rem;
  color: var(--ok);
}

.mini-files i {
  display: block;
  height: 1.3rem;
  border-radius: 3px;
  background: linear-gradient(to bottom, #f5d8c2 60%, #e2b593 60%);
}

.f-1x1 {
  width: 1.3rem;
}
.f-4x5 {
  width: 1.04rem;
}
.f-9x16 {
  width: 0.73rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step-visual {
    height: auto;
    min-height: 6.5rem;
  }
}

/* Example ad sets */

.adsets {
  display: grid;
  gap: 1.25rem;
}

/* One product at a time: the sets share a grid cell and crossfade when the picker changes. */
.demo-sets {
  display: grid;
}

.demo-set {
  grid-area: 1 / 1;
  /* The cell is as tall as the longest product's copy; shorter ones sit centered in it. */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 0s 180ms;
}

.demo-set[data-on] {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease;
}

.demo-pick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.demo-pick button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem 0.25rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: 500 0.85rem/1 var(--sans);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    border-color 150ms ease,
    color 150ms ease;
}

.demo-pick button:active {
  transform: scale(0.97);
}

.demo-pick button[aria-pressed='true'] {
  border-color: var(--ink);
  color: var(--ink);
}

.demo-pick img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .demo-pick button:hover {
    color: var(--ink);
  }
}

/* The store photo, an arrow, then the ads made from it. */
.adset-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: min(100%, 64rem);
}

.demo-in {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: clamp(7.5rem, 15vw, 11rem);
  margin: 0;
}

.demo-in figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  color: rgb(23 20 15 / 0.62);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

.demo-shot {
  display: block;
  width: 100%;
  padding: 0.4rem;
  --l: 0.9rem;
  --t: 2px;
}

.demo-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  /* A hidden product's photo has no src until picked; this keeps its alt text from stretching the box. */
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.demo-arrow {
  flex: none;
  width: clamp(1.75rem, 3vw, 3rem);
  color: rgb(23 20 15 / 0.4);
}

.adset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 3rem);
  border-radius: var(--r-lg);
  text-align: center;
  background: color-mix(in oklab, var(--tint) 55%, var(--card));
  color: #17140f;
}

.adset-frames {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.adset-copy {
  max-width: 36rem;
}

.adset .ad {
  flex: var(--w) 1 0;
  min-width: 0;
  background: transparent;
}

.adset .ad-art {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.adset .ad figcaption {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  font: 500 0.68rem/1.2 var(--mono);
}

.adset-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.adset-meta > * {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
}

.adset-meta .angle {
  background: #17140f;
  color: #fff;
}

.adset-meta a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.adset dl {
  margin: 0;
}

.adset dt {
  margin-bottom: 0.4rem;
  color: rgb(23 20 15 / 0.62);
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.adset dd {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  text-wrap: pretty;
  line-height: 1.55;
}

.adset dd:last-child {
  margin-bottom: 0;
}

.adset .adset-headline {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-chip {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.examples-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 560px) {
  .adset-copy {
    padding-inline: 0.5rem;
  }
}

/* Phones: the 9:16 runs the full height on the left and the 1:1 and 4:5 stack beside it. The right column width solves 16/9 × (100% - gap - w) = 2.25w + gap for an 0.5rem gap. */
@media (max-width: 560px) {
  .adset {
    container-type: inline-size;
  }
  .adset-row {
    flex-direction: column;
  }
  .demo-in {
    flex-direction: row;
    width: auto;
  }
  .demo-shot {
    width: 5.25rem;
    padding: 0.3rem;
    --l: 0.7rem;
  }
  .demo-arrow {
    width: 1.5rem;
    transform: rotate(90deg);
  }
  .adset-frames {
    width: 100%;
  }
  .adset-frames {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(44.138cqi - 0.345rem);
    grid-template-areas: 'tall square' 'tall portrait';
    align-items: start;
    gap: 0.5rem;
  }
  .adset .ad-1x1 {
    grid-area: square;
  }
  .adset .ad-4x5 {
    grid-area: portrait;
  }
  .adset .ad-9x16 {
    grid-area: tall;
  }
}

/* Agents */

.dark-card {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: calc(var(--r-lg) + 4px);
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: var(--shadow-lg);
}

.agents .section-head {
  margin-bottom: 2rem;
}

.agents .section-sub {
  color: var(--dark-muted);
}

.agents .kicker {
  color: #ff6a5a;
}

.prompt {
  width: fit-content;
  max-width: 36rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: 1rem 1.4rem 1.1rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  background: var(--dark-2);
  text-align: center;
}

.prompt-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: var(--dark-muted);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-label::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rec);
}

.prompt p {
  font-size: 1.05rem;
  line-height: 1.45;
  text-wrap: balance;
}

.snippets {
  max-width: 46rem;
}

.agents .snippets {
  margin-inline: auto;
  text-align: left;
}

.snippet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.agents .snippet-tabs {
  justify-content: center;
}

.snippet-tabs [role='tab'] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}

.snippet-tabs [role='tab']:active {
  transform: scale(0.97);
}

.snippet-tabs [aria-selected='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.dark-card .snippet-tabs [role='tab'] {
  border-color: var(--dark-line);
  background: transparent;
  color: var(--dark-muted);
}

.dark-card .snippet-tabs [aria-selected='true'] {
  border-color: var(--dark-ink);
  background: var(--dark-ink);
  color: var(--dark);
}

.dark-card .snippet-tabs .logo-codex,
.dark-card .snippet-tabs .logo-cursor,
.dark-card .snippet-tabs .logo-mcp,
.dark-card .snippet-tabs .logo-api {
  color: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .snippet-tabs [aria-selected='false']:hover {
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .dark-card .snippet-tabs [aria-selected='false']:hover {
    border-color: #45454d;
    color: var(--dark-ink);
  }
}

/* Every panel sits in the same cell, so the box keeps the tallest one's height and switching tabs never moves the page. */
.snippet-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.snippet {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
}

.snippet[inert] {
  visibility: hidden;
}

.dark-card .snippet {
  border-color: var(--dark-line);
  background: var(--dark-2);
  color: var(--dark-ink);
}

.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.15rem;
}

.snippet-head p {
  color: var(--muted);
  font-size: 0.88rem;
}

.dark-card .snippet-head p {
  color: var(--dark-muted);
}

.dark-card .copy {
  border-color: var(--dark-line);
  background: transparent;
  color: var(--dark-ink);
}

.snippet pre {
  flex: 1;
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  background: var(--sunken);
  font: 0.8rem/1.65 var(--mono);
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dark-card .snippet pre {
  background: #0a0a0c;
  color: #e6e6e1;
}

@media (max-width: 560px) {
  .snippet-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scrollbar-width: none;
  }
  .agents .snippet-tabs {
    justify-content: flex-start;
  }
  .snippet-tabs [role='tab'] {
    flex: none;
  }
  .snippet-head {
    align-items: flex-start;
  }
  .snippet pre {
    font-size: 0.74rem;
  }
}

/* Pricing */

.opening {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: -0.75rem auto 1.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--rec-soft);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 520px) {
  .opening {
    border-radius: var(--r-sm);
  }
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.plan-featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
}

.plan-tag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--rec-ink);
  color: #fff;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.5rem;
  white-space: nowrap;
}

.plan-for {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.plan-price b {
  font-family: var(--display);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-credits {
  margin-top: 0.5rem;
  font: 500 0.82rem/1.3 var(--mono);
  color: var(--ink-2);
}

.checks {
  display: grid;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.92rem;
}

.checks li {
  display: flex;
  gap: 0.55rem;
  text-align: left;
  align-items: flex-start;
}

.checks .i {
  margin-top: 0.2rem;
  color: var(--ok);
}

.plan .btn {
  margin-top: auto;
}

.plans-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.rates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.rates li {
  padding: 1rem 1.25rem;
  text-align: center;
}

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

.rates b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.rates span {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }
  .plan-featured {
    order: -1;
  }
  .rates {
    grid-template-columns: 1fr 1fr;
    max-width: 30rem;
  }
  .rates li + li {
    border-left: 0;
  }
  .rates li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .rates li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* FAQ */

#faq .section-sub a {
  color: var(--ink);
  font-weight: 500;
}

.faq {
  display: grid;
  gap: 0.5rem;
  max-width: 46rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  transition: transform 200ms var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.6px;
  margin-top: -0.8px;
  border-radius: 2px;
  background: currentColor;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
}

/* Closing call to action */

.last-call {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.last-card {
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) + 4px);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.last-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.nowrap {
  white-space: nowrap;
}

.last-card p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.last-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Footer */

.foot {
  padding-bottom: 1.25rem;
}

.foot-card {
  container-type: inline-size;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-radius: calc(var(--r-lg) + 4px);
  background: var(--dark);
  color: var(--dark-ink);
  text-align: center;
}

.foot-about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foot .brand .mark rect {
  fill: var(--dark-ink);
}

.foot .brand .mark path {
  stroke: var(--dark);
}

.foot-about p {
  max-width: 24rem;
  margin-top: 1rem;
  color: var(--dark-muted);
  font-size: 0.92rem;
}

.foot-mail {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 2rem clamp(1.75rem, 9vw, 7rem);
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--dark-line);
}

.foot nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.foot nav h2 {
  margin-bottom: 0.3rem;
  color: var(--dark-muted);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot nav a {
  color: var(--dark-ink);
  font-size: 0.92rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .foot nav a:hover {
    text-decoration: underline;
  }
}

.foot-word {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21cqi;
  letter-spacing: -0.06em;
  line-height: 0.74;
  color: #26262b;
  white-space: nowrap;
  user-select: none;
}

.foot-copy {
  margin-top: 1.25rem;
  color: var(--dark-muted);
  font-size: 0.8rem;
}

/* Forms */

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field label,
.field-label,
fieldset legend {
  font-size: 0.875rem;
  font-weight: 600;
}

.input {
  width: 100%;
  height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 12%, transparent);
}

.input.mono {
  font-family: var(--mono);
}

fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

fieldset legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

.form-msg {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.form-msg:empty {
  min-height: 0;
  margin: 0;
}

.form-msg.is-error {
  color: var(--danger);
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.notice-error {
  background: color-mix(in oklab, var(--danger) 10%, var(--card));
  color: var(--danger);
}

.soon {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--rec-soft);
}

.soon p {
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* Welcome */

.welcome {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.welcome-card {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.welcome-card h1 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.welcome-card > p:not(.pill) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.welcome-card > p a {
  color: var(--ink);
  font-weight: 500;
}

.pending {
  text-align: center;
}

.pending h1 {
  margin-top: 0;
}

.shutter {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  color: var(--rec);
  animation: spin 1.4s linear infinite;
}

/* Legal */

.legal-wrap {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal h1 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal h1 + p {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h2 {
  margin-block: 2.5rem 0.6rem;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p + p {
  margin-top: 0.9rem;
}

.legal ul {
  margin: 0.75rem 0;
  padding-inline-start: 1.25rem;
}

.legal li {
  margin-block: 0.4rem;
}

.legal li::marker {
  color: var(--rec);
}

/* Docs and setup guides */

.page-head {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.page-head .section-sub a {
  color: var(--ink);
}

.page-logo {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.page-logo .logo {
  width: 1.9rem;
  height: 1.9rem;
}

.doc {
  display: grid;
  grid-template-columns: 12rem minmax(0, 46rem);
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.doc-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  font-size: 0.9rem;
}

.doc-toc p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.doc-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .doc-toc a:hover {
    border-left-color: var(--rec);
    color: var(--ink);
  }
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-toc {
    position: static;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
  }
  .doc-toc ol {
    columns: 2;
    column-gap: 1rem;
    border: 0;
  }
  .doc-toc a {
    padding: 0.25rem 0;
  }
}

.prose {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose section {
  scroll-margin-top: 5rem;
}

.prose section + section {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}

.prose h2 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.prose * + h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose * + .snippet,
.prose * + .table-scroll,
.prose .table-scroll + *,
.prose .snippet + p,
.prose .snippet + .endpoint,
.prose * + .facts,
.prose .facts + * {
  margin-top: 1rem;
}

.prose ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.prose li {
  margin-block: 0.45rem;
}

.prose li::marker {
  color: var(--rec);
}

.prose a {
  color: var(--ink);
  font-weight: 500;
}

.prose :not(pre) > code,
.params code {
  padding: 0.08em 0.36em;
  border-radius: 6px;
  background: var(--sunken);
  color: var(--ink);
  font: 0.86em var(--mono);
  overflow-wrap: anywhere;
}

.snippet.code pre {
  max-height: 34rem;
}

.snippet-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.85rem;
  padding-inline: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.dark-card .snippet-more {
  color: var(--dark-ink);
}

@media (hover: hover) and (pointer: fine) {
  .snippet-more:hover {
    text-decoration: underline;
  }
}

.endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.prose .endpoint code {
  padding: 0;
  background: none;
  font-size: 1rem;
  font-weight: 500;
}

.method {
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.method-get {
  background: var(--sunken);
  color: var(--ink);
}

.method-post {
  background: var(--ink);
  color: var(--bg);
}

.endpoint-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.params {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.params th,
.params td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.params th {
  color: var(--muted);
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.params tr + tr td,
.params tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

.params td:first-child {
  white-space: nowrap;
}

.req {
  color: var(--rec-ink);
  font: 500 0.8rem var(--mono);
}

.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.facts dt {
  color: var(--muted);
  font: 500 0.75rem/1.9 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
}

.guide {
  max-width: 46rem;
  margin-inline: auto;
}

.guide-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-steps > li {
  position: relative;
  padding-left: 2.6rem;
  counter-increment: step;
}

.guide-steps > li + li {
  margin-top: 1.75rem;
}

.guide-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 0.8rem/1 var(--mono);
}

.guide-steps h3 {
  margin-bottom: 0.4rem;
  line-height: 1.6rem;
}

.session {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
}

.session .prompt {
  width: auto;
  max-width: none;
  margin: 0;
  text-align: left;
}

.session .prompt p {
  text-wrap: pretty;
}

.calls {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  font: 0.8rem/1.5 var(--mono);
}

.call {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.6rem 0.1rem;
}

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

.call-name {
  grid-row: span 2;
  color: var(--dark-ink);
  font-weight: 600;
}

.call-tool .call-name::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--rec);
  vertical-align: 0.1em;
}

.prose .calls code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.call-input {
  color: var(--dark-muted);
  overflow-wrap: anywhere;
}

.call-result {
  color: #e6e6e1;
  overflow-wrap: anywhere;
}

.call-result::before {
  content: '→ ';
  color: var(--dark-muted);
}

.session-note {
  margin-bottom: 1.25rem;
  color: var(--dark-muted);
  font-size: 0.9rem;
}

.reply {
  padding: 1rem 1.4rem 1.1rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  color: var(--dark-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.reply p + p {
  margin-top: 0.5rem;
}

.reply b {
  font-weight: 600;
}

.reply-file {
  margin-left: 0.35rem;
  font: 0.85em var(--mono);
  text-decoration: underline;
  text-decoration-color: var(--dark-muted);
  text-underline-offset: 0.2em;
}

@media (max-width: 560px) {
  .call {
    grid-template-columns: minmax(0, 1fr);
  }
  .call-name {
    grid-row: auto;
  }
  .guide-steps > li {
    padding-left: 2.25rem;
  }
}

.other-guides {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.other-guides .tools li {
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .other-guides .tools a:hover {
    background: var(--sunken);
  }
}

/* Motion */

.rise {
  animation: rise 520ms var(--ease-out) both;
}

.hero-inner .rise:nth-child(2) {
  animation-delay: 50ms;
}
.hero-inner .rise:nth-child(3) {
  animation-delay: 100ms;
}
.hero-inner .rise:nth-child(4) {
  animation-delay: 150ms;
}
.hero-inner .rise:nth-child(5) {
  animation-delay: 200ms;
}
/* The fan deals out from the center: each card rises into its resting angle a beat after its neighbor. */
.fan .ad {
  animation: deal 700ms var(--ease-out) 220ms both;
}
.fan .ad:nth-child(2),
.fan .ad:nth-child(4) {
  animation-delay: 280ms;
}
.fan .ad:nth-child(1),
.fan .ad:nth-child(5) {
  animation-delay: 340ms;
}

@keyframes deal {
  from {
    opacity: 0;
    transform: rotate(0deg) translateY(calc(var(--y) + 2.5rem));
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .fan .ad,
  .tools li,
  dialog[open] {
    animation-name: fade;
  }
  .shutter,
  .asset-art[data-status='pending'],
  .progress-steps li[data-state='active']::before {
    animation: none;
  }
  .focus i,
  .btn,
  .btn .i,
  .copy,
  .dial span,
  .chips span,
  .pack-body,
  .switch::after,
  .faq-icon {
    transition: none;
  }
}

@media (max-width: 520px) {
  .btn-lg {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
