/* De-ID site: The Conversation, in ultramarine and chartreuse.
   The site speaks the language of the AI chats people already use, and shows
   the one thing they hide: the gap between what you typed and what was sent.
   Colour owns regions: the header and hero are one saturated ultramarine field
   with the chat window sitting on it in white; the light band is tinted from
   the field; the closing band, footer and code blocks are the field's deep tone.
   Chartreuse marks only what De-ID took out (tokens, found names, the line it
   draws) and nothing else. Self-contained: no scripts, nothing fetched from
   elsewhere. Built as site2, recoloured as site3 (chosen by hants, 2026-11-15). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* the field: ultramarine owns the header, hero, read-page heads and primary actions */
  --field: #1f2ccf;
  --field-deep: #0e1567;    /* closing band, footer, code blocks */
  --on-field: #ffffff;
  --on-field-2: #ccd0fb;
  --dark: var(--field-deep);
  --on-dark: #f4f5ff;
  --on-dark-2: #c4c9f4;     /* secondary text on the deep field takes its hue */

  --bg: #ffffff;
  --bg-2: #eff0fd;          /* the light band, tinted from the field */
  --ink: #101114;
  --ink-2: #3b3f46;
  --ink-3: #61666f;
  --rule: #e3e6ee;          /* rules and the bubble lean toward the field's hue */
  --rule-2: #ccd1dc;
  --bubble: #eff2f8;

  /* chartreuse: what De-ID took out, and nothing else. --hl-line is the one tone
     for every line, stop and underline that marks it: 3.83:1 on white, 3.42:1 on the bubble */
  --hl: #e2fb4a;
  --hl-ink: #1c2200;
  --hl-line: #778b00;
  --hl-soft: #f6fdd2;

  --warn: #a64b07;
  --selection: #d5d9ff;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1200px;
  --measure: 66ch;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--rule-2) var(--bg); }
/* the read pages' title band bleeds sideways to the viewport edge */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%; font-size: 17px; line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* text selection belongs to the field, not to the de-identified colour */
::selection { background: var(--selection); color: var(--field-deep); }
.hero ::selection, .doc .page-head ::selection { background: var(--on-field); color: var(--field-deep); }
.band-dark ::selection, .site-footer ::selection, .cmd::selection, .cmd *::selection { background: var(--on-dark); color: var(--dark); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .doc .page-head :focus-visible { outline-color: var(--on-field); }
.hero .chat :focus-visible { outline-color: var(--ink); }
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: var(--s2) var(--s4); border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s3); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 760px) { .wrap { padding: 0 var(--s6); } }

/* ---------- header (on the field) ---------- */
.site-header { background: var(--field); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s2) var(--s5); padding-top: var(--s3); padding-bottom: var(--s3);
}
.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--on-field); }
.logo .word { font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: center; }
.logo .lbar { display: inline-block; width: 15px; height: 9px; border-radius: 2px; background: currentColor; margin: 1px 4px 0; }
.logo .lid { color: var(--hl); }
.stage {
  font-weight: 650; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: var(--on-field-2); border: 1px solid color-mix(in srgb, var(--on-field) 38%, transparent);
  border-radius: 999px; padding: 5px 9px 4px;
}
.nav { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--on-field-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 2px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-field); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .nav .nav-link { display: none; } .nav .nav-link.keep { display: inline; } }

/* ---------- buttons: the field carries the primary action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.15; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  background: var(--field); color: #fff; border: 1px solid var(--field);
  transition: background-color .18s ease-out, border-color .18s ease-out, transform .12s ease-out;
}
.btn:hover { background: var(--field-deep); border-color: var(--field-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--rule-2); }
.btn.quiet:hover { background: var(--bg-2); border-color: var(--rule-2); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 9px; }
.btn .os { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn .sub { font-weight: 450; font-size: 14px; opacity: .78; }
/* on the field and the deep band, buttons turn white */
.site-header .btn, .hero .btn, .band-dark .btn { background: var(--on-field); color: var(--field-deep); border-color: var(--on-field); }
.site-header .btn:hover, .hero .btn:hover, .band-dark .btn:hover {
  background: color-mix(in srgb, var(--on-field) 86%, var(--field));
  border-color: color-mix(in srgb, var(--on-field) 86%, var(--field));
}

/* ---------- hero (on the field) ---------- */
.hero { background: var(--field); color: var(--on-field); padding: clamp(36px, 6vw, 88px) 0 clamp(48px, 7vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7) clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); } }
.hero h1 {
  font-weight: 760; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 var(--s5); text-wrap: balance; max-width: 15ch; color: var(--on-field);
}
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--on-field-2); margin: 0 0 var(--s6); max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-note { font-size: 14.5px; color: var(--on-field-2); margin: var(--s4) 0 0; max-width: 46ch; line-height: 1.5; }

/* ---------- the chat window, sitting on the field in white ---------- */
.chat {
  background: #fff; border: 1px solid transparent; border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 44px 80px -34px rgba(0, 0, 0, .55);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-3);
}
.chat-head b { color: var(--ink); font-weight: 650; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }

/* the stage strip, with a now-marker that walks it once and rests on the last stop */
.stages {
  list-style: none; margin: 0; padding: 14px 18px 6px; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.stages li { position: relative; padding-top: 18px; white-space: nowrap; }
.stages li::before { content: ""; position: absolute; left: 5px; right: -5px; top: 5px; height: 2px; background: var(--hl-line); }
.stages li:last-child::before { display: none; }
.stages li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--hl-line);
}
.stages li.done::after { background: var(--hl-line); }
/* the now-marker */
.stages::after {
  content: ""; position: absolute; top: 12px; width: 16px; height: 16px; margin-left: -2px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px #fff; pointer-events: none;
  left: calc(18px + (100% - 36px) * .8);
}
@media (prefers-reduced-motion: no-preference) {
  .stages::after { animation: walk 3.4s var(--ease) .6s both; }
}
/* each stop fills as the marker reaches it (at .6s, 1.45s, 2.3s, 2.98s, 3.66s) */
@media (prefers-reduced-motion: no-preference) {
  .stages li::after { animation: stop-fill .35s ease-out both; }
  .stages li:nth-child(1)::after { animation-delay: .6s; }
  .stages li:nth-child(2)::after { animation-delay: 1.45s; }
  .stages li:nth-child(3)::after { animation-delay: 2.3s; }
  .stages li:nth-child(4)::after { animation-delay: 2.98s; }
  .stages li:nth-child(5)::after { animation-delay: 3.66s; }
  .turns > [style*="--t"] { animation: mark 1.5s ease-out both; }
  .turns > [style*="--t"] .role { animation: role-on 1.5s ease-out both; animation-delay: inherit; }
  .turns > [style*="--t:0"] { animation-delay: .6s; }
  .turns > [style*="--t:1"] { animation-delay: 1.45s; }
  .turns > [style*="--t:2"] { animation-delay: 2.3s; }
  .turns > [style*="--t:3"] { animation-delay: 2.98s; }
  .turns > [style*="--t:4"] { animation-delay: 3.66s; }
}
@keyframes stop-fill { from { background: #fff; } to { background: var(--hl-line); } }
@keyframes mark { 0% { background-color: rgba(16, 17, 20, 0); } 12%, 40% { background-color: rgba(16, 17, 20, .095); } 100% { background-color: rgba(16, 17, 20, 0); } }
@keyframes role-on { 0% { color: var(--ink-3); } 12%, 55% { color: var(--ink); } 100% { color: var(--ink-3); } }
@keyframes walk {
  0%, 18%  { left: 18px; }
  25%, 43% { left: calc(18px + (100% - 36px) * .2); }
  50%, 63% { left: calc(18px + (100% - 36px) * .4); }
  70%, 83% { left: calc(18px + (100% - 36px) * .6); }
  90%, 100% { left: calc(18px + (100% - 36px) * .8); }
}
@media (max-width: 520px) {
  .stages { font-size: 11.5px; column-gap: 6px; }
  .stages li { white-space: normal; word-spacing: 100vw; line-height: 1.25; }
  .stages li::before { right: -11px; }
}

.turns { padding: 4px 0 2px; }
.turn { position: relative; padding: 10px 18px; }
.role { display: block; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: var(--ink-3); margin: 0 0 6px; }
.turn.you { text-align: right; }
.turn.you .msg { display: inline-block; text-align: left; background: var(--bubble); border-radius: 16px 16px 4px 16px; padding: 10px 14px; max-width: 94%; }
.msg { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }

/* states, each with its own mark */
.found { text-decoration: underline; text-decoration-color: var(--hl-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tok {
  font-family: var(--mono); font-size: .84em; white-space: nowrap;
  background: var(--hl); color: var(--hl-ink); border-radius: 5px; padding: 2px 6px;
  transition: background-color .16s ease-out, color .16s ease-out;
}
.tok[tabindex] { cursor: help; }
.restored { font-weight: 650; box-shadow: inset 0 -0.42em 0 var(--hl-soft); border-bottom: 2px dotted var(--hl-line); }

/* the reveal: it takes over its own turn's label row, so it never covers the
   message it explains or the turn above; works on hover, keyboard and tap */
.tok[data-was]::after {
  content: attr(data-was) " · on your screen only";
  position: absolute; left: 12px; right: 12px; top: 6px; z-index: 4;
  height: 26px; line-height: 26px; padding: 0 10px; border-radius: 7px;
  font-family: "Archivo", system-ui, sans-serif; font-size: 13px; font-weight: 600; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--ink); color: #fff;
  opacity: 0; transform: translateY(-3px); pointer-events: none;
  transition: opacity .16s ease-out, transform .16s var(--ease);
}
.tok[data-was]:hover::after, .tok[data-was]:focus::after { opacity: 1; transform: translateY(0); }
.tok[data-was]:hover, .tok[data-was]:focus { background: var(--ink); color: #fff; outline: none; }
.tok[data-was]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nb { white-space: nowrap; }

/* the line De-ID draws: sharp, once, and labelled */
.line { display: flex; align-items: center; gap: 10px; padding: 8px 18px; }
.line::before, .line::after { content: ""; flex: 1; height: 2px; background: var(--hl-line); }
.line span {
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: var(--hl-ink);
  background: var(--hl); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}

.chat-cap { font-size: 14px; color: var(--on-field-2); margin: var(--s3) 4px 0; line-height: 1.45; max-width: 62ch; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.band-grey { background: var(--bg-2); }
.band-dark { background: var(--dark); color: var(--on-dark); }
.section h2 {
  font-weight: 740; font-size: clamp(32px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -.028em;
  margin: 0 0 var(--s5); text-wrap: balance; max-width: 20ch;
}
.section h3 { font-weight: 700; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 var(--s3); }
.section p, .section li { color: var(--ink-2); }
.section p { margin: 0 0 var(--s4); max-width: var(--measure); }
.section .lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; max-width: 60ch; margin-bottom: var(--s7); }
.section strong, .section b { color: var(--ink); font-weight: 650; }
.band-dark p { color: var(--on-dark-2); }
.band-dark h2 { color: var(--on-dark); }

/* text links on white take the field's colour on hover; on the deep band they stay light */
.doc a:not(.btn) { color: var(--ink); }
.doc a:not(.btn), .section a:not(.btn) { text-decoration-color: color-mix(in srgb, var(--field) 55%, transparent); }
.doc a:not(.btn):hover, .section a:not(.btn):hover { color: var(--field); text-decoration-color: var(--field); }
.band-dark a:not(.btn) { text-decoration-color: color-mix(in srgb, var(--on-dark) 50%, transparent); }
.band-dark a:not(.btn):hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }

.label { font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); line-height: 1.3; }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* the tools De-ID works with */
.tools { list-style: none; padding: 0; margin: calc(-1 * var(--s5)) 0 var(--s7); display: flex; flex-wrap: wrap; gap: var(--s2); }
.tools li { border: 1px solid var(--rule-2); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.tools li.any { border-style: dashed; color: var(--ink-3); font-weight: 450; }

/* one idea per row */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5) var(--s8);
  padding: clamp(32px, 4.5vw, 56px) 0; border-bottom: 1px solid var(--rule); align-items: start;
}
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.row .screen { margin: 0; }
.row p:last-child { margin-bottom: 0; }

/* typed and sent, kept level */
.level { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.level > * { margin: 0; padding: var(--s2) 0; }
.level .label { display: block; padding-top: var(--s4); }
.level p { color: var(--ink); max-width: none; font-size: 17px; line-height: 1.5; }
/* phones: all of one side, then all of the other */
.level .l-a { order: 1; } .level .a1 { order: 2; } .level .a2 { order: 3; } .level .a3 { order: 4; padding-bottom: var(--s4); }
.level .l-b { order: 5; border-top: 2px solid var(--hl-line); } .level .b1 { order: 6; } .level .b2 { order: 7; } .level .b3 { order: 8; padding-bottom: var(--s4); }
@media (min-width: 640px) {
  /* wider: each sentence sits level with its de-identified copy */
  .level { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .level > * { order: 0 !important; }
  .level > :nth-child(odd) { padding-right: var(--s5); }
  .level { position: relative; }
  .level::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--hl-line); }
  .level > :nth-child(even) { padding-left: var(--s5); border-top: 0; }
  .level .a1, .level .b1, .level .a2, .level .b2 { border-bottom: 1px dashed var(--rule); }
  .level .a3, .level .b3 { padding-bottom: var(--s4); }
}
.level + .note { margin-top: var(--s3); }

/* stays / leaves */
.halves { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5) var(--s7); margin: 0 0 var(--s6); }
@media (min-width: 760px) { .halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.halves h3 { font-size: 18px; margin-bottom: var(--s3); display: flex; align-items: center; gap: 10px; }
.halves h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.halves h3 .dot.out { background: var(--hl-line); }
.halves ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.halves li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }

/* screens from the app */
.screen { margin: var(--s6) 0; }
.screen .frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(16, 17, 20, .1), 0 24px 50px -26px rgba(16, 17, 20, .4); }
.screen figcaption { font-size: 14.5px; color: var(--ink-3); margin-top: var(--s3); max-width: 70ch; line-height: 1.5; }
.screen figcaption b { color: var(--ink); font-weight: 650; }
.screen.narrow { max-width: 560px; }

/* the statement */
.statement .big {
  font-weight: 780; font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -.035em;
  color: var(--ink); margin: 0 0 var(--s6); max-width: 14ch; text-wrap: balance;
}
.cut { position: relative; white-space: nowrap; }
.cut::after { content: ""; position: absolute; left: -.03em; right: -.03em; top: 55%; height: .08em; background: var(--warn); border-radius: 2px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s7); }
@media (min-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the maker's note */
.maker { max-width: 720px; }
.maker h2 { font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: 0; color: var(--ink-3); margin: 0 0 var(--s4); }
.maker p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink); max-width: none; }
.maker .sign { color: var(--ink-2); margin: var(--s5) 0 var(--s6); }
.links { display: flex; flex-wrap: wrap; gap: var(--s3); }

.note { font-size: 15px; color: var(--ink-3); line-height: 1.55; }
.aside { border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s6); font-size: 15px; color: var(--ink-3); max-width: 72ch; }

/* ---------- closing band and footer (the deep field) ---------- */
.closing h2 { max-width: 16ch; }
.closing p { font-size: 18px; max-width: 54ch; margin-bottom: var(--s6); }
.closing .more { margin-top: var(--s5); font-size: 16px; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.closing .more a { color: var(--on-dark); }
.site-footer {
  background: var(--dark); color: var(--on-dark-2); font-size: 14px;
  border-top: 1px solid color-mix(in srgb, var(--on-field) 14%, transparent);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); padding-top: var(--s5); padding-bottom: var(--s6); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.site-footer a { color: var(--on-dark); display: inline-block; padding: 6px 0; }

/* ---------- read pages ---------- */
.doc { max-width: 900px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.doc h1 { font-weight: 760; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 var(--s5); text-wrap: balance; }
.doc .lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 0 0 var(--s5); }
.doc h2 { font-weight: 740; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.024em; margin: 0 0 var(--s4); }
.doc h3 { font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: var(--s6) 0 var(--s3); }
.doc p, .doc li { color: var(--ink-2); }
.doc p { max-width: var(--measure); margin: 0 0 var(--s4); }
.doc ul.prose { max-width: var(--measure); margin: 0 0 var(--s4); padding-left: 1.25em; }
.doc ul.prose li + li { margin-top: var(--s2); }
.doc b, .doc strong { color: var(--ink); font-weight: 650; }
.doc section { border-top: 1px solid var(--rule); padding-top: clamp(36px, 5vw, 56px); margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: var(--s5); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: 15.5px; }
.toc a { display: inline-block; padding: 6px 0; color: var(--ink-2); }

/* the title block sits on the field, so colour owns a region on every page */
.doc .page-head {
  color: var(--on-field); background: var(--field);
  /* full bleed in one primitive: a filled border-image outset sideways to the viewport
     edges, so the element and its bleed antialias their last row the same way */
  border-image: linear-gradient(var(--field) 0 0) fill 0 / 0 / 0 100vmax;
  margin-top: calc(-1 * clamp(40px, 6vw, 80px)); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 48px);
}
.doc .page-head h1 { color: var(--on-field); }
.doc .page-head .lead, .doc .page-head .note { color: var(--on-field-2); }
.doc .page-head .toc a { color: var(--on-field); text-decoration-color: color-mix(in srgb, var(--on-field) 50%, transparent); }
.doc .page-head .toc a:hover { color: var(--on-field); text-decoration-color: var(--on-field); }
.doc .page-head + section { border-top: 0; }

.form-table { width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s6); font-size: 16px; }
.form-table th, .form-table td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--rule); }
.form-table thead th { font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-top: 0; }
.form-table tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.form-table td { color: var(--ink-2); }
.form-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.form-table .hash { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: var(--ink); }
.form-table.cc td:first-child { color: var(--ink); }
@media (max-width: 640px) {
  .form-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .form-table.stack tr { display: block; border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
  .form-table.stack th, .form-table.stack td { display: block; border: 0; padding: 2px 0; width: auto; }
}
.table-scroll { overflow-x: auto; }
.chk, .no { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chk { stroke: var(--ink); }
.no { stroke: var(--ink-3); }

.os-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.os-head .os { width: 26px; height: 26px; fill: var(--ink); }
.pill { font-size: 12.5px; font-weight: 650; letter-spacing: .03em; border-radius: 999px; padding: 4px 10px 3px; line-height: 1.2; border: 1px solid currentColor; }
.pill.ok { color: var(--ink); }
.pill.warn { color: var(--warn); }
.dl-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0 var(--s5); }
.steps { padding-left: 1.3em; margin: 0 0 var(--s5); max-width: var(--measure); }
.steps li { margin-bottom: var(--s3); padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmd {
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--on-dark);
  background: var(--dark); border-radius: 10px; padding: var(--s3) var(--s4); margin: var(--s3) 0 var(--s4);
  overflow-x: auto; white-space: pre; max-width: 100%;
}
.callout { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: var(--s4) 0; margin: var(--s4) 0 var(--s5); max-width: 72ch; }
.callout p { margin: 0 0 var(--s2); }
.callout p:last-child { margin: 0; }
.links + .after-links { margin-top: var(--s5); }

/* ---------- getting it: two flat columns under an ink rule, like the halves, not cards ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
@media (min-width: 760px) { .plans { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.plan { border-top: 1px solid var(--ink); padding-top: var(--s5); scroll-margin-top: var(--s5); }
.doc .plan h3 { margin-top: 0; }
.price { color: var(--ink-2); margin: 0 0 var(--s4); }
.price .amount { font-weight: 760; font-size: clamp(40px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.plan-list { list-style: none; padding: 0; margin: 0 0 var(--s5); border-top: 1px solid var(--rule); }
.plan-list li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.plan > .btn { margin-bottom: var(--s4); }
.plan .note { margin-bottom: var(--s3); }

/* the enquiry form: plain fields, ink focus, rust only when a field the visitor touched is wrong */
.enquiry { display: grid; gap: var(--s4); margin-top: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 450; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-2); border-radius: 10px;
  transition: border-color .18s ease-out;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--warn); }
.enquiry .btn { justify-self: start; }
.enquiry .note { margin: 0; }

/* which file is which, in the downloads */
.files { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); border-top: 1px solid var(--rule); max-width: var(--measure); }
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.files .mono { color: var(--ink); overflow-wrap: anywhere; }
.files .what { font-size: 15px; color: var(--ink-3); }
/* after a purchase, js/downloads.js lists the buyer's own files, each with its link */
.bought-files li { flex-wrap: nowrap; align-items: center; }
.bought-files .file { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bought-files .btn { flex: none; }

/* ---------- the Google Analytics question (js/analytics.js): the deep band, pinned to the bottom.
   Both answers carry the same weight. ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--dark); color: var(--on-dark-2);
  border-top: 1px solid color-mix(in srgb, var(--on-field) 14%, transparent);
}
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding-top: var(--s4); padding-bottom: var(--s4); }
.consent p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 72ch; }
.consent a { color: var(--on-dark); text-decoration-color: color-mix(in srgb, var(--on-dark) 50%, transparent); }
.consent a:hover { text-decoration-color: var(--on-dark); }
.consent .btn { background: var(--on-field); color: var(--field-deep); border-color: var(--on-field); }
.consent .btn:hover { background: color-mix(in srgb, var(--on-field) 86%, var(--field)); border-color: color-mix(in srgb, var(--on-field) 86%, var(--field)); }
.consent :focus-visible { outline-color: var(--on-dark); }
.consent ::selection { background: var(--on-dark); color: var(--dark); }
/* "Cookie settings" in the footer, shown only when js/analytics.js runs */
.site-footer .foot-link {
  font: inherit; color: var(--on-dark); background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.site-footer .foot-link:hover { text-decoration-thickness: 2px; }
