/* Palette D, Bardiglio and bronze: grey stone by day, basalt by night, one bronze accent.
   Product illustrations (.mock) share the page tokens and follow the system scheme with it. */
@font-face {
  font-family: "FairPrompt Wordmark";
  /* Cinzel 600, subset to the letters of FAIRPROMPT. */
  src: url("wordmark.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #e7e8e8;
  --glow: rgb(255 255 255 / 0.7);
  --bg: #f5f5f4;
  --raised: #fcfcfb;
  --surface: #e8e8e6;
  --surface-hover: #dfdfdc;
  --ink: #202224;
  --muted: #595c60;
  --line: #d0d1cf;
  --edge-top: #c6c7c5;
  --edge-bottom: #d0d1cf;
  --strong: #5c4320;
  --on-strong: #fff;
  --strong-hover: #4a3619;
  --primary: #6a4d22;
  --primary-soft: #efe8dc;
  --secondary: #4b575b;
  --secondary-soft: #e3e6e7;
  --good: #267048;
  --good-bg: #e3efe6;
  --bad: #a63535;
  --bad-bg: #f6eaea;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1011;
    --glow: rgb(209 171 115 / 0.07);
    --bg: #18191a;
    --raised: #232426;
    --surface: #222325;
    --surface-hover: #2c2d30;
    --ink: #e7e5e0;
    --muted: #a6a4a0;
    --line: #353739;
    --edge-top: rgb(255 255 255 / 0.16);
    --edge-bottom: rgb(255 255 255 / 0.05);
    --strong: #6b4e24;
    --strong-hover: #7a5a2b;
    --primary: #d1ab73;
    --primary-soft: #2e2618;
    --secondary: #9fb0b5;
    --secondary-soft: #24292b;
    --good: #9ad4af;
    --good-bg: #20392c;
    --bad: #ffb2b2;
    --bad-bg: #3d282b;
  }
}

.mock {
  /* Edge lit from above: bright at the top, fading toward the bottom. */
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(var(--edge-top), var(--edge-bottom)) border-box;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  /* The gradient spans the root box; a short page would otherwise tile it. */
  min-height: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  /* Polished stone: one soft highlight at the top, no drawn veins. */
  background: radial-gradient(
    ellipse 80% 900px at 70% -240px,
    var(--glow),
    transparent 70%
  );
  background-color: var(--page);
  color: var(--ink);
  font:
    16px / 1.6 ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--secondary-soft);
  color: var(--ink);
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

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

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 34px;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--line);
}

.app-header .wrap {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Bronze head beside inscription capitals; the head carries the colour, the letters stay ink. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    600 17px / 1.2 "FairPrompt Wordmark",
    "Palatino Linotype",
    Palatino,
    serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.header-divider {
  flex: none;
  width: 1px;
  height: 18px;
  background: var(--line);
}

.header-label {
  font-size: 13px;
  color: var(--muted);
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.header-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 140ms var(--ease);
}

.header-nav a:hover,
.footer-nav a:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 140ms var(--ease);
}

.button:hover {
  background: var(--surface-hover);
}

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

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

/* Illustrations only: their controls do not respond. */
.mock .button {
  pointer-events: none;
}

/* Display type: large and light, with tight tracking. */
h1,
.section-title {
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Hero: the pitch beside one assessment finding (Fig. 1). */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 96px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

h1 {
  font-size: 56px;
  line-height: 1.06;
}

/* The question carries the brand colour: solid, never gradient text. */
h1 span {
  display: block;
  color: var(--primary);
}

.lead {
  max-width: 50ch;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* The first sentence names the product, so it reads a step brighter than the rest. */
.lead span {
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.proof {
  display: grid;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.proof li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof .icon {
  color: var(--primary);
}

/* Fig. 1: the cited conversation, with the finding laid over its corner. */
.hero-figure,
.flow-figure {
  margin: 0;
}

.stack {
  display: grid;
}

/* The finding overlaps only the empty foot of the conversation, never a message. */
.hero-chat {
  margin-right: 56px;
}

.hero-chat .card-body {
  padding-bottom: 64px;
}

/* One tone lighter than the conversation, so the overlap reads as a card on top. */
.hero-finding {
  --bg: var(--raised);
  position: relative;
  width: min(100%, 380px);
  margin: -48px 0 0 auto;
  padding: 18px 20px 20px;
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 6px;
}

.hero-finding .card-message {
  margin-bottom: 14px;
  color: var(--muted);
}

/* The finding and the message it cites light up together. */
.linked {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.message-user {
  margin: 14px 0 0 40px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}

.message-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 12px;
  font-weight: 650;
}

.card-body > .author:first-child {
  margin-top: 0;
}

/* The agent is a blindfolded bronze head; perspective lets the nod tip it toward the viewer. */
.agent-head {
  flex: none;
  width: 30px;
  height: 30px;
  perspective: 90px;
}

.agent-head img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 86%;
}

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.evidence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--secondary);
}

.pass {
  color: var(--good);
}

.fail {
  color: var(--bad);
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.icon {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

figcaption span {
  margin-right: 8px;
  font-family: var(--mono);
  text-transform: uppercase;
}

/* Sections */
.section {
  margin-top: 136px;
}

.section-title {
  max-width: 24em;
  margin-bottom: 56px;
  font-size: 40px;
  line-height: 1.15;
}

/* A short claim, then a quieter line that explains it. */
.section-title span {
  display: block;
  color: var(--muted);
}

/* How it works: one numbered step per row on a bronze-to-slate rail, each beside its illustration. */
.flow {
  position: relative;
  display: grid;
  gap: 104px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(
    var(--primary),
    var(--secondary) 80%,
    transparent
  );
  opacity: 0.45;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
  counter-increment: step;
}

.flow-step {
  position: relative;
  padding-left: 60px;
}

.flow-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font: 600 11px / 1 var(--mono);
}

/* The candidate's steps are bronze; the evaluation steps are slate. */
.flow-row:nth-child(n + 3) .flow-step::before {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.flow-step h3,
.pay-row h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.flow-step p {
  margin-top: 8px;
  max-width: 44ch;
  color: var(--muted);
  text-wrap: pretty;
}

.tech {
  padding-left: 10px;
  border-left: 2px solid var(--line);
  font: 12.5px / 1.6 var(--mono);
  color: var(--muted);
}

.flow-step .tech {
  margin-top: 14px;
}

/* Small product cards for Figs. 1–5 */
.card {
  font-size: 13px;
  line-height: 1.6;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 18px;
  border-bottom: 1px solid var(--line);
}

.card-head .wordmark {
  gap: 7px;
  font-size: 12px;
}

.card-head .wordmark img {
  width: 22px;
  height: 22px;
}

.card-head .header-label {
  font-size: 12px;
}

.card-head > .swap,
.card-head-note {
  margin-left: auto;
}

.card-head-note {
  font-size: 12px;
  color: var(--muted);
}

.card-body,
.invite,
.launch {
  padding: 20px 22px 22px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--secondary);
}

.invite .card-title {
  margin-top: 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.press-target {
  position: relative;
  display: inline-flex;
}

.invite .press-target {
  margin-top: 22px;
}

.cursor {
  position: absolute;
  right: 8px;
  bottom: -12px;
  width: 20px;
  height: 20px;
  fill: var(--ink);
  stroke: var(--bg);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.launch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.launch-line .agent-head {
  width: 18px;
  height: 18px;
}

.launch-line .icon {
  margin: 0 2px;
}

.card-status {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.card-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--secondary-soft);
  font-size: 12px;
  color: var(--muted);
}

.card-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.composer-placeholder {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}

.card .agent-head {
  width: 24px;
  height: 24px;
}

.card-message {
  margin-bottom: 16px;
}

.diff-peek {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.diff-file {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  font: 11.5px / 1.4 var(--mono);
  color: var(--muted);
}

.diff-file span:first-child {
  margin-left: auto;
}

/* Grid drops the newlines between rows and stretches each tint to the longest line when it scrolls. */
.diff-peek pre {
  display: grid;
  margin: 0;
  overflow-x: auto;
  font: 11.5px / 1.6 var(--mono);
}

.diff-peek .del,
.diff-peek .add {
  padding: 0 10px;
}

.diff-peek .del {
  background: var(--bad-bg);
  color: var(--bad);
}

.diff-peek .add {
  background: var(--good-bg);
  color: var(--good);
}

.notice {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--good-bg);
  font-size: 12.5px;
}

.notice strong {
  font-weight: 650;
  color: var(--good);
}

.vm-status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.vm-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.good {
  background: var(--good);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 550;
}

.card-subtitle {
  margin-top: 16px;
  font-weight: 650;
}

.criteria {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* Name, citation, rating: the name wraps before the rating does. */
.criteria li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.criterion {
  margin-right: auto;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.criterion.unobserved {
  color: var(--muted);
  text-decoration: none;
}

.cite {
  font: 11.5px / 1.4 var(--mono);
  color: var(--muted);
}

.pill {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.pill.good {
  background: var(--good-bg);
  color: var(--good);
}

.pill.quiet {
  background: var(--surface);
  color: var(--muted);
}

.decision,
.recorded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.recorded strong {
  font-weight: 650;
}

.recorded span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.follow-up {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--secondary-soft);
}

.follow-up p:last-child {
  margin-top: 4px;
}

/* One grid cell: an element and what replaces it share the same space. */
.swap {
  display: inline-grid;
}

div.swap {
  display: grid;
}

.swap > * {
  grid-area: 1 / 1;
}

.card-head .swap {
  justify-items: end;
  align-items: center;
}

/* Who pays: the two options, each with its availability. */
.pay-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pay-row article {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

/* Not available yet: an outline only, so the planned option stands out without dimming text. */
.pay-row article.later {
  border-style: dashed;
  background: transparent;
}

.pay-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}

.pay-row h3 {
  margin-top: 12px;
}

.pay-row h3 ~ p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

.closing {
  text-align: center;
}

.closing .section-title {
  margin: 0 auto;
}

.closing .actions {
  justify-content: center;
  margin-top: 28px;
}

.contact-link {
  font-size: 20px;
  font-weight: 550;
}

/* Footer */
footer {
  margin-top: 136px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

footer .wordmark {
  font-size: 14px;
}

footer .wordmark img {
  width: 26px;
  height: 26px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
}

/* Privacy page */
.doc-head {
  padding-top: 96px;
}

.doc-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  margin-top: 64px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.toc p {
  font: 12px / 1.6 var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary);
}

.doc-body {
  max-width: 68ch;
}

.doc-body section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.doc-body section + section {
  margin-top: 56px;
}

.doc-body h2 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc-body p + p,
.doc-body ul + p {
  margin-top: 14px;
}

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

.facts li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
}

/* Slate marks evidence, as in the illustrations. */
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(10px + 0.8em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--secondary);
}

.note {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

/* Motion. Every figure's default is its end state, so no JS, reduced motion and print all show it. */
.cue-out,
.cursor {
  visibility: hidden;
}

/* The head script adds .js; motion then replays each figure on screen only. */
@media screen {
  .js .anim .cue-out,
  .js .anim .cursor {
    visibility: visible;
  }

  .js .anim .cue,
  .js .anim .cursor {
    opacity: 0;
  }

  .js .anim .linked {
    outline-color: transparent;
  }

  .js .anim.play .cue {
    animation: cue 600ms var(--ease) var(--at, 0s) both;
  }

  .js .anim.play .linked {
    animation: link 500ms var(--ease) var(--link) both;
  }

  .js .anim.play .cue.linked {
    animation:
      cue 600ms var(--ease) var(--at, 0s) both,
      link 500ms var(--ease) var(--link) both;
  }

  .js .anim.play .cue-out {
    animation: cue-out 260ms ease var(--out) forwards;
  }

  .js .anim.play .press {
    animation: press 280ms ease var(--at);
  }

  .js .anim.play .cursor {
    animation:
      point 800ms var(--ease) var(--at) both,
      leave 200ms ease var(--out, 60s) forwards;
  }

  /* While the agent works the head nods once, from its line's --at: it tips forward from the chin and dims, as if turning from the light. */
  .js .anim.play .working img {
    animation: nod 2.6s cubic-bezier(0.45, 0, 0.3, 1) var(--at);
  }
}

@keyframes cue {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cue-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes link {
  from {
    outline-color: transparent;
    outline-offset: 8px;
  }
  to {
    outline-color: var(--primary);
    outline-offset: 2px;
  }
}

@keyframes press {
  50% {
    transform: scale(0.94);
  }
}

@keyframes point {
  from {
    opacity: 0;
    transform: translate(60px, 40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes leave {
  to {
    opacity: 0;
  }
}

@keyframes nod {
  0%,
  58%,
  100% {
    transform: none;
    filter: none;
  }
  28% {
    transform: rotateX(-20deg) translateY(4%);
    filter: brightness(0.84);
  }
}

@media (max-width: 1100px) {
  .wrap {
    padding: 0 24px;
  }

  .hero,
  .flow-row {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .hero-figure {
    max-width: 620px;
  }

  .flow {
    gap: 88px;
  }

  .flow::before {
    display: none;
  }

  .flow-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .flow-step p {
    max-width: 60ch;
  }

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

@media (max-width: 860px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }

  .app-header .wrap {
    height: 60px;
    gap: 14px;
  }

  .wordmark {
    gap: 8px;
    font-size: 15px;
  }

  .wordmark img {
    width: 28px;
    height: 28px;
  }

  .header-nav {
    margin-right: -10px;
  }

  .hero {
    padding-top: 56px;
    gap: 56px;
  }

  .status {
    margin-bottom: 22px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .lead {
    margin-top: 18px;
    font-size: 16px;
  }

  .actions,
  .proof {
    margin-top: 28px;
  }

  /* Phone: the finding still overlaps the conversation, offset by one gutter. */
  .hero-chat {
    margin-right: 24px;
  }

  .hero-finding {
    width: calc(100% - 24px);
    padding: 16px;
  }

  .message-user {
    margin-left: 24px;
  }

  .section {
    margin-top: 96px;
  }

  .section-title {
    margin-bottom: 36px;
    font-size: 30px;
  }

  .flow-step {
    padding-left: 46px;
  }

  .card-head {
    padding: 6px 14px;
  }

  .card-body,
  .invite,
  .launch {
    padding: 16px;
  }

  .card-bar {
    padding: 10px 14px;
  }

  .pay-row article {
    padding: 22px 20px 24px;
  }

  footer {
    margin-top: 96px;
  }

  .doc-head {
    padding-top: 56px;
  }

  .doc {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .app-header .header-divider,
  .app-header .header-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .card-head .header-label {
    display: none;
  }

  /* Narrow phones: tighter tracking keeps the wordmark and nav on one line. */
  .app-header .wordmark {
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .header-nav a,
  .footer-nav a {
    transition: none;
  }
}
