/* ===========================================================================
   The Kybernesis brand faces, embedded.

   Source Serif 4, Space Mono and JetBrains Mono — the same three faces as
   kybernesis.ai, taken from Google Fonts (latin subset) 1 Sep 2026. It is inlined as base64 rather than linked, for three reasons:
   this package is opened by double-clicking a file, so there is no server to
   fetch from; a CEO may well open it on a plane; and a webfont that silently
   falls back changes the design without telling anybody. Four weights, 74KB,
   latin subset only.
   ========================================================================= */
/* The three @font-face blocks that used to sit here (74KB of base64) were removed
   2 Sep 2026 when the tool moved onto kybernesis.ai: index.html now loads the same
   Google Fonts bundle as the rest of the site. */




/* ===========================================================================
   NDIS CEO Intelligence Report — stylesheet
   Rebuilt 2026-08-07 to match the markup app.js actually emits.

   The previous stylesheet had drifted: it styled a table-based cost table, a
   .button.primary the app never emitted, .shell/.suggestions classes the app
   had renamed, and carried a second minified block appended at the end. Whole
   components were falling back to browser defaults.

   Order below follows the user's path: shell -> forms -> screens -> report.
   =========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* ── The palette ────────────────────────────────────────────────────────
     Ported 12 Aug from the texas-poker-site reskin token set. The token NAMES
     are unchanged from the previous riso/teal system, deliberately: 1,600 lines
     of rules reference them, and remapping the values reaches all of it without
     touching each rule. Where a name no longer describes its value the comment
     says what it actually is now.

     Light only. There is no dark mode here and no `prefers-color-scheme` rule —
     the base is light-committed and the tool follows it. */

  --ink: #1a1814;            /* poker `ink.DEFAULT` */
  --ink-soft: #5c574e;       /* poker `ink.soft` */
  /* poker `ink.faded` is var(--muted), which measures 2.81:1 on the cream ground —
     below AA for the 13px help text this token is used for. Darkened to the
     nearest value that passes: 4.60:1 on cream, 4.96:1 on white. */
  --muted: #6e6860;

  /* A brand hue used as TEXT on a light ground and the same hue used as a FILLED
     surface behind white text cannot be one token. Sharing them is what put
     white-on-blue at 1.93:1 when this was first tried. So:
       --brand-dark  primary.900 · gradient dark end, and deep text   7.89:1 white
       --brand       primary.700 · fills, borders, links, eyebrows    4.78:1 white
       --brand-mid   the bright accent · borders and focus rings ONLY, never text */
  --brand-dark: #8f3d13;
  --brand: #a8481a;
  --brand-mid: #20b2c4;
  --brand-soft: #f6e4d9;     /* poker `blue-tint` */
  /* --brand on --brand-soft is 4.26:1 — AA only for large text, and a 12px bold
     pill is not large. One stop darker for pill text specifically: 4.90:1. The
     other three pills already pass, because their deeps were darkened when they
     were brought over. */
  --brand-pill: #8f3d13;

  /* poker `yellow` — the accent is now warm rather than terracotta */
  --accent: #7d5800;
  --accent-soft: #f6ecd2;

  --surface: #f6f2e9;
  --surface-alt: #efe9dc;    /* poker `bg.cream` — the ground everything sits on */
  --line: #d9d2c4;           /* poker `rule` */
  --line-soft: #e5dfd2;      /* poker `rule-light` */

  /* Semantic. Each is the poker hue darkened to pass 4.5:1 on its own tint,
     because in this tool they label state — counted, open, refused — rather than
     decorating a card. A 12px bold pill is not large text. */
  --good: #0d6b4d;           /* on --good-soft: 4.51:1 */
  --good-soft: #dff0e4;
  --warn: #7d5800;           /* on --accent-soft: 4.59:1 */
  --danger: #b03a37;         /* on --danger-soft: 4.99:1 */
  --danger-soft: #f8e3de;

  --card-line: rgba(26, 24, 20, .16);
  --card-line-hover: rgba(26, 24, 20, .32);

  --shadow-sm: none;
  --shadow-md: 0 1px 0 rgba(26, 24, 20, .07);
  --shadow-lg: 0 2px 0 rgba(26, 24, 20, .06);

  --radius-lg: 0;
  --radius: 0;            /* poker card radius */
  --radius-sm: 0;         /* poker control radius */

  --measure: 68ch;
  --content-pad: 46px;       /* the gutter either side of the page measure */
  --measure-page: 1180px;    /* the widest the content ever gets */
  /* ── Reskinned to the Kybernesis riso/botanical system, 1 Sep 2026 ────────
     Values remapped, names untouched — this stylesheet was built for exactly
     this. Every pair below was measured, not eyeballed:
       --ink        on cream  14.65:1     --ink-soft   on cream  5.93:1
       --muted      on cream   4.55:1     --brand      on cream  4.81:1
       white on --brand        5.82:1     --brand-dark on cream  6.10:1
       --brand-pill on soft    5.98:1     --danger     on soft   4.86:1
       --good       on soft    5.49:1     --warn       on soft   5.46:1
     The house orange is #c2551d, which measures 3.76:1 on cream and so fails
     AA as text. --brand is one stop darker and passes both as text and as a
     fill under white; #c2551d is kept for large display type only.
     --brand-mid is the misregistration cyan: borders and focus rings ONLY,
     never text — it measures 2.11:1. */
  --display-orange: #c2551d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { min-height: 100%; background: var(--surface-alt); -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  /* Flat cream. The two radial washes and the diagonal gradient belonged to the
     riso look; on the new base the ground is one colour and the separation comes
     from the bands sitting on it. */
  background: var(--surface-alt);
  font-family: var(--serif);
  /* 15px, not 16. The design base is drawn on a 15px body and every step above it
     was set against that — on a 16px base the whole scale drifts up by 7% and the
     headings, which carry most of the look, land in the wrong place. */
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-underline-offset: 2px; }

:focus-visible {
  outline: 3px solid rgba(45, 133, 132, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* The two blurred ambient blobs are gone with the washes they sat in. The nodes
   stay in index.html — harmless, and removing them would mean touching the markup
   for nothing — but they no longer paint. */
.ambient { display: none; }

/* Full width. The old layout floated a rounded card in the middle of the page,
   which is why Tom saw "a second background border": the shell was white, the
   content inside it was cream, and the shell's own edge showed as a ring around
   the cream. Bands cannot run edge to edge inside a frame — the design either has
   the frame or the bands, and the bands are the part worth keeping. */
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* --- 2. Typography ------------------------------------------------------ */

h1, h2, h3, h4, p, ul, ol, blockquote { margin-top: 0; }

/* 48 / 34 / 20, the three steps the design base uses, with its tracking. The
   clamps these replace were computed off a 16px root and topped out at 49.6px with
   -1.74px of tracking — close enough to look intentional and far enough to look
   wrong beside the mockup. Still fluid, but anchored to the right values. */
h1 {
  max-width: 26ch;
  margin-bottom: 1rem;
  font-size: clamp(32px, 1.6rem + 2.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
h2 {
  margin-bottom: .6rem;
  font-size: clamp(24px, 1.2rem + 1.1vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
h3 { margin-bottom: .4rem; font-size: 20px; letter-spacing: -.02em; font-weight: 800; }
h4 { margin-bottom: .3rem; font-size: 16px; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── The eyebrow is a pill ────────────────────────────────────────────────
   The signature device of the design base, and in this tool it earns its keep by
   carrying state rather than decorating: blue is neutral or where you are, green
   is counted or answered, amber is a figure worth a second look, red is refused.

   inline-block, so it sizes to its text and can be dropped anywhere a label is
   needed. Each variant is a tint ground with its own deep text, every pair
   measured at 4.5:1 or better — these are labels a reader has to be able to
   read, not chrome. */
.eyebrow {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.eyebrow-good { background: var(--good-soft); color: var(--good); }
.eyebrow-warn { background: var(--accent-soft); color: var(--warn); }
.eyebrow-alert { background: var(--danger-soft); color: var(--danger); }

/* Two places the pill would be wrong: inside the brand lockup, where it is a
   two-line label rather than a tag, and in the progress meta, which is a status
   line and not a badge. */
.brand .eyebrow,
.progress-meta .eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  letter-spacing: .13em;
}
.lead { max-width: var(--measure); color: var(--ink-soft); font-size: 18px; line-height: 1.5; }
.field-help { max-width: var(--measure); margin: .3rem 0 .9rem; color: var(--muted); font-size: 15px; line-height: 1.55; }
.source-note { max-width: var(--measure); color: var(--muted); font-size: 14px; line-height: 1.6; }

/* --- 3. Shell, topbar, progress, footer --------------------------------- */

/* No frame, no radius, no shadow. The page is the document. */
.shell {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Sticky and full-bleed, with the inner content held to the same measure as
   everything else so the brand lines up with the copy below it. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(var(--content-pad), calc((100% - var(--measure-page)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand .eyebrow { font-size: 11px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: #fff;
  /* brand-dark to brand, not brand to brand-mid: white on brand-mid is 2.72:1. */
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow-md);
  font-weight: 800;
}

/* Same inset as everything else, so the rail starts and ends where the copy does. */
.progress-wrap {
  padding: 16px max(var(--content-pad), calc((100% - var(--measure-page)) / 2)) 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.progress { height: 6px; overflow: hidden; border-radius: 99px; background: var(--line-soft); }
.progress > span {
  display: block; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  transition: width .3s ease;
}

/* Cream, so the white cards and the white report bands read as objects on a page
   rather than as areas of the same sheet. */
/* No horizontal padding here. A band has to reach the window edge, and it cannot
   do that from inside a padded parent without a negative-margin trick that then
   has to be kept in step with the padding at every breakpoint.

   So .content is full width, and every block inside it insets itself with the
   same expression: at least the gutter, and more than that once the window is
   wider than the measure. One pattern, used by the topbar, the progress rail, the
   questionnaire screens and the report bands, all reading the same two tokens. */
.content { padding: 0 0 0; background: var(--surface-alt); }

/* The shared inset. `100%` here is the element's own width, which is the window,
   so this centres a block of --measure-page and keeps --content-pad either side
   below that. */
/* Bands: full width, content inset. */
.page-inset,
.content > section,
.report-section {
  padding-inline: max(var(--content-pad), calc((100% - var(--measure-page)) / 2));
}

/* Cards: inset by their own width, because they carry a background and a radius.
   Giving these the band treatment made the hero span the window and lose its
   corners — a card has to stop before the edge, not push its text in from it. */
/* No child combinator. The rate panel and the KPI row live inside #report-body —
   the node the rate slider rebuilds — not directly under .report, so `.report > `
   matched neither and the KPI tiles ran to the window edge.

   Every component rule for these five uses `margin-block`, never the `margin`
   shorthand. The shorthand resets margin-inline to 0 and silently undoes the
   centring set here — the SEVENTH time shorthand-after-longhand has bitten in this
   stylesheet. If you add a margin to any of them, use the longhand. */
.report-hero,
.team-banner,
.report-rate,
.kpi-grid,
.report-footer {
  max-width: min(var(--measure-page), calc(100% - var(--content-pad) * 2));
  margin-inline: auto;
}

/* Its own rule. This was written into the comma list above by mistake — both
   blocks ended in the same two declarations, so the edit that meant to rewrite the
   footer rewrote the shared one instead, and the hero, the banner, the rate panel
   and the KPI row all silently became flex rows with a top border and 44px of
   bottom padding. Nothing in the layout looked broken enough to point at it, which
   is why it survived three rounds of "still not right". */
.report-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-block: 0;
  padding-block: 30px 44px;
  border-top: 1px solid var(--line);
}

/* Questionnaire screens sit on the cream ground with air above and below. */
.content > section { padding-block: 56px 48px; }
/* A left-aligned cap, not a centred column. `margin: 0 auto` centred a 780px box
   inside a page that is already inset to the measure — two levels of centring, so
   the copy floated in the middle of the window with 200px of cream either side of
   it and nothing lining up with the brand in the topbar.

   The design base has no inner column: everything sits at the page inset and each
   element caps its own measure — the headline at 22ch, the lead at 68ch. This just
   stops a single-column form running the full 1180. */
/* Neutralised. `.narrow` is applied to the same element as the page inset — the
   screens are `<section class="hero narrow">` — so a max-width on it capped the
   whole box including the padding, and the inset ate 220px out of the cap. Two
   jobs on one element, fighting.

   The design base has no inner column: one page measure, and each element caps its
   own line length — the headline at 26ch, the lead and the help text at 68ch. Cards
   fill the column, as they do in the report. The class is left in place because it
   is on five screens' markup and removing it would be a change for nothing. */
.narrow { width: 100%; }

.footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 46px 26px;
  border-top: 1px solid var(--line);
  background: rgba(249, 251, 250, .94);
}

/* --- 4. Buttons --------------------------------------------------------- */

.button {
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.button.primary {
  color: #fff;
  /* brand-dark to brand. White on --brand-mid is 2.72:1, so the bright end of the
     palette cannot sit under white text however good it looks. */
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 0 0 0 rgba(32, 178, 196, .15);
  transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}
.button.primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(32, 178, 196, .15); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.button.secondary:hover { border-color: var(--card-line-hover); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }

.text-button {
  padding: .3rem .1rem;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover { color: var(--brand-dark); }
.text-button.danger { color: var(--danger); }

.icon-actions { display: flex; gap: 8px; align-items: flex-start; }
.icon-button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.icon-button:hover { color: var(--ink); border-color: var(--card-line-hover); }
.icon-button.danger:hover { color: var(--danger); border-color: rgba(176, 58, 55, .4); background: var(--danger-soft); }

.inline-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 28px; }

/* --- 5. Form controls --------------------------------------------------- */

.field { margin: 0 0 1.35rem; }
.field-label { display: block; margin-bottom: .4rem; font-weight: 700; }

/* Matches every text-like input, including one that forgot its type attribute.
   Range, checkbox and radio are excluded and styled separately.

   Written with :where() on purpose. The previous version chained five :not()
   attribute selectors, and every :not() carries the specificity of its argument
   — so this rule scored 0,5,1 and quietly beat any sensible override. A later
   rule setting a narrow width on a number field lost to it, which is how the
   lead's "how many people" box ended up full-width with its unit label pushed
   outside the card.

   :where() contributes nothing to specificity, so this is now 0,0,1 — a plain
   element rule that anything with a class can override. Fifth cascade collision
   in this file; the first four were shorthand-after-longhand. If you add a rule
   here, check what it scores. */
input:where([type="text"], [type="email"], [type="tel"], [type="url"], [type="search"], [type="number"], [type="password"], [type="date"], :not([type])),
select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px rgba(45, 133, 132, .13);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 96px; resize: vertical; }

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c574e' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* fieldset needs resetting before it can be used as a plain field wrapper. */
.checkbox-field { min-width: 0; margin: 0 0 1.35rem; padding: 0; border: 0; }
.checkbox-field > .field-label { padding: 0; }

.optional {
  margin-left: .4rem;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
}

/* One number governs the vertical rhythm of every form. The row gap was 0, so each
   block's spacing came from whatever margin it happened to carry — measured across
   the task form the gaps ran 0, 5, 14, 18, 26 and 28px, and the two checkbox groups
   touched. Direct children have their block margins zeroed so the gap is the only
   thing setting the rhythm; nothing has to be kept in step with anything. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.form-grid > * { margin-block: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Radio / checkbox cards */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 62px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .14s, background .14s, transform .14s;
}
.choice:hover { border-color: var(--brand-mid); transform: translateY(-1px); }
.choice.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(26, 24, 20, .1); }
.choice input { margin-top: 4px; accent-color: var(--brand); flex: none; }
.choice-copy strong { display: block; font-weight: 600; line-height: 1.4; }
.choice-copy small { display: block; margin-top: .2rem; color: var(--muted); line-height: 1.4; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: .6rem 0 0;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input { margin-top: 4px; accent-color: var(--brand); }

/* --- 6. Cards, notices, errors ------------------------------------------ */

.section-card {
  margin: 1.25rem 0;
  padding: 28px 26px;
  /* The base uses a hairline at 6% ink rather than a solid rule, and no shadow on
     a card sitting on cream — the ground does the separating. */
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: #fff;
}
.section-card.tint { background: var(--surface-alt); }

/* padding-block, not the `padding` shorthand. This rule comes after
   .section-card, so a shorthand here wiped out that card's 24px horizontal
   padding — on the readiness screen, where every question IS a section-card,
   that put the text hard against the border of all six boxes. Logical
   properties touch only the vertical axis and leave the card's own horizontal
   padding intact. */
/* 1.4rem read as cramped once the type went up to the 15px base and the labels
   went to 800 — the rule between two questions sat closer to each than the label
   sits to its own control. 2.2rem gives each question its own space. */
.question { padding-block: 2.2rem; border-bottom: 1px solid var(--line-soft); }
.question:first-child { padding-block-start: 0; }
.question:last-child { padding-block-end: 0; border-bottom: 0; }
/* A question that is its own card keeps that card's padding on every side. */
.section-card.question { padding-block: 22px; }
.question-number {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: 6px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.notice {
  margin: 1.2rem 0;
  padding: 14px 17px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  background: var(--accent-soft);
  line-height: 1.55;
}
.intro-note, .empty-state {
  margin-bottom: 1.3rem;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--surface-alt);
  line-height: 1.55;
}
.privacy-note {
  margin-top: 1.4rem;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.55;
}

.error {
  margin: 1rem 0;
  padding: 12px 15px;
  border: 1px solid rgba(176, 58, 55, .35);
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: var(--danger-soft);
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 99px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
}
.tag.orange { color: var(--warn); background: var(--accent-soft); }

/* --- 7. Landing --------------------------------------------------------- */

.hero { padding: 20px 0 8px; }
.org-field { margin-top: 1.8rem; position: relative; }
.org-input { padding: 17px 18px !important; font-size: 18px !important; }

.suggestions {
  display: grid;
  gap: 2px;
  max-height: 260px;
  margin-top: 6px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.suggestions[hidden] { display: none; }
.suggestion {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 15px;
}
.suggestion:hover { background: var(--brand-soft); }

/* The capability explainer on the landing screen. This exists because the audit
   measured 79% of everything the tool teaches about what an agent does arriving
   in the report — after the CEO has finished answering. A CEO whose mental model
   is a chat box answered the whole questionnaire with that model intact. This
   block is deliberately the first thing they read after the org field, and the
   chatbot contrast is deliberately its first sentence. */
.explainer-card {
  margin-top: 1.6rem;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}
/* Direct child only. A bare `.explainer-card strong` also matched the inline
   <strong>task</strong> in the footer sentence and rendered it as its own
   block, breaking one sentence across three lines. Same failure as the
   `.question` padding shorthand: a selector wider than the thing it styles. */
.explainer-card > strong { display: block; margin-bottom: .8rem; font-size: 16px; }
.explainer-card p { color: var(--ink-soft); line-height: 1.65; }
.explainer-lead { margin: 1rem 0 .6rem; font-weight: 600; color: var(--ink); }
.explainer-list { display: grid; gap: 10px; margin: 0; padding-left: 1.1rem; }
.explainer-list li { color: var(--ink-soft); line-height: 1.55; }
.explainer-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}
.explainer-foot .src { display: block; margin-top: .5rem; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* This block qualifies us, so it is a card rather than a footnote. Deliberately
   the darker treatment on the landing — it is the one place answering "who are
   these people" before the CEO commits eight minutes. Both partner networks run
   public directories, so the names are checkable; that is the point of naming
   the programmes rather than saying "official partner". */
.credentials-card {
  margin-top: 1.6rem;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  color: var(--line);
  background: linear-gradient(150deg, #1a1814, #22225d);
  box-shadow: var(--shadow-md);
}
.credentials-card .eyebrow { margin-bottom: .7rem; }   /* takes the pill treatment */
.credentials-card p { line-height: 1.65; }
.credentials-card p:last-child { margin-bottom: 0; }
.credentials-card strong { color: #fff; font-weight: 700; }
.credentials-lead { color: var(--surface-alt); font-size: 16px; line-height: 1.55; }

.promise-card {
  margin-top: 1.6rem;
  padding: 24px;
  border: 1px solid rgba(26, 24, 20, .18);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-alt), var(--brand-soft));
}
.promise-card > strong { display: block; margin-bottom: .8rem; font-size: 16px; }
.promise-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.promise-list li { position: relative; padding-left: 26px; color: var(--ink-soft); line-height: 1.5; }
.promise-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--good);
  font-weight: 800;
}

/* --- 8. The three-area pick ---------------------------------------------

   Replaced a ten-row rating table. Ten rows of four buttons was forty
   decisions and ~2,700px of screen; this is ten buttons and three decisions.

   The rank number is the whole affordance — it tells the CEO the order matters
   and shows what they have already chosen without a legend. */

.pick-counter {
  margin: 1.4rem 0 .9rem;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}
.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.pick {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--card-line-hover); }
.pick:focus-visible { outline: 3px solid rgba(45, 133, 132, .55); outline-offset: 2px; }
.pick.picked { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }

.pick-rank {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pick.picked .pick-rank { color: #fff; border-color: var(--brand); background: var(--brand); }

.pick-body strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.pick-body small { display: block; margin-top: .25rem; color: var(--muted); font-size: 14px; line-height: 1.45; }

.picked-notes { display: grid; gap: 10px; margin-top: 1.6rem; }

/* --- 8b. Insight cards, example chips, live math, refine panel ---------- */

/* The education layer. Deliberately quiet: it appears after an answer and must
   read as a note in the margin, not as an interruption. */
.insight-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}
.insight-flag {
  display: block;
  margin-bottom: .3rem;
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
/* The flag is amber; the sentence is ink. Everything in the same amber read as a
   block of one colour and lost the emphasis the flag is there to give — the old
   terracotta was closer in value to the ink, so remapping the hue exposed it. */
/* One card can hold several notes now, so the note is the unit that gets spacing
   and the divider — not the card. */
.insight-note + .insight-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 102, 0, .22);
}
.insight-card p { margin: 0 0 .3rem; color: var(--ink); font-size: 15px; line-height: 1.6; }
.insight-card small { display: block; color: var(--warn); font-size: 13px; font-style: italic; }

/* ── The example jobs ─────────────────────────────────────────────────────
   These are the fastest way through this screen, and they were styled as if they
   were footnotes: a dashed hairline on white, below two lines of instruction, in
   the same grey as the help text. Nothing about them said "press me".

   Now: a filled chip with a real border, an explicit affordance, and a selected
   state so it is clear which one was taken. The instruction moved above the field
   so the chips sit directly under the box they fill in. */
.examples-intro { margin-bottom: .5rem; }
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.example-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--card-line-hover);
  border-radius: 99px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* A leading "+" says it adds text to the box above, which is what it does. */
.example-chip::before {
  content: '+';
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.example-chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--shadow-md);
}
.example-chip:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(32, 178, 196, .18); }
/* Taken. The tick replaces the plus, so the row shows at a glance which one is in
   the box — and pressing another swaps it rather than leaving two looking chosen. */
.example-chip.chosen {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.example-chip.chosen::before { content: '✓'; }

.math-note {
  margin-bottom: 1.2rem;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.math-note strong { color: var(--ink); }
.math-note.warn { background: var(--accent-soft); color: var(--ink); }
.math-note.warn strong { color: var(--warn); }   /* the emphasis stays amber */
.math-warn { display: block; margin-top: .35rem; font-weight: 700; }

.task-more { margin-top: .4rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.task-more summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.task-more summary::marker { color: var(--brand); }
.task-more > .field-help { margin-top: .6rem; }

.refine { border-color: rgba(26, 24, 20, .28); background: linear-gradient(150deg, var(--surface-alt), var(--brand-soft)); }
.refine h2 { max-width: 32ch; }
.refine.done { border-color: rgba(37, 122, 92, .3); background: var(--surface-alt); }

/* --- 9. Task inventory -------------------------------------------------- */

.task-list { display: grid; gap: 12px; margin-bottom: 1.4rem; }
.task-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.task-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; }
.task-head .eyebrow { margin-bottom: .25rem; }
.task-head .field-help { margin-bottom: 0; }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: .9rem; }

.task-editor { border-top: 3px solid var(--brand-soft); }
.task-editor h3 { margin-bottom: .2rem; }

/* --- 10. Rate panel, cost table, clock ---------------------------------- */

.rate-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 26px;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.2rem;
}
.rate-value {
  padding: 20px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-dark), var(--brand));
  text-align: center;
  box-shadow: var(--shadow-md);
}
.rate-value strong { display: block; font-size: 27px; letter-spacing: -.03em; line-height: 1.1; }
.rate-value small { display: block; color: rgba(255, 255, 255, .72); font-size: 12px; }
.rate-value small:first-child { margin-bottom: .35rem; }

input[type="range"] {
  width: 100%;
  margin: .4rem 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  accent-color: var(--brand);
}
input[type="range"]:focus { box-shadow: none; }

.cost-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.cost-table th, .cost-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.cost-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.cost-table td small { display: block; color: var(--muted); font-size: 13px; }
.cost-table td:not(:first-child), .cost-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.cost-table tfoot th, .cost-table tfoot td {
  border-top: 2px solid var(--line);
  border-bottom: 0;
  font-weight: 800;
}

details.shift-note {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
details.shift-note summary { padding: 15px 18px; cursor: pointer; font-weight: 700; }
details.shift-note summary::marker { color: var(--brand); }
details.shift-note p { padding: 0 18px 16px; margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* --- 11. Report --------------------------------------------------------- */

/* ── Report bands ─────────────────────────────────────────────────────────
   "I like how each section is easily separated with the white/off white."

   The questionnaire screens are one white card on a cream page. The report is
   long and sectional, so it alternates instead: each top-level section breaks out
   of the content padding to sit edge to edge in the shell, and odd/even alternate
   cream and white. The separation is then the ground changing, with no rules or
   cards needed to draw it.

   Breaking out uses a negative inline margin equal to .content's padding, so the
   two stay in step through the media queries below — change --content-pad and the
   bands follow. */
.report { display: block; }
.report-hero { margin-block: 40px 0; }

/* Targeted on the CLASS, not on `section:nth-of-type`. The first attempt
   alternated odd/even across every section child, which is a 0,2,1 selector and
   therefore beat `.report-hero` at 0,1,0 — the hero lost its dark gradient and
   printed peach text on white. Alternation also cannot skip the specials, because
   :nth-of-type counts elements and not classes.

   So: every ordinary section is a white band, the page under them is cream, and
   the gap between them is where the cream shows. Same separation Tom picked out,
   no specificity fight, and the hero, the banner and the rate panel keep their
   own treatments because nothing here selects them. */
/* Full-bleed to the window, not just out of the gutter — the padding on .content
   is now half the window on a wide screen, so a fixed negative margin would not
   reach the edge. 50vw either side with the same padding back does it, and it
   holds at every width.

   Alternation is stamped in the markup (see alternateBands in app.js) rather than
   done with :nth-of-type, which counts elements and cannot skip the hero, the
   banner and the rate panel — and which at 0,2,1 outranked .report-hero and
   stripped its gradient the first time this was tried. */
/* 68px, against the base's 78. The mockup is a marketing page and can afford the
   full measure; a report the reader scrolls through end to end cannot, or the
   scroll doubles. This is the one number deliberately not matched. */
.report-section {
  padding-block: 68px;
  background: var(--surface);
}
.report-section-alt { background: var(--surface-alt); }
/* Cards inside a white band step down to cream, so a card is always
   distinguishable from the ground it sits on. */
/* A card steps away from whichever ground it is on. */
.report-section .section-card,
.report-section .candidate,
.report-section .task-card { background: var(--surface-alt); }
.report-section-alt .section-card,
.report-section-alt .candidate,
.report-section-alt .task-card { background: var(--surface); }
.report-hero {
  padding: 38px 36px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(145deg, #14120f, #22225d 55%, #33336e);
  box-shadow: var(--shadow-lg);
}
/* On a dark ground the pill cannot use a tint from the light palette. */
.report-hero .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.report-hero h1 { max-width: 24ch; margin-bottom: .9rem; font-size: clamp(30px, 1.5rem + 2vw, 44px); line-height: 1.05; color: #fff; }
.report-hero h1 em { color: #ffd9b0; font-style: normal; }
.report-hero p { max-width: var(--measure); color: rgba(255, 255, 255, .84); line-height: 1.6; }
.report-hero .hero-meta { margin-top: .8rem; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 700; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block: 1.4rem 2.2rem; align-items: stretch; }
/* The four tiles carry different amounts of copy, so anything at the foot of them
   lands at four different heights and reads as misaligned rather than as a row.
   A column with a gap, and the last child pushed down with auto, pins the bottom
   line of every tile to the same baseline.

   Spacing is the gap, not margins on the children: `margin-top: auto` replaces a
   fixed margin rather than adding to it, so mixing the two puts the gap back where
   it was never wanted. */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.kpi > * { margin: 0; }
.kpi > span:last-child { margin-top: auto; }
/* :not(.eyebrow) on both, because the state pill is a <span> and `.kpi span` at
   0,1,1 beat `.kpi-pill` at 0,1,0 — the pill was inheriting the detail line's 13px
   and the muted grey instead of its own 11px and its semantic colour. Eighth
   specificity collision in this file, and the second caused by an element
   selector quietly outranking a class. */
.kpi small { display: block; margin-bottom: .45rem; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpi strong { display: block; font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span:not(.eyebrow) { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

/* The bands carry their own padding now, so the old vertical margins would double
   the gap and put a cream strip between two bands. */
.report-section { margin: 0; }
.report-section > h2 { max-width: 30ch; }

.condition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.2rem 0; }
.condition {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.condition-mark {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}
.condition.met { border-color: rgba(37, 122, 92, .35); background: var(--surface-alt); }
.condition.met .condition-mark { color: #fff; background: var(--good); }
.condition.open .condition-mark { color: var(--muted); background: var(--line-soft); }
.condition strong { display: block; font-size: 15px; }
.condition small { display: block; margin-top: .15rem; color: var(--muted); line-height: 1.45; }

.outcome-quote {
  margin: 1.4rem 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
}
.outcome-quote p { color: var(--brand-dark); }
.outcome-quote .field-help { margin-bottom: 0; }

/* Pressure scan read-out */
/* ── The scan rows ────────────────────────────────────────────────────────
   Rebuilt 12 Aug. These were the last of the deleted 0–3 rating system: a
   severity ramp painted the bar amber at level 2 and mud-brown at level 3, and
   the rank label red. Since pick-three every picked area scores 3, so every row
   rendered at the top of the ramp — three identical brown bars at 100% width and
   three red labels, on a screen where nothing is wrong and nothing is being
   ranked by severity.

   What the row actually has to say is: which of the three this is, what it is
   called, and whether a job has been described in it yet. So that is what it
   says. No bar: a bar that is the same length on every row is worse than none. */
.scan-grid { display: grid; gap: 10px; margin: 1.4rem 0; }
.scan-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.scan-rank {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-pill);
  font-size: 13px;
  font-weight: 800;
}
.scan-name { font-weight: 700; line-height: 1.35; }
.scan-name small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.scan-cover { text-align: right; }
/* Described is a settled state, so it is green and quiet. Not described is an
   action, so it looks like one — and in the brand colour, because it is the thing
   we would like them to do, not a warning. */
.scan-done {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.scan-add {
  padding: 7px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.scan-add:hover { color: #fff; background: var(--brand); }

/* (`.focus-note` is gone with the panel it styled. It named the job a screen's
   questions were about, in the same tint used for every hint and aside in the tool
   — which is exactly why the job did not read as the reader's own answer. Replaced
   by `.focus-pick`. Removed rather than left orphaned: a selector nothing uses is
   one more thing to read past when working out why something looks wrong.) */

/* Candidates */
.candidate-list { display: grid; gap: 16px; }
.candidate {
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* The base lifts its cards on hover. Here it is only on the candidates, which are
   the one thing on the report a reader reaches for. */
.candidate:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--card-line-hover); }
.candidate-top {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #fff, var(--surface-alt));
}
.candidate-top h3 { margin-bottom: .15rem; }
.candidate-top small { color: var(--muted); font-size: 14px; }
.rank {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  font-size: 18px;
  font-weight: 800;
}
.candidate-value { text-align: right; }
.candidate-value strong { display: block; color: var(--good); font-size: 20px; letter-spacing: -.025em; }
.candidate-value small { display: block; color: var(--muted); font-size: 12px; }

.candidate-metrics { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 8px; }
/* These were chips in the design base and came across as bare text, so the row
   read as a run-on sentence with three gaps in it. */
.candidate-metrics > span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.report-section-alt .candidate-metrics > span { background: var(--line-soft); }
.candidate-metrics span {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.candidate-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 20px;
}
.insight { padding: 14px; border-radius: 12px; background: var(--surface-alt); }
.insight small {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.insight p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.score-breakdown {
  padding: 11px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}
.score-breakdown small { color: var(--muted); font-size: 13px; }

/* Immediate actions */
.action-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 1.2rem; }
.action-cards article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.action-cards article > strong {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-bottom: .7rem;
  border-radius: 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 14px;
}
.action-cards p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* 90-day plan */
.plan-phase-group { margin-top: 1.6rem; }
.plan-phase-head { margin-bottom: .9rem; padding-left: 14px; border-left: 4px solid var(--brand); }
.plan-phase-head h3 { margin-bottom: .2rem; font-size: 20px; }
.plan-phase-head p { margin: 0; color: var(--muted); }
.week {
  display: block;
  margin-bottom: .2rem;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-phase {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.plan-phase p { margin: .35rem 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* The multi-agent teaching section */
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4rem 0; }
.teach-card {
  position: relative;
  padding: 22px 22px 22px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.teach-step {
  position: absolute;
  left: 20px; top: 21px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  font-size: 14px;
  font-weight: 800;
}
.teach-card h3 { margin-bottom: .35rem; }
.teach-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.teach-punchline {
  max-width: var(--measure);
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.65;
}

.foundation-note {
  margin-top: 1.4rem;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
}
.foundation-note h3 { margin-bottom: .6rem; }
.foundation-note p { max-width: var(--measure); color: var(--ink-soft); line-height: 1.65; }
.foundation-note p:last-child { margin-bottom: 0; }

.assurance {
  margin-top: 1.4rem;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(150deg, var(--brand-dark), var(--brand-dark));
}
.assurance h3 { color: #fff; font-size: 18px; }

/* --- Worked sample, sector notes, and the named gaps -------------------- */

.sample-brief {
  margin-top: 1.2rem;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.sample-head {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: .9rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.sample-head span { color: var(--good); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sample-brief ul { display: grid; gap: 8px; margin: 0 0 1rem; padding-left: 1.1rem; }
.sample-brief li { color: var(--ink-soft); line-height: 1.55; }
.sample-foot { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.insight-grid { display: grid; gap: 12px; margin-top: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.insight cite { display: block; margin-top: .5rem; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }

.unseen-list { display: grid; gap: 12px; margin: 1.2rem 0; padding-left: 1.1rem; }
.unseen-list li { color: var(--ink-soft); line-height: 1.6; }
.unseen-list strong { color: var(--ink); }

/* (.commitment is gone — the line it styled was cut from the landing. Left as a
   note rather than a dead rule, because an orphaned selector is one more thing to
   read past when working out why something looks wrong.) */
.assurance ul { margin: 1rem 0; padding-left: 1.2rem; }
.assurance li { margin-bottom: .6rem; color: var(--line); line-height: 1.6; }
.assurance li strong { color: #fff; }
.assurance-note { margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.6; }
.assurance-note strong { color: #ffd9b0; }

.ninety-day {
  margin-top: 1.6rem;
  padding: 24px 28px;
  border: 1px solid rgba(26, 24, 20, .22);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-alt), var(--brand-soft));
}
.ninety-day h3 { margin-bottom: .6rem; }
.ninety-day p { max-width: var(--measure); color: var(--ink-soft); line-height: 1.65; }
.ninety-day .field-help { margin-bottom: 0; }

/* Commercial ladder */
.kyber {
  padding: 32px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(150deg, var(--ink), var(--ink));
  box-shadow: var(--shadow-md);
}
/* was --brand-mid, which is 2.72:1 on white — it is a border and focus colour,
   never a text one. Falls through to the pill treatment. */
.kyber h2 { max-width: 34ch; color: #fff; }
.kyber-lead { max-width: var(--measure); color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.65; }
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.5rem 0 1.2rem; }
.ladder-step {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.ladder-price {
  display: block;
  margin-bottom: .5rem;
  color: #ffd9b0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ladder-step strong { display: block; margin-bottom: .5rem; color: #fff; }
.ladder-step p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
.ladder-note { max-width: var(--measure); color: rgba(255, 255, 255, .66); font-size: 14px; }

/* The shift-note quote is gone from the report, but the rule is left in place for
   the sector-context blocks that still use the treatment. */
.shift-note-quote {
  margin: 0 0 1rem;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--warn);
  line-height: 1.7;
}

/* Lead capture */
.lead-capture {
  padding: 30px;
  border: 1px solid rgba(26, 24, 20, .2);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-alt), var(--brand-soft));
}
.lead-capture h2 { max-width: 26ch; }
.lead-capture > p { max-width: var(--measure); color: var(--ink-soft); }
.lead-capture .form-grid { margin-top: 1.2rem; }
.lead-capture.done { border-color: rgba(37, 122, 92, .3); background: linear-gradient(150deg, var(--surface-alt), var(--good-soft)); }

/* Pilot context and method */

/* Tenth. `padding: 28px` beat the band's inline inset, so the method note started
   at 28px while every heading above it started at the measure. It is a band, not a
   card — the ground it needs it already has from being an alt band. */
.method { padding-block: 28px; border: 0; border-radius: 0; }
.method-list { max-width: var(--measure); margin: 1rem 0; padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.7; }
.method-list li { margin-bottom: .7rem; }

/* The canonical .report-footer rule is the one near the top of this file, with the
   shared inset. This was a second definition of the same selector whose
   `margin: 2.5rem 0 0` shorthand reset the margin-inline: auto that centres it —
   so the footer buttons sat flush against both window edges. Merged. */

/* --- 12. Responsive ----------------------------------------------------- */

@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-body { grid-template-columns: 1fr; }
  .action-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: 1fr; }
  .teach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  #app { width: min(100% - 18px, 1160px); padding-top: 10px; }
  .shell { border-radius: 20px; }
  .topbar, .progress-wrap { padding-left: 18px; padding-right: 18px; }
  .content { padding: 30px 20px 24px; }
  .footer-actions { padding: 18px 20px; }
  .report-hero { padding: 28px 22px; }
  .kyber, .lead-capture, .method { padding: 22px; }
  .clock, .rate-panel { grid-template-columns: 1fr; }
  .rate-panel { gap: 16px; }
  .choice-grid, .form-grid, .condition-list { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .scan-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .scan-bar { grid-column: 1 / -1; }
  .scan-cover { grid-column: 1 / -1; text-align: left; }
  .candidate-top { grid-template-columns: 44px 1fr; }
  .candidate-value { grid-column: 2; text-align: left; }
  .pressure-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .brand .eyebrow { display: none; }
  .kpi-grid, .plan-grid, .action-cards { grid-template-columns: 1fr; }
  .footer-actions, .report-footer { flex-wrap: wrap; }
  .footer-actions .button.primary { margin-left: auto; }
  .task-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .choice:hover, .button.primary:hover, .example-chip:hover { transform: none; }
}

/* --- 13. Print ---------------------------------------------------------- */

@media print {
  /* Browsers drop background graphics when printing unless told not to. Without
     this, every element that is white text on a coloured chip prints as white on
     white and vanishes: a provider who met 5 of 6 readiness conditions printed a
     page showing one tick and five blanks, under a heading reading "5 of 6
     conditions met", and the ranked agent list lost its rank numbers entirely.
     The PDF is the distribution model — it is the artefact that gets forwarded
     to the exec team, so it has to survive the printer.

     Belt and braces: the colour-adjust hints below are honoured by most
     browsers, and the explicit dark-on-light overrides after them mean the page
     is still readable in the ones that ignore them, and on a mono printer. */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }

  .condition.met .condition-mark,
  .rank,
  .teach-step {
    color: #000 !important;
    background: #fff !important;
    border: 1.5px solid #000 !important;
  }
  /* Controls are dead ink on paper. */
  .scan-add, .example-chip, .icon-button, .text-button { display: none !important; }
  .ambient, .topbar, .progress-wrap, .footer-actions, .report-footer,
  .lead-capture { display: none !important; }
  #app { width: 100%; padding: 0; }
  .shell { border: 0; border-radius: 0; box-shadow: none; background: #fff; backdrop-filter: none; }
  .content { padding: 0; }
  .report-hero, .kyber, .foundation-note {
  margin-top: 1.4rem;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
}
.foundation-note h3 { margin-bottom: .6rem; }
.foundation-note p { max-width: var(--measure); color: var(--ink-soft); line-height: 1.65; }
.foundation-note p:last-child { margin-bottom: 0; }

.assurance { color: #000; background: #fff; border: 1px solid var(--muted); box-shadow: none; }
/* Same reason as .assurance: a dark card prints as a black rectangle, and on a
   mono printer the reversed text disappears entirely. */
.credentials-card { color: #000; background: #fff; border: 1px solid var(--muted); box-shadow: none; }
.credentials-card strong, .credentials-card .eyebrow, .credentials-lead { color: #000; }
  .report-hero h1, .report-hero h1 em, .report-hero p, .report-hero .eyebrow,
  .kyber h2, .kyber p, .kyber .eyebrow, .ladder-step strong, .ladder-step p, .ladder-price,
  .assurance h3, .assurance li, .assurance li strong, .assurance-note, .assurance-note strong { color: #000; }
  .teach-card, .teach-punchline { break-inside: avoid; }
  .ladder-step { border-color: var(--muted); background: #fff; }
  .clock-display { color: #000; background: var(--line-soft); border: 1px solid var(--muted); }
  .clock-display span, .clock-display small { color: var(--ink-soft); }
  .candidate, .section-card, .plan-phase, .plan-phase-group, .kpi,
  .action-cards article, .method, .condition { break-inside: avoid; }
  .report-section { break-inside: auto; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: var(--ink-soft); }
}

/* ── Priority loop ─────────────────────────────────────────────────────────
   Tinted, because it is the one section that answers the question the reader
   arrived with. Left rule rather than a full card: it belongs to the
   recommendation above it, not to itself. */
.priority-loop {
  border-left: 3px solid var(--brand-mid);
  background: var(--brand-soft);
  /* Vertical padding as well as left. Without it the tint and the left rule
     started exactly at the cap-height of the eyebrow and ended at the last
     descender, so the block read as clipped rather than as a panel. Measured at
     0px top and bottom against every other section's 41.6px rhythm. */
  /* padding-BLOCK only. As a shorthand this overrode the shared inline inset every
     other band gets, so this one section's text started 24px from the window edge
     while everything above and below it started at the measure. Ninth
     shorthand-after-longhand collision in this file. */
  padding-block: 26px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
/* No heading override. The two sections either side use the standard 9.6px, and
   0.5rem here made this one heading sit 2px tighter than the rest of the report
   for no reason anybody could state. */

/* ── The size trio ─────────────────────────────────────────────────────────
   How often, how many, how long: one question in three parts, so they sit on
   one row and their labels align to a shared baseline. `align-items: end` puts
   the controls in line even though the labels wrap to different heights —
   without it the row reads as three unrelated questions. */
.field-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
  /* No margins of its own: as a direct child of .form-grid the row gap spaces it
     like everything else. */
}
.field-trio .field { margin: 0; }
@media (max-width: 720px) {
  .field-trio { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Delegation — the ask panel, the lead's questionnaire, and what came back
   ===========================================================================
   Three audiences on one stylesheet. The CEO's ask panel has to read as an
   offer rather than a task, the lead's flow has to feel like a different
   document without becoming a different product, and the team findings have to
   look like evidence. The existing tokens carry all three; nothing here
   introduces a colour.
   ------------------------------------------------------------------------ */

/* --- The ask panel, inside a candidate card --- */
/* Sits between the three insight columns and the score line, and had 16px above
   and nothing below — so it read as attached to the score rather than as its own
   thing. The inline margin pulls it in from the card edge for the same reason. */
.ask-panel {
  margin: 22px 20px 20px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.ask-panel > p:first-child { margin-top: 0; }
.ask-panel > p:last-child { margin-bottom: 0; }
.ask-panel p { color: var(--ink-soft); line-height: 1.55; }

/* Solid, not dashed, once it is a state rather than an offer. */
.ask-panel.open, .ask-panel.waiting, .ask-panel.answered { border-style: solid; }
.ask-panel.answered {
  border-color: rgba(16, 128, 93, .4);
  background: var(--good-soft);
}
.ask-panel.answered p { color: var(--good); }
.ask-panel.waiting { border-color: rgba(146, 102, 0, .35); background: var(--accent-soft); }
.ask-panel.open { border-color: var(--brand-mid); background: #fff; box-shadow: var(--shadow-sm); }

.ask-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: .6rem;
}
.ask-head strong { font-size: 16px; }

.ask-steps {
  margin: .9rem 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
}
.ask-steps li { margin-bottom: .35rem; line-height: 1.55; }

.copy-field { margin-top: 1rem; }
/* The box is read-only and monospaced: it is text to be taken away, not a
   field to be filled in, and it should not look like one. */
.copy-box {
  width: 100%;
  margin-bottom: .5rem;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
}
textarea.copy-box { min-height: 0; }

.button.small {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.button.small.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.button.small:hover { filter: brightness(1.07); }

/* --- The lead's flow --- */
/* No "Start over", no report title, no step-of-seven from a questionnaire they
   did not start: the shell is deliberately quieter than the CEO's. */
.lead-shell .topbar { border-bottom: 1px solid var(--line-soft); }
.lead-why p { margin: 0 0 .7rem; color: var(--ink-soft); line-height: 1.6; }
.lead-why p:last-child { margin-bottom: 0; color: var(--ink); }
.lead-why .lead { color: var(--ink); }

/* Which job they are answering about, repeated on every question screen. They
   arrived from an email and they will forget. */
.job-banner {
  margin: 0 0 1.2rem;
  padding: 11px 15px;
  border-left: 3px solid var(--brand-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 15px;
}

.lead-question + .lead-question { border-top: 1px solid var(--line-soft); }

/* The escape hatch sits in the same list as the real options, and reads as a
   real answer, because it is one. Dotted rather than solid so it is findable
   without being louder than the options above it. */
.choice.choice-escape { border-style: dashed; }
.choice.choice-escape.selected { border-style: solid; }
.escape-field { margin-top: 12px; }

/* Refused, not warned. This is the interface declining the input. */
.data-refused {
  margin: .6rem 0 0;
  padding: 10px 13px;
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* --- What came back --- */
.team-section .finding-list {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.team-section .finding-list li {
  padding: 16px 18px;
  border: 1px solid var(--card-line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.team-section .finding-list strong { color: var(--ink); }
.team-section .finding-list em { color: var(--ink); font-style: normal; font-weight: 700; }

.boundary-block { margin-top: 1.6rem; }
.boundary-block h3 { margin-bottom: .3rem; }
.boundary {
  margin-top: 12px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.boundary p { margin: 0 0 .45rem; color: var(--ink-soft); line-height: 1.6; }
.boundary p:last-child { margin-bottom: 0; }
.boundary-who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}

/* --- The agent-definition table --- */
/* A grid, not a table element, so the three columns can collapse to two lines
   on a phone without a horizontal scroll. */
.lesson-grid {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lesson-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
}
.lesson-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson-head span:first-child { padding-left: 44px; }
.lesson-row + .lesson-row, .lesson-head + .lesson-row { border-top: 1px solid var(--line-soft); }
.lesson-mark { font-weight: 700; line-height: 1.5; }
.lesson-row.met .lesson-mark { color: var(--good); }
.lesson-row.open .lesson-mark { color: var(--muted); }
.lesson-claim { color: var(--ink); font-weight: 600; line-height: 1.5; }
.lesson-did { color: var(--ink-soft); line-height: 1.5; }
/* The one it fails is the point of the table, so it is marked rather than
   hidden — tinted, and its answer set in the same weight as the claim. */
.lesson-row.open { background: var(--accent-soft); }
.lesson-row.open .lesson-did { color: var(--warn); font-weight: 600; }

@media (max-width: 700px) {
  .lesson-head { display: none; }
  .lesson-row { grid-template-columns: 24px minmax(0, 1fr); row-gap: 4px; }
  .lesson-did { grid-column: 2; }
}

/* The refusal used as a standing note rather than a live rejection: same
   colour, less shout. */
.data-refused[role="note"] {
  margin: 1.2rem 0;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 15px;
}
.data-refused[role="note"] strong { font-weight: 700; }

/* ===========================================================================
   11 Aug — the rate moved into the report, and the cost screen went with it
   ------------------------------------------------------------------------ */

/* The one control in the whole report. Set apart from the figures it drives, so
   it reads as the dial rather than as another statistic. */
/* Space above as well as below. It had none, and only looked right when the team
   banner happened to sit between it and the hero — with no reply the panel was
   flush against the bottom edge of the dark card. */
.report-rate {
  margin-block: 1.6rem;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.report-rate .field-help { margin-bottom: .7rem; }
/* The divider and bottom margin belonged to the cost table that used to sit
   under this panel. There is no table now, so they would draw a rule under
   nothing. */
.report-rate .rate-panel { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.rate-basis { margin-top: 1rem; }
.rate-basis summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.rate-basis .field-help { margin-top: .6rem; }

/* Print: the slider is not a control on paper, and the derivation of the default
   rate belongs in the printed record whether or not it was expanded on screen. */
@media print {
  .report-rate .rate-panel input[type="range"] { display: none; }
  .rate-basis[open] summary, .rate-basis summary { list-style: none; }
  .rate-basis > p { display: block !important; }
}

/* Says what the rough answers are for, and what replaces them. */
.rough-note {
  margin-top: 4px;
  padding: 14px 17px;
  border-left: 3px solid var(--brand-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.6;
}
.rough-worth { font-weight: 700; }

/* Why we ask for three when there are more than three. */
.why-three {
  font-size: 16px;
  color: var(--ink-soft);
}

/* The lead types a figure; the CEO picks a band. So the lead's flow needs a
   number field, and it has to look like a place a number goes rather than a
   text box that happens to accept one. */
.number-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.number-field input[type="number"] {
  width: 8.5rem;
  flex: none;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.number-field select { width: auto; min-width: 11rem; }
.number-suffix {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 520px) {
  .number-field { flex-wrap: wrap; }
  .number-field select { width: 100%; }
}

/* ── "This report has changed" ─────────────────────────────────────────────
   The one moment the delegation flow exists to produce. It gets the accent
   rather than the brand teal, because it is the only thing on the page that is
   news — everything else was true when the CEO last looked. */
.team-banner {
  /* Was margin-top 0, which put it flush against the bottom edge of the hero
     card — the only two adjacent blocks in the report with no gap between them.
     Matched to the section rhythm above and kept tighter below, because it
     introduces the rate panel rather than standing alone. */
  margin-block: 1.6rem;
  padding: 22px 26px;
  border: 1px solid rgba(16, 128, 93, .3);
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
  background: var(--good-soft);
}
.team-banner .eyebrow { background: rgba(16, 128, 93, .14); color: var(--good); }
/* Zero top margin on the heading, so the eyebrow's own bottom margin sets the
   gap — the same way it does in every other section. The .2rem here was
   collapsing against it and landing on 8px where the rest of the report is 10px. */
.team-banner h2 { margin: 0 0 .6rem; font-size: 22px; }
.team-banner .eyebrow { margin-bottom: .6rem; }
.team-banner p { margin: 0 0 .5rem; color: var(--ink-soft); line-height: 1.6; }
.team-banner p:last-child { margin-bottom: 0; }
.banner-jump a { color: var(--good); font-weight: 700; }

/* Preview-only: the route back to the report when one person is playing both
   roles. Deliberately plain, so it cannot be mistaken for part of the flow. */
.preview-return {
  margin-top: 1.6rem;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.preview-return p { margin: 0; color: var(--muted); font-size: 15px; }
.preview-return .eyebrow { margin-bottom: .3rem; }

/* Preview-only diagnostics. Deliberately the quietest thing on any screen. */
.diagnostics {
  max-width: min(var(--measure-page), calc(100% - var(--content-pad) * 2));
  margin-inline: auto;
  margin-block: 0;
  padding-block: 18px 32px;
}
.diagnostics summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.diagnostics .field-help { margin: .6rem 0; }
.diagnostics .copy-box { font-size: 11px; margin-bottom: .6rem; }
@media print { .diagnostics { display: none; } }

/* ── The method note, folded ───────────────────────────────────────────────
   Every figure has to be traceable, so none of this is cut — but 600 words of
   derivation sitting open between the reader and the end of the document makes
   the whole report feel like homework. It opens on click, and it is forced open
   on paper, because a printed record with the arithmetic hidden is not a record. */
.method-fold > summary {
  cursor: pointer;
  padding: 4px 0;
}
.method-fold > summary::marker { color: var(--brand); }
.method-fold .method-open {
  display: block;
  margin-top: .2rem;
  font-family: inherit;   /* --font-display was never defined; the serif is the heading face */
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.method-fold .method-list { margin-top: 1rem; }

@media print {
  .method-fold > summary { list-style: none; }
  .method-fold > *:not(summary) { display: revert !important; }
  .method-fold:not([open]) > *:not(summary) { display: revert !important; }
}

/* ── KPI state pills ───────────────────────────────────────────────────────
   Pinned to the bottom of the tile. `margin-top: auto` does the pinning, and the
   column's gap provides the minimum space above it — a fixed margin cannot,
   because auto replaces it rather than adding to it. */
.kpi-pill {
  align-self: flex-start;
  margin: auto 0 0;
  padding: 5px 11px;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .06em;
}

@media print {
  /* On paper the bands are wrong. Their negative inline margins exist to break out
     of .content's padding, and .content has no padding when printed — so they
     would hang off the page edge. Their grounds are also pointless on white
     stock, and a cream block costs ink for nothing. Separation on paper comes
     from space and the rule below it. */
  .content { background: #fff; }
  .report-section {
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid #ccc;
  }
  .report-section:last-of-type { border-bottom: 0; }
  .report-section .section-card,
  .report-section .candidate,
  .report-section .task-card { background: #fff; }
  /* Keep a tile's state pill legible when backgrounds are dropped. */
  .kpi-pill { border: 1px solid #666; }
}

/* ── The reading measure inside a wide card ────────────────────────────────
   Cards fill the page measure now, which is right for the card and wrong for the
   sentences in it: at 1180px a paragraph runs to about 150 characters, roughly
   twice a comfortable line. The card keeps its width; its prose does not.

   Applied to prose only. A form grid, a chip row and a tile row all want the full
   width, so none of them are selected here. */
.explainer-card p,
.explainer-card li,
.promise-card li,
.section-card > p,
.question > p,
.rough-note,
.note-blue,
.insight-card p,
.notice,
.lead-why p,
.boundary p,
.team-section .finding-list li,
.method-list li {
  max-width: var(--measure);
}

/* ── Enough described ─────────────────────────────────────────────────────
   Replaces the task form once three jobs are in, so the screen ends on a decision
   rather than on a half-filled form. */
.tasks-done {
  margin: 1.25rem 0 0;
  padding: 28px 26px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: #fff;
}
.tasks-done h3 { margin-bottom: .4rem; }
.tasks-done .field-help { margin-bottom: 1.1rem; }

/* A fact the form already knows, stated rather than asked. */
/* (.field-note is gone with areaIsImplied — it stated the area a chip had implied,
   and chips no longer imply one.) */


/* ── Handing a job over from the task screen ───────────────────────────────
   Ian's point: a CEO will name the job but not answer the questions about it. So
   the handoff is an equal alternative at the top of the form, not a fallback
   buried under it. The rule lives with the others further down this file. */

.tag.green { background: var(--good-soft); color: var(--good); }

/* What the report is still waiting on. */
.awaiting-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 10px; }
.awaiting-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 15px 18px;
  border: 1px solid var(--card-line);
  border-left: 3px solid var(--good);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
}
.awaiting-list strong { font-size: 16px; }
.awaiting-list span { color: var(--muted); font-size: 14px; }
.awaiting-state { margin-left: auto; font-weight: 700; color: var(--good); }
.awaiting-state.missing { color: var(--danger); }

/* A tile with nothing to print yet. Quieter than a figure, because it is the
   absence of one — and never a zero, which a reader takes as a finding. */
.kpi-pending { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--muted); }

/* The delegate offer, at the top of the form rather than after it. Tinted, because
   it is an alternative to everything below it and not another field. */
.delegate-here {
  /* Before the grid, so the grid's row gap does not reach it. Matched to the same
     rhythm by hand. */
  margin: 22px 0 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
}
.delegate-here p { max-width: var(--measure); margin-bottom: .9rem; color: var(--ink); font-size: 15px; }

/* A job already answered shows its state where the offer would be. */
.icon-state {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.icon-state.done { background: var(--good-soft); color: var(--good); }

/* When no area has been chosen the chips come from all three, so each says which. */
.example-chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ── "What is an AI agent?" ────────────────────────────────────────────────
   A disclosure, open by default. The marker is the affordance; the strong tag
   inside carries the type, so the summary reads as the card's heading rather than
   as a control bolted to it. */
.explainer-card > summary {
  cursor: pointer;
  padding: 2px 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.explainer-card > summary::-webkit-details-marker { display: none; }
.explainer-card > summary::before {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.explainer-card[open] > summary::before { transform: rotate(225deg) translateY(-1px); }
.explainer-card > summary strong { font-size: 18px; letter-spacing: -.01em; }
.explainer-card[open] > summary { margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) {
  .explainer-card > summary::before { transition: none; }
}

/* The landing's action sits with the field it acts on, not in the page footer. */
.landing-start { margin-top: 18px; }

/* The credentials card is a dark panel, so its link cannot use the page's link
   colour — brand blue on that ground fails contrast. Underlined white instead. */
.credentials-lead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.credentials-lead a:hover { text-decoration-thickness: 2px; }

/* ── The system diagram ────────────────────────────────────────────────────
   Kybernesis's own figure. It brings four tokens from that site — --bg,
   --ink-faint and --mono are not in this palette — so they are defined on the
   figure itself rather than added to the global set: they belong to this one
   drawing and nothing else should reach for them. --ink it shares. */
.kyb-diagram {
  --bg: var(--surface-alt);
  --ink-faint: var(--line);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
  align-self: start;
}

/* One revolution a minute, matching the site's 6 degrees a second. The site does
   it with requestAnimationFrame; a CSS animation is the same motion without a
   script running behind a form. transform-box/origin are in user units because
   the site rotates about (300, 220) in the viewBox. */
.kyb-diagram .orbit-grp {
  transform-box: view-box;
  transform-origin: 300px 220px;
  animation: kyb-orbit 60s linear infinite;
}
@keyframes kyb-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Stops for anyone who has asked for less motion. The diagram still reads — it is
   a labelled figure, not an animation with information in the movement. */
@media (prefers-reduced-motion: reduce) {
  .kyb-diagram .orbit-grp { animation: none; }
}
/* Ink on paper, not on a screen: it should not compete with the headline. */
.kyb-diagram svg { opacity: .82; }

/* ── The hero, in two columns ──────────────────────────────────────────────
   The copy was capping at its own measure and leaving a third of the width empty.
   The diagram is what belongs there. It collapses below the copy on anything
   narrow, and the copy column keeps its reading measure either way. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 1080px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  /* Below the copy, and capped — full width it dominates the screen. */
  .kyb-diagram { max-width: 520px; }
}

/* Shown where the handoff button will be, until the form has enough to act on. */
.delegate-wait {
  margin: 0;
  color: var(--brand-pill);
  font-size: 14px;
  font-weight: 700;
}

/* The fork under the task name: hand it over, or answer for them. */
.or-answer {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   V2b additions
   Three new pieces of furniture: the tick-and-size job list, the cited
   landscape grid, and the two-column honest section. Everything else in this
   stylesheet is inherited from V2 unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── The hero copy column ─────────────────────────────────────────────────
   .hero-split laid out the two columns and nothing ever styled the left one, so
   the copy took its measure from the grid track rather than from a reading
   measure. On a wide screen the lead ran to 90-odd characters a line. */
.hero-copy { min-width: 0; }
.hero-copy .lead { max-width: 34em; }

/* ── The work screen: one block per picked area ───────────────────────────
   Each area is a labelled group rather than one long list, because the reader
   picked three areas and needs to see that these jobs belong to them. */
.area-block { margin: 0 0 34px; }
.area-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 1.12rem;
}
/* The same numbered mark the pick grid uses, so the rank carries across the two
   screens rather than being re-explained. */
.area-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.job-list { display: grid; gap: 10px; }

/* A row is the tick and, once ticked, its two size questions. The border only
   appears when it is ticked: unticked, a box round every option would make a
   list of ten jobs read as ten cards to work through. */
.job-row { display: grid; gap: 0; }
.job-row.ticked {
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
/* Inside a ticked row the tick itself loses its own card, or there is a box in
   a box. */
.job-row.ticked .job-choice {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}
.job-row.ticked .job-choice:hover { transform: none; border-color: transparent; }

/* The two size selects, side by side, indented under the job they size. */
.job-sizer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-left: 32px;
}
.job-sizer .field { margin-block: 0; }
.job-sizer .field-label { font-size: 13px; }
@media (max-width: 720px) {
  .job-sizer { grid-template-columns: 1fr; padding-left: 0; }
}

/* A job the reader typed themselves: its name is not a tick, so it needs a head
   of its own. */
.custom-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.custom-head strong { font-size: 15px; }

/* ── The landscape ────────────────────────────────────────────────────────
   Four cited facts. A grid rather than a list because each stands on its own and
   they are read in any order. */
.landscape-grid {
  display: grid;
  gap: 14px;
  margin: 1.2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.landscape-item {
  padding: 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.landscape-item strong { display: block; margin-bottom: .5rem; font-size: 15px; }
.landscape-item p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
/* The citation is the point of the card, so it is legible rather than fine
   print — but it must not compete with the fact above it. */
.landscape-item cite {
  display: block;
  margin-top: .7rem;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
/* Our own reading of the four facts, marked as ours by being set apart from
   them rather than by a disclaimer. */
.landscape-close {
  margin: 1.2rem 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.landscape-card .landscape-grid { margin-bottom: 0; }

/* ── Being straight with you ──────────────────────────────────────────────
   Two columns, deliberately: what this page did, and what a built agent does
   instead. The comparison is the argument, so the two lists have to sit side by
   side to be read as one. */
.honest-section {
  background: linear-gradient(180deg, var(--brand-soft), var(--surface));
  border-top: 1px solid var(--brand-soft);
}
.honest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.4rem 0;
}
@media (max-width: 720px) { .honest-grid { grid-template-columns: 1fr; } }
.honest-col {
  padding: 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.honest-col strong { display: block; margin-bottom: .8rem; font-size: 15px; }
.honest-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 8px; }
.honest-col li { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
/* The second column is the one making the claim, so it carries the accent. */
.honest-col + .honest-col { border-color: var(--brand-mid); }
.honest-foot {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.honest-foot strong { color: var(--ink); }

/* The one-line summary carried by every candidate after the first.
   .candidate has no padding of its own — every child owns its own horizontal
   inset — so this sat flush against the card edge while everything above it was
   20px in. Matching the inset the siblings use rather than inventing one. */
.candidate-note {
  margin: 0;
  padding: 4px 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* (The interim `.focus-job` / `.focus-why` / `.focus-last` block is gone. It set
   `.focus-job` unscoped, and `.focus-pick .focus-job` below sets it too — two rules
   for one class, at different specificities, is the fight this stylesheet has lost
   eleven times. The card owns its own children now.) */

/* ── The chosen job, on the last question screen ──────────────────────────
   Tom, 13 Aug: "the chosen opportunity still looks like part of the copy." It
   was, because it sat in `.focus-note` — the same tinted panel used for hints and
   asides everywhere else in the tool. So the one element on the screen that came
   out of the reader's own answers was dressed exactly like our commentary about
   it.

   White on the cream ground rather than another tint, lifted off the page, and
   marked with the accent rather than the brand blue: the blue is what the
   interface uses to talk, and this is a result. The job name carries the weight
   the heading would normally have, because it IS the subject of the screen. */
.focus-pick {
  margin: 0 0 1.5rem;
  padding: 24px 26px 24px 30px;
  border: 1px solid var(--card-line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.focus-pick .eyebrow { margin: 0 0 10px; }
.focus-pick .focus-job {
  margin: 0 0 .7rem;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
/* "The job:" — a label, not part of the name. Smaller and muted so the name still
   carries the line, and inline so the two read as one heading rather than as a
   caption above a title. */
.focus-job-label {
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  /* Optically aligned: the uppercase label sits high against the sentence-case
     name beside it at this size difference. */
  vertical-align: .12em;
  margin-right: .15em;
}

/* The reason is the evidence, so it reads as body text rather than as fine print
   — a reader who does not believe the pick will read this line and nothing else. */
.focus-pick .focus-why {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 620px) {
  .focus-pick { padding: 20px 18px 20px 22px; }
  .focus-pick .focus-job { font-size: 1.3rem; }
}

/* ── What we would not build ─────────────────────────────────────────────
   The report section the gate exists to be able to print. Deliberately styled
   as sober rather than alarming: a refusal here is a considered judgement, not
   a warning, and painting it red would turn "we would not build this" into
   "something is wrong with you" — which is the opposite of what it says.

   It borrows the surface treatment of the other report sections and separates
   itself with a rule and a muted ground, so it reads as part of the argument
   rather than as an exception bolted on the end. */
.report-section.declined { }

.declined-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.declined-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.declined-item p { margin: 8px 0 0; }
.declined-item p:first-of-type { margin-top: 4px; }

.declined-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.declined-head strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

/* Two states, and the difference matters. "We would not build this" is final;
   "groundwork first" is a sequence, not a refusal — so only one of them is
   allowed to look like a stop. Neither is red. */
.tag-no {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tag-hold {
  background: var(--accent-soft);
  color: var(--warn);
  border-color: transparent;
}

@media (max-width: 620px) {
  .declined-item { padding: 16px 16px 16px 18px; }
}

/* ── Collection notice ───────────────────────────────────────────────────
   Sits above the three fields it describes. Quiet by default — a notice that
   shouts is a notice people dismiss — but the definition list gives each matter
   its own row, so somebody scanning for one answer finds it without reading the
   rest. */
.privacy-notice { margin: 0 0 18px; }
.privacy-list { margin: 12px 0 0; display: grid; gap: 10px; }
.privacy-list dt {
  font-weight: 600; color: var(--ink); font-size: .88rem;
  letter-spacing: .01em;
}
.privacy-list dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
@media (min-width: 620px) {
  .privacy-list { grid-template-columns: 13rem 1fr; gap: 10px 20px; align-items: baseline; }
  .privacy-list dt { text-align: right; }
  .privacy-list dd { margin: 0; }
}

/* ── The card hugs its measure ────────────────────────────────────────────
   the reviewer, 17 Aug, twice: "text only going across half of the call out box" and
   "quest 2 explanation is only written half way across the screen." Measured on
   the deployed build at a 2560px viewport: card 1180px, prose capped at 622px —
   a ratio of 0.53. She was being literal.

   The cap above is right and stays: 68ch is a comfortable line and removing it
   puts prose back to ~150 characters. The defect is the OTHER side of the gap —
   the card runs the full page measure, so 558px of bordered box sits empty to
   the right of every paragraph. On open ground that reads as a reading measure.
   Inside a visible border it reads as broken, which is what she saw.

   So the card caps its own measure too, which is what the design base at the top
   of this file already says every element does — the headline at 26ch, the lead
   at 68ch. The cards were the one thing exempt from their own rule.

   780px, not 674px (the prose measure plus its padding): the choice grid inside
   these cards is two columns, and at 674 each choice gets 338px, which is tight
   for a label with a description under it. At 780 the prose fills 0.80 of the box
   and the grid still breathes.

   Form screens only. Report cards hold tile grids that genuinely want the page. */
.section-card,
.promise-card,
.explainer-card,
.privacy-note,
.credentials-card {
  max-width: min(100%, 780px);
}

/* ── The way in ───────────────────────────────────────────────────────────
   The entry action is deliberately not drawn like a Next: the way in is a
   different act from moving through, so it is the only button that carries the
   offset plate. It was green for a while, to stand apart from the review
   toolbar that used to sit on these pages; that toolbar is gone and so is the
   reason. Solid ink, the way the site draws a primary action. White on --ink
   is 14.6:1. */
.button.primary.landing-start {
  background: var(--ink);
  box-shadow: -4px 4px 0 rgba(32, 178, 196, .85);
}
.button.primary.landing-start:hover { filter: none; transform: translate(2px, -2px); box-shadow: -7px 7px 0 rgba(32, 178, 196, .85); }

/* The foot repeat. Separated from the notice above it so it reads as an action
   and not as part of the small print. */
.start-again {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.start-again .field-help { margin: .7rem 0 0; }

/* ── The third question gets its own row ──────────────────────────────────
   Three fields in a two-column grid leaves the fourth cell empty, and it is the
   bottom-right one — so every ticked job rendered a visible hole inside its own
   bordered box. Same fault the reviewer reported on the callout cards: a box with
   nothing in half of it reads as broken rather than as spacing.

   The third field spans instead of a third column being added, because at this
   card's width three columns would put "Where does the information for it live?"
   onto three wrapped lines. Spanning also matches what the question is: the other
   two size the job, this one decides whether it is buildable at all. */
.job-sizer > .field:last-child { grid-column: 1 / -1; }

/* ── The build stamp ──────────────────────────────────────────────────────
   Quiet by design. It is not information the reader wants; it is information a
   REVIEWER needs, and the cost of not having it was two long stretches of a
   session spent proving that shipped changes had shipped. Muted, mono, small —
   legible when looked for, invisible when not. Hidden on narrow screens, where
   the header has no room to spare and nobody is doing review. */
.topbar-right { display: flex; gap: 14px; align-items: center; }
.build-stamp {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: help;
}
@media (max-width: 560px) { .build-stamp { display: none; } }


/* ═══════════════════════════════════════════════════════════════════════════
   Brand alignment layer — appended 1 Sep 2026, deliberately last.
   The site sets labels and eyebrows in Space Mono, wide-tracked, and keeps
   the serif for reading. Append-only so nothing above needs editing and the
   shorthand-collision check in the suite stays meaningful.
   ═══════════════════════════════════════════════════════════════════════════ */
.eyebrow,
.brand .eyebrow,
.ladder-price,
.step-count,
.pill,
button,
.btn,
input[type="submit"],
select {
  font-family: var(--label);
  letter-spacing: .1em;
}
.eyebrow { text-transform: uppercase; }
h1, h2, h3, h4, .report-title { font-family: var(--serif); letter-spacing: -.02em; }
.brand-mark { font-family: var(--label); border-radius: 0; }
code, kbd, samp, .num, .figure, .src { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* The job sizer's three fields sit in a grid row. Only the first carries help
   text, so its select was pushed a line lower than the other two and the row
   read as misaligned. Making each field a column and pushing the control to the
   bottom lines the three selects up whatever the label and help text do. */
.job-sizer .field { display: flex; flex-direction: column; }
.job-sizer .field select { margin-top: auto; }
.job-sizer .field-help { margin-bottom: .5rem; }


/* The confidence line and the unknown findings, added V4.1. Both are quiet on
   purpose: they are the report admitting what it does not know, and dressing
   that up would undo the point of saying it. */
.confidence-line {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.confidence-line strong { color: var(--ink); }
.finding-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.finding-list li { line-height: 1.6; }

/* The sizer opens under the job it belongs to, on the area's own page. Indented
   and ruled so it reads as belonging to the ticked row above it rather than as
   the next thing on the list. */
.job-row.ticked .job-sizer {
  margin-top: .35rem;
  padding: 1.05rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
}

/* ── The two figures the reader came for ──────────────────────────────────────
   Four tiles in a row gave equal billing to what the work costs, what could come
   back, how much of it they described, and the confidence pill. The first two are
   the reason anybody finishes this, so they get the weight: they sit on the ink
   ground, span two columns each on a wide screen, and carry the larger figure.
   The other two stay quiet beneath them.

   White on --ink measures 14.6:1; the muted label is white at 72%, which is
   6.9:1 on the same ground. Both pass AA. */
.kpi.kpi-key {
  background: var(--ink);
  border-color: var(--ink);
  padding: 22px 22px 20px;
}
.kpi.kpi-key small { color: rgba(255, 255, 255, .72); }
.kpi.kpi-key strong { color: #fff; font-size: 38px; letter-spacing: -.035em; }
.kpi.kpi-key span:not(.eyebrow) { color: rgba(255, 255, 255, .78); }
.kpi.kpi-key .kpi-pill {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.kpi.kpi-key .kpi-pending { color: rgba(255, 255, 255, .6); }
/* The one that answers "so what" gets the accent rule along its top. */
.kpi.kpi-return { box-shadow: inset 0 3px 0 var(--brand-mid); }

@media (min-width: 860px) {
  /* Two wide tiles on the first row, the quieter pair on the second. */
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-grid > .kpi-key { grid-column: span 2; }
}
@media (max-width: 859px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi.kpi-key strong { font-size: 32px; }
}

/* ── The two figures on each job ──────────────────────────────────────────────
   The same pair as the report header, one step quieter so the headline totals
   still lead. Bordered rather than filled: three or four of these stack down the
   page, and four ink panels would fight the header for attention.
   --brand-dark on cream is 6.10:1; --muted is 4.55:1. */
.candidate-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: none;
  min-width: min(100%, 22rem);
}
.cfig {
  padding: 10px 12px;
  border: 1px solid var(--card-line);
  background: var(--surface-alt);
  text-align: left;
}
.cfig small {
  display: block;
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cfig strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cfig span { display: block; margin-top: .1rem; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* The one that answers "so what" carries the accent and the deeper colour. */
.cfig-return {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 3px 0 var(--brand);
}
.cfig-return strong { color: var(--brand-dark); }
@media (max-width: 640px) {
  .candidate-figures { min-width: 100%; }
  .cfig strong { font-size: 19px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Question-page optimisation — 1 Sep 2026, appended last so nothing above
   needs editing and the shorthand-collision check stays meaningful.

   Three problems, one cause. The tool was laid out as a document you read down:
   56px band padding, 62px-tall option tiles with a shadow each, and Continue
   sitting in normal flow underneath all of it. One question to a page turned
   that into a page where the only control is below the fold.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Continue is always on screen ─────────────────────────────────────────
   The shell fills the viewport and the action bar sticks to the bottom of it.
   Long lists still scroll — eleven areas will never fit a phone at a readable
   size — but the button no longer moves with them, so a reader never has to
   hunt for the way forward. */
.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.content { flex: 1 0 auto; }
.footer-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px max(var(--content-pad), calc((100% - var(--measure-page)) / 2));
  box-shadow: 0 -1px 0 rgba(26, 24, 20, .04);
}

/* ── 2. The page breathes less, so more of it fits ───────────────────────── */
.content > section { padding-block: 34px 30px; }
.content > section.narrow h1 { margin-bottom: .35rem; }
.content > section .lead { margin-bottom: .9rem; }
.section-card { padding: 18px; }
.question + .question { margin-top: 0; }

/* ── 3. Option tiles are rows, not cards ─────────────────────────────────────
   62px minimum and a shadow apiece made eight jobs into a 600px wall. A tile is
   now as tall as its label, hairlined rather than raised, which is also what the
   rest of the brand does. */
.choice {
  min-height: 0;
  padding: 9px 12px;
  gap: 10px;
  box-shadow: none;
  background: var(--surface);
  align-items: center;
}
.choice:hover { transform: none; border-color: var(--brand); background: var(--surface-alt); }
.choice.selected { box-shadow: inset 2px 0 0 var(--brand); }
.choice-copy strong { line-height: 1.35; font-size: 15px; }
.choice input { margin-top: 0; }
.choice-grid { gap: 8px; }

/* Job rows are the densest list in the tool: eight of them on one page. */
.job-list { gap: 6px; }
.job-row.ticked { gap: 10px; padding: 10px 12px; border-color: var(--brand); }
.job-row.ticked .job-choice { padding: 0; }

/* The three questions under a ticked job, tighter than a standalone field. */
.job-row.ticked .job-sizer { margin-top: .2rem; padding: .85rem 1rem; }
.job-sizer .field-label { font-size: 13px; }
.job-sizer .field-help { font-size: 12px; margin-bottom: .35rem; }

/* ── 4. On a wide screen a long single-column list wastes half the window ── */
@media (min-width: 900px) {
  .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  /* A ticked row grows a sizer under it, so it takes the full width back. */
  .job-row.ticked { grid-column: 1 / -1; }
}

/* ── 5. Phones ───────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .choice-grid { grid-template-columns: 1fr; }
  .content > section { padding-block: 24px 22px; }
  .footer-actions { padding-block: 11px; }
}


/* ── Square, like the rest of the brand ──────────────────────────────────────
   The reskin remapped --radius* to 0, but roughly thirty rules carried a literal
   radius from the rounded base this stylesheet was forked from, so buttons,
   selects and pills stayed round while every new surface was square. Listed
   explicitly rather than with a universal selector: radios and checkboxes are
   round because round means "one of these" to everybody, and squaring them would
   be a change to meaning rather than to style. */
.button, .btn, .text-button, .icon-button,
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
select, textarea,
.choice, .section-card, .card, .kpi, .candidate, .cfig, .insight,
.job-row.ticked, .job-sizer, .declined-item, .credentials-card, .privacy-note,
.confidence-line, .report-hero, .focus-pick, .ladder-step, .tag, .eyebrow,
.kpi-pill, .progress, .brand-mark, .area-block, .finding-list, .walk {
  border-radius: 0;
}
/* The rank badge beside a picked area is a counter, and a circle is what a
   counter looks like. It keeps its shape. */
.area-rank, .question-number { border-radius: 999px; }

/* Three questions, one row, on anything wider than a tablet. Two-plus-one cost
   about 100px of height for no reason, and height is the scarce thing on a page
   whose whole job is to fit. The flex/auto-margin rule above keeps the three
   controls on one line whatever the labels do. */
@media (min-width: 900px) {
  .job-row.ticked .job-sizer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .job-row.ticked .job-sizer > .field:last-child { grid-column: auto; }
}


/* ── The question card fills its column ──────────────────────────────────────
   780px was the right cap when a screen stacked four or five questions: a narrow
   column kept them reading as a list. One question to a page changes the sum —
   there is one card, it IS the page, and at 1440 it left 400px of cream beside
   it while its own content was clipped at the foot.

   So on form screens the card fills the page inset. That also settles the
   alignment problem the old comment worried about: the inset is already centred
   on --measure-page, so filling it lines the card up with the brand in the topbar
   instead of floating a box in the middle of the window.

   Prose still caps itself — the question at 30ch, help text at 68ch — so the
   line length does not follow the box. What gets the extra width is the option
   grid, which is what needed it. */
.content > section .section-card { max-width: 100%; margin-inline: auto; }

/* Two roomy columns rather than two cramped ones, and three when the labels are
   short enough to take it. */
@media (min-width: 1100px) {
  .section-card .choice-grid { gap: 10px; }
}
.section-card .question > h3 { max-width: 46ch; }
.section-card .field-help { max-width: 74ch; }

/* ── Reclaiming the last of the height ───────────────────────────────────────
   The insight panel under an answered question was the thing being clipped. */
.insight-card { padding: 12px 14px; margin-top: .7rem; }
.insight-card p { font-size: 14px; line-height: 1.5; margin: 0; }
.insight-card small { font-size: 11px; }
.question > h3 { font-size: 21px; line-height: 1.25; margin-bottom: .35rem; }
.question .eyebrow { margin-bottom: .5rem; }
.section-card { margin-block: .9rem; }

/* ── Chrome, trimmed ─────────────────────────────────────────────────────────
   Header, rail and action bar together took 217px before a question started.
   None of them lost information; they lost padding. */
.topbar { padding-block: 10px; }
.progress-wrap { padding-block: 10px 11px; }
.progress-meta { margin-bottom: 6px; }
.footer-actions { padding-block: 11px; }

/* The insight panel is supplementary, and it was 126px of it. */
.insight-card { padding: 10px 12px; margin-top: .6rem; }
.insight-card p { font-size: 13.5px; line-height: 1.45; }

/* Long option labels fit one line at the wider card, so the tiles stop being
   two-line boxes. */
.choice { padding: 8px 12px; }
.choice-copy strong { font-size: 14.5px; }

/* The last of it, on the longest question in the instrument. The condition pill
   is a label, not a heading, and the help text had room for another eight
   characters a line before it stopped being comfortable. */
.question > .eyebrow { padding: 4px 9px; font-size: 11px; }
.section-card .field-help { max-width: 84ch; margin-bottom: .7rem; }


/* ── The pick page, on one screen ────────────────────────────────────────────
   Eleven tiles at 144px in three columns is four rows, and the page spent
   another 230px on a heading and two leads before the first of them. This is the
   one screen where the options ARE the question, so the tiles get the room and
   everything above them earns its height.

   Tiles become rows: the name on one line, what is in the area under it at 12.5px.
   Nothing is hidden — a reader picking three areas needs to see what is in each,
   so clamping the description would defeat the screen. */
.pick-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; max-width: 32ch; margin-bottom: .3rem; }
.pick-lead { font-size: 15px; line-height: 1.45; max-width: 70ch; margin-bottom: .7rem; }

.pick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.pick-counter { margin: 0; font-family: var(--label); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-dark); }
.pick-why { margin: 0; flex: 1 1 26rem; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.pick-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 7px; }
.pick {
  gap: 9px;
  padding: 9px 11px;
  align-items: flex-start;
  transition: border-color .14s ease, background .14s ease;
}
.pick:hover { transform: none; box-shadow: none; border-color: var(--brand); background: var(--surface-alt); }
.pick.picked { box-shadow: inset 3px 0 0 var(--brand); }
.pick-rank { width: 19px; height: 19px; font-size: 11px; margin-top: 1px; }
.pick-body strong { font-size: 14px; line-height: 1.3; }
.pick-body small { margin-top: .1rem; font-size: 12.5px; line-height: 1.35; }

@media (max-width: 700px) {
  .pick-grid { grid-template-columns: 1fr; }
  .pick-why { flex-basis: 100%; }
}

/* The description is what a reader picks on, so it stays in full — but at 12px
   over 1.3 it costs a line less per tile, which is a row less over eleven. */
.pick-body small { font-size: 12px; line-height: 1.3; }
.pick { padding: 8px 10px; gap: 8px; }
.pick-grid { gap: 6px; }


/* ═══════════════════════════════════════════════════════════════════════════
   The report, finished against the Kybernesis system — 2 Sep 2026.
   Four things were still speaking the old palette's language.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1 · The hero read purple. The reskin mapped the old teal ramp onto ink and
   navy but kept a third, brighter stop, and #33336e on a dark ground is a
   colour the brand does not have. Ink to navy, two stops, no third.
   White on either end is 17.7:1 and 14.4:1. */
/* Ink is the brand's dark ground; navy is the logo colour, not a surface. Half
   the panel in navy made it a blue page with a cream header. Ink holds most of
   it, with the navy only as a shift in the far corner. */
.report-hero { background: linear-gradient(150deg, #1a1814 0%, #1a1814 52%, #22225d 100%); }

/* 2 · The emphasis in the hero headline was #ffd9b0, a peach with no relation to
   anything else here. A lightened riso orange says the same thing in the
   brand's own voice, at 8.1:1 on the panel. */
.report-hero h1 em,
.assurance-note strong { color: #e8a86f; }

/* 3 · Green. The palette is cream, ink, riso orange, navy and a cyan
   misregistration — there is no green in it, and a green tick beside an orange
   rank badge reads as two design systems sharing a page. Navy carries "in
   place": it is the logo colour, it is unmistakably not the accent, and white
   on it is 14.4:1. */
.condition.met .condition-mark { background: #22225d; color: #fff; }
.condition.met { border-color: rgba(34, 34, 93, .3); }
.eyebrow-good { background: rgba(34, 34, 93, .08); color: #22225d; }
.candidate-value strong { color: var(--brand-dark); }
.sample-head span { color: #22225d; }

/* 4 · On the report the rail printed "Your report" on both sides of itself. */
.progress-meta span:last-child:empty { display: none; }

/* ── Start over, and its confirm ─────────────────────────────────────────────
   Fixed 2 Sep 2026. The brand layer above puts the label face and .1em tracking
   on every button, which turned these underlined text links into wide, heavy
   mono strings; and .reset-confirm had no rule at all, so "Clear everything?",
   "Yes, start over" and "Keep it" ran together with no space between them,
   hard against the build stamp. They are now quiet hairlined buttons in the
   label face, the question sits in the body face beside them, and the
   destructive choice is the only filled one. */
.topbar .text-button {
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}
.topbar .text-button:hover { border-color: var(--ink); color: var(--ink); }
.topbar .text-button.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.topbar .text-button.danger:hover { filter: brightness(.9); color: #fff; }
.reset-confirm { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.reset-confirm > span:first-child { font-family: var(--serif); font-size: 14px; color: var(--muted); padding-right: 2px; white-space: nowrap; }
.topbar-right { gap: 18px; }
@media (max-width: 560px) {
  .reset-confirm > span:first-child { display: none; }
  .reset-confirm { gap: 8px; }
}

/* ── Two casualties of the blanket button rule, fixed 2 Sep 2026 ─────────────
   The brand layer puts the label face and .1em tracking on every <button> and
   <select>. Two controls carry CONTENT rather than a label, and the rule turned
   them into code:
   1. The pick-three tiles are buttons, so their titles and descriptions — eleven
      sentences of the reader's own vocabulary — rendered in tracked mono.
   2. The three sizing selects hold answers like "About half routine, half
      judgement" and "In a system somebody exports from", which the wide face
      clipped mid-word at every width, including 1440.
   Both go back to the body face; the tracking stays on real buttons. */
.pick { font-family: var(--serif); letter-spacing: 0; text-align: left; }
.pick-body strong { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pick-body small { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0; }
select { font-family: var(--serif); letter-spacing: 0; font-size: 15px; }

/* On a phone the armed confirm needs the width the title was using. The mark
   stays, so the reader still knows where they are. */
@media (max-width: 560px) {
  .topbar:has(.reset-confirm) .brand > span:not(.brand-mark) { display: none; }
}

/* The ranked job card on a phone. Found 2 Sep 2026 at 390px: the two figure
   boxes were being placed in the narrow rank column and drawn over each other.
   Below 560px the pair takes its own full-width row under the title. */
@media (max-width: 560px) {
  .candidate-top { grid-template-columns: 44px minmax(0, 1fr); }
  .candidate-figures { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  .cfig { min-width: 0; }
  .cfig strong { font-size: 18px; overflow-wrap: anywhere; }
}

/* Phone pass, 2 Sep 2026. The sizing selects were not filling their column
   below 560px, so answers like "About half routine, half judgement" clipped a
   second time; and the start screen ran long enough that its only action sat at
   the very bottom of a phone viewport. */
@media (max-width: 560px) {
  .job-sizer .field select { width: 100%; max-width: none; min-width: 0; font-size: 14.5px; }
  .hero.narrow h1 { font-size: 27px; line-height: 1.15; }
  .hero.narrow .lead { font-size: 15.5px; line-height: 1.45; }
  .org-field { margin-top: 1.2rem; }
}

/* The phone gutter, 2 Sep 2026. Every block inside .content insets itself with
   max(--content-pad, (100% - measure) / 2), and .content adds its own 20px, so
   at 390px a question column was 258px wide: 66px of cream each side, selects
   clipping their own answers, the ranked job card fighting for room. Below
   560px the blocks give up their inset and .content alone carries an 18px
   gutter, which is what the topbar and rail already do at that width. */
@media (max-width: 560px) {
  .shell main.content { padding-left: 18px; padding-right: 18px; }
  .shell main.content > * { padding-left: 0; padding-right: 0; }
  .shell main.content > .band, .shell main.content > .report-hero { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  /* The report's sections inset themselves by margin rather than padding. */
  .shell main.content .report > * { margin-left: 0; margin-right: 0; max-width: none; }
  .shell main.content .report > section { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 560px) {
  /* The same blocks also cap themselves at 100% minus two gutters. */
  .shell main.content .report-hero,
  .shell main.content .team-banner,
  .shell main.content .report-rate,
  .shell main.content .kpi-grid,
  .shell main.content .report-footer { max-width: none; }
}

@media (max-width: 560px) {
  /* ...and the inner wrappers of the report bands inset themselves the same way. */
  .shell main.content .page-inset,
  .shell main.content .content > section,
  .shell main.content .report-section { padding-inline: 0; }
}
