/* The utility pages: /download /setup /budget /stops /read /partners /404, the
 * legal three and /settings.
 *
 * Not marketing: nobody is being sold here, they are installing something,
 * checking what they agreed to, or using a free tool. Quiet, fast, honest.
 *
 * The look is the design sheets' (owner's ruling, 23 Sept 2026,
 * research/sheets-win.md). /setup is the Web sheet's 10c card ("the eight
 * minutes after", with its untrue words replaced by the page's true ones),
 * /download's card is screen 12's "Download and setup" card, and the pages the
 * sheets never drew are built from System 06's components at Web 11's reading
 * measure: a 40/600 title, headings at 20/600, prose at 18/1.65 in 720.
 *
 * The tokens, the faces and every component are site/kit.css's, linked first;
 * this sheet only arranges them and names what these pages add. The guides
 * do not link it: their tables wear the kit's .k-table-wrap under learn.css.
 * tools/the-site-paints-the-tokens-gate.mjs holds it to the sheets' sizes, weights, radii and shadows and to
 * no colour of its own, and there is no inline style anywhere on these pages
 * because the CSP forbids them outright. */

img, svg { max-width: 100%; }

/* ---- The head: Web 11's title, kicker and standfirst ----------------------
 * The shell draws the kicker, the h1 and the meta line; on these pages they
 * are set as a guide's are: kicker 15 in ink.secondary, title 40/600, the meta as the
 * standfirst. /kit wears the same head, and takes the same sizes. */
.head > .k-label { font-size: 17px; font-weight: 600; }
.head > .k-title { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.head-meta { font-size: 19px; line-height: 1.5; }

/* A section: its heading at 20/600, the number in Plex before it. */
.block { margin: 56px 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 var(--s3);
  font: 600 20px/1.3 var(--ui); letter-spacing: -0.015em; color: var(--ink-primary); }
.sec-num { font: 400 14px/1.3 var(--figures); color: var(--ink-secondary); letter-spacing: 0; }
.ways { list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px; }

/* A path a person is told to follow: the words on somebody's screen, in a
 * small sunk plate, and it wraps. It did not once: "Menu bar item → Settings →
 * Connections → sign in" was 372px of nowrap inside a 290px step column, and
 * /setup pushed the whole page 74px wider than the phone it was on. They are
 * words, so they are set in the sans; a line in a file is code, so that one is
 * Plex. `anywhere` because a path with no spaces must wrap too;
 * `box-decoration-break` keeps the plate's padding on every line. */
.path { font-weight: 500; color: var(--ink-primary); background: var(--fill-weekColumn);
  border: 1px solid var(--line-hairline); border-radius: var(--r-row); padding: 0 5px;
  overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.path[data-from="file"] { font-family: var(--figures); font-weight: 400; font-size: 15px; }

/* ---- Numbered legal sections ----------------------------------------------
 * The number is how anybody refers to a clause, so it stays in front of the
 * title in Plex, and the contents list above counts the same. */
.clause { margin: var(--s4) 0 0; }
.clause-head { display: grid; grid-template-columns: 36px 1fr; margin: 0 0 12px;
  font: 600 20px/1.3 var(--ui); letter-spacing: -0.015em; color: var(--ink-primary); }
.clause-num { font: 400 14px/2 var(--figures); color: var(--ink-secondary); letter-spacing: 0; }
.clause-contents { margin: 28px 0 var(--s4); max-width: var(--measure); }

/* ---- An instruction step (10c's step card, as rows) -----------------------
 * A white card; each step a row under a hairline, its numeral in the 22px
 * neutral ring, its head 17/600. Every one ends with how you know it worked:
 * a step you cannot verify is not a step. */
.steps { list-style: none; margin: 0; padding: 4px 22px; background: var(--fill-raised);
  border: 0; border-radius: var(--r-group); box-shadow: var(--shadow-raised); }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 14px;
  padding: 20px 0; border-top: 1px solid var(--line-row); }
.step:first-child { border-top: 0; }
.step-main { min-width: 0; }
.step-num { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--line-chrome); border-radius: 50%;
  font: 400 13px/1 var(--figures); color: var(--ink-secondary); }
.step-title { margin: 0 0 6px; font: 600 17px/1.4 var(--ui); letter-spacing: -0.01em; color: var(--ink-primary); }
.step-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-primary); }
.step-body + .step-body { margin-top: var(--s2); }
/* A step's several actions, one a line (the API boxes). The same face as a
 * body; the bullet is the kit's. */
.step-list { list-style: disc; margin: var(--s2) 0 0; padding: 0 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink-primary); }
.step-list li + li { margin-top: 4px; }
.step-list + .step-body { margin-top: var(--s2); }
/* A warning is an outline, never a fill. */
.step-warn { margin: 12px 0 0; padding: 10px 14px; font-size: 15px; line-height: 1.5; color: var(--ink-secondary);
  border: 1px solid var(--attention); border-radius: var(--r-row); }
.step-done { margin: 12px 0 0; padding: 10px 14px; font-size: 15px; line-height: 1.5; color: var(--ink-primary);
  background: var(--fill-weekColumn); border-radius: var(--r-row); }
.step-done-label { display: block; margin: 0 0 2px; font: 500 13px/1.3 var(--ui); color: var(--ink-secondary); }
.steps-after-figure { margin-top: var(--s3); }

/* ---- /setup: the 10c card ------------------------------------------------
 * A white card on the canvas, padding 36: a pill, the heading at 30/600, the
 * lede in ink.secondary, the four places as sunk step cards with the neutral ring,
 * and the foot strip on the canvas. No minutes: nobody has timed a step. */
.after { display: grid; gap: 24px; padding: 36px; background: var(--fill-raised);
  border: 0; border-radius: var(--r-group); box-shadow: var(--shadow-panel); }
.after > * { margin: 0; }
.after-lede { max-width: var(--measure); margin-top: -10px; }
.after-lede p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--ink-secondary); }
.after-lede p:last-child { margin: 0; }

.route ol { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.route a { display: grid; align-content: start; gap: var(--s2); height: 100%; padding: 20px;
  background: var(--fill-weekColumn); border: 1px solid var(--line-hairline); border-radius: var(--r-group);
  color: var(--ink-primary); text-decoration: none; transition: background-color var(--t-state); }
.route a:hover { background: var(--fill-neutralChip); }
.route-head { display: flex; align-items: flex-start; gap: var(--s2); min-width: 0; }
.route-num { display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; margin-top: 1px;
  width: 22px; height: 22px; border: 2px solid var(--line-chrome); border-radius: 50%;
  font: 400 13px/1 var(--figures); color: var(--ink-secondary); }
.route-title { font: 600 17px/1.3 var(--ui); letter-spacing: -0.01em; color: var(--ink-primary); }
.route-where { font: 500 14px/1.3 var(--ui); color: var(--ink-secondary); }
.route-steps { font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }
.route-asks { font-size: 15px; line-height: 1.45; color: var(--ink-secondary); }

.after-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3);
  padding: 18px 20px; background: var(--fill-page); border-radius: var(--r-group); }
.after-foot dt { margin: 0; font: 600 16px/1.5 var(--ui); color: var(--ink-primary); }
.after-foot dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }

/* The places, one stage each: its name held to the left of its steps on a wide
 * screen. */
.stage { margin: 56px 0 0; }
.stage-where { display: flex; align-items: baseline; gap: 12px; margin: 0;
  font: 500 14px/1.3 var(--ui); color: var(--ink-secondary); }
.stage-title { margin: var(--s2) 0 0; font: 600 22px/1.25 var(--ui); letter-spacing: -0.015em; color: var(--ink-primary); }
.stage-asks { margin: 12px 0 var(--s3); font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }
.stage-asks-label { display: block; font: 500 13px/1.3 var(--ui); color: var(--ink-secondary); margin: 0 0 2px; }
.stage-main { min-width: 0; }
.stage-lede { margin: 0 0 var(--s3); font-size: 18px; line-height: 1.65; color: var(--ink-primary); }
/* One column: a stage with no "It asks" line has only its title above the
 * steps, so the title keeps the air the asks line would have given it. */
@media (max-width: 999px) {
  .stage-side > .stage-title:last-child { margin-bottom: var(--s3); }
}
@media (min-width: 1000px) {
  .stage { display: grid; grid-template-columns: 260px minmax(0, 820px); gap: 0 var(--s4); }
  .stage-side { position: sticky; top: var(--s3); align-self: start; padding-top: 18px; }
}

/* The picture of the enforcement card, inside a dark .k-figure. Readiness is a
 * square plus words, and the words carry it: a verdict mark never stands in
 * for a readiness check, and the square is ink rather than enforcement ink,
 * which rulings.md R2 keeps for the lock plate, the brand mark and a live exit
 * key. Inside a dark figure the two are a shade apart, so this is a rule about
 * what the colour is allowed to mean, not about what it looks like here. */
.setup-figure { margin: var(--s3) 0 0; }
.fig-card { background: var(--fill-raised); border-radius: var(--r-row);
  padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.fig-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s1) var(--s2); margin: 0; }
.fig-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-primary); }
.fig-state::before, .fig-ok { content: ""; display: inline-block; flex-shrink: 0;
  width: var(--mark); height: var(--mark); background: var(--ink-primary); }
.fig-say { font-size: 15px; color: var(--ink-secondary); margin: var(--s2) 0 12px; }
.fig-checks { list-style: none; margin: 0; padding: 0; }
.fig-checks li { display: grid; grid-template-columns: var(--mark) 160px minmax(0, 1fr);
  align-items: center; gap: 0 12px; min-height: var(--h-row); border-top: 1px solid var(--line-hairline); }
.fig-name { color: var(--ink-primary); font-weight: 500; }
.fig-detail { color: var(--ink-secondary); overflow-wrap: anywhere; }

/* ---- /download: screen 12's "Download and setup" card ----------------------
 * Key and value rows with no rules between them, the figures in Plex; the
 * download's words; the one primary; today's known issues under a hairline. */
/* Web 12's download card: white, no outline, lifted like the others. */
.dl-card { display: grid; gap: 14px; padding: 22px; border: 0; box-shadow: var(--shadow-raised); }
.dl-card > * { margin: 0; }
.dl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 12px; font-size: 16px; color: var(--ink-primary); }
.dl-key { color: var(--ink-secondary); }
.dl-say { font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.dl-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dl-status { padding: 14px 0 0; border-top: 1px solid var(--line-row); }
.dl-status-line { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-primary); }
.dl-status-list { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--ink-primary); }
.dl-status-list[hidden] { display: none; }
/* The line a free tool ends on: the other two and the feed, in the small ink. */
.also-free { margin: var(--s3) 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.also-free a { color: var(--ink-secondary); }
.also-free a:hover { color: var(--ink-primary); }

/* ---- /budget and /read: fields and answers --------------------------------
 * The fields are System 06's: 38px, inset, the accent's ring on focus, a
 * figure right-aligned in Plex. The answers are cards, each a label, the
 * figure in Plex, and a sentence about it. Before the script has run, every
 * answer says so in words, and a named empty is drawn as words (`data-empty`),
 * never in the figures' face. */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s3); margin: 0 0 var(--s4); align-items: start; }
.calc-in { display: grid; gap: 22px; align-content: start; padding: 22px; }
.field-row { display: flex; align-items: center; gap: var(--s2); }
/* A figure field draws no stepper arrows: the sheet's field is a plain inset
 * box, and the arrows were the platform's paint, not the kit's. */
.calc input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.calc input[type="number"]::-webkit-inner-spin-button,
.calc input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field-unit { font: 400 15px/1 var(--figures); color: var(--ink-secondary); }
.calc-out { display: grid; gap: 16px; align-content: start; }
.calc-out-wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.out { display: grid; gap: 6px; }
.out > * { margin: 0; }
.out-value { font: 400 22px/1.3 var(--figures); color: var(--ink-primary); overflow-wrap: anywhere; }
.out-value[data-empty] { font: 500 17px/1.3 var(--ui); color: var(--ink-secondary); }

/* A list of what a page does not know: the sheet's list card, rows under
 * hairlines. */
.limits { list-style: none; margin: 0; padding: 6px 20px; font-size: 16px; line-height: 1.6;
  background: var(--fill-raised); border: 0; border-radius: var(--r-group);
  box-shadow: var(--shadow-raised); }
.limits li { padding: 14px 0; border-top: 1px solid var(--line-row); }
.limits li:first-child { border-top: 0; }

/* ---- /settings: everything you can set ------------------------------------
 * Generated from the app's own spec, so the page's job is to stay readable at
 * six panes and twenty-nine pages. The sheet's row list: rows under hairlines
 * in a white card; the keys as System 06 draws an exit key; a pane is a fold,
 * as a guide's questions are, with its sign at the right. */
.set-list { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.set-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2);
  padding: 12px 0; border-top: 1px solid var(--line-row); }
.set-list li:first-child { border-top: 0; }
.set-list-wide { padding: 6px 20px; background: var(--fill-raised); border: 0;
  border-radius: var(--r-group); box-shadow: var(--shadow-raised); }
.set-list-wide li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px var(--s3); padding: 14px 0; }
.set-name { font-weight: 600; color: var(--ink-primary); }
.set-note { color: var(--ink-secondary); }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: var(--s3) 0 0; }
.key { display: grid; align-content: start; gap: 14px; padding: 20px; background: var(--fill-raised);
  border: 0; border-radius: var(--r-group); box-shadow: var(--shadow-raised); }
.key > * { margin: 0; }
/* The key's name on its face, as System 06 draws PROTECT and FLATTEN. */
.key-name { margin: 0; }
.key-one { font-size: 16px; line-height: 1.5; color: var(--ink-primary); }
.key .set-list { font-size: 15px; color: var(--ink-secondary); }
.key .set-list li { padding: var(--s2) 0; }

.folds { margin: var(--s3) 0 0; padding: 4px 20px; background: var(--fill-weekColumn);
  border: 1px solid var(--line-hairline); border-radius: var(--r-group); }
.fold { border-top: 1px solid var(--line-hairline); }
.fold:first-child { border-top: 0; }
.fold-head { display: flex; align-items: baseline; gap: 0 var(--s2); padding: 16px 0;
  min-height: var(--tap); cursor: pointer; list-style: none; }
.fold-head::-webkit-details-marker { display: none; }
.fold-head::after { content: "+"; margin-left: 12px; font: 400 17px/1 var(--figures); color: var(--ink-secondary); }
.fold[open] > .fold-head::after { content: "−"; }
.fold-name { flex: 1; font: 500 17px/1.4 var(--ui); color: var(--ink-primary); }
.fold-count { font: 500 14px/1.4 var(--ui); color: var(--ink-secondary); white-space: nowrap; }
.fold-blurb { font-size: 16px; line-height: 1.5; color: var(--ink-secondary); margin: 0 0 var(--s2); max-width: var(--measure); }
.fold > .set-list { margin: 0 0 14px; padding: 4px 16px; background: var(--fill-raised);
  border: 1px solid var(--line-hairline); border-radius: var(--r-row); font-size: 15px; }
.fold > .set-list li { padding: var(--s2) 0; }

/* ---- /stops: the exit matrix ---------------------------------------------
 * Every cell says where it came from, so the tag is not decoration: it is the
 * difference between a documented behaviour, a thing traders report, and a
 * thing nobody has tested. They differ by their words first and their line
 * second (solid ink, the attention outline, dashed), because a reader who
 * cannot tell them apart will trade on the weakest one. Wide content scrolls
 * inside its own box; the page never scrolls sideways. */
.legend { display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s2) var(--s3); align-items: baseline; margin: 0 0 var(--s3); }
.legend > div { display: contents; }
.legend dt, .legend dd { margin: 0; }
.legend dd { font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }
.matrix-wrap { overflow-x: auto; margin: 0 0 18px; background: var(--fill-raised);
  border: 0; border-radius: var(--r-group); box-shadow: var(--shadow-raised); }
.matrix { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 1.6; }
.matrix th, .matrix td { text-align: left; padding: 14px; vertical-align: top;
  border-bottom: 1px solid var(--line-row); }
.matrix th { font: 500 13px/1.3 var(--ui); color: var(--ink-secondary); background: var(--fill-weekColumn);
  border-bottom-color: var(--line-hairline); }
.matrix td { color: var(--ink-primary); }
.matrix td:first-child { width: 22%; font-weight: 600; }
.matrix tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; margin: 0 6px 6px 0;
  font: 500 13px/1.2 var(--ui); white-space: nowrap; background: var(--fill-raised);
  border: 1px solid currentColor; border-radius: var(--r-pill); vertical-align: 1px; }
.tag-doc { color: var(--ink-primary); }
.tag-rep { color: var(--attention); }
.tag-unk { color: var(--ink-secondary); border-style: dashed; }

/* ---- /read: the stop reader ----------------------------------------------
 * The file is opened in the page and goes nowhere, which the page says in
 * words. The drop zone is a real target rather than a decorated button: a
 * person with an export in a Finder window should be able to throw it at the
 * screen without reading anything first. */
.drop { padding: var(--s4) var(--s3); margin: 0 0 var(--s3); text-align: center;
  background: var(--fill-weekColumn); border: 1px dashed var(--ink-tertiary); border-radius: var(--r-group);
  transition: background-color var(--t-state); }
/* A file held over the drop: its edge in ink. The accent is the primary and focus only. */
.drop[data-over] { border-color: var(--ink-primary); background: var(--fill-raised); }
.drop-title { margin: 0; font: 600 19px/1.3 var(--ui); letter-spacing: -0.015em; color: var(--ink-primary); }
.drop-note { margin: var(--s2) auto 0; max-width: var(--measure); font-size: 16px;
  line-height: 1.6; color: var(--ink-secondary); }
.drop-pick { color: var(--ink-primary); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--line-chrome); text-underline-offset: 3px; cursor: pointer; }
.drop-pick:hover { text-decoration-color: var(--ink-primary); }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0;
  pointer-events: none; font: inherit; }
/* A file this page cannot read says which file it wanted, because "nothing
 * happened" is the worst answer a drop zone can give. An outline, never a fill. */
.trouble { padding: 14px 16px; margin: 0 0 var(--s3); background: var(--fill-raised);
  border: 1px solid var(--attention); border-radius: var(--r-row); }
.trouble-why { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-primary); }
.result { margin: 0 0 var(--s4); }
.result-from { margin: 0 0 12px; font-size: 16px; color: var(--ink-secondary); }
.result-from strong { color: var(--ink-primary); font-weight: 600; }

/* ---- Phones: the Web sheet's 390 rules ------------------------------------
 * One column, an 18px side (the kit's), every target a thumb meets at 44px. */
@media (max-width: 720px) {
  .head-meta { font-size: 17px; }
  .block, .stage { margin-top: var(--s4); }
  .after { padding: 22px 18px; gap: 20px; }
  .after-foot { grid-template-columns: 1fr; gap: 14px; }
  .steps { padding: 0 16px; }
  .step { gap: 0 12px; padding: 18px 0; }
  .dl-card { padding: 20px 18px; }
  .dl-actions .k-btn { flex: 1 1 auto; }
  .calc-in { padding: 20px 18px; }
  .drop { padding: 28px 18px; }
  .drop-pick { display: inline-flex; align-items: center; min-height: var(--tap); }
  /* A line of a contents list is a target of its own, so it is one a thumb can
     hit; a link inside a sentence is not, and is left alone. */
  .clause-contents a { display: flex; align-items: center; min-height: var(--tap); }
  .clause-head { grid-template-columns: 32px 1fr; font-size: 19px; }
  .legend { grid-template-columns: 1fr; gap: 0; }
  .legend dd { margin-bottom: 12px; }
  .set-list-wide li { grid-template-columns: 1fr; }
  .folds { padding: 0 16px; }
  .fig-checks li { grid-template-columns: var(--mark) minmax(0, 1fr); padding: 6px 0; }
  .fig-checks .fig-detail { grid-column: 2; }
}
