/* =============================================================================
   EXPLORE — the discovery layer.

   Adds only what the existing nine stylesheets do not already provide. Every
   colour resolves through a token; there are no hex literals here. No new
   entrance motion: everything uses the site-wide [data-reveal] system.
   ========================================================================== */

/* ---------------------------------------------------------- breadcrumb --- */
.xb { border-bottom: 1px solid var(--line); background: var(--base); }
.xb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-block: 14px;
  font-size: 12px; color: var(--ink-muted);
}
.xb-list a { color: var(--ink-muted); }
.xb-list a:hover { color: var(--ink); }
.xb-list li[aria-current] { color: var(--ink); }
.xb-sep { color: var(--line); }

/* -------------------------------------------------------- shared heads --- */
.x-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.x-head .label { margin-bottom: 16px; }
.x-head .h-lg { max-width: 18ch; }
.x-lede { margin-top: 20px; max-width: 42ch; color: var(--ink-body); }

.x-split {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1fr);
}
.x-split-a .h-lg { max-width: 15ch; }
.x-split-a .label { margin-bottom: 16px; }
.x-split-b > .body-copy + .body-copy { margin-top: 18px; }
@media (min-width: 900px) {
  .x-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; }
}

/* --------------------------------------------------------------- hero --- */
.x-hero-grid { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .x-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
}
.x-hero-copy .label { margin-bottom: 18px; }
.x-hero-h1 { max-width: 16ch; }
.x-hero-lede { margin-top: 24px; max-width: 42ch; color: var(--ink-body); }
.x-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.x-hero-note { margin-top: 20px; color: var(--ink-muted); }
.x-panel-body { padding: 0 !important; }
.x-panel-note { margin-top: 14px; color: var(--ink-muted); }
.x-rows-head { padding: 20px 18px 0; }

.x-rows { border-top: 1px solid var(--line); margin-top: 14px; }
.x-rows .row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-hair);
}
.x-rows .row:last-child { border-bottom: 0; }
.row-state {
  width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--line); margin-top: 7px; flex: none;
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.row-state.is-active { background: var(--accent); }
.x-row-text { display: block; }
.x-row-name { display: block; font-size: 13.5px; color: var(--ink); }
.x-row-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-muted); }

/* ---------------------------------------------------------- vocabulary --- */
.x-terms { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.x-terms .label { margin-bottom: 14px; }
.x-term-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-hair);
}
.x-term-list li:last-child { border-bottom: 0; }
.x-term { font-size: 14px; color: var(--ink); }
.x-term-map {
  margin-left: auto; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
}

/* ------------------------------------------------------------ problems --- */
.x-prob-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-prob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-prob-grid { grid-template-columns: repeat(3, 1fr); } }
.x-prob { background: var(--surface); padding: clamp(22px, 2.4vw, 30px); }
.x-prob-title { font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.x-prob-body { margin-top: 12px; font-size: 14px; color: var(--ink-body); max-width: 40ch; }
.x-prob-fix {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body); max-width: 40ch;
}
.x-prob-fix .label, .x-mod-why .label, .x-mod-eg .label {
  display: block; margin-bottom: 6px; color: var(--accent-text);
}

/* ------------------------------------------------------------- modules --- */
.x-mod-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-mod-grid { grid-template-columns: repeat(3, 1fr); } }
.x-mod { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-mod-kicker { color: var(--accent-text); }
.x-mod-title { margin-top: 12px; max-width: 22ch; }
.x-mod-body { margin-top: 14px; font-size: 14px; color: var(--ink-body); max-width: 40ch; }
.x-mod-why, .x-mod-eg {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-hair);
  font-size: 13px; color: var(--ink-body); max-width: 40ch;
}

/* ----------------------------------------------------------- workflows --- */
.x-flow-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .x-flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1250px) { .x-flow-grid { grid-template-columns: repeat(3, 1fr); } }
.x-flow { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-flow-title { max-width: 20ch; }
.x-flow-steps { margin-top: 20px; }
.x-flow-step {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line-hair);
}
.x-flow-step:last-child { border-bottom: 0; }
.x-flow-num { color: var(--accent-text); flex: none; }
.x-flow-text { font-size: 13.5px; color: var(--ink-body); }
.x-flow-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); max-width: 40ch;
}

/* ------------------------------------------------------------------ AI --- */
.x-ai-facts { margin-top: 32px; border-top: 1px solid var(--line); }
.x-ai-facts li {
  padding: 16px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body); max-width: 42ch;
}
.x-ai-facts li:last-child { border-bottom: 0; }
.x-ai-facts .label { display: block; margin-bottom: 5px; color: var(--ink); }
.x-ask li {
  padding: 15px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 14px; color: var(--ink);
}
.x-ask li:last-child { border-bottom: 0; }
.x-ask li::before { content: '“'; color: var(--accent-text); }
.x-ask li::after { content: '”'; color: var(--accent-text); }

/* --------------------------------------------------------- automations --- */
.x-auto-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-auto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-auto-grid { grid-template-columns: repeat(3, 1fr); } }
.x-auto { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-auto-kicker { color: var(--ink-muted); }
.x-auto-trigger { margin-top: 8px; font-size: 16px; font-weight: 300; letter-spacing: -0.01em; max-width: 24ch; }
.x-auto-steps { margin-top: 18px; border-top: 1px solid var(--line-hair); }
.x-auto-steps li {
  position: relative; padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line-hair);
  font-size: 13px; color: var(--ink-body);
}
.x-auto-steps li:last-child { border-bottom: 0; }
.x-auto-steps li::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--accent-a40);
}

/* -------------------------------------------------------- intelligence --- */
.x-int-grid { display: grid; gap: 40px 48px; }
@media (min-width: 700px) { .x-int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-int-grid { grid-template-columns: repeat(3, 1fr); } }
.x-int-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.x-int-list li {
  padding: 9px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body);
}
.x-int-list li:last-child { border-bottom: 0; }
.x-int-note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-muted); }

/* ---------------------------------------------------------------- roles --- */
.x-role-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .x-role-grid { grid-template-columns: repeat(5, 1fr); } }
.x-role { background: var(--surface); padding: clamp(22px, 2.4vw, 28px); }
.x-role-name { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.x-role-q { margin-top: 14px; font-size: 16px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); }
.x-role-focus { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-hair); font-size: 13px; color: var(--ink-body); }

/* ------------------------------------------------------------ use cases --- */
.x-uc-grid { display: grid; gap: 32px 48px; }
@media (min-width: 700px) { .x-uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-uc-grid { grid-template-columns: repeat(3, 1fr); } }
.x-uc { padding-top: 20px; border-top: 1px solid var(--line); }
.x-uc-body { margin-top: 12px; font-size: 13.5px; color: var(--ink-body); max-width: 40ch; }

/* ------------------------------------------------------------ migration --- */
.x-src { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.x-src-note { margin-top: 24px; color: var(--ink-muted); max-width: 46ch; }

/* ------------------------------------------------------------------ FAQ --- */
.x-faq { border-top: 1px solid var(--line); max-width: 900px; }
.x-faq-item { border-bottom: 1px solid var(--line); }
.x-faq-q {
  display: flex; align-items: flex-start; gap: 16px; justify-content: space-between;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink);
}
.x-faq-q::-webkit-details-marker { display: none; }
.x-faq-q::after {
  content: ''; flex: none; margin-top: 8px;
  width: 9px; height: 9px;
  border-right: 1px solid var(--ink-muted); border-bottom: 1px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 240ms cubic-bezier(.22,.61,.36,1);
}
.x-faq-item[open] .x-faq-q::after { transform: rotate(225deg); }
.x-faq-a { padding-bottom: 24px; font-size: 14px; color: var(--ink-body); max-width: 62ch; }

/* -------------------------------------------------------------- related --- */
.x-rel-h { margin-top: 14px; max-width: 20ch; }
.x-rel-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
@media (min-width: 640px) { .x-rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x-rel-grid { grid-template-columns: repeat(3, 1fr); } }
.x-rel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); padding: 20px clamp(18px, 2vw, 24px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-rel a:hover { background: var(--base-alt); }
.x-rel-name { font-size: 15px; color: var(--ink); }
.x-rel-ind { color: var(--ink-muted); }
.x-rel-up { margin-top: 28px; font-size: 13.5px; color: var(--ink-muted); }
.x-rel-up a { color: var(--accent-text); }
.x-rel-up a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ hub + index --- */
.x-hub-hero { padding-block: clamp(56px, 6vw, 84px) clamp(64px, 7vw, 96px); }
.x-hub-h1, .x-ind-h1 { max-width: 18ch; margin-top: 18px; }
.x-hub-lede, .x-ind-lede { margin-top: 24px; max-width: 46ch; color: var(--ink-body); }

.x-search { margin-top: 44px; max-width: 560px; }
.x-search .label { display: block; margin-bottom: 12px; }
.x-search-input {
  width: 100%; padding: 15px 18px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control);
  transition: border-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-search-input::placeholder { color: var(--ink-muted); }
.x-search-input:focus { border-color: var(--accent); }
.x-search-note { margin-top: 12px; color: var(--ink-muted); }

.x-ind-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-ind-grid { grid-template-columns: repeat(3, 1fr); } }
.x-ind-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); padding: clamp(24px, 2.6vw, 32px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-ind-card a:hover { background: var(--base-alt); }
.x-ind-name { font-size: 18px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.x-ind-line { margin-top: 12px; font-size: 13.5px; color: var(--ink-body); max-width: 34ch; }
.x-ind-count { margin-top: auto; padding-top: 20px; color: var(--ink-muted); }

.x-all-group { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.x-all-group:first-of-type { margin-top: 0; }
.x-all-head { margin-bottom: 16px; }
.x-all-head a { color: var(--accent-text); }
.x-all-head a:hover { text-decoration: underline; }
.x-all-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.x-all-item a, .x-all-item span {
  display: inline-block; padding: 7px 13px;
  font-size: 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color 240ms cubic-bezier(.22,.61,.36,1), color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-all-item a:hover { border-color: var(--accent); color: var(--accent-text); }
.x-all-item--soon span { color: var(--ink-muted); border-style: dashed; background: transparent; }

.x-pending { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.x-pending .label { margin-bottom: 12px; }
.x-pending-list { font-size: 13.5px; color: var(--ink-body); max-width: 70ch; }
.x-pending .caption { margin-top: 14px; color: var(--ink-muted); }
.x-pending .caption a { color: var(--accent-text); }

.x-biz-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .x-biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x-biz-grid { grid-template-columns: repeat(3, 1fr); } }
.x-biz a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); padding: 22px clamp(18px, 2vw, 24px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-biz a:hover { background: var(--base-alt); }
.x-biz-name { font-size: 15px; }
.x-biz-go { color: var(--accent-text); }

.x-how-link { margin-top: 26px; font-size: 14px; }
.x-how-link a { color: var(--accent-text); }
.x-how-link a:hover { text-decoration: underline; }

/* Explore pages set long, sentence-length headlines. Scale them down from the
   marketing display sizes so they wrap in 3-4 even lines, not 5 ragged ones. */
.x-hero-h1 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.1; letter-spacing: -0.028em; }
main .h-lg { font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: -0.022em; }

/* =============================================================================
   BUSINESS PAGE, SCHEMA 2 (.bz-*) AND MOCK UI (.xs-*)

   The mock UIs are real DOM in the same panel chrome as the product. Tags use
   one accent for state: a flagged item is accent, a resolved one is quiet.
   Entrances reuse the site-wide rise, started by .is-in from motion.js.
   ========================================================================== */

/* --------------------------------------------------------- hero extras --- */
.bz-oneline {
  margin-top: 28px; padding: 4px 0 4px 18px; max-width: 46ch;
  border-left: 2px solid var(--accent);
}
.bz-oneline .label { color: var(--accent-text); margin-bottom: 6px; }
.bz-oneline p:last-child { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.bz-stack-note { margin-top: 16px; color: var(--ink-muted); max-width: 52ch; }

/* ------------------------------------------------------------- problems --- */
.bz-pains { border-top: 1px solid var(--line); }
.bz-pain { padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.bz-pain-top { display: flex; align-items: baseline; gap: 14px; }
.bz-pain-n { font-size: 12px; color: var(--accent-text); letter-spacing: 0.08em; }
.bz-pain-top .label { color: var(--ink-muted); }
.bz-pain-title { margin-top: 10px; max-width: 34ch; }
.bz-pain-cols { display: grid; gap: 22px; margin-top: 22px; }
.bz-pain-cols .label { display: block; margin-bottom: 8px; color: var(--ink-muted); }
.bz-pain-cols p:not(.label) { font-size: 14px; color: var(--ink-body); max-width: 46ch; }
.bz-pain-fix { padding: 16px 18px; background: var(--accent-a08); border-radius: var(--r-inner); }
.bz-pain-fix .label { color: var(--accent-text); }
.bz-pain-fix p:not(.label) { color: var(--ink); }
.bz-pain-go { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent-text); }
.bz-pain-go::after { content: ' \2192'; }
.bz-pain-go:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .bz-pain-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; }
}

/* ---------------------------------------------------------------- facts --- */
.bz-facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .bz-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bz-facts { grid-template-columns: repeat(4, 1fr); } }
.bz-fact { background: var(--surface); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; }
.bz-fact-v { font-size: clamp(34px, 3.6vw, 46px); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.bz-fact-t { margin-top: 14px; font-size: 14px; color: var(--ink-body); }
.bz-fact-s { margin-top: auto; padding-top: 18px; font-size: 12px; }
.bz-fact-s a { color: var(--accent-text); }
.bz-fact-s a:hover, .bz-rule-s a:hover, .bz-sources a:hover { text-decoration: underline; }
.bz-facts-note { margin-top: 24px; color: var(--ink-muted); max-width: 70ch; }

/* -------------------------------------------------------------- screens --- */
.bz-screens { display: grid; gap: clamp(56px, 7vw, 96px); }
.bz-screen { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 90px; }
.bz-screen-h { margin-top: 14px; max-width: 18ch; }
.bz-screen-copy .body-copy { margin-top: 16px; max-width: 42ch; }
.bz-solves { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bz-solves .label { color: var(--accent-text); margin-bottom: 10px; display: block; }
.bz-solves li { font-size: 13.5px; color: var(--ink-body); padding: 4px 0; }
.bz-solves li span { color: var(--ink-muted); margin-right: 6px; }
@media (min-width: 960px) {
  .bz-screen { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
  .bz-screen:nth-child(even) .bz-screen-copy { order: 2; }
}

/* ------------------------------------------------------------------ day --- */
.bz-day { border-top: 1px solid var(--line); }
.bz-day-row { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bz-day-head { display: none; padding: 12px 0; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.bz-day-t { font-size: 15px; color: var(--ink); }
.bz-day-b, .bz-day-a { font-size: 14px; color: var(--ink-body); max-width: 46ch; }
.bz-day-a { color: var(--ink); }
.bz-day-l { display: block; margin-bottom: 4px; color: var(--ink-muted); }
.bz-day-a .bz-day-l { color: var(--accent-text); }
@media (min-width: 860px) {
  .bz-day-row { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .bz-day-head { display: grid; }
  .bz-day-l { display: none; }
}

/* ------------------------------------------------------------------ how --- */
.bz-phases { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .bz-phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .bz-phases { grid-template-columns: repeat(4, 1fr); } }
.bz-phase { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.bz-phase-w { color: var(--accent-text); }
.bz-phase-n { margin-top: 10px; }
.bz-phase dl > div { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-hair); }
.bz-phase dt { margin-bottom: 6px; color: var(--ink-muted); }
.bz-phase dd { margin: 0; font-size: 13.5px; color: var(--ink-body); }
.bz-need { display: grid; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.bz-need .label { display: block; margin-bottom: 12px; color: var(--ink-muted); }
.bz-need li { padding: 8px 0; border-bottom: 1px solid var(--line-hair); font-size: 14px; color: var(--ink-body); }
.bz-need li:last-child { border-bottom: 0; }
.bz-need-l { margin-top: 22px; }
@media (min-width: 860px) { .bz-need { grid-template-columns: 1.2fr 1fr; gap: 80px; } }

/* ------------------------------------------------------------------- AI --- */
.bz-ai-stack { display: grid; gap: 18px; }

/* ---------------------------------------------------------------- rules --- */
.bz-rules { border-top: 1px solid var(--line); }
.bz-rule { display: grid; gap: 14px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.bz-rule .label { display: block; margin-bottom: 6px; color: var(--ink-muted); }
.bz-rule p:not(.label) { font-size: 14px; color: var(--ink-body); max-width: 52ch; }
.bz-rule-s { margin-top: 8px; font-size: 12px; }
.bz-rule-s a, .bz-sources a { color: var(--accent-text); }
@media (min-width: 900px) {
  .bz-rule { grid-template-columns: 0.8fr 1fr 1fr; gap: 40px; }
}

/* ----------------------------------------------------------- alongside --- */
.bz-two { display: grid; gap: 28px; }
.bz-two .label { display: block; margin-bottom: 10px; color: var(--ink-muted); }
.bz-two li { padding: 9px 0 9px 18px; position: relative; border-bottom: 1px solid var(--line-hair); font-size: 14px; color: var(--ink-body); }
.bz-two li:last-child { border-bottom: 0; }
.bz-two li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--accent-a40); }
.bz-two > div:last-child li::before { background: var(--line); }
.bz-mig { margin-top: 28px; max-width: 56ch; }
@media (min-width: 700px) { .bz-two { grid-template-columns: 1fr 1fr; gap: 48px; } }

.bz-sources { margin-top: 20px; padding-left: 20px; list-style: decimal; columns: 1; font-size: 13px; color: var(--ink-muted); }
.bz-sources li { padding: 4px 0; break-inside: avoid; }
@media (min-width: 800px) { .bz-sources { columns: 2; column-gap: 48px; } }

/* =========================================================== MOCK UI (xs) === */
.xs-body { display: grid; gap: 18px; padding: clamp(16px, 2vw, 22px); min-width: 0; }
.xs-title { color: var(--ink-muted); }

.xs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.xs-kpi { background: var(--surface); padding: 14px 14px 13px; }
.xs-kpi-v { margin-top: 4px; font-size: 24px; line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; }
.xs-kpi-n { margin-top: 5px; font-size: 11.5px; color: var(--ink-muted); }

.xs-tag {
  display: inline-flex; align-items: center; height: 22px; padding-inline: 9px; flex: none;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: 11px; font-weight: 500; white-space: nowrap;
  background: var(--base-alt); color: var(--ink-muted);
  transition: background-color 320ms cubic-bezier(.22,.61,.36,1), color 320ms cubic-bezier(.22,.61,.36,1), border-color 320ms cubic-bezier(.22,.61,.36,1);
}
.xs-tag--flag { background: var(--accent-a08); border-color: var(--accent-a24); color: var(--accent-text); }
.xs-tag--late { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.xs-tag--info { background: transparent; color: var(--ink); }
.xs-tag--ok, .xs-tag--muted { background: var(--base-alt); color: var(--ink-muted); }

.xs-scroll { overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 2vw, 22px)); padding-inline: clamp(16px, 2vw, 22px); }
.xs-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 12.5px; }
.xs-table th { padding: 0 12px 9px 0; text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.xs-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-hair); color: var(--ink); vertical-align: middle; }
.xs-table tr:last-child td { border-bottom: 0; }

.xs-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-hair); }
.xs-list li:last-child { border-bottom: 0; }
.xs-list-t { display: block; min-width: 0; }
.xs-list-n { display: block; font-size: 13.5px; color: var(--ink); }
.xs-list-m { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-muted); }

.xs-bars li { display: grid; grid-template-columns: minmax(70px, 0.9fr) minmax(0, 2fr) auto; align-items: center; gap: 12px; padding: 7px 0; font-size: 12.5px; }
.xs-bar-l { color: var(--ink-body); }
.xs-bar { height: 8px; border-radius: var(--r-bar); background: var(--base-alt); overflow: hidden; }
.xs-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: var(--r-bar); transform-origin: left; }
.xs-bar i.is-muted { background: var(--line); }
.xs-bar-v { min-width: 44px; text-align: right; color: var(--ink); }

.xs-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.xs-col-h { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-muted); }
.xs-col ul { display: grid; gap: 8px; }
.xs-card { display: grid; gap: 6px; justify-items: start; padding: 11px 12px; background: var(--base); border: 1px solid var(--line); border-radius: var(--r-control); }
.xs-card-t { font-size: 12.5px; color: var(--ink); }
.xs-card-m { font-size: 11px; color: var(--ink-muted); }

.xs-record-h { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.xs-record-t { font-size: 17px; font-weight: 300; letter-spacing: -0.015em; }
.xs-record-s { margin-top: 3px; font-size: 12px; color: var(--ink-muted); }
.xs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 18px; margin: 14px 0 0; }
.xs-fields dt { margin-bottom: 3px; color: var(--ink-muted); }
.xs-fields dd { margin: 0; font-size: 13px; color: var(--ink); }
.xs-time { margin-top: 16px; padding-left: 14px; border-left: 1px solid var(--line); }
.xs-time li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--ink-body); }
.xs-time-w { color: var(--ink-muted); font-size: 11.5px; }

.xs-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-hair); font-size: 13px; color: var(--ink); }
.xs-checks li:last-child { border-bottom: 0; }
.xs-checks i { flex: none; width: 15px; height: 15px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); }
.xs-checks .is-done i { background: var(--accent); border-color: var(--accent); }
.xs-checks .is-done span { color: var(--ink-muted); }
.xs-checks em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink-muted); }

.xs-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--accent-a08); border: 1px solid var(--accent-a24); border-radius: var(--r-control); }
.xs-alert i { flex: none; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); }
.xs-alert p { font-size: 13px; color: var(--ink); flex: 1; }

.xs-ask { display: grid; gap: 14px; }
.xs-q { justify-self: end; max-width: 92%; padding: 11px 15px; border-radius: var(--r-inner) var(--r-inner) 4px var(--r-inner); background: var(--base-alt); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.xs-a { max-width: 96%; padding: 14px 16px; border-radius: var(--r-inner) var(--r-inner) var(--r-inner) 4px; border: 1px solid var(--accent-a24); background: var(--accent-a08); }
.xs-a > p { font-size: 13.5px; color: var(--ink); }
.xs-a ul { margin-top: 10px; border-top: 1px solid var(--accent-a24); }
.xs-a li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--accent-a14); font-size: 12.5px; color: var(--ink-body); }
.xs-a li:last-child { border-bottom: 0; }
.xs-a-act { margin-top: 10px; font-size: 12px; color: var(--accent-text); }

/* Playback: rows rise in sequence and bars draw once the panel has landed. */
@keyframes xs-rise { from { opacity: 0; transform: translateY(6px); } }
.is-in .xs-seq > *, .is-in .xs-seq li { animation: xs-rise 460ms cubic-bezier(.22,.61,.36,1) backwards; animation-delay: calc(var(--i, 0) * 80ms + 260ms); }
.xs-bar i { transform: scaleX(0); }
.is-in .xs-bar i { transform: scaleX(1); transition: transform 900ms cubic-bezier(.22,.61,.36,1) calc(var(--i, 0) * 80ms + 360ms); }
@media (prefers-reduced-motion: reduce) {
  .is-in .xs-seq > *, .is-in .xs-seq li { animation: none; }
  .xs-bar i, .is-in .xs-bar i { transform: none; transition: none; }
  .xs-tag { transition: none; }
}

/* =============================================================================
   FILM BAND AND PINNED SCREEN WALKTHROUGH
   ========================================================================== */
.bz-film { display: grid; gap: 32px; align-items: center; }
.bz-film-copy .h-md { margin-top: 14px; max-width: 20ch; }
.bz-film-copy .body-copy { margin-top: 16px; max-width: 44ch; }
.bz-film-note { margin-top: 18px; color: var(--ink-muted); max-width: 46ch; }
.bz-film-frame {
  margin: 0; overflow: hidden; background: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--elev-mid);
}
.bz-film-frame video { display: block; width: 100%; height: auto; }
.bz-film--v .bz-film-frame { max-width: 320px; justify-self: center; }
@media (min-width: 900px) {
  .bz-film { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .bz-film--v { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Pinned walkthrough: the screens stack in one sticky stage and the scroll picks
   which one shows. Without JS, or on small screens, they simply stay a list. */
.bz-screens.is-pinned { display: block; }
.bz-pin { position: relative; }
.bz-pin-stage { position: sticky; top: 84px; height: var(--stage-h); display: grid; align-items: center; }
.bz-screens.is-pinned .bz-screen {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 480ms cubic-bezier(.22,.61,.36,1), transform 480ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 480ms;
}
.bz-screens.is-pinned .bz-screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bz-screens.is-pinned .bz-screen .bz-screen-copy { order: 0; opacity: 1; transform: none; }
.bz-pin-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.bz-pin-count { margin-right: 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-muted); }
.bz-pin-dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill); }
.bz-pin-dot i {
  width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--line);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1), transform 240ms cubic-bezier(.22,.61,.36,1);
}
.bz-pin-dot:hover i { background: var(--ink-muted); }
.bz-pin-dot.is-on i { background: var(--accent); transform: scale(1.5); }
@media (prefers-reduced-motion: reduce) {
  .bz-screens.is-pinned .bz-screen { transition: none; }
}

/* ------------------------------------------------------- demo request --- */
.x-hero-offer { margin-top: 20px; max-width: 52ch; color: var(--ink); }
.x-hero-offer + .x-hero-note { margin-top: 8px; }

.dm-grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1024px) { .dm-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }
.dm-h1 { max-width: 14ch; }
.dm-lede { margin-top: 24px; max-width: 40ch; color: var(--ink); }
.dm-why { margin-top: 16px; max-width: 46ch; color: var(--ink-body); }

.dm-steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: dm; border-top: 1px solid var(--line); }
.dm-step { counter-increment: dm; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dm-step::before { content: counter(dm); grid-row: span 2; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--accent-text); padding-top: 2px; }
.dm-step-title { margin: 0; font-weight: 500; color: var(--ink); }
.dm-step-body { margin: 6px 0 0; color: var(--ink-body); max-width: 52ch; }

.dm-form {
  display: grid; gap: 22px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,17,21,0.04), 0 18px 48px -24px rgba(10,60,140,0.18);
}
.dm-form-title { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.dm-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .dm-row { grid-template-columns: 1fr 1fr; } }
.dm-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.dm-field > label, .dm-field > legend { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 0; }
fieldset.dm-field > legend { margin-bottom: 10px; }
.dm-field input[type="text"], .dm-field select, .dm-field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--base, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-control);
  transition: border-color 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1);
}
.dm-field textarea { resize: vertical; min-height: 104px; }
.dm-field ::placeholder { color: var(--ink-muted); }
.dm-field input:focus-visible, .dm-field select:focus-visible, .dm-field textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a24);
}
.dm-tried :invalid:not(fieldset) { border-color: #d70015; }

.dm-checks { display: grid; gap: 8px; }
@media (min-width: 640px) { .dm-checks { grid-template-columns: 1fr 1fr; } }
.dm-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-control);
  font-size: 14px; line-height: 1.35; color: var(--ink); cursor: pointer;
  transition: border-color 200ms cubic-bezier(.22,.61,.36,1), background-color 200ms cubic-bezier(.22,.61,.36,1);
}
.dm-check:hover { border-color: var(--ink-muted); }
.dm-check:has(input:checked) { border-color: var(--accent); background: var(--accent-a08); }
.dm-check:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-a24); }
.dm-check input { margin: 2px 0 0; accent-color: var(--accent); flex: none; width: 16px; height: 16px; }

.dm-error { margin: 0; font-size: 14px; color: #d70015; }
[data-theme="dark"] .dm-error, [data-theme="dark"] .dm-tried :invalid:not(fieldset) { color: #ff6961; border-color: #ff6961; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dm-actions .btn:active { transform: scale(0.98); }
.dm-note { margin: 0; color: var(--ink-muted); }
