/* ═══════════════════════════════════════════════════════════════
   hatchapp.io — variant B, "blueprint"

   A technical document rather than a brochure: everything sits on a
   visible grid, structure is monospace, figures are monospace, and
   there is not a single rounded corner or drop shadow on the page.

   Palette is the app's own accent on a hard black-and-white ground —
   deliberately colder than the product's warm paper, so the amber
   reads as the one live wire in the whole thing.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f5f3;
  --ink:       #0b0b0c;
  --ink-2:     #45443f;
  --ink-3:     #78766e;
  --rule:      #dedcd6;   /* hairline */
  --rule-hard: #0b0b0c;   /* structural */
  --accent:    #c2700c;
  --accent-2:  #e08a1e;
  --accent-bg: #fdf3e3;
  --inv-bg:    #0b0b0c;
  --inv-ink:   #f7f5f1;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
          "Roboto Mono", Menlo, Consolas, monospace;

  --gut: clamp(20px, 4.5vw, 64px);   /* page gutter */
  --max: 1440px;
  --bar-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0b0c;
    --bg-alt:    #131313;
    --ink:       #f2f0ec;
    --ink-2:     #b3b0a8;
    --ink-3:     #86837b;
    --rule:      #2a2a29;
    --rule-hard: #4a4945;
    --accent:    #e08a1e;
    --accent-2:  #f0a340;
    --accent-bg: #241a0c;
    --inv-bg:    #f7f5f1;
    --inv-ink:   #0b0b0c;
  }
}

/* ── Reset ────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* belt to the braces below; nothing should need it */
}

h1, h2, h3, p, dl, dd, ol, ul, figure, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
i, em.n { font-style: normal; }
u { text-decoration: none; }

a { color: inherit; }

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

.sr, .skip {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  width: auto; height: auto; clip: auto;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font: 600 14px/1 var(--mono);
}

/* ── Shared type ──────────────────────────────────────────────── */

/* The one gesture that carries the whole design: monospace, upper,
   widely letterspaced. Every label, number and tag on the page. */
.kick, .mark-rule span, .strip dt, .ledger__head, .bill__table th,
.spec dt, .faq summary i, .slab figcaption, .foot__fine, .btn,
.bar__nav, .brand__word, .proc u, .list em, .fine {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(38px, 7.4vw, 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.big {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { max-width: 68ch; }
strong { font-weight: 650; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: .08em .34em;
}
.dim { color: var(--ink-3); }

/* ── Page container ───────────────────────────────────────────── */

.pad {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .12s linear, color .12s linear, border-color .12s linear;
}
.btn--fill { background: var(--ink); color: var(--bg); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--inv { background: var(--inv-ink); color: var(--inv-bg); border-color: var(--inv-ink); }
.btn--inv:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 11px; }
.btn--lg { padding: 17px 30px; font-size: 13px; }

/* ── Download chooser ─────────────────────────────────────────── */

html:has(.download[open]) { overflow: hidden; }

.download {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--rule-hard);
  box-shadow: none;
}
.download:not([open]) { display: none; }
.download::backdrop { background: rgba(11, 11, 12, .72); }

.download__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
  border-bottom: 1px solid var(--rule);
}
.download__eyebrow, .download__badge, .download__action,
.download__status, .download__foot a {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.download__eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}
.download h2 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.download__close {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: 300 28px/1 var(--sans);
  cursor: pointer;
}
.download__close:hover { border-color: var(--accent); color: var(--accent); }
.download__intro {
  max-width: none;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 36px);
  color: var(--ink-2);
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
}
.download__choices {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 20px);
  gap: 8px;
  background: var(--bg-alt);
}
.download__choice {
  display: grid;
  grid-template-columns: minmax(130px, .65fr) minmax(180px, 1.35fr) auto;
  align-items: center;
  gap: 14px 22px;
  min-height: 88px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  text-decoration: none;
}
.download__choice:hover { border-color: var(--rule-hard); }
.download__choice.is-primary {
  order: -1;
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}
.download__platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.download__platform strong { font-size: 18px; line-height: 1.2; }
.download__badge {
  padding: 3px 6px;
  color: var(--accent);
  background: var(--accent-bg);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}
.download__detail {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-3);
  font: 12px/1.5 var(--mono);
}
.download__action {
  white-space: nowrap;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.download__choice.is-primary .download__action { color: var(--accent); }
.download__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(22px, 4vw, 36px);
  border-top: 1px solid var(--rule);
}
.download__status {
  max-width: 42ch;
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.5;
}
.download__foot a {
  flex: none;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 700;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.download__foot a:hover { color: var(--accent); }

@media (max-width: 620px) {
  .download { width: min(100% - 16px, 760px); max-height: calc(100dvh - 16px); }
  .download__head { padding: 20px; }
  .download__intro { padding: 16px 20px; font-size: 14px; }
  .download__choices { padding: 10px; }
  .download__choice {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 16px;
  }
  .download__detail { grid-column: 1 / -1; grid-row: 2; }
  .download__foot { align-items: flex-start; flex-direction: column; padding: 16px 20px; }
}

/* ── Top bar ──────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.bar__in {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}
.mark { width: 20px; height: 23px; flex: none; }
.brand__word { font-size: 14px; font-weight: 700; letter-spacing: .16em; }

.bar__nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
  font-size: 11px;
  font-weight: 600;
}
.bar__nav a {
  text-decoration: none;
  color: var(--ink-3);
  display: inline-flex;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .12s linear, border-color .12s linear;
}
.bar__nav a i { color: var(--accent); }
.bar__nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .bar__nav { display: none; }
  .brand { margin-right: auto; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { padding-top: clamp(56px, 9vw, 118px); }

.kick {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;      /* the phrases drop onto their own lines on a phone */
  align-items: center;
  gap: 6px 12px;
  margin-bottom: clamp(24px, 4vw, 42px);
  max-width: none;
}
.kick em, .kick span { min-width: 0; font-style: normal; }
.kick em { color: var(--ink-2); }
.kick em::after { content: " —"; color: var(--ink-3); }
/* The rule trails the label rather than sitting between the two phrases:
   split across a wide monitor they stop reading as one sentence. */
.kick s {
  flex: 1 1 60px;
  height: 1px;
  background: var(--rule);
}
@media (max-width: 560px) { .kick s { display: none; } }

.display .strike {
  position: relative;
  color: var(--ink-3);
  white-space: nowrap;
}
/* Drawn in CSS, not JS: requestAnimationFrame never fires in a
   background tab, so a page opened behind another one would have shown
   the word "rent" with no line through it — the whole joke, missing.
   An animation with `both` holds scaleX(0) through the delay, and the
   resting state without it is simply struck. */
.display .strike::after {
  content: "";
  position: absolute;
  left: -.02em; right: -.02em;
  top: 52%;
  height: max(4px, .055em);
  background: var(--accent);
  transform-origin: left center;
  animation: cut .7s cubic-bezier(.2, .8, .2, 1) .35s both;
}
@keyframes cut { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .display .strike::after { animation: none; }
}

.hero__grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero__grid > * { min-width: 0; }
.hero__lede {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }
.fine {
  flex: 1 0 100%;
  max-width: none;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .09em;
}

/* ── Spec strip ───────────────────────────────────────────────── */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule-hard);
  max-width: var(--max);
  margin-inline: auto;
}
.strip > div {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.2vw, 30px);
  border-left: 1px solid var(--rule);
}
.strip > div:first-child { border-left: 0; padding-left: var(--gut); }
.strip > div:last-child { padding-right: var(--gut); }
.strip dt {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.strip dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.strip dd.strip__sub {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink-3);
}
.strip > div:nth-child(1) dd:not(.strip__sub) { color: var(--accent); }

@media (max-width: 820px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div { border-left: 1px solid var(--rule); }
  .strip > div:nth-child(odd) { border-left: 0; padding-left: var(--gut); }
  .strip > div:nth-child(even) { padding-right: var(--gut); }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div {
    border-left: 0;
    padding-inline: var(--gut);
  }
  .strip > div + div { border-top: 1px solid var(--rule); }
}

/* ── Image slabs ──────────────────────────────────────────────── */

.slab {
  border: 1px solid var(--rule-hard);
  background: var(--bg-alt);
  min-width: 0;
}
.slab picture { display: block; }
.slab img { width: 100%; }
.slab figcaption {
  border-top: 1px solid var(--rule);
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
}
.slab figcaption i { color: var(--accent); }

/* Open at the bottom, so the product reads as continuing past the fold
   rather than sitting in a box. */
.slab--hero {
  margin: clamp(40px, 6vw, 80px) var(--gut) 0;
  border-bottom: 0;
  max-width: calc(var(--max) - var(--gut) * 2);
}
@media (min-width: 1520px) {
  .slab--hero { margin-inline: auto; }
}
.slab--pad {
  max-width: calc(var(--max) - var(--gut) * 2);
  margin: clamp(32px, 5vw, 56px) auto 0;
  width: calc(100% - var(--gut) * 2);
}
.slab--pad figcaption {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  display: block;
  color: var(--ink-3);
}

/* Deliberately no scroll reveal on this page. Anything that starts at
   opacity 0 is invisible until a script says otherwise, and an observer
   that doesn't fire — throttled tab, no IntersectionObserver — leaves
   the screenshots gone for good. A document doesn't need to fade in. */

/* ── Section rules ────────────────────────────────────────────── */

.mark-rule {
  border-top: 1.5px solid var(--rule-hard);
  max-width: var(--max);
  margin: clamp(64px, 9vw, 128px) auto 0;
  padding: 14px var(--gut) 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  scroll-margin-top: calc(var(--bar-h) + 12px);
}
.mark-rule i {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
}
.mark-rule span { color: var(--ink-3); }

.sec { padding-top: clamp(36px, 5.5vw, 64px); }

/* ── Two-column prose ─────────────────────────────────────────── */

.cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.cols > * { min-width: 0; }
.cols__body p + p { margin-top: 1.1em; }
.cols__body { color: var(--ink-2); font-size: 17px; }
.big--left { max-width: 18ch; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ── Ledger (calculator) ──────────────────────────────────────── */

.ledger {
  margin-top: clamp(36px, 5vw, 64px);
  border: 1.5px solid var(--rule-hard);
}
.ledger__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-hard);
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
}
.ledger__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1.5px solid var(--rule-hard);
}
.inp {
  min-width: 0;
  display: block;
  padding: 18px;
  border-left: 1px solid var(--rule);
}
.inp:first-child { border-left: 0; }
.inp > span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.inp input {
  /* Capped: on a wide monitor a full-width cell gives a two-digit number
     a 700px box, which looks like a mistake. */
  width: 100%;
  max-width: 200px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
}
.inp input:focus { border-color: var(--accent); outline: none; }

.ledger__rows { padding: 4px 18px 8px; }
.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.row span { min-width: 0; font-size: 15px; color: var(--ink-2); }
/* The dotted leader that makes it read as an account, not a card. */
.row::after {
  content: "";
  order: 1;
  flex: 1 1 auto;
  min-width: 12px;
  align-self: center;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-2px);
}
.row b {
  order: 2;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.row--sum { border-bottom: 0; padding-top: 18px; }
.row--sum span { color: var(--ink); font-weight: 600; }
.row--sum b { font-size: clamp(24px, 3.4vw, 34px); color: var(--accent); }

.ledger__foot {
  border-top: 1px solid var(--rule);
  padding: 12px 18px;
  margin: 0;
  max-width: none;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--bg-alt);
}

@media (max-width: 620px) {
  .ledger__inputs { grid-template-columns: 1fr; }
  .inp { border-left: 0; }
  .inp + .inp { border-top: 1px solid var(--rule); }
}

/* ── Process rows ─────────────────────────────────────────────── */

.proc {
  margin-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  max-width: var(--max);
  margin-inline: auto;
}
.proc li {
  display: grid;
  grid-template-columns: 64px minmax(0, 8.5fr) minmax(0, 13fr) 84px;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) var(--gut);
  border-bottom: 1px solid var(--rule);
}
.proc li:hover { background: var(--bg-alt); }
.proc i {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
}
.proc h3 {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.proc p { color: var(--ink-2); max-width: 62ch; }
.proc u {
  justify-self: end;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  white-space: nowrap;
}
.proc .u--sys { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .proc li {
    grid-template-columns: 44px 1fr auto;
    row-gap: 8px;
    align-items: center;
  }
  .proc i { grid-row: 1; }
  .proc h3 { grid-row: 1; grid-column: 2; }
  .proc u { grid-row: 1; grid-column: 3; }
  .proc p { grid-row: 2; grid-column: 2 / -1; }
}

/* ── Paired figures ───────────────────────────────────────────── */

.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  max-width: calc(var(--max) - var(--gut) * 2);
  width: calc(100% - var(--gut) * 2);
  margin: clamp(32px, 5vw, 56px) auto 0;
}
.duo > * { min-width: 0; }
@media (max-width: 780px) { .duo { grid-template-columns: 1fr; } }

/* ── Pipeline diagram ─────────────────────────────────────────── */

.diag {
  margin-top: clamp(36px, 5vw, 64px);
  border: 1px solid var(--rule);
  background: var(--bg-alt);
}
.diag__cap, .diag__note {
  padding: 14px 18px;
  margin: 0;
  max-width: none;
  font-size: 13px;
  color: var(--ink-3);
}
.diag__cap {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.diag__note { border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.diag__scroll { overflow-x: auto; padding: 20px 18px; }
.diag pre { margin: 0; }
.diag code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  color: var(--ink-2);
}

/* ── The bill ─────────────────────────────────────────────────── */

.bill {
  margin-top: clamp(32px, 4.5vw, 56px);
  border: 1.5px solid var(--rule-hard);
}
.bill__table { width: 100%; border-collapse: collapse; }
.bill__table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 10px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
}
.bill__table th:last-child { text-align: right; }
.bill__table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
}
.bill__table td:last-child {
  text-align: right;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 1%;
}

.bill__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px) 18px;
  /* Double rule: the accountant's underline, at page scale. */
  border-bottom: 3px double var(--rule-hard);
}
.bill__total span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bill__total b {
  font-family: var(--mono);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--accent);
}

.bill__alt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--ink-3);
}
.bill__alt b {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}
.notes > * { min-width: 0; }
.note h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1.5px solid var(--rule-hard);
}
.note p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 820px) { .notes { grid-template-columns: 1fr; gap: 22px; } }

/* ── Spec list ────────────────────────────────────────────────── */

.spec { border-top: 1px solid var(--rule); }
.spec > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec dt {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}
.spec dd { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 700px) {
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Split ────────────────────────────────────────────────────── */

.split {
  max-width: calc(var(--max) - var(--gut) * 2);
  width: calc(100% - var(--gut) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.split > * { min-width: 0; }
.split__text p { color: var(--ink-2); }
.split__text .big { color: var(--ink); margin-bottom: 18px; }
.split__text p + p { margin-top: 1.1em; }

.ticks { margin-top: 24px; border-top: 1px solid var(--rule); }
.ticks li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
}
.ticks li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Pair ─────────────────────────────────────────────────────── */

.pair {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.pair__cell {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pair__cell:first-child { border-left: 0; padding-left: var(--gut); }
.pair__cell:last-child { padding-right: var(--gut); }
.pair__cell h3 {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 20ch;
}
.pair__cell p { color: var(--ink-2); font-size: 15px; }
.pair__cell p + p { margin-top: 12px; }
@media (max-width: 780px) {
  .pair { grid-template-columns: 1fr; }
  .pair__cell { border-left: 0; padding-inline: var(--gut); }
}

/* ── Example list ─────────────────────────────────────────────── */

.list {
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}
.list li {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 11fr) 90px;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: baseline;
  padding: clamp(15px, 2vw, 21px) var(--gut);
  border-bottom: 1px solid var(--rule);
}
.list li:hover { background: var(--bg-alt); }
.list b {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.list span { color: var(--ink-3); font-size: 15px; }
.list em {
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.list__note {
  margin-top: clamp(24px, 3vw, 36px);
  color: var(--ink-3);
  font-size: 15px;
}
@media (max-width: 760px) {
  .list li { grid-template-columns: 1fr auto; row-gap: 4px; }
  .list b { grid-row: 1; }
  .list em { grid-row: 1; grid-column: 2; }
  .list span { grid-row: 2; grid-column: 1 / -1; }
}

/* ── FAQ ──────────────────────────────────────────────────────── */

.faq {
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) var(--gut);
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none;
  width: 32px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
/* The +/− sits at the far right, held there by an auto-growing gap. */
.faq summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
}
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq summary:hover { background: var(--bg-alt); }
.faq details > div { padding: 0 var(--gut) clamp(20px, 2.4vw, 26px); }
.faq details > div p {
  margin-left: 48px;
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 620px) {
  .faq summary i { width: 26px; }
  .faq details > div p { margin-left: 0; }
}

/* ── End block ────────────────────────────────────────────────── */

.end {
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--inv-bg);
  color: var(--inv-ink);
  padding-block: clamp(64px, 9vw, 120px);
}
.kick--inv { color: rgba(247, 245, 241, .5); }
@media (prefers-color-scheme: dark) { .kick--inv { color: rgba(11, 11, 12, .5); } }
.kick--inv s { background: currentColor; opacity: .35; }

.display--end { max-width: 15ch; }
.end__sub {
  margin: clamp(20px, 3vw, 28px) 0 clamp(28px, 4vw, 38px);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 44ch;
  opacity: .72;
}
.end__fine {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .5;
  max-width: none;
}

/* ── Footer ───────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--rule); }
.foot__in {
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(20px, 4vw, 48px);
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.foot__nav a { color: var(--ink-3); text-decoration: none; }
.foot__nav a:hover { color: var(--accent); }
.foot__fine {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  max-width: none;
}

/* ── Large displays ───────────────────────────────────────────── */

@media (min-width: 1700px) {
  :root { --max: 1620px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --max: 1860px; --gut: 80px; }
  body { font-size: 18px; }
  .display { font-size: 116px; }
  .big { font-size: 46px; }
}

/* ═══════════════════════════════════════════════════════════════
   Documentation
   The landing page is a blueprint; the docs page is the field manual.
   It keeps the same rules and typography while making long reading calm.
   ═══════════════════════════════════════════════════════════════ */

.docs-page { counter-reset: docs; }

.docs-hero {
  padding-top: clamp(52px, 8vw, 108px);
  border-bottom: 1px solid var(--rule);
}

.docs-display {
  max-width: 17ch;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.01;
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.docs-display span { color: var(--ink-3); }

.docs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
  align-items: end;
  gap: clamp(28px, 6vw, 84px);
  margin-top: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(52px, 7vw, 88px);
}
.docs-hero__lede {
  max-width: 63ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}
.docs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}
.docs-strip > div {
  min-width: 0;
  padding: 22px clamp(18px, 2.5vw, 34px);
  border-left: 1px solid var(--rule);
}
.docs-strip > div:first-child { border-left: 0; padding-left: var(--gut); }
.docs-strip > div:last-child { padding-right: var(--gut); }
.docs-strip dt {
  margin-bottom: 7px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.docs-strip dd {
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}
.docs-strip > div:first-child dd { color: var(--accent); }

.docs-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 920px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 118px);
  padding-top: clamp(58px, 8vw, 104px);
}

.docs-aside {
  position: sticky;
  top: calc(var(--bar-h) + 28px);
  align-self: start;
  border-top: 1.5px solid var(--rule-hard);
}
.docs-aside > p {
  padding: 14px 0 11px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.docs-aside nav { display: grid; }
.docs-aside a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.docs-aside a i {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}
.docs-aside a:hover { color: var(--ink); }

.docs-article { min-width: 0; }
.doc-section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--bar-h) + 22px);
}
.doc-section:first-child {
  padding-top: 0;
  border-top: 1.5px solid var(--rule-hard);
}
.doc-section > h2 {
  max-width: 19ch;
  margin-bottom: 24px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.doc-section > p {
  color: var(--ink-2);
  font-size: 16px;
}
.doc-section > p + p,
.doc-section > * + p { margin-top: 22px; }
.doc-lede {
  max-width: 58ch !important;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--ink) !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  line-height: 1.52;
}

.doc-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px !important;
  color: var(--ink-3) !important;
  font-family: var(--mono);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.doc-kicker i { color: var(--accent); }
.doc-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.doc-grid {
  display: grid;
  gap: 0;
  margin: 30px 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.doc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.doc-card--good { background: var(--accent-bg); }
.doc-card h3 {
  margin-bottom: 14px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.doc-card p { color: var(--ink-3); font-size: 14px; }
.doc-card__num {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.doc-list { display: grid; }
.doc-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 14px;
}
.doc-list li + li { margin-top: 11px; }
.doc-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}
.doc-list--minus li::before { content: "–"; color: var(--ink-3); }
.doc-list--ruled {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.doc-list--ruled li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.doc-list--ruled li::before { top: 14px; }

.doc-callout {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: 15px;
}
.doc-callout strong { color: var(--ink); }
.doc-callout--warn { border-color: var(--ink-3); }
.doc-callout--accent { background: var(--accent-bg); }

.doc-steps {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.doc-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.doc-steps li > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.doc-steps h3 {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.25;
}
.doc-steps p { max-width: 62ch; color: var(--ink-3); font-size: 14px; }

.doc-table-wrap {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border-top: 1.5px solid var(--rule-hard);
  -webkit-overflow-scrolling: touch;
}
.doc-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
}
.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}
.doc-table tr > *:first-child { padding-left: 0; }
.doc-table tr > *:last-child { padding-right: 0; border-right: 0; }
.doc-table thead th {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.doc-table tbody th { color: var(--ink); font-weight: 700; }
.doc-table tbody td { color: var(--ink-2); }
.doc-table tbody tr:hover { background: var(--bg-alt); }
.doc-table .is-recommended { background: var(--accent-bg); }
.doc-table em {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.doc-table--models { min-width: 920px; }
.doc-table--capabilities { min-width: 860px; }

.doc-prompt {
  margin: 38px 0;
  border: 1px solid var(--rule-hard);
  background: var(--bg-alt);
}
.doc-prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.doc-prompt__head button {
  padding: 5px 9px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.doc-prompt__head button:hover { border-color: var(--accent); color: var(--accent); }
.doc-prompt pre {
  max-width: 100%;
  padding: clamp(20px, 3vw, 30px);
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink-2);
  font: 13px/1.75 var(--mono);
}
.doc-prompt code { padding: 0; border: 0; background: transparent; font-size: inherit; }

.doc-subhead {
  margin: clamp(38px, 6vw, 60px) 0 0;
  font-size: clamp(21px, 2.8vw, 29px);
  letter-spacing: -.025em;
}

.doc-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.doc-facts > div {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.doc-facts dt {
  margin-bottom: 5px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.doc-facts dd { color: var(--ink-2); font-size: 14px; }

.doc-small { color: var(--ink-3) !important; font-size: 13px !important; }
.doc-small a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

.doc-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.doc-checklist li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.doc-checklist span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.doc-checklist p { color: var(--ink-2); font-size: 14px; }

.doc-sources ul {
  margin-top: 26px;
  border-top: 1px solid var(--rule);
}
.doc-sources li { border-bottom: 1px solid var(--rule); }
.doc-sources a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.doc-sources a:hover { color: var(--accent); }

.end--docs { margin-top: 0; }
.end--docs .display--end { max-width: 13ch; }
.docs-back {
  display: inline-flex;
  margin-left: 20px;
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

@media (max-width: 1040px) {
  .docs-shell { grid-template-columns: 180px minmax(0, 1fr); gap: 46px; }
  .doc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .docs-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .docs-strip { grid-template-columns: repeat(2, 1fr); }
  .docs-strip > div:nth-child(3) { padding-left: var(--gut); border-left: 0; }
  .docs-strip > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .docs-strip > div:nth-child(even) { padding-right: var(--gut); }
  .docs-shell { display: block; }
  .docs-aside {
    position: static;
    margin-bottom: 64px;
  }
  .docs-aside nav { grid-template-columns: repeat(3, 1fr); }
  .docs-aside a { padding: 9px 8px 9px 0; }
}

@media (max-width: 640px) {
  .docs-display { font-size: clamp(39px, 12vw, 58px); }
  .docs-strip { grid-template-columns: 1fr; }
  .docs-strip > div,
  .docs-strip > div:first-child,
  .docs-strip > div:nth-child(3) {
    padding: 17px var(--gut);
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .docs-strip > div:first-child { border-top: 0; }
  .docs-aside nav { grid-template-columns: repeat(2, 1fr); }
  .doc-grid--2,
  .doc-grid--3,
  .doc-checklist,
  .doc-facts { grid-template-columns: 1fr; }
  .doc-section > h2 { font-size: clamp(30px, 9vw, 42px); }
  .doc-table th, .doc-table td { padding: 12px; }
  .doc-table tr > *:first-child { padding-left: 0; }
  .doc-steps li { grid-template-columns: 42px 1fr; gap: 10px; }
  .docs-back { display: flex; margin: 22px 0 0; }
}

@media (max-width: 420px) {
  .docs-aside nav { grid-template-columns: 1fr; }
  .docs-hero__actions .btn { width: 100%; }
}
