/* ==========================================================================
   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; }
}

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); }
/* Two cases. The second was missing: with neither radio checked the page follows
   prefers-color-scheme, so the control has to follow it too — otherwise a dark-preferring
   visitor saw a dark page with neither icon lit. The id selector outranks the attribute
   selector, so an explicit choice always beats 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 {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ticks li::before {
  content: "→";
  position: absolute;
  left: 0;
  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. */
.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; }
.doc-body ul li {
  position: relative;
  display: block;
  padding: 7px 0 7px 20px;
}
.doc-body ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  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; }
}


/* ==========================================================================
   v3 — refinement layer
   Status colours, product-UI previews, flow diagram, resource grid,
   legal-page furniture and the support form. Same tokens, no new hues
   beyond a four-step status set that the app already uses.
   ========================================================================== */

:root {
  --ok: #1F6F4A;   --ok-bg: #EDF4EF;   --ok-bd: #CFE0D4;
  --info: #3B5A6B; --info-bg: #EFF3F5; --info-bd: #D3DEE3;
  --warn: #9C5A17; --warn-bg: #FBF3E9; --warn-bd: #EADFD2;
  --bad: #B3261E;  --bad-bg: #FBEFEE;  --bad-bd: #E7C4C0;
  --focus: #C2522B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ok: #7FBF9B;   --ok-bg: #17241D;   --ok-bd: #2C3F33;
    --info: #9BB6C2; --info-bg: #161F23; --info-bd: #2A383E;
    --warn: #D9A85F; --warn-bg: #251E13; --warn-bd: #3E3223;
    --bad: #E58C82;  --bad-bg: #261815;  --bad-bd: #422722;
    --focus: #E88A62;
  }
}
:root:has(#t-dark:checked) {
  --ok: #7FBF9B;   --ok-bg: #17241D;   --ok-bd: #2C3F33;
  --info: #9BB6C2; --info-bg: #161F23; --info-bd: #2A383E;
  --warn: #D9A85F; --warn-bg: #251E13; --warn-bd: #3E3223;
  --bad: #E58C82;  --bad-bg: #261815;  --bad-bd: #422722;
  --focus: #E88A62;
}
:root:has(#t-light:checked) {
  --ok: #1F6F4A;   --ok-bg: #EDF4EF;   --ok-bd: #CFE0D4;
  --info: #3B5A6B; --info-bg: #EFF3F5; --info-bd: #D3DEE3;
  --warn: #9C5A17; --warn-bg: #FBF3E9; --warn-bd: #EADFD2;
  --bad: #B3261E;  --bad-bg: #FBEFEE;  --bad-bd: #E7C4C0;
  --focus: #C2522B;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.theme label:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Hero, two columns ---------------------------------------------------- */
.hero-split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0 52px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 64px;
}
.hero-split .eyebrow { display: block; margin-bottom: 18px; }
.hero-split h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
}
.hero-split h1 em { font-style: italic; color: var(--accent-text); }
.hero-split .lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero-split .lede em { font-style: italic; color: var(--ink); }

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
/* Let the three steps share the row instead of overflowing it. Measured at 1440px: the
   children summed to 492px inside a 484px column, so the strip wrapped to three lines with
   an arrow stranded on its own. `flex: 1 1 0` plus `min-width: 0` makes them shrink to fit;
   the narrow breakpoint below stacks them properly rather than letting them get squeezed. */
.steps-item { display: grid; gap: 3px; flex: 1 1 0; min-width: 0; }
.steps-arrow { flex: none; }
.steps-item b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.steps-item span { font-size: 12.5px; color: var(--muted); }
.steps-arrow { font-family: var(--mono); font-size: 13px; color: var(--border-strong); padding: 0 2px; }

/* --- Product UI preview --------------------------------------------------- */
.ui {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--hairline-head);
}
.ui-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ui-bar b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.ui-file {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-badge {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-bd);
  border-radius: 999px;
  padding: 3px 9px;
}
.ui-head, .ui-row {
  display: grid;
  grid-template-columns: 30px 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0 16px;
}
.ui-head {
  height: 32px;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
}
.ui-row { padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; }
.ui-row:last-of-type { border-bottom: none; }
.ui-no { font-family: var(--mono); font-size: 11px; color: var(--fainter); }
.ui-what { color: var(--ink-2); line-height: 1.5; }
.ui-what .mono { color: var(--ink); font-size: 12.5px; }
.ui-what .arw { color: var(--fainter); padding: 0 2px; }
.ui-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid;
  white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.chip-create { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.chip-update { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.chip-delete { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.chip-fail   { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-bd); }

.ui-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
  background: var(--sunken);
}
.ui-sum div { flex: 1 1 0; min-width: 88px; padding: 13px 16px; }
.ui-sum div + div { border-left: 1px solid var(--hairline-soft); }
.ui-sum dt {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
  margin-bottom: 5px;
}
.ui-sum dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ui-sum .lead dd { color: var(--accent-text); }
.ui-sum .lead dt { color: var(--accent-text); }

.ui-cap {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Flow diagram --------------------------------------------------------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 7px; }
.flow-step {
  flex: 1 1 122px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 13px 14px;
}
.flow-step i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--fainter);
}
.flow-step b { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.flow-step span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.flow-step-in { background: var(--rail); border-style: dashed; }
.flow-arrow {
  align-self: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--border-strong);
}

.branch { margin-top: 7px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 7px; }
.branch-node {
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 14px 15px;
  background: var(--surface);
}
.branch-node b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.branch-node span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.branch-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.out { border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 15px; background: var(--surface); }
.out-dry { background: var(--accent-wash); border-color: var(--accent-wash-border); }
.out i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
}
.out-dry i { color: var(--accent-text); }
.out b { display: block; margin-top: 7px; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.out span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* --- Nine resources ------------------------------------------------------- */
.grid9 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.res { background: var(--surface); padding: 20px 20px 16px; display: flex; flex-direction: column; }
.res-no { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fainter); }
.res h3 { font-size: 23px; line-height: 1.1; margin: 8px 0 7px; }
.res > p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.res details { margin-top: auto; padding-top: 13px; }
.res summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.res summary::-webkit-details-marker { display: none; }
.res summary::after { content: "+"; font-size: 13px; color: var(--fainter); }
.res details[open] summary::after { content: "–"; }
.res details p {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Bulk edit mock ------------------------------------------------------- */
.bulk-track {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.bulk-track span {
  flex: 1 1 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 7px 10px;
  text-align: center;
}
.bulk-track .on { color: var(--accent-text); border-color: var(--accent-wash-border); background: var(--accent-wash); }
.bulk-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
}
.bulk-field b {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fainter);
}
.bulk-field .box {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--sunken);
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

/* --- Pricing refinements -------------------------------------------------- */
.rate th, .rate td { padding: 16px 18px 16px 0; }
.rate .rl { position: sticky; left: 0; background: var(--sunken); padding-right: 22px; z-index: 1; }
.rate thead .rl { background: var(--sunken); }
.rate .growth { padding-left: 22px; padding-right: 22px; }
.rate thead .growth { padding-top: 4px; }
.rate th.growth, .rate td.growth { box-shadow: inset 1px 0 0 var(--accent-wash-border), inset -1px 0 0 var(--accent-wash-border); }
.rate thead th.growth { box-shadow: inset 1px 1px 0 var(--accent-wash-border), inset -1px 0 0 var(--accent-wash-border); }
.rate tbody tr:last-child .growth { box-shadow: inset 1px 0 0 var(--accent-wash-border), inset -1px -1px 0 var(--accent-wash-border); }
.plan-flag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid var(--accent-wash-border);
  border-radius: 999px;
  padding: 2px 8px;
}

/* --- FAQ rows ------------------------------------------------------------- */
.faq summary { padding-left: 2px; }
.faq details[open] { background: var(--sunken); }
.faq details[open] summary,
.faq details[open] p { padding-left: 14px; padding-right: 14px; }
.faq details[open] summary { padding-top: 19px; }

/* --- Footer --------------------------------------------------------------- */
.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--stage-line-soft);
}
.foot-about p { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--stage-text-faint); max-width: 34ch; }
.foot-col h3 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stage-text-faint);
  margin-bottom: 12px;
}
.foot-col ul { display: grid; gap: 9px; }
.foot-col a { font-size: 13.5px; color: var(--stage-text-muted); }
.foot-col a:hover { color: var(--stage-text); }

/* --- Legal / support layout ----------------------------------------------- */
.doc-split .wrap {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 0 48px;
  max-width: 1120px;
  align-items: start;
}
.toc { position: sticky; top: 26px; }
.toc h2 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fainter);
  margin-bottom: 12px;
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 5px 0 5px 26px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  position: relative;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fainter);
}
.toc a:hover { color: var(--accent-text); }
.doc-col { max-width: 800px; }
.doc-col h2 { scroll-margin-top: 26px; }

.toc-mobile { display: none; }
.toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; margin-left: auto; color: var(--fainter); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { margin-top: 10px; }

.key {
  margin: 18px 0 !important;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
}

/* --- Support page --------------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 0 52px;
  align-items: start;
}
.form-card {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px 26px 28px;
}
.form-card > h2 {
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 6px;
  padding: 0;
  border: none;
}
.form-card > p.form-intro { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; align-content: start; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 7px 16px;
  margin-bottom: 16px;
}
.field-row > .field {
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 7px;
  margin-bottom: 0;
}
.field label { display: flex; align-items: baseline; gap: 7px; }
.field label .opt { white-space: nowrap; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label .opt { color: var(--fainter); }
.field .hint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--sunken);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 13px;
  min-height: 44px;
}
.field textarea { min-height: 148px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fainter); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--ink); outline: none; }
.field input[type="file"] { font-size: 13px; color: var(--muted); }
.field select { padding-right: 34px; }
.label-as-legend {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-card .field:last-of-type { margin-bottom: 18px; }
.support-grid .side-block h3 { font-family: var(--serif); font-weight: 400; }
.doc .support-grid { margin-top: 8px; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--sunken);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.radio-row input { accent-color: var(--accent); }
.radio-row label:has(input:checked) { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.form-warn {
  display: flex;
  gap: 11px;
  margin: 4px 0 20px;
  padding: 13px 15px;
  border: 1px solid var(--warn-bd);
  background: var(--warn-bg);
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.form-warn b { color: var(--warn); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 4px; }
.form-foot .alt { font-size: 12.5px; color: var(--muted); }

.form-flash { display: none; }
.form-flash:target { display: flex; }
.flash {
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.6;
}
.flash b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.flash-ok { border: 1px solid var(--ok-bd); background: var(--ok-bg); color: var(--ink-2); }
.flash-ok b { color: var(--ok); }
.flash-bad { border: 1px solid var(--bad-bd); background: var(--bad-bg); color: var(--ink-2); }
.flash-bad b { color: var(--bad); }

.side { display: grid; gap: 30px; }
.side-block h3 {
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.side-block p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.side-block p + p { margin-top: 10px; }
.checklist { counter-reset: ck; display: grid; gap: 12px; margin-top: 4px; }
.checklist li {
  position: relative;
  padding-left: 33px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.checklist li::before {
  counter-increment: ck;
  content: counter(ck);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-text);
  border: 1px solid var(--accent-wash-border);
  background: var(--accent-wash);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist b { color: var(--ink); font-weight: 600; }

.actions-list { border-top: 1px solid var(--hairline); }
.actions-list li {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.actions-list b { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }

/* --- Responsive additions ------------------------------------------------- */
@media (max-width: 1080px) {
  .doc-split .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; margin-bottom: 30px; }
  .toc { position: static; }
}
@media (max-width: 980px) {
  .hero-split .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px 0; padding-top: 52px; }
  .grid9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid9 .res:last-child { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .branch { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .flow-arrow { display: none; }
}
@media (max-width: 620px) {
  .grid9 { grid-template-columns: minmax(0, 1fr); }
  .ui-head { display: none; }
  .ui-row { grid-template-columns: 26px minmax(0, 1fr); row-gap: 7px; }
  .ui-row .ui-what { grid-column: 2; }
  .ui-sum div { flex-basis: 50%; }
  .ui-sum div:nth-child(3) { border-left: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .actions-list li { grid-template-columns: minmax(0, 1fr); }
  .doc-table-stack thead { display: none; }
  .doc-table-stack, .doc-table-stack tbody, .doc-table-stack tr, .doc-table-stack td { display: block; width: 100%; }
  .doc-table-stack { min-width: 0; }
  .doc-table-stack tr { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
  .doc-table-stack tr:last-child { border-bottom: none; }
  .doc-table-stack td { border: none; padding: 7px 16px; }
  .doc-table-stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fainter);
  }
}


/* --- Sticky masthead ------------------------------------------------------
   The nav rule stays; the top row scrolls away so the page keeps its height.
   -------------------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 40; }
.masthead-nav { background: var(--canvas); }

@media (max-width: 620px) {
  .masthead-top .wrap { padding-top: 11px; padding-bottom: 11px; }
}

/* Anything the nav can jump to must clear the sticky header. */
:target { scroll-margin-top: 122px; }
.chapter[id], .doc-col h2[id], .faq details[id] { scroll-margin-top: 122px; }
@media (max-width: 620px) { :target, .chapter[id], .doc-col h2[id] { scroll-margin-top: 104px; } }

/* The in-page contents rail sits below it. */
.toc { top: 138px; }


/* --- Pricing, as four equal cards ------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px 22px 22px;
}
.plan-best {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.plan-flag {
  position: absolute;
  top: -10px;
  left: 22px;
  margin: 0;
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.plan-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.plan-best .plan-kicker { color: var(--accent-text); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.plan-price span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--faint);
}
.plan-who {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  min-height: 42px;
}
.plan-specs {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--hairline);
}
.plan-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.plan-best .plan-specs div { border-bottom-color: var(--accent-wash-border); }
.plan-specs dt {
  font-size: 12.5px;
  color: var(--muted);
}
.plan-specs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.plan .btn { margin-top: auto; }
.plan-cta { padding-top: 22px; display: grid; }

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-who { min-height: 0; }
}

.rate-caption { display: block; margin-bottom: 20px; }


/* Steps: stack below the width where three columns stop being readable. */
@media (max-width: 560px) {
  .steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .steps-arrow { display: none; }
}
