/* =============================================================================
   CorePhysix Labs — "Instrument" design system
   corephysixlabs.com · v1.0.0

   A hand-authored stylesheet (no build step). Concept: a digital technology
   laboratory — specimen sheets, calibrated rules, registration marks, index
   numbers and readouts. Precision over decoration.

   Palette   graphite ink · warm paper · one accent: signal lime
   Type      Archivo (variable width, display + text) · IBM Plex Mono (metadata)
   Shape     square corners, 1px rules, no drop-shadow cards

   Sections
     01 Tokens            09 Header, nav, flyout, menu
     02 Base / reset      10 Basket drawer, toasts
     03 Layout            11 Page heads, crumbs, steps
     04 Utilities         12 Catalogue: rows, specimens, spec lists
     05 Typography        13 Home: hero, diagram, matrix, protocol
     06 Rules & marks     14 Commerce & account
     07 Buttons & links   15 Footer
     08 Forms & alerts    16 Motion & reduced motion
   ============================================================================= */

/* ----------------------------------------------------------------- 01 TOKENS */
:root {
  --ink: #0B0C0E;
  --graphite: #16181B;
  --char: #222529;
  --steel: #3A3D42;
  --paper: #F2F0EA;
  --paper-2: #E9E6DE;
  --sheet: #FAF9F5;
  --rule: #D5D1C6;
  --rule-strong: #A8A398;
  --rule-dark: #2C2F34;
  --text: #1B1C1F;
  --mute: #5C5A54;
  --mute-dark: #A09E96;
  --lime: #C6F04D;
  --lime-deep: #A9D82A;
  --lime-wash: #EEF8CF;
  --olive: #455709;
  --err: #B42318;
  --err-wash: #FBEAE7;
  --warn: #9A4A0B;
  --warn-wash: #FBF0E2;

  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1360px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

/* ------------------------------------------------------------ 02 BASE/RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
html.cp-no-scroll { overflow: hidden; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cp-dark :focus-visible, .cp-section--dark :focus-visible, .cp-footer :focus-visible, .cp-menu :focus-visible { outline-color: var(--lime); }
[hidden], .hidden { display: none !important; }
.flex { display: flex; }
.block { display: block; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cp-skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 600; transition: top .2s var(--ease); }
.cp-skip:focus { top: 12px; }

/* ----------------------------------------------------------------- 03 LAYOUT */
.cp-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.cp-wrap--narrow { max-width: calc(1040px + var(--gutter) * 2); }
.cp-wrap--text { max-width: calc(760px + var(--gutter) * 2); }

.cp-section { padding-block: clamp(64px, 8vw, 128px); position: relative; }
.cp-section--tight { padding-block: clamp(44px, 5.5vw, 80px); }
.cp-section--flush-top { padding-top: 0; }
.cp-section--rule { border-top: 1px solid var(--rule); }
.cp-section--sheet { background: var(--sheet); }
.cp-section--paper2 { background: var(--paper-2); }
.cp-section--dark, .cp-dark { background: var(--ink); color: #E9E7E1; }
.cp-section--dark .cp-mute, .cp-dark .cp-mute { color: var(--mute-dark); }

.cp-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1fr); }
.cp-grid--gap-0 { gap: 0; }
.cp-grid--gap-sm { gap: 12px; }
@media (min-width: 640px) {
  .cp-grid--2, .cp-grid--3, .cp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Asymmetric splits (collapse below 1024px) */
.cp-split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .cp-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cp-split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cp-split--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-split--aside { grid-template-columns: minmax(0, 1fr) 380px; }
  .cp-split--nav { grid-template-columns: 250px minmax(0, 1fr); }
  .cp-split--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.cp-sticky { position: static; }
@media (min-width: 1024px) {
  .cp-sticky { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}
.cp-stack > * + * { margin-top: var(--stack, 16px); }
.cp-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, 12px); }
.cp-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.cp-min0 { min-width: 0; }

/* -------------------------------------------------------------- 04 UTILITIES */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; }
.mt-8 { margin-top: 64px; } .mt-9 { margin-top: 88px; }
.mb-0 { margin-bottom: 0 !important; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-6 { margin-bottom: 32px; }
.pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; }
.w-full { width: 100%; }
.max-60 { max-width: 60ch; } .max-48 { max-width: 48ch; } .max-36 { max-width: 36ch; }
.t-center { text-align: center; } .t-right { text-align: right; }
.t-balance { text-wrap: balance; } .t-pretty { text-wrap: pretty; }
.t-mute, .cp-mute { color: var(--mute); }
.t-ink { color: var(--ink); }
.t-olive { color: var(--olive); }
.t-lime { color: var(--lime); }
.t-err { color: var(--err); }
.t-small { font-size: 14px; line-height: 1.6; }
.t-xs { font-size: 12.5px; line-height: 1.55; }
.t-mono { font-family: var(--font-mono); }
.t-num { font-variant-numeric: tabular-nums; }
.t-strike { text-decoration: line-through; }
.t-break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
@media (max-width: 639.98px) { .hide-sm { display: none !important; } }
@media (min-width: 640px) { .only-sm { display: none !important; } }
@media (max-width: 1023.98px) { .hide-md { display: none !important; } }
@media (min-width: 1024px) { .only-md { display: none !important; } }

.cp-ico { width: 18px; height: 18px; flex-shrink: 0; }
.cp-ico--xs { width: 12px; height: 12px; }
.cp-ico--sm { width: 15px; height: 15px; }
.cp-ico--lg { width: 22px; height: 22px; }
.cp-ico--xl { width: 28px; height: 28px; }

/* ------------------------------------------------------------- 05 TYPOGRAPHY */
.cp-display, .cp-h1, .cp-h2, .cp-h3, .cp-h4 {
  font-family: var(--font-sans); color: var(--ink); font-weight: 600;
  text-wrap: balance; overflow-wrap: break-word;
}
.cp-section--dark .cp-display, .cp-section--dark .cp-h1, .cp-section--dark .cp-h2, .cp-section--dark .cp-h3, .cp-section--dark .cp-h4,
.cp-dark .cp-display, .cp-dark .cp-h1, .cp-dark .cp-h2, .cp-dark .cp-h3, .cp-dark .cp-h4 { color: #F4F2EC; }
.cp-display {
  font-size: clamp(2.7rem, 1rem + 6.6vw, 7.6rem);
  line-height: .93; letter-spacing: -.045em; font-stretch: 108%; font-weight: 600;
}
.cp-h1 { font-size: clamp(2.35rem, 1.3rem + 3.9vw, 4.9rem); line-height: .98; letter-spacing: -.04em; font-stretch: 106%; }
.cp-h2 { font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; font-stretch: 104%; }
.cp-h3 { font-size: clamp(1.3rem, 1.05rem + .85vw, 1.85rem); line-height: 1.12; letter-spacing: -.025em; }
.cp-h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.015em; }
.cp-lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.28rem); line-height: 1.55; color: var(--steel); max-width: 60ch; text-wrap: pretty; }
.cp-section--dark .cp-lead, .cp-dark .cp-lead { color: #BDBBB3; }
.cp-body { font-size: 16px; line-height: 1.7; color: var(--steel); }
.cp-section--dark .cp-body, .cp-dark .cp-body { color: #BDBBB3; }

/* Technical label — mono, uppercase, tracked */
.cp-label {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.cp-section--dark .cp-label, .cp-dark .cp-label { color: var(--mute-dark); }
.cp-label--ink { color: var(--ink); }
.cp-label--lime { color: var(--lime); }

/* Section index: "§ 02 ——— Capability" */
.cp-index { display: flex; align-self: start; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cp-index::after { content: ""; flex: 1; height: 1px; background: var(--rule); min-width: 24px; }
.cp-index__num { color: var(--ink); font-weight: 500; }
.cp-index__num::before { content: "§ "; color: var(--mute); }
.cp-index--short::after { flex: 0 0 48px; }
.cp-section--dark .cp-index, .cp-dark .cp-index { color: var(--mute-dark); }
.cp-section--dark .cp-index::after, .cp-dark .cp-index::after { background: var(--rule-dark); }
.cp-section--dark .cp-index__num, .cp-dark .cp-index__num { color: var(--lime); }

/* Marker highlight */
.cp-mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cp-section--dark .cp-mark, .cp-dark .cp-mark { background: none; color: var(--lime); padding: 0; }

/* Long-form prose (policies, service overviews) */
.cp-prose { color: var(--steel); font-size: 16px; line-height: 1.75; max-width: 72ch; }
.cp-prose > * + * { margin-top: 1em; }
.cp-prose h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 600; margin-top: 2em; }
.cp-prose h3 { font-size: 1.12rem; line-height: 1.3; color: var(--ink); font-weight: 600; margin-top: 1.6em; }
.cp-prose strong { color: var(--ink); font-weight: 600; }
.cp-prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); transition: text-decoration-color .2s; }
.cp-prose a:hover { text-decoration-color: var(--ink); background: var(--lime-wash); }
.cp-prose ul, .cp-prose ol { padding-left: 0; }
.cp-prose ul > li { position: relative; padding-left: 22px; }
.cp-prose ul > li + li, .cp-prose ol > li + li { margin-top: .45em; }
.cp-prose ul > li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--ink); }
.cp-prose ol { counter-reset: cp-ol; }
.cp-prose ol > li { position: relative; padding-left: 34px; counter-increment: cp-ol; }
.cp-prose ol > li::before { content: counter(cp-ol, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.cp-prose table { font-size: 14.5px; margin-top: 1.4em; }
.cp-prose th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.cp-prose th, .cp-prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cp-prose code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); padding: 1px 5px; }
.cp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------- 06 RULES & MARKS */
.cp-rule { height: 1px; background: var(--rule); border: 0; }
.cp-rule--ink { background: var(--ink); }
.cp-rule--dark { background: var(--rule-dark); }
.cp-bt { border-top: 1px solid var(--rule); }
.cp-bb { border-bottom: 1px solid var(--rule); }
.cp-bt-ink { border-top: 1px solid var(--ink); }

/* Ruler ticks: minor every 8px, major every 80px */
.cp-ticks {
  height: 10px; width: 100%;
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px 80px) bottom left / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px) bottom left / 100% 5px no-repeat;
}
.cp-section--dark .cp-ticks, .cp-dark .cp-ticks {
  background:
    repeating-linear-gradient(90deg, #4A4D52 0 1px, transparent 1px 80px) bottom left / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, #2A2D31 0 1px, transparent 1px 8px) bottom left / 100% 5px no-repeat;
}

/* Column guides (12-col) — decorative, behind content */
.cp-guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cp-guides::before {
  content: ""; position: absolute; inset: 0 var(--gutter);
  max-width: var(--wrap); margin-inline: auto;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-right: 1px solid var(--rule);
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.cp-section--dark .cp-guides::before, .cp-dark .cp-guides::before { background-image: linear-gradient(to right, var(--rule-dark) 1px, transparent 1px); border-color: var(--rule-dark); opacity: .6; }
@media (max-width: 767.98px) { .cp-guides::before { background-size: calc(100% / 4) 100%; } }

/* Registration marks on the corners of a framed block */
.cp-frame { position: relative; }
.cp-frame::before, .cp-frame::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
}
.cp-frame::before { top: -7px; left: -7px; }
.cp-frame::after { bottom: -7px; right: -7px; }
.cp-section--dark .cp-frame::before, .cp-section--dark .cp-frame::after, .cp-dark .cp-frame::before, .cp-dark .cp-frame::after {
  background: linear-gradient(var(--lime), var(--lime)) center / 1px 100% no-repeat, linear-gradient(var(--lime), var(--lime)) center / 100% 1px no-repeat;
}

/* Tags */
.cp-tag {
  display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 9px;
  border: 1px solid var(--rule-strong); color: var(--ink); background: transparent;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap;
}
.cp-tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cp-tag--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cp-tag--soft { border-color: var(--rule); color: var(--mute); }
.cp-section--dark .cp-tag, .cp-dark .cp-tag { border-color: #45484D; color: #E9E7E1; }
.cp-section--dark .cp-tag--lime, .cp-dark .cp-tag--lime { border-color: var(--lime); color: var(--ink); }
.cp-dot { width: 7px; height: 7px; background: var(--lime); display: inline-block; flex-shrink: 0; }
.cp-dot--ink { background: var(--ink); }
.cp-dot--pulse { animation: cp-pulse 2.4s var(--ease-io) infinite; }

/* Panels */
.cp-panel { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(20px, 2.6vw, 32px); position: relative; }
.cp-panel--flat { background: transparent; }
.cp-panel--paper2 { background: var(--paper-2); border-color: transparent; }
.cp-panel--ink { background: var(--ink); color: #E9E7E1; border-color: var(--ink); }
.cp-panel--ink .cp-label { color: var(--mute-dark); }
.cp-panel--ink .cp-h3, .cp-panel--ink .cp-h4, .cp-panel--ink .cp-h2 { color: #F4F2EC; }
.cp-panel--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cp-panel--lime .cp-label { color: var(--ink); }
.cp-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.cp-panel--ink .cp-panel__head { border-color: var(--rule-dark); }

/* ------------------------------------------------------- 07 BUTTONS & LINKS */
.cp-btn {
  --btn-h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--btn-h); padding: 0 20px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.15;
  text-align: center; white-space: nowrap; cursor: pointer; user-select: none;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease), transform .15s;
}
.cp-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.cp-btn:hover::before, .cp-btn:focus-visible::before { transform: scaleX(1); }
.cp-btn:hover, .cp-btn:focus-visible { color: var(--paper); }
.cp-btn:active { transform: translateY(1px); }
.cp-btn .cp-ico { transition: transform .35s var(--ease); }
.cp-btn:hover .cp-btn__arrow, .cp-btn:focus-visible .cp-btn__arrow { transform: translateX(4px); }
.cp-btn[disabled], .cp-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.cp-btn--primary { background: var(--ink); color: var(--paper); }
.cp-btn--primary::before { background: var(--lime); }
.cp-btn--primary:hover, .cp-btn--primary:focus-visible { color: var(--ink); }

.cp-btn--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cp-btn--lime::before { background: var(--paper); }
.cp-btn--lime:hover, .cp-btn--lime:focus-visible { color: var(--ink); border-color: var(--paper); }

.cp-btn--ghost-inv { border-color: #5A5D62; color: #F4F2EC; }
.cp-btn--ghost-inv::before { background: var(--lime); }
.cp-btn--ghost-inv:hover, .cp-btn--ghost-inv:focus-visible { color: var(--ink); border-color: var(--lime); }

.cp-btn--quiet { border-color: transparent; padding-inline: 8px; }
.cp-btn--quiet::before { background: var(--paper-2); }
.cp-btn--quiet:hover, .cp-btn--quiet:focus-visible { color: var(--ink); }

.cp-btn--sm { --btn-h: 40px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.cp-btn--lg { --btn-h: 58px; padding: 0 26px; font-size: 15.5px; }
.cp-btn--block { display: flex; width: 100%; }
.cp-btn.is-added { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cp-btn.is-added::before { transform: scaleX(0); }

/* Text links */
.cp-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14.5px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease), color .2s;
}
.cp-link:hover, .cp-link:focus-visible { background-size: 0% 1px; background-position: right bottom; }
.cp-link .cp-ico { transition: transform .35s var(--ease); }
.cp-link:hover .cp-ico, .cp-link:focus-visible .cp-ico { transform: translateX(4px); }
.cp-link--mono { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.cp-section--dark .cp-link, .cp-dark .cp-link { color: #F4F2EC; }
.cp-link--lime { color: var(--lime) !important; }
.cp-inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); }
.cp-inline-link:hover { text-decoration-color: var(--ink); background: var(--lime-wash); }
.cp-textbtn { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.cp-textbtn:hover { color: var(--ink); }
.cp-textbtn--danger:hover { color: var(--err); }

/* Square icon button */
.cp-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--rule-strong); color: var(--ink); background: transparent;
  transition: background-color .25s, border-color .25s, color .25s;
}
.cp-iconbtn:hover, .cp-iconbtn:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------------------------------------------------------- 08 FORMS/ALERTS */
.cp-field { display: block; min-width: 0; }
.cp-field-label, .cp-flabel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.cp-req { color: var(--err); font-weight: 500; }
.cp-opt { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cp-input, .cp-select, .cp-textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 0;
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.cp-textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.cp-select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0C0E' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.cp-input::placeholder, .cp-textarea::placeholder { color: #8E8B83; }
.cp-input:hover, .cp-select:hover, .cp-textarea:hover { border-color: var(--steel); }
.cp-input:focus, .cp-select:focus, .cp-textarea:focus { border-color: var(--ink); background: #fff; box-shadow: inset 0 -2px 0 var(--lime-deep), 0 0 0 3px rgba(198, 240, 77, .45); outline: none; }
.cp-input.is-invalid, .cp-select.is-invalid, .cp-textarea.is-invalid, .us-input-err { border-color: var(--err) !important; box-shadow: inset 0 -2px 0 var(--err); }
.cp-input[readonly], .cp-input:disabled { background: var(--paper-2); color: var(--mute); }
.cp-input--mono { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.cp-hint { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.cp-error { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--err); font-weight: 500; }
.cp-ok { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--olive); font-weight: 500; }
.cp-form-grid { display: grid; gap: 18px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cp-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp-span-2 { grid-column: 1 / -1; } }

/* Checkbox / radio */
.cp-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--steel); }
.cp-check input[type="checkbox"], .cp-check input[type="radio"], input.cp-checkbox {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; margin: 2px 0 0; width: 20px; height: 20px;
  border: 1px solid var(--ink); background: var(--sheet); display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s;
}
.cp-check input[type="radio"] { border-radius: 50%; }
.cp-check input:checked, input.cp-checkbox:checked { background: var(--ink); }
.cp-check input[type="checkbox"]:checked::after, input.cp-checkbox:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-1px) rotate(-45deg); }
.cp-check input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* Numbered fieldset (checkout, forms) */
.cp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-fieldset + .cp-fieldset { margin-top: 0; }
.cp-fieldset__head { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; padding: 22px 0 18px; border-top: 1px solid var(--ink); }
.cp-fieldset__num { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.cp-fieldset__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cp-fieldset__desc { grid-column: 2; font-size: 14px; color: var(--mute); line-height: 1.55; }
.cp-fieldset__body { padding-bottom: 36px; }

/* Radio card */
.cp-choice { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--ink); background: var(--sheet); cursor: pointer; position: relative; }
.cp-choice::after { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--lime-deep); }

/* Alerts */
.cp-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule-strong); border-left: 3px solid var(--ink); background: var(--sheet); font-size: 14px; line-height: 1.55; color: var(--text); }
.cp-alert .cp-ico { margin-top: 2px; }
.cp-alert--ok { border-left-color: var(--lime-deep); background: var(--lime-wash); border-color: #CFE39A; border-left-color: var(--olive); }
.cp-alert--err { border-color: #EBC2BC; border-left-color: var(--err); background: var(--err-wash); color: #6F1A12; }
.cp-alert--warn { border-color: #E9CFA9; border-left-color: var(--warn); background: var(--warn-wash); color: #5C2E08; }
.cp-alert--info { border-left-color: var(--ink); }
.cp-alert a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Order state pills */
.cp-state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; line-height: 1.3; }
.cp-state::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.cp-state--paid { color: var(--olive); background: var(--lime-wash); }
.cp-state--live { color: var(--ink); background: var(--lime); border-color: var(--lime-deep); }
.cp-state--live::before { animation: cp-pulse 2s var(--ease-io) infinite; }
.cp-state--done { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.cp-state--done::before { background: var(--lime); }
.cp-state--failed { color: var(--err); background: var(--err-wash); }
.cp-state--pending { color: var(--warn); background: var(--warn-wash); }

/* Accordion (line style) */
.cp-acc { border-top: 1px solid var(--ink); }
.cp-acc__item { border-bottom: 1px solid var(--rule); }
.cp-acc__head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; width: 100%; padding: 22px 0; text-align: left; color: var(--ink); }
.cp-acc__num { font-family: var(--font-mono); font-size: 12px; color: var(--mute); min-width: 2ch; }
.cp-acc__title { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.cp-acc__icon { position: relative; width: 18px; height: 18px; align-self: center; flex-shrink: 0; }
.cp-acc__icon::before, .cp-acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.cp-acc__icon::after { transform: rotate(90deg); }
.is-open > .cp-acc__head .cp-acc__icon::after, .cp-acc__item.is-open .cp-acc__icon::after { transform: rotate(0deg); }
.cp-acc__head:hover .cp-acc__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
[data-acc-body] { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.cp-acc__body { padding: 0 36px 26px 0; color: var(--steel); line-height: 1.75; max-width: 70ch; }
@media (min-width: 640px) { .cp-acc__body { padding-left: calc(2ch + 18px + 12px); } }
.cp-section--dark .cp-acc { border-color: #E9E7E1; }
.cp-section--dark .cp-acc__item { border-color: var(--rule-dark); }
.cp-section--dark .cp-acc__head { color: #F4F2EC; }
.cp-section--dark .cp-acc__body { color: #BDBBB3; }

/* Tabs */
.cp-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tab { position: relative; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.cp-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.cp-tab:hover { color: var(--ink); }
.cp-tab.is-active { color: var(--ink); }
.cp-tab.is-active::after { transform: scaleX(1); }

/* Chips (filters) */
.cp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule-strong); font-size: 13.5px; font-weight: 500; color: var(--ink); background: transparent; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.cp-chip:hover { border-color: var(--ink); }
.cp-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cp-chip__count { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }
.cp-chip.is-active .cp-chip__count { color: var(--lime); }
.cp-scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }

/* Quantity stepper */
.cp-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--rule-strong); background: var(--sheet); }
.cp-stepper button { width: 38px; min-height: 38px; display: grid; place-items: center; color: var(--ink); font-size: 16px; transition: background-color .2s; }
.cp-stepper button:hover { background: var(--paper-2); }
.cp-stepper span, .cp-stepper input { min-width: 36px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; text-align: center; border: 0; border-inline: 1px solid var(--rule); background: transparent; }

/* ----------------------------------------------- 09 HEADER / NAV / MENU */
.cp-status { background: var(--ink); color: #C9C7BF; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; position: relative; z-index: 60; }
.cp-status__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.cp-status__msg { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-status__msg span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-status__links { display: none; gap: 22px; flex-shrink: 0; }
.cp-status__links a:hover { color: var(--lime); }
@media (min-width: 1024px) { .cp-status__links { display: flex; } }

.cp-header { position: sticky; top: 0; z-index: 70; background: rgba(242, 240, 234, .92); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--rule); transition: transform .45s var(--ease), border-color .3s, background-color .3s; }
.cp-header.is-stuck { border-bottom-color: var(--ink); background: rgba(242, 240, 234, .96); }
.cp-header.is-hidden { transform: translateY(-101%); }
.cp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.cp-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--ink); }
.cp-brand__mark { width: 34px; height: 34px; flex-shrink: 0; transition: transform .6s var(--ease); }
.cp-brand:hover .cp-brand__mark { transform: rotate(90deg); }
.cp-brand__word { display: flex; flex-direction: column; line-height: 1; }
.cp-brand__name { font-size: 18px; font-weight: 700; letter-spacing: -.035em; font-stretch: 104%; }
.cp-brand__sub { margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.cp-brand img { height: 36px; width: auto; }

.cp-nav { display: none; align-items: stretch; height: 100%; }
@media (min-width: 1100px) { .cp-nav { display: flex; } }
.cp-nav__item { position: relative; display: flex; }
.cp-nav__link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; font-size: 14.5px; font-weight: 500; color: var(--steel); transition: color .2s; height: 100%; }
.cp-nav__num { font-family: var(--font-mono); font-size: 10px; color: var(--rule-strong); transform: translateY(-5px); transition: color .2s; }
.cp-nav__link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cp-nav__link:hover, .cp-nav__link[aria-expanded="true"] { color: var(--ink); }
.cp-nav__link:hover::after, .cp-nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.cp-nav__link.is-active { color: var(--ink); font-weight: 600; }
.cp-nav__link.is-active::after { transform: scaleX(1); background: var(--lime-deep); height: 3px; }
.cp-nav__link.is-active .cp-nav__num, .cp-nav__link:hover .cp-nav__num { color: var(--ink); }
.cp-nav__caret { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.cp-nav__link[aria-expanded="true"] .cp-nav__caret { transform: rotate(180deg); }

.cp-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cp-header__cta { display: none; }
@media (min-width: 1240px) { .cp-header__cta { display: inline-flex; } }
.cp-header__account { display: none; }
@media (min-width: 640px) { .cp-header__account { display: inline-grid; } }
.cp-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; background: var(--lime); color: var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; line-height: 1; border: 1px solid var(--ink);
}
.cp-menu-btn { display: inline-grid; }
@media (min-width: 1100px) { .cp-menu-btn { display: none; } }

/* Practice flyout */
.cp-flyout { position: absolute; left: 0; right: 0; top: 100%; z-index: 65; background: var(--sheet); border-bottom: 1px solid var(--ink); box-shadow: 0 30px 60px -40px rgba(11, 12, 14, .35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
.cp-flyout.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.cp-flyout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.cp-flyout__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--rule); }
.cp-flyout__link { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; padding: 20px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background-color .25s; }
.cp-flyout__link:hover, .cp-flyout__link:focus-visible { background: var(--paper); }
.cp-flyout__code { grid-row: span 2; font-family: var(--font-mono); font-size: 11px; color: var(--mute); padding-top: 3px; letter-spacing: .06em; }
.cp-flyout__name { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.015em; }
.cp-flyout__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cp-flyout__link:hover .cp-flyout__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cp-flyout__aside { background: var(--ink); color: #E9E7E1; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }

/* Mobile / tablet menu — full screen */
.cp-menu { position: fixed; inset: 0; z-index: 120; background: var(--ink); color: #F4F2EC; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.cp-menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease), visibility 0s; }
.cp-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--rule-dark); flex-shrink: 0; }
.cp-menu .cp-brand { color: #F4F2EC; }
.cp-menu .cp-brand__sub { color: var(--mute-dark); }
.cp-menu .cp-iconbtn { border-color: #45484D; color: #F4F2EC; }
.cp-menu .cp-iconbtn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cp-menu__body { flex: 1; overflow-y: auto; padding-block: 12px 32px; }
.cp-menu__list { border-bottom: 1px solid var(--rule-dark); }
.cp-menu__link { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding: 16px 0; border-top: 1px solid var(--rule-dark); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-stretch: 106%; transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .2s; }
.cp-menu__link:first-child { border-top: 0; }
.cp-menu__link span:first-child { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--mute-dark); }
.cp-menu__link:hover, .cp-menu__link.is-active { color: var(--lime); }
.cp-menu.is-open .cp-menu__link { transform: none; opacity: 1; }
.cp-menu.is-open .cp-menu__link:nth-child(2) { transition-delay: .04s; } .cp-menu.is-open .cp-menu__link:nth-child(3) { transition-delay: .08s; }
.cp-menu.is-open .cp-menu__link:nth-child(4) { transition-delay: .12s; } .cp-menu.is-open .cp-menu__link:nth-child(5) { transition-delay: .16s; }
.cp-menu.is-open .cp-menu__link:nth-child(6) { transition-delay: .2s; }
.cp-menu__practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 28px; }
.cp-menu__practices a { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-dark); font-size: 14.5px; color: #D9D7D0; min-width: 0; }
.cp-menu__practices a span:first-child { font-family: var(--font-mono); font-size: 10.5px; color: var(--mute-dark); flex-shrink: 0; }
.cp-menu__practices a:hover { color: var(--lime); }
@media (max-width: 479.98px) { .cp-menu__practices { grid-template-columns: minmax(0, 1fr); } }
.cp-menu__foot { flex-shrink: 0; border-top: 1px solid var(--rule-dark); padding-block: 16px calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --------------------------------------------------- 10 BASKET DRAWER/TOASTS */
.cp-drawer { position: fixed; inset: 0; z-index: 130; visibility: hidden; transition: visibility 0s linear .5s; }
.cp-drawer.is-open { visibility: visible; transition: visibility 0s; }
.cp-drawer__scrim { position: absolute; inset: 0; background: rgba(11, 12, 14, .55); opacity: 0; transition: opacity .4s var(--ease); }
.cp-drawer.is-open .cp-drawer__scrim { opacity: 1; }
.cp-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 460px); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); border-left: 1px solid var(--ink); }
.cp-drawer.is-open .cp-drawer__panel { transform: none; }
.cp-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--ink); }
.cp-drawer__body { flex: 1; overflow-y: auto; padding: 0 22px; }
.cp-drawer__foot { border-top: 1px solid var(--ink); padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: var(--sheet); }
.cp-drawer__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; }
.cp-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cp-line:last-child { border-bottom: 0; }
.cp-code { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--lime); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; flex-shrink: 0; }
.cp-code--lg { width: 56px; height: 56px; font-size: 12px; }
.cp-line__name { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.cp-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-line__price { font-weight: 600; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-sum { display: grid; gap: 10px; font-size: 14.5px; }
.cp-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cp-sum dt { color: var(--mute); }
.cp-sum dd { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cp-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--ink); }
.cp-total__value { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

.cp-toasts { position: fixed; z-index: 140; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 640px) { .cp-toasts { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.cp-toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--ink); color: #F4F2EC; font-size: 14px; line-height: 1.5; border-left: 4px solid var(--lime); opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cp-toast.is-in { opacity: 1; transform: none; }
.cp-toast--error { border-left-color: #F97066; }

/* --------------------------------------------- 11 PAGE HEADS / CRUMBS / STEPS */
.cp-pagehead { position: relative; border-bottom: 1px solid var(--ink); overflow: hidden; }
.cp-pagehead__inner { position: relative; z-index: 1; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5.5vw, 80px); }
.cp-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 18px; margin-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.cp-pagehead__title { max-width: 18ch; }
.cp-pagehead__title--wide { max-width: 26ch; }
.cp-pagehead__foot { display: grid; gap: 24px; margin-top: clamp(24px, 3.5vw, 44px); }
@media (min-width: 1024px) { .cp-pagehead__foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.cp-section--dark.cp-pagehead, .cp-pagehead.cp-dark { border-bottom-color: var(--rule-dark); }
.cp-pagehead.cp-dark .cp-pagehead__meta { border-color: var(--rule-dark); }

.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cp-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cp-crumbs__sep { color: var(--rule-strong); }
.cp-crumbs [aria-current] { color: var(--ink); }
.cp-dark .cp-crumbs [aria-current], .cp-section--dark .cp-crumbs [aria-current] { color: #F4F2EC; }
.cp-dark .cp-crumbs a:hover, .cp-section--dark .cp-crumbs a:hover { color: var(--lime); }

.cp-steps { display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.cp-steps li { display: flex; align-items: center; color: var(--mute); }
.cp-steps li + li::before { content: ""; width: clamp(14px, 3vw, 40px); height: 1px; background: var(--rule-strong); margin: 0 10px; }
.cp-steps__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule-strong); margin-right: 8px; font-size: 10.5px; }
.cp-steps .is-done { color: var(--ink); }
.cp-steps .is-done .cp-steps__n { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.cp-steps .is-now { color: var(--ink); font-weight: 500; }
.cp-steps .is-now .cp-steps__n { background: var(--lime); border-color: var(--ink); color: var(--ink); }
@media (max-width: 639.98px) { .cp-steps li:not(.is-now) .cp-steps__t { display: none; } }

/* ------------------------------------------ 12 CATALOGUE: ROWS / SPECIMENS */
/* Editorial index rows */
.cp-rows { border-top: 1px solid var(--ink); }
.cp-row { border-bottom: 1px solid var(--rule); position: relative; }
.cp-row__link, .cp-row__head {
  display: grid; width: 100%; text-align: left; color: var(--ink);
  grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline;
  padding: 24px 0; position: relative; isolation: isolate;
}
.cp-row__link::before, .cp-row__head::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--sheet); opacity: 0; transition: opacity .3s var(--ease); }
.cp-row__link:hover::before, .cp-row__head:hover::before, .cp-row.is-open > .cp-row__head::before { opacity: 1; }
@media (min-width: 1024px) {
  .cp-row__link, .cp-row__head { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 5fr) 150px 44px; padding: 30px 0; }
}
.cp-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.cp-row__code { display: none; }
@media (min-width: 1024px) { .cp-row__code { display: inline; } }
.cp-row__title { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-stretch: 104%; transition: transform .45s var(--ease); }
.cp-row__link:hover .cp-row__title, .cp-row__head:hover .cp-row__title { transform: translateX(6px); }
.cp-row__desc { grid-column: 2 / -1; color: var(--mute); font-size: 15px; line-height: 1.6; max-width: 58ch; }
.cp-row__meta { grid-column: 2 / -1; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cp-row__go { display: none; }
@media (min-width: 1024px) {
  .cp-row__desc { grid-column: auto; }
  .cp-row__meta { grid-column: auto; text-align: right; }
  .cp-row__go { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease); justify-self: end; align-self: center; }
  .cp-row__link:hover .cp-row__go, .cp-row__head:hover .cp-row__go, .cp-row.is-open .cp-row__go { background: var(--lime); border-color: var(--ink); }
  .cp-row.is-open .cp-row__go { transform: rotate(45deg); }
}
.cp-row__panel { padding: 0 0 32px; }
@media (min-width: 1024px) { .cp-row__panel { padding-left: 92px; } }
.cp-section--dark .cp-rows { border-color: #E9E7E1; }
.cp-section--dark .cp-row { border-color: var(--rule-dark); }
.cp-section--dark .cp-row__link, .cp-section--dark .cp-row__head { color: #F4F2EC; }
.cp-section--dark .cp-row__link::before, .cp-section--dark .cp-row__head::before { background: var(--graphite); }
.cp-section--dark .cp-row__desc, .cp-section--dark .cp-row__meta, .cp-section--dark .cp-row__num { color: var(--mute-dark); }
.cp-section--dark .cp-row__go { border-color: #45484D; color: #F4F2EC; }
.cp-section--dark .cp-row__link:hover .cp-row__go { color: var(--ink); }

/* Engagement specimen (catalogue tile) */
.cp-specimens { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
@media (min-width: 700px) { .cp-specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cp-specimens--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-specimen { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; transition: background-color .35s var(--ease); }
.cp-specimen::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--lime-deep); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cp-specimen:hover { background: var(--sheet); }
.cp-specimen:hover::before, .cp-specimen:focus-within::before { transform: scaleX(1); }
.cp-specimen__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-specimen__practice { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-specimen__practice:hover { color: var(--ink); }
.cp-specimen__title { margin-top: 26px; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.cp-specimen__title a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.cp-specimen__title a:hover { background-size: 100% 1px; }
.cp-specimen__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cp-specimen__short { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-specimen__deliv { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-strong); display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.cp-specimen__deliv .cp-ico { color: var(--olive); margin-top: 2px; }
.cp-specimen__foot { margin-top: auto; padding-top: 22px; }
.cp-specimen__readout { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.cp-specimen__readout > div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.cp-specimen__readout > div > * { margin-top: 0 !important; }
.cp-price { font-size: clamp(1.45rem, 1.3rem + .5vw, 1.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-price--xl { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); letter-spacing: -.045em; }
.cp-specimen__actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* Catalogue entries (spec-table rows) */
.cp-entries { border-top: 1px solid var(--ink); }
.cp-group + .cp-group { margin-top: clamp(40px, 5vw, 64px); }
.cp-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; }
.cp-group__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.cp-group__title span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--mute); margin-right: 12px; vertical-align: middle; }
.cp-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); isolation: isolate; }
.cp-entry::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--sheet); opacity: 0; transition: opacity .3s var(--ease); }
.cp-entry:hover::before, .cp-entry:focus-within::before { opacity: 1; }
.cp-entry::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--lime-deep); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cp-entry:hover::after, .cp-entry:focus-within::after { transform: scaleX(1); }
.cp-entry__code { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cp-entry__main { grid-column: 1 / -1; min-width: 0; }
.cp-entry__name { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.cp-entry__name a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.cp-entry__name a:hover, .cp-entry__name a:focus-visible { background-size: 100% 1px; }
.cp-entry__short { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--mute); max-width: 64ch; }
.cp-entry__practice { display: none; }
.cp-entry__dur { font-size: 13.5px; color: var(--steel); align-self: center; }
.cp-entry__fee { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; align-self: center; }
.cp-entry__act { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cp-entry__act .cp-btn { flex: 1; }
@media (min-width: 1024px) {
  .cp-entry { grid-template-columns: 96px minmax(0, 1fr) 170px 130px 110px 96px; gap: 24px; align-items: center; padding: 22px 0; }
  .cp-entry__code, .cp-entry__main { grid-column: auto; }
  .cp-entry__practice { display: block; font-size: 13.5px; color: var(--steel); }
  .cp-entry__act { grid-column: auto; margin-top: 0; }
  .cp-entry__act .cp-btn { flex: none; }
  .cp-entry__act .cp-btn--view { display: none; }
  .cp-entries--grouped .cp-entry { grid-template-columns: 96px minmax(0, 1fr) 150px 110px 96px; }
}
.cp-entries__head { display: none; }
@media (min-width: 1024px) {
  .cp-entries__head { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px 130px 110px 96px; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .cp-entries--grouped .cp-entries__head { grid-template-columns: 96px minmax(0, 1fr) 150px 110px 96px; }
}

/* Search field with inline button */
.cp-search { position: relative; display: flex; align-items: stretch; border: 1px solid var(--ink); background: var(--sheet); }
.cp-search:focus-within { box-shadow: 0 0 0 3px rgba(198, 240, 77, .5); }
.cp-search .cp-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.cp-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 12px 14px 44px; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.cp-search input:focus { outline: none; }
.cp-search .cp-btn { border: 0; border-left: 1px solid var(--ink); min-height: auto; }

/* Filter bar */
.cp-filterbar { position: sticky; top: var(--cp-header-offset, var(--header-h)); z-index: 40; background: rgba(242, 240, 234, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); transition: top .45s var(--ease); }
.cp-filterbar__row { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.cp-filterbar__row + .cp-filterbar__row { border-top: 1px solid var(--rule); padding-block: 10px; }
.cp-filterbar .cp-scroller { flex: 1; min-width: 0; }
.cp-select--sm { min-height: 38px; padding: 6px 36px 6px 12px; font-size: 13.5px; width: auto; background-position: right 10px center; }
@media (max-width: 1023.98px) { .cp-filterbar { position: static; } }

/* Compact product row (suggestions) */
.cp-mini { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.cp-mini__name { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-mini__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-mini__side { text-align: right; }

/* Spec list: dt label / dd value, ruled */
.cp-spec { display: grid; border-top: 1px solid var(--ink); }
.cp-spec > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cp-spec dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cp-spec dd { font-size: 15px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.cp-section--dark .cp-spec, .cp-dark .cp-spec { border-color: #E9E7E1; }
.cp-section--dark .cp-spec > div, .cp-dark .cp-spec > div { border-color: var(--rule-dark); }
.cp-section--dark .cp-spec dd, .cp-dark .cp-spec dd { color: #F4F2EC; }

/* Checklist */
.cp-checklist > li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: var(--steel); }
.cp-checklist > li:first-child { border-top: 1px solid var(--rule); }
.cp-checklist .cp-ico { color: var(--olive); margin-top: 3px; }
.cp-checklist--plain > li, .cp-checklist--plain > li:first-child { border: 0; padding: 6px 0; }
.cp-section--dark .cp-checklist > li, .cp-dark .cp-checklist > li { border-color: var(--rule-dark); color: #CFCDC6; }
.cp-section--dark .cp-checklist .cp-ico, .cp-dark .cp-checklist .cp-ico { color: var(--lime); }

/* Numbered sequence (process on service pages etc.) */
.cp-seq { counter-reset: cp-seq; border-top: 1px solid var(--ink); }
.cp-seq > li { counter-increment: cp-seq; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cp-seq > li::before { content: counter(cp-seq, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--mute); padding-top: 4px; }
.cp-seq__title { font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: -.015em; }
.cp-seq__body { color: var(--mute); font-size: 15px; line-height: 1.6; }
@media (min-width: 1024px) { .cp-seq--wide > li { grid-template-columns: 72px minmax(0, 4fr) minmax(0, 7fr); } .cp-seq--wide > li::before { grid-row: auto; } }

/* Readout strip: metric cells separated by rules */
.cp-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
@media (min-width: 900px) { .cp-readout { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cp-readout--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-readout__cell { padding: 16px 18px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.cp-readout__value { margin-top: 10px; font-size: clamp(1.35rem, 1.1rem + 1vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cp-section--dark .cp-readout, .cp-dark .cp-readout { border-color: #E9E7E1; border-left-color: var(--rule-dark); }
.cp-section--dark .cp-readout__cell, .cp-dark .cp-readout__cell { border-color: var(--rule-dark); }
.cp-section--dark .cp-readout__value, .cp-dark .cp-readout__value { color: #F4F2EC; }

/* Empty state */
.cp-empty { border: 1px dashed var(--rule-strong); padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 48px); text-align: left; background: var(--sheet); position: relative; }
.cp-empty__code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------------------------------------- 13 HOME: HERO / DIAGRAM / MATRIX */
.cp-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.cp-hero__inner { position: relative; z-index: 1; padding-block: clamp(28px, 4vw, 48px) 0; }
.cp-hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .cp-hero__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cp-hero__meta > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-hero__meta dd { line-height: 1.45; }
.cp-hero__meta b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--ink); letter-spacing: .04em; overflow-wrap: anywhere; }
.cp-hero__title { margin-top: clamp(36px, 6vw, 88px); }
.cp-hero__title .cp-display { max-width: 15ch; }
@media (min-width: 1024px) { .cp-hero__title .cp-display { max-width: none; } }
.cp-hero__line { display: block; }
.cp-hero__indent { display: block; }
@media (min-width: 1024px) { .cp-hero__indent { padding-left: calc(100% / 12 * 2); } }
.cp-hero__body { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 1024px) { .cp-hero__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; } }
.cp-hero__lead { max-width: 46ch; }
.cp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479.98px) { .cp-hero__actions .cp-btn { width: 100%; } }

/* System diagram */
.cp-system { position: relative; border-top: 1px solid var(--ink); background: var(--sheet); }
.cp-system__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .cp-system__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.cp-system__canvas { position: relative; min-height: 280px; padding: 18px 0; border-bottom: 1px solid var(--rule); cursor: crosshair; }
@media (min-width: 1024px) { .cp-system__canvas { border-bottom: 0; border-right: 1px solid var(--rule); padding-right: 24px; } }
.cp-system__svg { width: 100%; height: auto; overflow: visible; }
.cp-system__svg .ln { stroke: var(--rule-strong); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.cp-system__svg .ln-flow { stroke: var(--ink); stroke-width: 1.25; fill: none; stroke-dasharray: 3 7; animation: cp-flow 3.2s linear infinite; vector-effect: non-scaling-stroke; }
.cp-system__svg .nd rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .3s; }
.cp-system__svg .nd text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink); }
.cp-system__svg .nd .cnt { fill: var(--mute); font-size: 9.5px; }
.cp-system__svg a.nd:hover rect, .cp-system__svg a.nd:focus rect { fill: var(--lime); }
.cp-system__svg a.nd:focus { outline: none; }
.cp-system__svg a.nd:focus-visible rect { stroke-width: 2.5; }
.cp-system__svg .core rect { fill: var(--ink); }
.cp-system__svg .core text { fill: var(--lime); }
.cp-system__svg .core .sub { fill: var(--mute-dark); }
.cp-system__svg .pulse { fill: var(--lime); stroke: var(--ink); stroke-width: 1; }
.cp-system__coords { position: absolute; left: 0; bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; pointer-events: none; }
.cp-system__cross { position: absolute; width: 1px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cp-system__cross::before, .cp-system__cross::after { content: ""; position: absolute; background: var(--ink); opacity: .35; }
.cp-system__cross::before { width: 1px; height: 22px; left: 0; top: -11px; }
.cp-system__cross::after { height: 1px; width: 22px; top: 0; left: -11px; }
.cp-system__canvas:hover .cp-system__cross { opacity: 1; }
.cp-system__side { padding: 22px 0 26px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .cp-system__side { padding: 22px 0 22px 28px; } }

/* Capability signal strip */
.cp-signal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
@media (min-width: 768px) { .cp-signal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cp-signal { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.cp-signal__cell { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 148px; padding: 14px 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); isolation: isolate; min-width: 0; }
.cp-signal__cell::before { content: ""; position: absolute; inset: 0; background: var(--lime); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.cp-signal__cell:hover::before, .cp-signal__cell:focus-visible::before { transform: scaleY(1); }
.cp-signal__code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.cp-signal__cell:hover .cp-signal__code { color: var(--ink); }
.cp-signal__name { font-size: 15.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
.cp-signal__bar { height: 3px; background: var(--rule); position: relative; overflow: hidden; }
.cp-signal__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }

/* Capability matrix */
.cp-matrix { border-top: 1px solid #E9E7E1; }
.cp-matrix__head, .cp-matrix__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 28px; }
@media (min-width: 900px) { .cp-matrix__head, .cp-matrix__row { grid-template-columns: 60px minmax(0, 3.2fr) minmax(0, 4.4fr) minmax(0, 4.4fr); } }
.cp-matrix__head { display: none; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .cp-matrix__head { display: grid; } }
.cp-matrix__row { padding: 24px 0; border-bottom: 1px solid var(--rule-dark); transition: background-color .3s; position: relative; }
.cp-matrix__row:hover { background: linear-gradient(90deg, rgba(198, 240, 77, .06), transparent 70%); }
.cp-matrix__n { font-family: var(--font-mono); font-size: 12px; color: var(--lime); }
.cp-matrix__cap { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #F4F2EC; }
.cp-matrix__cell { color: #BDBBB3; font-size: 15px; line-height: 1.6; }
.cp-matrix__cell .cp-label { display: block; margin-bottom: 4px; }
@media (min-width: 900px) { .cp-matrix__cell .cp-label { display: none; } }
.cp-matrix__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cp-matrix__links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); border-bottom: 1px solid #45484D; padding-bottom: 1px; }
.cp-matrix__links a:hover { color: var(--lime); border-color: var(--lime); }

/* Stack list (plain text, no logos) */
.cp-stacklist { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule-dark); }
.cp-stacklist li { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: #CFCDC6; padding: 10px 16px 10px 0; margin-right: 16px; border-bottom: 1px solid var(--rule-dark); }
.cp-stacklist li::before { content: "/ "; color: #5A5D62; }

/* Problem → procedure pairs */
.cp-pairs { border-top: 1px solid var(--ink); }
.cp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .cp-pair { grid-template-columns: 60px minmax(0, 1fr) 56px minmax(0, 1fr); gap: 28px; align-items: start; } }
.cp-pair__n { font-family: var(--font-mono); font-size: 12px; color: var(--mute); padding-top: 4px; }
.cp-pair__obs { color: var(--mute); font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.45; }
.cp-pair__obs .cp-label, .cp-pair__fix .cp-label { display: block; margin-bottom: 8px; }
.cp-pair__arrow { display: none; }
@media (min-width: 900px) { .cp-pair__arrow { display: grid; place-items: center; height: 40px; border: 1px solid var(--rule-strong); color: var(--ink); margin-top: 22px; } }
.cp-pair__fix { color: var(--ink); font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.45; font-weight: 500; }
.cp-pair__fix .cp-label { color: var(--olive); }

/* Protocol (vertical timeline) */
.cp-protocol { position: relative; }
.cp-protocol::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--ink); }
@media (min-width: 1024px) { .cp-protocol::before { left: 27px; } }
.cp-protocol__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) { .cp-protocol__step { grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr); gap: 32px; } }
.cp-protocol__step:last-child { padding-bottom: 0; }
.cp-protocol__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; background: var(--paper); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 12px; color: var(--ink); transition: background-color .4s var(--ease), color .4s; }
@media (min-width: 1024px) { .cp-protocol__n { width: 56px; height: 56px; } }
.cp-protocol__step.is-in .cp-protocol__n, .cp-protocol__step:hover .cp-protocol__n { background: var(--ink); color: var(--lime); }
.cp-protocol__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); padding-top: 8px; }
.cp-protocol__verb { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.cp-protocol__body { grid-column: 2; color: var(--steel); line-height: 1.7; max-width: 58ch; }
@media (min-width: 1024px) { .cp-protocol__body { grid-column: 3; padding-top: 30px; } }
.cp-protocol__out { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.cp-protocol__out::before { content: "OUT →"; color: var(--mute); white-space: nowrap; }

/* Statement (lab note) */
.cp-statement { font-size: clamp(1.7rem, 1rem + 2.9vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; color: #F4F2EC; font-stretch: 104%; text-wrap: balance; }
.cp-statement em { font-style: normal; color: var(--lime); }
.cp-statement--ink { color: var(--ink); }
.cp-statement--ink em { color: var(--ink); background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 94%, transparent 94%); }

/* Check grid (genuine proof) */
.cp-checks { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .cp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.cp-check-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.cp-check-item__code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--olive); padding-top: 3px; display: flex; gap: 6px; align-items: baseline; }
.cp-check-item__code::before { content: ""; width: 8px; height: 8px; background: var(--lime-deep); display: inline-block; }
.cp-check-item h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; }
.cp-check-item p { margin-top: 6px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.cp-check-item a { margin-top: 10px; }

/* CTA block */
.cp-cta { position: relative; overflow: hidden; background: var(--ink); color: #E9E7E1; }
.cp-cta__inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 140px); }
.cp-cta__title { font-size: clamp(2.5rem, 1rem + 5.4vw, 6.2rem); line-height: .94; letter-spacing: -.05em; font-weight: 600; color: #F4F2EC; font-stretch: 108%; max-width: 17ch; text-wrap: balance; }
.cp-cta__title span { color: var(--lime); }
.cp-cta__foot { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .cp-cta__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* Compact footer CTA band (inner pages) */
.cp-band { background: var(--lime); color: var(--ink); border-top: 1px solid var(--ink); }
.cp-band__inner { display: grid; gap: 20px; padding-block: clamp(28px, 3.5vw, 44px); align-items: center; }
@media (min-width: 900px) { .cp-band__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cp-band__title { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }

/* Media frame (optional imagery) */
.cp-media { position: relative; overflow: hidden; background: var(--graphite); }
.cp-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform .8s var(--ease); }
.cp-media:hover img { filter: grayscale(.2); transform: scale(1.02); }

/* ------------------------------------------------- 14 COMMERCE & ACCOUNT */
.cp-lines { border-top: 1px solid var(--ink); }
.cp-cartline { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
@media (min-width: 700px) { .cp-cartline { grid-template-columns: 56px minmax(0, 1fr) 140px 130px; align-items: center; } }
.cp-cartline__controls { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 700px) { .cp-cartline__controls { display: contents; } }
.cp-cartline__total { text-align: right; }

.cp-summary { background: var(--sheet); border: 1px solid var(--ink); }
.cp-summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--ink); background: var(--ink); color: #F4F2EC; }
.cp-summary__head .cp-label { color: var(--lime); }
.cp-summary__body { padding: 20px 22px 24px; }
.cp-assure { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--rule-strong); display: grid; gap: 10px; }
.cp-assure li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.cp-assure .cp-ico { color: var(--olive); margin-top: 2px; }

.cp-ordercard { border: 1px solid var(--rule); background: var(--sheet); }
.cp-ordercard + .cp-ordercard { margin-top: -1px; }

/* Order progress rail */
.cp-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cp-rail li { position: relative; padding: 14px 8px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); min-width: 0; }
.cp-rail li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: transparent; }
.cp-rail li.is-done { color: var(--ink); }
.cp-rail li.is-done::before { background: var(--ink); }
.cp-rail li.is-now { color: var(--ink); font-weight: 500; }
.cp-rail li.is-now::before { background: var(--lime-deep); }

/* Account shell */
.cp-sidenav { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.cp-sidenav::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .cp-sidenav { flex-direction: column; overflow: visible; border-bottom: 0; border-top: 1px solid var(--ink); } }
.cp-sidenav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; color: var(--steel); white-space: nowrap; position: relative; }
@media (min-width: 1024px) { .cp-sidenav a { padding: 15px 0; border-bottom: 1px solid var(--rule); } }
.cp-sidenav a:hover { color: var(--ink); }
.cp-sidenav a.is-active { color: var(--ink); font-weight: 600; }
.cp-sidenav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
@media (min-width: 1024px) { .cp-sidenav a.is-active::after { left: auto; right: 0; top: 50%; bottom: auto; width: 8px; height: 8px; margin-top: -4px; background: var(--lime-deep); } }
.cp-sidenav__n { font-family: var(--font-mono); font-size: 10.5px; color: var(--mute); }

/* Auth shell */
.cp-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .cp-auth { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.cp-auth__side { position: relative; overflow: hidden; background: var(--ink); color: #E9E7E1; padding: clamp(32px, 5vw, 64px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
@media (max-width: 1023.98px) { .cp-auth__side { padding-block: 28px; } .cp-auth__side-extra { display: none; } }
.cp-auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(36px, 6vw, 96px) var(--gutter); }
.cp-auth__form { width: 100%; max-width: 460px; }

/* ----------------------------------------------------------------- 15 FOOTER */
.cp-footer { background: var(--ink); color: #BDBBB3; position: relative; overflow: hidden; }
.cp-footer a:hover { color: var(--lime); }
.cp-footer__top { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cp-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cp-footer__top { grid-template-columns: minmax(0, 4.4fr) minmax(0, 2.6fr) minmax(0, 2fr) minmax(0, 3fr); gap: 32px; } }
.cp-footer .cp-brand { color: #F4F2EC; }
.cp-footer .cp-brand__sub { color: var(--mute-dark); }
.cp-footer__statement { margin-top: 22px; font-size: 15px; line-height: 1.65; max-width: 40ch; color: #BDBBB3; }
.cp-footer__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); padding-bottom: 12px; border-bottom: 1px solid var(--rule-dark); margin-bottom: 14px; display: flex; justify-content: space-between; }
.cp-footer__links li + li { margin-top: 9px; }
.cp-footer__links a { font-size: 14.5px; color: #D9D7D0; }
.cp-footer__legal { border-top: 1px solid var(--rule-dark); padding-block: 22px; font-size: 12.5px; line-height: 1.7; color: #8E8C85; display: grid; gap: 4px; }
.cp-footer__legal b { color: #C9C7BF; font-weight: 500; }
.cp-footer__bottom { border-top: 1px solid var(--rule-dark); padding-block: 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8E8C85; }
.cp-footer__word { font-size: clamp(3.2rem, 15.5vw, 14rem); font-weight: 700; letter-spacing: -.06em; line-height: .78; color: #1A1C20; font-stretch: 108%; white-space: nowrap; user-select: none; margin-bottom: -.05em; overflow: hidden; padding-top: 12px; }
.cp-footer__social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cp-footer__social a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border: 1px solid #45484D; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #D9D7D0; }
.cp-footer__social a:hover { border-color: var(--lime); }

.cp-wa { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: var(--lime); border: 1px solid var(--lime); }
.cp-wa:hover { background: var(--lime); color: var(--ink); }

/* ---------------------------------------------------------------- 16 MOTION */
.cp-js .cp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.cp-js .cp-reveal.is-in { opacity: 1; transform: none; }
.cp-js .cp-reveal-line { transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.cp-js .cp-reveal-line.is-in { transform: scaleX(1); }
@keyframes cp-flow { to { stroke-dashoffset: -100; } }
@keyframes cp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes cp-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cp-caret::after { content: "_"; margin-left: 2px; animation: cp-blink 1.1s steps(1) infinite; color: var(--olive); }
.cp-loadbar { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 400; background: var(--lime-deep); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform 1.2s var(--ease), opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cp-js .cp-reveal, .cp-js .cp-reveal-line { opacity: 1; transform: none; }
  .cp-system__svg .ln-flow { animation: none; }
}

@media print {
  .cp-status, .cp-header, .cp-footer, .cp-band, .cp-drawer, .cp-menu, .cp-wa, .cp-toasts { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------ DARK SURFACE OVERRIDES */
.cp-dark .cp-crumbs, .cp-section--dark .cp-crumbs, .cp-panel--ink .cp-crumbs { color: var(--mute-dark); }
.cp-dark .cp-crumbs__sep, .cp-section--dark .cp-crumbs__sep { color: #4A4D52; }
.cp-dark .cp-pagehead__meta, .cp-section--dark .cp-pagehead__meta { border-color: var(--rule-dark); }
.cp-dark .t-mute, .cp-section--dark .t-mute, .cp-panel--ink .t-mute,
.cp-dark .cp-hint, .cp-section--dark .cp-hint, .cp-panel--ink .cp-hint,
.cp-dark .cp-spec dt, .cp-section--dark .cp-spec dt, .cp-panel--ink .cp-spec dt { color: var(--mute-dark); }
.cp-panel--ink .cp-index { color: var(--mute-dark); }
.cp-panel--ink .cp-index::after { background: var(--rule-dark); }
.cp-panel--ink .cp-index__num { color: var(--lime); }
.cp-panel--ink .cp-checklist > li { border-color: var(--rule-dark); color: #CFCDC6; }
.cp-panel--ink .cp-checklist .cp-ico { color: var(--lime); }
.cp-panel--ink .cp-body, .cp-panel--ink .cp-lead { color: #BDBBB3; }
.cp-panel--ink .cp-link { color: #F4F2EC; }
.cp-panel--ink.cp-frame::before, .cp-panel--ink.cp-frame::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
}
.cp-dark .cp-readout__cell dt, .cp-section--dark .cp-readout__cell dt { color: var(--mute-dark); }
