/* goodorc — marketing site styles.
 *
 * Design direction: a ledger. The product's output is a decision and a record
 * of it, so the page is built like a record book — left-aligned, hairline
 * rules, a hash-chain motif down the gutter, and monospace carrying the
 * personality because the system speaks in headers, verdicts and hashes.
 *
 * Tokens are defined once on :root and redefined for dark. Components style
 * through the tokens only, never inside a media query, so the viewer's theme
 * toggle (which stamps data-theme on :root) wins in both directions.
 */

/* ---------- tokens ---------- */

:root {
  /* Light: document paper, warm but not cream-editorial. */
  --ground: #f7f6f3;
  --surface: #fffffe;
  --surface-2: #f0eeea;
  --ink: #161c22;
  --ink-soft: #46515d;
  --ink-mute: #717d8a;
  --rule: #ddd9d2;
  --rule-strong: #c6c1b8;

  /* Brass. Warm, desaturated, reads as a seal rather than a neon pop. */
  --accent: #96661c;
  --accent-soft: #a8762a;
  --accent-wash: rgba(150, 102, 28, 0.08);

  /* Semantic, deliberately NOT the accent: allow/deny is the product's
   * actual output and must never read as branding. */
  --allow: #2f7d55;
  --deny: #b23a35;
  --hold: #9a6a12;

  --shadow: 0 1px 2px rgba(22, 28, 34, 0.06), 0 8px 24px rgba(22, 28, 34, 0.06);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --page: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0f14;
    --surface: #121821;
    --surface-2: #171f29;
    --ink: #e4e9ef;
    --ink-soft: #c8d0da;
    --ink-mute: #7c8899;
    --rule: #202a36;
    --rule-strong: #2d3a49;

    --accent: #d8a248;
    --accent-soft: #c8933a;
    --accent-wash: rgba(216, 162, 72, 0.1);

    --allow: #4fb07a;
    --deny: #d1544e;
    --hold: #d8a248;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --ground: #0b0f14;
  --surface: #121821;
  --surface-2: #171f29;
  --ink: #e4e9ef;
  --ink-soft: #c8d0da;
  --ink-mute: #7c8899;
  --rule: #202a36;
  --rule-strong: #2d3a49;
  --accent: #d8a248;
  --accent-soft: #c8933a;
  --accent-wash: rgba(216, 162, 72, 0.1);
  --allow: #4fb07a;
  --deny: #d1544e;
  --hold: #d8a248;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --ground: #f7f6f3;
  --surface: #fffffe;
  --surface-2: #f0eeea;
  --ink: #161c22;
  --ink-soft: #46515d;
  --ink-mute: #717d8a;
  --rule: #ddd9d2;
  --rule-strong: #c6c1b8;
  --accent: #96661c;
  --accent-soft: #a8762a;
  --accent-wash: rgba(150, 102, 28, 0.08);
  --allow: #2f7d55;
  --deny: #b23a35;
  --hold: #9a6a12;
  --shadow: 0 1px 2px rgba(22, 28, 34, 0.06), 0 8px 24px rgba(22, 28, 34, 0.06);
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 620;
  letter-spacing: -0.021em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  letter-spacing: -0.033em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.027em;
}

h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

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

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* The utility face does the talking for labels, verdicts and record fields. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.eyebrow--accent {
  color: var(--accent);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
  position: relative;
}

.band--plain {
  border-top: 0;
}

.band--sunk {
  background: var(--surface);
}

.band__head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.band__head p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* The hash-chain motif: a hairline down the gutter with a node at each
 * section, because the audit log genuinely is a chain of linked records.
 * Desktop only — on a narrow screen it would crowd the text it decorates. */
@media (min-width: 1280px) {
  .band::before {
    content: "";
    position: absolute;
    left: calc((100vw - var(--page)) / 2 + 1.35rem);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rule);
  }

  .band::after {
    content: "";
    position: absolute;
    left: calc((100vw - var(--page)) / 2 + 1.35rem - 3px);
    top: -3.5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ground);
    border: 1px solid var(--rule-strong);
  }

  .band--sunk::after {
    background: var(--surface);
  }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 62px;
}

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

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: block;
}

/* The mark carries its own dark disc, so it reads on either ground. A hairline
 * ring keeps it from dissolving into the dark theme's surface at this size. */
.brand__mark {
  box-shadow: 0 0 0 1px var(--rule);
}

/* The gap tightens as the bar narrows. Seven items fit at 900px with 1.4rem
 * between them only just, and "only just" at one viewport width means it
 * overflows at the next label anyone adds. */
.nav__links {
  display: none;
  gap: clamp(0.85rem, 1.5vw, 1.4rem);
  margin-left: auto;
  font-size: 0.9375rem;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.nav__cta {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    margin-left: 0;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ground);
}

.btn--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn--lg {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: translateY(1px);
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 1040px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--accent-wash);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- trust strip ---------- */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0;
  padding-block: 1.1rem;
  list-style: none;
}

.strip__list li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- the decision ledger (hero visual) ---------- */

.ledger {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.ledger__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-mute);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ledger__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--allow);
  flex: none;
}

.ledger__body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ledger__req {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.ledger__req b {
  color: var(--ink);
  font-weight: 600;
}

.gates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.gate {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mute);
  opacity: 0.45;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.gate.is-shown {
  opacity: 1;
  color: var(--ink-soft);
}

.gate__n {
  color: var(--ink-mute);
  font-size: 0.6875rem;
}

.gate__verdict {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.gate.is-shown .gate__verdict {
  color: var(--allow);
}

.gate.is-held.is-shown .gate__verdict {
  color: var(--hold);
}

.gate.is-denied.is-shown .gate__verdict {
  color: var(--deny);
}

.ledger__verdict {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stamp.is-allow {
  color: var(--allow);
}

.stamp.is-deny {
  color: var(--deny);
}

.ledger__hash {
  color: var(--ink-mute);
  font-size: 0.6875rem;
  word-break: break-all;
}

/* The reason line, sized to its tallest possible content.
 *
 * WHY A GRID STACK RATHER THAN A min-height. The demo above advances every
 * 5.2s, and the reasons are different lengths — measured on the live site, at
 * 900px two of them take one line and two take two, and at 320px one takes
 * four lines where the others take three. On top of that the renderer used to
 * blank the text between cases, collapsing the line to 0 and back.
 *
 * Either of those changes the ledger's height, and a height change ABOVE the
 * viewport makes the browser's scroll anchoring adjust scrollY to compensate.
 * It over-corrected and drifted: measured 1200 -> 1181 -> 955 over two cycles
 * on an idle page. That is the "the website scrolls a tiny bit on its own" bug.
 *
 * Every reason is in the DOM, all in grid cell 1/1, all but one hidden with
 * `visibility: hidden` — which keeps them in layout, so the container is the
 * height of the tallest at whatever the current width is. No magic number, no
 * breakpoint to maintain, and correct at widths nobody measured. `display:
 * none` would NOT work: it removes the element from layout, which is the whole
 * thing being avoided.
 */
.ledger__reason {
  display: grid;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  word-break: break-all;
}

/* THE RESERVE-THE-TALLEST MECHANISM, used by every rotating field.
 *
 * Each variant is in the DOM at all times and all but one is hidden with
 * `visibility: hidden` -- not `display: none`, which would remove it from
 * layout and defeat the whole point. Overlapping them in one grid cell makes
 * the box as tall and as wide as the LARGEST variant at whatever width the
 * viewport happens to be, so advancing a case cannot change the layout.
 *
 * `inline-grid` because three of the four sit inline after literal text --
 * "agent <b>", "-> <span>". A block-level grid there would push the value onto
 * its own line and look broken at every width.
 */
.stack {
  display: inline-grid;
}

/* The stamp is a flex item AND a stack; inline-grid keeps it sized to its
 * widest label ("deciding") so the hash beside it never rewraps. */
.stamp.stack {
  display: inline-grid;
}

.stack > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

.stack > span.is-current {
  visibility: visible;
}

/* The reason is its own block-level line rather than an inline run. */
.ledger__reason.stack {
  display: grid;
}

.ledger__reason > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

.ledger__reason > span.is-current {
  visibility: visible;
}

.ledger__hash b {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- two-column prose ---------- */

.split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.panel--quiet {
  background: transparent;
}

.panel p {
  font-size: 0.96875rem;
  max-width: none;
}

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}

@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar {
  background: var(--ground);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pillar h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.pillar p {
  font-size: 0.96875rem;
  max-width: none;
}

/* ---------- the gate sequence ---------- */

.seq {
  display: grid;
  gap: 1rem;
  counter-reset: gate;
}

@media (min-width: 760px) {
  .seq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .seq {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1.25rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  font-size: 1.0625rem;
}

.step p {
  font-size: 0.9375rem;
  max-width: none;
  color: var(--ink-soft);
}

/* ---------- capability catalog ---------- */

.cat {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.cat__group {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .cat__group {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.cat__label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* The group heading tracks its own cards as they scroll past.
 *
 * STICKY ONLY WHERE THE TWO-COLUMN LAYOUT EXISTS. Below 1000px the heading
 * sits above its list rather than beside it, so sticking it there pins it
 * over the content it is labeling instead of beside it.
 *
 * The background is the fix for the actual bug: a sticky element with a
 * transparent background does not stop the page scrolling THROUGH it, so the
 * feature cards slid under the heading and the two sets of text overlapped.
 * It has to be --surface rather than --ground because this band is .band--sunk.
 *
 * top:0 with a padding-top, then a negative margin of the same size, is what
 * keeps the heading clear of the sticky nav. The box sticks flush to the
 * viewport so its background covers the full strip, the padding puts the text
 * below the nav, and the margin cancels the padding for the initial layout so
 * the heading still lines up with the first card. */
@media (min-width: 1000px) {
  .cat__label {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    padding-block: 5.25rem 1.1rem;
    margin-top: -5.25rem;
  }
}

.cat__label h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.022em;
}

.cat__label p {
  font-size: 0.875rem;
  color: var(--ink-mute);
  max-width: 24ch;
}

.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}

@media (min-width: 620px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feat {
  background: var(--ground);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background-color 0.15s ease;
}

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

.feat h4 {
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}


.feat p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: none;
}

/* ---------- differentiators ---------- */

.claims {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.claim {
  background: var(--ground);
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .claim {
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: baseline;
  }
}

.claim h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  letter-spacing: -0.024em;
}

.claim p {
  font-size: 1rem;
}

/* ---------- faq ---------- */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.qa {
  border-bottom: 1px solid var(--rule);
}

.qa summary {
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  color: var(--ink);
  font-weight: 560;
  font-size: 1.0625rem;
  letter-spacing: -0.014em;
  list-style: none;
}

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

.qa summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.1rem;
}

.qa[open] summary::after {
  content: "–";
}

.qa__body {
  padding-bottom: 1.2rem;
}

.qa__body p + p {
  margin-top: 0.7rem;
}

/* ---------- waitlist ---------- */

.cta {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.cta__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 960px) {
  .cta__grid {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 4rem;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.field textarea {
  /* Vertical only. A textarea that can be dragged WIDER escapes the form
   * column and overlaps the copy beside it at desktop width, because the
   * resize handle does not know about the grid it sits in. */
  resize: vertical;
  min-height: 4.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}

/* The honeypot's container. A bot fills every field in the form; a person
 * never sees this one.
 *
 * NOT `display: none`, and that is the whole point of the rule. The crawlers
 * worth catching skip a field whose computed display is none — it is the
 * oldest honeypot tell there is — so this hides it by clipping it to a single
 * pixel while leaving it rendered and fillable. `aria-hidden` on the container
 * and `tabindex="-1"` on the input are what keep it away from a screen reader
 * and out of the tab order, which clipping alone does not do.
 *
 * A VISIBLE HONEYPOT IS A SILENT OUTAGE: the endpoint drops any submission
 * that has this field set, so if this rule is ever deleted the form shows a
 * person a box labeled "Website", they fill it in, and every genuine request
 * is thrown away with a success message. `make check` fails when this rule is
 * missing for that reason. */
.field--trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__note {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  max-width: none;
}

.form__status {
  font-family: var(--mono);
  font-size: 0.8125rem;
  min-height: 1.4em;
  color: var(--ink-soft);
}

.form__status.is-ok {
  color: var(--allow);
}

.form__status.is-bad {
  color: var(--deny);
}

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

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
}

/* A GRID, not space-between flex.
 *
 * The footer is an index of the whole page now, and flex with
 * `justify-content: space-between` sizes every column to its own longest
 * label — so a column of four-word links sat three times wider than the one
 * beside it, and the gaps between columns changed every time a link was
 * reworded. Equal tracks make it read as a table of contents, which is what it
 * is. The brand block spans the first row as a masthead above the index rather
 * than competing with it for a track. */
.foot__grid {
  display: grid;
  gap: 2.25rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 620px) {
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .foot__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .foot__col--brand {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9375rem;
}

.foot__col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot__col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.foot__fine {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
}

/* Two one-off spacing cases, as classes rather than inline styles: the gate
 * forbids a style attribute, because an inline style is the one declaration
 * the cascade cannot help you reason about. */
.band__head--flush {
  margin-bottom: 0;
}

.form__note--tight {
  margin-top: 0.4rem;
}

/* The established brand line, set just under the badge. Quiet and in the
 * display face: it is a thesis, not a slogan to shout. */
.hero__kicker {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 560;
  letter-spacing: -0.018em;
  color: var(--accent);
  margin: -0.35rem 0 -0.25rem;
}

.foot__tagline {
  color: var(--ink);
  font-weight: 560;
  letter-spacing: -0.014em;
}

.foot__addr {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 0.3rem;
}

/* A second row of panels under a pillar grid, which needs the gap the grid
 * itself provides between its own rows. */
.split--stacked {
  margin-top: 1.25rem;
}

/* ---------- terms list ---------- */

/* The data-handling lists. A hairline tick in the gutter rather than a bullet,
 * because the page's whole vocabulary is rules and records — a disc would be
 * the one piece of prose decoration on it. */
.terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.terms li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--rule-strong);
}

/* Three columns of bullet PROSE need more room than three columns of a single
 * sentence, which is what .pillars was sized for. These stay stacked until
 * there is width for all three — two-up would leave an empty third cell, and
 * .pillars shows its rule color through a missing cell. */
@media (min-width: 860px) {
  .pillars--lists {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .pillars--lists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.foot__entity {
  color: var(--ink);
  font-weight: 560;
  font-size: 0.9375rem;
}

/* The footer index runs to four-word labels — "What we have not decided" — and
 * a wrapped entry has to read as one entry. */
.foot__col a {
  line-height: 1.45;
}

.foot__addr a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot__addr a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ===================================================================
 * The tour (tour.html)
 *
 * A DOCUMENT, not a landing page, and the type scale says so: one
 * column at --measure for prose, full --page width only for the
 * screenshots, which are the argument and need the room.
 *
 * The screenshots are DARK-THEME captures and the site has a light
 * theme, so a bare <img> would be a black slab on paper. Every shot
 * sits in a framed figure whose border and radius come from the same
 * tokens the cards use, which reads as a window onto an application
 * in both themes rather than as an image that failed to load.
 * =================================================================== */

.doc-head {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
}
.doc-head h1 {
  max-width: 22ch;
  text-wrap: balance;
  margin-block: 0.5rem 1.25rem;
}
.doc-head__lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-block: 0 1rem;
}

/* A standing aside: context that is true for the whole page rather
 * than for the section it happens to sit in. The accent rail is the
 * only place the brass is load-bearing on this page -- the semantic
 * allow/deny colors belong to the product's output and must never
 * read as decoration. */
.doc-note {
  max-width: var(--measure);
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.doc-note p {
  margin-block: 0.5rem 0;
  color: var(--ink-soft);
  line-height: 1.65;
}
.doc-note p:first-of-type {
  margin-top: 0;
}
.doc-note--flag {
  border-left-color: var(--hold);
}

.doc-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.doc-section h2 {
  max-width: 24ch;
  text-wrap: balance;
  margin-block: 0.35rem 1rem;
}
.doc-section h3 {
  margin-block: 2.5rem 0.75rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.doc-prose {
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-block: 0 1.25rem;
}
.doc-list {
  max-width: var(--measure);
  margin-block: 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.doc-list li {
  margin-block: 0.6rem;
}
.doc-list strong {
  color: var(--ink);
}

.doc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-block: 1.5rem 0;
}
.doc-card {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.doc-card h3 {
  margin-block: 0.4rem 0.5rem;
  font-size: 1rem;
}
.doc-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* The screenshot frame. `display: block` on the img kills the inline
 * descender gap that otherwise shows as a hairline of frame color
 * under every shot. width/height are on the element so the page does
 * not reflow as 19 lazy images arrive. */
.shot {
  margin: 1.25rem 0 2rem;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #0b0f14;
}
.shot figcaption {
  max-width: var(--measure);
  margin-top: 0.85rem;
  color: var(--ink-mute);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* A verdict chip, reusing the product's own semantics. Default is
 * neutral; --deny borrows the deny color because the thing it labels
 * in the caption IS a refusal. */
.tag {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.8125em;
  white-space: nowrap;
}
.tag--deny {
  border-color: var(--deny);
  color: var(--deny);
  background: transparent;
}

/* A terminal session. Scrolls inside itself -- a wide `goodorc agent
 * list` must never make the page body scroll sideways. */
.term {
  margin-block: 0 1.75rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.term code {
  display: block;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}
