/* ============================================================
   Herbal Care 正補 — Brand System v4.0.4
   Stylesheet for the brand library reference site
   Tokens lifted directly from §3 of the master document
   ============================================================ */

/* Self-hosted Latin fonts (Inter + Noto Serif). CJK falls back to
   system fonts (Noto Sans CJK SC, PingFang SC, Microsoft YaHei).
   Removes Google Fonts CDN dependency for privacy + offline render. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/noto-serif-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/noto-serif-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Core neutrals */
  --paper-50: #FAF8F4;
  --paper-100: #F2EEE8;
  --stone-300: #E5DFD6;
  --white: #FFFFFF;

  /* Ink */
  --ink-900: #151433;
  --ink-700: #2D2B45;
  --ink-500: #4A4860;

  /* Lime — signature */
  --lime-500: #BADA55;
  --lime-50:  #EEF5D9;

  /* Forest — trust */
  --forest-700: #1F5A3A;
  --forest-50:  #E8F0E8;

  /* Honey — premium */
  --honey-500: #D4A855;
  --honey-100: #F0DFB8;

  /* Quarantined accents */
  --medic-red: #E81828;
  --herbsmart-orange: #F89828;
  --cny-vermillion: #C8102E;

  /* Status tokens */
  --status-success: #1F5A3A;
  --status-warning: #D4A855;
  --status-error:   #C44B4B;
  --status-info:    #4A7FB5;
  --status-pending: #8A6F2A;
  --status-disabled:#B7B1A8;

  /* Type — Inter + Noto Serif self-hosted (Latin only). CJK uses system fonts. */
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cjk:   "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;

  /* Layout */
  --content-max: 1440px;
  --rail-w: 280px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion — documented in §7 Motion. Three durations, two easings.
     prefers-reduced-motion: reduce shortens all to 0.01ms (see global). */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Responsive defaults — every image and embed scales with its
   container; nothing escapes the layout. */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* Visible focus ring on every interactive element. Documented in
   §7 Accessibility. Never set outline:none without replacing it. */
:focus-visible {
  outline: 2px solid var(--lime-500);
  outline-offset: 2px;
}

/* Honour the user's OS-level reduce-motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- Layout shell ----- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 32px 0 32px 32px;
}
.rail-brand {
  margin-bottom: 28px;
  padding-right: 24px;
}
.rail-brand .mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--lime-500);
  letter-spacing: -0.01em;
  margin: 0;
}
.rail-brand .zhengbu {
  font-family: var(--cjk);
  font-weight: 700;
  margin-left: 4px;
  color: var(--lime-500);
}
.rail-brand .ver {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-300);
  margin-top: 6px;
  text-transform: uppercase;
}
.rail-brand .tagline {
  font-size: 12px;
  color: var(--lime-500);
  margin-top: 14px;
  line-height: 1.5;
  padding-right: 12px;
}
.rail nav {
  font-size: 13px;
}
.rail nav details {
  margin-bottom: 10px;
}
.rail nav summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-300);
  padding: 6px 0;
  list-style: none;
}
.rail nav summary::-webkit-details-marker { display: none; }
.rail nav summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s;
  color: var(--ink-500);
}
.rail nav details[open] summary::before { transform: rotate(90deg); color: var(--lime-500); }
.rail nav ul {
  list-style: none;
  padding: 4px 0 8px 18px;
  margin: 0;
}
.rail nav a {
  display: block;
  padding: 5px 12px 5px 0;
  color: var(--paper-50);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  font-size: 13px;
  line-height: 1.4;
}
.rail nav a:hover { color: var(--lime-500); }
.rail nav a.is-current { border-left-color: var(--lime-500); color: var(--lime-500); }

.main {
  padding: 0 var(--gutter) 120px;
  /* No max-width on .main itself — that lets hero bands (.cover,
     .anchor-divider, etc.) full-bleed to the right edge of the
     viewport. Body content is constrained on section.chapter
     instead, which keeps reading line-length without leaving
     decorative bands looking truncated. */
}

/* ----- Cover hero ----- */
.cover {
  background: var(--ink-900);
  color: var(--paper-50);
  margin: 0 calc(-1 * var(--gutter)) 0;
  padding: 96px var(--gutter) 88px;
  position: relative;
}
/* Decorative accent bar removed — at clamped h1 sizes the bar landed
   under 正補 and read as a text underline rather than a section rule. */
.cover .super {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.05;
  margin: 0;
  color: var(--paper-50);
}
.cover .super .zb {
  font-family: var(--cjk);
  color: var(--lime-500);
  font-weight: 700;
  margin-left: 0.05em;
}
.cover .sub {
  font-size: 18px;
  color: var(--lime-500);
  margin-top: 36px;
  max-width: 540px;
  line-height: 1.45;
}
.cover .meta-strip {
  background: var(--forest-700);
  margin: 88px calc(-1 * var(--gutter)) -88px;
  padding: 18px var(--gutter);
  font-size: 14px;
  color: var(--paper-50);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.cover .meta-strip span { opacity: 0.92; }

/* ----- Section structure ----- */
section.chapter {
  padding-top: 96px;
  scroll-margin-top: 24px;
  max-width: var(--content-max);
}
.chapter > .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--forest-700);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.chapter > h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 16px;
  /* No hard max-width — let chapter titles set their own measure
     up to the chapter's content max. Forcing wraps via 16ch/22ch
     made multi-word titles ("Brand Constitution & Positioning")
     stack on three lines, which read like a bug rather than a
     typographic choice. */
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.chapter > .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 56ch;
  margin: 0 0 48px;
}

h3.sub {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  margin: 56px 0 14px;
  color: var(--ink-900);
}
h4.sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin: 32px 0 12px;
}
.chapter p { max-width: 70ch; }

/* ----- Tables, the workhorse ----- */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0 28px;
  background: var(--white);
  border: 1px solid var(--stone-300);
}
table.spec th, table.spec td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--stone-300);
}
table.spec thead th {
  background: var(--ink-900);
  color: var(--paper-50);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.spec tbody tr:nth-child(even) td { background: var(--paper-50); }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td code {
  background: var(--paper-100);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}

/* §16 Interactive checklists — persists tick state to localStorage */
.checklist {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 18px 20px 16px;
  margin: 14px 0 22px;
  max-width: 760px;
}
.checklist .ch-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-300);
}
.checklist .ch-bar {
  flex: 1;
  height: 6px;
  background: var(--paper-100);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.checklist .ch-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--ch-pct, 0%);
  background: var(--forest-700);
  transition: width var(--dur-base) var(--ease-out);
}
.checklist .ch-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.checklist .ch-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist .ch-items li {
  border-bottom: 1px solid var(--stone-300);
}
.checklist .ch-items li:last-child { border-bottom: 0; }
.checklist .ch-items label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}
.checklist .ch-items input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest-700);
  cursor: pointer;
}
.checklist .ch-items input:checked + span {
  color: var(--ink-500);
  text-decoration: line-through;
}
.checklist .ch-items label:hover { color: var(--ink-900); }
.checklist .ch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--stone-300);
}
.checklist .ch-saved {
  font-size: 12px;
  color: var(--forest-700);
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: ch-saved-fade var(--dur-slow) var(--ease-out);
}
@keyframes ch-saved-fade {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* §12 Density tier demos — same dataset rendered three ways */
.density-demos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 14px 0 18px;
}
@media (max-width: 1100px) {
  .density-demos { grid-template-columns: 1fr; }
}
.density-stage .density-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin: 0 0 8px;
}
.density-tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--sans);
}
.density-tbl thead { background: var(--ink-900); color: var(--paper-50); }
.density-tbl th, .density-tbl td {
  text-align: left;
  border-bottom: 1px solid var(--stone-300);
}
.density-tbl tr:last-child td { border-bottom: 0; }
.density-tbl tbody tr:nth-child(even) td { background: var(--paper-50); }
.density-comfortable th, .density-comfortable td { padding: 14px 16px; font-size: 13.5px; }
.density-compact th, .density-compact td { padding: 8px 12px; font-size: 12.5px; }
.density-display {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 24px 22px;
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 3px solid var(--lime-500);
}
.density-display .d-stat .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--lime-500);
  letter-spacing: -0.01em;
}
.density-display .d-stat .num span {
  font-size: 14px;
  color: var(--paper-100);
  margin-left: 4px;
  letter-spacing: 0;
}
.density-display .d-stat .lbl {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-100);
  margin-top: 4px;
}

/* §12 Certificate badge strip — rendered demonstration */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  margin: 14px 0 12px;
  overflow: hidden;
}
.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid var(--stone-300);
}
.cert-badge:last-child { border-right: 0; }
.cert-mark {
  background: var(--ink-900);
  color: var(--lime-500);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cert-body .scope {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
  margin: 0 0 4px;
  line-height: 1.3;
}
.cert-body .meta {
  font-size: 11px;
  color: var(--ink-500);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .cert-strip { grid-template-columns: 1fr; }
  .cert-badge { border-right: 0; border-bottom: 1px solid var(--stone-300); }
  .cert-badge:last-child { border-bottom: 0; }
}

/* §7 Pairing examples — co-setting good vs bad. The bad stage
   uses tight Latin leading / equal weights / Simplified brand name
   so designers can see the failure mode rendered, not described. */
.cjk-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}
@media (max-width: 900px) {
  .cjk-demo { grid-template-columns: 1fr; }
}
.cjk-stage .stage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-500);
  margin: 0 0 8px;
}
.cjk-stage .stage-canvas {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  padding: 18px 22px;
  min-height: 110px;
  display: flex;
  align-items: center;
}
.cjk-stage .stage-canvas p { margin: 0; max-width: none; }
.cjk-stage.cjk-bad .stage-canvas { border-left: 3px solid var(--status-error); background: #fbf6f6; }
.cjk-stage.cjk-good .stage-canvas { border-left: 3px solid var(--forest-700); background: var(--forest-50); }

/* §7 Accessibility — contrast pair sample swatch */
.contrast-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 3px;
  letter-spacing: 0;
  white-space: nowrap;
  min-width: 80px;
}

/* §7 Type minimum samples — keep cells readable across very small sizes */
.type-min-samples td:first-child {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}
.type-min-samples td { vertical-align: middle; }

/* §6 Clear-space rule visualisation. The dashed Lime ghost shows
   the minimum keep-out zone around each lockup. The CSS padding
   on .cs-zone equals (or approximates) the rule documented in
   the §6.2 minimum sizes & clear space table. */
.clear-space-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 18px;
}
@media (max-width: 640px) {
  .clear-space-demo { grid-template-columns: 1fr; }
}
.cs-stage .cs-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 8px;
}
.cs-canvas {
  background: var(--paper-50);
  border: 1px dashed var(--stone-300);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.cs-zone {
  position: relative;
  display: inline-block;
}
.cs-zone::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--cs));
  border: 2px dashed var(--lime-500);
  border-radius: 6px;
  pointer-events: none;
}
.cs-zone img {
  display: block;
  position: relative;
  z-index: 1;
}
.cs-zone-h { --cs: 32px; }
.cs-zone-h img { width: 180px; height: auto; }
.cs-zone-s { --cs: 24px; }
.cs-zone-s img { width: 120px; height: auto; }

/* §3.4 Hard pairing rules — visual swatches. Each tile is the actual
   foreground/background combination so banned tiles read as banned
   because they ARE banned (low contrast). */
.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0 24px;
}
.pair-tile {
  border-radius: 4px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}
.pair-tile .sample {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  flex: 1;
  display: flex;
  align-items: center;
}
.pair-tile .ctx {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.85;
  letter-spacing: 0;
}
.pair-tile.banned {
  /* Subtle red border to reinforce the hatching at a glance. */
  box-shadow: inset 0 0 0 2px rgba(196, 75, 75, 0.45);
}
.pair-tile.banned::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(196, 75, 75, 0.08) 10px 12px);
  pointer-events: none;
}

/* §3.6 Visibility rule demo — bug + fix side by side */
.visibility-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 18px;
}
@media (max-width: 640px) {
  .visibility-demo { grid-template-columns: 1fr; }
}
.vis-stage .vis-stage-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 8px;
}
.vis-canvas {
  background: var(--paper-50);
  padding: 32px;
  border-radius: 4px;
  border: 1px dashed var(--stone-300);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vis-card {
  padding: 18px 22px;
  border-radius: 3px;
  width: 240px;
}
.vis-card .title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.vis-card .meta {
  font-size: 12px;
  color: var(--ink-500);
  margin: 0 0 10px;
}
.vis-card .price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--forest-700);
  margin: 0;
}
.vis-card-bad {
  background: var(--paper-100);
  border: 1px solid var(--paper-100);
}
.vis-card-good {
  background: var(--white);
  border: 1px solid var(--stone-300);
  box-shadow: 0 2px 6px rgba(21, 20, 51, 0.06);
}

/* Motion live demonstrations (§7 Motion → Live demonstrations).
   Four interactive demos exercising the documented duration / easing
   tokens. All animations honour @media (prefers-reduced-motion: reduce)
   via the global rule that shortens transitions to 0.01ms. */
.motion-demos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin: 16px 0 24px;
}
.motion-demo {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 20px 22px;
}
.motion-demo .head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone-300);
}
.motion-demo .head .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--forest-700);
}
.motion-demo .head .title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  flex: 1;
}
.motion-demo .head .tokens {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.motion-demo > p { font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.motion-demo .stage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

/* Demo 02 — state change drawer using grid-template-rows */
.motion-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-in-out);
}
.motion-drawer.is-open { grid-template-rows: 1fr; }
.motion-drawer > .inner {
  overflow: hidden;
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
}
.motion-drawer.is-open > .inner { padding: 14px 16px; }
.motion-drawer > .inner > * { padding-block: 0; }
.motion-toggle .caret {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-in-out);
}
.motion-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Demo 03 — skeleton loader / loaded content swap */
.motion-skel-container { position: relative; min-height: 100px; }
.motion-skel-loading {
  display: block;
  padding: 14px 16px;
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
}
.motion-skel-loading .row {
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--paper-100) 0%, var(--stone-300) 50%, var(--paper-100) 100%);
  background-size: 200% 100%;
  animation: motion-shimmer 1.2s linear infinite;
  margin-bottom: 10px;
}
.motion-skel-loading .row:last-child { margin-bottom: 0; }
.motion-skel-loading .line-1 { width: 60%; }
.motion-skel-loading .line-2 { width: 100%; }
.motion-skel-loading .line-3 { width: 40%; }
@keyframes motion-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.motion-skel-loaded {
  display: none;
  padding: 14px 16px;
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  opacity: 0;
  transform: translateY(8px);
}
.motion-skel-container.is-loaded .motion-skel-loading { display: none; }
.motion-skel-container.is-loaded .motion-skel-loaded {
  display: block;
  animation: motion-fade-up var(--dur-slow) var(--ease-out) forwards;
}
@keyframes motion-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Demo 04 — reveal on scroll (replayable) */
.motion-reveal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
}
.motion-reveal .reveal-item {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
}
.motion-reveal.revealing .reveal-item {
  animation: motion-fade-up var(--dur-slow) var(--ease-out) forwards;
}
.motion-reveal.revealing .reveal-item:nth-child(1) { animation-delay: 0ms; }
.motion-reveal.revealing .reveal-item:nth-child(2) { animation-delay: 60ms; }
.motion-reveal.revealing .reveal-item:nth-child(3) { animation-delay: 120ms; }
.motion-reveal.revealing .reveal-item:nth-child(4) { animation-delay: 180ms; }
.motion-reveal .reveal-item .dot {
  width: 16px; height: 16px; border-radius: 50%;
  margin-bottom: 6px;
}
.motion-reveal .reveal-item .t {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
  margin: 0 0 2px;
}
.motion-reveal .reveal-item .m {
  font-size: 11px;
  color: var(--ink-500);
  margin: 0;
}

/* Chart demonstration (§12 Data visualisation). SVG inline so the
   brand tokens cascade via CSS custom properties. */
.chart-demo {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 16px 0;
  max-width: 760px;
}
.chart-demo svg { width: 100%; height: auto; display: block; }

/* Form input state matrix (§12 Form patterns). Five states per input
   plus a help-error message slot. Real focus uses :focus-visible;
   .is-focus / .is-hover modifiers exist for the demonstration grid. */
.form-demo {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 16px 0 24px;
}
.form-demo .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin-bottom: 18px;
}
.form-demo .form-row:last-child { margin-bottom: 0; }
.form-demo label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.fld {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-900);
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  text-transform: none;
  letter-spacing: 0;
}
.fld::placeholder { color: var(--ink-500); opacity: 0.7; }
.fld:hover, .fld.is-hover { background: var(--white); border-color: var(--ink-500); }
.fld:focus, .fld.is-focus {
  background: var(--white);
  border-color: var(--ink-900);
  outline: 2px solid var(--lime-500);
  outline-offset: 2px;
}
.fld.is-error { border-color: var(--status-error); background: #fbf6f6; color: var(--status-error); }
.fld:disabled, .fld[disabled] {
  background: var(--paper-100);
  color: var(--ink-500);
  cursor: not-allowed;
  opacity: 0.7;
}
.help-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-error);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .form-demo .form-row { grid-template-columns: 1fr; }
}

/* Email mock layouts (§12 Email & transactional templates). Four
   variants — default Consumer, .corp, .legacy, .utility — share
   the same anatomy with different brand-line cues. */
.email-mock {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  margin: 14px 0 8px;
  max-width: 640px;
  overflow: hidden;
}
.email-mock .email-head {
  background: var(--paper-100);
  padding: 14px 22px;
  border-bottom: 1px solid var(--stone-300);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.email-mock .brand-line {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
}
.email-mock .brand-line .brand-utility {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0;
}
.email-mock .email-head .meta {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.email-mock .email-body { padding: 22px 22px 18px; font-size: 14px; line-height: 1.6; }
.email-mock .email-body p { margin: 0 0 12px; max-width: none; }
.email-mock .email-body .subj {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
  margin-bottom: 16px;
}
.email-mock .email-body .order-summary {
  list-style: none;
  padding: 12px 16px;
  margin: 0 0 16px;
  background: var(--paper-50);
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  font-size: 13.5px;
}
.email-mock .email-body .order-summary li { padding: 4px 0; border-bottom: 1px solid var(--stone-300); }
.email-mock .email-body .order-summary li:last-child { border-bottom: 0; }
.email-mock .email-body .disclaimer {
  font-size: 11.5px;
  color: var(--ink-500);
  font-style: italic;
  margin-top: 14px;
}
.email-mock .email-foot {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.email-mock .email-foot a { color: var(--lime-500); text-decoration: none; }
.email-mock.corp .email-head { background: var(--paper-50); border-bottom-color: var(--forest-700); border-bottom-width: 2px; }
.email-mock.legacy .email-head { background: #fdf3f3; border-bottom-color: var(--medic-red); border-bottom-width: 2px; }
.email-mock.legacy .brand-line { color: var(--medic-red); }
.email-mock.utility .email-head { background: #fff7ec; border-bottom-color: var(--herbsmart-orange); border-bottom-width: 2px; }
.email-mock.utility .brand-line { color: var(--ink-900); }
.email-note {
  font-size: 12.5px;
  color: var(--ink-500);
  margin: 4px 0 24px;
  max-width: none;
}
.email-note b { color: var(--ink-900); }
table.spec.compact th, table.spec.compact td { padding: 8px 12px; font-size: 13px; }

/* Iconography demo grid (§5 Iconography numeric spec). Six cells,
   each showing a 24px icon plus its spec label. */
.icon-demo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.icon-cell {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.icon-cell svg { display: block; }
.icon-cell .lbl {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
  font-weight: 600;
}
.icon-cell.container-cell { border-radius: 8px; }

/* Wrap spec tables for horizontal scrolling on narrow viewports.
   Inside this wrapper, the table keeps its natural minimum width
   (so cells don't crush) and the wrapper handles overflow. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
}
.table-wrap table.spec { margin: 0; min-width: 100%; }
.table-wrap > table.spec { width: 100%; }

/* ----- Callout boxes ----- */
.callout {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-left: 4px solid var(--forest-700);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.55;
  border-radius: 2px;
}
.callout.lime { border-left-color: var(--lime-500); }
.callout.honey { border-left-color: var(--honey-500); background: var(--honey-100); border-color: var(--honey-500); }
.callout.danger {
  border-left-color: var(--status-error);
  background: #fbf0f0;
  border-color: #f5d8d8;
}
.callout strong { color: var(--ink-900); }
.callout .label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.callout.danger .label { color: var(--status-error); }
.callout.honey .label { color: var(--honey-500); }

/* ----- Color swatches ----- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.swatch {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  overflow: hidden;
  font-size: 12.5px;
}
.swatch .chip {
  height: 100px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.swatch .meta { padding: 12px; }
.swatch .name { font-weight: 600; color: var(--ink-900); }
.swatch .hex { font-family: ui-monospace, "SF Mono", monospace; color: var(--ink-500); margin-top: 2px; }
.swatch .use { color: var(--ink-500); margin-top: 6px; line-height: 1.4; font-size: 12px; }

/* ----- Ratio bars (mode breakdowns) ----- */
.ratio {
  margin: 14px 0 22px;
}
.ratio-title {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ratio-title span { font-weight: 400; color: var(--ink-500); font-size: 12px; }
.ratio-bar {
  display: flex;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--stone-300);
}
.ratio-bar > span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-900);
  font-weight: 600;
  min-width: 22px;
}
.ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 8px;
}
.ratio-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ratio-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid var(--stone-300);
  border-radius: 1px;
}

/* ----- Type specimen ----- */
.type-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--stone-300);
  align-items: baseline;
}
.type-row:last-child { border-bottom: 1px solid var(--stone-300); }
.type-row .name {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.type-row .specimen { color: var(--ink-900); }
.type-row .specimen .cjk { font-family: var(--cjk); margin-left: 0.4em; }
.t-display { font-family: var(--serif); font-size: 56px; line-height: 64px; font-weight: 700; }
.t-h1 { font-family: var(--serif); font-size: 42px; line-height: 50px; font-weight: 700; }
.t-h2 { font-family: var(--serif); font-size: 32px; line-height: 40px; font-weight: 700; }
.t-h3 { font-family: var(--serif); font-size: 24px; line-height: 32px; font-weight: 700; }
.t-h4 { font-family: var(--sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.t-body { font-family: var(--sans); font-size: 16px; line-height: 26px; }
.t-small { font-family: var(--sans); font-size: 14px; line-height: 22px; }
.t-caption { font-family: var(--sans); font-size: 12px; line-height: 18px; color: var(--ink-500); }

/* ----- Logo gallery ----- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.logo-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  overflow: hidden;
}
.logo-card .stage {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper-50);
}
.logo-card .stage img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}
.logo-card.dark .stage { background: var(--ink-900); }
.logo-card.white .stage { background: var(--white); }
.logo-card .meta {
  padding: 14px 16px;
  font-size: 12.5px;
  border-top: 1px solid var(--stone-300);
}
.logo-card .meta .name { font-weight: 600; color: var(--ink-900); }
.logo-card .meta .use { color: var(--ink-500); margin-top: 2px; line-height: 1.45; }

/* ----- Components: buttons, chips, cards ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-forest { background: var(--forest-700); color: var(--white); }
.btn-lime-on-ink { background: var(--lime-500); color: var(--ink-900); }
.btn-outline-ink { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-honey { background: var(--ink-900); color: var(--honey-500); border-color: var(--ink-900); }
.btn-disabled, .btn:disabled, .btn[disabled] {
  background: var(--status-disabled) !important;
  color: var(--white) !important;
  border-color: var(--status-disabled) !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Live interaction states. Real browsers handle :hover / :active /
   :focus-visible natively; .is-hover / .is-active / .is-focus
   modifiers exist only for the §9 Components state matrix. */
.btn { transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn:hover, .btn.is-hover { transform: translateY(-2px); opacity: 0.92; box-shadow: 0 4px 12px rgba(21, 20, 51, 0.18); }
.btn:active, .btn.is-active { transform: translateY(0); opacity: 1; box-shadow: 0 1px 3px rgba(21, 20, 51, 0.18) inset; }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--lime-500); outline-offset: 2px; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .loader {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: btn-spin 700ms linear infinite;
  display: inline-block;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Component state matrix layout (§9 Components → Button state matrix) */
.state-matrix {
  display: grid;
  grid-template-columns: 200px repeat(6, minmax(120px, 1fr));
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 24px;
  background: var(--white);
}
.state-matrix .cell {
  border-right: 1px solid var(--stone-300);
  border-bottom: 1px solid var(--stone-300);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  background: var(--paper-50);
}
.state-matrix .cell.dark { background: var(--ink-900); }
.state-matrix .cell.head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--paper-100);
  min-height: 40px;
  padding: 10px 12px;
}
.state-matrix .cell.row-label {
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--paper-100);
  text-align: left;
}
.state-matrix .cell:nth-child(7n) { border-right: 0; }
.state-matrix .cell:nth-last-child(-n+7) { border-bottom: 0; }
@media (max-width: 900px) {
  .state-matrix {
    grid-template-columns: 1fr;
  }
  .state-matrix .cell.head:not(:first-child) { display: none; }
  .state-matrix .cell { border-right: 0; }
  .state-matrix .cell.row-label { background: var(--ink-900); color: var(--paper-50); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--paper-100);
  color: var(--ink-700);
  border: 1px solid var(--stone-300);
}
.chip.success { background: var(--forest-50); color: var(--forest-700); border-color: var(--forest-700); }
.chip.warning { background: var(--honey-100); color: #6f4d10; border-color: var(--honey-500); }
.chip.error   { background: #fbe7e7; color: var(--status-error); border-color: var(--status-error); }
.chip.info    { background: #E4ECF4; color: var(--status-info); border-color: var(--status-info); }
.chip.pending { background: #f0e8d4; color: var(--status-pending); border-color: var(--status-pending); }
.chip.disabled{ background: var(--paper-100); color: var(--status-disabled); border-color: var(--status-disabled); }

.demo-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  margin: 14px 0;
}
.demo-row.dark { background: var(--ink-900); }
.demo-row.dark .label { color: var(--paper-50); }
.demo-row .label {
  width: 100%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-bottom: 6px;
}

/* Product card sample */
.card-sample {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  font-size: 13px;
  width: 260px;
}
.card-sample .photo {
  height: 180px;
  background: var(--paper-100) center/cover no-repeat;
}
.card-sample .body { padding: 14px 16px 18px; }
.card-sample .badges { display: flex; gap: 6px; margin-bottom: 8px; }
.card-sample .pname { font-weight: 600; color: var(--ink-900); margin: 0 0 4px; }
.card-sample .pcjk { font-family: var(--cjk); color: var(--ink-500); font-size: 13px; }
.card-sample .meta { color: var(--ink-500); font-size: 12px; margin-top: 8px; }
.card-sample .price { color: var(--ink-900); font-weight: 700; margin-top: 10px; font-size: 16px; }

/* ----- Wireframe sketches ----- */
.wireframe {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 0;
  margin: 14px 0 28px;
  overflow: hidden;
}
.wireframe header {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}
.wireframe header span { color: var(--lime-500); font-weight: 600; }
.wireframe .body { padding: 22px; }
.wireframe .compose {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.wireframe .compose > div {
  background: var(--paper-100);
  border: 1px dashed var(--ink-500);
  padding: 14px;
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.5;
  min-height: 90px;
}
.wireframe .compose > div b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-700);
  margin-bottom: 6px;
}
.wireframe .compose .accent { background: var(--forest-700); color: var(--paper-50); }
.wireframe .compose .accent b { color: var(--lime-500); }
.wireframe .compose .ink { background: var(--ink-900); color: var(--paper-50); }
.wireframe .compose .ink b { color: var(--lime-500); }
.wireframe .compose .stretch-row { grid-column: 1 / -1; }
.wireframe .strip {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 12px 22px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 4px solid var(--lime-500);
}
.wireframe .strip span { color: var(--lime-500); font-weight: 600; }
.wireframe .footer-note {
  background: var(--paper-100);
  border-top: 1px solid var(--stone-300);
  padding: 10px 22px;
  font-size: 12px;
  color: var(--ink-500);
}

/* ----- 2-col & 3-col ----- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }

/* Shell collapse handled in the consolidated responsive cascade
   below, near the print stylesheet. */

/* ----- DO/DON'T ----- */
.dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 16px 0 28px;
}
.dodont > div {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 18px 22px;
  border-top: 4px solid var(--forest-700);
  font-size: 14px;
  line-height: 1.55;
}
.dodont .dont { border-top-color: var(--status-error); }
.dodont .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest-700);
  margin-bottom: 8px;
  display: block;
}
.dodont .dont .label { color: var(--status-error); }
.dodont ul { margin: 8px 0 0; padding-left: 18px; }
.dodont li { margin-bottom: 5px; }

/* Photo refs */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 28px;
}
.photo-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  overflow: hidden;
  border-top: 4px solid var(--lime-500);
}
.photo-card.reject { border-top-color: var(--status-error); }
.photo-card .frame {
  background: var(--paper-100) center/cover no-repeat;
  aspect-ratio: 1 / 1;
  position: relative;
}
.photo-card .frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-size: 13px;
}
.photo-card .body { padding: 14px 18px 18px; }
.photo-card .code {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--lime-500);
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}
.photo-card.reject .code { color: var(--status-error); }
.photo-card .name { font-weight: 600; color: var(--ink-900); margin: 0 0 6px; }
.photo-card .use { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime-500); font-weight: 600; }
.photo-card.reject .use { color: var(--status-error); }
.photo-card .desc { font-size: 13px; color: var(--ink-500); margin-top: 8px; line-height: 1.5; }
.photo-card .dont { font-size: 12px; color: var(--ink-700); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--stone-300); }
.photo-card .dont strong { color: var(--status-error); }

/* ----- Mode card ----- */
.mode-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 14px;
  border-left: 4px solid var(--ink-900);
}
.mode-card.consumer { border-left-color: var(--lime-500); }
.mode-card.legacy { border-left-color: var(--medic-red); }
.mode-card.utility { border-left-color: var(--herbsmart-orange); }
.mode-card.luxury { border-left-color: var(--honey-500); }
.mode-card .pill {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper-50);
  background: var(--ink-900);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.mode-card.consumer .pill { background: var(--forest-700); color: var(--lime-500); }
.mode-card.legacy .pill { background: var(--medic-red); }
.mode-card.utility .pill { background: var(--herbsmart-orange); color: var(--ink-900); }
.mode-card.luxury .pill { background: var(--honey-500); color: var(--ink-900); }
.mode-card h4 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.mode-card .feel { color: var(--ink-500); font-size: 14px; margin: 0 0 12px; }
.mode-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13px;
}
.mode-card .grid b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 3px; }

/* claim ladder */
.claim-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--stone-300);
  border-left-width: 4px;
  margin-bottom: 10px;
  background: var(--white);
  align-items: start;
}
.claim-row.green { border-left-color: var(--forest-700); }
.claim-row.yellow { border-left-color: var(--honey-500); }
.claim-row.red { border-left-color: var(--status-error); }
.claim-row .level {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink-900);
}
.claim-row.green .level { color: var(--forest-700); }
.claim-row.yellow .level { color: var(--honey-500); }
.claim-row.red .level { color: var(--status-error); }

/* anchors / quick refs */
.section-link {
  color: var(--forest-700);
  text-decoration: none;
  border-bottom: 1px dotted var(--forest-700);
}
.section-link:hover { color: var(--ink-900); border-bottom-color: var(--ink-900); }

.anchor-divider {
  border: 0;
  border-top: 1px solid var(--stone-300);
  margin: 80px 0 0;
}

/* footer */
footer.foot {
  margin-top: 120px;
  padding: 36px var(--gutter);
  background: var(--ink-900);
  color: var(--stone-300);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
footer.foot strong { color: var(--lime-500); }


/* ============================================================
   MOCK SYSTEM — designed reference layouts (replaces .wireframe schematics)
   These are real UI compositions, not labelled boxes. Scaled down
   for in-page reference; use real type, real photos, real components.
   ============================================================ */

.mock {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  margin: 14px 0 32px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21,20,51,0.02), 0 8px 24px -16px rgba(21,20,51,0.18);
}
.mock > .head {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 11px 18px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock > .head .title { color: var(--lime-500); font-weight: 600; letter-spacing: 0.04em; }
.mock > .head .mode { color: var(--stone-300); font-size: 10.5px; letter-spacing: 0.12em; }
.mock > .stage { padding: 0; background: var(--paper-50); }
.mock > .stage.flush { padding: 0; }
.mock > .stage.padded { padding: 28px; }
.mock > .note {
  background: var(--paper-100);
  border-top: 1px solid var(--stone-300);
  padding: 10px 18px;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
}
.mock > .note b { color: var(--ink-700); font-weight: 600; }

/* ----- Mini browser chrome (for web-page mocks) ----- */
.mock-browser {
  background: var(--white);
}
.mock-browser .topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--paper-100);
  border-bottom: 1px solid var(--stone-300);
}
.mock-browser .dots {
  display: flex; gap: 6px;
}
.mock-browser .dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stone-300);
  display: block;
}
.mock-browser .url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--ink-500);
  font-family: var(--sans);
}

/* ----- Mock site nav (top bar of a web page) ----- */
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--stone-300);
}
.mock-nav .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.mock-nav .brand .cn {
  font-family: var(--cjk);
  margin-left: 4px;
  color: var(--forest-700);
}
.mock-nav .links {
  display: flex; gap: 22px;
  font-size: 12px; color: var(--ink-700);
}
.mock-nav .links a { color: inherit; text-decoration: none; }
.mock-nav .links a.active { color: var(--ink-900); font-weight: 600; }
.mock-nav .cta {
  background: var(--lime-500);
  color: var(--ink-900);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
}
.mock-nav.dark { background: var(--ink-900); border-bottom-color: var(--ink-700); }
.mock-nav.dark .brand { color: var(--paper-50); }
.mock-nav.dark .brand .cn { color: var(--lime-500); }
.mock-nav.dark .links { color: var(--stone-300); }
.mock-nav.dark .links a.active { color: var(--lime-500); }

/* ----- Hero (corporate landing) ----- */
.mock-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding: 48px 28px 40px;
  background: var(--paper-50);
  align-items: center;
}
.mock-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink-900);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.mock-hero .sub {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 42ch;
}
.mock-hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-hero .proof-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-top: 3px solid var(--forest-700);
  padding: 18px;
}
.mock-hero .proof-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
  font-weight: 600;
  margin-bottom: 10px;
}
.mock-hero .proof-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--ink-900);
}
.mock-hero .proof-card .grade-table {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
}
.mock-hero .proof-card .grade-table tr + tr td { border-top: 1px solid var(--stone-300); }
.mock-hero .proof-card .grade-table td { padding: 6px 0; color: var(--ink-700); }
.mock-hero .proof-card .grade-table td:last-child { text-align: right; color: var(--ink-900); font-weight: 600; }

/* ----- Buttons (mock-scale) ----- */
.mb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 2px;
  text-decoration: none;
  cursor: default;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.mb-lime { background: var(--lime-500); color: var(--ink-900); }
.mb-forest { background: var(--forest-700); color: var(--white); }
.mb-ink { background: var(--ink-900); color: var(--paper-50); }
.mb-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.mb-ghost-light { background: transparent; color: var(--paper-50); border-color: var(--paper-50); }
.mb-honey { background: var(--ink-900); color: var(--honey-100); border: 1px solid var(--honey-500); }
.mb-orange { background: var(--herbsmart-orange); color: var(--ink-900); }
.mb-red { background: var(--medic-red); color: var(--white); }

/* ----- KPI strip ----- */
.mock-kpi {
  background: var(--ink-900);
  color: var(--paper-50);
  border-top: 3px solid var(--lime-500);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mock-kpi .item { padding: 0 14px; border-left: 1px solid var(--ink-700); }
.mock-kpi .item:first-child { border-left: 0; padding-left: 0; }
.mock-kpi .num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime-500);
  line-height: 1;
  margin-bottom: 6px;
}
.mock-kpi .lbl {
  font-size: 11px;
  color: var(--stone-300);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ----- Cert page layout ----- */
.mock-cert-head {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 36px 28px 32px;
}
.mock-cert-head .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-500);
  font-weight: 600;
  margin-bottom: 10px;
}
.mock-cert-head h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--paper-50);
  letter-spacing: -0.01em;
}
.mock-cert-head p {
  margin: 0;
  font-size: 13px;
  color: var(--stone-300);
  max-width: 60ch;
  line-height: 1.55;
}
.mock-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px;
  background: var(--paper-50);
}
.mock-cert-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 20px;
}
.mock-cert-card .badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
  font-weight: 700;
  background: var(--forest-50);
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.mock-cert-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.mock-cert-card .holder {
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.mock-cert-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  row-gap: 6px;
  font-size: 12px;
}
.mock-cert-card dt { color: var(--ink-500); }
.mock-cert-card dd { margin: 0; color: var(--ink-900); font-weight: 500; }
.mock-cert-card .quote-block {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--paper-100);
  border-left: 3px solid var(--forest-700);
  font-size: 11.5px;
  color: var(--ink-700);
  line-height: 1.5;
  font-style: italic;
}

.mock-wording {
  padding: 22px 28px 28px;
  background: var(--paper-100);
  border-top: 1px solid var(--stone-300);
}
.mock-wording h4 {
  font-family: var(--serif);
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--ink-900);
}
.mock-wording .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  font-size: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--stone-300);
}
.mock-wording .row:first-of-type { border-top: 0; }
.mock-wording .row .tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-700);
}
.mock-wording .row .text { color: var(--ink-900); font-style: italic; }

/* ----- B2B spec download ----- */
.mock-b2b {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--paper-50);
}
.mock-b2b .filters {
  background: var(--white);
  border-right: 1px solid var(--stone-300);
  padding: 22px 18px;
}
.mock-b2b .filters h5 {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 14px 0 6px;
  font-weight: 600;
}
.mock-b2b .filters h5:first-child { margin-top: 0; }
.mock-b2b .filters .opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--ink-700);
}
.mock-b2b .filters .opt .box {
  width: 13px; height: 13px;
  border: 1.5px solid var(--ink-500);
  border-radius: 2px;
  flex-shrink: 0;
}
.mock-b2b .filters .opt.checked .box {
  background: var(--forest-700);
  border-color: var(--forest-700);
  position: relative;
}
.mock-b2b .filters .opt.checked .box::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mock-b2b .results {
  padding: 22px;
}
.mock-b2b .results .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-500);
}
.mock-b2b .spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mock-spec-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.mock-spec-card .top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.mock-spec-card h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-900);
  margin: 0 0 2px;
}
.mock-spec-card .cn {
  font-family: var(--cjk);
  font-size: 12px;
  color: var(--ink-500);
}
.mock-spec-card .grade {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--forest-50);
  color: var(--forest-700);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.mock-spec-card .meta {
  font-size: 11.5px;
  color: var(--ink-700);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.mock-spec-card .meta span b {
  font-weight: 500;
  color: var(--ink-500);
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mock-spec-card .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mock-spec-card .tags span {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--paper-100);
  color: var(--ink-700);
  padding: 3px 6px;
  border-radius: 2px;
}
.mock-spec-card .row-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--stone-300);
}
.mock-spec-card .row-foot .link {
  font-size: 12px; color: var(--forest-700); font-weight: 600;
}
.mock-bulk {
  background: var(--forest-700);
  color: var(--paper-50);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.mock-bulk h4 {
  font-family: var(--serif);
  margin: 0 0 4px;
  color: var(--lime-500);
  font-size: 18px;
}
.mock-bulk p { margin: 0; font-size: 13px; color: var(--paper-100); max-width: 50ch; }

/* ----- Product detail page (Mode 02) ----- */
.mock-pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
}
.mock-pdp .gallery {
  background: var(--paper-50) center/cover no-repeat;
  min-height: 320px;
  border-right: 1px solid var(--stone-300);
  position: relative;
}
.mock-pdp .gallery .thumbs {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 6px;
}
.mock-pdp .gallery .thumbs span {
  width: 32px; height: 32px;
  background: var(--white);
  border: 1px solid var(--stone-300);
  background-size: cover; background-position: center;
}
.mock-pdp .gallery .thumbs span.active { border: 2px solid var(--ink-900); }
.mock-pdp .info { padding: 36px 32px; }
.mock-pdp .info .crumbs {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.mock-pdp .info .crumbs a { color: var(--ink-500); text-decoration: none; }
.mock-pdp .info h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.mock-pdp .info .cn {
  font-family: var(--cjk);
  font-size: 16px;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.mock-pdp .info .badges {
  display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.mock-pdp .info .badges .b {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
}
.mock-pdp .info .badges .b.grade { background: var(--forest-50); color: var(--forest-700); }
.mock-pdp .info .badges .b.origin { background: var(--paper-100); color: var(--ink-700); }
.mock-pdp .info .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--stone-300);
  border-bottom: 1px solid var(--stone-300);
  font-size: 12.5px;
}
.mock-pdp .info .specs span b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 2px;
}
.mock-pdp .info .ctas { display: flex; gap: 8px; margin: 18px 0 14px; }
.mock-pdp .edu {
  grid-column: 1 / -1;
  background: var(--paper-100);
  border-top: 1px solid var(--stone-300);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mock-pdp .edu h5 {
  font-family: var(--serif);
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.mock-pdp .edu p { margin: 0; font-size: 12px; color: var(--ink-700); line-height: 1.5; }
.mock-pdp .edu .disclaimer {
  font-size: 10.5px;
  color: var(--ink-500);
  font-style: italic;
}

/* ----- Marketplace square (Mode 02) ----- */
.mock-sq-wrap { padding: 24px; background: var(--paper-100); display: flex; justify-content: center; }
.mock-square {
  width: 360px;
  background: var(--paper-50);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.mock-square .band {
  background: var(--ink-900);
  color: var(--lime-500);
  text-align: center;
  padding: 14px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
}
.mock-square .band .cn { font-family: var(--cjk); margin-left: 4px; color: var(--paper-50); font-weight: 700; }
.mock-square .photo {
  background: var(--paper-100) center/cover no-repeat;
  height: 220px;
  position: relative;
}
.mock-square .photo .grade {
  position: absolute; top: 12px; right: 12px;
  background: var(--forest-700); color: var(--white);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 5px 9px;
  border-radius: 2px;
}
.mock-square .facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
}
.mock-square .facts .f {
  padding: 12px 10px;
  border-left: 1px solid var(--stone-300);
  text-align: center;
}
.mock-square .facts .f:first-child { border-left: 0; }
.mock-square .facts .f .lbl {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 600; margin-bottom: 4px;
}
.mock-square .facts .f .val {
  font-family: var(--serif); font-size: 12px; color: var(--ink-900); font-weight: 600;
  line-height: 1.3;
}

/* ----- Education how-to card (Mode 02) ----- */
.mock-howto { background: var(--paper-50); padding: 28px; }
.mock-howto h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.mock-howto .tease { font-size: 13px; color: var(--ink-500); margin: 0 0 22px; }
.mock-howto .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.mock-howto .step {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 16px 16px 18px;
  position: relative;
}
.mock-howto .step .n {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--lime-500);
  line-height: 1;
  margin-bottom: 6px;
}
.mock-howto .step .n::before { content: '0'; color: var(--stone-300); }
.mock-howto .step h5 {
  font-family: var(--serif);
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.mock-howto .step p { margin: 0; font-size: 11.5px; color: var(--ink-700); line-height: 1.5; }
.mock-howto .suggest {
  background: var(--ink-900); color: var(--paper-50);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mock-howto .suggest .l { display: flex; align-items: center; gap: 14px; }
.mock-howto .suggest .pic {
  width: 48px; height: 48px;
  background: var(--paper-100) center/cover no-repeat;
  flex-shrink: 0;
}
.mock-howto .suggest h6 {
  font-family: var(--serif);
  margin: 0;
  font-size: 14px;
  color: var(--lime-500);
}
.mock-howto .suggest .dis {
  font-size: 10.5px;
  color: var(--stone-300);
  font-style: italic;
}

/* ----- Legacy SKU listing (Mode 03) ----- */
.mock-legacy {
  background: var(--white);
}
.mock-legacy .legacy-band {
  background: var(--medic-red);
  color: var(--white);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-legacy .legacy-band .lockup {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.mock-legacy .legacy-band .lockup .cn {
  font-family: var(--cjk);
  margin-left: 6px;
  font-weight: 700;
}
.mock-legacy .legacy-band .since {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mock-legacy .endorse {
  background: var(--paper-100);
  border-bottom: 1px solid var(--stone-300);
  padding: 12px 28px;
  font-size: 12px;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-legacy .endorse .lock {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink-900);
}
.mock-legacy .endorse .lock .cn { font-family: var(--cjk); margin-left: 3px; }
.mock-legacy table.sku {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mock-legacy table.sku th {
  text-align: left;
  padding: 12px 28px;
  background: var(--paper-100);
  border-bottom: 1px solid var(--stone-300);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}
.mock-legacy table.sku td {
  padding: 11px 28px;
  border-bottom: 1px solid var(--stone-300);
  color: var(--ink-700);
}
.mock-legacy table.sku td.code { font-family: var(--serif); font-weight: 600; color: var(--ink-900); }
.mock-legacy table.sku td.action { text-align: right; }
.mock-legacy table.sku td.action a { color: var(--medic-red); font-weight: 600; text-decoration: none; }
.mock-legacy table.sku tr:last-child td { border-bottom: 0; }

/* ----- Transition notice (Mode 03) ----- */
.mock-transition {
  padding: 32px 28px;
  background: var(--paper-50);
}
.mock-transition h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 22px;
  color: var(--ink-900);
  text-align: center;
  letter-spacing: -0.01em;
}
.mock-transition .pair {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 22px;
}
.mock-transition .panel {
  padding: 24px 22px;
  text-align: center;
  border: 1px solid var(--stone-300);
}
.mock-transition .panel.old {
  background: var(--medic-red);
  color: var(--white);
  border-color: var(--medic-red);
}
.mock-transition .panel.old .lockup {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}
.mock-transition .panel.old .lockup .cn { font-family: var(--cjk); margin-left: 4px; }
.mock-transition .panel.old .role {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}
.mock-transition .panel.new {
  background: var(--forest-700);
  color: var(--paper-50);
  border-color: var(--forest-700);
}
.mock-transition .panel.new .lockup {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--lime-500);
}
.mock-transition .panel.new .lockup .cn { font-family: var(--cjk); margin-left: 4px; color: var(--paper-50); }
.mock-transition .panel.new .role {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime-500);
  margin-top: 6px;
}
.mock-transition .arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink-500);
  background: var(--paper-50);
}
.mock-transition .faq {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-top: 3px solid var(--ink-900);
}
.mock-transition .faq h4 {
  margin: 0;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--stone-300);
}
.mock-transition .faq dl { margin: 0; padding: 8px 18px 14px; }
.mock-transition .faq dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 10px;
}
.mock-transition .faq dd {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ----- Bulk carton sticker (Mode 03) ----- */
.mock-carton-wrap { padding: 28px; background: #d6cfc1; display: flex; justify-content: center; }
.mock-carton {
  width: 420px;
  background: #efe6d6;
  background-image: linear-gradient(rgba(0,0,0,0.02) 0 100%);
  border: 1px solid #b8a98a;
  position: relative;
  box-shadow: 0 6px 20px -10px rgba(0,0,0,0.4);
}
.mock-carton::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #b8a98a 0 14px, transparent 14px 22px);
  opacity: 0.5;
}
.mock-carton .sticker {
  margin: 26px;
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 16px;
}
.mock-carton .sticker .red-band {
  background: var(--medic-red);
  color: var(--white);
  padding: 10px 12px;
  margin: -16px -16px 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-carton .sticker .red-band .cn { font-family: var(--cjk); }
.mock-carton .sticker .red-band .role {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; font-weight: 600;
}
.mock-carton .sticker dl {
  margin: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 5px;
  font-size: 11.5px;
}
.mock-carton .sticker dt {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
  align-self: center;
}
.mock-carton .sticker dd { margin: 0; color: var(--ink-900); font-weight: 600; }
.mock-carton .sticker .endorse-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--stone-300);
  font-size: 10px;
  color: var(--ink-500);
}
.mock-carton .sticker .endorse-foot b {
  font-family: var(--serif);
  color: var(--ink-900);
  font-weight: 700;
}
.mock-carton .sticker .endorse-foot b .cn { font-family: var(--cjk); margin-left: 3px; }

/* ----- HerbsMart catalogue (Mode 04) ----- */
.mock-hm {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  background: var(--paper-50);
}
.mock-hm .hm-top {
  grid-column: 1 / -1;
  background: var(--ink-900);
  color: var(--paper-50);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--herbsmart-orange);
}
.mock-hm .hm-top .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--herbsmart-orange);
}
.mock-hm .hm-top .brand .by {
  font-size: 10px;
  color: var(--stone-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
  font-family: var(--sans);
  font-weight: 500;
}
.mock-hm .hm-top .search {
  flex: 1;
  margin: 0 18px;
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--stone-300);
}
.mock-hm .hm-side {
  background: var(--white);
  border-right: 1px solid var(--stone-300);
  padding: 16px;
  font-size: 12px;
}
.mock-hm .hm-side h6 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 14px 0 6px;
  font-weight: 700;
}
.mock-hm .hm-side h6:first-child { margin-top: 0; }
.mock-hm .hm-side .opt {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--ink-700);
}
.mock-hm .hm-side .opt .ct { color: var(--ink-500); font-size: 11px; }
.mock-hm .hm-side .opt.on { color: var(--herbsmart-orange); font-weight: 600; }
.mock-hm .hm-results {
  padding: 14px;
}
.mock-hm .hm-results .toolbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-500);
  margin-bottom: 10px;
}
.mock-hm .hm-table {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-collapse: collapse;
  font-size: 11.5px;
}
.mock-hm .hm-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--paper-100);
  border-bottom: 1px solid var(--stone-300);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}
.mock-hm .hm-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--stone-300);
  color: var(--ink-700);
}
.mock-hm .hm-table tr:last-child td { border-bottom: 0; }
.mock-hm .hm-table .sku-code { font-family: var(--serif); color: var(--ink-900); font-weight: 600; }
.mock-hm .hm-table .grade-tag {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  background: var(--forest-50); color: var(--forest-700);
  padding: 3px 6px; border-radius: 2px;
}
.mock-hm .hm-table .stock-on { color: var(--forest-700); font-weight: 600; }
.mock-hm .hm-table .stock-low { color: var(--honey-500); font-weight: 600; }
.mock-hm .hm-table .add {
  background: var(--herbsmart-orange);
  color: var(--ink-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mock-hm .hm-quote {
  background: var(--white);
  border-left: 1px solid var(--stone-300);
  border-top: 3px solid var(--herbsmart-orange);
  padding: 16px;
  font-size: 12px;
}
.mock-hm .hm-quote h5 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-900);
}
.mock-hm .hm-quote .total {
  font-size: 11px; color: var(--ink-500); margin-bottom: 12px;
}
.mock-hm .hm-quote .qline {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--stone-300);
  font-size: 11.5px;
}
.mock-hm .hm-quote .qline .name { color: var(--ink-900); font-weight: 500; }
.mock-hm .hm-quote .qline .qty { color: var(--ink-500); }
.mock-hm .hm-quote .sum {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--ink-900);
  display: flex; justify-content: space-between;
  font-weight: 700; color: var(--ink-900);
}
.mock-hm .hm-quote .send {
  margin-top: 12px;
  width: 100%;
  background: var(--herbsmart-orange);
  color: var(--ink-900);
  border: 0;
  padding: 9px;
  font-weight: 700;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ----- Quote / invoice PDF (Mode 04) ----- */
.mock-pdf-wrap { padding: 22px; background: #c9c2b3; }
.mock-pdf {
  background: var(--white);
  padding: 32px 36px;
  margin: 0 auto;
  max-width: 640px;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
  font-size: 11.5px;
  color: var(--ink-700);
  line-height: 1.5;
}
.mock-pdf .pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink-900);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.mock-pdf .pdf-head .who h1 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 2px;
  color: var(--ink-900);
}
.mock-pdf .pdf-head .who .by {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.mock-pdf .pdf-head .who .by b {
  font-family: var(--serif);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}
.mock-pdf .pdf-head .meta {
  text-align: right; font-size: 11px;
}
.mock-pdf .pdf-head .meta .qno {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-900);
  font-weight: 700;
}
.mock-pdf .pdf-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
  font-size: 11px;
}
.mock-pdf .pdf-parties h6 {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 4px;
  font-weight: 700;
}
.mock-pdf table.pdf-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.mock-pdf table.pdf-items th {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1.5px solid var(--ink-900);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.mock-pdf table.pdf-items th.r, .mock-pdf table.pdf-items td.r { text-align: right; }
.mock-pdf table.pdf-items td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--stone-300);
  vertical-align: top;
}
.mock-pdf table.pdf-items td.sku { font-family: var(--serif); color: var(--ink-900); font-weight: 600; }
.mock-pdf .pdf-totals {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
}
.mock-pdf .pdf-terms { font-size: 10.5px; color: var(--ink-500); line-height: 1.5; }
.mock-pdf .pdf-terms b { color: var(--ink-700); }
.mock-pdf .pdf-sums { font-size: 11.5px; }
.mock-pdf .pdf-sums .row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
}
.mock-pdf .pdf-sums .row.tot {
  border-top: 1.5px solid var(--ink-900);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 13px;
}

/* ----- Reorder dashboard (Mode 04) ----- */
.mock-dash { padding: 22px 24px; background: var(--paper-50); }
.mock-dash h3 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.mock-dash .greet { font-size: 12px; color: var(--ink-500); margin: 0 0 18px; }
.mock-dash .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mock-dash .stat {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 12px 14px;
}
.mock-dash .stat .l {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: 4px;
}
.mock-dash .stat .v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1;
}
.mock-dash .stat.alert { border-left: 3px solid var(--status-error); }
.mock-dash .stat.alert .v { color: var(--status-error); }
.mock-dash .panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}
.mock-dash .orders {
  background: var(--white);
  border: 1px solid var(--stone-300);
}
.mock-dash .orders h5 {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--serif);
  font-size: 13px;
  border-bottom: 1px solid var(--stone-300);
}
.mock-dash .orders .o-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--stone-300);
  font-size: 11.5px;
}
.mock-dash .orders .o-row:last-child { border-bottom: 0; }
.mock-dash .orders .o-row .id {
  font-family: var(--serif); color: var(--ink-900); font-weight: 600;
}
.mock-dash .orders .o-row .desc { color: var(--ink-500); font-size: 11px; }
.mock-dash .orders .o-row .reorder {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-900);
  background: var(--lime-500);
  padding: 5px 9px;
  border-radius: 2px;
}
.mock-dash .actions-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  padding: 14px 16px;
}
.mock-dash .actions-card h5 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 13px;
}
.mock-dash .actions-card a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--stone-300);
  font-size: 12px;
  color: var(--ink-700);
  text-decoration: none;
}
.mock-dash .actions-card a:first-of-type { border-top: 0; }
.mock-dash .actions-card a .arr { color: var(--ink-500); }

/* ----- Gift set landing (Mode 05) ----- */
.mock-gift {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  background: var(--ink-900);
  color: var(--paper-50);
  min-height: 360px;
}
.mock-gift .photo {
  background-color: #1a1830;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mock-gift .copy {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--honey-500);
}
.mock-gift .copy .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.mock-gift .copy h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--paper-50);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.mock-gift .copy h2 .cn { font-family: var(--cjk); display: block; font-size: 18px; margin-top: 4px; color: var(--honey-100); }
.mock-gift .copy p {
  font-size: 13px; color: var(--stone-300); margin: 0 0 22px;
  max-width: 38ch; line-height: 1.6;
}
.mock-gift .copy .ctas { display: flex; gap: 10px; }

/* ----- Gift proposal (Mode 05) ----- */
.mock-prop { padding: 28px; background: var(--paper-50); }
.mock-prop .head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--honey-500);
}
.mock-prop .head h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 2px;
  color: var(--ink-900);
}
.mock-prop .head .meta {
  font-size: 11px; color: var(--ink-500);
  text-align: right;
}
.mock-prop .options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.mock-prop .opt {
  background: var(--white);
  border: 1px solid var(--honey-500);
  border-top: 3px solid var(--honey-500);
  padding: 18px 18px 16px;
}
.mock-prop .opt .tier {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey-500);
  font-weight: 700;
  margin-bottom: 8px;
}
.mock-prop .opt h4 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.mock-prop .opt dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 4px;
  font-size: 11px;
}
.mock-prop .opt dt {
  color: var(--ink-500);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.mock-prop .opt dd { margin: 0; color: var(--ink-900); font-weight: 600; font-size: 12px; }
.mock-prop .opt .price {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--honey-100);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-900);
  font-weight: 700;
}
.mock-prop .opt .price small {
  font-size: 11px; color: var(--ink-500); font-weight: 500; font-family: var(--sans);
}
.mock-prop .custom {
  background: var(--ink-900);
  color: var(--paper-50);
  border-top: 3px solid var(--honey-500);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mock-prop .custom .field h6 {
  margin: 0 0 4px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-500);
  font-weight: 700;
}
.mock-prop .custom .field p { margin: 0; font-size: 12px; color: var(--stone-300); line-height: 1.5; }

/* ----- Festive social poster (Mode 05) ----- */
.mock-festive-wrap { padding: 28px; background: #1a1830; display: flex; justify-content: center; }
.mock-festive {
  width: 360px; height: 480px;
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
.mock-festive .photo {
  background-color: #2a2540;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.mock-festive .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(21,20,51,0.85) 100%);
}
.mock-festive .frame-corner {
  position: absolute; top: 14px; left: 14px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--honey-500);
  border-left: 2px solid var(--honey-500);
  z-index: 2;
}
.mock-festive .frame-corner.tr { left: auto; right: 14px; border-left: 0; border-right: 2px solid var(--honey-500); }
.mock-festive .copy {
  padding: 18px 22px 22px;
  background: var(--ink-900);
  border-top: 1px solid var(--honey-500);
  z-index: 2;
  position: relative;
}
.mock-festive .copy .eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-500);
  font-weight: 600;
  margin-bottom: 6px;
}
.mock-festive .copy h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--paper-50);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.mock-festive .copy h2 .cn { font-family: var(--cjk); display: block; font-size: 14px; color: var(--honey-100); margin-top: 2px; }
.mock-festive .copy .deadline {
  font-size: 11px; color: var(--lime-500); margin-bottom: 10px; font-weight: 600;
}
.mock-festive .copy .dis {
  font-size: 9.5px; color: var(--stone-300); font-style: italic;
}
.mock-festive .copy .cta {
  margin-top: 12px;
  display: inline-block;
  background: var(--honey-500);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE CASCADE
   Four breakpoints, documented in §7 "Document layout":
     xl  1280px — early collapse for cramped laptops
     lg   900px — sidebar goes static, big multi-cols halve
     md   640px — everything multi-col → 1-col, hero shrinks
     sm   420px — final tightening for narrow phones
   ============================================================ */

/* xl: cramped laptops — pre-emptive 4→2 on the densest grids */
@media (max-width: 1280px) {
  .mock-kpi, .mock-pdp .edu, .mock-howto .steps,
  .mock-dash .stats, .mock-festive .bands {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* lg: tablet — sidebar collapses to top, primary mocks stack */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static;
    height: auto;
    padding: 24px var(--gutter);
  }
  /* Tap targets bump on collapsed rail (44px min). */
  .rail nav a { padding: 12px 12px 12px 10px; font-size: 14px; }
  .rail nav summary { padding: 12px 0; min-height: 44px; }

  /* Body multi-col grids → single column. */
  .two-col, .three-col,
  .wireframe .compose,
  .dodont,
  .mode-card .grid {
    grid-template-columns: 1fr;
  }

  /* §8 reference-layout mocks → stack. */
  .mock-hero, .mock-cert-grid, .mock-pdp, .mock-howto .steps,
  .mock-b2b, .mock-hm, .mock-gift, .mock-prop .options, .mock-prop .custom,
  .mock-pdp .edu, .mock-kpi,
  .mock-pdf .pdf-parties, .mock-pdf .pdf-totals,
  .mock-dash .stats, .mock-dash .panels, .mock-prop .opt dl,
  .mock-festive .bands {
    grid-template-columns: 1fr;
  }
  .mock-transition .pair { grid-template-columns: 1fr; }
  .mock-transition .arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* md: phone — everything multi-col collapses; hero shrinks */
@media (max-width: 640px) {
  /* Remaining multi-cols inside mocks. */
  .mock-cert-card dl,
  .mock-pdp .info .specs,
  .mock-square .facts,
  .mock-dash .orders .o-row {
    grid-template-columns: 1fr;
  }
  /* Cover shrinks vertically; meta-strip stacks. */
  .cover { padding: 56px var(--gutter) 56px; }
  .cover .meta-strip {
    gap: 12px;
    flex-direction: column;
    padding: 14px var(--gutter);
    font-size: 13px;
  }
  section.chapter { padding-top: 64px; }
  /* Reduce serif weight on dense tables (already stacked). */
  table.spec th, table.spec td { padding: 10px 12px; font-size: 14px; }
}

/* sm: narrow phone (<= 420px) */
@media (max-width: 420px) {
  .cover { padding: 40px var(--gutter) 40px; }
  .cover .sub { font-size: 16px; margin-top: 24px; }
  section.chapter { padding-top: 48px; }
  .callout { padding: 14px 16px; font-size: 14px; }
}

/* ============================================================
   PRINT STYLESHEET
   Browser → Cmd/Ctrl+P. Hides the dark rail, swaps the cover band
   off, allows clean page breaks at chapter boundaries.
   ============================================================ */
/* Onboarding pack (§15.6 Exportable onboarding summary). Renders as
   a compact 8-block reference; the print-onboarding-only body class
   hides everything else when the user clicks "Print onboarding pack". */
.onboarding-pack {
  background: var(--white);
  border: 2px solid var(--ink-900);
  border-radius: 4px;
  padding: 32px 36px;
  margin: 18px 0 32px;
  max-width: 920px;
}
.onboarding-pack header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink-900); }
.onboarding-pack header .brand-line {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.onboarding-pack header .meta { font-size: 12px; color: var(--ink-500); margin: 0; }
.onboarding-pack .ob-block { padding: 14px 0; border-bottom: 1px solid var(--stone-300); }
.onboarding-pack .ob-block:last-of-type { border-bottom: 0; }
.onboarding-pack .ob-block h5 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.onboarding-pack .ob-block h5 a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--forest-700);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}
.onboarding-pack .ob-block p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; }
.onboarding-pack footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stone-300);
}
.onboarding-pack footer p { margin: 0; font-size: 11.5px; color: var(--ink-500); }

/* Print-onboarding-only mode: triggered by adding .print-onboarding-only
   to <body> from the §15.6 print button. Hides everything except the
   onboarding article so the user gets a clean printable pack. */
body.print-onboarding-only > * { display: none !important; }
body.print-onboarding-only .shell { display: block !important; }
body.print-onboarding-only .shell > * { display: none !important; }
body.print-onboarding-only .shell .main { display: block !important; max-width: none; padding: 0; }
body.print-onboarding-only .shell .main > * { display: none !important; }
body.print-onboarding-only .shell .main #s15 { display: block !important; }
body.print-onboarding-only #s15 > *:not(#onboarding-pack) { display: none !important; }
body.print-onboarding-only #onboarding-pack { display: block !important; max-width: none; margin: 0; }

@media print {
  :root { --gutter: 16mm; }
  html, body {
    background: white;
    color: black;
    font-size: 11pt;
    line-height: 1.45;
  }
  body { margin: 0; }

  .shell { display: block; }
  .rail { display: none; }
  .main { padding: 0; max-width: none; }

  .cover {
    background: white;
    color: var(--ink-900);
    padding: 24mm 0 12mm;
    page-break-after: always;
    margin: 0;
  }
  .cover::before { background: var(--lime-500); }
  .cover .super, .cover .super .zb { color: var(--ink-900); }
  .cover .sub { color: var(--ink-700); }
  .meta-strip {
    background: var(--paper-100) !important;
    color: var(--ink-700) !important;
    border: 1px solid var(--stone-300);
    box-shadow: none;
  }

  section.chapter { page-break-before: always; padding-top: 0; }
  section.chapter:first-of-type { page-break-before: auto; }
  h2, h3.sub, h4.sub { page-break-after: avoid; }
  h2 + p, h3 + p { page-break-before: avoid; }
  table, .swatch-grid, .mode-card, .ratio { page-break-inside: avoid; }
  pre { white-space: pre-wrap; word-break: break-word; page-break-inside: avoid; }

  /* Hide interactive-only chrome */
  .btn, .demo-row .btn { box-shadow: none; }
  a { color: var(--ink-900); text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--ink-500); }

  /* Anchor dividers don't read on paper */
  .anchor-divider { display: none; }

  /* Footer lighter on paper */
  .foot { background: white; color: var(--ink-700); border-top: 1px solid var(--stone-300); padding: 12mm 0; }
}
