/* ==========================================================================
   Ottermerce — ottermerce.com
   Hand-written, no build step, no JavaScript.

   Tokens are the app's own (resources/css/app.css @theme). Every colour is
   referenced through a semantic name so the same markup renders on paper or
   on ink: the palette follows the visitor's system by default, and the two
   radios in the header override it with `:has()` — no script involved.
   ========================================================================== */

/* --- Light: the app's palette, verbatim ---------------------------------- */
:root {
  --canvas: #F7F6F2;
  --surface: #FFFFFF;
  --sunken: #FBFAF7;
  --rail: #F1EFE8;

  --ink: #17150F;
  --ink-2: #4A463C;
  --muted: #6E6A5E;
  --faint: #8A8578;
  --fainter: #A09A8B;

  --hairline: #E2DED3;
  --hairline-soft: #F3F1EA;
  --hairline-head: #EFEDE6;
  --border-strong: #D8D3C6;

  --accent: #C2522B;
  --accent-hover: #9C3F1F;
  --accent-text: #C2522B;
  --accent-wash: #FBF7F2;
  --accent-wash-border: #EADFD2;

  /* The inverted band: hero terminal, closing CTA. */
  --stage: #17150F;
  --stage-2: #131108;
  --stage-line: #2E2B22;
  --stage-line-soft: #23211A;
  --stage-text: #F7F6F2;
  --stage-text-muted: #C9C4B5;
  --stage-text-faint: #7E786A;

  --selection: #F4DFD3;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --measure: 1160px;
  --rail-w: 128px;
}

/* --- Dark: the same hues, inverted. Warm, never blue-grey. --------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14120C;
    --surface: #1C1913;
    --sunken: #191610;
    --rail: #232019;

    --ink: #F2EFE6;
    --ink-2: #CFC9B9;
    --muted: #A7A091;
    --faint: #8B857A;
    --fainter: #6F695E;

    --hairline: #2E2A21;
    --hairline-soft: #262218;
    --hairline-head: #221F18;
    --border-strong: #3A362B;

    --accent-text: #E88A62;
    --accent-wash: #241B14;
    --accent-wash-border: #4A3324;

    --stage: #0E0C08;
    --stage-2: #0B0A06;
    --stage-line: #2A261D;
    --stage-line-soft: #201D15;

    --selection: #4A3324;
  }
}

/* --- Manual override, CSS only ------------------------------------------- */
:root:has(#t-dark:checked) {
  --canvas: #14120C;
  --surface: #1C1913;
  --sunken: #191610;
  --rail: #232019;

  --ink: #F2EFE6;
  --ink-2: #CFC9B9;
  --muted: #A7A091;
  --faint: #8B857A;
  --fainter: #6F695E;

  --hairline: #2E2A21;
  --hairline-soft: #262218;
  --hairline-head: #221F18;
  --border-strong: #3A362B;

  --accent-text: #E88A62;
  --accent-wash: #241B14;
  --accent-wash-border: #4A3324;

  --stage: #0E0C08;
  --stage-2: #0B0A06;
  --stage-line: #2A261D;
  --stage-line-soft: #201D15;

  --selection: #4A3324;
}

:root:has(#t-light:checked) {
  --canvas: #F7F6F2;
  --surface: #FFFFFF;
  --sunken: #FBFAF7;
  --rail: #F1EFE8;

  --ink: #17150F;
  --ink-2: #4A463C;
  --muted: #6E6A5E;
  --faint: #8A8578;
  --fainter: #A09A8B;

  --hairline: #E2DED3;
  --hairline-soft: #F3F1EA;
  --hairline-head: #EFEDE6;
  --border-strong: #D8D3C6;

  --accent-text: #C2522B;
  --accent-wash: #FBF7F2;
  --accent-wash-border: #EADFD2;

  --stage: #17150F;
  --stage-2: #131108;
  --stage-line: #2E2B22;
  --stage-line-soft: #23211A;

  --selection: #F4DFD3;
}

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

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

/* Someone who has asked their OS to reduce motion gets the jump, not the glide.
   Smooth scrolling over a page this tall is a long animation, and for people with
   vestibular disorders that is the kind that causes actual nausea. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Land a little below the top edge rather than flush against it: the chapter rail's
   number sits at the very start of the section and looks clipped without this. */
:target,
.hero[id], .chapter[id], .term-band[id], .claim[id] { scroll-margin-top: 28px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-family: var(--serif); letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--selection); }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fainter);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--rail);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-2);
}
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms ease, border-color 150ms ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }

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

.btn-onStage { background: transparent; border-color: var(--stage-line); color: var(--stage-text); }
.btn-onStage:hover { border-color: var(--stage-text); background: rgba(247,246,242,0.06); color: var(--stage-text); }

.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Masthead — mono slug line, wordmark, theme switch, rule of nav
   -------------------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.masthead-top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.brand span { font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: -0.02em; }

.slug {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
  line-height: 1.7;
  max-width: 260px;
}

.masthead-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.theme {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  overflow: hidden;
}
.theme label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  cursor: pointer;
  color: var(--faint);
  background: var(--surface);
  transition: background 150ms ease, color 150ms ease;
}
.theme label:hover { color: var(--ink); }
.theme svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme label + input + label { border-left: 1px solid var(--hairline); }

/* Active state. Two cases, and the second one was missing:
   1. The visitor has picked a theme — highlight what they picked.
   2. They have not picked anything, so the page is following prefers-color-scheme. The
      control has to follow it too, or arriving on a dark-preferring machine showed a dark
      page with *neither* icon lit, which reads as "the toggle is off" while it plainly is not.
   The id selector in case 1 outranks the attribute selector in case 2, so an explicit choice
   always wins over the mirrored system default. */
#t-light:checked + label,
#t-dark:checked + label,
:root:not(:has(input[name="theme"]:checked)) label[for="t-light"] {
  background: var(--ink);
  color: var(--canvas);
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(input[name="theme"]:checked)) label[for="t-light"] {
    background: var(--surface);
    color: var(--faint);
  }
  :root:not(:has(input[name="theme"]:checked)) label[for="t-dark"] {
    background: var(--ink);
    color: var(--canvas);
  }
}

.masthead-nav { border-top: 1px solid var(--hairline-soft); }
.masthead-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.masthead-nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead-nav a:hover { color: var(--accent-text); }
.masthead-nav .nav-right { margin-left: auto; }

/* --------------------------------------------------------------------------
   Chapter shell — the numbered rail
   -------------------------------------------------------------------------- */
.chapter { border-bottom: 1px solid var(--hairline); }
.chapter-sunken { background: var(--sunken); }
.chapter .wrap {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 0 36px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.chapter-rail-inner { position: sticky; top: 26px; }
.chapter-no {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.9;
  color: var(--border-strong);
  margin-bottom: 10px;
}
.chapter-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  max-width: 98px;
  line-height: 1.6;
}

.head { margin-bottom: 34px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.06; margin-bottom: 14px; }
.head p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.head p em { font-style: italic; color: var(--ink); }

/* --------------------------------------------------------------------------
   Hero — type only
   -------------------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--hairline); }
.hero .wrap {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 0 36px;
  padding-top: 80px;
  padding-bottom: 56px;
}
.hero-rail .eyebrow { display: block; max-width: 108px; line-height: 1.7; padding-top: 8px; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 90px);
  line-height: 0.97;
  letter-spacing: -0.028em;
  max-width: 19ch;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero .lede {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero .lede em { font-style: italic; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 15px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* --------------------------------------------------------------------------
   Terminal — inverted in both themes
   -------------------------------------------------------------------------- */
.term {
  border: 1px solid var(--stage-line);
  border-radius: 12px;
  background: var(--stage-2);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--stage-line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stage-text-muted);
}
.term-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.term-bar-right { margin-left: auto; color: var(--stage-text-faint); letter-spacing: 0.08em; }
.term-body { padding: 20px 16px 22px; overflow-x: auto; }
.term-body pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
  color: #E4DFD2;
  white-space: pre;
}
.t-dim { color: var(--stage-text-faint); }
.t-ok { color: #7FBF9B; }
.t-warn { color: #D9A85F; }
.t-bad { color: #E58C82; }
.t-key { color: #F7F6F2; font-weight: 500; }
.term-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 12px 16px;
  border-top: 1px solid var(--stage-line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stage-text-faint);
}
.term-foot b { color: #E5B49A; font-weight: 500; }

.figure { margin: 0; }
.figure figcaption {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.figure figcaption b {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 3px;
}

.term-band { border-bottom: 1px solid var(--hairline); }
.term-band .wrap { padding-top: 0; padding-bottom: 72px; }

/* --------------------------------------------------------------------------
   The three-cell argument
   -------------------------------------------------------------------------- */
.claim { background: var(--stage); color: var(--stage-text); border-bottom: 1px solid var(--hairline); }
.claim .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 0;
}
.claim-cell { padding: 34px 26px 36px 0; }
.claim-cell + .claim-cell { border-left: 1px solid var(--stage-line); padding-left: 26px; }
.claim-cell .eyebrow { display: block; color: var(--stage-text-faint); margin-bottom: 12px; }
.claim-us .eyebrow { color: #E5B49A; }
.claim-cell strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-bottom: 9px;
}
.claim-cell p { font-size: 13.5px; line-height: 1.65; color: var(--stage-text-muted); }

/* --------------------------------------------------------------------------
   Pipeline
   -------------------------------------------------------------------------- */
.pipe {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.pipe-top { display: flex; border-bottom: 1px solid var(--hairline); }
.pipe-in {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  border-right: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pipe-mid { padding: 20px 24px; flex: 1; min-width: 0; }
.pipe-mid .eyebrow { display: block; margin-bottom: 10px; }
.pipe-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.pipe-steps span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 9px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--sunken);
  color: var(--ink-2);
}
.pipe-bottom { display: grid; grid-template-columns: 1fr 1fr; }
.pipe-leaf { padding: 20px 24px; }
.pipe-leaf + .pipe-leaf { border-left: 1px solid var(--hairline); }
.pipe-leaf-dry { background: var(--accent-wash); }
.pipe-leaf .eyebrow { display: block; margin-bottom: 9px; }
.pipe-leaf-dry .eyebrow { color: var(--accent-text); }
.pipe-leaf strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 5px;
}
.pipe-leaf p { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}
.note strong { color: var(--ink); font-weight: 600; }

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ticks li::before { content: "→"; font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.ticks li:first-child { border-top: 1px solid var(--hairline-soft); }

/* --------------------------------------------------------------------------
   The nine types — ruled index with a REFUSES chip
   -------------------------------------------------------------------------- */
.index { border-top: 1px solid var(--hairline); }
.index-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 190px) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--hairline);
}
.index-no { font-family: var(--mono); font-size: 11px; color: var(--fainter); }
.index-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 29px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.index-body { display: grid; gap: 8px; }
.index-body p { font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
/* Block, not flex. As a flex container every inline child — a <span class="tag">, an <em> —
   became its own flex item and got its own column, so a sentence with a tag in the middle
   broke into narrow stacks with single words stranded. The chip is positioned as an inline
   box instead, which lets the sentence wrap as prose. */
.index-guard {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.index-guard::before {
  content: "REFUSES";
  display: inline-block;
  margin-right: 9px;
  transform: translateY(-1px);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  border: 1px solid var(--accent-wash-border);
  background: var(--accent-wash);
  border-radius: 4px;
  padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   Pull quote, callouts
   -------------------------------------------------------------------------- */
.pull {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  margin: 0 0 24px;
  max-width: 27ch;
}
.pull p {
  font-family: var(--serif);
  font-size: clamp(27px, 3.3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pull p em { font-style: italic; }
.pull cite {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
}

.callout {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.callout + .callout { margin-top: 14px; }
.callout strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Pricing — a rate card read by rows
   -------------------------------------------------------------------------- */
.rate-scroll { overflow-x: auto; }
.rate { width: 100%; min-width: 720px; border-collapse: collapse; }
.rate caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fainter);
}
.rate th, .rate td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: middle;
}
.rate thead th { border-bottom: 2px solid var(--ink); padding-bottom: 13px; }
.rate tbody tr:last-child th, .rate tbody tr:last-child td { border-bottom: none; }
.rate .rl {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  width: 176px;
  white-space: nowrap;
}
.rate .plan-name { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.05; color: var(--ink); }
.rate .plan-for {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fainter);
}
.rate .fig {
  font-family: var(--serif);
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.rate .fig sub { font-family: var(--mono); font-size: 11px; bottom: 0; color: var(--faint); margin-left: 3px; }
.rate td.num {
  font-family: var(--mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.rate .growth { background: var(--accent-wash); padding-left: 16px; }
.rate thead .growth { border-bottom-color: var(--accent); }
.rate thead .growth .plan-for { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   FAQ — native disclosure
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.25;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fainter);
}
.faq details[open] summary::after { content: "–"; color: var(--accent-text); }
.faq summary:hover { color: var(--accent-text); }
.faq details p {
  padding: 0 0 21px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Closing + footer
   -------------------------------------------------------------------------- */
.cta { background: var(--stage); color: var(--stage-text); }
.cta .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 58px;
  padding-bottom: 58px;
}
.cta h2 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.02; max-width: 24ch; text-wrap: balance; }
.cta p { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--stage-text-muted); max-width: 42ch; }

.site-foot { background: var(--stage); color: var(--stage-text-muted); border-top: 1px solid var(--stage-line); }
.site-foot .wrap { padding-top: 30px; padding-bottom: 34px; }
.foot-grid {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stage-line-soft);
}
.site-foot .brand { color: var(--stage-text); }
.site-foot .brand:hover { color: var(--stage-text); }
.site-foot .brand span { font-size: 20px; }
.site-foot .brand img { width: 22px; height: 22px; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { font-size: 13.5px; color: var(--stage-text-muted); }
.foot-links a:hover { color: var(--stage-text); }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 17px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stage-text-faint);
}

/* --------------------------------------------------------------------------
   Legal / support pages
   -------------------------------------------------------------------------- */
.doc { border-bottom: 1px solid var(--hairline); }
.doc .wrap { padding-top: 58px; padding-bottom: 72px; max-width: 900px; }
.doc-head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 34px; }
.doc-head .eyebrow { display: block; margin-bottom: 14px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; margin-bottom: 12px; }
.doc-head > p:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fainter); }
.doc-lede { font-size: 17px !important; line-height: 1.62 !important; color: var(--ink) !important; margin-bottom: 8px; }
.doc-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 38px 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.doc-body h3 { font-size: 20px; line-height: 1.2; margin: 26px 0 8px; }
.doc-body p, .doc-body li { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { margin: 12px 0 0; padding-left: 0; }
/* Hanging bullet by padding + absolute marker, NOT by grid.
   As a two-column grid, any <li> with more than one child put its second child in column
   two and everything after it on a new row starting in the 18px column — so a list item
   beginning with <strong> rendered the rest of its sentence one word per line. Every list
   on the privacy and support pages does begin with <strong>. */
.doc-body ul li {
  display: block;
  position: relative;
  padding: 7px 0 7px 18px;
}
.doc-body ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 7px;
  font-family: var(--mono);
  color: var(--accent-text);
}
.doc-body a { border-bottom: 1px solid var(--accent-wash-border); }
.doc-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--rail);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-2);
}
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body em { font-style: italic; }

.doc-table-scroll { overflow-x: auto; margin: 18px 0 8px; }
.doc-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.doc-table thead th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--hairline-head);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.doc-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  vertical-align: top;
  max-width: none;
}
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody td:first-child { color: var(--ink); }

.contact-card {
  border: 1px solid var(--accent-wash-border);
  background: var(--accent-wash);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 26px;
}
.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px) !important;
  line-height: 1.1 !important;
  color: var(--ink) !important;
  max-width: none !important;
}
.contact-value a { border-bottom: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --rail-w: 98px; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 860px) {
  .hide-sm { display: none; }
  .slug { display: none; }
  .hero .wrap, .chapter .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-rail, .chapter-rail { margin-bottom: 20px; }
  .hero-rail .eyebrow { padding-top: 0; max-width: none; }
  .chapter-rail-inner { position: static; display: flex; align-items: baseline; gap: 12px; }
  .chapter-no { font-size: 25px; margin-bottom: 0; }
  .chapter-label { max-width: none; }
  .claim .wrap { grid-template-columns: minmax(0, 1fr); }
  .claim-cell { padding: 24px 0; border-bottom: 1px solid var(--stage-line); }
  .claim-cell + .claim-cell { border-left: none; padding-left: 0; }
  .claim-cell:last-child { border-bottom: none; }
  .pipe-top { flex-direction: column; }
  .pipe-in { border-right: none; border-bottom: 1px solid var(--hairline); }
  .pipe-bottom { grid-template-columns: minmax(0, 1fr); }
  .pipe-leaf + .pipe-leaf { border-left: none; border-top: 1px solid var(--hairline); }
  .index-row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 14px; }
  .index-body { grid-column: 2; }
  .cta .wrap { align-items: flex-start; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero .wrap { padding-top: 46px; padding-bottom: 40px; }
  .chapter .wrap { padding-top: 50px; padding-bottom: 50px; }
  .term-band .wrap { padding-bottom: 50px; }
  .doc .wrap { padding-top: 40px; padding-bottom: 54px; }
  .masthead-nav .wrap { gap: 0 16px; }
  .masthead-nav .nav-right { margin-left: 0; }
  .term-body pre { font-size: 11.5px; line-height: 1.95; }
  .foot-links { margin-left: 0; }
}
