/* store.css — BQT-Store. Light theme on the BQT-Mobile-UI tokens
   (BQT-Products/BQT-Mobile-UI/tokens/tokens.css), the same look as the platform web console and apps:
   light ground, white surfaces, navy ink and headings, gold #f1b621 as a fill with navy text on it,
   and the darkened gold roles (accent-text, accent-border) wherever gold has to read on white.
   The values below are a copy of the roles this store uses, under the same names; no other hex
   value appears outside this block. Inter (SIL OFL 1.1, assets/fonts/OFL.txt) as in BQT-Mobile-UI. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  color-scheme: light;
  --bq-navy: #0d1b2a;
  --bq-gold: #f1b621;
  --bq-bg: #eef2f8;
  --bq-surface: #f9fafd;
  --bq-surface-raised: #ffffff;
  --bq-surface-sunken: #e4e9f2;
  --bq-border: #d5dded;
  --bq-border-strong: #76839c;
  --bq-focus-ring: #a87e14;
  --bq-ink: #0d1b2a;
  --bq-ink-secondary: #223349;
  --bq-ink-muted: #55647c;
  --bq-ink-subtle: #727f95;
  --bq-accent: #f1b621;
  --bq-accent-hover: #d69f16;
  --bq-accent-ink: #0d1b2a;
  --bq-accent-text: #7d5f11;
  --bq-accent-border: #a87e14;
  --bq-accent-soft: #fdf3d7;
  --bq-accent-on-soft: #6b4f0e;
  --bq-state-ok: #248f60;
  --bq-state-ok-ink: #1e7750;
  --bq-state-ok-fill: #e7f3ee;
  --bq-state-warning: #b8720a;
  --bq-state-warning-ink: #955c08;
  --bq-state-warning-fill: #f7efe4;
  --bq-state-alarm: #821717;
  --bq-state-alarm-ink: #821717;
  --bq-state-alarm-fill: #f5ecec;
  --bq-state-info: #0559c7;
  --bq-state-info-ink: #0559c7;
  --bq-state-info-fill: #e8f0fa;
  --bq-state-offline: #5f6e84;
  --bq-state-offline-ink: #5b6a7f;
  --bq-state-offline-fill: #edeff1;
  --bq-shadow-1: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.04);
  --bq-shadow-2: 0 6px 16px rgba(13, 27, 42, 0.10);
  --bq-shadow-3: 0 16px 32px rgba(13, 27, 42, 0.14);
  --bq-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bq-radius-sm: 8px;
  --bq-radius-md: 12px;
  --bq-radius-pill: 999px;
  --radius: var(--bq-radius-md);
  --gutter: 16px;
  /* A gold fill is 1.63:1 against the light ground, so a gold button keeps a darker gold edge
     (inset, so the box size does not change), as .bq-btn does in the web console. */
  --bq-accent-edge: inset 0 0 0 1px var(--bq-accent-border);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bq-bg);
  color: var(--bq-ink);
  font: 15px/1.55 var(--bq-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--bq-accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--bq-ink); }
h1 { font-size: clamp(26px, 4.2vw, 40px); }
h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 8px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--bq-ink-muted); }
.faint { color: var(--bq-ink-muted); }
.small { font-size: 13px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header / footer ---- */
.site-header { border-bottom: 1px solid var(--bq-border); background: var(--bq-surface-raised); box-shadow: var(--bq-shadow-1); position: sticky; top: 0; z-index: 10; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bq-ink); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--bq-accent); color: var(--bq-accent-ink); box-shadow: var(--bq-accent-edge); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.brand small { color: var(--bq-ink-muted); font-weight: 500; margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--bq-ink-secondary); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.nav a:hover { background: var(--bq-surface-sunken); color: var(--bq-ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); font-weight: 600; text-decoration: none; }
.nav a.btn-primary { color: var(--bq-accent-ink); }
.nav a.btn-primary:hover { background: var(--bq-accent-hover); }
.cart-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--bq-accent); color: var(--bq-accent-ink); box-shadow: var(--bq-accent-edge); font-size: 12px; font-weight: 700; text-align: center; }
.site-footer { border-top: 1px solid var(--bq-border); margin-top: 48px; padding: 24px 0 32px; color: var(--bq-ink-muted); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--bq-ink); }
html.embed .site-footer, html.embed .brand small { display: none; }
html.embed .site-header { position: static; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--bq-border-strong); background: var(--bq-surface-raised); color: var(--bq-ink-secondary); font: 600 14px/1 var(--bq-font-sans); cursor: pointer; text-align: center; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { text-decoration: none; border-color: var(--bq-accent-border); color: var(--bq-accent-text); }
.btn-primary { background: var(--bq-accent); border-color: var(--bq-accent-border); color: var(--bq-accent-ink); }
.btn-primary:hover { background: var(--bq-accent-hover); border-color: var(--bq-accent-border); color: var(--bq-accent-ink); }
.btn-ghost { background: var(--bq-surface-raised); border-color: var(--bq-accent-border); color: var(--bq-accent-text); }
.btn-ghost:hover { background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .nav a:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }

/* ---- chips ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--bq-border); background: var(--bq-surface-raised); color: var(--bq-ink-muted); white-space: nowrap; }
.chip-pilot { border-color: var(--bq-accent-border); background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); }
.chip-rnd { border-color: var(--bq-state-offline); background: var(--bq-state-offline-fill); color: var(--bq-state-offline-ink); }
.chip-tp { border-color: var(--bq-state-info); background: var(--bq-state-info-fill); color: var(--bq-state-info-ink); }
.chip-ok { border-color: var(--bq-state-ok); background: var(--bq-state-ok-fill); color: var(--bq-state-ok-ink); }
.chip-system { background: var(--bq-surface-raised); color: var(--bq-ink-secondary); border-color: var(--bq-border-strong); font-weight: 500; }
.chip-system:hover { border-color: var(--bq-accent-border); background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- hero / notices ---- */
.hero { padding: 40px 0 16px; }
.eyebrow { color: var(--bq-accent-text); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.lede { font-size: 17px; color: var(--bq-ink-muted); max-width: 760px; }
.notice { border: 1px solid var(--bq-border); border-left: 4px solid var(--bq-accent); background: var(--bq-surface-raised); color: var(--bq-ink-secondary); border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: 14px; }
.notice.warn { border-left-color: var(--bq-state-warning); background: var(--bq-state-warning-fill); }
.notice.error { border-left-color: var(--bq-state-alarm); background: var(--bq-state-alarm-fill); }
.notice.ok { border-left-color: var(--bq-state-ok); background: var(--bq-state-ok-fill); }
.notice strong { color: var(--bq-ink); }

/* ---- sections / cards ---- */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); box-shadow: var(--bq-shadow-1); padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 a { color: var(--bq-ink); }
.card .system { color: var(--bq-accent-text); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card .devices { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--bq-ink-muted); }
.card .devices li { padding: 2px 0; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card.featured { border-color: var(--bq-accent-border); box-shadow: var(--bq-accent-edge), var(--bq-shadow-1); }
.panel { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: var(--radius); padding: 18px; }

/* ---- rows (devices, modules, cart lines) ---- */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 8px 16px; align-items: center; }
.row .title { font-weight: 600; }
.row .sub { color: var(--bq-ink-muted); font-size: 13px; }
.row .end { justify-self: end; text-align: right; }
.price { font-weight: 600; white-space: nowrap; }
.price.on-request { color: var(--bq-ink-muted); font-weight: 500; }

/* ---- kit page layout ---- */
.kit-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-top: 28px; }
.sticky-box { position: sticky; top: 80px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--bq-ink-muted); }
.kv dd { margin: 0; }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 4px 0; }
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tier h3 { font-size: 20px; }
.tier .unit { color: var(--bq-ink-muted); font-size: 13px; }
.tier.selected { border-color: var(--bq-accent-border); box-shadow: var(--bq-accent-edge), var(--bq-shadow-1); }
.split { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
details.detail { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: 10px; padding: 12px 14px; }
details.detail summary { cursor: pointer; color: var(--bq-ink-muted); }
details.detail pre, .order-json { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--bq-ink-secondary); margin: 10px 0 0; }
.demo-note { font-size: 13px; color: var(--bq-ink-muted); margin: 0 0 10px; }

/* ---- forms ---- */
form .fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--bq-ink-muted); }
input, select, textarea { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--bq-border-strong); background: var(--bq-surface-raised); color: var(--bq-ink); font: 15px var(--bq-font-sans); }
input::placeholder, textarea::placeholder { color: var(--bq-ink-subtle); }
input:focus, select:focus, textarea:focus { border-color: var(--bq-accent-border); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bq-navy); }
textarea { min-height: 90px; resize: vertical; }
.qty { width: 76px; min-height: 36px; }
.err { color: var(--bq-state-alarm-ink); font-size: 12px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--bq-ink); }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .kit-head { grid-template-columns: 1fr; }
  .sticky-box { position: static; }
  .tiers, .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .row { grid-template-columns: 1fr; }
  .row .end { justify-self: start; text-align: left; }
  form .fields { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 8px; }
  .hero { padding-top: 24px; }
  .actions .btn { flex: 1 1 auto; }
}

/* Reference values list on a kit page (js/page-kit.js) */
.ref-values li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.ref-values strong { color: var(--bq-ink); }
/* ---- SourceTip (js/sourcetip.js, copied from the Demo Lab): the (i) next to a sourced value ---- */
.bq-tip-wrap { display: inline; position: static; }
.bq-tip-btn {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 24px; height: 24px; margin: -4px 0 -4px 2px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bq-ink-muted); cursor: pointer; font: inherit; line-height: 1;
  text-transform: none; letter-spacing: 0;
}
.bq-tip-btn span {
  display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid currentColor; font: italic 700 10px/1 Georgia, "Times New Roman", serif;
}
.bq-tip-btn:hover, .bq-tip-btn[aria-expanded="true"] { color: var(--bq-accent-text); }
.bq-tip-btn:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 1px; color: var(--bq-accent-text); }
.bq-tip {
  position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 5px;
  width: max-content; max-width: min(320px, calc(100vw - 16px)); box-sizing: border-box;
  padding: 10px 12px; border-radius: 10px; background: var(--bq-surface-raised); color: var(--bq-ink);
  border: 1px solid var(--bq-accent-border); box-shadow: var(--bq-shadow-3);
  font: 400 12px/1.45 var(--bq-font-sans); text-align: left; text-transform: none; letter-spacing: 0; white-space: normal;
}
.bq-tip[hidden] { display: none; }
.bq-tip-head { font-weight: 700; font-size: 12px; color: var(--bq-ink); }
.bq-tip-value { font-size: 15px; font-weight: 700; color: var(--bq-accent-text); font-variant-numeric: tabular-nums; }
.bq-tip-row { color: var(--bq-ink-muted); overflow-wrap: anywhere; }
.bq-tip-row b { color: var(--bq-ink); font-weight: 600; margin-right: 4px; }
.bq-tip-note { color: var(--bq-ink-secondary); }
.bq-tip-link { color: var(--bq-accent-text); font-weight: 600; text-decoration: none; }
.bq-tip-link:hover, .bq-tip-link:focus-visible { text-decoration: underline; outline: none; }
.bq-tip-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bq-tip-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bq-ink-muted); flex: 0 0 auto; }
.bq-tip-status.st-verified { color: var(--bq-state-ok-ink); } .bq-tip-status.st-verified i { background: var(--bq-state-ok); }
.bq-tip-status.st-secondary { color: var(--bq-state-info-ink); } .bq-tip-status.st-secondary i { background: var(--bq-state-info); transform: rotate(45deg); border-radius: 1px; }
.bq-tip-status.st-owner-default { color: var(--bq-ink-muted); } .bq-tip-status.st-owner-default i { background: transparent; border: 1.5px solid var(--bq-ink-muted); }
.bq-tip-status.st-sample { color: var(--bq-state-warning-ink); } .bq-tip-status.st-sample i { background: var(--bq-state-warning); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- "Values and sources" footnote ---- */
.bq-values { font: 400 12px/1.5 var(--bq-font-sans); color: var(--bq-ink-muted); border-top: 1px solid var(--bq-border); padding-top: 10px; }
.bq-values summary { cursor: pointer; color: var(--bq-ink); list-style-position: inside; }
.bq-values summary:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 2px; border-radius: 4px; }
.bq-values-title { font-weight: 700; }
.bq-values-count { color: var(--bq-ink-muted); font-size: 11px; }
.bq-values-lead { margin: 8px 0; }
.bq-values-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bq-values table { border-collapse: collapse; width: 100%; min-width: 760px; }
.bq-values th, .bq-values td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--bq-border); }
.bq-values th { color: var(--bq-ink-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.bq-values td { color: var(--bq-ink-muted); overflow-wrap: anywhere; }
.bq-values td.v { color: var(--bq-ink); font-weight: 600; min-width: 7em; max-width: 16em; font-variant-numeric: tabular-nums; }
.bq-values td .c { color: var(--bq-ink-muted); font-size: 11px; margin-top: 2px; }
.bq-values a { color: var(--bq-accent-text); text-decoration: none; font-weight: 600; }
.bq-values a:hover { text-decoration: underline; }

/* checkout result: reference, sales contact and order summary are plain selectable text */
.selectable { user-select: all; -webkit-user-select: all; }
.contact-line { margin: 12px 0 0; font-size: 14px; }
.contact-line .selectable { color: var(--bq-accent-text); font-weight: 600; }
.order-summary { width: 100%; min-height: 160px; resize: vertical; background: var(--bq-surface); color: var(--bq-ink);
  border: 1px solid var(--bq-border); border-radius: 10px; padding: 10px 12px; margin-top: 6px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }

/* ---- quick-start guides and product sheets (guide.html, sheet.html) ---- */
.guide-head { padding-top: 24px; max-width: 860px; }
.guide-head .actions { margin-top: 4px; }
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; padding-left: 4px; }
.steps li::marker { color: var(--bq-accent-text); font-weight: 700; }
.panel h3 + .list { margin-bottom: 12px; }
.sheet-kv { grid-template-columns: 200px minmax(0, 1fr); }
.sheet-kv dd.unmeasured { color: var(--bq-state-warning-ink); }
@media (max-width: 600px) {
  .sheet-kv { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .no-print, .bq-tip-wrap { display: none !important; }
  body { background: none; color: var(--bq-ink); font-size: 11pt; }
  .panel, .notice, .row, details.detail { background: none; border-color: var(--bq-border-strong); box-shadow: none; }
  .lede, .muted, .kv dt, .row .sub, details.detail pre { color: var(--bq-ink-muted); }
  .notice strong, .chip { color: var(--bq-ink); background: none; }
  a { color: var(--bq-ink); }
  .section { margin-top: 14px; break-inside: avoid; }
}

/* Made to order (2026-11-12): live demo frame, build steps, lead times, add-ons, FAQ. Tokens only. */
.demo-tabs { margin: 0 0 10px; }
.demo-tabs .chip { cursor: pointer; font: inherit; font-size: 13px; }
.demo-tabs .chip[aria-selected="true"] { background: var(--bq-accent); color: var(--bq-accent-ink); border-color: var(--bq-accent-border); }
/* the frame is as tall as the whole demo (ui.js wireDemoFrames sets its height from the demo's own size message);
   the height here is only the fallback until that message arrives, and the frame then scrolls inside, as before */
.demo-frame { position: relative; border: 1px solid var(--bq-border); border-radius: var(--radius); overflow: hidden; background: var(--bq-navy); box-shadow: var(--bq-shadow-2); }
.demo-frame iframe { display: block; width: 100%; height: 740px; border: 0; }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.process li { display: flex; gap: 12px; align-items: flex-start; background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); padding: 16px; box-shadow: var(--bq-shadow-1); }
.process h3 { margin: 0 0 4px; font-size: 16px; }
.process p { margin: 0; color: var(--bq-ink-secondary); }
.process-n { flex: none; width: 30px; height: 30px; border-radius: var(--bq-radius-pill); background: var(--bq-accent); color: var(--bq-accent-ink); box-shadow: var(--bq-accent-edge); display: grid; place-items: center; font-weight: 700; }
.lead-times, .addons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lead, .addon { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); padding: 16px; box-shadow: var(--bq-shadow-1); }
.lead { border-top: 3px solid var(--bq-accent); }
.lead-time { font-size: 22px; font-weight: 700; color: var(--bq-ink); margin: 4px 0 6px; }
.addon h3 { margin: 0 0 6px; font-size: 16px; }
.addon p, .lead p { margin: 0; }
fieldset.addon-pick { border: 1px solid var(--bq-border); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
fieldset.addon-pick legend { padding: 0 6px; font-weight: 600; color: var(--bq-ink); }
.faq { display: grid; gap: 10px; }
.faq details.detail p { margin: 10px 0 0; color: var(--bq-ink-secondary); }
@media (max-width: 600px) {
  .demo-frame iframe { height: 640px; }
}
@media print {
  .demo-frame, .demo-tabs { display: none; }
}

/* Sales site (2026-11-13): one-row header with a phone menu, kit tabs and scrolling chip rows, the "every kit
   includes" tiles, the quote box and its phone bar, the navy closing band, the phone demo card and the quote
   request form. Tokens only. */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 76px; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: 600 14px/1.4 var(--bq-font-sans); color: var(--bq-accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--bq-accent-on-soft); }
.link-btn:focus-visible, summary:focus-visible, button.chip:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 2px; border-radius: 6px; }
.btn-block { width: 100%; }
.crumbs { padding-top: 20px; }
.upper { text-transform: uppercase; }
.hero h1 { max-width: 860px; }
.field .err:empty { display: none; }

/* header: every link on one row; below 820 px the brand, "Quote list (n)" and a menu */
.nav-quote { white-space: nowrap; }
.nav a.btn-primary { margin-left: 6px; }
.nav a.btn-primary[aria-current="page"] { background: var(--bq-accent); color: var(--bq-accent-ink); }
.nav-phone { display: none; }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; width: 42px; height: 38px; border: 1px solid var(--bq-border-strong); border-radius: 8px; color: var(--bq-ink-secondary); display: grid; place-items: center; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
.nav-menu[open] > summary { background: var(--bq-surface-sunken); color: var(--bq-ink); }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 230px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); box-shadow: var(--bq-shadow-3); }
.nav .nav-menu-list a { padding: 11px 12px; font-size: 15px; }
.nav .nav-menu-list a.btn-primary { margin: 6px 0 0; min-height: 44px; }
@media (max-width: 820px) {
  .site-header .bar { flex-wrap: nowrap; gap: 8px; }
  .nav-wide { display: none; }
  .nav-phone { display: flex; flex-wrap: nowrap; gap: 6px; margin-left: auto; width: auto; }
  .nav-phone > .nav-quote { padding: 8px 10px; }
}

/* chip rows used as tabs (kit groups, story picker); on a phone they scroll sideways instead of wrapping */
.kit-tabs, .story-picker { margin: 0 0 14px; }
.kit-tabs .chip, .story-picker .chip { cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; padding: 6px 14px; }
.kit-tabs .chip[aria-selected="true"], .story-picker .chip[aria-selected="true"] { background: var(--bq-accent); color: var(--bq-accent-ink); border-color: var(--bq-accent-border); font-weight: 600; }
.story-picker, .scroll-row { scrollbar-width: thin; }
.story-picker { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.story-picker .chip { flex: none; }
@media (max-width: 640px) {
  .scroll-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; }
  .scroll-row .chip { flex: none; }
}
.story-link { margin: 12px 0 0; font-weight: 600; }

/* home: kit cards, "every kit includes" tiles, the closing band */
.kit-card .foot { min-height: 34px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-top: 3px solid var(--bq-accent); border-radius: var(--radius); padding: 16px; box-shadow: var(--bq-shadow-1); }
.tile h3 { margin: 0 0 4px; font-size: 16px; }
.tile p { margin: 0; }
.plans-line { margin: 16px 0 0; font-weight: 600; }
.plans-line a { font-weight: 500; margin-left: 6px; white-space: nowrap; }
.cta-band { margin-top: 48px; padding: 30px 28px; border-radius: var(--radius); background: var(--bq-navy); color: var(--bq-surface-raised); display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--bq-surface-raised); }
.cta-band .actions { margin: 0; gap: 20px; }
.cta-band .btn-primary { border-color: var(--bq-accent); }
.cta-band .text-link { color: var(--bq-accent); }
.cta-band a:focus-visible { outline-color: var(--bq-accent); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kit-card { padding: 14px; gap: 6px; }
  .kit-card .foot { margin-top: 4px; }
  .tiles { gap: 10px; }
  .tile { padding: 12px; }
  .cta-band { padding: 24px 18px; }
  .cta-band .actions .btn { flex: 0 0 auto; }
}

/* kit and device pages: "You will know", the quote box, the phone bar */
.know, .measures { margin-top: 18px; max-width: 760px; }
.know { padding: 16px 18px; background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-left: 4px solid var(--bq-accent); border-radius: var(--radius); box-shadow: var(--bq-shadow-1); }
.know h2, .measures h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bq-accent-text); }
.know ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.know li { position: relative; padding-left: 28px; font-size: 16px; color: var(--bq-ink-secondary); }
.know li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 13px; height: 7px; border-left: 2.5px solid var(--bq-state-ok); border-bottom: 2.5px solid var(--bq-state-ok); transform: rotate(-45deg); }
.know strong { color: var(--bq-ink); }
.measures .lede { color: var(--bq-ink-secondary); }
.device-detail { margin-top: 10px; }
@media (min-width: 861px) { .kit-head { grid-template-columns: minmax(0, 1fr) 344px; gap: 28px; } }
.quote-box { display: grid; gap: 12px; }
.quote-box > * { margin: 0; min-width: 0; }
.quote-box h3 { font-size: 18px; }
.quote-box > [data-added]:empty { display: none; }
.price-lines { list-style: none; padding: 0; display: grid; gap: 4px; font-weight: 600; }
.price-lines .muted { font-weight: 500; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper label { font-size: 14px; font-weight: 500; color: var(--bq-ink); }
.stepper-ctl { display: inline-flex; align-items: center; gap: 6px; }
.stepper-ctl .btn { width: 38px; min-height: 38px; padding: 0; font-size: 18px; }
.stepper-ctl input { width: 56px; min-height: 38px; padding: 6px 4px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper-ctl input::-webkit-outer-spin-button, .stepper-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quote-box-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.quote-box-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.next-steps { border-top: 1px solid var(--bq-border); padding-top: 12px; }
.next-steps h2, .next-steps h3, .next-steps h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: 0; color: var(--bq-ink); }
.next-steps ol { margin: 0 0 6px; padding-left: 20px; font-size: 14px; color: var(--bq-ink-secondary); }
.next-steps li { margin: 2px 0; }
.next-steps li::marker { color: var(--bq-accent-text); font-weight: 700; }
.next-steps p { margin: 0; }
.prefer-talk a { font-weight: 600; white-space: nowrap; }
.in-kit-split { margin-top: 14px; }
.app-links { margin-top: 8px; }
.plan-status { margin-top: 10px; min-height: 1.4em; }
.tier > .btn { margin-top: auto; }
.addon-list { list-style: none; margin: 0; padding: 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; overflow: hidden; background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); box-shadow: var(--bq-shadow-1); }
.addon-list li { display: grid; gap: 2px; padding: 12px 0; margin-top: -1px; border-top: 1px solid var(--bq-border); }
.ref-details { padding: 16px 18px; box-shadow: var(--bq-shadow-1); }
.ref-details > summary { list-style: none; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-left: 24px; color: var(--bq-ink); }
.ref-details > summary::-webkit-details-marker { display: none; }
.ref-details > summary::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border-right: 2px solid var(--bq-ink-muted); border-bottom: 2px solid var(--bq-ink-muted); transform: rotate(-45deg); transition: transform .15s; }
.ref-details[open] > summary::before { transform: rotate(45deg); }
.ref-details[open] > summary { margin-bottom: 12px; }
.ref-details > summary h2 { margin: 0; font-size: clamp(18px, 2.2vw, 22px); }
.ref-values li { display: block; }
.ref-last { white-space: nowrap; }
@media (min-width: 601px) { .row-device { grid-template-columns: minmax(0, 1fr) auto; } }
.third-party-line { margin: 16px 0 0; }
.kit-bar { display: none; }
@media (max-width: 640px) {
  .addon-list { grid-template-columns: 1fr; }
  .kit-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bq-surface-raised); border-top: 1px solid var(--bq-border-strong); box-shadow: var(--bq-shadow-3); }
  .kit-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
  .kit-bar .btn { flex: none; }
  /* room for the bar, so it never sits on the footer */
  html.has-kit-bar body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* live demo: a "Simulated data" chip and "Open full screen" beside the heading, the note above the frame, at every width */
.demo-head-end { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* quote request: summary, form, the send block, and "Request received" */
.request-list { margin-bottom: 16px; }
.request-list h2 { font-size: 18px; margin-top: 0; }
.request-list .list + p { margin-top: 8px; }
.request-list > :last-child { margin-bottom: 0; }
.quote-form .fields { align-items: start; }
fieldset.addon-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; min-width: 0; }
details.site-details { display: block; padding: 12px 14px; }
details.site-details > summary { color: var(--bq-ink); font-size: 14px; font-weight: 600; }
details.site-details[open] > summary { margin-bottom: 12px; }
.send-block { display: block; }
.send-block > .check { padding-top: 2px; }
.send-block > .err { display: block; margin-top: 6px; }
.send-block .actions { margin: 14px 0 0; }
.request-result { margin-top: 16px; }
.request-result:empty { display: none; }
.summary-label { display: block; margin-top: 12px; }
.summary-actions { margin: 8px 0 0; }
.received { padding-top: 28px; max-width: 780px; }
.received .panel { display: grid; gap: 16px; padding: 24px; border-top: 4px solid var(--bq-state-ok); }
.received .panel > * { margin: 0; min-width: 0; }
.received h1:focus { outline: none; }
.ref-line .price { font-size: 20px; }
.received .next-steps { border-top: 1px solid var(--bq-border); padding-top: 16px; }
.received .next-steps h2 { font-size: 16px; }
details.summary-details > summary { font-weight: 600; color: var(--bq-accent-text); }
.check input { flex: none; }
@media (max-width: 760px) { fieldset.addon-pick { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .received .panel { padding: 18px; } }
@media print { .kit-bar, .cta-band { display: none; } }

/* icons (js/icons.js): one per kit card and per "every kit includes" tile */
.ico { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-box { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bq-accent-soft); color: var(--bq-navy); border: 1px solid var(--bq-accent-border); }
.kit-top { display: flex; align-items: center; gap: 12px; }
.kit-top .system { margin: 0; }
.tile .ico-box { margin-bottom: 10px; }
@media (max-width: 640px) { .ico-box { width: 38px; height: 38px; border-radius: 10px; } }

/* "To be certified" (decision N6, 2026-11-18): navy text on a white chip with a dashed navy edge and a gold dot, so it
   reads as a planned step, never as a seal; the planned approvals in plain words under it; a device's own notice */
.chip-cert { border: 1px dashed var(--bq-navy); background: var(--bq-surface-raised); color: var(--bq-navy); }
.chip-cert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bq-gold); box-shadow: inset 0 0 0 1px var(--bq-accent-border); }
.cert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.cert-line { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--bq-ink-muted); }
.row > div > .cert-line { margin-top: 6px; }
.cert-line-k { font-weight: 600; color: var(--bq-ink-secondary); }
.device-notice { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--bq-gold); border-radius: 0 8px 8px 0; background: var(--bq-accent-soft); color: var(--bq-ink); font-size: 14px; }
.row .device-notice { margin-top: 6px; padding: 6px 10px; font-size: 13px; }
.cert-panel { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--bq-border); border-radius: var(--radius); background: var(--bq-surface-raised); }
.cert-panel h2 { margin: 0 0 8px; font-size: 17px; }
.measures .device-notice { margin-bottom: 14px; }
.cert-list { margin: 0 0 8px; }
.cert-panel > p:last-child { margin-bottom: 0; }

/* How it works: animated isometric story (js/story.js). Tokens only. */
.story { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); box-shadow: var(--bq-shadow-1); padding: 16px; }
.story-stage { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr); gap: 16px; align-items: center; }
.story-scene { width: 100%; height: auto; display: block; background: var(--bq-bg); border-radius: var(--bq-radius-sm); }
.story-side { display: grid; gap: 10px; }
.st-card { border: 1px solid var(--bq-border); border-radius: var(--bq-radius-sm); padding: 10px 12px; background: var(--bq-surface); }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-k { font-size: 12px; font-weight: 600; color: var(--bq-ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.st-value { font-size: 30px; font-weight: 700; color: var(--bq-ink); line-height: 1.25; }
.st-unit { font-size: 15px; font-weight: 500; color: var(--bq-ink-muted); }
.st-spark { width: 100%; height: 56px; display: block; }
.st-line { fill: none; stroke: var(--bq-state-info); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.st-line.is-drawn { animation: st-draw 1.4s ease-out; }
.st-limit { stroke: var(--bq-state-warning); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
@keyframes st-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.st-phone { min-height: 104px; }
.st-note { margin-top: 6px; padding: 8px 10px; border-radius: var(--bq-radius-sm); background: var(--bq-state-alarm-fill); color: var(--bq-state-alarm-ink); font-size: 13px; }
.st-done { margin-top: 6px; color: var(--bq-state-ok-ink); font-size: 13px; font-weight: 600; }
.st-report { font-size: 13px; }
.st-note, .st-done, .st-report { opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
.st-dash { opacity: 0.35; transition: opacity 0.5s; }
.story-scene [data-from], .story-scene [data-at] { opacity: 0; transition: opacity 0.5s; }
.s-pill, .s-cap { fill: var(--bq-surface-raised); stroke: var(--bq-border); }
.s-cap { opacity: 0.94; }
.s-link-bg { fill: none; stroke: var(--bq-surface-raised); stroke-width: 4; stroke-linecap: round; opacity: 0.8; }
.s-bang { font: 700 12px var(--bq-font-sans); fill: var(--bq-surface-raised); }
.s-pin { fill: var(--bq-accent); stroke: var(--bq-navy); stroke-width: 2; transition: fill 0.4s; }
.s-pin-halo { fill: var(--bq-surface-raised); }
.s-pin-dot { fill: var(--bq-navy); transition: opacity 0.3s; }
.s-pin-stem { stroke: var(--bq-navy); stroke-width: 2.5; stroke-linecap: round; }
.story[data-step="4"] .s-node-alert .s-pin { fill: var(--bq-state-alarm); }
.story[data-step="5"] .s-node-alert .s-pin { fill: var(--bq-state-ok); }
.story[data-step="4"] .s-node-alert .s-pin-dot, .story[data-step="5"] .s-node-alert .s-pin-dot { opacity: 0; }
.story-art .s-ring { stroke: var(--bq-accent); stroke-width: 2.5; }
.story-art .s-link { stroke: var(--bq-navy); }
.story .is-on { opacity: 1; transform: none; }
.story[data-step="4"] .st-value { color: var(--bq-state-alarm-ink); }
.story[data-step="4"] .st-line { stroke: var(--bq-state-alarm); }
.iso polygon, .iso path, .iso ellipse { stroke: var(--bq-border-strong); stroke-width: 1; stroke-linejoin: round; }
.t-steel .f-t { fill: var(--bq-surface-raised); } .t-steel .f-l { fill: var(--bq-surface-sunken); } .t-steel .f-r { fill: var(--bq-border); }
.t-navy .f-t { fill: var(--bq-ink-secondary); } .t-navy .f-l { fill: var(--bq-navy); } .t-navy .f-r { fill: var(--bq-ink-muted); }
.t-navy polygon, .t-navy path, .t-navy ellipse { stroke: var(--bq-navy); }
.t-gold .f-t { fill: var(--bq-accent); } .t-gold .f-l { fill: var(--bq-accent-hover); } .t-gold .f-r { fill: var(--bq-accent-border); }
.t-gold polygon { stroke: var(--bq-accent-border); }
.s-ground { fill: var(--bq-surface-raised); stroke: var(--bq-border); }
.s-road { fill: var(--bq-surface-sunken); stroke: var(--bq-border); }
.s-crop { fill: var(--bq-state-ok-fill); stroke: var(--bq-state-ok); }
.s-row { stroke: var(--bq-state-ok); stroke-width: 2; }
.s-water { fill: var(--bq-state-info-fill); stroke: var(--bq-state-info); }
.s-door { fill: var(--bq-ink-subtle); stroke: var(--bq-border-strong); }
.s-glass { fill: var(--bq-state-info-fill); stroke: var(--bq-border-strong); stroke-width: 0.8; }
.s-pv { fill: var(--bq-ink-secondary); stroke: var(--bq-surface-raised); stroke-width: 1.5; }
.s-pole { stroke: var(--bq-border-strong); stroke-width: 3; stroke-linecap: round; }
.s-fin { stroke: var(--bq-border-strong); stroke-width: 1.5; }
.s-wheel { fill: var(--bq-navy); }
.s-fan { fill: var(--bq-surface-sunken); stroke: var(--bq-border-strong); } .s-fan-in { fill: var(--bq-ink-muted); }
.s-ring { fill: none; stroke: var(--bq-accent-border); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: s-ring 2.2s ease-out infinite; }
.s-ring-2 { animation-delay: 1.1s; }
@keyframes s-ring { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.s-link { fill: none; stroke: var(--bq-ink-muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.s-pkt { fill: var(--bq-accent); stroke: var(--bq-accent-border); }
.story[data-step="4"] .s-pkt-alert { fill: var(--bq-state-alarm); stroke: var(--bq-state-alarm); }
.s-arrow { fill: var(--bq-border-strong); }
.s-label { font: 500 12px var(--bq-font-sans); fill: var(--bq-ink-muted); }
.s-label-strong { font-weight: 700; fill: var(--bq-ink); }
.s-label-link { fill: var(--bq-accent-text); font-weight: 600; }
.story-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.story-steps button[data-story-step] { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px 6px 6px;
  border-radius: var(--bq-radius-pill); border: 1px solid var(--bq-border-strong); background: var(--bq-surface-raised); color: var(--bq-ink-secondary); cursor: pointer; position: relative; overflow: hidden; }
.story.is-running .story-steps button[aria-current="step"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--bq-accent-border); transform-origin: left; animation: story-progress var(--story-ms, 5200ms) linear both; }
@keyframes story-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-steps button[aria-current="step"] { background: var(--bq-accent-soft); border-color: var(--bq-accent-border); color: var(--bq-accent-on-soft); }
.story-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bq-surface-sunken); font-size: 12px; }
.story-steps button[aria-current="step"] .story-n { background: var(--bq-accent); color: var(--bq-accent-ink); }
.story-play { margin-left: auto; }
.story-caption { margin: 12px 0 10px; font-size: 17px; color: var(--bq-ink); min-height: 3em; }
.story-foot { margin: 12px 0 0; }
/* the devices in the scene: label pills with the live value, hubs, and what each device sends */
.s-tag .s-label { font-size: 11px; }
.s-tag-k { font-weight: 700; fill: var(--bq-ink); }
.s-tag-v { fill: var(--bq-ink-secondary); font-weight: 600; }
.s-tag-hub .s-label, .s-tag-link .s-label { fill: var(--bq-accent-text); font-weight: 600; }
.s-tag-node .s-pill { stroke: var(--bq-border-strong); }
.story[data-step="4"] .s-tag-alert .s-pill { stroke: var(--bq-state-alarm); fill: var(--bq-state-alarm-fill); }
.s-tag-v.is-alarm { fill: var(--bq-state-alarm-ink); }
/* each pin and each gateway the kit sells carries the product's catalogue name and leads to its page */
.s-tag .s-tag-n { font-size: 10px; font-weight: 600; fill: var(--bq-accent-text); }
.s-dev { cursor: pointer; }
.s-dev:hover .s-pill { stroke: var(--bq-accent-border); stroke-width: 1.5; }
.s-dev:hover .s-tag-n { text-decoration: underline; }
.st-dev-name a { color: inherit; text-decoration: none; }
.st-dev-name a:hover { text-decoration: underline; }
.story[data-step="4"] .s-node-alert .s-ring { stroke: var(--bq-state-alarm); }
.story[data-step="4"] .s-link-alert { stroke: var(--bq-state-alarm); stroke-width: 2; }
.s-link-trunk { stroke-width: 2; }
.s-tick { fill: none; stroke: var(--bq-surface-raised); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-wave { fill: none; stroke: var(--bq-accent-border); stroke-width: 2.5; stroke-linecap: round; }
.s-wave-bg, .s-pole-bg { fill: none; stroke: var(--bq-surface-raised); stroke-width: 6; stroke-linecap: round; opacity: 0.9; }
.story-art .s-hub .iso polygon { stroke: var(--bq-surface-raised); stroke-width: 1.5; }
.story-art .s-wave { stroke: var(--bq-accent); }
.story:not([data-step="1"]) .s-wave { animation: s-wave 1.8s ease-in-out infinite; } .s-wave-2 { animation-delay: 0.35s; }
@keyframes s-wave { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.s-mast { stroke-width: 3.5; }
.story-art .s-pole { stroke: var(--bq-navy); }
.s-hub, .s-platform-g { transition: opacity 0.5s; }
.story[data-step="1"] .s-hub, .story[data-step="1"] .s-platform-g { opacity: 0.45; }
.s-glow { fill: var(--bq-accent); }
.story-scene .s-glow.is-on { opacity: 0.35; animation: s-glow 1.6s ease-in-out infinite; }
@keyframes s-glow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.4; } }
.story-sends { margin-top: 14px; }
.story-sends h3 { margin: 0 0 8px; }
.st-devs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.st-dev { border: 1px solid var(--bq-border); border-radius: var(--bq-radius-sm); padding: 10px 12px; background: var(--bq-surface); }
.st-dev-name { font-size: 13px; font-weight: 700; color: var(--bq-ink); margin-bottom: 6px; }
.st-count { font-weight: 600; color: var(--bq-ink-muted); white-space: nowrap; }
.st-dev dl { margin: 0; display: grid; gap: 3px; }
.st-dev dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.st-dev dt { color: var(--bq-ink-muted); }
.st-dev dd { margin: 0; font-weight: 600; color: var(--bq-ink); white-space: nowrap; transition: color 0.4s; }
.st-dev dd.is-alarm { color: var(--bq-state-alarm-ink); }
.chip-alarm { background: var(--bq-state-alarm-fill); color: var(--bq-state-alarm-ink); border-color: var(--bq-state-alarm); }
@media (max-width: 760px) {
  .story-stage { grid-template-columns: 1fr; }
  .story-side { grid-template-columns: 1fr 1fr; }
  .st-report { grid-column: 1 / -1; }
  .story-play { margin-left: 0; }
}
@media (max-width: 440px) { .story-side { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .s-ring, .st-line.is-drawn, .s-wave, .story-scene .s-glow.is-on { animation: none; } .s-packets { display: none; } }
@media print { .story-steps, .s-packets { display: none; } }
