/* theBOSSapp landing — "Drawing Set"
   Paper sheets with a hairline grid; dark "product sheets" where the app is shown. */

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --paper-3: #e2ddcf;
  --ink: #0e132a;
  --ink-2: rgba(14, 19, 42, .72);
  --ink-3: rgba(14, 19, 42, .48);
  --rule: rgba(14, 19, 42, .16);
  --rule-2: rgba(14, 19, 42, .28);
  --grid: rgba(14, 19, 42, .045);
  --signal: #ff5b1f;
  --signal-soft: rgba(255, 91, 31, .12);
  --ok: #1f9d55;
  --gold: #ffb838;

  --night: #0a0e27;
  --night-2: #0e132a;
  --night-3: #1a1f3a;
  --night-line: #1f2745;
  --night-line-2: #2c3542;
  --night-text: #eceef2;
  --night-muted: #9aa0b8;
  --night-dim: #5b627a;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cell: 24px;
}

* { box-sizing: border-box; }
:where(:not(.boss-ui, .boss-ui *)) { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:where(:not(.boss-ui *)):is(img, svg) { display: block; max-width: 100%; }
:where(:not(.boss-ui *)):is(a) { color: inherit; }
:where(:not(.boss-ui *)):is(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--signal); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.signal { color: var(--signal); }

/* ---------- Paper grid ---------- */
.paper-grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 232, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, color .3s;
}
.site-nav.scrolled { border-bottom-color: var(--rule); }
.site-nav.on-night { background: rgba(10, 14, 39, .78); color: var(--night-text); border-bottom-color: var(--night-line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.brand .lt { font-weight: 400; opacity: .55; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; font-size: 14px; }
.nav-links a { text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-sheet { margin-left: auto; display: flex; align-items: center; gap: 10px; opacity: .6; white-space: nowrap; }
.nav-sheet b { font-weight: 500; min-width: 15ch; display: inline-block; }
.nav-sheet .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.on-night .nav-sheet .tick { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 184, 56, .15); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.lbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.lbtn:active { transform: translateY(1px); }
.lbtn-ghost { opacity: .78; }
.lbtn-ghost:hover { opacity: 1; }
.lbtn-ink { background: var(--ink); color: var(--paper); }
.lbtn-ink:hover { box-shadow: 0 6px 18px -8px rgba(14, 19, 42, .6); }
.on-night .lbtn-ink { background: var(--night-text); color: var(--night); }
.lbtn-signal { background: var(--signal); color: #fff; }
.lbtn-signal:hover { box-shadow: 0 8px 22px -8px rgba(255, 91, 31, .7); }
.lbtn-line { border: 1px solid var(--rule-2); }
.lbtn .arr { transition: transform .25s var(--ease); }
.lbtn:hover .arr { transform: translateX(3px); }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--rule-2); border-radius: 8px; }
.on-night .menu-btn { border-color: var(--night-line-2); }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav-demo { display: none; }

/* ---------- Sheet scaffolding ---------- */
.sheet { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sheet-head.single { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--signal); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
:where(:not(.boss-ui *)):is(h1, h2, h3) { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.0; }
h2 .mute, h1 .mute { color: var(--ink-3); }
.night h2 .mute { color: var(--night-dim); }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.lede b { color: var(--ink); font-weight: 500; }
.night .lede { color: var(--night-muted); }
.night .lede b { color: var(--night-text); }
.fig {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; margin-top: 14px;
  border-top: 1px solid var(--rule); color: var(--ink-3);
}
.night .fig { border-color: var(--night-line); color: var(--night-dim); }

/* drawing-frame corner marks + sheet label */
.sheet-label {
  position: absolute; top: 26px; left: 0; right: 0; display: flex; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-3); pointer-events: none;
}
.sheet-label span { display: flex; align-items: center; gap: 10px; }
.sheet-label span:first-child::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--rule-2); border-width: 1px 0 0 1px; margin-top: 8px; }
.sheet-label span:last-child::after { content: ""; width: 12px; height: 12px; border: 1px solid var(--rule-2); border-width: 1px 1px 0 0; margin-top: 8px; }
.night .sheet-label { color: var(--night-dim); }
.night .sheet-label span::before, .night .sheet-label span::after { border-color: var(--night-line-2) !important; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 7vw, 96px) 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero h1 { font-size: clamp(44px, 6vw, 90px); line-height: .96; letter-spacing: -.048em; margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { margin-bottom: 34px; }
.capture {
  display: flex; max-width: 470px; background: #fff; border: 1px solid var(--rule-2); border-radius: 10px; padding: 4px;
  box-shadow: 0 1px 0 rgba(14, 19, 42, .04), 0 12px 30px -18px rgba(14, 19, 42, .35);
  transition: border-color .2s, box-shadow .2s;
}
.capture:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 19, 42, .08); }
.capture input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 14px; font: 15px var(--body); color: var(--ink); }
.capture input::placeholder { color: var(--ink-3); }
.capture .lbtn { height: 44px; padding: 0 18px; font-size: 15px; }
.capture-note { margin-top: 16px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.capture-note span::before { content: "✓ "; color: var(--ok); }
.night .capture { background: var(--night-2); border-color: var(--night-line-2); box-shadow: none; }
.night .capture:focus-within { border-color: var(--night-muted); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.night .capture input { color: var(--night-text); }
.night .capture input::placeholder { color: var(--night-dim); }
.night .capture-note { color: var(--night-dim); }
.thanks { display: none; align-items: center; gap: 10px; height: 52px; font-weight: 500; }
.sent-ok .capture { display: none; }
.sent-ok .thanks { display: flex; }

/* the document stack */
.docs { position: relative; height: 600px; margin-top: 14px; }
.doc {
  position: absolute; background: #fff; border: 1px solid rgba(14, 19, 42, .14); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(14, 19, 42, .05), 0 28px 50px -30px rgba(14, 19, 42, .5);
  padding: 16px 18px; font-size: 12.5px; color: var(--ink-2);
}
.doc-h { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 10px; }
.doc-h b { color: var(--ink); font-weight: 500; }
.doc-t { font: 600 17px/1.2 var(--display); color: var(--ink); letter-spacing: -.015em; margin: 10px 0 3px; }
.doc-s { color: var(--ink-3); font-size: 11.5px; margin-bottom: 10px; }
.doc-r { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(14, 19, 42, .08); padding: 6px 0; }
.doc-r b { font: 500 11.5px var(--mono); color: var(--ink); white-space: nowrap; }
.doc-r.total { border-top: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.doc-r.total b { font-size: 12.5px; }
.pass { color: var(--ok) !important; }
.doc-quote { width: 290px; left: 0; top: 46px; rotate: -2.5deg; }
.doc-docket { width: 262px; left: 47%; top: 8px; rotate: 1.8deg; z-index: 2; }
.doc-report { width: 296px; left: 0; top: 322px; rotate: -1deg; z-index: 3; }
.doc-invoice { width: 280px; right: 0; top: 280px; rotate: 2.2deg; z-index: 4; }
.sig { height: 50px; border: 1px dashed rgba(14, 19, 42, .2); border-radius: 4px; margin-top: 6px; position: relative; background: #fbfaf7; }
.sig svg { position: absolute; inset: 4px 10px 10px; width: calc(100% - 20px); height: calc(100% - 14px); }
.sig path { fill: none; stroke: #1b3a8a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.sig-l { position: absolute; left: 8px; bottom: 3px; font-size: 8.5px; color: var(--ink-3); }
.no-js .sig path, .played .sig path { animation: draw 1.5s var(--sd, 1.2s) var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stamp {
  position: absolute; z-index: 6; right: 40px; top: 486px;
  border: 3px solid var(--ok); color: var(--ok); border-radius: 6px; padding: 5px 14px 4px;
  font: 700 22px/1.05 var(--mono); letter-spacing: .14em; rotate: -9deg;
  background: rgba(255, 255, 255, .55);
}
.stamp small { display: block; font-size: 8.5px; letter-spacing: .08em; font-weight: 500; text-align: center; }
.dimline { position: absolute; left: 0; right: 0; top: -10px; height: 14px; border-left: 1px solid var(--signal); border-right: 1px solid var(--signal); }
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid var(--signal); }
.dimline span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); background: var(--paper); padding: 0 10px; color: var(--signal); font-size: 10.5px; white-space: nowrap; }
.callout { position: absolute; z-index: 7; color: var(--signal); font-size: 10px; white-space: nowrap; padding-left: 16px; }
.callout::before { content: ""; position: absolute; left: 0; top: 3px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--signal); background: var(--paper); }

.titleblock {
  display: grid; grid-template-columns: repeat(6, auto); border: 1px solid var(--rule-2); background: var(--paper);
  color: var(--ink-3); font-size: 10.5px; width: max-content; margin-left: auto;
}
.titleblock div { padding: 8px 14px; border-right: 1px solid var(--rule); }
.titleblock div:nth-child(2n) { color: var(--ink); }
.titleblock div:last-child { border-right: 0; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 0 34px; }
.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--ink-3); text-decoration: none; }
.scroll-cue i { width: 1px; height: 28px; background: var(--rule-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--signal); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 28px; } }

/* ---------- Integrations strip ---------- */
.strip { border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: var(--paper); }
.strip-in { display: grid; grid-template-columns: 210px repeat(5, 1fr); }
.strip-in > div { padding: 22px 14px; border-left: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px var(--display); letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.strip-in > div:first-child { border-left: 0; justify-content: flex-start; padding-left: 0; color: var(--ink-3); font: 500 11px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: normal; }
.strip-in svg { width: 20px; height: 20px; flex: none; }

/* ---------- Sheet 01: the mess ---------- */
.mess { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.panel { border: 1px solid var(--rule-2); background: rgba(255, 255, 255, .35); border-radius: 4px; position: relative; overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-3); background: var(--paper); }
.panel-h b { color: var(--ink); font-weight: 500; }
.panel-h.bad b { color: var(--signal); }
.panel-h.good b { color: var(--ok); }
.mess svg { width: 100%; height: auto; }
.mess .node rect { fill: #fff; stroke: rgba(14, 19, 42, .3); }
.mess .node text { font: 500 13px var(--body); fill: var(--ink); }
.mess .node .sub { font: 500 9px var(--mono); fill: var(--ink-3); letter-spacing: .06em; }
.mess .wire { fill: none; stroke: rgba(14, 19, 42, .4); stroke-width: 1.2; stroke-dasharray: 4 5; }
.mess .cloud { fill: rgba(255, 91, 31, .05); stroke: var(--signal); stroke-width: 1.4; }
.mess .rev path { fill: var(--paper); stroke: var(--signal); stroke-width: 1.3; }
.mess .rev text { font: 700 8.5px var(--mono); fill: var(--signal); text-anchor: middle; }
.mess .note { font: 600 9.5px var(--mono); fill: var(--signal); letter-spacing: .06em; }
.mess .solid { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.mess .hub rect { fill: var(--ink); }
.mess .hub text { fill: var(--paper); font: 600 16px var(--display); }
.mess .hub .sub { fill: rgba(243, 240, 232, .55); font: 500 9px var(--mono); letter-spacing: .06em; }
.mess .ok { font: 600 9.5px var(--mono); fill: var(--ok); letter-spacing: .06em; }
.mess .flowdot { fill: var(--signal); }
.leaks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--ink); }
.leak { padding: 22px 22px 0 0; }
.leak + .leak { padding-left: 22px; border-left: 1px solid var(--rule); }
.leak .mono { color: var(--signal); }
.leak h3 { font-size: 20px; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.2; }
.leak p { color: var(--ink-2); font-size: 14.5px; }
.leak p b { color: var(--ink); font-weight: 500; }

/* ---------- Night sheets ---------- */
.night { background: var(--night); color: var(--night-text); position: relative; }
.night .eyebrow { color: var(--gold); }
.night-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.night-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 30% at 72% 8%, rgba(255, 184, 56, .09), transparent 70%); }

/* lifecycle */
.flow { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rail { position: sticky; top: 112px; }
.rail ol { list-style: none; position: relative; }
.rail ol::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--night-line-2); }
.rail .prog { position: absolute; left: 13px; top: 18px; width: 1px; height: 0; background: var(--gold); transition: height .5s var(--ease); }
.rail li { position: relative; padding: 9px 0 9px 42px; cursor: pointer; color: var(--night-dim); transition: color .3s; }
.rail li::before {
  content: ""; position: absolute; left: 9px; top: 16px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--night-line-2); transition: all .3s; z-index: 1;
}
.rail li:hover { color: var(--night-muted); }
.rail li .n { font: 500 10.5px var(--mono); letter-spacing: .08em; display: block; text-transform: uppercase; }
.rail li .t { font: 500 17px/1.25 var(--display); letter-spacing: -.015em; }
.rail li .d { font-size: 13.5px; line-height: 1.5; color: var(--night-muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.rail li.on { color: var(--night-text); }
.rail li.on::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 184, 56, .15); }
.rail li.done::before { background: var(--night-muted); border-color: var(--night-muted); }
.rail li.on .d { max-height: 140px; opacity: 1; margin-top: 6px; }
.rail li.on .n { color: var(--gold); }
.rail-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--night-line); color: var(--night-dim); }

.stage-col { position: relative; }
.stage-sticky { position: sticky; top: 108px; z-index: 2; }
.steps { position: relative; margin-top: -600px; }
.step { height: 70vh; }
.step:last-child { height: 600px; }
.step-copy { display: none; }

/* ---------- Labs sheet ---------- */
.labs { overflow: clip; }
.labs .topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.labs .topo path { fill: none; stroke: var(--signal); stroke-opacity: .1; stroke-width: 1; }
.labs .topo path.idx { stroke-opacity: .22; stroke-width: 1.3; }
.labs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; position: relative; }
.chain { list-style: none; border-top: 1px solid var(--ink); margin-top: 36px; }
.chain li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.chain .mono { color: var(--signal); padding-top: 5px; }
.chain h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.chain p { grid-column: 2; color: var(--ink-2); font-size: 14.5px; }
.ws-wrap { position: sticky; top: 100px; }
.sheetcard { background: #fff; border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: 0 40px 70px -40px rgba(14, 19, 42, .45); overflow: hidden; }
.ws-h { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.ws-h .t { font: 600 19px var(--display); letter-spacing: -.02em; }
.ws-h .s { color: var(--ink-3); font-size: 12.5px; }
.ws-h .nata { grid-row: 1 / span 2; grid-column: 2; align-self: center; border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 10px; font: 600 9.5px/1.35 var(--mono); letter-spacing: .08em; text-align: center; }
.ws-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.ws-meta div { padding: 10px 20px; border-left: 1px solid var(--rule); font-size: 12.5px; }
.ws-meta div:first-child { border-left: 0; }
.ws-meta .mono { display: block; color: var(--ink-3); font-size: 9px; margin-bottom: 2px; }
.ws-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ws-tbl th { font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper); white-space: nowrap; }
.ws-tbl th:first-child, .ws-tbl td:first-child { text-align: left; padding-left: 20px; }
.ws-tbl td { padding: 10px 14px; text-align: right; border-bottom: 1px solid rgba(14, 19, 42, .07); font: 12px var(--mono); white-space: nowrap; }
.ws-tbl td.calc { color: var(--ink); background: rgba(255, 91, 31, .045); }
.ws-tbl td.ok { color: var(--ok); font-weight: 600; }
.ws-tbl td.no { color: var(--signal); font-weight: 600; }
.ws-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; font-size: 12px; color: var(--ink-2); background: var(--paper); }
.ws-foot b { color: var(--ink); font-weight: 500; }
.ws-foot .eq { display: flex; align-items: center; gap: 8px; }
.ws-foot .eq i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 157, 85, .15); }
.ws-note { display: flex; gap: 10px; margin-top: 14px; color: var(--ink-3); }
.ticker { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); overflow: hidden; position: relative; background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { padding: 14px 28px; border-right: 1px solid var(--rule); color: var(--ink-3); white-space: nowrap; }
.ticker span b { color: var(--ink); font-weight: 500; margin-right: 10px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Back office (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule-2); }
.tile { background: var(--paper); padding: 26px 26px 0; display: flex; flex-direction: column; min-height: 380px; position: relative; overflow: hidden; transition: background .3s; }
.tile:hover { background: #f6f4ee; }
.tile > .mono { color: var(--ink-3); display: flex; justify-content: space-between; }
.tile h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.022em; margin: 12px 0 0; max-width: 32ch; }
.tile h3 span { color: var(--ink-3); }
.tile .viz { margin-top: auto; padding: 26px 0 26px; }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-8 { grid-column: span 8; } .t-12 { grid-column: span 12; }
.mini { background: #fff; border: 1px solid var(--rule); border-radius: 6px; font-size: 12px; box-shadow: 0 18px 30px -24px rgba(14, 19, 42, .4); overflow: hidden; }
.mini-h { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); color: var(--ink-3); font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mini-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(14, 19, 42, .07); }
.mini-r:last-child { border-bottom: 0; }
.mini-r .k { color: var(--ink-3); font: 10.5px var(--mono); }
.mini-r b { font-weight: 500; }
.mini-r .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font: 500 10px var(--mono); letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.tag-ok { background: rgba(31, 157, 85, .1); color: var(--ok); }
.tag-warn { background: rgba(255, 184, 56, .22); color: #8a5300; }
.tag-bad { background: var(--signal-soft); color: #c43c0c; }
.tag-n { background: var(--paper-2); color: var(--ink-2); }
.matrix { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); font-size: 11.5px; }
.matrix > div { padding: 8px 6px; border-bottom: 1px solid rgba(14, 19, 42, .07); display: flex; align-items: center; justify-content: center; }
.matrix > div:nth-child(6n+1) { justify-content: flex-start; padding-left: 12px; }
.matrix .h { font: 500 9px var(--mono); color: var(--ink-3); letter-spacing: .04em; background: var(--paper); }
.dot { width: 12px; height: 12px; border-radius: 3px; }
.d-ok { background: var(--ok); } .d-warn { background: var(--gold); } .d-bad { background: var(--signal); } .d-n { background: var(--paper-3); }
.cpir { border-left: 3px solid var(--signal); }
.pl { display: flex; align-items: flex-end; gap: 14px; height: 140px; padding: 0 4px; }
.pl .g { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.pl .g i { flex: 1; background: var(--paper-3); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.pl .g i.a { background: var(--ink); }
.pl .g i.a.over { background: var(--signal); }
.in .pl .g i, .no-js .pl .g i { transform: scaleY(1); }
.pl-x { display: flex; gap: 14px; padding: 8px 4px 0; border-top: 1px solid var(--rule-2); font: 9.5px var(--mono); color: var(--ink-3); }
.pl-x span { flex: 1; text-align: center; }
.legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.m365 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m365 .mini { padding: 14px; }
.m365 .mini b { display: block; font-weight: 500; margin: 10px 0 2px; font-size: 13px; }
.m365 .mini span { color: var(--ink-3); font-size: 11.5px; line-height: 1.45; display: block; }
.m365 svg { width: 22px; height: 22px; }

/* ---------- Integrations hub (night) ---------- */
.hub-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hub-svg { width: 100%; height: auto; overflow: visible; }
.hub-svg .ln { stroke: var(--night-line-2); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.hub-svg .ln.x { stroke: #13b5ea; stroke-width: 1.6; stroke-dasharray: none; }
.hub-svg .pulse { fill: var(--gold); }
.hub-svg .pulse.x { fill: #13b5ea; }
.hub-svg .nd rect { fill: var(--night-2); stroke: var(--night-line-2); }
.hub-svg .nd text { fill: var(--night-text); font: 500 14px var(--display); }
.hub-svg .nd .s { fill: var(--night-dim); font: 500 9px var(--mono); letter-spacing: .06em; }
.hub-svg .core rect { fill: var(--night-text); }
.hub-svg .core text { fill: var(--night); font: 600 18px var(--display); }
.hub-svg .core .s { fill: rgba(10, 14, 39, .5); font: 500 9px var(--mono); letter-spacing: .08em; }
.hub-svg .xn rect { stroke: #13b5ea; fill: rgba(19, 181, 234, .1); }
.hub-svg .xn text { font-size: 17px; }
.ilist { list-style: none; margin-top: 32px; border-top: 1px solid var(--night-line-2); }
.ilist li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: 14px; color: var(--night-muted); }
.ilist b { color: var(--night-text); font-weight: 500; }

/* ---------- Proof ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.fact { padding: 26px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact .mono { color: var(--ink-3); }
.fact b { display: block; font: 500 clamp(44px, 5.4vw, 80px)/1 var(--display); letter-spacing: -.05em; margin: 18px 0 12px; font-variant-numeric: tabular-nums; }
.fact b small { font-size: .42em; letter-spacing: -.02em; color: var(--signal); margin-left: 4px; }
.fact p { color: var(--ink-2); font-size: 14.5px; max-width: 30ch; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1px; margin-top: clamp(40px, 5vw, 70px); background: var(--rule-2); border: 1px solid var(--rule-2); }
.quote-grid > * { background: var(--paper); }
.quote { padding: clamp(28px, 4vw, 52px); position: relative; }
.quote blockquote { font: 400 clamp(24px, 2.7vw, 38px)/1.2 var(--display); letter-spacing: -.025em; text-indent: -.42em; }
.quote blockquote em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255, 91, 31, .22) 62%); }
.who { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.who i { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; font: 600 14px var(--display); font-style: normal; }
.who b { display: block; font-weight: 500; }
.who span { color: var(--ink-3); font-size: 14px; }
.ph { position: absolute; top: 18px; right: 18px; background: var(--signal-soft); color: #c43c0c; padding: 3px 8px; border-radius: 4px; font-size: 10px; }
.why { padding: clamp(28px, 4vw, 52px); }
.why h3 { font-size: 24px; letter-spacing: -.025em; }
.why ul { list-style: none; margin-top: 18px; }
.why li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 15px; color: var(--ink-2); }
.why li:last-child { border-bottom: 0; }
.why li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 1px; background: var(--signal); }
.why li b { color: var(--ink); font-weight: 500; }

/* ---------- Switch ---------- */
.switch { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.switch::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; border-top: 1px dashed var(--rule-2); }
.sw { padding-right: 28px; position: relative; }
.sw .n { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); display: grid; place-items: center; font: 500 12px var(--mono); position: relative; }
.sw:last-child .n { background: var(--ink); color: var(--paper); }
.sw h3 { font-size: 20px; letter-spacing: -.02em; margin: 22px 0 8px; }
.sw p { color: var(--ink-2); font-size: 14.5px; }
.sw p b { color: var(--ink); font-weight: 500; }
.price-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: 28px 30px; border: 1px solid var(--rule-2); background: rgba(255, 255, 255, .45); border-radius: 4px; }
.price-note h3 { font-size: 24px; letter-spacing: -.025em; }
.price-note p { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }

/* ---------- Final CTA ---------- */
.cta-sheet { padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.cta-sheet h2 { font-size: clamp(48px, 8.4vw, 132px); line-height: .92; letter-spacing: -.055em; max-width: 12ch; }
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 46px; position: relative; z-index: 1; }
.cta-sheet .lede { margin-bottom: 26px; }
.cta-sheet .capture { max-width: 520px; }
.contact { color: var(--night-muted); font-size: 14px; text-align: right; line-height: 2; }
.contact a { color: var(--night-text); text-decoration: none; border-bottom: 1px solid var(--night-line-2); }
.cta-mark { position: absolute; right: -4vw; bottom: -12vw; width: 44vw; max-width: 700px; opacity: .05; pointer-events: none; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 64px 0 50px; }
.foot h4 { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-dim); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--night-text); }
.foot .brand { color: var(--night-text); margin-bottom: 16px; }
.foot-blurb { max-width: 34ch; }
.foot-tb { display: grid; grid-template-columns: repeat(6, auto); border: 1px solid var(--night-line); font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-dim); margin-bottom: 40px; }
.foot-tb div { padding: 12px 16px; border-right: 1px solid var(--night-line); }
.foot-tb div:nth-child(2n) { color: var(--night-muted); }
.foot-tb div:last-child { border-right: 0; }
.foot-legal { margin: -16px 0 0; padding-bottom: 40px; font-size: 12.5px; color: var(--night-dim); }

/* ---------- Reveal + hero intro ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .doc, .js .hero .stamp, .js .hero .callout, .js .hero .dimline { opacity: 0; }
.played .doc { animation: drop .9s var(--ease) both; animation-delay: var(--d); }
.played .stamp { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
.played .callout, .played .dimline { animation: fade .7s var(--ease) both; animation-delay: var(--d); }
@keyframes drop { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes stamp { from { opacity: 0; scale: 1.9; } to { opacity: 1; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .hero h1 .line > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: var(--d); }
.hero.played h1 .line > span { transform: none; }
.js .hero .intro { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d); }
.hero.played .intro { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-sheet { display: none; }
  .nav-cta { margin-left: auto; }
  .strip-in { grid-template-columns: repeat(3, 1fr); }
  .strip-in > div:first-child { grid-column: 1 / -1; padding: 18px 0 8px; }
  .strip-in > div:nth-child(2), .strip-in > div:nth-child(5) { border-left: 0; }
  .strip-in > div:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .flow { grid-template-columns: 230px minmax(0, 1fr); }
  .t-4 { grid-column: span 6; } .t-8 { grid-column: span 12; }
  .m365 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .doc-docket { left: 42%; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta .lbtn-ink { display: none; }
  .nav-cta .lbtn-ghost { opacity: 1; background: var(--ink); color: var(--paper); }
  .on-night .nav-cta .lbtn-ghost { background: var(--night-text); color: var(--night); }
  .menu-btn { display: block; }
  .menu-open { background: var(--paper); border-bottom-color: var(--rule); }
  .menu-open.on-night { background: var(--night); }
  .menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 20px; font-size: 17px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .menu-open.on-night .nav-links { background: var(--night); border-bottom-color: var(--night-line); }
  .menu-open .nav-links a { opacity: 1; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .menu-open.on-night .nav-links a { border-bottom-color: var(--night-line); }
  .menu-open .nav-links a:last-child { border-bottom: 0; }
  .nav-demo { display: block; font-weight: 500; }
  .hero-grid, .labs-grid, .hub-wrap, .mess, .quote-grid, .sheet-head { grid-template-columns: minmax(0, 1fr); }
  .docs { max-width: 640px; }
  .ws-wrap { position: relative; top: 0; }
  .leaks, .facts, .switch { grid-template-columns: repeat(2, 1fr); }
  .leak:nth-child(3), .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .leak:nth-child(n+3), .fact:nth-child(n+3), .sw:nth-child(n+3) { margin-top: 24px; }
  .switch::before { display: none; }
  /* lifecycle: drop the rail, each step carries its copy; app stays sticky above */
  .flow { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .stage-sticky { top: 70px; }
  .steps { margin-top: 0; }
  .step, .step:last-child { height: auto; min-height: 46vh; padding: 28px 0; }
  .step-copy { display: block; max-width: 56ch; background: var(--night); position: relative; z-index: 3; }
  .step-copy .n { font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--gold); }
  .step-copy h3 { font-size: 24px; margin: 6px 0 6px; }
  .step-copy p { color: var(--night-muted); font-size: 15px; }
  .t-6 { grid-column: span 12; }
  .cta-row, .price-note { grid-template-columns: minmax(0, 1fr); }
  .contact { text-align: left; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --cell: 20px; }
  .nav-in { height: 58px; gap: 12px; }
  .nav-cta .lbtn { height: 36px; padding: 0 12px; font-size: 13px; }
  .brand .lt { display: none; }
  .hero h1 { font-size: clamp(40px, 12.2vw, 58px); }
  .capture { flex-direction: column; padding: 6px; }
  .capture input { flex: 0 0 48px; height: 48px; }
  .capture .lbtn { justify-content: center; }
  .docs { width: 600px; height: 600px; transform-origin: top left; }
  .hero .callout { display: none; }
  .capture-note { gap: 6px 14px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .titleblock { grid-template-columns: repeat(2, auto); margin-left: 0; }
  .titleblock div:nth-child(2n) { border-right: 0; }
  .titleblock div:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in > div { border-left: 0 !important; justify-content: flex-start; padding-left: 0; }
  .leaks, .facts, .switch { grid-template-columns: minmax(0, 1fr); }
  .leak, .fact { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); margin-top: 0 !important; padding-bottom: 22px; }
  .leak:first-child, .fact:first-child { border-top: 0; }
  .sw { margin-top: 28px !important; }
  .stage-sticky { top: 64px; }
  .app { zoom: .82; }
  .step, .step:last-child { min-height: 52vh; }
  .ws-meta { grid-template-columns: repeat(2, 1fr); }
  .ws-meta div:nth-child(3) { border-left: 0; }
  .ws-meta div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ws-tbl .hide-s { display: none; }
  .tile { min-height: 0; padding: 22px 18px 0; }
  .m365 { grid-template-columns: minmax(0, 1fr); }
  .ilist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sheet-label { display: none; }
  .foot-tb { grid-template-columns: repeat(2, auto); }
  .foot-tb div:nth-child(2n) { border-right: 0; }
  .foot-tb div:nth-child(-n+4) { border-bottom: 1px solid var(--night-line); }
}

/* brand mark flips on night sheets */
.on-night .brand svg { color: var(--night-text) !important; --mark-fg: var(--night); }

/* grid cells reveal their contents, not the cell, so the hairline grid never shows a grey gap */
.js .bento .rv, .js .quote-grid .rv { opacity: 1; transform: none; }
.js .bento .rv > *, .js .quote-grid .rv > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .bento .rv.in > *, .js .quote-grid .rv.in > * { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .bento .tile { grid-column: span 12 !important; }
  .mini-r .k { display: none; }
  .tile > .mono span:last-child { display: none; }
  .ws-h { grid-template-columns: minmax(0, 1fr); }
  .ws-h .nata { display: none; }
  .ws-h .s { letter-spacing: .03em; }
}
@media (max-width: 640px) {
  .sw { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 16px; padding-right: 0; margin-top: 22px !important; }
  .sw .n { grid-row: span 2; }
  .sw h3 { margin: 8px 0 4px; }
}

/* ---------- Real-app window (boss-ui frames, 1100×640 each, scaled to fit) ---------- */
.win { border-radius: 12px; overflow: hidden; background: #0a0e27; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 50px 100px -40px rgba(0,0,0,.95), 0 -30px 100px -40px rgba(255,184,56,.18); }
.win-bar { height: 38px; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 0 14px; background: #151a33; border-bottom: 1px solid #2c3542; }
.win-bar .dots { display: flex; gap: 7px; }
.win-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c3542; }
.win-bar .url { justify-self: center; display: flex; align-items: center; gap: 7px; background: #0a0e27; border-radius: 7px; padding: 4px 14px; font: 12px var(--body); color: #8a8f98; min-width: 0; max-width: 100%; }
.win-bar .url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-stage { position: relative; aspect-ratio: 1100 / 640; overflow: hidden; }
.frame-slot { position: absolute; left: 0; top: 0; width: 1100px; height: 640px; transform-origin: 0 0; transform: scale(var(--fit, 1)); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.frame-slot.on { opacity: 1; pointer-events: auto; }
.frame-slot .boss-ui.app-frame { border-radius: 0; }
.steps { margin-top: calc(-1 * var(--win-h, 600px)); }
.step:last-child { height: var(--win-h, 600px); }
@media (max-width: 1000px) { .steps { margin-top: 0; } .step:last-child { height: auto; } }
@media (max-width: 640px) { .win-bar { grid-template-columns: 50px 1fr 10px; } }

/* ---------- Bento widgets wear the real app's skin (values from front-boss SCSS) ---------- */
.mini { font-family: Roboto, var(--body); background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.0745), 0 24px 40px -30px rgba(20,24,31,.35); font-size: 13px; color: #6c757d; }
.mini-h { font: 700 11px Roboto, var(--body); letter-spacing: 0; text-transform: uppercase; color: #343a40; background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
.mini-r { border-bottom: 1px solid #dee2e6; }
.mini-r b { color: #343a40; font-weight: 500; }
.mini-r .k { font: 12px Roboto, var(--body); color: #868ba1; }
.mini-h.cols4, .mini-r.cols4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.mini-h.cols4 span:not(:first-child), .mini-r.cols4 span { text-align: right; }
.mini-r .pos { color: #00aa4f; } .mini-r .neg { color: #dc3545; }
.tag { font: 500 11px Roboto, var(--body); letter-spacing: .5px; padding: 3px 10px; border-radius: 50rem; }
.tag-ok { background: #00aa4f; color: #fff; }
.tag-warn { background: #fdc444; color: #343a40; }
.tag-bad { background: #dc3545; color: #fff; }
.tag-n { background: #6c757d; color: #fff; }
.matrix { font-family: Roboto, var(--body); color: #343a40; }
.matrix .h { font: 700 10px Roboto, var(--body); color: #343a40; background: #f8f9fa; }
.matrix > div { border-color: #dee2e6; }
.d-ok { background: #00aa4f; } .d-warn { background: #fdc444; } .d-bad { background: #dc3545; } .d-n { background: #e9ecef; }
.dot { border-radius: 50%; }
.cpir { border-left: 4px solid #dc3545; }
.m365 .mini b { color: #343a40; }
@media (max-width: 1000px) {
  .stage-sticky { z-index: 4; padding-bottom: 14px; background: linear-gradient(var(--night) 70%, transparent); }
  .step-copy { z-index: 1; }
  .step-copy .n { text-transform: uppercase; }
}

/* Bento widgets in the app's dark mode (tokens from _variables.scss [data-bs-theme="dark"]) */
.mini { background: #1a1f3a; border-color: #2c3542; color: #ffffffc4; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 26px 44px -26px rgba(10,14,39,.7); }
.mini-h { background: #304372; color: #fff; border-bottom-color: #2c3542; }
.mini-r { border-bottom-color: #2c3542; }
.mini-r b, .m365 .mini b, .matrix { color: #fff; }
.mini-r .k { color: #a6adba; }
.mini-r .neg { color: #ff6b78; }
.matrix .h { background: #304372; color: #fff; }
.matrix > div { border-color: #2c3542; }
.d-n { background: #2b3251; }
.m365 .mini span { color: #bcbec7; }
.m365 .mini svg [stroke="#0e132a"] { stroke: #fff; }
.cpir { border-left-color: #dc3545; }
