/* ============================================================================
   centerlogic.ai
   ----------------------------------------------------------------------------
   Every colour, font, radius and duration below is the Centerlogic standard as
   written in the TechHub design handoff (DESIGN.md §3 type/colour/shape, §7
   motion, §8 accessibility floor) and mirrored in techhub's src/styles.css.
   Nothing here is a fresh brand decision; the only new choices are layout.

   Two rules from §3 that are easy to break and are load-bearing:
     - #DD3333 is a FILL. Brand-coloured text under 18px uses #B01F26
       (--brand-text); badge text uses #9A1A20 (--brand-badge).
     - #5F5F6A is the lightest text permitted on white. Do not go lighter.

   The page carries NO inline styles and no inline <style>, because
   staticwebapp.config.json ships a CSP with neither 'unsafe-inline' for
   script-src nor for style-src. Anything dynamic toggles a class.
   ========================================================================= */

/* ---------------------------------------------------------------- fonts

   Served from this site, not from Google (owner decision, 2026-11-23): no
   visitor's browser is sent anywhere else to read the page, and the CSP no
   longer has to allow a third party. The files are the ones Google Fonts
   serves, unmodified, Latin subset (which covers Western European accents);
   a character outside it falls back to the system face named in the stack.
   Each family is under the SIL Open Font License 1.1, and each licence is in
   /assets/fonts/licenses/.

   Source Sans 3 and Source Code Pro are variable: one file holds every
   weight from 200 to 900. Poppins and Lato are one file per weight, and only
   the weights the page uses are here. Adding a weight means adding a file.

   The names carry no version, and staticwebapp.config.json tells browsers to
   keep them for a year. To update a font, give the new file a new name. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-200-900.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-code-pro-200-900.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand — DESIGN.md §3 */
  --brand: #dd3333;
  --brand-text: #b01f26;
  --brand-badge: #9a1a20;
  --brand-fg: #fff;
  --brand-10: rgba(221, 51, 51, 0.1);

  /* Neutrals — techhub :root */
  --paper: #f9f9fa;
  --card: #fff;
  --ink: #17171a;
  --muted: #5f5f6a;
  --line: #d7d7dc;
  --sunk: #ececef;

  /* Brand-coloured text on the inverted band. MEASURED, not assumed: #DD3333
     on #121216 is 4.09:1, under the 4.5:1 floor §8 sets for text, and the two
     places that need it (the clause number and the ledger's right-hand
     heading) are both around 13px. This is the brand hue lifted until it
     clears the floor — 5.61:1 — which is the same move the brand's own dark
     theme makes for --ptext. It is text only; the fill stays #DD3333.
     Contrast on every pair in this file is tabulated at the foot. */
  --brand-on-deep: #e8615f;

  /* The inverted band uses the brand's own dark tokens, so the inversion is
     still brand-true rather than an invented near-black. */
  --deep: #121216;
  --deep-card: #1b1b21;
  --deep-ink: #ececf1;
  --deep-muted: #aeaeb8;
  --deep-line: #34343c;

  /* Status — §3. Only green is used, and only where it means "yours". */
  --green: #1f7a4f;

  /* Shape — §3: 12px cards, 8px controls, 6px chips */
  --r-card: 12px;
  --r-ctl: 8px;
  --r-chip: 6px;

  /* Motion — §7 */
  --motion: 240ms;
  --motion-fast: 150ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Type — §3 */
  --f-head: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --f-accent: "Lato", system-ui, sans-serif;
  --f-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* The small-label scale. 0.72rem is 11.52px at the default root size, which
     is deliberate: these labels are letterspaced uppercase Lato and they are
     FUNCTIONAL — section labels, column headings, phase names — so they sit
     above an 11px legibility floor rather than at the 0.68rem (10.88px) they
     were drafted at. Nothing in DESIGN.md mandated the smaller value; it was
     a drafting habit, and it fails on a small viewport.
     Do not reduce these below 0.72rem. */

  /* Layout */
  --shell: 70rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --rail: 9rem;

  /* The brand geometry as decoration: the logo's own two nested pointy-top
     hexagon outlines (heavy outer band, light inner — the mark's proportions),
     drawn once as an SVG data URI. A url() cannot read a custom property, so
     the stroke is the HAIRLINE COLOUR HARDCODED PER THEME, right beside the
     --line token it mirrors; change one, change both. The deep variant is
     white at 5%, which holds on both of the ledger's grounds. */
  --hex-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='%23d7d7dc' stroke-width='14' d='M256 56 83 156v200l173 100 173-100V156Z'/%3E%3Cpath fill='none' stroke='%23d7d7dc' stroke-width='6' d='M256 106 126 181v150l130 75 130-75V181Z'/%3E%3C/svg%3E");
  --hex-art-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='14' d='M256 56 83 156v200l173 100 173-100V156Z'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='6' d='M256 106 126 181v150l130 75 130-75V181Z'/%3E%3C/svg%3E");
}

/* The brand has a dark theme (techhub .dark). Honour the visitor's OS so the
   page is not the one white rectangle in a dark session. Tokens only — no
   component rule below ever sits inside this block. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121216;
    --card: #1b1b21;
    --ink: #ececf1;
    --muted: #aeaeb8;
    --line: #34343c;
    --sunk: #23232a;
    /* #B01F26 is too dark to read on a dark ground; the brand's dark theme
       keeps the fill and lifts text toward it. */
    --brand-text: #f08a8a;
    --deep: #0c0c0f;
    --deep-card: #16161b;
    --green: #4ca97a;
    /* The hex art's stroke follows --line (#34343c here). */
    --hex-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='%2334343c' stroke-width='14' d='M256 56 83 156v200l173 100 173-100V156Z'/%3E%3Cpath fill='none' stroke='%2334343c' stroke-width='6' d='M256 106 126 181v150l130 75 130-75V181Z'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.012em;
}

/* §3: 700 for h1/h2, 400 for h3/h4, sentence case throughout. */
h1 {
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  line-height: 1.04;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.14;
}
h3 {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
}

p {
  margin: 0;
}

a {
  color: var(--brand-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--motion-fast) var(--ease);
}
a:hover {
  color: var(--brand-badge);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The hidden attribute has to win over any display a component sets, or a
   flex or grid element marked hidden stays on screen. Several things here
   rely on it: the parked story controls, the "Someone else"
   input, the "Your case" tags. */
[hidden] {
  display: none !important;
}

/* In-page jumps land below the sticky masthead, not under it. */
section[id],
#six {
  scroll-margin-top: 4.5rem;
}

/* §8: visible focus everywhere, 2px, on the foreground rather than a blue the
   brand does not own. */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-chip);
}
/* A heading (or the sent message) that app.js focuses so a screen reader
   starts reading at the new chapter is not a control, and a box drawn round
   it says it is. The next Tab lands on the first real control, ringed. */
:where(h1, h2, h3, .form-sent)[tabindex="-1"]:focus-visible {
  outline: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-ctl) 0;
  font-family: var(--f-accent);
}
.skip:focus {
  left: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- the mark

   The real artwork, fetched from centerlogic.com (Logo-Full-Colour.webp and
   the hexagonal CL mark, both with alpha). The earlier cut-corner placeholder
   is gone. One brand fact everything below leans on: the mark is TWO NESTED
   HEXAGON OUTLINES with the CL cut through them — so every hexagon drawn on
   this page (the hero art, the ledger art, the question chips) is that
   geometry quoted, pointy-top like the logo, never a honeycomb wallpaper. */

.wordmark-logo {
  display: block;
  width: auto;
  height: 2rem;
  flex: none;
}

.footer-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

/* --------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque first: where color-mix is unsupported the declaration below is
     dropped and the masthead must still have a ground, or sticky content
     scrolls through it. */
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-sub {
  font-family: var(--f-accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.6rem;
  border-left: 1px solid var(--line);
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.masthead-nav a:not(.btn) {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.masthead-nav a:not(.btn):hover {
  color: var(--ink);
}

@media (max-width: 60rem) {
  .wordmark-sub,
  .masthead-nav a:not(.btn) {
    display: none;
  }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* §8: targets ≥ 24px. This is 44. */
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border: 1px solid var(--brand);
  border-radius: var(--r-ctl);
  background: var(--brand);
  color: var(--brand-fg);
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
}
.btn:hover {
  background: var(--brand-badge);
  border-color: var(--brand-badge);
  color: var(--brand-fg);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--sunk);
  border-color: var(--ink);
  color: var(--ink);
}

/* --------------------------------------------------------------- kickers */

.kicker {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: clip;
}
.hero > .shell {
  position: relative;
}
/* The mark's nested hexagons, large and bleeding off the top-right corner,
   in the hairline colour — present when you look, silent when you read.
   An inline SVG (not a background image) so that it can be drawn as the
   page opens; see "Motion: five authored moments" at the foot of this file.
   Switched off below 64rem, where it would sit behind the headline. */
.hero-hex {
  position: absolute;
  right: -14rem;
  top: -9rem;
  width: 40rem;
  height: 40rem;
  pointer-events: none;
}
.hero-hex path {
  fill: none;
  stroke: var(--line);
}
.hero-hex .outer {
  stroke-width: 14;
  stroke-dasharray: 1200;
}
.hero-hex .inner {
  stroke-width: 6;
  stroke-dasharray: 902;
}

@media (max-width: 64rem) {
  .hero-hex {
    display: none;
  }
}

.hero h1 {
  max-width: 24ch;
}

/* The single rule under the headline: the brand as a 3px fill, the width of a
   signature. The only purely decorative use of red on the page. */
.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  background: var(--brand);
  margin-top: 1.75rem;
}

.lede {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: clamp(1.075rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}
.lede em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* The second way in, deliberately a text link and not a second button: one
   primary action, one quiet alternative. Same 44px target as the button. */
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--ink);
}
.hero-link:hover {
  color: var(--brand-text);
}

.hero-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------- the document column

   The structural idea: a hairline rule down the content column with the clause
   number hanging in the left margin against it, as a specification numbers its
   clauses. The numbering is information — the engagement really is a sequence —
   not ornament. Under 56rem the rail collapses and the number sits inline. */

.band {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.band-alt {
  background: var(--card);
}

.doc {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.doc-body {
  max-width: 68ch;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* The section label in the left margin. Was a clause number; numbering
   every section implied a sequence that only the plan actually has, so the
   numbers now live in .spec-n and .stage-n alone and this says what the
   section IS. */
.kicker-rail {
  margin-bottom: 0;
  padding-top: 0.5rem;
  padding-right: 1rem;
  max-width: 100%;
  text-wrap: balance;
}
.kicker-invert {
  /* Not var(--brand-text) on the dark band: see --brand-on-deep. */
  color: var(--brand-on-deep);
}

.doc-body > p {
  max-width: 64ch;
}

.doc-intro {
  color: var(--muted);
  font-size: 1.025rem;
  max-width: 60ch;
}

@media (max-width: 56rem) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .doc-body {
    border-left: none;
    padding-left: 0;
  }
  .kicker-rail {
    padding-top: 0;
    margin-bottom: 0.25rem;
  }
}

/* --------------------------------------------------------------- lists */

.plain {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.plain li {
  position: relative;
  padding-left: 2rem;
  max-width: 62ch;
  color: var(--muted);
}
.plain b {
  color: var(--ink);
  font-weight: 500;
}

/* A refusal mark: two strokes, drawn in CSS so there is no sprite to load.
   §3 forbids colour as the only signal, so each line also says "no" in words. */
.x::before,
.x::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72rem;
  width: 0.85rem;
  height: 1.5px;
  background: var(--brand);
}
.x::before {
  transform: rotate(45deg);
}
.x::after {
  transform: rotate(-45deg);
}

.tick::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(40deg);
}

/* --------------------------------------------------------------- spec list */

.spec {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.spec > li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.spec-n {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.22rem;
}
.spec h3 {
  margin-bottom: 0.4rem;
}
.spec p:not(.spec-n) {
  color: var(--muted);
  max-width: 58ch;
}

@media (max-width: 40rem) {
  .spec > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

/* --------------------------------------------------------------- stages */

/* Three phases: stacked on a phone, three across on a desktop, and never
   two-and-one. auto-fit used to wrap the third phase onto its own row and
   leave an empty cell beside it; the column count is now explicit, and the
   plan section's column is widened (below) so three across has room. */
#plan .doc-body {
  max-width: none;
}
.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stages > li {
  background: var(--paper);
  padding: 1.35rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.band-alt .stages > li {
  background: var(--card);
}
.stage-n {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.stages p:not(.stage-n) {
  font-size: 0.92rem;
  color: var(--muted);
}
@media (min-width: 68rem) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ the ledger

   The one bold moment, and the page's argument. A full-bleed dark band holding
   a literal handover manifest: what we do on the left, what the client is left
   holding on the right, set in Source Code Pro because it is a register rather
   than prose. Deliberately the only inverted section. */

.ledger {
  background: var(--deep);
  color: var(--deep-ink);
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--deep-line);
  /* Same nested-hexagon quote, white at 5%, anchored off the bottom-right. */
  background-image: var(--hex-art-deep);
  background-repeat: no-repeat;
  background-position: right -16rem bottom -18rem;
  background-size: 48rem;
}
.ledger h2 {
  color: #fff;
}
.ledger .doc-body {
  border-left-color: var(--deep-line);
  max-width: 76ch;
}

.doc-intro-invert {
  color: var(--deep-muted);
}

.ledger-table {
  margin-top: 1.25rem;
  border: 1px solid var(--deep-line);
  border-radius: var(--r-card);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 14fr);
  gap: 0 1.5rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--deep-line);
}

.ledger-head {
  background: var(--deep-card);
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--deep-muted);
}
.ledger-head span:last-child {
  color: var(--brand-on-deep);
}

.ledger-row {
  line-height: 1.5;
  color: var(--deep-muted);
  transition: background var(--motion-fast) var(--ease);
}
.ledger-row:hover {
  background: var(--deep-card);
}
.ledger-row-last {
  border-bottom: none;
}

/* The right column is the point, so it reads at full strength with a green
   left edge — §3's "covered" colour, used literally. */
.ledger-row span:last-child {
  color: var(--deep-ink);
  padding-left: 1rem;
  border-left: 2px solid var(--green);
}
.ledger-row b {
  display: block;
  color: #fff;
  font-weight: 600;
}

.ledger-note {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-family: var(--f-head);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}

@media (max-width: 48rem) {
  .ledger-head {
    display: none;
  }
  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
  .ledger-row span:last-child {
    padding-left: 0.85rem;
  }
}

/* --------------------------------------------------------------- partners */

.partners {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.partners-label {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
/* Names, not logo files — no vendor marks are in this repository, and a
   redrawn vendor logo is a trademark problem. Swap in the real badge set
   from centerlogic.com when the assets are to hand. */
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.partner-list li {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  color: var(--muted);
  background: var(--paper);
}
.band-alt .partner-list li {
  background: var(--card);
}

/* --------------------------------------------------------------- quotes */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.quotes blockquote {
  margin: 0;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quotes blockquote p {
  font-family: var(--f-head);
  font-size: 1.05rem;
  line-height: 1.45;
}
.quotes footer {
  display: flex;
  flex-direction: column;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.quotes cite {
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
}
.quotes footer span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- form */

.band-talk {
  background: var(--card);
  border-bottom: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
  max-width: 44rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}
.field label {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition:
    border-color var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--muted);
}
.field input:focus-visible,
.field textarea:focus-visible {
  background: var(--card);
  border-color: var(--ink);
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* §3 again: never colour alone. An invalid field gets a red border AND the
   reason in words below it. */
.err {
  font-family: var(--f-accent);
  font-size: 0.82rem;
  color: var(--brand-text);
  min-height: 0;
}
.field.bad input,
.field.bad textarea {
  border-color: var(--brand);
}

/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs but fill positioned ones, and a real visitor never reaches it:
   aria-hidden on the wrapper and tabindex="-1" on the input. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-status {
  font-family: var(--f-accent);
  font-size: 0.9rem;
  color: var(--muted);
}
.form-status.ok {
  color: var(--green);
  font-weight: 700;
}
.form-status.bad {
  color: var(--brand-text);
  font-weight: 700;
}

.form-fine {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 56ch;
}

/* The whole form swaps for a confirmation once it has been sent, so nobody
   wonders whether to press the button again. */
.form.sent > *:not(.form-sent) {
  display: none;
}
/* No accent rail down the left edge. A thick coloured border on one side of a
   rounded card is the clearest tell of generated UI — and §3 forbids colour as
   the only signal regardless, so the confirmation is marked by a tick glyph and
   by its words, both of which survive with no colour at all. */
.form-sent {
  display: none;
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.form.sent .form-sent {
  display: block;
}
.form-sent h3 {
  margin-bottom: 0.4rem;
}
/* The confirmation's mark: the brand hexagon around a check, drawn when the
   form gives way to it. A check SHAPE plus the words, so nothing here
   depends on colour. */
.seal {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.9rem;
}
.seal path {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.seal-edge {
  stroke: var(--brand);
  stroke-dasharray: 150;
}
.seal-check {
  stroke: var(--ink);
  stroke-dasharray: 36;
}
.form-sent p {
  color: var(--muted);
  max-width: 56ch;
}

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--deep);
  color: var(--deep-muted);
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2.25rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 26ch;
}
.footer-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.footer-tag {
  font-size: 0.875rem;
}

.footer-label {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-col a {
  color: var(--deep-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer :where(a):focus-visible {
  outline-color: #fff;
}

.footer-legal {
  border-top: 1px solid var(--deep-line);
  padding-block: 1.35rem;
  font-size: 0.82rem;
}
/* Links in the legal line (the phone and address on the 404 and thank-you
   pages). Without this they took the page's link colour, which is drawn for
   a light ground and fails against this one. Underlined, so they still read
   as links beside plain text of the same colour. */
.footer-legal a {
  color: var(--deep-muted);
}
.footer-legal a:hover {
  color: #fff;
}

/* A page with one screen of content (404, thank-you): the body is a column
   as tall as the window and the content takes what is left, so the footer
   sits on the bottom edge and not partway up with page showing beneath it.
   These pages carry the one-line footer only, so it drops the tall top
   padding and the rule that separates it from the columns on the main page. */
.page-short {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-short main {
  flex: 1;
  display: grid;
}
.page-short .footer {
  padding-top: 0;
}
.page-short .footer-legal {
  border-top: 0;
}

/* ------------------------------------------------- storybrand pieces */

/* The villain, named. One line, set at heading scale so it lands as a beat in
   the middle of body copy rather than as another paragraph.

   The rule above it rather than beside it, deliberately: a thick coloured bar
   down the left of a block is the single most recognisable tell of generated
   UI, and it reads as a card accent even when there is no card. A short brand
   hairline over the line reads as a typographic divider instead, which is what
   this actually is. */
.pull {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 28ch;
  padding-top: 1.15rem;
  border-top: 2px solid var(--brand);
  margin-block: 1.1rem 0.75rem;
}

/* Stakes: what failure looks like beside what success looks like. Side by side
   so the comparison is the point, and never colour alone — each column is
   labelled in words and the two markers differ in shape. */
.stakes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stake {
  background: var(--paper);
  padding: 1.25rem 1.35rem 1.5rem;
}
.band-alt .stake {
  background: var(--card);
}
.stake-label {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.stake-bad .stake-label {
  color: var(--brand-text);
}
.stake-good .stake-label {
  color: var(--green);
}
.stake ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stake li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
/* A dash for the losses, a chevron for the wins: different shapes, so the two
   columns still read apart with no colour at all. */
.stake-bad li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.7rem;
  height: 1.5px;
  background: var(--brand);
}
.stake-good li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.5rem;
  width: 0.35rem;
  height: 0.65rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(40deg);
}

/* A quieter note closing a block: our own position, a caveat, an invitation. */
.aside {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60ch;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* StoryBrand repeats the direct call to action rather than saving it for the
   end. These sit inside a section, after the argument that earns them. */
.inline-cta {
  margin-top: 0.75rem;
}

/* An h3 opening a second idea inside one section. */
.sub {
  margin-top: 1.1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

/* The transitional call to action: the real discovery questions. Numbered
   because they are asked in that order, and set in the heading face because
   they are what a reader is meant to take away without talking to anyone. */
.questions {
  counter-reset: q;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.questions li {
  counter-increment: q;
  position: relative;
  padding-left: 2.5rem;
  max-width: 58ch;
  font-family: var(--f-head);
  font-size: 1.05rem;
  line-height: 1.4;
}
.questions li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.55rem;
  /* Pointy-top hexagon, the logo's own shape: height = width x 2/sqrt(3). */
  height: 1.79rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-fg);
  background: var(--brand);
}

/* A phase label carries its number inline, so the phase name stays readable
   and the number needs no column of its own. */
.stages-numbered .stage-n {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.stages-numbered .stage-n span {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-text);
  letter-spacing: 0;
  text-transform: none;
}

/* The honest small print under the agreement. Not hidden, only quieter. */
.ledger-fine {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--deep-muted);
}

/* ------------------------------------------------------- the story cast

   The persona and feeling choosers: real radio inputs inside label cards, so
   the whole thing is a native radiogroup — keyboard, screen reader and no-JS
   correct before a line of script runs. The input is visually hidden but NOT
   display:none, so it keeps focus and the :checked state drives the card. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cast {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--ease),
    background var(--motion) var(--ease),
    transform var(--motion-fast) var(--ease);
}
.pcard:active {
  transform: scale(0.99);
}
.band-alt .pcard,
.band .pcard {
  background: var(--paper);
}
.band-alt .cast-grid .pcard {
  background: var(--card);
}
.pcard:hover {
  border-color: var(--muted);
}

.pcard input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pcard-t {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink);
}
.pcard-d {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Selected: the brand as the selection colour, §3's own rule, with a tick so
   the state survives without colour. The second selector is there for
   weight: the band rules above set a ground with three classes, and without
   it a picked card on a .band-alt chapter kept that ground and lost its
   tint. */
.pcard:has(input:checked),
.band-alt .cast-grid .pcard:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-10);
}
.pcard:has(input:checked) .pcard-t {
  color: var(--brand-text);
}
.pcard:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 0.4rem;
  height: 0.75rem;
  border-right: 2px solid var(--brand-text);
  border-bottom: 2px solid var(--brand-text);
  transform: rotate(40deg);
}

.pcard:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* A card with a title and no description (the "who is it for" set) centres
   its one line, so a row of them does not look top-heavy. */
.pcard:not(:has(.pcard-d)) {
  justify-content: center;
  min-height: 3.5rem;
  padding-right: 2.2rem;
}

/* The "Someone else" input, revealed under the cards. */
.who-other {
  margin-top: 0.9rem;
  max-width: 26rem;
}
.band-alt .who-other input {
  background: var(--paper);
}

/* Our reply to a pick: one sentence under the cards, in the heading face,
   marked with the brand hexagon so it reads as us answering. app.js adds
   .show when there is a reply and .fade to bring it in over 400ms; it then
   stays put. In story mode the slot keeps its height while empty, so the
   reply arriving does not push anything below it. */
.reply {
  display: none;
  position: relative;
  padding-left: 1.5rem;
  max-width: 60ch;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ink);
}
.reply.show,
html.story .reply {
  display: block;
}
html.story .reply {
  min-height: 3.1rem;
}
.reply.show::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42rem;
  width: 0.62rem;
  height: 0.72rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--brand);
}
/* The reply is the page answering: uncovered from the left, the way it would
   be said, its hexagon first. Once, when it arrives (app.js removes .fade). */
.reply.fade {
  animation: reply-in 620ms var(--ease);
}
@keyframes reply-in {
  from {
    opacity: 0.4;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@media (max-width: 40rem) {
  html.story .reply {
    min-height: 4.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reply.fade {
    animation: none;
  }
}

/* Our answer (#fit): the verdict on the pain they picked. Same device as .pull, a
   short brand hairline over a line set at heading scale. Not shown until
   there is a pick. */
.verdict {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.3;
  max-width: 36ch;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
}
.verdict:empty {
  display: none;
}

/* The rule the verdict comes from. Tinted AND tagged "Your case" in words,
   because colour is never the only signal. */
.spec > li.match {
  margin-inline: -1rem;
  padding-inline: 1rem;
  background: var(--brand-10);
  border-radius: var(--r-ctl);
  border-bottom-color: transparent;
}
.spec p.spec-tag {
  margin-bottom: 0.3rem;
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.spec > li.match p:not(.spec-n):not(.spec-tag) {
  color: var(--ink);
}

/* A group of blocks that flows like the document column it sits in. Used
   for content that only exists in the one-page version, and for the six
   questions, so wrapping them changes nothing about how they read. */
.flow {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.flow > p {
  max-width: 64ch;
}

/* ------------------------------------------------- the close (#talk) */

/* What happens next, in three lines. Numbered like the rules in #fit,
   because it is the same kind of list: short, ordered, ours. */
.plan3 {
  counter-reset: p3;
  display: flex;
  flex-direction: column;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}
.plan3 li {
  counter-increment: p3;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-head);
  font-size: 1.075rem;
  line-height: 1.4;
}
.plan3 li::before {
  content: counter(p3, decimal-leading-zero);
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.2rem;
}
/* Each step: what it is, then one quiet line on what happens in it. */
.plan3-t {
  display: block;
  font-weight: 600;
}
.plan3-d {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
/* The price: named once, in the step that buys it, and not whispered. */
.plan3-d b {
  font-weight: 600;
  color: var(--ink);
}
/* The close (#talk): the form is step one, and the rest of the process stands
   beside it (wide) or after it (narrow). The chapter's column is let out to
   the shell so there is room for both; its paragraphs keep their own
   measures. */
#talk .doc-body {
  max-width: none;
}
.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 0.5rem;
}
@media (min-width: 68rem) {
  .talk-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
    gap: 2.5rem;
    align-items: start;
  }
}
/* Now: the one thing to do, framed so it reads as the action. */
.talk-now {
  max-width: 44rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--muted);
  border-radius: var(--r-card);
}
.talk-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: baseline;
}
.talk-n {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--brand-text);
}
.talk-h {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}
.talk-lead {
  margin-top: 0.3rem;
  color: var(--muted);
}
.talk-now .form {
  margin-top: 1.35rem;
}
/* Later: steps two to four, smaller and quieter than the form. */
.talk-after {
  max-width: 44rem;
}
.talk-after-h {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.plan3-after {
  counter-reset: p3 1;
}
.plan3-after li {
  grid-template-columns: 2.25rem minmax(0, 1fr);
  font-size: 1rem;
}
.plan3-after .plan3-d {
  font-size: 0.9rem;
}
.talk-after .own-line {
  margin-top: 1.1rem;
  font-size: 0.95rem;
}

.own-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.35rem;
}

.nowrap {
  white-space: nowrap;
}

/* The price: once, after what it buys, in the heading face so it is plain
   to see and not dressed up. */
.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 1.75rem;
}
.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--brand);
}
.check label {
  font-size: 0.95rem;
  cursor: pointer;
}

.form-promise {
  max-width: 56ch;
  font-size: 0.95rem;
}

.six-link {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

/* The client quote that does not exist yet. Dashed and labelled so nobody
   mistakes an empty slot for a design choice, or ships it by accident. */
.quote-slot {
  max-width: 44rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--muted);
  border-radius: var(--r-card);
  font-size: 0.92rem;
  color: var(--muted);
}
.quote-slot-label {
  margin-bottom: 0.35rem;
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------------------------------------------------- the chaptered story

   Story mode is a class on <html>, added by app.js (owner decision,
   2026-11-20: the page tells itself one chapter at a time, fading in place,
   instead of growing into an endless scroll). Without the class — no JS, a
   crawler, or the "one page" toggle — every chapter is simply a section and
   the page reads top to bottom as before. */

html.story .chapter {
  display: none;
}
html.story .chapter.on {
  display: block;
  animation: ch-in var(--motion) var(--ease);
}
html.story .chapter.leaving {
  animation: ch-out var(--motion-fast) var(--ease) forwards;
}
@keyframes ch-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes ch-out {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.story .chapter.on,
  html.story .chapter.leaving {
    animation: none;
  }
}

/* A chapter is a full viewport beat: roomy, and the band borders read as the
   page edge rather than a seam between stacked sections. */
html.story .chapter {
  border-bottom: none;
  min-height: calc(100vh - 4rem);
}

/* What left the story. Still in the DOM, still the whole of the one-page
   version; in story mode it simply is not a chapter. */
html.story .onepage {
  display: none;
}

/* The problem blocks, one-page version only: all five, each under its own
   heading. */
.probx + .probx {
  margin-top: 1.25rem;
}
.probx h3 {
  margin-bottom: 0.4rem;
}
.probx p {
  color: var(--muted);
  max-width: 62ch;
}

/* ----------------------------------------------------- the story controls

   No fixed bar. app.js moves this nav to the end of the chapter being read,
   so Back and Continue sit where the reading stops, under a hairline. On a
   wide screen that is all it holds (the dots are in the left rail); where
   the rail has collapsed the dots sit between the two buttons and the row
   spreads to the column width. */

.storybar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.storybar:has(> .dots) {
  justify-content: space-between;
}

.storybtn {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  min-height: 2.25rem;
  padding: 0 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--motion) var(--ease),
    border-color var(--motion) var(--ease),
    color var(--motion) var(--ease),
    opacity var(--motion) var(--ease),
    transform var(--motion-fast) var(--ease);
}
.storybtn:hover:not(:disabled) {
  border-color: var(--ink);
}
.storybtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.storybtn-next {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}
.storybtn-next:hover:not(:disabled) {
  background: var(--brand-badge);
  border-color: var(--brand-badge);
}

/* The dots are the brand hexagon, tiny. Target stays 24px (§8); the shape
   inside is smaller. Each carries its chapter's short title: read out
   always, and shown beside the hexagon when the list stands in the rail. */
.dots {
  display: flex;
  gap: 0.1rem;
}
.dots li {
  display: block;
}
.dot {
  display: flex;
  align-items: flex-start;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.dot::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.7rem;
  margin: 0.4rem 0.45rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--line);
  transition: background var(--motion-fast) var(--ease);
}
.dot:hover::before {
  background: var(--muted);
}
.dot.on::before {
  background: var(--brand);
}
/* A dot ahead of an unanswered question: there, but not a way forward. Only
   the shape dims; its label stays readable. */
.dot:disabled {
  cursor: default;
}
.dot:disabled::before {
  opacity: 0.5;
}
.dot:disabled:hover::before {
  background: var(--line);
}
/* Between the buttons there is no room for words: the label is kept for
   screen readers and hidden from sight. */
.dot-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The dots in the left rail. On a wide screen app.js moves the list out of
   the bar and puts it straight after the chapter's kicker, so it stands
   under "Your story", stacked, and stays in view as the chapter scrolls.
   The grid gains a second row for it; the body spans both so its rule still
   runs the full height. */
.doc:has(> .dots) {
  grid-template-rows: auto 1fr;
}
.doc:has(> .dots) > .kicker-rail {
  grid-column: 1;
  grid-row: 1;
}
.doc:has(> .dots) > .doc-body {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.doc > .dots {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 5.5rem;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 0.75rem;
  margin-top: 0.9rem;
  /* The hexagon sits 0.45rem inside its 24px target; pull the column left
     so the shape, not the target, lines up under the kicker's first letter. */
  margin-left: -0.45rem;
}

/* In the rail the label shows: small and quiet, the current chapter in ink. */
.doc > .dots .dot-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: 0.78rem;
  line-height: 1.3;
  padding-top: 0.25rem;
  transition: color var(--motion-fast) var(--ease);
}
.doc > .dots .dot:hover:not(:disabled) .dot-label,
.doc > .dots .dot.on .dot-label {
  color: var(--ink);
}
.doc > .dots .dot.on .dot-label {
  font-weight: 600;
}

@media (max-width: 40rem) {
  .storybar {
    gap: 0.5rem;
  }
}

/* Between the buttons there are no labels, and chapters already read carry
   the same fill as the current one, so the current dot is told apart by
   size as well as by position. */
.storybar .dot.on::before {
  transform: scale(1.35);
}

/* Where the rail has collapsed the controls are being pressed by a thumb:
   44px tall. On a phone the row cannot hold Back, six dots and the longest
   label ("Tell us the rest") side by side, so the way forward takes a row
   of its own, full width, under Back and the dots. Same order as the
   markup, so the tab order still reads top to bottom. */
@media (max-width: 56rem) {
  .storybtn {
    min-height: 2.75rem;
  }
}
@media (max-width: 26rem) {
  .storybar:has(> .dots) {
    flex-wrap: wrap;
    row-gap: 0.9rem;
  }
  .storybar:has(> .dots) .storybtn-next {
    flex: 1 0 100%;
  }
}

/* The last chapter ends on the "Not ready to talk?" line, which already
   stands under a hairline; the controls after it do not draw a second one. */
#talk .six-link {
  max-width: none;
}
.six-link + .storybar {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ----------------------------------------------------- small story pieces */

.mode-line {
  margin-top: 1rem;
  font-size: 0.85rem;
}
.mode-line a {
  color: var(--muted);
}

/* ------------------------------------------- the six questions, alone

   "Not ready to talk?" opens the discovery questions by themselves, laid
   out as a sheet to print and write on. app.js puts .view-six on <html>;
   everything else on the page steps aside, and nothing asks for an email.
   Outside that view the two helper lines below are not shown, so the
   one-page version reads exactly as it did. */

.six-tools,
.six-contact {
  display: none;
}
html.view-six main > section:not(#questions),
html.view-six .footer {
  display: none;
}
html.view-six #questions {
  display: block;
  min-height: calc(100vh - 4rem);
  border-bottom: none;
}
html.view-six #questions .doc {
  grid-template-columns: minmax(0, 1fr);
}
html.view-six #questions .kicker-rail,
html.view-six #questions .doc-body > :not(.six) {
  display: none;
}
html.view-six #questions .doc-body {
  border-left: none;
  padding-left: 0;
}
html.view-six .reveal {
  opacity: 1;
  transform: none;
}
html.view-six .six .sub {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.14;
}
/* Room under each question to write an answer. */
html.view-six .questions li {
  max-width: none;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid var(--line);
}
html.view-six .six-contact {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
html.view-six .six-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

/* --------------------------------------------------------- 404 */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding-block: 5rem;
}
.notfound .code {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--brand-text);
}
.notfound p {
  color: var(--muted);
  max-width: 50ch;
}
.notfound .btn {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* --------------------------------- the 404 and thank-you pages

   Both are the hero's layout (their one section carries .hero, so the type,
   the actions and the opening sequence are the main page's own) with one
   picture above the headline. That picture is the page's one use of the
   hexagon, so the hero's large hairline hexagon is left out here, and so is
   the red rule under the headline: the picture is already the red on the
   page. The headline steps down a size, because the picture leads.

   404: the number, set in the heading face, its zero replaced by the mark's
   nested hexagons in the brand fill. The digits are there from the first
   frame; the hexagon is drawn between them, the missing piece arriving.

   Thank-you (sent.html, where a form post lands when the page's script did
   not run): the same seal the form shows in place when the script did run,
   larger, drawn as the page opens. */
.page-short .hero {
  display: grid;
  align-items: center;
  border-bottom: 0;
}
.page-short .hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1;
}
.page-short .hero h1::after {
  display: none;
}
.page-short .hero .lede {
  margin-top: 1.1rem;
  max-width: 50ch;
}
.seal-lg {
  --seal: clamp(4.75rem, 15vw, 7.5rem);
  width: var(--seal);
  height: var(--seal);
  margin-bottom: 1.75rem;
  /* The hexagon's left edge, not the box it is drawn in, lines up with the
     headline: the stroke begins 5.25 of the box's 56 units in. */
  margin-left: calc(var(--seal) * -0.094);
}
.seal-lg path {
  stroke-width: 3.5;
}
.seal-lg .seal-edge {
  animation: seal-edge 800ms var(--ease) 150ms backwards;
}
.seal-lg .seal-check {
  animation: seal-check 400ms var(--ease) 780ms backwards;
}
.lost-code {
  margin: 0 0 1.75rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(5.5rem, 19vw, 10.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  white-space: nowrap;
}
.lost-hex {
  height: 0.7em;
  width: auto;
  margin: 0 0.05em 0 0.07em;
  vertical-align: -0.02em;
  overflow: visible;
}
.lost-hex path {
  fill: none;
  stroke: var(--brand);
}
.lost-hex .outer {
  stroke-width: 52;
  stroke-dasharray: 1200;
  animation: hex-outer 900ms var(--ease) 150ms backwards;
}
.lost-hex .inner {
  stroke-width: 20;
  stroke-dasharray: 902;
  animation: hex-inner 900ms var(--ease) 380ms backwards;
}
@media print {
  .lost-hex path {
    stroke: #000;
  }
}

/* --------------------------------------------------------- reveal

   §7: reveals at --motion on --ease, and nothing animates at all under
   prefers-reduced-motion. One class, toggled by app.js through an
   IntersectionObserver; no inline style and no per-element delay. */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--motion) var(--ease),
    transform var(--motion) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* Delays too: a delayed entrance would otherwise sit hidden, then jump. */
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------- print */

@media print {
  /* Paper is white whatever the screen theme was: print from a dark session
     would otherwise put pale grey text on a white page. */
  :root {
    --paper: #fff;
    --card: #fff;
    --ink: #17171a;
    --muted: #5f5f6a;
    --line: #d7d7dc;
    --sunk: #ececef;
    --brand-text: #b01f26;
  }
  .masthead,
  .hero-actions,
  .talk-now,
  .form,
  .skip,
  .storybar,
  .doc > .dots,
  .six-tools,
  .quote-slot {
    display: none;
  }
  /* The printed sheet starts at the top of the page, not a band's padding
     down it. */
  html.view-six #questions {
    min-height: 0;
    padding-block: 0;
    background: #fff;
  }
  body {
    background: #fff;
    color: #000;
  }
  .ledger {
    background: #fff;
    color: #000;
  }
  .ledger h2,
  .ledger-row b,
  .ledger-note {
    color: #000;
  }
}

/* ============================================================================
   Measured contrast — DESIGN.md §8 floor is 4.5:1 for text, 3:1 for UI.
   Recomputed with scripts/check-contrast.mjs; re-run it if any token moves.

     17.00  ink on paper              #17171A / #F9F9FA
      5.99  muted text on paper       #5F5F6A / #F9F9FA
      6.30  muted text on card        #5F5F6A / #FFFFFF
      6.50  brand text on paper       #B01F26 / #F9F9FA
      6.84  brand text on card        #B01F26 / #FFFFFF
      4.57  button label on fill      #FFFFFF / #DD3333
      5.05  green tick on paper       #1F7A4F / #F9F9FA
     15.87  deep ink on deep          #ECECF1 / #121216
      8.49  deep muted on deep        #AEAEB8 / #121216
      5.61  brand on deep             #E8615F / #121216   <- not #DD3333 (4.09)
      7.75  dark-theme brand text     #F08A8A / #121216
   ========================================================================= */

/* ============================================================================
   Motion: five authored moments (owner decision, 2026-11-23)
   ----------------------------------------------------------------------------
   One piece of motion for each moment of the page, each with a job:

     1. Hero        the mark draws itself as the page opens, once
     2. A pick      the check is drawn, the other cards settle back, and the
                    reply is uncovered as if spoken (.reply.fade, above)
     3. Chapters    the rail dots sit on a thread; moving on runs the brand
                    fill to the next dot, and the chapter arrives from the
                    direction of travel
     4. Our answer  what they said, the verdict, then a marker drops onto the
                    rule it belongs under and that rule lights
     5. The form    the story is typed into the message box (app.js), and the
                    sent state draws the mark around a check

   Rules kept throughout. Every keyframe animates FROM a hidden state TO the
   ordinary style of the element, so with no animation support the page is
   simply there. Durations are the 150/240ms of DESIGN.md section 7 for
   feedback and state; only the two authored sequences (1 and 4) run longer.
   Nothing lowers text contrast: cards "step back" by thinning their outline,
   never by fading their words. prefers-reduced-motion collapses all of it
   (the block above this one).
   ========================================================================= */

::selection {
  background: var(--brand);
  color: var(--brand-fg);
}

/* ---- 1. Hero. Plays on load; app.js adds .intro-done to <html> afterwards
   (or at once, when the visitor did not start on the hero) so that coming
   Back to the hero never replays an opening. */
html:not(.intro-done) .hero-hex .outer {
  animation: hex-outer 1000ms var(--ease) backwards;
}
html:not(.intro-done) .hero-hex .inner {
  animation: hex-inner 1000ms var(--ease) 220ms backwards;
}
@keyframes hex-outer {
  from {
    stroke-dashoffset: 1200;
  }
}
@keyframes hex-inner {
  from {
    stroke-dashoffset: 902;
  }
}
html:not(.intro-done) .hero h1 {
  animation: hero-rise 560ms var(--ease) 160ms backwards;
}
@keyframes hero-rise {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.4em);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}
.hero h1::after {
  transform-origin: left center;
}
html:not(.intro-done) .hero h1::after {
  animation: sign 480ms var(--ease) 640ms backwards;
}
@keyframes sign {
  from {
    transform: scaleX(0);
  }
}
html:not(.intro-done) .hero .lede {
  animation: settle 400ms var(--ease) 760ms backwards;
}
html:not(.intro-done) .hero .hero-actions {
  animation: settle 400ms var(--ease) 860ms backwards;
}
html:not(.intro-done) .hero .mode-line,
html:not(.intro-done) .hero .hero-foot {
  animation: settle 400ms var(--ease) 960ms backwards;
}
@keyframes settle {
  from {
    opacity: 0;
  }
}

/* ---- 2. A pick. */
.pcard:has(input:checked)::after {
  animation: tick 320ms var(--ease) 60ms backwards;
}
@keyframes tick {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
/* Once one card is picked, the rest step back by their outline: the hairline
   thins out and the picked card is left as the one drawn thing in the set.
   A card's ground is the band's own colour, so there is no fill to take
   away, and their words keep full contrast. Hover or focus draws one back. */
.cast-grid:has(input:checked) .pcard:not(:has(input:checked)) {
  border-color: color-mix(in srgb, var(--line) 45%, transparent);
}
.cast-grid:has(input:checked) .pcard:not(:has(input:checked)):hover,
.cast-grid:has(input:checked) .pcard:not(:has(input:checked)):has(input:focus-visible) {
  border-color: var(--muted);
}
/* Continue waits in neutral and takes the brand fill when the chapter has
   its answer, so the way forward visibly opens. */
.storybtn:active:not(:disabled) {
  transform: translateY(1px);
}
.storybtn-next:disabled {
  opacity: 1;
  background: var(--sunk);
  border-color: var(--line);
  color: var(--muted);
}

/* ---- 3. Chapters. The thread exists only in the rail (wide screens), where
   the dots are stacked at an even pitch: each dot is 1.5rem tall with a
   0.2rem gap, so five steps of 1.7rem join six dots, and the fill is one
   line scaled to the current dot. app.js writes data-at on the list. */
.doc > .dots::before,
.doc > .dots::after {
  content: "";
  position: absolute;
  left: calc(0.75rem - 1px);
  top: 0.75rem;
  width: 2px;
  height: 8.5rem;
  background: var(--line);
}
.doc > .dots::after {
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 460ms var(--ease);
}
.doc > .dots[data-at="2"]::after {
  transform: scaleY(0.2);
}
.doc > .dots[data-at="3"]::after {
  transform: scaleY(0.4);
}
.doc > .dots[data-at="4"]::after {
  transform: scaleY(0.6);
}
.doc > .dots[data-at="5"]::after {
  transform: scaleY(0.8);
}
.doc > .dots[data-at="6"]::after {
  transform: scaleY(1);
}
.doc > .dots li {
  position: relative;
  z-index: 1;
}
/* Chapters already passed keep the fill; the current one takes it as the
   thread arrives, with a small landing. */
.dot.done::before {
  background: var(--brand);
}
.doc > .dots .dot.on::before {
  transition-delay: 300ms;
  animation: dot-land 420ms var(--ease) 300ms backwards;
}
@keyframes dot-land {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
/* Going Back, the chapter comes down from above instead of up from below. */
html.story.dir-back .chapter.on {
  animation-name: ch-in-back;
}
@keyframes ch-in-back {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ---- 4. Our answer. "You said" restates the pick; the sequence below runs
   only when app.js marks the chapter .sorting: the first time it is shown
   for a given pick, not on every return to it. */
.said {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}
.said-k {
  font-family: var(--f-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.said-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--brand);
  border-radius: var(--r-chip);
  background: var(--brand-10);
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.said-chip::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.7rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--brand);
}
/* The marker: the same hexagon, beside the number of the rule the pick
   belongs under. It stays there; under .sorting it drops into place. */
.spec > li.match .spec-n::after {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.7rem;
  margin-left: 0.5rem;
  vertical-align: -0.08rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--brand);
}
.sorting .said {
  animation: arrive 360ms var(--ease) 80ms backwards;
}
.sorting .verdict {
  animation: say 620ms var(--ease) 360ms backwards;
}
.sorting .spec > li.match .spec-n::after {
  animation: drop 520ms var(--ease) 900ms backwards;
}
.sorting .spec > li.match {
  animation: lit 360ms var(--ease) 1300ms backwards;
}
.sorting .spec > li.match .spec-tag {
  animation: arrive 300ms var(--ease) 1420ms backwards;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes say {
  from {
    opacity: 0.4;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-4.5rem);
  }
}
@keyframes lit {
  from {
    background-color: transparent;
  }
}

/* ---- 5. The form. Typing the story in is app.js; this is the sent state. */
.form.sent .form-sent {
  animation: arrive 420ms var(--ease) backwards;
}
.form.sent .seal-edge {
  animation: seal-edge 700ms var(--ease) 120ms backwards;
}
.form.sent .seal-check {
  animation: seal-check 360ms var(--ease) 640ms backwards;
}
@keyframes seal-edge {
  from {
    stroke-dashoffset: 150;
  }
}
@keyframes seal-check {
  from {
    stroke-dashoffset: 36;
  }
}

/* [hidden] must win over the display these set, and the hero art is not for
   paper. */
.said[hidden] {
  display: none;
}
@media print {
  .hero-hex {
    display: none;
  }
}
