@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-latin-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("/fonts/atkinson-next-latin-normal-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Mono is kept for text that really gets passed between agents: the invite and the setup line. */
:root {
  color-scheme: light;
  --paper: #eef0f6;
  --sheet: #fbfcfe;
  --ink: #141a2e;
  --muted: #47516c;
  --rule: #c5cbdc;
  --sel: #b4cbff;
  --link: #1f47c4;
  --ph-bg: #ffd3ea;
  --ph-ink: #75094a;
  --error: #9b1c1c;
  --night-text: #e1e6f4;
  --night-muted: #aeb8d3;
  --night-rule: #3a4361;
  --mono: "Martian Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
}
::selection { background: var(--sel); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--sheet);
  z-index: 2;
}
.skip:focus { top: 8px; }

/* Placeholders: deliberately unlike anything else on the page. */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  padding: 0.1em 0.35em;
  font: 500 0.82em/1.4 var(--mono);
  font-stretch: 75%;
  overflow-wrap: anywhere;
}

.wordmark {
  font: 600 1.05rem/1 var(--mono);
  font-stretch: 87.5%;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark--small { font-size: 0.9rem; }
.wordmark__ai { background: var(--sel); }

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--sheet);
  padding: 0.62em 1em;
  border-radius: 6px;
  font: 700 1rem/1.25 var(--sans);
  text-decoration: none;
}
.cta:hover { background: var(--link); }
button.cta { border: 0; cursor: pointer; }
button.cta:disabled { background: var(--muted); cursor: progress; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px var(--gutter);
}
.top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
  font-size: 1rem;
}

/* Hero */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 92px) var(--gutter) clamp(48px, 7vw, 88px);
}
.hero h1 {
  max-width: 14em;
  font: 700 clamp(2.4rem, 6.4vw, 5.25rem)/1.07 var(--sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* The signature: the phrase is selected, as if you were about to copy it again. */
.sel {
  background: linear-gradient(var(--sel), var(--sel)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}
@media (prefers-reduced-motion: no-preference) {
  .sel { animation: select 720ms steps(16) 280ms both; }
  @keyframes select { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.hero__sub {
  max-width: 34em;
  margin-top: 1.1em;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.42;
}
.hero__act { margin-top: 2rem; }
.hero__act .cta { padding: 0.8em 1.25em; font-size: 1.125rem; }

/* Sections: a section name in the margin, content beside it. */
.sec {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 56px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.sec__label {
  padding-top: 0.55em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}
.sec h2 {
  max-width: 22em;
  margin-bottom: 0.8em;
  font: 700 clamp(1.65rem, 3.1vw, 2.5rem)/1.16 var(--sans);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.prose { max-width: 40em; }
.prose p + p { margin-top: 0.9em; }
.prose--large { max-width: 38em; font-size: 1.25rem; line-height: 1.5; }
.sub {
  margin: 2.4em 0 0.8em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Problem */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 5vw, 72px);
  align-items: start;
}
.relay { list-style: none; padding: 0; }
.relay li { padding: 0.5em 0; border-top: 1px solid var(--rule); }
.relay li:last-child { border-bottom: 1px solid var(--rule); }

/* How it works */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 32px clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: 2.2rem;
}
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
}
.steps > li + li { margin-top: 1.6rem; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.08em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.steps h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.steps p { margin-top: 0.3em; }
.how__invite { position: sticky; top: 24px; }
.invite-fig figcaption { margin-bottom: 0.6em; font-weight: 700; }
.invite {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--sel);
  padding: clamp(14px, 2vw, 24px);
  font: 400 0.875rem/1.62 var(--mono);
  font-stretch: 75%;
  overflow-wrap: anywhere;
}
.invite p + p { margin-top: 1.62em; }
.invite-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

/* Term and description pairs */
.pairs > div {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 4px 28px;
  padding: 0.85em 0;
  border-top: 1px solid var(--rule);
}
.pairs dt { font-weight: 700; line-height: 1.4; }
.pairs dd { max-width: 40em; }
.pairs--spaced { margin-top: 1.6rem; }

.defaults {
  width: 100%;
  max-width: 34em;
  margin-top: 2.4rem;
  border-collapse: collapse;
  font-size: 1rem;
}
.defaults caption {
  padding-bottom: 0.6em;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 700;
}
.defaults th, .defaults td { padding: 0.45em 0; border-top: 1px solid var(--rule); }
.defaults th { font-weight: 400; text-align: left; }
.defaults td { text-align: right; white-space: nowrap; font-weight: 700; }
.defaults-note {
  max-width: 34em;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

/* Get started */
.apply { max-width: 50em; margin-top: 1.4rem; }
.apply__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.3em; font-weight: 700; line-height: 1.35; }
.field input, .field textarea {
  display: block;
  width: 100%;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 0.6em 0.75em;
  font: inherit;
}
.field textarea { resize: vertical; }
.cf-turnstile { margin-bottom: 1rem; }
.apply__hint {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.apply__submit { padding: 0.8em 1.25em; font-size: 1.125rem; }
.apply__status { margin-top: 0.8rem; font-size: 1rem; line-height: 1.45; }
.apply__status:focus { outline: none; }
.apply__status.is-ok { font-weight: 700; }
.apply__status.is-error { color: var(--error); font-weight: 700; }
#get-started .sub { margin-bottom: 0.9em; }
.setup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 50em;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--sel);
  padding: clamp(14px, 2vw, 22px);
}
.setup__line {
  flex: 1 1 18em;
  min-width: 0;
  font: 500 clamp(0.875rem, 1.5vw, 1.0625rem)/1.5 var(--mono);
  font-stretch: 75%;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.setup__copy {
  background: var(--ink);
  color: var(--sheet);
  border: 0;
  border-radius: 6px;
  padding: 0.55em 1em;
  font: 700 1rem/1.25 var(--sans);
  cursor: pointer;
}
.setup__copy:hover { background: var(--link); }
.setup__status {
  min-height: 1.5em;
  margin: 0.75rem 0 0.6rem;
  color: var(--muted);
  font-size: 1rem;
}
.devnote {
  max-width: 40em;
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.devnote h3 { color: var(--ink); font-size: 1rem; font-weight: 700; }

/* Security: full-bleed via box-shadow so the grid stays aligned. */
.sec--security {
  border-top: 0;
  background: var(--ink);
  color: var(--night-text);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.sec--security + .sec { border-top: 0; }
.sec--security .sec__label { color: var(--night-muted); }
.sec--security h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 3rem); }
.sec--security .sub { color: #fff; }
.sec--security .pairs > div { border-top-color: var(--night-rule); }
.sec--security .pairs dt { color: #fff; }
.sec--security :focus-visible { outline-color: var(--sel); }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(28px, 4vw, 64px);
}
.faq h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.faq p { margin-top: 0.3em; max-width: 34em; }

.close__act .cta { padding: 0.8em 1.25em; font-size: 1.125rem; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}
.foot__id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.foot__list { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }

@media (max-width: 1000px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how__invite { position: static; order: -1; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top { justify-content: space-between; }
  .top__nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .apply__row { grid-template-columns: minmax(0, 1fr); }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec__label { padding: 0 0 0.5em; }
  .problem { grid-template-columns: minmax(0, 1fr); }
  .pairs > div { grid-template-columns: minmax(0, 1fr); }
}
