/* The public pages (rhesa.app). Dark-led: the blackbird's body is ink, not black; a faint blue-violet sheen
   shows only at edges and behind the hero; the beak is the one warm colour, used once per screen. Sizes are
   ordinary: the product is the star, not the type. No inline styles or scripts: the site's CSP is
   default-src 'self'. The fonts are the files in public/fonts (scripts/fonts.mjs copies them). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono.woff2) format("woff2-variations");
}

:root {
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --surface-0: #0a0b11;
  --surface-1: #10121a;
  --surface-2: #171a25;
  --surface-3: #1f2331;
  --text-1: #ecebf3;
  --text-2: #a9abbd;
  --text-3: #7f8197;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-sheen: linear-gradient(
    118deg,
    rgba(76, 111, 255, 0.55),
    rgba(43, 179, 138, 0.4),
    rgba(139, 108, 255, 0.55)
  );

  --beak: #f5a524;
  --accent: var(--beak);
  --accent-hover: #ffb640;
  --accent-text: #ffb640;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --text-on-accent: #0a0b11;
  --plume-blue: #4c6fff;
  --plume-violet: #8b6cff;

  --status-new: #ffb640;
  --status-new-soft: rgba(245, 165, 36, 0.14);
  --status-progress: #8da3ff;
  --status-progress-soft: rgba(76, 111, 255, 0.16);
  --status-waiting: #b3a2ff;
  --status-waiting-soft: rgba(139, 108, 255, 0.16);
  --status-done: #4fd3a7;
  --status-done-soft: rgba(43, 179, 138, 0.16);
  --status-fail: #ff8a7a;
  --status-fail-soft: rgba(255, 99, 82, 0.14);

  --focus: 0 0 0 2px var(--surface-0), 0 0 0 4px var(--plume-blue);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 64px -24px rgba(0, 0, 0, 0.8);
  --glow:
    radial-gradient(60% 60% at 70% 40%, rgba(76, 111, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 30% 70%, rgba(139, 108, 255, 0.14), transparent 70%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;

  --gutter: clamp(1rem, 4vw, 3rem);
  --page-max: 1200px;

  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-text);
  font-size: 1.0625rem; /* 17 */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}
b {
  font-weight: 600;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.75rem); /* 38 → 60 */
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); /* 28 → 40 */
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem; /* 22 */
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.lede {
  font-size: 1.1875rem; /* 19 */
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.mark .m {
  fill: var(--text-1);
}
.mark .beak {
  fill: var(--beak);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  min-height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-1);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}
.btn-sm {
  min-height: 2.125rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.875rem;
}
.btn-lg {
  min-height: 2.875rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 11, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--text-1);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav .keep,
.top .keep {
  font-size: 0.9375rem;
  color: var(--text-2);
}
.nav .keep:hover,
.top .keep:hover {
  color: var(--text-1);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 58% at 74% 42%, rgba(76, 111, 255, 0.2), transparent 72%),
    radial-gradient(36% 46% at 88% 18%, rgba(139, 108, 255, 0.1), transparent 72%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero .display {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); /* 32 → 48: the line is long, and the product is the star */
  line-height: 1.08;
}
.hero-copy .lede {
  margin-top: 1.5rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-3);
  text-wrap: pretty;
}
.note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--beak);
  margin-right: 0.625rem;
  vertical-align: 0.125em;
}

/* the hero's one object in the light: a request card, and the reply the customer received */
.stage {
  position: relative;
}
.req {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 1.5rem;
  background-clip: padding-box;
}
.req::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--line-sheen);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 1.4s var(--ease) 1.1s forwards;
  pointer-events: none;
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
.req-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.req-head .who {
  flex: 1;
}
.req-head b {
  color: var(--text-1);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.125rem 0.5rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  flex: none;
}
.avatar.sm {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.6875rem;
}
.req-quote {
  margin-top: 1.125rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.req-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.req-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-2);
}
.req-told {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.avs {
  display: inline-flex;
}
.avs .avatar {
  margin-right: -0.375rem;
  box-shadow: 0 0 0 2px var(--surface-1);
}

/* status swap: one orchestrated moment; reduced motion shows the end state */
.swap {
  display: inline-grid;
}
.swap > * {
  grid-area: 1 / 1;
  justify-self: start;
}
.swap > :last-child,
.swap-text > :last-child {
  opacity: 0;
  animation: fade-in 360ms var(--ease) 2.2s forwards;
}
.swap > :first-child,
.swap-text > :first-child {
  animation: fade-out 360ms var(--ease) 2.2s forwards;
}
.swap-text {
  display: inline-grid;
}
.swap-text > * {
  grid-area: 1 / 1;
}
.req .next {
  display: grid;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-1);
  text-wrap: pretty;
}
.req .owner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.req-told .swap-text {
  display: grid;
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.reply {
  position: relative;
  margin: -1.25rem 1.5rem 0 clamp(1.5rem, 28%, 12rem);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 360ms var(--ease) 2.6s forwards;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
.reply .from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.reply .from .mark {
  width: 1rem;
  height: 1rem;
}
.reply p {
  margin-top: 0.5rem;
  color: var(--text-1);
}
.yn {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.yn span {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.yn .on {
  background: var(--status-done-soft);
  border-color: transparent;
  color: var(--status-done);
}

/* ---------- pills, dots ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill-new {
  background: var(--status-new-soft);
  color: var(--status-new);
}
.pill-progress {
  background: var(--status-progress-soft);
  color: var(--status-progress);
}
.pill-waiting {
  background: var(--status-waiting-soft);
  color: var(--status-waiting);
}
.pill-done {
  background: var(--status-done-soft);
  color: var(--status-done);
}
.pill-checking {
  background: var(--status-waiting-soft);
  color: var(--status-waiting);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.dot-new {
  background: var(--status-new);
}
.dot-progress {
  background: var(--status-progress);
}
.dot-waiting {
  background: var(--status-waiting);
}
.dot-done {
  background: var(--status-done);
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.sec-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head.two {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}
.sec-head.two .lede {
  font-size: 1.0625rem;
}

/* the problem: a short story, a line at a time, and the turn */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2rem 5rem;
  align-items: start;
}
.story-text p {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.story-text p + p {
  margin-top: 0.875rem;
}
.story-text .story-turn {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-1);
}

/* how it works: one message moving down a line, each stop with the thing it leaves behind */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.stop:last-child {
  padding-bottom: 0;
}
.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: 1.75rem auto 0 calc(0.875rem - 0.5px);
  width: 1px;
  background: var(--line-strong);
}
.idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
}
.stop:last-child .idx {
  border-color: var(--accent);
  color: var(--accent-text);
}
.stop-text p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 34em;
}
.frag > * {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.frag .fb {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  border-color: var(--line-strong);
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}
.frag .fb .mark {
  width: 0.875rem;
  height: 0.875rem;
}
.frag .ta {
  color: var(--text-1);
  min-height: 3.25rem;
}
.frag .ta small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.375rem;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--text-1);
  vertical-align: -0.15em;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  to {
    opacity: 0;
  }
}
.frag .nx {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
  color: var(--text-2);
}
.frag .nx b {
  color: var(--text-1);
}
.frag .nx small {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.frag .nx code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.acts span {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.acts .on {
  background: var(--accent);
  border-color: transparent;
  color: var(--text-on-accent);
}
.frag .msg {
  display: flex;
  gap: 0.75rem;
}
.frag .msg small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}
.frag .msg p {
  color: var(--text-1);
}

/* ---------- the inbox ---------- */
.product {
  background: var(--surface-1);
  border-block: 1px solid var(--line);
}
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line-sheen);
  opacity: 0.8;
}
.inbox {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 20rem) minmax(0, 1fr);
  min-height: 36rem;
  font-size: 0.875rem;
}
.inbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.5rem 1.125rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text-1);
}
.inbox header .mono {
  flex: none;
}
.rail {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--line);
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.rail .ws {
  display: block;
  padding: 0.5rem 0.625rem 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.rail .ws small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 0.125rem;
}
.rail > span {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
}
.rail > span.on {
  background: var(--surface-3);
  color: var(--text-1);
}
.rail .n {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.list {
  border-right: 1px solid var(--line);
}
.row {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.row.on {
  background: var(--surface-2);
  border-left-color: var(--accent);
}
.row .t {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-1);
}
.row .t small {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-3);
}
.flag {
  font-size: 0.75rem;
  color: var(--text-3);
}
.row .q {
  margin-top: 0.375rem;
  color: var(--text-2);
}
.row .nx,
.detail .nx {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.row .nx b,
.detail .nx b {
  color: var(--text-1);
}
.detail .body {
  padding: 1.125rem 1.25rem 1.25rem;
}
.detail .q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-1);
  text-wrap: pretty;
}
.detail .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.shot {
  position: relative;
  margin-top: 1rem;
  height: 9.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) 0 0 / 100% 1.25rem no-repeat,
    repeating-linear-gradient(0deg, transparent 0 1.5rem, var(--line) 1.5rem calc(1.5rem + 1px)) 0 1.75rem /
    100% 100% no-repeat,
    var(--surface-1);
  overflow: hidden;
}
.shot::before {
  content: "";
  position: absolute;
  inset: 2.25rem auto auto 1rem;
  width: 55%;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--surface-3);
  box-shadow:
    0 1.5rem 0 var(--surface-3),
    0 3rem 0 var(--surface-3),
    0 4.5rem 0 var(--surface-3);
}
.shot .ring {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  width: 5.5rem;
  height: 2.75rem;
  border: 2px solid var(--beak);
  border-radius: 50%;
}
.decide {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.detail .decide .nx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.detail .decide .sep {
  color: var(--text-3);
}
.decide .why {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.decide .why b {
  color: var(--text-1);
}
.decide-foot {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.told {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.log {
  margin-top: 0.875rem;
  border-top: 1px solid var(--line);
  padding-top: 0.875rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.log > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
}
.log .mono {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
  padding-top: 0.1875rem;
}
.log b {
  color: var(--text-1);
}
.annot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.annot h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.annot p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* ---------- what it captures ---------- */
.captures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem 5rem;
  align-items: start;
}
.cap-head {
  position: sticky;
  top: 6rem;
}
.cap-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 28em;
}
.cap-note b {
  color: var(--text-1);
}
.cap-note a {
  color: var(--accent-text);
}
.cap-note a:hover {
  text-decoration: underline;
}
.cap-list {
  border-top: 1px solid var(--line);
}
.cap {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.cap .mono {
  padding-top: 0.25rem;
}
.cap.solo {
  grid-template-columns: minmax(0, 1fr);
}
.cap h4 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.cap p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- coding agents ---------- */
.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.agents .cap p code,
.connect code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.call {
  margin: 0;
}
.call figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3rem;
  padding-inline: 1.125rem;
  border-bottom: 1px solid var(--line);
}
.call figcaption code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-1);
}
.call pre {
  margin: 0;
  padding: 1.125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-2);
}
.call pre code {
  font: inherit;
}
.call pre i {
  font-style: normal;
  color: var(--text-3);
}
.call-foot {
  padding: 0.75rem 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-3);
}
.connect {
  margin-top: 2rem;
}
.connect h4 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.connect p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-wrap: pretty;
}
.connect code,
.snippet {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.6;
  color: var(--text-2);
}
.connect code {
  margin: 0.875rem 0 1rem;
}
.connect code b,
.snippet b {
  color: var(--accent-text);
  font-weight: 500;
}
.snippet {
  position: relative;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.agents-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: none;
}

/* ---------- close ---------- */
.close {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.close::before {
  content: "";
  position: absolute;
  inset: auto auto -40% 10%;
  width: 60%;
  height: 120%;
  background: var(--glow);
  filter: blur(40px);
  pointer-events: none;
}
.close-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.close p {
  margin-top: 0.75rem;
  color: var(--text-2);
  max-width: 32em;
  text-wrap: pretty;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: 0.875rem;
  color: var(--text-3);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.foot nav a:hover {
  color: var(--text-1);
}
.foot .note {
  margin: 0 0 0 auto;
  font-size: 0.875rem;
}
.foot .note::before {
  content: none;
}

/* ---------- legal pages ---------- */
.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.doc {
  max-width: 44rem;
  padding-block: 3.5rem 5rem;
  overflow-wrap: break-word;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin-top: 2.5rem;
}
.doc p {
  margin-top: 0.875rem;
  color: var(--text-2);
}
.doc h1 + p,
.doc p.q {
  color: var(--text-3);
  font-size: 0.9375rem;
}
.doc b {
  color: var(--text-1);
}
.doc a {
  color: var(--accent-text);
}
.doc a:hover {
  text-decoration: underline;
}
.doc ul,
.doc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-2);
}
.doc li + li {
  margin-top: 0.375rem;
}
.doc a.btn-accent {
  margin-top: 1.25rem;
  color: var(--text-on-accent);
  text-decoration: none;
}
/* A page shorter than the window: the footer still meets its foot. */
.short {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.short .doc {
  flex: 1;
}
.doc .scroll {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.doc tr:last-child td {
  border-bottom: 0;
}
.doc th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  background: var(--surface-1);
}
.doc td {
  color: var(--text-2);
}
.doc h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.75rem;
}
.doc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--text-1);
}
.doc pre {
  margin: 1rem 0 0;
  padding: 1rem;
  white-space: pre-wrap; /* the snippet is read whole, at any width; copying keeps its real lines */
  overflow-wrap: anywhere;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.doc pre code {
  font-size: inherit;
  color: var(--text-2);
}
/* A flag stays whole when an install line wraps. */
.nb {
  white-space: nowrap;
}

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  .inbox {
    grid-template-columns: 12rem minmax(0, 17rem) minmax(0, 1fr);
  }
}
/* Five links, Sign in and the button need this much; the footer carries the links below it. */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 960px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .hero-copy .lede {
    max-width: 36em;
  }
  .stage {
    max-width: 40rem;
  }
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .stop {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }
  .stop .frag {
    grid-column: 2;
    margin-top: 1.25rem;
  }
  .sec-head.two {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .inbox {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    min-height: 0;
  }
  .rail {
    display: none;
  }
  .annot {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .captures {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .agents {
    grid-template-columns: minmax(0, 1fr);
  }
  .cap-head {
    position: static;
  }
}
@media (max-width: 720px) {
  .nav .wrap {
    gap: 1rem;
  }
  .nav .btn {
    display: none;
  }
  .inbox {
    grid-template-columns: 1fr;
  }
  .list {
    display: none;
  }
  .cap {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
}
@media (max-width: 480px) {
  .actions .btn {
    width: 100%;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .req {
    padding: 1.125rem;
  }
  .call pre {
    padding: 0.875rem;
    font-size: 0.6875rem;
  }
  .req-quote {
    font-size: 1.1875rem;
  }
  .req-status {
    flex-wrap: wrap;
  }
  .req-status .next {
    flex-basis: 100%;
  }
  .reply {
    margin-inline: 1rem;
  }
  .decide .acts span:nth-child(n + 4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sweep,
  .caret {
    animation: none;
  }
  .swap > :first-child,
  .swap-text > :first-child {
    animation: none;
    opacity: 0;
  }
  .swap > :last-child,
  .swap-text > :last-child {
    animation: none;
    opacity: 1;
  }
  .reply {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn {
    transition: none;
  }
}
