/* ============================================================
   Chair IQ — site.css · design system
   Palette: ink navy base + bone paper + electric blue/aqua IQ accents.
   Type: Bricolage Grotesque (display) · Geist (body) · Geist Mono (numbers).
   PART 1 of 2 — tokens, base, type, layout, sections, buttons,
   chips, ticket, feature list, chaos list, mini-ui.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Color · ink navy base */
  --ink-950: #06162B;   /* page base / darkest */
  --ink-900: #0A2342;   /* raised dark surface */
  --ink-800: #12335C;   /* borders/hairlines on ink */
  --ink-700: #1D4A80;   /* borders, muted dots on ink — never text */
  --ink-muted: #A9B8CC; /* secondary text on ink (AA 9.0:1 on ink-950, 7.8:1 on ink-900) */

  /* Color · bone paper */
  --paper:    #F3EFE6;  /* light sections, cards */
  --paper-2:  #EAE4D6;  /* recessed paper */
  --paper-3:  #DDD5C2;  /* hairlines on paper */
  --ink-text: #10233B;  /* body text on paper (AA ~13:1) */
  --ink-soft: #43536B;  /* secondary text on paper (AA ~6.8:1) */

  /* Color · IQ accents */
  --blue:      #0067C7; /* CTAs, live states, links-large; AA w/ white ≥4.5 in all states */
  --blue-deep: #005BB0; /* hover + normal-size links on paper (AA ~5.8:1) */
  --aqua:      #1CD3DE; /* ON INK ONLY (AA ~10:1 on ink-950) */
  --aqua-dim:  #0E9AA3; /* small aqua labels on ink (AA ~5.3:1) */

  /* Color · status (same meaning in every mockup) */
  --ok:          #155E33; /* Allowed — on paper AND paper-2 (AA ≥6.1) */
  --ok-bright:   #3DD68C; /* Allowed — on ink (AA ~9.8:1) */
  --warn:        #92400E; /* Needs approval — on paper/paper-2 (AA ≥5.5) */
  --warn-bright: #FBBF24; /* Needs approval — on ink (AA ~10.9:1) */
  --deny:        #A41616; /* Denied — on paper/paper-2 (AA ≥5.1) */
  --deny-bright: #F87171; /* Denied — on ink (AA ~6.6:1) */

  /* Fonts */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (clamp: min, preferred, max) */
  --text-xs:      clamp(0.75rem,  0.72rem + 0.15vw, 0.875rem);
  --text-sm:      clamp(0.875rem, 0.85rem + 0.20vw, 1rem);
  --text-base:    clamp(1rem,     0.98rem + 0.20vw, 1.125rem);
  --text-md:      clamp(1.125rem, 1.08rem + 0.35vw, 1.375rem);
  --text-lg:      clamp(1.25rem,  1.16rem + 0.55vw, 1.625rem);
  --text-xl:      clamp(1.5rem,   1.32rem + 0.90vw, 2.125rem);
  --text-2xl:     clamp(1.875rem, 1.55rem + 1.60vw, 2.75rem);
  --text-3xl:     clamp(2.375rem, 1.90rem + 2.40vw, 3.625rem);
  --text-display: clamp(2.75rem,  2.10rem + 3.60vw, 4.625rem);

  /* Type weight */
  --w-display: 700;
  --w-display-hero: 800;
  --w-body: 400;
  --w-body-strong: 500;
  --w-mono: 500;

  /* Spacing (4px base) */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-6: 1.5rem;   --space-8: 2rem;
  --space-12: 3rem;    --space-16: 4rem;    --space-20: 5rem;
  --space-24: 6rem;    --space-32: 8rem;

  /* Radii — ticket-sharp, not bloated */
  --radius-sm: 4px;  --radius-md: 8px;  --radius-lg: 14px;
  --radius-xl: 22px; --radius-full: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(6,22,43,.08), 0 1px 3px rgba(6,22,43,.06);
  --shadow-2: 0 6px 16px rgba(6,22,43,.12), 0 2px 6px rgba(6,22,43,.08);
  --shadow-3: 0 24px 48px rgba(6,22,43,.18), 0 8px 16px rgba(6,22,43,.10);

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --container-wide: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--w-body);
  line-height: 1.6;
  color: var(--ink-text);
  background: var(--ink-950);
  overflow-x: clip; /* hard guarantee: no horizontal page scroll (sticky-safe) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: rgba(28, 211, 222, .3); }

/* ── Accessibility primitives ──────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink-text);
  font-weight: 600; padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
p { margin: 0 0 var(--space-4); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--w-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
.section-dark .eyebrow { color: var(--aqua-light); }
.section-paper .eyebrow { color: var(--ink-soft); }
.lede {
  font-size: var(--text-md);
  line-height: 1.6;
  max-width: 62ch;
}
.section-dark .lede { color: var(--ink-muted); }
.section-paper .lede { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }

/* ── Layout & containers ───────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.grid-2 { display: grid; gap: var(--space-8); }
.grid-3 { display: grid; gap: var(--space-8); }
.grid-4 { display: grid; gap: var(--space-8); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Section rhythm (ink/paper alternation) ────────────── */
.section { padding: var(--space-16) 0; }
.section-dark { background: var(--ink-950); color: var(--paper); }
.section-paper { background: var(--paper); color: var(--ink-text); }
.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--w-mono);
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3);
}
.section-dark .section-index { color: var(--ink-muted); }
.section-paper .section-index { color: var(--ink-soft); }
.section h2 { font-size: var(--text-2xl); font-weight: var(--w-display); }
.section-paper h2 { color: var(--ink-text); }
.section-dark h2 { color: var(--paper); }
h3 { font-size: var(--text-lg); font-weight: var(--w-display); }
.hero-title {
  font-size: var(--text-display);
  font-weight: var(--w-display-hero);
  margin: var(--space-4) 0 var(--space-6);
  max-width: 20ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.section-dark h3 { color: var(--paper); }
.rule { border: 0; height: 1px; margin: 0; }
.section-dark .rule { background: var(--ink-800); }
.section-paper .rule { background: var(--paper-3); }
@media (min-width: 960px) {
  .section { padding: var(--space-24) 0; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 var(--space-8); font-size: var(--text-md); border-radius: var(--radius-md); }
.section-dark .btn-ghost {
  border-color: rgba(243, 239, 230, .35);
  color: var(--paper);
  background: transparent;
}
.section-dark .btn-ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, .06); }
.section-paper .btn-ghost {
  border-color: rgba(6, 22, 43, .3);
  color: var(--ink-text);
  background: transparent;
}
.section-paper .btn-ghost:hover { border-color: var(--ink-text); background: rgba(6, 22, 43, .05); }

/* ── Chips (status + source tags) ──────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-mono);
  line-height: 1.6;
  white-space: nowrap;
}
.chip-ok   { color: var(--ok);   background: rgba(30, 122, 60, .12);  border-color: rgba(30, 122, 60, .4); }
.chip-warn { color: var(--warn); background: rgba(146, 64, 14, .12);  border-color: rgba(146, 64, 14, .4); }
.chip-deny { color: var(--deny); background: rgba(185, 28, 28, .1);   border-color: rgba(185, 28, 28, .4); }
.chip.on-ink.chip-ok   { color: var(--ok-bright);   background: rgba(61, 214, 140, .12);  border-color: rgba(61, 214, 140, .45); }
.chip.on-ink.chip-warn { color: var(--warn-bright); background: rgba(251, 191, 36, .1);  border-color: rgba(251, 191, 36, .45); }
.chip.on-ink.chip-deny { color: var(--deny-bright); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); }
/* BOOKED = neutral blue (status: amber reserved for "Needs approval") */
.chip-blue { color: var(--blue-bright); background: rgba(111, 178, 255, .1); border-color: rgba(111, 178, 255, .5); }
.chip-source {
  background: transparent;
  border: 1px dashed var(--paper-3);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  white-space: normal; /* long tags wrap instead of overflowing */
}
.section-dark .chip-source { color: var(--ink-muted); border-color: rgba(169, 184, 204, .35); }
.section-paper .chip-source { color: var(--ink-soft); border-color: var(--paper-3); }
.chip-source strong { font-weight: var(--w-mono); color: inherit; }

/* Approval chip state hook (see site.js · animateApproval) */
.chip-warn.is-approved {
  color: var(--ok); background: rgba(30, 122, 60, .14); border-color: rgba(30, 122, 60, .45);
  transition: background var(--dur-slow) var(--ease-out),
              color var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out);
}
.section-dark .chip-warn.is-approved {
  color: var(--ok-bright); background: rgba(61, 214, 140, .14); border-color: rgba(61, 214, 140, .5);
}

/* ── Ticket / receipt ──────────────────────────────────── */
.ticket {
  background: var(--paper);
  color: var(--ink-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-5, 1.25rem) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--paper-3);
  font-weight: var(--w-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}
.ticket-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4);
  padding: 5px 0;
  border-bottom: 1px dashed var(--paper-3);
  color: var(--ink-text);
}
.ticket-row .ticket-amt { color: var(--ink-soft); }
.ticket-cut {
  border: 0; border-top: 2px dashed var(--paper-3);
  margin: var(--space-4) calc(var(--space-6) * -1) 0;
}
.ticket-total {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4);
  padding-top: var(--space-3);
  font-size: var(--text-md);
  font-weight: var(--w-mono);
}
.ticket-total.shop { color: var(--ink-soft); }
.ticket-note {
  margin: var(--space-3) 0 0;
  color: var(--warn);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* ── Problem "receipt of chaos" list ───────────────────── */
.chaos-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: 1px solid var(--paper-3); }
.chaos-list li {
  display: grid; grid-template-columns: minmax(0, 150px) 1fr;
  gap: var(--space-4); align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-3);
  font-family: var(--font-mono);
  font-size: 14px;
}
.chaos-label { color: var(--ink-soft); letter-spacing: 0.06em; }
.chaos-desc { color: var(--ink-text); font-size: 17px; }
.chaos-list .chaos-hl {
  background: var(--ink-950); color: var(--paper);
  margin-inline: calc(var(--space-3) * -1);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
}
.chaos-hl .chaos-label { color: var(--aqua); }
.chaos-hl .chaos-desc { color: var(--paper); }

/* ── Feature tour ──────────────────────────────────────── */
.feature-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; }
.feature-item { padding: var(--space-8) 0; border-top: 1px solid var(--ink-800); }
.feature-item:last-child { border-bottom: 1px solid var(--ink-800); }
.feature-head { display: flex; align-items: baseline; gap: var(--space-4); }
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--aqua-dim);
}
.feature-item p { color: var(--ink-muted); max-width: 72ch; margin: var(--space-3) 0 0; }
.mini-ui {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--ink-900);
  border: 1px dashed var(--ink-800);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.mini-ui .mini-sep { color: var(--ink-muted); }

/* ── Mock frames (HTML/CSS product UIs — real text) ────── */
.mock-figure { margin: var(--space-8) 0 0; }
.mock-caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin: var(--space-3) 0 0;
}
.section-paper .mock-caption { color: var(--ink-soft); }
.mock-window {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--ink-800);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-700); }
.mock-dots i:nth-child(1) { background: var(--aqua-dim); }
.mock-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-live { display: inline-flex; align-items: center; gap: 6px; color: var(--aqua); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { animation: live-pulse 2.4s var(--ease-standard) infinite; }

/* ── Owner day board (hero mockup) ─────────────────────── */
.dayboard { display: flex; flex-direction: column; }
.dayboard-date {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-800);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.chair-cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 520px) { .chair-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .chair-cols { grid-template-columns: repeat(4, 1fr); } }
.chair-col {
  min-height: 300px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--ink-800);
}
@media (min-width: 520px) {
  .chair-col:nth-child(odd) { border-right: 1px solid var(--ink-800); }
}
@media (min-width: 1200px) {
  .chair-col { border-right: 1px solid var(--ink-800); border-bottom: none; }
  .chair-col:last-child { border-right: none; }
}
.chair-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.chair-name { font-family: var(--font-display); font-weight: var(--w-display); color: var(--paper); font-size: var(--text-base); }
.chair-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--w-mono);
  color: var(--aqua-dim);
  border: 1px solid rgba(14, 154, 163, .45);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.appt {
  display: grid; grid-template-columns: auto 1fr;
  column-gap: var(--space-2); row-gap: 2px;
  align-items: baseline;
  border: 1px solid var(--ink-800);
  border-left: 2px solid var(--aqua);
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
}
.appt-time { color: var(--ink-muted); }
.appt-client { color: var(--paper); font-weight: var(--w-mono); }
.appt-service { grid-column: 2; color: var(--ink-muted); }
.appt-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.appt-state { color: var(--ink-muted); font-size: 12px; }
.appt-state.booked { color: var(--blue-bright); }
.appt-state.in { color: var(--ok-bright); }
.appt-state.done { color: var(--ink-muted); }
.appt.blocked { border-left-color: transparent; border-style: dashed; }
.appt.blocked .appt-time, .appt.blocked .appt-service { color: var(--ink-muted); }
.appt.blocked .appt-client { color: var(--ink-muted); font-weight: var(--w-body); }
.dayboard-metrics {
  border-top: 1px solid var(--ink-800);
  display: grid; grid-template-columns: 1fr 1fr;
}
.metric { padding: 10px var(--space-4); border-right: 1px solid var(--ink-800); border-bottom: 1px solid var(--ink-800); font-family: var(--font-mono); }
.metric:nth-child(even) { border-right: none; }
.metric-label { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.metric-value { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-md); color: var(--paper); margin-top: 2px; }
.metric-bar { height: 4px; margin-top: 6px; background: var(--ink-800); border-radius: var(--radius-full); overflow: hidden; }
.metric-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
@media (min-width: 960px) {
  .dayboard { flex-direction: row; }
  .dayboard-main { flex: 1; min-width: 0; }
  .dayboard-metrics { border-top: none; border-left: 1px solid var(--ink-800); display: block; width: 210px; flex: none; }
  .metric { border-right: none; border-bottom: 1px solid var(--ink-800); }
}

/* ── Phone / tablet frames ─────────────────────────────── */
.mock-phone {
  max-width: 300px; margin-inline: auto;
  border: 10px solid var(--ink-900);
  outline: 1px solid var(--ink-800);
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink-950);
  box-shadow: var(--shadow-3);
}
.mock-phone-screen { padding: var(--space-4); }
.mock-tablet {
  max-width: 560px; margin-inline: auto;
  border: 12px solid var(--ink-900);
  outline: 1px solid var(--ink-800);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-950);
  box-shadow: var(--shadow-3);
}
.mock-title-sm {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--ink-muted); letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-800);
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Permissions matrix ────────────────────────────────── */
.matrix-wrap { overflow-x: auto; margin-top: var(--space-8); }
.matrix {
  width: 100%; min-width: 760px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.matrix th, .matrix td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ink-800); vertical-align: middle; }
.matrix thead th { color: var(--ink-muted); font-weight: var(--w-mono); letter-spacing: 0.06em; }
.matrix tbody th { color: var(--paper); font-weight: var(--w-body); }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: none; }
.matrix .chip { font-size: 12px; padding: 4px 12px; }

/* ── Single barber-pole stripe accent (used ONCE) ──────── */
.stripe-accent {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--ink-900) 0 10px, rgba(28, 211, 222, .55) 10px 20px);
  opacity: .8;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.site-header.scrolled {
  background: rgba(6, 22, 43, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-800);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.brand:hover .brand-name { color: var(--paper); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: var(--w-display-hero);
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
@media (min-width: 960px) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 24px; }
}
.brand-iq {
  background: linear-gradient(90deg, var(--blue), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--ink-800);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0 var(--space-3);
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--paper); border-radius: 2px; transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink-950);
  border-bottom: 1px solid var(--ink-800);
  padding: var(--space-4) var(--gutter) var(--space-6);
  box-shadow: var(--shadow-3);
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.nav-list a {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-list a:hover { color: var(--aqua); background: rgba(255, 255, 255, .04); }
.nav-list .nav-demo a { color: var(--aqua); font-weight: 600; }
.nav-list .nav-demo a:hover { color: var(--paper); }
.nav-list .nav-cta { margin-top: var(--space-3); }
.nav-list .nav-cta a { display: inline-flex; padding: 0 var(--space-6); font-size: var(--text-base); }
@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .nav-list { flex-direction: row; align-items: center; gap: var(--space-6); }
  .nav-list a { padding: var(--space-2) 0; font-size: var(--text-base); font-weight: var(--w-body); }
  .nav-list a:hover { background: transparent; }
  .nav-list .nav-cta { margin-top: 0; }
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-950);
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-800);
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.footer-brand:hover .brand-name { color: var(--paper); }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .brand-name { font-size: 20px; }
.footer h4 { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--w-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-nav a { color: var(--ink-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--ink-800);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.footer-bottom a { color: var(--ink-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.footer-legal-links { display: inline-flex; gap: var(--space-6); }

/* ── Forms (demo.html) ─────────────────────────────────── */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); margin-bottom: var(--space-1); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.field .error-msg { display: none; color: var(--deny); font-size: var(--text-sm); margin-top: var(--space-1); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--deny); }
.field.invalid .error-msg { display: block; }
.checkbox-row { display: flex; gap: var(--space-2); align-items: flex-start; margin-bottom: var(--space-2); }
.checkbox-row input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--blue); }
.checkbox-row label { margin: 0; }

/* ── Reveal-on-scroll (JS-gated — content visible w/o JS) ── */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js.no-reveal .reveal,
html.js.no-reveal .reveal.in-view { opacity: 1; transform: none; transition: none; }

/* ── Reduced motion ────────────────────────────────────── */
@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;
  }
  .live-dot { animation: none; opacity: 1; }
}

/* ════════════════════════════════════════════════════════
   PART 3 — launch-quality additions (hero depth, problem
   ticket, feature cards, calculator, roles, approval card)
   ════════════════════════════════════════════════════════ */

/* Extra accent tokens */
:root {
  --blue-bright: #6FB2FF; /* light blue labels on ink (AA ~8.2:1) */
  --aqua-light: #5EE6EE;  /* lighter aqua for eyebrows on ink (AA ~12:1 on ink-950) */
}

/* ── Hero depth & polish (R3) ──────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    radial-gradient(950px 560px at 80% -14%, rgba(1, 116, 220, .20), transparent 66%),
    radial-gradient(760px 480px at 8% 118%, rgba(28, 211, 222, .09), transparent 64%);
}
.hero::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 239, 230, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, .022) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 62%, transparent 100%);
}
.hero .container, .hero .container-wide { position: relative; z-index: 1; }
.hero .mock-window {
  box-shadow: 0 48px 90px rgba(2, 10, 24, .55), 0 14px 34px rgba(2, 10, 24, .45), 0 0 90px rgba(1, 116, 220, .14);
}
.hero-plans {
  display: flex; flex-wrap: wrap; gap: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin: var(--space-4) 0 0;
}
.hero-plans span { white-space: nowrap; }
/* Bump mock type: nothing below 12px anywhere */
.appt { font-size: 12.5px; }
.appt-state { font-size: 12px; }
.chair-tag { font-size: 12px; }
.metric-label { font-size: 12px; }
.mock-titlebar { font-size: var(--text-xs); }
.bar-labels { color: var(--ink-muted); font-size: 12px; } /* (R1 safety + 12px floor) */

/* R4/N1 · mobile hero (<600px): one chair, big type, 2×2 metrics */
@media (max-width: 600px) {
  .dayboard-metrics { order: -1; }
  .chair-cols { grid-template-columns: 1fr; }
  .chair-col { min-height: 0; }
  .chair-col:not(:first-child), .appt.hide-mobile { display: none; }
  .chair-name { font-size: 16px; }
  .appt { font-size: 14px; padding: 10px 12px; }
  .appt-time, .appt-client { font-size: 14px; }
  .appt-service { font-size: 13px; }
  .appt-state { font-size: 12px; }
  .metric-value { font-size: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ── R5 · Problem: two-column layout + printed ticket ──── */
.problem-grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: var(--space-12);
    align-items: center;
  }
  .problem-title { font-size: var(--text-3xl); }
}
.problem-ticket {
  position: relative;
  margin-top: 10px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-2) var(--space-5, 1.25rem) var(--space-3);
}
.problem-ticket .chaos-list li:first-child { padding-top: 8px; }
.problem-ticket::before {
  content: ""; position: absolute; top: -10px; left: -1px; right: -1px; height: 10px;
  background-image:
    linear-gradient(45deg, transparent 33.33%, var(--paper-2) 33.33%, var(--paper-2) 66.67%, transparent 66.67%),
    linear-gradient(-45deg, transparent 33.33%, var(--paper-2) 33.33%, var(--paper-2) 66.67%, transparent 66.67%);
  background-size: 14px 20px;
}
.problem-ticket .chaos-list { margin: 0; border-top: 1px dashed var(--paper-3); }

/* ── R6 · Feature tour: 2×3 grid of cards ─────────────── */
.feature-list { display: grid; gap: var(--space-6); }
.feature-item {
  border: 1px solid var(--ink-800);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--ink-900);
}
.feature-item p { margin-top: var(--space-2); }
@media (min-width: 960px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.mini-ui {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  background: var(--ink-950);
  border: 1px solid var(--ink-800);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.mini-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
/* source rows (services that inherit) */
.src-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-3); padding: 5px 0;
  border-bottom: 1px dashed var(--ink-800);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
.src-row .src-src { color: var(--ink-muted); }
.src-row .src-val { color: var(--paper); font-weight: var(--w-mono); }
.src-row.arr .src-src { color: var(--aqua-dim); }
.src-row.effective { border-bottom: none; padding-top: var(--space-2); }
.src-row.effective .src-val { color: var(--aqua); font-size: var(--text-sm); }
.mini-link {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--aqua); letter-spacing: 0.04em;
}
.mini-link:hover { color: var(--aqua); text-decoration: underline; }
/* audit badges */
.badge {
  display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm);
  border: 1px solid; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; white-space: nowrap;
}
.badge-ui { color: var(--aqua); border-color: rgba(28, 211, 222, .5); }
.badge-ai { color: var(--blue-bright); border-color: rgba(111, 178, 255, .55); }
.badge-system { color: var(--ink-muted); border-color: var(--ink-700); }
.audit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-3); padding: 5px 0;
  border-bottom: 1px dashed var(--ink-800);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted);
}
.audit-row:last-child { border-bottom: none; }
/* slot grid (scheduling) */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.slot {
  text-align: center; padding: 8px 2px; border-radius: var(--radius-sm);
  background: var(--ink-950); border: 1px solid var(--ink-800);
  color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px;
}
.slot.held { border-color: var(--aqua); color: var(--aqua); }
.slot.taken { border-color: var(--ink-700); background: rgba(243, 239, 230, .07); color: var(--paper); }
.slot-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
/* bar chart (reporting) */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.bar { flex: 1; background: var(--ink-800); border-radius: 2px 2px 0 0; min-height: 6px; }
.bar.high { background: linear-gradient(180deg, var(--aqua), var(--blue)); }
.bar-labels { display: flex; gap: 6px; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; }
.bar-labels span { flex: 1; text-align: center; }

/* ── R9 · Pay calculator (04) ──────────────────────────── */
.calc-layout { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 960px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.calc-panel {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.calc-arrangement { border: 0; padding: 0; margin: 0 0 var(--space-6); }
.calc-arrangement legend {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.seg-control { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 11px 6px;
  border: 1px solid var(--paper-3); border-radius: var(--radius-md);
  background: var(--paper); font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--ink-text); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.seg input:checked + span {
  background: var(--ink-950); color: var(--paper);
  border-color: var(--ink-950); box-shadow: 0 0 0 1px var(--blue);
}
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.calc-inputs { display: grid; gap: var(--space-4); }
.rate-groups .rate-group { display: none; }
.rate-groups .rate-group.active { display: grid; gap: var(--space-4); border-top: 1px dashed var(--paper-3); margin-top: var(--space-4); padding-top: var(--space-4); }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { flex: 1; min-width: 0; }
.input-suffix span { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-soft); }
.calc-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); margin: var(--space-4) 0 0; }
.calc-ticket { background: var(--paper); border: 1px solid var(--paper-3); box-shadow: var(--shadow-2); }
.calc-ticket .ticket-line-note { color: var(--ink-soft); font-size: var(--text-xs); }
.calc-types { display: grid; gap: var(--space-6); margin-top: var(--space-12); }
@media (min-width: 640px) { .calc-types { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }
.calc-type { border-top: 1px solid var(--paper-3); padding-top: var(--space-4); }
.calc-type .ct-label {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.calc-type p { color: var(--ink-soft); margin-top: var(--space-2); font-size: var(--text-base); }

/* ── R10 · Roles & permissions (05) ────────────────────── */
.roles-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4);
  align-items: center; margin-top: var(--space-6);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted);
}
.roles-note { margin-top: var(--space-4); color: var(--ink-muted); max-width: 62ch; }
.roles-bottom { display: grid; gap: var(--space-8); margin-top: var(--space-10, 2.5rem); }
@media (min-width: 960px) {
  .roles-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-top: var(--space-12); }
}
.approval-card {
  background: var(--paper); color: var(--ink-text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: var(--space-6);
  font-family: var(--font-mono); font-size: var(--text-sm);
}
.approval-head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  border-bottom: 1px solid var(--paper-3); padding-bottom: var(--space-3);
}
.approval-title { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--w-display); color: var(--ink-text); }
.approval-rows { margin-top: var(--space-4); }
.av-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4); padding: 5px 0; border-bottom: 1px dashed var(--paper-3);
}
.av-row .av-k { color: var(--ink-soft); }
.av-row .av-v { color: var(--ink-text); font-weight: var(--w-mono); text-align: right; }
.av-row .av-v.prev { color: var(--ink-soft); text-decoration: line-through; }
.av-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-decline {
  border-color: rgba(185, 28, 28, .5); color: var(--deny); background: transparent;
}
.btn-decline:hover { background: rgba(185, 28, 28, .08); border-color: var(--deny); color: var(--deny); }
.approval-foot {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px dashed var(--paper-3);
  color: var(--ink-soft); font-size: var(--text-xs);
}

/* Matrix on mobile: stacked per-action cards (below 760px) */
@media (max-width: 759px) {
  .matrix-wrap { overflow: visible; }
  .matrix, .matrix tbody, .matrix tr, .matrix td, .matrix th { display: block; width: 100%; }
  .matrix { min-width: 0; }
  .matrix thead { display: none; }
  .matrix tbody tr {
    border: 1px solid var(--ink-800); border-radius: var(--radius-lg);
    padding: var(--space-4); margin-bottom: var(--space-4); background: var(--ink-900);
  }
  .matrix tbody th {
    padding: 0 0 var(--space-3); border-bottom: 1px solid var(--ink-800);
    margin-bottom: var(--space-3); font-size: var(--text-sm); color: var(--paper);
  }
  .matrix td {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px dashed var(--ink-800); padding: 7px 0;
  }
  .matrix td:last-child { border-bottom: none; }
  .matrix td::before { content: attr(data-role); color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
}

/* ════════════════════════════════════════════════════════
   PART 4 — round-2 fixes (F1–F11) + sections 06–09
   ════════════════════════════════════════════════════════ */

/* F3 · hide Approvals metric tile below 960px (header chip covers it on small screens) */
@media (max-width: 959px) {
  .metric-approvals { display: none; }
}

/* F5 · feature cards: flex column, UI block pinned to bottom */
.feature-item { display: flex; flex-direction: column; }
.feature-item .mini-ui,
.feature-item .ticket { margin-top: auto; }
.feature-item .ticket { margin-bottom: 0; }

/* F6 · TAKEN slot reads as blocked: hatched + struck */
.slot.taken {
  background: repeating-linear-gradient(135deg, rgba(243, 239, 230, .05) 0 4px, transparent 4px 8px);
  color: var(--ink-muted);
  text-decoration: line-through;
  border-color: var(--ink-700);
}

/* S1 · problem ticket: stacked rows on mobile */
@media (max-width: 640px) {
  .problem-ticket .chaos-list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .problem-ticket .chaos-list .chaos-hl { padding: var(--space-4); }
  .problem-ticket .chaos-list .chaos-label { font-size: 13px; }
  .problem-ticket .chaos-list .chaos-desc { font-size: 16px; }
}
.matrix-footnote {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  max-width: 72ch;
}

/* F9 · tidy legend rows */
.roles-legend { gap: var(--space-2) var(--space-8); }
.legend-item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted);
}

/* F10 · approvals card spacing + badge title */
.av-actions { margin-top: var(--space-6); }
.approval-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--warn); border: 1px solid rgba(146, 64, 14, .4); background: rgba(146, 64, 14, .12); border-radius: var(--radius-full); padding: 2px 10px; white-space: nowrap; }

/* F11 · calculator panel: 2-col inputs, adornments, sticky receipt */
.calc-inputs { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.rate-groups .rate-group.active { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .calc-inputs, .rate-groups .rate-group.active { grid-template-columns: repeat(2, 1fr); }
}
.input-group {
  display: flex; align-items: center;
  border: 1px solid var(--paper-3); border-radius: var(--radius-md);
  background: var(--paper); min-height: 44px;
}
.input-group:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.input-group .adorn {
  flex: none; padding-left: 12px;
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-soft);
}
.input-group .adorn.suffix { padding-left: 0; padding-right: 12px; }
.input-group input {
  flex: 1; min-width: 0;
  border: none; background: transparent; box-shadow: none; outline: none;
}
.calc-ticket { position: static; }
@media (min-width: 960px) {
  .calc-ticket { position: sticky; top: 100px; }
}
.split-bar {
  display: flex; height: 10px; border-radius: var(--radius-full);
  overflow: hidden; margin-top: var(--space-4); background: var(--paper-3);
}
.split-bar .split-b { background: var(--blue); transition: width var(--dur-base) var(--ease-standard); }
.split-bar .split-s { background: var(--aqua); transition: width var(--dur-base) var(--ease-standard); }
.split-labels {
  display: flex; justify-content: space-between; gap: var(--space-4);
  margin-top: 6px;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft);
}

/* ── 06 · AI operator ──────────────────────────────────── */
.ai-layout { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 960px) {
  .ai-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; }
}
.chat {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); background: var(--ink-950);
}
.bubble {
  max-width: 86%; padding: 9px 13px; border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: 1.5;
}
.bubble.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.op { align-self: flex-start; background: var(--ink-900); color: var(--paper); border: 1px solid var(--ink-800); border-bottom-left-radius: 4px; }
.bubble .bubble-note { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.op-chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
/* Booking / operator chips: paper default (blue-deep), .on-ink for dark surfaces */
.op-chip {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  border: 1px solid rgba(0, 91, 176, .5); color: var(--blue-deep);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
.op-chip:hover { background: rgba(0, 91, 176, .06); }
.op-chip.on-ink { border-color: var(--aqua); color: var(--aqua); }
.op-chip.on-ink:hover { background: rgba(28, 211, 222, .08); }
.booking-card .slot-note { color: var(--ink-soft); }
.ai-proof { list-style: none; margin: 0; padding: 0; }
.ai-proof li {
  display: flex; gap: var(--space-3); align-items: baseline;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-3);
  font-size: var(--text-base); color: var(--ink-text);
}
.ai-proof .ai-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--blue-deep); flex: none; }
.preview-card {
  margin-top: var(--space-6);
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg); padding: var(--space-5, 1.25rem) var(--space-6);
}
.preview-card .pv-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.preview-card .pv-line { display: flex; justify-content: space-between; gap: var(--space-4); padding: 5px 0; border-bottom: 1px dashed var(--paper-3); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-text); }
.preview-card .pv-line .prev-v { color: var(--ink-soft); text-decoration: line-through; }
.preview-card .pv-line .new-v { color: var(--ink-text); font-weight: var(--w-mono); }
.preview-card .pv-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.preview-card .pv-foot { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }

/* ── 07 · Views (owner / barber / front desk) ──────────── */
.views-grid { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
.views-right { display: grid; gap: var(--space-8); }
.views-grid .mock-window, .views-grid .mock-tablet, .views-grid .mock-phone { box-shadow: var(--shadow-3); }
@media (min-width: 960px) {
  .views-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; align-items: start; }
  .views-right { margin-left: -72px; gap: var(--space-4); }
  .view-tablet { position: relative; z-index: 2; margin-top: -40px; }
  .view-phone { position: relative; z-index: 3; justify-self: end; margin-top: -72px; margin-right: -16px; }
}
.view-caption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); margin-top: var(--space-3); }
.view-caption strong { color: var(--paper); font-weight: var(--w-mono); }
.views-captions { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 640px) { .views-captions { grid-template-columns: repeat(3, 1fr); } }
.views-cap .vc-role { font-family: var(--font-mono); font-size: 13px; color: var(--aqua-light); letter-spacing: 0.08em; }
.views-cap p { color: var(--ink-muted); margin-top: var(--space-2); }
.reportbar-row { display: flex; align-items: center; gap: var(--space-3); padding: 5px 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.reportbar-row .rb-name { width: 64px; flex: none; }
.reportbar-row .rb-track { flex: 1; height: 8px; background: var(--ink-800); border-radius: var(--radius-full); overflow: hidden; }
.reportbar-row .rb-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--aqua)); border-radius: var(--radius-full); }
.reportbar-row .rb-val { width: 56px; text-align: right; color: var(--paper); }
.phone-earn { background: var(--paper); color: var(--ink-text); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); }
.phone-earn .pe-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 3px 0; }
.phone-earn .pe-row .pe-k { min-width: 0; }
.phone-earn .pe-row .pe-k { color: var(--ink-soft); }
.phone-earn .pe-total { display: flex; justify-content: space-between; border-top: 1px dashed var(--paper-3); margin-top: 6px; padding-top: 6px; font-weight: var(--w-mono); }
.clients-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--ink-800); margin-top: var(--space-3); padding-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.clients-row .cr-count { color: var(--paper); font-weight: var(--w-mono); }
.fd-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 7px 0; border-bottom: 1px solid var(--ink-800); font-family: var(--font-mono); font-size: 12px; }
.fd-row .fd-name { color: var(--paper); }
.fd-row .fd-status { text-align: right; }

/* ── 08 · Everything else grid ─────────────────────────── */
.else-grid { display: grid; gap: var(--space-6); margin-top: var(--space-12); }
@media (min-width: 640px) { .else-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-8); } }
@media (min-width: 960px) { .else-grid { grid-template-columns: repeat(4, 1fr); } }
.else-item { border-top: 1px solid var(--paper-3); padding-top: var(--space-4); }
.else-item .else-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.else-item p { color: var(--ink-text); margin-top: var(--space-2); font-size: var(--text-base); }
.else-lead { margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }

/* ── 09 · Final CTA ────────────────────────────────────── */
.final-cta { position: relative; overflow: hidden; text-align: center; }
.final-cta::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(720px 420px at 50% 118%, rgba(28, 211, 222, .15), transparent 68%),
              radial-gradient(600px 300px at 50% -10%, rgba(1, 116, 220, .12), transparent 70%);
}
.final-cta .container-wide { position: relative; z-index: 1; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: var(--text-3xl); max-width: 18ch; margin-inline: auto; }
.final-cta .lede { margin-inline: auto; }
.final-cta .hero-ctas { justify-content: center; }

/* ════════════════════════════════════════════════════════
   PART 5 — features.html components
   ════════════════════════════════════════════════════════ */

/* Sticky anchor sub-nav (paper bar under the header) */
.anchor-nav {
  position: sticky; top: 64px; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
}
.anchor-nav-inner {
  display: flex; gap: var(--space-1);
  overflow-x: auto; scrollbar-width: none;
  padding: var(--space-2) 0;
}
.anchor-nav-inner::-webkit-scrollbar { display: none; }
.anchor-nav a {
  flex: none; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-soft);
  padding: 7px 12px; border-radius: var(--radius-full);
  text-decoration: none;
}
.anchor-nav a:hover { color: var(--blue-deep); background: rgba(1, 116, 220, .06); }
.anchor-nav a.active { color: var(--blue-deep); background: rgba(1, 116, 220, .1); font-weight: var(--w-mono); }
@media (max-width: 960px) {
  .anchor-nav-inner {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
}
section[id] { scroll-margin-top: 130px; }

/* Tables scroll inside their own box; fade + hint only when actually scrolling */
.scroll-wrap { overflow-x: auto; max-width: 100%; }
.scroll-wrap.can-scroll {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
}
.scroll-hint { display: none; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.section-dark .scroll-hint { color: var(--ink-muted); }
.scroll-wrap.can-scroll + .scroll-hint { display: block; }

/* Feature blocks: two columns, mockup side alternates */
.feature-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.fb-text, .fb-mock { min-width: 0; }
@media (min-width: 960px) {
  .feature-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); }
  .feature-block.flip .fb-mock { order: -1; }
}
.fb-text h2 { margin-bottom: var(--space-3); }
.fb-text .intro { color: var(--ink-soft); }
.section-dark .fb-text .intro { color: var(--ink-muted); }
.fb-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.fb-list li {
  display: flex; gap: var(--space-3); align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--paper-3);
  font-size: var(--text-base); color: var(--ink-text);
}
.section-dark .fb-list li { border-bottom-color: var(--ink-800); color: var(--ink-muted); }
.fb-list li::before { content: "\2014"; color: var(--ink-soft); flex: none; }
.section-dark .fb-list li::before { color: var(--aqua-light); }

/* Services matrix (paper) — scrolls inside its own box on mobile */
.svc-matrix-wrap { overflow-x: auto; max-width: 100%; position: relative; }
.svc-matrix {
  width: 100%; min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono); font-size: 12px;
}
.svc-matrix th, .svc-matrix td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--paper-3); }
@media (min-width: 960px) { .svc-matrix { min-width: 0; } }
.svc-matrix thead th { color: var(--ink-soft); font-weight: var(--w-mono); letter-spacing: .06em; }
.svc-matrix tbody th { color: var(--ink-text); font-weight: var(--w-body); white-space: nowrap; }
.svc-matrix td .svc-val { color: var(--ink-soft); }
.svc-matrix tr.override td { background: rgba(1, 116, 220, .06); }
.svc-matrix tr.override .svc-val { color: var(--blue-deep); font-weight: var(--w-mono); }
.svc-matrix tr.override td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.svc-matrix .chip { font-size: 12px; padding: 2px 8px; }
.svc-reset { margin-top: var(--space-3); font-family: var(--font-mono); font-size: 13px; color: var(--blue-deep); }
.svc-reset:hover { text-decoration: underline; }
.svc-authority { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* Arrangement editor cards (ink) — stacked full-width */
.arr-grid { display: grid; gap: var(--space-6); }
.arr-card { background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius-lg); padding: var(--space-5, 1.25rem) var(--space-6); }
.arr-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); border-bottom: 1px solid var(--ink-800); padding-bottom: var(--space-3); }
.arr-title { font-family: var(--font-display); font-weight: var(--w-display); color: var(--paper); font-size: var(--text-md); }
.arr-rule { display: flex; justify-content: space-between; gap: var(--space-4); padding: 7px 0; border-bottom: 1px dashed var(--ink-800); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.arr-rule .arr-v { color: var(--paper); font-weight: var(--w-mono); text-align: right; white-space: nowrap; }
.arr-link { display: inline-block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: 13px; color: var(--aqua); text-decoration: none; }
.arr-link:hover { text-decoration: underline; }

/* Staff permission panel (paper) */
.perm-panel { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); padding: var(--space-6); }
.perm-head { border-bottom: 1px solid var(--paper-3); padding-bottom: var(--space-3); margin-bottom: var(--space-2); }
.perm-name { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-xl); color: var(--ink-text); margin: 0; }
.perm-role { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 9px 0; border-bottom: 1px dashed var(--paper-3); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-text); }
.perm-row.override-row { background: rgba(1, 116, 220, .06); margin-inline: calc(var(--space-4) * -1); padding-left: var(--space-4); padding-right: var(--space-4); border-radius: var(--radius-sm); }
.perm-foot { margin-top: var(--space-3); font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }

/* Approvals queue + audit table (ink) */
.queue { display: grid; gap: var(--space-4); }
.queue-item { background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.queue-item .q-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--paper); }
.queue-item .q-detail { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.audit-wrap { overflow-x: auto; margin-top: var(--space-6); }
.audit-table { width: 100%; min-width: 480px; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.audit-table th, .audit-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--ink-800); }
.audit-table thead th { color: var(--ink-muted); font-weight: var(--w-mono); letter-spacing: .06em; }
.audit-table td:first-child { color: var(--paper); }

/* Week availability strip (paper) */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-cell { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-md); padding: 9px 6px; font-family: var(--font-mono); font-size: 12px; text-align: center; color: var(--ink-soft); }
.day-cell .dc-day { font-weight: var(--w-mono); color: var(--ink-text); }
.day-cell .dc-line { display: block; margin-top: 4px; color: var(--ink-text); }
.day-cell.off { background: var(--paper-2); }
.day-cell.off .dc-line { color: var(--ink-soft); }
.day-cell.blocked { border-color: rgba(185, 28, 28, .35); }
.day-cell.blocked .dc-line { color: var(--deny); }
.booking-card { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin-top: var(--space-4); }
.booking-card .bk-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.manage-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-top: var(--space-4); font-family: var(--font-mono); font-size: 13px; color: var(--ink-text); }

/* Client card + ledger (ink) */
.client-card { background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius-lg); padding: var(--space-6); }
.client-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); border-bottom: 1px solid var(--ink-800); padding-bottom: var(--space-3); font-family: var(--font-display); font-weight: var(--w-display); color: var(--paper); font-size: var(--text-md); }
.client-head.stack { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
/* Chips on ink cards (client-card is ink-900 even inside paper sections) */
.client-card .chip-source { color: var(--ink-muted); border-color: rgba(169, 184, 204, .35); }
.visit-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 7px 0; border-bottom: 1px dashed var(--ink-800); font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.visit-row .v-what { color: var(--paper); }
.hidden-field { display: flex; justify-content: space-between; gap: var(--space-4); padding: 8px 10px; margin-top: var(--space-3); background: rgba(6, 22, 43, .5); border: 1px dashed var(--ink-700); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.ledger-list { display: grid; gap: 6px; margin-top: var(--space-4); }
.ledger-entry { display: flex; justify-content: space-between; gap: var(--space-4); padding: 9px 10px; background: var(--ink-950); border: 1px solid var(--ink-800); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.ledger-entry .l-plus { color: var(--ok-bright); }
.ledger-entry .l-minus { color: var(--deny-bright); }

/* Reporting (paper) */
.mix-row { display: flex; align-items: center; gap: var(--space-3); padding: 6px 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.mix-row .mx-label { width: 104px; flex: none; }
.mix-row .mx-track { flex: 1; height: 10px; background: var(--paper-3); border-radius: var(--radius-full); overflow: hidden; }
.mix-row .mx-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.mix-row .mx-val { width: 44px; text-align: right; color: var(--ink-text); font-weight: var(--w-mono); }
.insight-card { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); padding: var(--space-5, 1.25rem) var(--space-5, 1.25rem); margin-top: var(--space-4); font-family: var(--font-body); font-size: var(--text-base); color: var(--ink-text); }
.insight-card .ic-label { display: block; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }

/* AI operator voice state (ink) */
.voice-card { background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius-lg); padding: var(--space-5, 1.25rem) var(--space-6); }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { width: 3px; border-radius: 2px; background: var(--aqua); }
.wave i:nth-child(1) { animation: wave 1.1s .00s ease-in-out infinite; }
.wave i:nth-child(2) { animation: wave 1.1s .11s ease-in-out infinite; }
.wave i:nth-child(3) { animation: wave 1.1s .22s ease-in-out infinite; }
.wave i:nth-child(4) { animation: wave 1.1s .33s ease-in-out infinite; }
.wave i:nth-child(5) { animation: wave 1.1s .44s ease-in-out infinite; }
.wave i:nth-child(6) { animation: wave 1.1s .55s ease-in-out infinite; }
.wave i:nth-child(7) { animation: wave 1.1s .66s ease-in-out infinite; }
.wave i:nth-child(8) { animation: wave 1.1s .77s ease-in-out infinite; }
.wave i:nth-child(9) { animation: wave 1.1s .88s ease-in-out infinite; }
.wave i:nth-child(10) { animation: wave 1.1s .99s ease-in-out infinite; }
.wave i:nth-child(11) { animation: wave 1.1s .88s ease-in-out infinite; }
.wave i:nth-child(12) { animation: wave 1.1s .77s ease-in-out infinite; }
.wave i:nth-child(13) { animation: wave 1.1s .66s ease-in-out infinite; }
.wave i:nth-child(14) { animation: wave 1.1s .55s ease-in-out infinite; }
.wave i:nth-child(15) { animation: wave 1.1s .44s ease-in-out infinite; }
.wave i:nth-child(16) { animation: wave 1.1s .33s ease-in-out infinite; }
.wave i:nth-child(17) { animation: wave 1.1s .22s ease-in-out infinite; }
.wave i:nth-child(18) { animation: wave 1.1s .11s ease-in-out infinite; }
.wave i:nth-child(19) { animation: wave 1.1s .00s ease-in-out infinite; }
.wave i:nth-child(20) { animation: wave 1.1s .11s ease-in-out infinite; }
.wave i:nth-child(21) { animation: wave 1.1s .22s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; height: 14px; }
  .wave i:nth-child(odd) { height: 24px; }
}
.voice-label { font-family: var(--font-mono); font-size: 12px; color: var(--aqua-light); letter-spacing: .08em; margin-top: var(--space-2); }
.transcript { margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.denied-card { background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius-lg); margin-top: var(--space-4); padding: var(--space-5, 1.25rem) var(--space-5, 1.25rem); display: grid; gap: var(--space-2); }
.denied-line { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--paper); }
.denied-line .denied-who { color: var(--aqua-light); flex: none; }
.denied-line .denied-reason { color: var(--ink-muted); }
.denied-line.operator { padding-top: var(--space-2); border-top: 1px dashed var(--ink-800); }
.denied-line.operator .denied-reason { width: 100%; }

/* Everything-else sheet (features "more" section) — 3-col grid */
.more-grid { display: grid; gap: var(--space-6) var(--space-8); margin-top: var(--space-8); }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-item { border-top: 1px solid var(--paper-3); padding-top: var(--space-3); }
.more-item .mr-label { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-text); font-weight: var(--w-mono); }
.more-item p { color: var(--ink-soft); margin-top: 4px; font-size: var(--text-base); }

/* ════════════════════════════════════════════════════════
   PART 6 — owners.html components
   ════════════════════════════════════════════════════════ */
.owner-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .owner-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); } }
.settle-ticket { max-width: 480px; margin-inline: auto; }
.settle-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 7px 0; border-bottom: 1px dashed var(--paper-3); font-family: var(--font-mono); font-size: var(--text-sm); }
.settle-row .st-left { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.settle-row .st-who { color: var(--ink-text); font-weight: var(--w-mono); }
.settle-row .st-tag { color: var(--ink-soft); font-size: var(--text-xs); }
.settle-row .st-right { display: flex; align-items: baseline; gap: var(--space-3); margin-left: auto; text-align: right; }
.settle-row .st-how { color: var(--ink-soft); font-size: var(--text-xs); }
.settle-row .st-val { color: var(--ink-text); font-weight: var(--w-mono); white-space: nowrap; }
.settle-product { display: flex; gap: var(--space-2); align-items: baseline; border-bottom: 1px dashed var(--paper-3); padding: 7px 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }
.settle-product .sp-label { color: var(--ink-text); }
.settle-product .sp-val { margin-left: auto; color: var(--ink-text); font-weight: var(--w-mono); white-space: nowrap; }
@media (max-width: 640px) {
  .settle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .settle-row .st-left { grid-row: 1; grid-column: 1; min-width: 0; }
  .settle-row .st-right { display: contents; }
  .settle-row .st-val { grid-row: 1; grid-column: 2; justify-self: end; }
  .settle-row .st-how { grid-row: 2; grid-column: 1 / -1; text-align: left; font-size: 12px; }
  .settle-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .settle-product .sp-label { grid-row: 1; grid-column: 1; }
  .settle-product .sp-val { grid-row: 1; grid-column: 2; }
  .settle-product .sp-how { grid-row: 2; grid-column: 1 / -1; font-size: 12px; }
}

/* Pain → fix pairs */
.pf-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.pf-pair { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-3); }
@media (min-width: 720px) { .pf-pair { grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); } }
.pf-before { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(164, 22, 22, .45); }
.pf-after { color: var(--ink-text); font-weight: 500; }
.pf-arrow { color: var(--blue-deep); font-family: var(--font-mono); }

/* Controls: three tight columns with uniform ink mini-cards */
.ctl-grid { display: grid; gap: var(--space-10, 2.5rem); margin-top: var(--space-8); }
@media (min-width: 960px) { .ctl-grid { grid-template-columns: repeat(3, 1fr); } }
.ctl-col { border-top: 1px solid var(--paper-3); padding-top: var(--space-4); min-width: 0; display: flex; flex-direction: column; }
.ctl-col h3 { font-size: var(--text-md); }
.ctl-col p { color: var(--ink-soft); font-size: var(--text-base); }
.ctl-mock {
  margin-top: var(--space-3); flex: 1; min-height: 150px;
  background: var(--ink-900); border: 1px solid var(--ink-800);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-3);
}
.ctl-mock-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 2px 0; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--paper); }
.ctl-mock-sub { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 2px 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* Setup steps */
.setup-list { list-style: none; counter-reset: setup; margin: var(--space-8) 0 0; padding: 0; }
.setup-list li { counter-increment: setup; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-3); }
.setup-list .setup-num { font-family: var(--font-mono); font-size: 13px; color: var(--blue-deep); }
.setup-list .setup-num::before { content: "0" counter(setup); }
.setup-list h3 { font-size: var(--text-md); margin: 0 0 var(--space-1); }
.setup-list p { margin: 0; color: var(--ink-soft); }
.setup-note { margin-top: var(--space-4); font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }

/* ════════════════════════════════════════════════════════
   PART 7 — barbers.html components
   ════════════════════════════════════════════════════════ */
.barber-hero-grid { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 960px) { .barber-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); } }
.phones { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 460px; margin-inline: auto; }
.phone-main { width: 100%; max-width: 380px; }
.phone-behind { width: 260px; margin-left: 8px; margin-right: auto; transform: rotate(-4deg); }
@media (max-width: 760px) { .phone-behind { display: none; } }
.earn-grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .earn-grid { grid-template-columns: repeat(2, 1fr); } }
.earn-card .ticket-head { margin-bottom: var(--space-2); }
.earn-note { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--text-xs); font-family: var(--font-mono); }
.pair-grid { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 760px) { .pair-grid { grid-template-columns: repeat(2, 1fr); } }
.cmd-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: 1px solid var(--ink-800); }
.cmd-item { display: grid; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--ink-800); }
.cmd-prompt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--paper); }
.cmd-result { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.cmd-result strong { color: var(--aqua-light); font-weight: var(--w-mono); }

/* ════════════════════════════════════════════════════════
   PART 8 — demo.html, legal placeholders, 404
   ════════════════════════════════════════════════════════ */
/* Demo: mobile order (intro → form → agenda → next) via grid placement */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.demo-intro, .demo-agenda, .demo-intro-note { min-width: 0; }
.demo-form-col { min-width: 0; }
@media (min-width: 960px) {
  .demo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .demo-intro { grid-column: 1; }
  .demo-agenda { grid-column: 1; }
  .demo-intro-note { grid-column: 1; }
  .demo-form-col { grid-column: 2; grid-row: 1 / span 3; }
}
/* Focused elements never hide under the sticky header */
#demo-form input, #demo-form select, #demo-form textarea,
#form-summary, #form-fetch-error, #demo-success { scroll-margin-top: 88px; }
.demo-summary-list { margin: 8px 0 0; padding: 0 0 0 18px; }
.demo-summary-list li { margin: 2px 0; }
.demo-summary-list a { color: var(--deny); text-underline-offset: 2px; }
.demo-list { list-style: none; counter-reset: demo; margin: var(--space-8) 0 0; padding: 0; }
.demo-list li { counter-increment: demo; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--ink-800); }
.demo-list .demo-num { font-family: var(--font-mono); font-size: 13px; color: var(--aqua-light); }
.demo-list .demo-num::before { content: "0" counter(demo); }
.demo-list h3 { font-size: var(--text-md); margin: 0 0 var(--space-1); color: var(--paper); }
.demo-list p { margin: 0; color: var(--ink-muted); }
.demo-intro-note { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--ink-800); font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.demo-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-8); }
.demo-card h2 { font-size: var(--text-lg); color: var(--ink-text); }
.demo-card .field input:focus-visible, .demo-card .field select:focus-visible, .demo-card .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-summary { background: rgba(164, 22, 22, .08); border: 1px solid var(--deny); color: var(--deny); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.form-summary:focus { outline: 2px solid var(--deny); outline-offset: 2px; }
.dev-notice { margin-top: var(--space-4); padding: var(--space-2) var(--space-3); border: 1px dashed var(--paper-3); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: wait; }
.required-mark { color: var(--deny); }
.legal-notice { background: var(--paper-2); border: 1px solid rgba(146, 64, 14, .4); border-left: 4px solid var(--warn); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); color: var(--ink-text); margin-bottom: var(--space-8); font-size: var(--text-base); }
.legal h2 { font-size: var(--text-md); margin: var(--space-8) 0 var(--space-2); }
.legal p { color: var(--ink-soft); max-width: 72ch; }
.legal .legal-foot { margin-top: var(--space-10, 2.5rem); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.oops-head { font-family: var(--font-mono); font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; color: var(--aqua-light); margin: 0 0 var(--space-4); }

/* ── Chair IQ EDU — school-facing product page ────────── */
.site-nav a[aria-current="page"] { color: var(--aqua-light); }
.edu-page .hero-title { max-width: 18ch; }
.edu-page .hero .lede { max-width: 65ch; }
.edu-page .problem-copy h2 { font-size: var(--text-3xl); }
.edu-page .problem-ticket .chaos-list { margin-top: 0; }
.edu-page .problem-ticket .chaos-list li { grid-template-columns: minmax(0, 135px) minmax(0, 1fr); }
.edu-figure { margin: 0; min-width: 0; }
.edu-footnote { margin: var(--space-6) 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
.section-dark .edu-footnote { color: var(--ink-muted); }
.edu-ui-label { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: .06em; margin: 0; }
.edu-sample-tag { margin-left: auto; color: var(--ink-muted); font-size: 11px; letter-spacing: .06em; }
.edu-board-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.edu-board-main { padding: var(--space-6); background: var(--paper); color: var(--ink-text); min-width: 0; }
.edu-board-heading { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: start; margin-bottom: var(--space-6); }
.edu-board-heading .edu-ui-label { color: var(--ink-soft); margin-bottom: var(--space-2); }
.edu-page .edu-board-heading h2 { color: var(--ink-text); font-size: var(--text-xl); margin-bottom: 0; }
.edu-school-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.edu-roster-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--paper-3); align-items: center; font-size: var(--text-sm); }
.edu-roster-row > * { min-width: 0; }
.edu-roster-row strong { font-weight: 600; }
.edu-roster-row small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: var(--space-1); }
.edu-roster-head { border-top: 0; padding-top: 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.edu-roster .chip { font-size: 11px; white-space: normal; }
.edu-board-aside { padding: var(--space-6); border-top: 1px solid var(--ink-800); }
.edu-board-aside > .edu-ui-label { color: var(--aqua-light); margin-bottom: var(--space-4); }
.edu-board-aside > div { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--ink-800); }
.edu-board-count { color: var(--aqua-light); font-family: var(--font-mono); font-size: 12px; }
.edu-board-aside p { font-size: var(--text-sm); margin: 0; }
.edu-lesson { background: var(--paper); color: var(--ink-text); border: 1px solid var(--paper-3); border-top: 4px solid var(--blue); border-radius: var(--radius-md); padding: var(--space-6); }
.edu-lesson-top { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding-bottom: var(--space-6); }
.edu-page .edu-lesson h3 { color: var(--ink-text); font-size: var(--text-xl); }
.edu-lesson .edu-ui-label { color: var(--ink-soft); }
.edu-lesson .chip-source { color: var(--ink-soft); border-color: var(--paper-3); }
.edu-definition-list { margin: var(--space-6) 0 0; }
.edu-definition-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); border-top: 1px solid var(--paper-3); padding: var(--space-3) 0; font-size: var(--text-sm); }
.edu-definition-list dt { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.edu-definition-list dd { margin: 0; }
.edu-lesson-note { margin-top: var(--space-4); padding: var(--space-4); border-left: 2px solid var(--blue); background: var(--paper-2); }
.edu-lesson-note p:last-child { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.edu-record { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius-md); padding: var(--space-6); }
.edu-record-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-6); }
.edu-record h3 { font-size: var(--text-xl); }
.edu-record dd { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; }
.edu-record .chip { font-size: 11px; white-space: normal; }
.edu-record-note { border-top: 1px dashed var(--ink-soft); margin: var(--space-6) 0 0; padding-top: var(--space-4); color: var(--ink-soft); font-size: var(--text-sm); }
.edu-role-list { list-style: none; padding: 0; margin: var(--space-12) 0 0; }
.edu-role-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--ink-800); }
.edu-role-list li:last-child { border-bottom: 1px solid var(--ink-800); }
.edu-role-num { font-family: var(--font-mono); font-size: 13px; color: var(--aqua-light); padding-top: 3px; }
.edu-role-list h3 { font-size: var(--text-xl); margin: 0; }
.edu-role-list p { grid-column: 2; color: var(--ink-muted); margin: 0; max-width: 62ch; }
.edu-journey { display: grid; list-style: none; padding: 0; margin: var(--space-12) 0 0; gap: var(--space-8); }
.edu-journey li { border-top: 2px solid var(--ink-text); padding-top: var(--space-4); }
.edu-journey .edu-ui-label { display: block; color: var(--ink-soft); margin-bottom: var(--space-4); }
.edu-journey h3 { font-size: var(--text-lg); }
.edu-journey p { color: var(--ink-soft); margin: 0; font-size: var(--text-sm); }
.edu-program-note { margin: var(--space-12) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--paper-3); color: var(--ink-soft); font-size: var(--text-sm); max-width: 88ch; }
.edu-platform-pair { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
.edu-platform { border-top: 2px solid var(--ink-muted); padding-top: var(--space-6); }
.edu-platform-current { border-top-color: var(--aqua-light); }
.edu-platform .edu-ui-label { color: var(--ink-muted); margin-bottom: var(--space-4); }
.edu-platform h3 { font-size: var(--text-2xl); }
.edu-platform h3 span { color: var(--aqua-light); }
.edu-platform p:not(.edu-ui-label) { color: var(--ink-muted); max-width: 47ch; }
.edu-current-label { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); color: var(--aqua-light); font-size: var(--text-sm); }
.edu-faq { border-top: 1px solid var(--paper-3); margin-top: var(--space-8); }
.edu-faq details { border-bottom: 1px solid var(--paper-3); }
.edu-faq summary { padding: var(--space-6) var(--space-8) var(--space-6) 0; min-height: 44px; font-weight: 600; cursor: pointer; position: relative; list-style: none; }
.edu-faq summary::-webkit-details-marker { display: none; }
.edu-faq summary::after { content: "+"; position: absolute; right: 0; top: var(--space-6); font-family: var(--font-mono); color: var(--blue-deep); }
.edu-faq details[open] summary::after { content: "−"; }
.edu-faq details p { color: var(--ink-soft); margin: 0 0 var(--space-6); }
.edu-page .final-cta h2 { max-width: 24ch; }
.edu-contact-note { color: var(--ink-muted); font-size: var(--text-sm); margin: var(--space-6) auto 0; max-width: 58ch; }
.edu-home-link { border-top: 1px solid var(--paper-3); margin-top: var(--space-12); padding-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between; }
.edu-home-link h3 { margin-bottom: var(--space-2); }
.edu-home-link p:last-child { margin-bottom: 0; color: var(--ink-soft); max-width: 64ch; }
.edu-home-link .arr-link { flex: none; }
@media (min-width: 640px) {
  .edu-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-platform-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
  .edu-role-list li { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-6); }
  .edu-role-list p { grid-column: 3; }
}
@media (min-width: 960px) {
  .edu-board-body { grid-template-columns: minmax(0, 1fr) 240px; }
  .edu-board-main { padding: var(--space-8); }
  .edu-board-aside { border-top: 0; border-left: 1px solid var(--ink-800); }
  .edu-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Official EDU lockups. Compact where the bar is short; full dark in the footer. */
.edu-lockup { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; object-position: left center; }
.edu-page .brand { min-width: 0; }
.edu-page .header-inner { min-height: 72px; }
.edu-page .brand .edu-lockup { height: 56px; }
.edu-page .footer-brand .edu-lockup { width: auto; height: 72px; }
.edu-card-title { line-height: 0; }
.company-platform .edu-card-title .edu-lockup,
.edu-platform .edu-card-title .edu-lockup { height: 84px; }
.edu-home-link .edu-lockup { height: 72px; flex: none; }
@media (max-width: 767px) {
  .edu-page .brand .edu-lockup { height: 44px; max-width: calc(100vw - 120px); }
  .edu-page .footer-brand .edu-lockup { height: 58px; }
  .edu-home-link .edu-lockup,
  .company-platform .edu-card-title .edu-lockup,
  .edu-platform .edu-card-title .edu-lockup { height: 56px; }
}
.edu-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.edu-kicker span + span { border-left: 1px solid var(--ink-700); padding-left: 10px; color: var(--ink-muted); }
.edu-page .hero-title > span { display: block; }
.edu-title-accent { color: var(--aqua-light); }
.edu-programs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.edu-programs li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--ink-800); border-radius: 6px; color: var(--ink-muted); font-size: 12px; }
.edu-programs li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--aqua-light); }
.edu-mobile-preview, .edu-jump-nav { display: none; }

/* Phone layouts are composed independently of the desktop roster. */
@media (max-width: 767px) {
  .edu-page { --gutter: 24px; }
  .edu-page .section { position: relative; padding-block: 56px; }
  .edu-page .section-index { position: absolute; top: 58px; right: var(--gutter); font-size: 10px; letter-spacing: .04em; }
  .edu-page .eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: .09em; max-width: calc(100% - 56px); margin-bottom: 16px; }
  .edu-page .section h2 { font-size: clamp(1.875rem, 8.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; }
  .edu-page .lede { font-size: 16px; line-height: 1.7; }
  .edu-page section[id] { scroll-margin-top: 114px; }
  .edu-page .edu-hero { padding-top: 28px; padding-bottom: 40px; }
  .edu-hero .section-index { display: none; }
  .edu-page .edu-kicker { max-width: none; gap: 8px; margin-bottom: 0; font-size: 10px; }
  .edu-kicker span:first-child { padding: 4px 8px; border: 1px solid var(--ink-700); border-radius: 4px; background: var(--ink-900); }
  .edu-kicker span + span { padding-left: 0; border-left: 0; letter-spacing: .03em; }
  .edu-page .hero-title { max-width: none; font-size: clamp(2rem, 10.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; margin: 20px 0 18px; text-wrap: initial; }
  .edu-page .hero-title > span { white-space: nowrap; }
  .edu-page .hero .lede { max-width: 35ch; margin-bottom: 0; line-height: 1.65; }
  .edu-programs { margin: 20px 0 24px; gap: 6px; }
  .edu-programs li { padding: 5px 8px; font-size: 10px; }
  .edu-hero .hero-ctas { margin-top: 0; gap: 0; }
  .edu-page .hero-ctas .btn { width: 100%; min-height: 52px; padding-inline: 16px; font-size: 16px; white-space: normal; text-align: center; border-radius: 10px; }
  .edu-hero .hero-ctas .btn-primary { justify-content: space-between; padding-inline: 20px; box-shadow: 0 4px 24px rgba(0, 103, 199, .25); }
  .edu-hero .hero-ctas .edu-explore-link { min-height: 44px; font-size: 13px; border: 0; background: transparent; color: var(--ink-muted); }
  .edu-explore-link span { color: var(--aqua-light); margin-left: 4px; }
  .edu-hero .mock-figure { margin-top: 20px; }
  .edu-hero .edu-board { display: none; }
  .edu-mobile-preview { display: block; max-width: 440px; margin-inline: auto; overflow: hidden; background: var(--paper); color: var(--ink-text); border: 1px solid var(--ink-700); border-radius: 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
  .edu-snapshot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 18px; background: var(--ink-900); color: var(--paper); }
  .edu-snapshot-top .edu-ui-label { font-size: 9px; letter-spacing: .07em; }
  .edu-snapshot-sample { font: 9px var(--font-mono); letter-spacing: .06em; color: var(--ink-muted); }
  .edu-snapshot-person { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; }
  .edu-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 46px; background: var(--ink-950); color: var(--aqua-light); border-radius: 10px; font: 500 14px var(--font-mono); }
  .edu-page .edu-snapshot-person h2 { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink-text); margin: 0 0 4px; }
  .edu-snapshot-person p { margin: 0; color: var(--ink-soft); font-size: 12px; }
  .edu-person-status { margin-left: auto; text-align: right; font-size: 10px; line-height: 1.5; color: var(--ok); }
  .edu-snapshot-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px; padding: 6px 0 18px; }
  .edu-snapshot-path::before { content: ""; position: absolute; top: 18px; left: 16%; right: 16%; height: 1px; background: var(--paper-3); }
  .edu-snapshot-path > span { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-soft); }
  .edu-snapshot-path i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--paper); font: 500 11px var(--font-mono); }
  .edu-snapshot-path .is-complete i { background: var(--blue-deep); color: white; }
  .edu-snapshot-path .is-current i { border: 1px solid var(--blue-deep); color: var(--blue-deep); }
  .edu-snapshot-work { margin: 0 18px 18px; padding: 14px; background: var(--paper-2); border-left: 2px solid var(--blue); border-radius: 0 8px 8px 0; }
  .edu-snapshot-work .edu-ui-label { color: var(--ink-soft); font-size: 9px; }
  .edu-page .edu-snapshot-work h3 { color: var(--ink-text); font-size: 19px; margin: 8px 0; }
  .edu-snapshot-work p { font-size: 12px; line-height: 1.6; margin-bottom: 12px; color: var(--ink-soft); }
  .edu-snapshot-work .chip { font-size: 10px; }
  .edu-snapshot-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--paper-3); }
  .edu-snapshot-footer .edu-ui-label { display: block; color: var(--ink-soft); font-size: 9px; }
  .edu-snapshot-footer strong { display: block; font: 500 24px var(--font-mono); margin-top: 4px; }
  .edu-snapshot-footer small { font: 12px var(--font-body); color: var(--ink-soft); }
  .edu-signed { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 10px; }
  .edu-signed > span { display: grid; place-items: center; border: 1px solid currentColor; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; }
  .edu-hero .mock-caption { max-width: 32ch; margin: 14px auto 0; font-size: 9px; line-height: 1.7; text-align: center; letter-spacing: .05em; }
  .edu-jump-nav { display: flex; position: sticky; top: 64px; z-index: 40; align-items: center; justify-content: space-between; gap: 4px; padding: 0 16px; background: var(--ink-900); border-top: 1px solid var(--ink-800); border-bottom: 1px solid var(--ink-700); }
  .edu-jump-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; color: var(--paper); font-size: 11px; white-space: nowrap; text-decoration: none; }
  .edu-jump-nav a:hover { color: var(--aqua-light); }
  .edu-page .problem-grid, .edu-page .feature-block { gap: 28px; }
  .edu-page .problem-ticket { padding: 0; border: 0; margin: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .edu-page .problem-ticket::before { display: none; }
  .edu-page .problem-ticket .chaos-list { border-top: 1px solid var(--paper-3); }
  .edu-page .problem-ticket .chaos-list li { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .edu-page .problem-ticket .chaos-list .chaos-label { font-size: 10px; line-height: 1.6; }
  .edu-page .problem-ticket .chaos-list .chaos-desc { font: 14px/1.6 var(--font-body); }
  .edu-page .problem-ticket .chaos-list .chaos-hl { padding: 16px; margin: 8px 0 0; border-radius: 10px; }
  .edu-page .feature-block { gap: 0; }
  .edu-page .feature-block .fb-text { display: contents; }
  .edu-page .feature-block .eyebrow { order: 0; }
  .edu-page .feature-block h2 { order: 1; }
  .edu-page .feature-block .intro { order: 2; }
  .edu-page .feature-block .fb-mock { order: 3; margin: 8px 0 24px; }
  .edu-page .feature-block .fb-list { order: 4; margin-top: 0; }
  .edu-page .feature-block .edu-footnote { order: 5; }
  .edu-page .fb-text .intro { font-size: 16px; line-height: 1.7; }
  .edu-page .fb-list { margin-top: 20px; }
  .edu-page .fb-list li { font-size: 14px; line-height: 1.55; padding-block: 12px; gap: 12px; }
  .edu-page .edu-footnote { font-size: 12px; line-height: 1.7; padding-left: 14px; border-left: 2px solid var(--ink-700); margin-top: 20px; }
  .edu-page .section-paper .edu-footnote { border-left-color: var(--paper-3); }
  .edu-lesson, .edu-record { padding: 20px; border-radius: 12px; }
  .edu-lesson-top, .edu-record-head { padding-bottom: 20px; gap: 10px; }
  .edu-lesson-top .edu-ui-label, .edu-record-head .edu-ui-label { font-size: 10px; }
  .edu-lesson-top .chip, .edu-record-head .chip { font-size: 9px; }
  .edu-page .edu-lesson h3, .edu-record h3 { font-size: 24px; letter-spacing: -.03em; }
  .edu-lesson > p { font-size: 14px; line-height: 1.65; }
  .edu-definition-list { margin-top: 20px; }
  .edu-definition-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 12px; font-size: 14px; }
  .edu-definition-list dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
  .edu-lesson-note { padding: 14px; }
  .edu-lesson-note .edu-ui-label { font-size: 9px; }
  .edu-lesson-note p:last-child { font-size: 13px; }
  .edu-record { background: var(--paper); border-top: 3px solid var(--blue); box-shadow: var(--shadow-2); }
  .edu-record dd { font-size: 14px; gap: 10px; }
  .edu-record-note { font-size: 12px; line-height: 1.7; margin-top: 14px; }
  .edu-page .edu-figure .mock-caption { font-size: 9px; line-height: 1.7; letter-spacing: .03em; margin-top: 12px; }
  .edu-role-list { margin-top: 28px; background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: 14px; overflow: hidden; }
  .edu-role-list li { grid-template-columns: 28px minmax(0, 1fr); padding: 20px; gap: 8px 12px; }
  .edu-role-list li:first-child { border-top: 0; }
  .edu-role-list li:last-child { border-bottom: 0; }
  .edu-role-num { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--ink-700); border-radius: 7px; font-size: 10px; }
  .edu-role-list h3 { font-size: 21px; align-self: center; }
  .edu-role-list p { grid-column: 1 / -1; font-size: 14px; line-height: 1.7; margin-top: 4px; }
  .edu-journey { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 32px 0 0 6px; }
  .edu-journey li { position: relative; border-top: 0; border-left: 1px solid var(--paper-3); padding: 0 0 32px 26px; }
  .edu-journey li::before { content: ""; position: absolute; top: 3px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--paper); }
  .edu-journey li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .edu-journey .edu-ui-label { font-size: 10px; margin-bottom: 10px; }
  .edu-journey h3 { font-size: 22px; margin-bottom: 10px; }
  .edu-journey p { font-size: 14px; line-height: 1.7; }
  .edu-program-note { font-size: 12px; line-height: 1.75; margin-top: 28px; padding-top: 20px; }
  .edu-platform-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
  .edu-platform { padding: 22px; border: 1px solid var(--ink-800); border-radius: 12px; background: var(--ink-900); }
  .edu-platform-current { border-left: 3px solid var(--aqua-light); }
  .edu-platform .edu-ui-label { font-size: 10px; margin-bottom: 12px; }
  .edu-platform h3 { font-size: 28px; }
  .edu-platform p:not(.edu-ui-label) { font-size: 14px; line-height: 1.7; }
  .edu-current-label { min-height: 24px; font-size: 11px; }
  .edu-platform .arr-link { font-size: 13px; }
  .edu-faq { margin-top: 28px; }
  .edu-faq summary { font-size: 15px; line-height: 1.6; padding-block: 20px; }
  .edu-faq summary::after { top: 20px; }
  .edu-faq details p { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
  .edu-page .final-cta { padding-block: 48px; }
  .edu-page .final-cta .section-index { display: none; }
  .edu-page .final-cta .eyebrow { max-width: none; margin-inline: auto; }
  .edu-page .final-cta h2 { font-size: 32px; max-width: 19ch; }
  .edu-page .final-cta .hero-ctas { gap: 12px; margin-top: 24px; }
  .edu-contact-note { font-size: 12px; line-height: 1.75; margin-top: 20px; }
  .edu-page .site-footer { padding-top: 36px; }
}

/* Company-level product choice; both platforms have equal weight. */
.company-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; text-align: left; }
.company-platform { padding: 28px; border: 1px solid var(--ink-muted); border-radius: var(--radius-lg); background: var(--ink-900); display: flex; flex-direction: column; align-items: flex-start; }
.company-platform h2 { font-size: var(--text-2xl); margin: 8px 0 16px; }
.company-platform h2 span { color: var(--aqua-light); }
.company-platform > p:not(.eyebrow) { color: var(--ink-muted); max-width: 44ch; margin-bottom: 24px; }
.company-platform .btn { margin-top: auto; min-height: 48px; }
.company-tour-label { margin-top: 48px; font-family: var(--font-mono); color: var(--ink-muted); }
/* Chair IQ OS lockup: official white-art SVG, ink surfaces only. */
.os-lockup { width: 242px; height: 80px; }
.os-lockup-hero { margin-bottom: var(--space-6); }
@media (min-width: 960px) { .os-lockup { width: 302px; height: 100px; } }
.os-lockup-compact { width: 158px; height: 44px; margin-bottom: var(--space-2); }
.demo-email-option { border-top: 1px solid var(--paper-3); margin-top: 24px; padding-top: 20px; color: var(--ink-text); }
.demo-email-option p + p { margin-top: 8px; font-size: var(--text-sm); color: var(--ink-soft); }
@media (max-width: 700px) { .company-platforms { grid-template-columns: minmax(0, 1fr); gap: 16px; } .company-platform { padding: 24px; } .company-platform .btn { width: 100%; white-space: normal; text-align: center; } }

/* Keep illustrative controls out of the interaction model. */
.av-actions > span, .pv-actions > span, .mock-window span.btn { cursor: default; }
.checkbox-row { min-height: 44px; align-items: center; }
.checkbox-row label { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; flex: 1; }
/* Constrain the existing device illustrations on the smallest phones. */
.views-right { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.views-grid .view-tablet, .views-grid .view-phone { min-width: 0; max-width: 100%; }
.views-grid .fd-name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 959px) {
  .views-grid { grid-template-columns: minmax(0, 1fr); }
  .views-right { width: 100%; }
  .views-grid .view-phone { width: 100%; max-width: 300px; }
}
