/* contextowners.com: layout and brand primitives.
   brand.css is lazulix.co's token file, copied unchanged
   (lazulix_site/static/css/brand.css). The primitives below (wordmark, accent
   bar, section label, card, badge, column header, compare table, takeaway,
   buttons, header, footer) are lifted from lazulix.co's site.css; the
   homepage's own parts follow them. Colours, radii and shadows come from the
   tokens only: see docs/BRAND.md before adding anything here. */

/* ---- Base ---------------------------------------------------------------- */

/* The brand gradient turned to run top to bottom, for vertical marks
   (transition connectors, the Frame chart on phones). Same stops as --lz-gradient. */
:root { --gradient-down: linear-gradient(180deg, var(--lz-blue-soft) 0%, var(--lz-blue) 33%, var(--lz-pink) 67%, var(--lz-violet) 100%); }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--lz-heading); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

/* Small blue text on the page background uses blue-strong (7.1:1); Lazulix
   Blue is kept for white surfaces, where it passes AA. */
a { color: var(--lz-blue-strong); text-underline-offset: 3px; }
.card a { color: var(--lz-blue); }

:focus-visible { outline: 2px solid var(--lz-blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--lz-surface); color: var(--lz-ink); padding: 8px 16px;
  border-radius: var(--lz-radius-md); border: 1px solid var(--lz-border);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { width: 18px; height: 18px; flex: none; }

/* ---- Wordmark (BRAND.md section 4): footer only on this site --------------- */

.lz-wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--lz-font);
  font-weight: 300;
  color: var(--lz-ink-2);
  line-height: 1;
  letter-spacing: 0.005em;
  padding-bottom: 0.17em;
  text-decoration: none;
}
.lz-wordmark-z {
  font-weight: 800;
  font-size: 1.1em;
  line-height: 0;
  background: var(--lz-gradient-z);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lz-wordmark::after {
  content: "";
  position: absolute;
  left: -0.66em;
  right: -0.04em;
  bottom: 0;
  height: 0.12em;
  background: var(--lz-gradient);
}
/* Left-aligned wordmarks leave room for the underline's overhang. */
.lz-wordmark--footer { font-size: 24px; margin-left: 0.75em; }

/* ---- Typography ------------------------------------------------------------ */

.display {
  font-size: clamp(2.25rem, 5.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 24ch;
}
.hl { color: var(--lz-blue); }
h3, .h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }

.lede { font-size: 20px; line-height: 1.5; max-width: 40em; }
.prose { max-width: 46rem; }
.prose p { font-size: 18px; line-height: 1.6; }
.prose p + p { margin-top: 16px; }
.prose--after-pull { margin-top: 32px; }
.prose--after-card { margin-top: 32px; }
.muted { color: var(--lz-text-muted); }
strong { color: var(--lz-ink); font-weight: 700; }

/* The opening line of a section: larger, ink. */
.prose p.statement {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.4;
  color: var(--lz-ink); letter-spacing: -0.01em;
}
.prose p.statement + p { margin-top: 20px; }

/* One contrast line set large, between a section's text and its cards. */
.big-line {
  margin: 40px 0;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--lz-ink);
}

/* Eyebrow + hairline (SectionLabel). Here it is each section's h2. */
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4; color: var(--lz-blue-strong);
  margin-bottom: 24px;
}
.section-label::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--lz-border); }
.section-label--slate { color: var(--lz-slate); }

/* AccentBar: two solid halves, blue then pink. */
.accent-bar {
  display: block; width: 160px; height: 6px; border-radius: 999px; margin-top: 20px;
  background: linear-gradient(90deg, var(--lz-blue) 0 50%, var(--lz-pink) 50% 100%);
}

/* Pull quote: one contrast line per section. */
.pull {
  margin-top: 40px; padding-left: 24px; border-left: 4px solid var(--lz-blue);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.35;
  color: var(--lz-ink); max-width: 36em;
}

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.more .icon { transition: transform .15s ease; }
.more:hover .icon { transform: translateX(3px); }

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--lz-radius-md);
  font: 600 16px/1.2 var(--lz-font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--lz-primary); color: var(--lz-surface); }
.btn--primary:hover { filter: brightness(0.92); }
.btn--secondary { background: var(--lz-surface); color: var(--lz-ink); border-color: var(--lz-border); }
.btn--secondary:hover { filter: brightness(0.96); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Header: the site's own name, Inter 700 in ink. No logo. --------------- */

.site-header { background: var(--lz-page); border-bottom: 1px solid var(--lz-border); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 16px; padding-bottom: 16px;
}
.site-name {
  color: var(--lz-ink); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
  text-decoration: none; line-height: 1.2;
}
.site-name:hover { text-decoration: underline; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (min-width: 640px) { .site-nav { gap: 4px 24px; } }
.site-nav a {
  color: var(--lz-ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 0;
}
.site-nav a:hover { color: var(--lz-ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--lz-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lz-blue); }
@media (min-width: 640px) { .site-header .container { min-height: 72px; } }

/* ---- Sections -------------------------------------------------------------- */

.hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 96px 0 80px; } }
.hero .lede { margin-top: 28px; }
.hero--short { padding-bottom: 96px; }
.hero .lede--follow { margin-top: 16px; font-size: 18px; color: var(--lz-ink-2); }

/* The homepage hero: the text, then the golden context figure; side by side when wide.
   Below 1000px (one column) the hero is as it was before v2: every rule that
   changes its look sits in the min-width: 1000px block. */
.hero-grid { display: grid; gap: 48px; }
.hero-grid .display { text-wrap: balance; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
  .hero--figure { padding-top: 72px; }
  /* As large as the column allows with "Humans own the context." still on one
     line: the line is 12.2em wide, the column (container - 128px) x 0.575.
     About 49px at 1200px and wider, 41px at 1024px. */
  .hero-grid .display { max-width: none; font-size: clamp(40px, calc((min(100vw, 1200px) - 128px) * 0.046), 56px); }
}

/* The three-part index under the lead: desktop only. */
.part-index { display: none; }
@media (min-width: 1000px) {
  .part-index { display: block; margin-top: 32px; }
  .part-index li + li { border-top: 1px solid var(--lz-line); }
  .part-index a {
    display: flex; gap: 16px; align-items: baseline; padding: 12px 0;
    text-decoration: none; font-size: 17px; line-height: 1.4; color: var(--lz-ink-2);
  }
  .part-index-num { flex: none; min-width: 12px; font-size: 18px; font-weight: 700; color: var(--lz-blue); }
  .part-index-name { font-weight: 600; color: var(--lz-ink); }
  .part-index a:hover .part-index-name { text-decoration: underline; text-decoration-color: var(--lz-blue); }
}

/* ---- Golden context figure: the LinkedIn visual, as HTML -------------------- */

.gc-figure {
  --gc-ai: 180px;
  margin: 0; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 620px; justify-self: center;
}
@media (min-width: 640px) { .gc-figure { --gc-ai: 240px; } }

.gc-panel {
  width: 100%; background: var(--lz-blue-tint);
  border-radius: var(--lz-radius-card) var(--lz-radius-card) 0 0;
  padding: 20px 16px 16px;
}
@media (min-width: 640px) { .gc-panel { padding: 28px 28px 20px; } }
.gc-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.gc-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--lz-ink); }
.gc-tags {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lz-blue-strong);
}
.gc-sub { margin-top: 6px; font-size: 16px; color: var(--lz-ink-2); }

.gc-owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.gc-owner, .gc-deliverables {
  display: flex; align-items: center; gap: 14px;
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-lg); padding: 14px 16px;
}
@media (max-width: 479px) {
  .gc-owner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
}
.gc-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--lz-ink); }
.gc-role { display: block; font-size: 14px; color: var(--lz-slate); }

/* The panel narrows to the width of the AI bar. */
.gc-funnel {
  width: 100%; height: 56px; background: var(--lz-blue-tint);
  clip-path: polygon(0 0, 100% 0, calc(50% + var(--gc-ai) / 2) 100%, calc(50% - var(--gc-ai) / 2) 100%);
}

/* AI: the one gradient element in the view. White 800 at 22px is large text (3:1). */
.gc-ai {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: var(--gc-ai); height: 56px; border-radius: var(--lz-radius-md);
  background: var(--lz-gradient); box-shadow: var(--lz-shadow-card);
  color: var(--lz-surface); font-size: 22px; font-weight: 800; letter-spacing: 0.01em;
}
.gc-ai .icon { width: 22px; height: 22px; }

.gc-arrow { width: 16px; height: 44px; margin: 4px 0; fill: none; stroke: var(--lz-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gc-deliverables { width: min(100%, 420px); border: 2px solid var(--lz-blue); padding: 16px 24px; }

.gc-caption { margin-top: 20px; max-width: 34em; text-align: center; font-size: 14px; color: var(--lz-slate); }

/* Desktop: at most 440px wide and 480px tall, so the two hero columns match. */
@media (min-width: 1000px) {
  .hero-grid .gc-figure { --gc-ai: 200px; max-width: 440px; }
  .hero-grid .gc-panel { padding: 18px 18px 14px; }
  .hero-grid .gc-title { font-size: 19px; }
  .hero-grid .gc-tags { font-size: 11px; }
  .hero-grid .gc-sub { margin-top: 4px; font-size: 14px; }
  .hero-grid .gc-owners { gap: 10px; margin-top: 14px; }
  .hero-grid .gc-owner { gap: 12px; padding: 8px 12px; }
  .hero-grid .gc-name { font-size: 17px; }
  .hero-grid .gc-funnel { height: 28px; }
  .hero-grid .gc-ai { height: 48px; font-size: 20px; }
  .hero-grid .gc-arrow { height: 32px; margin: 2px 0; }
  .hero-grid .gc-deliverables { padding: 10px 20px; }
  .hero-grid .gc-caption { margin-top: 12px; font-size: 13px; }
}

/* ---- The work changes: less, more ------------------------------------------- */

.shift { display: grid; gap: 12px; margin: 32px 0; }
@media (min-width: 760px) { .shift { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.shift-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-lg); padding: 16px 20px;
  font-size: 17px; color: var(--lz-ink-2);
}
.shift-item--more { background: var(--lz-blue-tint); border-color: transparent; color: var(--lz-ink); font-weight: 600; }
.shift-label {
  flex: none; min-width: 64px; padding: 4px 12px; border-radius: 999px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lz-slate); color: var(--lz-surface);
}
.shift-item--more .shift-label { background: var(--lz-blue); }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section + .section, .hero + .section { padding-top: 0; }

.grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .grid { gap: 32px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.prose + .grid { margin-top: 40px; }


/* ---- Card ------------------------------------------------------------------ */

.card {
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-card); box-shadow: var(--lz-shadow-card);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 32px; } }
@media (min-width: 900px) { .card { padding: 40px; } }
.card h3, .card h4 { margin: 20px 0 8px; }
.card h4 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.diagram-card + .card { margin-top: 32px; }

.prose + .card, .prose + .diagram-card { margin-top: 40px; }
.diagram-card { padding: 12px; }
@media (min-width: 640px) { .diagram-card { padding: 32px; } }
@media (min-width: 1100px) { .diagram-card { padding: 28px; } }

/* ---- IconBadge ------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; color: var(--lz-surface);
  background: var(--lz-blue);
}
.badge--soft {
  width: 40px; height: 40px; border-radius: var(--lz-radius-sm);
  background: color-mix(in srgb, var(--lz-blue) 10%, transparent); color: var(--lz-blue);
}
.badge--pink:not(.badge--soft) { background: var(--lz-pink); }
.badge--soft.badge--pink { background: color-mix(in srgb, var(--lz-pink) 10%, transparent); color: var(--lz-pink); }
.badge--soft.badge--slate { background: color-mix(in srgb, var(--lz-slate) 10%, transparent); color: var(--lz-slate); }

.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lz-blue); color: var(--lz-surface); font-weight: 700;
}

/* ---- Diagrams: inline SVG, real text, colours from the tokens --------------- */

.diagram { display: block; width: 100%; height: auto; font-family: var(--lz-font); }
.diagram--wide { display: none; }
.diagram--narrow { max-width: 400px; margin: 0 auto; }
/* Below these widths the row's text would shrink under ~15px: the column shows instead. */
@media (min-width: 1100px) {
  .diagram--wide { display: block; }
  .diagram--narrow { display: none; }
}

.dg-node { fill: var(--lz-surface); stroke: var(--lz-blue); stroke-width: 2; }
.dg-num { fill: var(--lz-blue); }
.dg-num-text { fill: var(--lz-surface); font-size: 15px; font-weight: 700; text-anchor: middle; }
.dg-text { fill: var(--lz-ink); font-size: 17px; font-weight: 600; }
.dg-text--center { text-anchor: middle; }
.dg-small { fill: var(--lz-slate); font-size: 13px; font-weight: 500; }
.dg-arrow, .dg-head {
  fill: none; stroke: var(--lz-slate); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Homepage diagrams: one emphasised box (blue border, blue tint), the rest plain. */
.dg-node--emph { fill: var(--lz-blue-tint); stroke: var(--lz-blue); stroke-width: 2.5; }
.diagram--before .dg-node--emph { stroke-width: 2; }
.dg-node--plain { fill: var(--lz-page); stroke: var(--lz-line); stroke-width: 1.5; }
.dg-text--strong { font-weight: 700; }
.dg-tag { fill: var(--lz-slate); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.dg-tag--blue { fill: var(--lz-blue); }
.dg-link { fill: none; stroke: var(--lz-blue); stroke-width: 1.5; stroke-linecap: round; }
.dg-head--link { stroke: var(--lz-blue); stroke-width: 1.5; }
/* A label laid over a line: a white halo keeps it readable. */
.dg-halo { paint-order: stroke; stroke: var(--lz-surface); stroke-width: 8px; stroke-linejoin: round; }
.diagram--before.diagram--narrow { max-width: 340px; }

/* ---- Principles: one card, two columns and three rows on desktop ---------------- */

.principles { display: grid; margin-top: 32px; }
.principles li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--lz-line);
}
.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.principle-num { flex: none; min-width: 20px; font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--lz-blue); }
.principles p { font-size: 18px; line-height: 1.5; color: var(--lz-ink-2); }
.principles p.principle-ask { margin-top: 6px; font-size: 16px; color: var(--lz-ink-2); }
@media (min-width: 900px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .principles li:nth-child(2) { padding-top: 0; }
  .principles li:nth-last-child(2) { border-bottom: 0; padding-bottom: 0; }
}

/* ---- Golden data vs golden context (ColumnHeader + highlight column) ---------- */

.col-header {
  border-radius: var(--lz-radius-md); padding: 14px 16px; text-align: center;
  color: var(--lz-surface); background: var(--lz-slate);
  display: flex; flex-direction: column; justify-content: center;
}
.col-header strong { color: var(--lz-surface); font-weight: 700; display: block; }
.col-header--blue { background: var(--lz-blue); }

.compare { display: grid; gap: 0; }
.compare-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--lz-line); }
.compare-cell { padding: 14px 16px; color: var(--lz-ink-2); }
.compare-cell--label { font-weight: 700; color: var(--lz-ink); padding-bottom: 0; }
.compare-cell--new { color: var(--lz-ink); font-weight: 700; }
.compare-cell .who { display: block; font-size: 13px; font-weight: 400; color: var(--lz-text-muted); }
.compare-cell--empty { color: var(--lz-text-muted); font-style: italic; }
.compare-cell--owner { box-shadow: inset 4px 0 0 var(--lz-pink); }
.compare-headers { display: none; }
@media (min-width: 760px) {
  .compare-headers, .compare-row { grid-template-columns: 160px 1fr 1fr; column-gap: 16px; }
  .compare-headers { display: grid; margin-bottom: 8px; }
  .compare-headers .col-header:not(.col-header--blue) { grid-column: 2; }
  .compare-row { min-height: 56px; align-items: center; }
  .compare-cell--label { padding-bottom: 14px; }
  .compare-cell .who { display: none; }
  .compare-cell--new { background: var(--lz-blue-tint); align-self: stretch; display: flex; align-items: center; }
  .compare-headers + .compare-row .compare-cell--new { border-radius: var(--lz-radius-lg) var(--lz-radius-lg) 0 0; }
  .compare-row:last-child .compare-cell--new { border-radius: 0 0 var(--lz-radius-lg) var(--lz-radius-lg); }
  .compare-cell--empty {
    align-self: stretch; display: flex; align-items: center;
    border: 2px dashed var(--lz-line); border-radius: var(--lz-radius-md); margin: 6px 0;
  }
}
.compare-caption { margin-top: 24px; max-width: 46em; }

/* ---- What belongs in it ---------------------------------------------------------- */

.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--lz-blue); margin-top: 3px; }
.checks--lg { gap: 18px; }
.checks--lg li { font-size: 18px; color: var(--lz-ink); font-weight: 500; }
.checks--lg .icon { margin-top: 4px; }

/* ---- TakeawayBanner: one per page, at the bottom ---------------------------------- */

.takeaway {
  background: var(--lz-ink); border-radius: var(--lz-radius-xl); padding: 24px 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
@media (min-width: 900px) { .takeaway { padding: 40px 48px; } }
.takeaway > div { max-width: 40em; }
.takeaway-statement { color: var(--lz-surface); font-weight: 700; font-size: clamp(1.375rem, 2.6vw, 1.5rem); line-height: 1.3; }
.takeaway-support { color: var(--lz-on-dark-muted); margin-top: 6px; }

/* ---- The posts behind it ------------------------------------------------------------ */

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.posts a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--lz-surface); border: 1px solid var(--lz-border); border-radius: var(--lz-radius-lg);
  padding: 16px; text-decoration: none; color: var(--lz-ink); font-weight: 600; line-height: 1.35;
  transition: border-color .15s ease;
}
@media (min-width: 640px) { .posts a { padding: 20px; } }
.posts a:hover { border-color: var(--lz-blue); }
.post-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lz-blue);
}
.post-step .icon { width: 16px; height: 16px; }

/* ---- Storyline: part marker, step header, progress line, transition --------------- */
/* Shared components (includes/part_marker.html, step_head.html, transition.html):
   the homepage is three parts and nine steps. On wide screens a progress line
   runs through every step number; each block draws its own piece of it, so
   the line needs no script and no measured heights. */

.story {
  --rail: 18px;            /* the progress line's x: the centre of a 36px number */
  --indent: 74px;          /* step content: 56px right of the line */
  --before-part: 80px;     /* space above a part marker's hairline */
  --after-rule: 48px;      /* hairline to eyebrow */
  --after-part: 48px;      /* part marker to its first step */
  --between-steps: 64px;
}
@media (min-width: 900px) {
  .story { --before-part: 128px; --after-rule: 64px; --after-part: 64px; --between-steps: 96px; }
}

/* Part marker: a hairline across the container, then the part's eyebrow, title and line. */
.part-marker { position: relative; padding: calc(var(--before-part) + 1px + var(--after-rule)) 0 var(--after-part); }
.part-marker::after {
  content: ""; position: absolute; left: 0; right: 0; top: var(--before-part);
  height: 1px; background: var(--lz-line);
}
.part:first-child .part-marker { padding-top: calc(1px + var(--after-rule)); }
.part:first-child .part-marker::after { top: 0; }
.part-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4; color: var(--lz-blue-strong);
}
.part-title {
  margin-top: 12px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--lz-ink);
}
@media (min-width: 640px) { .part-title { font-size: 40px; } }
.part-line { margin-top: 12px; font-size: 20px; line-height: 1.4; color: var(--lz-ink-2); }

/* Step: a number, a headline, text and one visual, set on the page. */
.step { position: relative; padding-bottom: var(--between-steps); }
.part > .step:last-child { padding-bottom: 0; }
.step-head { margin-bottom: 20px; }
.step-num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%;
  background: var(--lz-surface); border: 1.5px solid var(--lz-blue);
  color: var(--lz-blue); font-size: 16px; font-weight: 700; line-height: 1;
}
.step-title, .section-headline { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--lz-ink); }
@media (min-width: 900px) { .step-title, .section-headline { font-size: 28px; } }

/* Step content: paragraphs at most 680px wide; diagrams and card sets use the column. */
.story .prose { max-width: 680px; }
.story .pull { max-width: 680px; }
/* Under a 28px step headline the opening line steps down, so the headline leads. */
.story .prose p.statement { font-size: clamp(1.1875rem, 2vw, 1.3125rem); line-height: 1.45; }
.story .big-line { font-size: clamp(1.5rem, 3vw, 2rem); }
.transition-text, .close-question { text-wrap: balance; }
.story .prose p, .close-action, .tp-caption { text-wrap: pretty; }
.story .prose + .card, .story .prose + .grid, .story .prose + .tp-figure { margin-top: 40px; }

/* Transition line: the last element of a step (homepage) or a section (Frame). */
.transition { position: relative; margin-top: 48px; }
.transition-connector {
  display: block; width: 2px; height: 40px; margin-bottom: 16px; border-radius: 1px;
  background: var(--gradient-down);
}
.transition-text { max-width: 640px; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--lz-ink); }
@media (min-width: 900px) {
  .transition { margin-top: 64px; }
  .transition-text { font-size: 22px; }
}

/* The progress line, 1100px and wider. */
@media (min-width: 1100px) {
  .step, .part + .part .part-marker { padding-left: var(--indent); }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step-title { line-height: 36px; }
  .step::before, .part + .part .part-marker::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail) - 0.5px);
    width: 1px; background: color-mix(in srgb, var(--lz-slate) 35%, transparent);
  }
  .part:first-child > .step:first-of-type::before { top: 18px; }
  .part:last-child > .step:last-child::before { bottom: auto; height: 18px; }
  /* On the homepage the connector sits on the progress line. */
  .story .transition-text { min-height: 40px; }
  .story .transition-connector {
    position: absolute; z-index: 1; top: -2px; margin: 0;
    left: calc(var(--rail) - var(--indent) - 1px);
  }
}

/* ---- Step 4: golden data and golden context (the LinkedIn graphic as HTML) ------- */
/* The one diagram that keeps the graphic's own colours, pink "What changes" included. */

.gcx { padding: 20px; }
@media (min-width: 640px) { .gcx { padding: 32px; } }
.gcx-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4; color: var(--lz-blue);
}
.gcx-label::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--lz-border); }
.gcx-label--pink { color: var(--lz-pink); font-weight: 700; }
.gcx-pill {
  display: block; border-radius: 999px; background: var(--lz-gradient-pill);
  padding: 12px 20px; text-align: center; font-weight: 500; color: var(--lz-ink);
}
.gcx-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--lz-slate); }

/* Wide: a real table. */
.gcx-table { display: none; }
.gcx-table th, .gcx-table td { padding: 0; text-align: left; vertical-align: middle; }
.gcx-table th { font-weight: inherit; }
.gcx-col-label { width: 26%; }
.gcx-col-data { width: 37%; }
.gcx-col-ctx { width: 37%; }
.gcx-table thead th:nth-child(2) { padding-right: 12px; }
.gcx-table .col-header { font-size: 18px; padding: 16px; }
.gcx-group th { padding: 32px 0 16px; }
.gcx-rowhead { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; color: var(--lz-ink); }
.gcx-same td { padding: 6px 0; }
.gcx-same .gcx-pill { font-size: 17px; }
.gcx-diff th, .gcx-diff td { vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--lz-line); }
.gcx-diff th { padding-right: 12px; }
.gcx-diff .gcx-rowhead { min-height: 36px; }
.gcx-diff th { padding-top: 10px; }
.gcx-table td.gcx-data { position: relative; padding: 16px 48px 14px 4px; font-size: 17px; color: var(--lz-ink-2); line-height: 1.45; }
.gcx-data strong { font-weight: 600; }
.gcx-arrow { position: absolute; right: 14px; top: 18px; color: var(--lz-pink); }
.gcx-arrow .icon { width: 20px; height: 20px; }
.gcx-table td.gcx-ctx {
  padding: 16px 20px; background: var(--lz-blue-tint);
  font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--lz-ink);
}
.gcx-ctx .gcx-sub { color: var(--lz-ink-2); }
.gcx-table .gcx-diff td.gcx-ctx { border-bottom-color: color-mix(in srgb, var(--lz-blue) 12%, var(--lz-surface)); }
.gcx-diff tr:nth-child(2) .gcx-ctx { border-radius: var(--lz-radius-lg) var(--lz-radius-lg) 0 0; }
.gcx-diff tr:last-child th, .gcx-diff tr:last-child td { border-bottom: 0; }
.gcx-diff tr:last-child .gcx-ctx { border-radius: 0 0 var(--lz-radius-lg) var(--lz-radius-lg); }

/* Narrow: stacks, three differences shown and four in a <details>. */
.gcx-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.gcx-legend .col-header { flex: 1; padding: 10px 12px; font-size: 15px; }
.gcx-legend-arrow { display: inline-flex; color: var(--lz-pink); }
.gcx-narrow .gcx-label { margin-bottom: 12px; }
.gcx-rules { display: grid; gap: 14px; margin-bottom: 32px; }
.gcx-rules li { display: flex; gap: 12px; align-items: flex-start; }
.gcx-rules strong { display: block; line-height: 36px; }
.gcx-rules .gcx-pill { border-radius: var(--lz-radius-lg); padding: 10px 14px; text-align: left; font-size: 15px; line-height: 1.4; }
.gcx-stack .gcx-item { padding: 16px 0; border-bottom: 1px solid var(--lz-line); }
.gcx-stack .gcx-item:first-child { padding-top: 0; }
.gcx-stack dt { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--lz-ink); }
.gcx-stack dd { margin: 0 0 0 48px; }
.gcx-stack dd.gcx-from { margin-top: 8px; color: var(--lz-slate); }
.gcx-from .gcx-sub { color: var(--lz-slate); }
.gcx-stack dd.gcx-to {
  position: relative; margin-top: 34px; padding: 10px 14px; border-radius: var(--lz-radius-md);
  background: var(--lz-blue-tint); font-weight: 700; color: var(--lz-ink);
}
.gcx-to::before {
  /* The down arrow between the two values: a stem and a head, drawn in pink. */
  content: ""; position: absolute; left: 14px; top: -28px; width: 2px; height: 20px;
  background: var(--lz-pink); border-radius: 1px;
}
.gcx-to::after {
  content: ""; position: absolute; left: 11px; top: -15px; width: 8px; height: 8px;
  border-right: 2px solid var(--lz-pink); border-bottom: 2px solid var(--lz-pink); transform: rotate(45deg);
}
.gcx-to .gcx-sub { color: var(--lz-ink-2); }
.gcx-more { border-bottom: 1px solid var(--lz-line); }
.gcx-more summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer;
  font-weight: 600; color: var(--lz-blue);
}
.gcx-more summary::-webkit-details-marker { display: none; }
.gcx-more summary::after {
  content: ""; width: 8px; height: 8px; margin: -4px 0 0 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.gcx-more[open] summary { margin-bottom: 8px; }
.gcx-more[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.gcx-more .gcx-item:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .gcx { padding: 40px; }
  .gcx-table { display: table; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
  .gcx-narrow { display: none; }
}

/* ---- Step 5: curate, validate, maintain as a loop ------------------------------- */

.loop { display: grid; justify-items: stretch; }
.loop-card { padding: 24px; }
.loop-card h4 { margin-top: 16px; }
.loop-arrow { display: flex; justify-content: center; padding: 8px 0; color: var(--lz-slate); }
.loop-arrow .icon { transform: rotate(90deg); }
.loop-return { display: flex; justify-content: center; padding-top: 12px; }
.loop-return-line { display: none; }
.loop-return-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--lz-slate); }
@media (min-width: 900px) {
  .loop {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
    grid-template-rows: auto 44px;
  }
  .loop-card { padding: 28px; }
  .loop-arrow { align-self: center; padding: 0; }
  .loop-arrow .icon { transform: none; }
  .loop-return { grid-column: 1 / -1; position: relative; padding: 0; }
  /* From under Maintain, back along the row, up into Curate: each end at a card's centre. */
  .loop-return-line {
    display: block; position: absolute; top: 0; height: 32px;
    left: calc((100% - 80px) / 6); right: calc((100% - 80px) / 6);
    border: 2px solid var(--lz-slate); border-top: 0;
    border-radius: 0 0 var(--lz-radius-lg) var(--lz-radius-lg);
  }
  .loop-return-line::before {
    content: ""; position: absolute; left: -7px; top: 2px; width: 10px; height: 10px;
    border-left: 2px solid var(--lz-slate); border-top: 2px solid var(--lz-slate); transform: rotate(45deg);
  }
  .loop-return-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---- Step 6: two projects, today and with Context Owners ------------------------ */

.tp-figure { margin: 0; }
.tp { display: grid; gap: 40px; padding: 20px; }
@media (min-width: 640px) { .tp { padding: 32px; } }
.tp-row { display: grid; gap: 0; }
.tp-row-label {
  margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lz-blue);
}
.tp-row--today .tp-row-label { color: var(--lz-slate); }
.tp-box {
  border: 1.5px solid var(--lz-line); border-radius: var(--lz-radius-lg);
  background: var(--lz-page); padding: 14px 16px;
}
.tp-box--emph { border: 2px solid var(--lz-blue); background: var(--lz-blue-tint); }
.tp-row--today .tp-box { border-color: color-mix(in srgb, var(--lz-slate) 45%, transparent); background: var(--lz-surface); }
.tp-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--lz-ink); }
.tp-note { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--lz-ink-2); }
.tp-row--today .tp-name, .tp-row--today .tp-note { color: var(--lz-slate); }
.tp-icon { display: inline-flex; color: var(--lz-blue); }
.tp-arrow { display: flex; justify-content: center; padding: 6px 0; color: var(--lz-slate); }
.tp-arrow .icon { transform: rotate(90deg); }
.tp-gap { display: flex; align-items: center; gap: 14px; padding: 6px 0 6px 22px; }
.tp-dash { flex: none; position: relative; width: 0; height: 64px; border-left: 2px dashed var(--lz-slate); }
.tp-dash::after {
  content: ""; position: absolute; left: -6px; bottom: 1px; width: 8px; height: 8px;
  border-right: 2px solid var(--lz-slate); border-bottom: 2px solid var(--lz-slate); transform: rotate(45deg);
}
.tp-gap-label { font-size: 15px; font-style: italic; line-height: 1.4; color: var(--lz-slate); }
.tp-flags { display: grid; gap: 8px; margin-top: 10px; }
.tp-flags li {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
  border-radius: var(--lz-radius-sm); background: var(--lz-blue-tint);
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--lz-ink);
}
.tp-flags .icon { width: 16px; height: 16px; margin-top: 1px; }
.tp-caption { margin-top: 16px; font-size: 16px; color: var(--lz-slate); }
@media (min-width: 1000px) {
  .tp { padding: 32px 28px; }
  .tp-row { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; }
  .tp-row-label { grid-column: 1 / -1; }
  .tp-row--today .tp-a { grid-column: 1; }
  .tp-row--today .tp-b { grid-column: 7; }
  .tp-gap { grid-column: 2 / 7; flex-direction: column-reverse; justify-content: center; gap: 8px; padding: 0 10px; }
  .tp-gap-label { text-align: center; max-width: 30em; }
  .tp-dash { width: 100%; height: 0; border-left: 0; border-top: 2px dashed var(--lz-slate); }
  .tp-dash::after { left: auto; right: 1px; bottom: auto; top: -6px; transform: rotate(-45deg); }
  .tp-arrow { align-items: center; padding: 0; }
  .tp-arrow .icon { transform: none; }
  .tp-caption { text-align: center; }
}

/* ---- Step 8: the Stochastic Rocket card ----------------------------------------- */

.rocket { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .rocket { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } }
.rocket-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--lz-ink); }
.rocket-line { margin-top: 8px; color: var(--lz-ink-2); max-width: 32em; }
.rocket .btn { margin-top: 24px; background: var(--lz-page); }
.rocket-drawing { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.rk-ring { fill: none; stroke: var(--lz-blue); stroke-width: 2; }
.rk-bull { fill: var(--lz-blue); }
.rk-plan { fill: none; stroke: var(--lz-slate); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round; }
.rk-path { fill: none; stroke: var(--lz-blue); stroke-width: 2.5; stroke-linecap: round; }
.rk-start { fill: var(--lz-slate); }
.rk-rocket path { fill: var(--lz-surface); stroke: var(--lz-blue); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- The closing block: the question, one action, one button -------------------- */

.close { padding-top: 80px; }
@media (min-width: 900px) { .close { padding-top: 128px; } }
.close-block { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.close-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lz-blue-strong);
}
.close-question {
  margin-top: 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--lz-ink); text-wrap: balance;
}
@media (min-width: 640px) { .close-question { font-size: 36px; } }
.close-action { margin: 20px auto 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--lz-ink-2); }
.close-block .btn { margin-top: 32px; }
.close-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 20px; }
.close-links a { color: var(--lz-ink-2); font-weight: 500; padding: 4px 0; }
.close-links a:hover { color: var(--lz-ink); }

/* ---- Frame page: hero, section headlines, cards ---------------------------------- */

/* "Lazulix Frame™" on one line, "The Context Owner OS." on the next. */
.frame-display { max-width: none; font-size: clamp(36px, 4.6vw, 56px); }
.frame-display-line { display: block; text-wrap: balance; }
.tm {
  position: relative; top: 0.12em; margin-left: 0.06em; vertical-align: top;
  font-size: 0.5em; font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--lz-ink-2);
}
.frame-hero .lede strong { font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px;
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--lz-ink);
}
.facts .icon { width: 16px; height: 16px; color: var(--lz-blue); }

.section-lead { margin-top: 12px; }
.section-headline + .card, .section-headline + .grid { margin-top: 32px; }

.built { gap: 16px; }
@media (min-width: 760px) { .built { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.built-card { display: flex; gap: 20px; align-items: flex-start; }
.built-card h3 { margin: 6px 0 8px; }
.product { gap: 16px; }
@media (min-width: 760px) { .product { gap: 24px; } }
.product-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag {
  padding: 2px 10px; border: 1px solid var(--lz-line); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--lz-slate);
}
.pilot-line { margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--lz-ink); }
.quiet-link { margin-top: 20px; font-size: 15px; color: var(--lz-slate); }
.quiet-link a { font-weight: 600; }

/* ---- Frame: where it fits --------------------------------------------------------- */
/* Sources, then Frame, then the AI you already use: stacked on narrow screens,
   three columns from 1040px. Arrows are progression marks: the brand gradient
   with a pink head. */

.fit { margin: 32px 0 0; padding: 24px 20px; }
@media (min-width: 640px) { .fit { padding: 32px; } }
.fit-grid { display: grid; gap: 12px; }
.fit-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lz-slate);
}
.fit-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fit-chip {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: var(--lz-radius-md);
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--lz-ink);
}
.fit-chip .icon { color: var(--lz-blue); }
.fit-chip--more { border-style: dashed; color: var(--lz-slate); }
.fit-chip--more .icon { color: var(--lz-slate); }

.fit-frame {
  display: flex; flex-direction: column; gap: 20px; padding: 20px;
  background: var(--lz-blue-tint); border: 2px solid var(--lz-blue); border-radius: var(--lz-radius-xl);
}
@media (min-width: 640px) { .fit-frame { padding: 28px; } }
.fit-frame-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--lz-ink); }
.fit-frame-name span { margin-left: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--lz-slate); }
.fit-frame-does { display: grid; gap: 10px; }
.fit-frame-does li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--lz-ink); }
.fit-frame-does .icon { color: var(--lz-blue); }
.fit-frame-owner { font-weight: 700; }
/* The golden context: the only solid blue shape in the diagram. */
.fit-gc {
  display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 20px 22px;
  background: var(--lz-blue); border-radius: var(--lz-radius-lg); color: var(--lz-surface);
}
.fit-gc .icon { width: 28px; height: 28px; }
.fit-gc strong { display: block; font-size: 20px; line-height: 1.2; color: var(--lz-surface); }
.fit-gc span { font-size: 14px; }

.fit-out { display: flex; flex-direction: column; }
.fit-plain {
  position: relative; padding: 18px 20px;
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: var(--lz-radius-lg);
}
.fit-plain-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--lz-ink); }
.fit-plain-name .icon { color: var(--lz-slate); }
.fit-plain p + p { margin-top: 6px; font-size: 14px; color: var(--lz-ink-2); }

/* Down arrows: between the groups on narrow screens, and from the AI tools to the deliverables. */
.fit-down, .fit-out-down { position: relative; display: block; height: 44px; }
.fit-down::before, .fit-out-down::before {
  content: ""; position: absolute; left: 50%; top: 6px; bottom: 14px; width: 2px; margin-left: -1px;
  border-radius: 2px; background: var(--gradient-down);
}
.fit-down::after, .fit-out-down::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; margin-left: -5px;
  border-top: 8px solid var(--lz-pink); border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.fit-caption { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lz-line); font-size: 17px; color: var(--lz-ink); max-width: 760px; }

@media (min-width: 1040px) {
  .fit { padding: 40px; }
  .fit-grid { grid-template-columns: 230px 72px minmax(0, 1fr) 72px 250px; grid-template-rows: auto 1fr; gap: 14px 0; }
  .fit-label--sources { grid-area: 1 / 1; }
  .fit-label--frame { grid-area: 1 / 3; }
  .fit-label--ai { grid-area: 1 / 5; }
  .fit-sources { grid-area: 2 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
  .fit-frame { grid-area: 2 / 3; }
  .fit-out { grid-area: 2 / 5; }
  .fit-down { display: none; }
  .fit-out-down { flex: 1; min-height: 44px; }
  /* Each source's arrow into Frame, and Frame's arrow out to the AI tools. */
  .fit-chip::after, .fit-plain--ai::after {
    content: ""; position: absolute; top: 50%; width: 54px; height: 2px; margin-top: -1px; border-radius: 2px;
    background: linear-gradient(90deg, var(--lz-blue-soft), var(--lz-blue) 55%, var(--lz-pink));
  }
  .fit-chip::before, .fit-plain--ai::before {
    content: ""; position: absolute; top: 50%; margin-top: -5px;
    border-left: 8px solid var(--lz-pink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  }
  .fit-chip::after { left: calc(100% + 6px); }
  .fit-chip::before { left: calc(100% + 58px); }
  .fit-plain--ai::after { right: calc(100% + 14px); }
  .fit-plain--ai::before { right: calc(100% + 6px); }
}

/* ---- Frame: where it takes you ---------------------------------------------------- */
/* The AI knowledge assets: three kinds (columns) by three levels (rows), one
   markup written row by row. Under 1000px it is a compact 3 x 3 table: each
   cell is a label for a hidden checkbox, and a checked cell opens its
   description in a full-width row under its own row (rows 3-5, 7-9, 11-13).
   From 1000px every cell shows its description. One colour job: blue marks
   the level Frame reaches; pink marks the "how" lines under the table. */

.mat { margin: 32px 0 0; padding: 20px 16px 24px; }
@media (min-width: 640px) { .mat { padding: 32px; } }

.mat-hint {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 14px; color: var(--lz-slate);
}
.mat-hint .icon { width: 16px; height: 16px; color: var(--lz-blue); flex: none; }

.mat-table {
  position: relative; display: grid; grid-template-columns: 26px repeat(3, minmax(0, 1fr));
  column-gap: 6px; row-gap: 0;
}
@media (min-width: 480px) { .mat-table { grid-template-columns: 30px repeat(3, minmax(0, 1fr)); column-gap: 8px; } }
.mat-tr, .mat-cell { display: contents; }

/* Head: the column names, an icon over each. */
.mat-corner {
  align-self: end; justify-self: center; margin-bottom: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lz-slate);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.mat-th {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 2px 12px; margin-bottom: 8px; border-bottom: 2px solid var(--lz-blue);
  font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; color: var(--lz-ink);
}
.mat-th .badge { width: 34px; height: 34px; }
.mat-th .icon { width: 18px; height: 18px; }

/* Level column: the number only, on a thin line. */
.mat-lvl { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mat-lvl::before {
  content: ""; position: absolute; left: 50%; top: -8px; bottom: -6px; width: 2px; margin-left: -1px;
  background: var(--lz-line);
}
.mat-tr--1 .mat-lvl::before { top: 50%; }
.mat-tr--3 .mat-lvl::before { bottom: 50%; }
.mat-num {
  position: relative; display: flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: var(--lz-surface); border: 1.5px solid var(--lz-blue);
  color: var(--lz-blue); font-size: 13px; font-weight: 700; line-height: 1;
}
.mat-lvl-text { display: none; }

/* The cell face: icon and name. The checkbox stays reachable by keyboard. */
.mat-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mat-face {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 104px; margin-bottom: 6px; padding: 12px 4px 10px;
  background: var(--lz-page); border: 1.5px solid transparent; border-radius: var(--lz-radius-md);
  font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--lz-ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.mat-face .badge { width: 34px; height: 34px; }
.mat-face .icon { width: 18px; height: 18px; }
.mat-title { overflow-wrap: anywhere; hyphens: auto; }
.mat-cell--frame .mat-face { background: var(--lz-blue-tint); border-color: var(--lz-blue); }
.mat-mark {
  position: absolute; top: -6px; right: -6px; display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--lz-blue); color: var(--lz-surface);
  box-shadow: 0 0 0 2px var(--lz-surface);
}
.mat-mark .icon { width: 12px; height: 12px; stroke-width: 3; }
.mat-face:hover { border-color: var(--lz-blue); }
.mat-toggle:focus-visible + .mat-face { outline: 2px solid var(--lz-blue); outline-offset: 2px; }
.mat-toggle:checked + .mat-face { border-color: var(--lz-blue-strong); background: var(--lz-surface); box-shadow: var(--lz-shadow-card); }

/* The detail row: closed until its cell is checked; a caret points up to the cell. */
.mat-detail {
  --col: 1;
  position: relative; display: none; grid-column: 1 / -1; margin: 6px 0 12px; padding: 14px 16px;
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: var(--lz-radius-md);
  box-shadow: var(--lz-shadow-card);
}
.mat-toggle:checked ~ .mat-detail { display: block; animation: mat-open .18s ease-out; }
.mat-cell--frame .mat-detail { border-color: var(--lz-blue); }
.mat-detail::before {
  content: ""; position: absolute; top: -7px; width: 12px; height: 12px; margin-left: -6px;
  background: inherit; border: inherit; border-right: 0; border-bottom: 0; transform: rotate(45deg);
  left: calc(32px + (var(--col) - 1) * ((100% - 44px) / 3 + 6px) + (100% - 44px) / 6);
}
.mat-cell--c2 .mat-detail { --col: 2; }
.mat-cell--c3 .mat-detail { --col: 3; }
@media (min-width: 480px) {
  .mat-detail::before { left: calc(38px + (var(--col) - 1) * ((100% - 54px) / 3 + 8px) + (100% - 54px) / 6); }
}
/* Two cells open in one row: only the first detail points up to its cell. */
.mat-tr:has(.mat-cell--c1 .mat-toggle:checked) :is(.mat-cell--c2, .mat-cell--c3) .mat-detail::before,
.mat-tr:has(.mat-cell--c2 .mat-toggle:checked) .mat-cell--c3 .mat-detail::before { display: none; }
.mat-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lz-slate); }
.mat-cell--frame .mat-meta { color: var(--lz-blue-strong); }
.mat-desc { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--lz-ink); }
@keyframes mat-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Fixed rows, so an open detail sits under its own row. */
.mat-tr--head > * { grid-row: 1; }
.mat-tr--1 .mat-lvl, .mat-tr--1 .mat-face { grid-row: 2; }
.mat-tr--2 .mat-lvl, .mat-tr--2 .mat-face { grid-row: 6; }
.mat-tr--3 .mat-lvl, .mat-tr--3 .mat-face { grid-row: 10; }
.mat-cell--c1 .mat-face { grid-column: 2; }
.mat-cell--c2 .mat-face { grid-column: 3; }
.mat-cell--c3 .mat-face { grid-column: 4; }
.mat-tr--1 .mat-cell--c1 .mat-detail { grid-row: 3; }
.mat-tr--1 .mat-cell--c2 .mat-detail { grid-row: 4; }
.mat-tr--1 .mat-cell--c3 .mat-detail { grid-row: 5; }
.mat-tr--2 .mat-cell--c1 .mat-detail { grid-row: 7; }
.mat-tr--2 .mat-cell--c2 .mat-detail { grid-row: 8; }
.mat-tr--2 .mat-cell--c3 .mat-detail { grid-row: 9; }
.mat-tr--3 .mat-cell--c1 .mat-detail { grid-row: 11; }
.mat-tr--3 .mat-cell--c2 .mat-detail { grid-row: 12; }
.mat-tr--3 .mat-cell--c3 .mat-detail { grid-row: 13; }

/* The tag: the one solid blue word per column. White 700 at 13px on blue (4.6:1). */
.mat-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--lz-blue);
  color: var(--lz-surface); font-size: 13px; font-weight: 700;
}
.mat-tag .icon { width: 14px; height: 14px; stroke-width: 2.5; }

/* How Frame gets there: one line per column, a pink corner arrow up to it. */
.mat-how { display: grid; gap: 14px; margin-top: 24px; }
.mat-how li { display: flex; gap: 10px; align-items: flex-start; }
.mat-how .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--lz-pink); }
.mat-how p { font-size: 15px; line-height: 1.5; color: var(--lz-ink-2); }
.mat-how strong { color: var(--lz-ink); }
.mat-caption { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lz-line); font-size: 17px; color: var(--lz-ink); max-width: 760px; }

/* Wide: every cell open, in its own tile; the level names beside the rail. */
@media (min-width: 1000px) {
  .mat { padding: 40px; }
  .mat-hint { display: none; }
  .mat-table { grid-template-columns: 184px repeat(3, minmax(0, 1fr)); grid-template-rows: auto; column-gap: 16px; row-gap: 14px; }
  .mat-tr--head > *, .mat-tr--1 .mat-lvl, .mat-tr--2 .mat-lvl, .mat-tr--3 .mat-lvl { grid-row: auto; }
  .mat-cell { display: flex; flex-direction: column; grid-row: auto !important; }
  .mat-tr--1 .mat-cell { grid-row: 2 !important; }
  .mat-tr--2 .mat-cell { grid-row: 3 !important; }
  .mat-tr--3 .mat-cell { grid-row: 4 !important; }
  .mat-cell--c1 { grid-column: 2; }
  .mat-cell--c2 { grid-column: 3; }
  .mat-cell--c3 { grid-column: 4; }
  .mat-tr--1 .mat-lvl { grid-row: 2; }
  .mat-tr--2 .mat-lvl { grid-row: 3; }
  .mat-tr--3 .mat-lvl { grid-row: 4; }

  .mat-corner {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .mat-th {
    flex-direction: row; justify-content: flex-start; gap: 12px; margin-bottom: 0;
    padding: 0 4px 16px; font-size: 18px; text-align: left;
  }
  .mat-th .badge { width: 40px; height: 40px; }
  .mat-th .icon { width: 20px; height: 20px; }

  .mat-lvl { justify-content: flex-start; gap: 14px; margin-bottom: 0; }
  .mat-lvl::before { left: 18px; top: -7px; bottom: -7px; }
  .mat-tr--1 .mat-lvl::before { top: 50%; }
  .mat-tr--3 .mat-lvl::before { bottom: 50%; }
  .mat-num { width: 36px; height: 36px; font-size: 16px; }
  .mat-lvl-text { display: block; }
  .mat-lvl-text strong { display: block; font-size: 17px; color: var(--lz-ink); }
  .mat-lvl-text span { font-size: 14px; line-height: 1.4; color: var(--lz-slate); }

  .mat-toggle { display: none; }
  .mat-face, .mat-detail { grid-row: auto !important; grid-column: auto !important; }
  .mat-face {
    flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; margin: 0;
    padding: 22px 22px 0; border: 0; border-radius: var(--lz-radius-lg) var(--lz-radius-lg) 0 0;
    font-size: 17px; font-weight: 700; text-align: left; cursor: default;
  }
  .mat-face:hover { border-color: transparent; }
  .mat-face .badge { width: 40px; height: 40px; }
  .mat-face .icon { width: 20px; height: 20px; }
  .mat-mark { display: none; }
  .mat-detail {
    display: block; flex: 1; margin: 0; padding: 4px 22px 22px;
    background: var(--lz-page); border: 0; border-radius: 0 0 var(--lz-radius-lg) var(--lz-radius-lg); box-shadow: none;
    animation: none !important;
  }
  .mat-detail::before, .mat-meta { display: none; }
  .mat-desc { margin: 0; font-size: 15px; color: var(--lz-slate); }
  .mat-tag { margin-top: 16px; }

  /* The level Frame reaches: a white tile lifted off the page, in a blue frame. */
  .mat-cell--frame { border-radius: var(--lz-radius-lg); box-shadow: 0 0 0 2px var(--lz-blue), 0 12px 28px rgba(25, 118, 210, .14); }
  .mat-cell--frame .mat-face, .mat-cell--frame .mat-detail { background: var(--lz-surface); }
  .mat-cell--frame .mat-face .badge { width: 40px; height: 40px; border-radius: var(--lz-radius-sm); }
  .mat-cell--frame .mat-desc { color: var(--lz-ink-2); }

  .mat-how { grid-template-columns: 184px repeat(3, minmax(0, 1fr)); column-gap: 16px; margin-top: 18px; }
  .mat-how--c1 { grid-column: 2; }
  .mat-how-col { display: none; }
}

/* ---- Frame: how it works ------------------------------------------------------------ */
/* Five stations on a track, then the way out. Each station draws its own piece
   of the track (::before) and its own pulse (::after); the four pulses take
   turns, two seconds each, so one dot runs the whole track every 8 seconds.
   A column below 1040px, a row from 1040px. */

.track { --gap: 14px; margin-top: 40px; padding: 24px 16px; }
@media (min-width: 640px) { .track { padding: 28px 24px; } }
.stations { position: relative; z-index: 0; display: grid; gap: var(--gap); }
.station { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.station-num {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lz-surface); border: 2px solid var(--lz-blue);
  font-size: 14px; font-weight: 700; color: var(--lz-blue);
}
.station--gate .station-num, .station--result .station-num { background: var(--lz-blue); color: var(--lz-surface); }
.station--out .station-num { border-color: color-mix(in srgb, var(--lz-slate) 45%, transparent); color: var(--lz-slate); }
.station--out .station-num .icon { width: 16px; height: 16px; transform: rotate(90deg); }

.station-body {
  display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 16px 14px 14px;
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: var(--lz-radius-lg);
}
.station-body > .icon { color: var(--lz-blue); }
.card .station-body h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.station-body p { font-size: 14px; line-height: 1.4; color: var(--lz-ink-2); }
.station--gate .station-body { background: var(--lz-blue-tint); border: 2px solid var(--lz-blue); }
.station--result .station-body { background: var(--lz-blue); border-color: var(--lz-blue); }
.station--result .station-body h3, .station--result .station-body p, .station--result .station-body > .icon { color: var(--lz-surface); }
.station--out .station-body { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--lz-slate) 45%, transparent); }
.station--out .station-body > .icon { color: var(--lz-slate); }

/* The example tiles: samples on the page colour, not a screenshot. */
.station-body p.tile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding: 10px;
  background: var(--lz-page); border-radius: var(--lz-radius-sm);
  font-size: 13px; line-height: 1.35; color: var(--lz-ink-2);
}
.tile .icon { width: 14px; height: 14px; color: var(--lz-blue-strong); }
.tile-file { padding: 3px 7px; background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: 6px; white-space: nowrap; }
.station-body p.tile--note { border-left: 3px solid var(--lz-blue); border-radius: 4px var(--lz-radius-sm) var(--lz-radius-sm) 4px; font-weight: 500; color: var(--lz-ink); }
.tile-pill {
  padding: 4px 12px; border-radius: 999px; background: var(--lz-surface);
  border: 1px solid color-mix(in srgb, var(--lz-slate) 45%, transparent);
  font-size: 12px; font-weight: 600; color: var(--lz-ink-2);
}
.tile-pill--yes { background: var(--lz-blue); border-color: var(--lz-blue); color: var(--lz-surface); }
.station--gate .station-body p.tile { background: var(--lz-surface); }
.station--result .station-body p.tile { background: color-mix(in srgb, var(--lz-surface) 16%, transparent); font-weight: 600; color: var(--lz-surface); }
.station--result .tile .icon { color: var(--lz-surface); }

/* The track: stations 1 to 4 each draw a quarter of one gradient; station 5
   draws the dashed way out. Narrow: down the left, through the numbers. */
.station::before {
  content: ""; position: absolute; z-index: 0; left: 17px; top: 17px;
  width: 3px; height: calc(100% + var(--gap)); margin-left: -1.5px;
  background: var(--gradient-down); background-size: 100% 400%;
}
.station:nth-child(2)::before { background-position: 0 33.333%; }
.station:nth-child(3)::before { background-position: 0 66.667%; }
.station:nth-child(4)::before { background-position: 0 100%; }
.station:nth-child(5)::before { width: 0; margin-left: -1px; background: none; border-left: 2px dashed color-mix(in srgb, var(--lz-slate) 45%, transparent); }
.station:last-child::before { content: none; }

/* The pulse. Each one runs its own piece of track during its quarter of the loop. */
.station:nth-child(-n+4)::after {
  content: ""; position: absolute; z-index: 1; left: 17px; top: 17px;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; opacity: 0;
  background: var(--lz-surface); border: 3px solid var(--lz-blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lz-blue) 18%, transparent);
  animation: pulse-down 8s infinite;
}
.station:nth-child(2)::after { animation-delay: 2s; }
.station:nth-child(3)::after { animation-delay: 4s; }
.station:nth-child(4)::after { animation-delay: 6s; }
@keyframes pulse-down {
  0% { top: 17px; opacity: 1; animation-timing-function: cubic-bezier(.45, .05, .55, .95); }
  25% { top: calc(100% + var(--gap) + 17px); opacity: 1; }
  25.01%, 100% { top: calc(100% + var(--gap) + 17px); opacity: 0; }
}
@keyframes pulse-across {
  0% { left: 50%; opacity: 1; animation-timing-function: cubic-bezier(.45, .05, .55, .95); }
  25% { left: calc(150% + var(--gap)); opacity: 1; }
  25.01%, 100% { left: calc(150% + var(--gap)); opacity: 0; }
}

/* "Sources keep changing": a return arc from station 5 to station 3 (wide only). */
.track-return { margin-top: 18px; }
.track-return-line { display: none; }
.track-return p { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--lz-ink); }
.track-return p .icon { color: var(--lz-blue); }

@media (min-width: 1040px) {
  .track { --gap: 16px; padding: 40px 32px 32px; }
  .stations { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .station { flex-direction: column; align-items: center; gap: 16px; }
  .station-body { width: 100%; }
  .station--out .station-num .icon { transform: none; }
  .station::before {
    left: 50%; top: 17px; width: calc(100% + var(--gap)); height: 3px; margin: -1.5px 0 0;
    background: var(--lz-gradient); background-size: 400% 100%;
  }
  .station:nth-child(2)::before { background-position: 33.333% 0; }
  .station:nth-child(3)::before { background-position: 66.667% 0; }
  .station:nth-child(4)::before { background-position: 100% 0; }
  .station:nth-child(5)::before { width: calc(100% + var(--gap)); height: 0; margin: -1px 0 0; background: none; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--lz-slate) 45%, transparent); }
  .station:nth-child(-n+4)::after { left: 50%; animation-name: pulse-across; }

  /* The arc: from under station 5's centre back to station 3's, one column = (100% - 5 gaps) / 6. */
  .track-return { --col: calc((100% - 5 * var(--gap)) / 6); position: relative; height: 62px; margin-top: 14px; }
  .track-return-line {
    display: block; position: absolute; top: 0; height: 22px;
    left: calc(var(--col) / 2 + 2 * (var(--col) + var(--gap))); width: calc(2 * (var(--col) + var(--gap)));
    border: 2px dashed var(--lz-blue); border-top: 0; border-radius: 0 0 18px 18px;
  }
  .track-return-line::before {
    content: ""; position: absolute; left: -7px; top: -9px;
    border-bottom: 9px solid var(--lz-blue); border-left: 6px solid transparent; border-right: 6px solid transparent;
  }
  .track-return p {
    position: absolute; top: 32px; justify-content: center;
    left: calc(var(--col) / 2 + 2 * (var(--col) + var(--gap))); width: calc(2 * (var(--col) + var(--gap)));
  }
  .track-return p .icon { display: none; }
}

/* Reduced motion: no pulse at any width, no fade on the knowledge assets table. Last, so no width rule overrides it. */
@media (prefers-reduced-motion: reduce) {
  .station:nth-child(-n+4)::after { content: none; animation: none; }
  .mat-toggle:checked ~ .mat-detail { animation: none; }
  .mat-face { transition: none; }
}

.footer-note { margin-top: 8px; font-size: 14px; color: var(--lz-text-muted); }

/* ---- Footer ----------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--lz-border); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tagline { margin-top: 12px; color: var(--lz-ink); font-weight: 600; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lz-slate); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--lz-ink-2); }
.footer-links a:hover { color: var(--lz-ink); }
.footer-publisher { margin-top: 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--lz-slate); }
.copyright { margin-top: 24px; font-size: 14px; color: var(--lz-text-muted); }

/* ---- Golden context check: CSS only, no script ------------------------------------ */
/* Each "no" shows the principle it tests; the question-to-principle map is
   below and in check.html (q-principle). Change both together. */

.check-privacy { margin-top: 16px; font-size: 15px; }

.questions { display: grid; }
.questions > li { border-bottom: 1px solid var(--lz-line); padding: 20px 0; }
.questions > li:first-child { padding-top: 0; }
.questions > li:last-child { border-bottom: 0; padding-bottom: 0; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend {
  display: flex; gap: 14px; align-items: flex-start; padding: 0;
  font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--lz-ink);
}
.q-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; margin-top: -2px;
  background: var(--lz-blue-tint); color: var(--lz-blue-strong); font-size: 15px; font-weight: 700;
}
.q-answers { display: flex; gap: 12px; margin-top: 12px; padding-left: 44px; }
.q-answer {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 96px;
  padding: 8px 16px; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-md);
  background: var(--lz-surface); color: var(--lz-ink); font-weight: 600; cursor: pointer;
}
.q-answer input { margin: 0; width: 18px; height: 18px; accent-color: var(--lz-blue); }
.q-answer:hover { border-color: var(--lz-blue); }
.q-answer:has(input:checked) { border-color: var(--lz-blue); background: var(--lz-blue-tint); }
.q-answer:has(input:focus-visible) { outline: 2px solid var(--lz-blue); outline-offset: 2px; }
.q-principle { display: none; }

.results { display: grid; gap: 16px; }
.result { display: none; gap: 16px; align-items: flex-start; }
.result p { font-size: 18px; line-height: 1.5; color: var(--lz-ink-2); }
.result .num { margin-top: -3px; }
.result .more { margin-top: 6px; margin-right: 24px; }
.result-gaps, .result-all-yes { display: none; }
.result-gaps { margin-bottom: 20px; color: var(--lz-ink-2); }
.result-all-yes { color: var(--lz-ink); font-weight: 600; }

.check:has(input[value="no"]:checked) .result-gaps { display: block; }
.check:has(input[value="no"]:checked) .result-empty { display: none; }
.check:has(#q1-yes:checked):has(#q2-yes:checked):has(#q3-yes:checked):has(#q4-yes:checked):has(#q5-yes:checked):has(#q6-yes:checked):has(#q7-yes:checked):has(#q8-yes:checked):has(#q9-yes:checked):has(#q10-yes:checked) .result-all-yes { display: block; }
.check:has(#q1-yes:checked):has(#q2-yes:checked):has(#q3-yes:checked):has(#q4-yes:checked):has(#q5-yes:checked):has(#q6-yes:checked):has(#q7-yes:checked):has(#q8-yes:checked):has(#q9-yes:checked):has(#q10-yes:checked) .result-empty { display: none; }
.check:has(#q1-no:checked, #q2-no:checked, #q3-no:checked) .result--p1 { display: flex; }
.check:has(#q4-no:checked, #q5-no:checked, #q6-no:checked) .result--p2 { display: flex; }
.check:has(#q7-no:checked) .result--p3 { display: flex; }
.check:has(#q8-no:checked) .result--p4 { display: flex; }
.check:has(#q9-no:checked) .result--p5 { display: flex; }
.check:has(#q10-no:checked) .result--p6 { display: flex; }

/* Printed, the check is a paper checklist: empty boxes, each question names its principle. */
@media print {
  .skip-link, .site-header, .site-footer, .check-results, main:has(.check) #close, .accent-bar { display: none; }
  body { background: var(--lz-surface); }
  .hero, .section { padding: 12px 0; }
  .card { box-shadow: none; padding: 16px; }
  .questions > li { break-inside: avoid; padding: 10px 0; }
  .q-answer { min-height: 0; padding: 2px 10px; }
  .q-principle { display: block; margin-top: 6px; padding-left: 44px; font-size: 13px; color: var(--lz-text-muted); }
  .q-principle strong { font-weight: 600; color: var(--lz-ink-2); }
}
