/* ============================================================================
   Tinteon — Stylesheet · "Colour Lab"
   White gallery wall, solid colour chips, draw-down cards. All values come
   from tokens.css. Rooms are separated by white space and by alternating
   wall tone; colour arrives in solid blocks, never gradients.
   Part 1: base, chrome and shared components (used by every page).
   Part 2: homepage components (index.html only).
   ========================================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-h) + var(--space-6)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { color: var(--text-primary); margin: 0 0 var(--space-4); text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
p  { margin: 0 0 var(--space-4); max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--raspberry-ink); }
strong { color: var(--text-primary); font-weight: 600; }

code, pre, .mono { font-family: var(--font-mono); }
.metric, .ts, .num, td.num, .price__amount { font-variant-numeric: tabular-nums; }

/* Eyebrow: a small raspberry chip and a sentence-case label, never caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600;
  color: var(--raspberry-ink); margin-bottom: var(--space-4); letter-spacing: 0;
}
.eyebrow::before {
  content: ""; width: 10px; height: 14px; flex: none;
  background: var(--raspberry); border-radius: 1px;
}
.lead { font-size: var(--fs-lead); color: var(--text-secondary); max-width: 58ch; line-height: 1.55; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: #fff; }
.skip-link:hover { color: #fff; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-xl); }
.container--md { max-width: var(--container-md); }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y-lg); }
.section--alt { background: var(--wall); }
.section--deep { background: var(--wall); }
.section--canvas { background: var(--canvas); }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(var(--grid-cols), 1fr); }
.cols-2 { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(2, 1fr); }
.cols--stretch { align-items: stretch; }
.cols--stretch > .stretch { display: flex; }
.cols--stretch > .stretch > .console { flex: 1; display: flex; flex-direction: column; }
.cols--stretch > .stretch .log { max-height: none; flex: 1; }
.cols-3 { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(3, 1fr); }
.cols-4 { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(4, 1fr); }
.split  { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
.workspace { display: grid; gap: var(--panel-gap); grid-template-columns: 1fr 340px; align-items: start; }
.span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
.stack > * + * { margin-top: var(--stack); }
.flow > * + * { margin-top: var(--space-6); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---------- Panels: white sample cards on the wall ---------- */
.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--panel-pad);
  position: relative;
}
.section--alt .panel { border-color: var(--border-subtle); box-shadow: var(--shadow-1); }
.panel--raised { box-shadow: var(--shadow-2); border-color: var(--border-subtle); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--hover { transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.panel--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.panel__title { margin: 0 0 var(--space-2); font-size: var(--fs-h4); }
.panel > p { max-width: 56ch; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.panel__head h3 { margin: 0; font-size: var(--fs-small); }
.panel__body { padding: var(--panel-pad); }

/* Console: a lab-instrument printout card */
.console {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  min-width: 0;
  box-shadow: var(--shadow-2);
}
.console > * { position: relative; }

/* ---------- Buttons: fan-deck blades ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-body);
  line-height: 1; min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--aubergine); color: #fff; }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-5); font-size: var(--fs-small); }

/* ---------- Status chip (colour + glyph + label, never colour alone) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: 0.04em; line-height: 1;
  padding: 5px var(--space-2) 5px 6px;
  border-radius: var(--radius-chip);
  color: var(--text-secondary); background: var(--surface-3);
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 12px; border-radius: 1px; background: currentColor; flex: none; }
.chip .glyph { display: none; }
.chip--queued  { color: var(--st-queued);  background: var(--st-queued-soft); }
.chip--running { color: var(--st-running); background: var(--st-running-soft); }
.chip--waiting { color: var(--st-waiting); background: var(--st-waiting-soft); }
.chip--approve { color: var(--st-approve); background: var(--st-approve-soft); }
.chip--success { color: var(--st-success); background: var(--st-success-soft); }
.chip--failed  { color: var(--st-failed);  background: var(--st-failed-soft); }
.chip--blocked { color: var(--st-blocked); background: var(--st-blocked-soft); }
.chip--queued .dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip--approve .dot { width: 9px; height: 9px; transform: rotate(45deg); }
.chip--failed .dot { clip-path: polygon(50% 0, 100% 100%, 0 100%); height: 9px; width: 10px; }
.chip--running .dot { animation: pulse var(--pulse) var(--ease-in-out) infinite; }
@keyframes pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  color: var(--text-secondary);
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--radius-chip); padding: 3px var(--space-2);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border-default); }
.nav { display: flex; align-items: center; gap: var(--space-6); min-height: var(--nav-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--text-primary); text-decoration: none; font-weight: 700; flex: none;
}
.brand__mark { width: 26px; height: 26px; flex: none; display: block; }
.brand > span { line-height: 1; }
.brand__logo { display: block; height: 30px; width: auto; max-width: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover { color: var(--ink); background: var(--wall); }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--raspberry); border-radius: 0; }
.nav__caret { width: 10px; height: 10px; transition: transform var(--dur-fast) var(--ease-out); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }

.has-menu { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 110;
  min-width: 560px; padding: var(--space-6);
  background: var(--paper); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-3);
  display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6);
}
.megamenu > div:nth-child(2) { border-left: 1px solid var(--border-subtle); padding-left: var(--space-6); }
.megamenu.is-open { display: grid; }
.megamenu h4 { font-size: var(--fs-small); color: var(--raspberry-ink); margin-bottom: var(--space-3); }
.megamenu ul { list-style: none; margin: 0; padding: 0; }
.megamenu li { margin: 0; }
.megamenu a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-primary); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.megamenu a:hover { background: var(--wall); color: var(--ink); }
.megamenu a span { display: block; color: var(--text-muted); font-size: var(--fs-small); font-weight: 400; margin-top: 2px; }

.kbd {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 2px 6px; color: var(--text-secondary);
}
.nav__hamburger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 120; background: var(--paper);
  padding: var(--space-5) 0 var(--space-16);
  overflow-y: auto; display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { margin: 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu a {
  display: block; padding: var(--space-3) var(--space-1); color: var(--text-primary);
  text-decoration: none; font-size: 1.125rem; font-weight: 500;
}
.mobile-menu a:hover { color: var(--raspberry-ink); }
.mobile-menu a.btn { display: inline-flex; font-size: var(--fs-body); }
.mobile-menu a.btn-primary, .mobile-menu a.btn-primary:hover { color: #fff; }
.mobile-menu__group { margin-bottom: var(--space-8); }
.mobile-menu__group > h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem;
  color: var(--ink); margin-bottom: var(--space-2);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding-top: var(--space-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0;
  font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb li { margin: 0; display: flex; gap: var(--space-2); align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero (sub-pages) ---------- */
.hero { padding-block: clamp(48px, 6vw, 96px) clamp(56px, 6vw, 104px); position: relative; }
.hero__grid > * { min-width: 0; }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { font-size: var(--fs-lead); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); align-items: center;
  font-size: var(--fs-small); color: var(--text-muted); }
.hero__meta > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta > span + span::before { content: ""; width: 6px; height: 10px; background: var(--saffron); border-radius: 1px; margin-right: var(--space-1); }
@media (max-width: 1024px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Agent graph (inline SVG, sub-pages) ---------- */
.graph { width: 100%; height: auto; display: block; }
.graph__wrap { padding: var(--space-5) var(--space-5) var(--space-4); overflow-x: auto; min-width: 0; background: var(--canvas); }
.graph .edge { stroke: var(--edge); stroke-width: 1.5; fill: none; }
.graph .edge--dashed { stroke-dasharray: 6 6; }
.graph .edge--active { stroke: var(--edge-active); stroke-width: 1.5; }
.graph .edge--wrap { stroke: var(--edge-wrap); stroke-width: 1.5; stroke-dasharray: 5 5; }
.graph .node-box { fill: var(--node-bg); stroke: var(--node-border); stroke-width: 1; rx: 3; }
.graph .node.is-active .node-box { stroke: var(--node-active); stroke-width: 2; }
.graph .node.is-done .node-box { fill: #fff; }
.graph .node .node-box { transition: stroke var(--dur-base) var(--ease-out), fill var(--dur-base) var(--ease-out); }
.graph .node { cursor: pointer; }
.graph .node:hover .node-box { stroke: var(--ink); }
.graph .node[aria-pressed="true"] .node-box { stroke: var(--raspberry); stroke-width: 2; }
.graph .node:focus { outline: none; }
.graph .node-label { font-family: var(--font-mono); font-size: 12px; fill: var(--text-primary); font-weight: 500; }
.graph .node-sub { font-family: var(--font-sans); font-size: 10.5px; fill: var(--text-muted); }
.graph .node-status { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.04em; font-weight: 700; }
.graph .node:focus-visible .node-box { stroke: var(--ring); stroke-width: 2.5; }
.graph .lane-label { font-family: var(--font-sans); font-size: 10px; fill: var(--text-faint); }
.graph .grid-line { stroke: var(--grid-line); stroke-width: 1; }
.st-queued  { fill: var(--st-queued); }
.st-running { fill: var(--st-running); }
.st-waiting { fill: var(--st-waiting); }
.st-approve { fill: var(--st-approve); }
.st-success { fill: var(--st-success); }
.st-failed  { fill: var(--st-failed); }

/* ---------- Run timeline (<ol>) ---------- */
.run { list-style: none; margin: 0; padding: 0; position: relative; }
.run > li { position: relative; margin: 0; padding: 0 0 var(--step-gap) var(--space-10); }
.run > li::before {
  content: ""; position: absolute; left: 13px; top: 24px; bottom: 2px;
  width: 2px; background: var(--border-default);
}
.run > li:last-child::before { display: none; }
.run > li.is-done::before { background: var(--run-done); }
.run__dot {
  position: absolute; left: 6px; top: 4px; width: 16px; height: 20px;
  border-radius: 2px; border: 1.5px solid var(--border-strong); background: var(--paper);
}
.run > li.is-done .run__dot { border-color: var(--st-success); background: var(--st-success); }
.run > li.is-active .run__dot { border-color: var(--st-running); background: var(--st-running); }
.run > li.is-approve .run__dot { border-color: var(--saffron); background: var(--saffron); }
.run__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.run__idx { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-faint); }
.run__name { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-primary); font-weight: 500; }
.run__dur { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted);
  font-variant-numeric: tabular-nums; margin-left: auto; }
.run__detail { margin: var(--space-2) 0 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 54ch; }
.run__agent { font-size: var(--fs-micro); font-weight: 600; color: var(--aubergine); }

/* ---------- Tool-call stream / console log ---------- */
.log {
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6;
  padding: var(--space-4) var(--space-5); margin: 0; max-height: 340px; min-height: 340px; overflow-y: auto;
  scrollbar-width: thin;
  color: var(--text-secondary); list-style: none; background: var(--canvas);
}
.log li { margin: 0; padding: var(--log-line-y) 0; display: flex; gap: var(--space-3); align-items: flex-start; border-bottom: 1px dashed var(--border-subtle); }
.log .ts { color: var(--text-faint); font-size: var(--fs-micro); flex: none; padding-top: 2px; min-width: 68px; }
.log .arrow { color: var(--text-faint); flex: none; }
.log .call { color: var(--text-primary); }
.log .fn { color: var(--aubergine); font-weight: 500; }
.log .ret { color: var(--text-muted); }
.log .ok { color: var(--st-success); }
.log .warnline { color: var(--st-approve); }
.log__body { min-width: 0; word-break: break-word; }
.console__bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5); background: var(--paper);
  border-bottom: 1px solid var(--border-default);
  font-size: var(--fs-small); color: var(--text-muted);
}
.console__bar > span:nth-child(2) { color: var(--text-primary); font-weight: 600; }
.console__bar .dots { display: flex; gap: 3px; }
.console__bar .dots i { width: 7px; height: 14px; border-radius: 1px; display: block; }
.console__bar .dots i:nth-child(1) { background: var(--aubergine); }
.console__bar .dots i:nth-child(2) { background: var(--raspberry); }
.console__bar .dots i:nth-child(3) { background: var(--saffron); }
.console__bar .spacer { flex: 1; }

/* ---------- Reasoning trace ---------- */
.trace { font-size: var(--fs-small); }
.trace details { border-bottom: 1px solid var(--border-subtle); }
.trace details:last-child { border-bottom: 0; }
.trace summary {
  cursor: pointer; padding: var(--space-3) var(--space-2); min-height: 44px;
  display: flex; align-items: center; gap: var(--space-3); color: var(--text-primary);
  list-style: none; font-weight: 500;
}
.trace summary::-webkit-details-marker { display: none; }
.trace summary::before { content: "+"; color: var(--raspberry-ink); font-weight: 700; width: 1ch; }
.trace details[open] summary::before { content: "−"; }
.trace__kind { color: var(--text-muted); font-size: var(--fs-micro); font-weight: 600; min-width: 76px; }
.trace__body { padding: 0 var(--space-2) var(--space-4) var(--space-8); color: var(--text-muted);
  font-size: var(--fs-small); line-height: 1.6; }

/* ---------- Inspector ---------- */
@media (min-width: 1025px) {
  .inspector { position: sticky; top: calc(var(--nav-h) + var(--space-6)); align-self: start; }
}
.inspector dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 0; font-size: var(--fs-small); }
.inspector dt { color: var(--text-muted); }
.inspector dd { margin: 0; color: var(--text-primary); font-family: var(--font-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.panel > dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: var(--space-3) var(--space-5); margin: var(--space-4) 0 0; align-items: baseline; }
.panel > dl > dt { color: var(--text-muted); font-size: var(--fs-small); }
.panel > dl > dd { margin: 0; color: var(--text-primary); font-size: var(--fs-small); overflow-wrap: anywhere; }
.panel > dl + p { margin-top: var(--space-5); }
@media (max-width: 480px) { .panel > dl { grid-template-columns: 1fr; gap: 2px var(--space-4); }
  .panel > dl > dd { margin-bottom: var(--space-3); } }

/* ---------- Command palette ---------- */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: var(--paper); border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); color: var(--text-muted);
  padding: var(--space-2) var(--space-4); min-height: 40px; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-small);
}
.cmdk-trigger:hover { color: var(--ink); border-color: var(--ink); }
.cmdk {
  position: fixed; inset: 0; z-index: 150; display: none;
  align-items: flex-start; justify-content: center;
  padding: clamp(48px, 12vh, 140px) var(--space-4) var(--space-4);
  background: var(--scrim);
}
.cmdk.is-open { display: flex; }
.cmdk__panel {
  width: 100%; max-width: 620px; background: var(--paper);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-3);
}
.cmdk__input {
  width: 100%; border: 0; background: var(--paper); color: var(--text-primary);
  font-family: var(--font-sans); font-size: var(--fs-body-lg); padding: var(--space-5);
  border-bottom: 1px solid var(--border-default); outline: none;
}
.cmdk__list { list-style: none; margin: 0; padding: var(--space-2); max-height: 44vh; overflow-y: auto; }
.cmdk__group { font-size: var(--fs-small); font-weight: 600; color: var(--raspberry-ink);
  padding: var(--space-3) var(--space-3) var(--space-1); margin: 0; }
.cmdk__opt {
  display: flex; align-items: center; gap: var(--space-3); min-height: 44px;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer; font-size: 0.9375rem; margin: 0;
}
.cmdk__opt .mono { color: var(--text-faint); font-size: var(--fs-micro); margin-left: auto; }
.cmdk__opt.is-active, .cmdk__opt:hover { background: var(--wall); color: var(--ink); }
.cmdk__foot { display: flex; gap: var(--space-4); padding: var(--space-3) var(--space-5); margin: 0; max-width: none;
  background: var(--surface-2); font-size: var(--fs-micro); color: var(--text-muted); }

/* ---------- Metrics / stats ---------- */
.metric { display: block; font-family: var(--font-display); font-size: var(--fs-metric);
  font-weight: 500; color: var(--text-primary); line-height: 1; letter-spacing: -0.02em; }
.metric__label { display: block; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-muted); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4);
  min-height: 168px; padding: var(--space-6); }
.stat::before { content: ""; width: 24px; height: 32px; border-radius: 2px; background: var(--aubergine); }
.cols-3 > .stat:nth-child(3n+2)::before, .cols-4 > .stat:nth-child(4n+2)::before, .cols-2 > .stat:nth-child(2n)::before { background: var(--raspberry); }
.cols-3 > .stat:nth-child(3n)::before, .cols-4 > .stat:nth-child(4n+3)::before { background: var(--saffron); }
.stat .metric__label { margin-top: 0; text-wrap: balance; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--paper); }
.panel .table-wrap { border: 0; border-radius: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
caption { text-align: left; padding: var(--space-4) var(--space-5); color: var(--text-muted); font-size: var(--fs-small); }
th, td { text-align: left; padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text-primary); font-size: var(--fs-small); font-weight: 600;
  border-bottom: 1px solid var(--border-default); }
tbody tr:last-child td { border-bottom: 0; }
tbody td { color: var(--text-secondary); }
tbody th { color: var(--text-primary); font-weight: 600; }
td .mono, th .mono { font-family: var(--font-mono); font-size: var(--fs-mono); }

/* ---------- Cards ---------- */
.card__icon { width: 32px; height: 32px; margin-bottom: var(--space-4); color: var(--aubergine); }
.card__meta { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--raspberry-ink); margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }
.card { display: flex; flex-direction: column; }
.card > h3 { margin-bottom: var(--space-2); }
.card > .row { margin-top: auto; padding-top: var(--space-4); }
.card > .row + p { margin-top: var(--space-4) !important; }
.card--lead, .section--alt .card--lead.panel { grid-column: 1 / -1; background: var(--surface-2); border-color: var(--border-default); }
@media (min-width: 861px) {
  .card--lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-10); align-items: start; }
  .card--lead > .card__meta, .card--lead > h3, .card--lead > .small.muted { grid-column: 1; }
  .card--lead > p:not(.card__meta):not(.small) { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .card--lead > .row { grid-column: 2; margin-top: var(--space-4); padding-top: 0; }
  .card--lead > .row + p { grid-column: 2; }
}
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: var(--space-6); font-size: var(--fs-body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px;
  background: var(--st-success); border-radius: 1px;
}
.numlist { list-style: none; padding: 0; counter-reset: n; }
.numlist li { counter-increment: n; position: relative; padding-left: var(--space-12); margin-bottom: var(--space-5); }
.numlist li::before {
  content: counter(n); position: absolute; left: 0; top: -0.15em;
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--raspberry-ink);
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--panel-gap); grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 4; }
.bento .b-full { grid-column: span 6; }
.bento > .panel { display: flex; flex-direction: column; }
.bento .b-metric { justify-content: center; gap: var(--space-3); min-height: 156px; }
.bento .b-metric::before { content: ""; width: 24px; height: 32px; border-radius: 2px; background: var(--saffron); }
.bento .b-metric .metric__label { margin-top: 0; }
.bento .b-wide > .row, .bento .b-full > .row { margin-top: auto; padding-top: var(--space-5); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .b-wide, .bento .b-full { grid-column: span 2; } }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: center; justify-content: center; }
.section--strip { padding-block: clamp(32px, 3.6vw, 56px); }
.logos span { font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
blockquote { margin: 0; }
blockquote p { color: var(--text-primary); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; }
cite { display: block; font-style: normal; font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-4); }

/* ---------- Pricing (shared) ---------- */
.price__amount { font-family: var(--font-display); font-size: var(--fs-price); font-weight: 500; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1; display: block; }
.price__unit { font-size: var(--fs-small); color: var(--text-muted); display: block; margin-top: var(--space-2); }
.tier { position: relative; display: flex; flex-direction: column; }
.tier--featured, .section--alt .tier--featured.panel { border: 2px solid var(--ink); box-shadow: var(--shadow-2); }
.tier__badge {
  position: absolute; top: -2px; right: var(--panel-pad);
  padding: 6px var(--space-3) 5px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--raspberry); color: #fff;
  font-size: var(--fs-micro); font-weight: 700; white-space: nowrap;
}
.tier .btn { width: 100%; margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: var(--container-md); }
.faq__item { border-bottom: 1px solid var(--border-default); }
.faq__item:first-child { border-top: 1px solid var(--border-default); }
.faq__q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 56px; cursor: pointer;
  background: none; border: 0; color: var(--text-primary);
  font-family: var(--font-sans); font-size: var(--fs-body-lg); font-weight: 600;
  padding: var(--space-5) var(--space-1);
}
.faq__q:hover { color: var(--aubergine); }
.faq__q .sign {
  flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--border-strong); color: var(--ink); font-weight: 500;
}
.faq__q[aria-expanded="true"] .sign { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq__a { padding: 0 var(--space-1) var(--space-5); }
.faq__a p { max-width: 62ch; }
.faq__a[hidden] { display: none; }

/* ---------- Code / terminal ---------- */
pre {
  margin: 0; padding: var(--space-5); overflow-x: auto;
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.65;
  color: var(--text-secondary); background: var(--canvas);
}
pre code { font-family: inherit; }
.tok-key { color: var(--aubergine); }
.tok-str { color: var(--st-success); }
.tok-com { color: var(--text-faint); font-style: italic; }
.tok-fn  { color: var(--raspberry-ink); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: var(--space-5); }
.field > span { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-2); }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--paper); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: var(--fs-body);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
textarea { min-height: 132px; resize: vertical; }
form.panel .btn { margin-top: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wall); padding-block: 0 var(--space-10); position: relative; }
.site-footer::before {
  content: ""; display: block; height: 12px; margin-bottom: var(--section-y);
  border-top: 10px solid var(--paper); box-sizing: content-box;
  background: linear-gradient(90deg, var(--aubergine) 0 33.33%, var(--raspberry) 33.33% 66.66%, var(--saffron) 66.66% 100%);
}
.footer__grid { display: grid; gap: var(--space-8); grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer__grid h4 { font-size: var(--fs-small); color: var(--text-primary); margin-bottom: var(--space-4); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: var(--space-2); }
.footer__grid a { color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem; }
.footer__grid a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  justify-content: space-between; margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
  font-size: var(--fs-small); color: var(--text-muted);
}
.footer__bottom a { color: var(--text-secondary); }
.footer__status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes logIn { from { clip-path: inset(0 0 100% 0); transform: translateY(6px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.log.is-playing > li { animation: logIn 240ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 150ms); }
.log.is-paused > li { animation-play-state: paused; }
.offscreen-opt { content-visibility: auto; contain-intrinsic-size: 640px; }

/* ---------- Product marks (products.html) ---------- */
.product__logo { width: 56px; height: 56px; border-radius: var(--radius-sm); margin-bottom: var(--space-4);
  background: var(--paper); border: 1px solid var(--border-default); }
.product__logo--inline { width: 40px; height: 40px; margin: 0; }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 1024px) {
  .workspace { grid-template-columns: 1fr; }
  .span-8, .span-4, .span-5, .span-7, .span-6 { grid-column: span 12; }
}
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .split, .cols-2 { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .megamenu { min-width: 0; }
  .graph { width: 720px; max-width: none; }
  .graph__wrap { padding-inline: var(--space-4); }
  .log { font-size: var(--fs-micro); min-height: 280px; }
  .stat { min-height: 132px; }
  th, td { padding-inline: var(--space-4); }
}
@media (max-width: 1080px) {
  .nav__list, .nav__actions .btn-primary, .cmdk-trigger { display: none; }
  .nav__hamburger { display: inline-flex; }
}
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

.cols-2 > *, .cols-3 > *, .cols-4 > *, .split > *, .bento > *, .workspace > * { min-width: 0; }

/* ============================================================================
   Part 2 · Homepage components
   ========================================================================== */

/* ---------- Hero: headline over a full-width strip of paint chips ---------- */
.lab-hero { padding-block: clamp(40px, 6vw, 96px) 0; }
.lab-hero__top {
  display: grid; gap: clamp(24px, 4vw, 72px);
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end;
}
.lab-hero__top > * { min-width: 0; }
.lab-hero h1 {
  font-size: var(--fs-hero); line-height: 0.96; letter-spacing: -0.03em;
  font-weight: 500; margin: 0; max-width: 11ch;
}
.lab-hero__aside .lead { font-size: var(--fs-body-lg); margin-bottom: var(--space-6); }
.lab-hero__aside .hero__cta { margin-top: 0; }

.chipstrip {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(6px, 0.8vw, 12px);
}
.pchip {
  margin: 0; background: var(--paper); display: flex; flex-direction: column;
  border-radius: var(--radius-chip); overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-1);
}
.pchip__swatch { display: block; background: var(--c); aspect-ratio: 3 / 4.2; position: relative; }
.pchip__swatch::after { /* punched pivot hole, as on a fan deck */
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 1px rgba(0,0,0,.18);
}
.pchip__label { padding: 10px 10px 12px; display: grid; gap: 2px; }
.pchip__name { font-size: var(--fs-small); font-weight: 600; color: var(--text-primary); line-height: 1.25; }
.pchip__read { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pchip__read b { color: var(--st-success); font-weight: 500; }
.pchip__tol { font-size: var(--fs-micro); color: var(--text-muted); }
.chipstrip__note { margin: var(--space-4) 0 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 54ch; }

/* one orchestrated entrance: chips are laid down left to right */
@keyframes chipIn { from { transform: translateY(28px); } to { transform: none; } }
.js .chipstrip .pchip { animation: chipIn 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

/* ---------- Colour match: standard vs batch ---------- */
.match { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.match > * { min-width: 0; }
.match__loop { list-style: none; padding: 0; margin: var(--space-8) 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.match__loop li {
  margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-primary);
  padding: 6px var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
}
.match__loop li.is-gone { color: var(--text-muted); border-style: dashed; text-decoration: line-through; text-decoration-color: var(--raspberry); }
.match__measure { margin-top: var(--space-8); }
.match__measure h3 { font-size: var(--fs-body); margin-bottom: var(--space-3); }

.compare { background: var(--paper); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--border-default), var(--shadow-2); overflow: hidden; }
.compare__swatch { display: grid; grid-template-columns: 1fr 1fr; height: clamp(200px, 24vw, 300px); }
.compare__half { position: relative; display: flex; align-items: flex-end; padding: var(--space-4); color: #fff; font-size: var(--fs-small); font-weight: 600; }
.compare__half--std { background: #1f5f6b; }
.compare__half--batch { background: #22656d; }
.compare__half span { background: rgba(0,0,0,.28); padding: 3px 8px; border-radius: 2px; }
.compare__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-6); padding: var(--space-6); align-items: center; }
.compare__body > * { min-width: 0; }
.readout { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); align-items: baseline; }
.readout dt { font-size: var(--fs-small); color: var(--text-muted); }
.readout dd { margin: 0; font-family: var(--font-mono); font-size: 0.9375rem; color: var(--text-primary); text-align: right; font-variant-numeric: tabular-nums; }
.readout dt.readout__total { color: var(--text-primary); font-weight: 600; align-self: center; }
.readout dd.is-big { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--st-success); }
.abplot { width: 100%; height: auto; display: block; }
.abplot text { font-family: var(--font-sans); font-size: 11px; fill: var(--text-muted); }
.compare__note { margin: 0; padding: var(--space-3) var(--space-6); border-top: 1px solid var(--border-subtle); font-size: var(--fs-micro); color: var(--text-muted); max-width: none; background: var(--surface-2); }

/* ---------- Batch path: five stations under one evolving paint band ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.path__step { margin: 0; position: relative; padding: 0 clamp(12px, 1.6vw, 24px) 0 0; counter-increment: st; }
.path__band { height: 56px; background: var(--c); margin-right: calc(-1 * clamp(12px, 1.6vw, 24px)); position: relative; }
.path__step:last-child .path__band { margin-right: 0; border-radius: 0 var(--radius-chip) var(--radius-chip) 0; }
.path__step:first-child .path__band { border-radius: var(--radius-chip) 0 0 var(--radius-chip); }
.path__num { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: #fff; }
.path__step--light .path__num { color: var(--ink); }
.path__fig { display: block; width: 64px; height: 64px; margin: var(--space-6) 0 var(--space-4); color: var(--ink); }
.path__step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.path__step dl { margin: 0; font-size: var(--fs-small); }
.path__step dt { font-weight: 600; color: var(--text-primary); margin-top: var(--space-3); }
.path__step dd { margin: 2px 0 0; color: var(--text-secondary); }
.path__prod { display: inline-block; margin-top: var(--space-4); font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  color: #fff; background: var(--pc); padding: 4px 10px; border-radius: var(--radius-chip); }
.path__prod:hover { color: #fff; text-decoration: underline; }

/* ---------- Tinting story: a column of chips converging on the standard ---------- */
.story { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.story__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin: 0; padding-bottom: var(--space-10); position: relative; }
.story__item:last-child { padding-bottom: 0; }
.story__chip { width: 120px; border-radius: var(--radius-chip); overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px var(--border-default), var(--shadow-1); align-self: start; }
.story__chip i { display: block; height: 96px; background: var(--c); }
.story__chip span { display: block; padding: 6px 8px; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.story__chip--std { box-shadow: 0 0 0 2px var(--ink); }
.story__body { padding-top: var(--space-2); }
.story__body h3 { margin-bottom: var(--space-2); }
.story__time { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--space-1); }
.story__item--hold .story__time { display: inline-block; background: var(--saffron); color: var(--ink); font-weight: 600; padding: 2px 8px; border-radius: 2px; }
.story__aside { margin-top: clamp(40px, 5vw, 64px); padding-top: var(--space-6); border-top: 1px solid var(--border-default);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.story__aside p { margin: 0; font-size: var(--fs-small); }
.story__aside strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-bottom: var(--space-1); }

/* ---------- Full-bleed colour blocks ---------- */
.block--aubergine { background: var(--aubergine); color: #e6def5; }
.block--aubergine h2, .block--aubergine h3, .block--aubergine strong { color: #fff; }
.block--aubergine .lead { color: #e6def5; }
.block--aubergine .eyebrow { color: #ffd38a; }
.block--aubergine .eyebrow::before { background: var(--saffron); }
.block--aubergine a:not(.btn) { color: #fff; }
.block--aubergine :focus-visible { outline-color: var(--saffron); }
.block--saffron { background: var(--saffron); color: var(--ink); }
.block--saffron h2, .block--saffron p { color: var(--ink); }
.block--saffron :focus-visible { outline-color: var(--ink); }

/* ---------- QC panel on the aubergine block ---------- */
.qc { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.qc > * { min-width: 0; }
.qc__chart { background: #2c1655; border-radius: var(--radius-sm); padding: var(--space-6); }
.qc__chart h3 { font-size: var(--fs-body); margin-bottom: var(--space-1); }
.qc__chart p { font-size: var(--fs-small); color: #d4c8ec; margin-bottom: var(--space-4); }
.visc { width: 100%; height: auto; display: block; }
.visc text { font-family: var(--font-sans); font-size: 11px; fill: #d4c8ec; }
.qc__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: #e6def5; }
.qc__legend li { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); }
.qc__legend i { width: 18px; height: 3px; display: inline-block; background: var(--c); }
.qc__legend i.is-dashed { background: none; height: 0; border-top: 3px dashed var(--c); }
.qc-sheet { background: var(--paper); color: var(--text-secondary); border-radius: var(--radius-sm); overflow: hidden; }
.qc-sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-default); }
.qc-sheet__head h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.qc-sheet__head span { font-size: var(--fs-small); color: var(--text-muted); }
.qc-sheet table { font-size: var(--fs-small); }
.qc-sheet th, .qc-sheet td { padding: var(--space-3) var(--space-6); }
.qc-sheet tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.qc-sheet td:last-child { white-space: nowrap; }
.qc-sheet .pdot { display: inline-block; width: 8px; height: 12px; border-radius: 1px; background: var(--pc); margin-right: 6px; vertical-align: -1px; }

/* ---------- Products as paint chips ---------- */
.fan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.fan__chip { margin: 0; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-chip); overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-1); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.fan__chip:hover, .fan__chip:focus-within { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--border-default), var(--shadow-3); }
.fan__swatch { background: var(--c); color: #fff; min-height: clamp(180px, 18vw, 240px); padding: var(--space-4); display: flex; flex-direction: column; justify-content: space-between; }
.fan__stage { font-size: var(--fs-small); font-weight: 600; color: #fff; }
.fan__name { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 500; line-height: 1; margin: 0; color: #fff; letter-spacing: -0.01em; }
.fan__name a { color: inherit; text-decoration: none; }
.fan__name a::after { content: ""; position: absolute; inset: 0; }
.fan__chip { position: relative; }
.fan__name a:focus-visible { outline: none; }
.fan__chip:has(a:focus-visible) { outline: 2px solid var(--ring); outline-offset: 3px; }
.fan__label { padding: var(--space-4); font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.45; flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.fan__label p { margin: 0; }
.fan__label .fan__more { margin-top: auto; font-weight: 600; color: var(--ink); }

/* ---------- Pricing: draw-down cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--panel-gap); align-items: stretch; }
.dd { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-default); }
.dd--featured { box-shadow: 0 0 0 2px var(--ink), var(--shadow-2); }
.dd__chart { display: block; width: 100%; height: 88px; }
.dd__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.dd__name { font-size: var(--fs-body); font-weight: 600; color: var(--raspberry-ink); margin-bottom: var(--space-3); }
.dd__body > p { font-size: var(--fs-small); margin-top: var(--space-4); }
.dd__body .checklist { margin: var(--space-2) 0 var(--space-6); }
.dd__body .checklist li { font-size: var(--fs-small); margin-bottom: var(--space-2); }
.dd__body .btn { margin-top: auto; width: 100%; }
.terms { margin: var(--space-10) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.terms div { border-top: 1px solid var(--border-strong); padding-top: var(--space-4); }
.terms dt { font-weight: 600; color: var(--text-primary); font-size: var(--fs-small); }
.terms dd { margin: var(--space-1) 0 0; font-size: var(--fs-small); color: var(--text-secondary); }

.smallprint { margin-top: clamp(56px, 7vw, 96px); }
.smallprint h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; margin-bottom: var(--space-6); }
.smallprint .faq__item h4 { margin: 0; }
.smallprint .faq__a p { font-size: var(--fs-body); }

/* ---------- CTA on saffron ---------- */
.cta-lab { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.cta-lab > * { min-width: 0; }
.cta-lab h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.cta-lab p { font-size: var(--fs-body-lg); }
.cta-lab .hero__cta { margin-top: var(--space-6); }
.block--saffron .btn-secondary { border-color: var(--ink); color: var(--ink); }
.block--saffron .btn-secondary:hover { background: var(--ink); color: var(--saffron); }

/* ---------- Homepage responsive ---------- */
@media (max-width: 1100px) {
  .fan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; padding-bottom: var(--space-4); scroll-snap-type: x mandatory; }
  .path__step { scroll-snap-align: start; }
}
@media (max-width: 960px) {
  .lab-hero__top, .match, .qc, .cta-lab { grid-template-columns: 1fr; }
  .chipstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__aside { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 760px) {
  .path { display: block; overflow: visible; }
  .path__step { padding: 0 0 var(--space-10) 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-5); }
  .path__band { grid-row: 1 / span 6; height: auto; min-height: 100%; margin: 0; border-radius: var(--radius-chip) !important; }
  .path__num { top: var(--space-4); transform: none; left: 50%; translate: -50% 0; }
  .path__fig { margin-top: 0; width: 48px; height: 48px; }
  .path__step > :not(.path__band) { grid-column: 2; }
  .path__prod { justify-self: start; }
  .compare__body { grid-template-columns: 1fr; }
  .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__item { grid-template-columns: 76px minmax(0, 1fr); }
  .story__chip { width: 76px; }
  .story__chip i { height: 64px; }
  .qc-sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qc-sheet tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); }
  .qc-sheet tbody tr:last-child { border-bottom: 0; }
  .qc-sheet th, .qc-sheet td { padding: 0; border: 0; white-space: normal; }
  .qc-sheet td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .qc-sheet__head { padding-inline: var(--space-4); flex-direction: column; gap: var(--space-1); }
}
@media (max-width: 480px) {
  .chipstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chipstrip .pchip:nth-child(n+5) { display: none; }
  .pchip__swatch { aspect-ratio: 3 / 2.4; }
  .terms { grid-template-columns: 1fr; }
  .fan__swatch { min-height: 150px; }
  .qc-sheet td:last-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .log.is-playing > li { animation: none; }
  .chip--running .dot { animation: none; }
  .fan__chip:hover, .fan__chip:focus-within { transform: none; }
}

@media print {
  .site-header, .cmdk, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
