/* UGECO OS landing · design system. Brand: ink #0b0b0e, yellow #facc15 as accent only, Inter Tight, system mono. No blue. */
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/products/ugeco-os/assets/InterTight-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); size-adjust: 94%; }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --ink: #0b0b0e; --yellow: #facc15;
  --bg: #0b0b0e; --bg-2: #101014; --panel: #15151a; --raised: #1c1c23; --well: #0b0b0e;
  --line: #2a2a32; --line-2: #3d3d48;
  --text: #ffffff; --muted: #a6a6b0; --faint: #8a8a95;
  --accent-text: var(--yellow); --accent-line: var(--yellow);
  --ok: #86efac; --bad: #fca5a5; --ok-bg: rgb(134 239 172 / .1); --bad-bg: rgb(252 165 165 / .1);
  --focus: var(--yellow); --glass: rgb(16 16 20 / .72); --scrim: rgb(0 0 0 / .55);
  --mesh-a: rgb(250 204 21 / .07); --mesh-b: rgb(255 255 255 / .045); --grain: .06;
  --shadow-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 1px 0 rgb(255 255 255 / .05) inset, 0 2px 4px rgb(0 0 0 / .3), 0 12px 28px rgb(0 0 0 / .35);
  --shadow-3: 0 1px 0 rgb(255 255 255 / .06) inset, 0 4px 8px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .45), 0 60px 120px rgb(0 0 0 / .4);
  --viz-node: #17171c; --viz-line: rgb(255 255 255 / .22); --viz-text: #c9c9d1;

  --font: "Inter Tight", "Inter Tight Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-ui: .875rem; --fs-md: 1rem;
  --fs-lg: clamp(1.0625rem, .4vw + 1rem, 1.25rem);
  --fs-h3: clamp(1.0625rem, .3vw + 1rem, 1.1875rem);
  --fs-h2: clamp(1.75rem, 2.6vw + 1rem, 3rem);
  --fs-h1: clamp(2.25rem, 3.4vw + 1.1rem, 4.5rem);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --gut: clamp(1rem, 4vw, 2.5rem); --sec-y: clamp(4rem, 9vw, 8rem);
  --r-chip: 4px; --r-ctl: 6px; --r-box: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --fast: 140ms; --base: 220ms; --step: 320ms; --slow: 600ms;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-spring: cubic-bezier(.3, 1.4, .5, 1); /* spring: the approval stamp and the mode switch only */
}
/* Light theme. The inline script in <head> sets data-theme before first paint: the visitor's stored choice, else the OS preference. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f4f4f6; --panel: #f4f4f6; --raised: #ffffff; --well: #ffffff;
  --line: #e3e3e7; --line-2: #c4c4cb;
  --text: #0b0b0e; --muted: #55555f; --faint: #5f6470;
  --accent-text: var(--ink); --accent-line: var(--ink); --ok: #166534; --bad: #b42318; --ok-bg: rgb(22 101 52 / .08); --bad-bg: rgb(180 35 24 / .07);
  --focus: var(--ink); --glass: rgb(255 255 255 / .82); --scrim: rgb(11 11 14 / .4);
  --mesh-a: rgb(250 204 21 / .16); --mesh-b: rgb(11 11 14 / .035); --grain: .035;
  --shadow-1: 0 1px 2px rgb(11 11 14 / .06);
  --shadow-2: 0 1px 2px rgb(11 11 14 / .05), 0 10px 24px rgb(11 11 14 / .07);
  --shadow-3: 0 2px 4px rgb(11 11 14 / .05), 0 20px 40px rgb(11 11 14 / .09), 0 50px 100px rgb(11 11 14 / .09);
  --viz-node: #ffffff; --viz-line: rgb(11 11 14 / .2); --viz-text: #3a3a44;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 3.25rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-md)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-chip); }
::selection { background: var(--yellow); color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--s4); top: -4rem; z-index: 100; padding: var(--s2) var(--s4); background: var(--yellow); color: var(--ink); font-weight: 600; border-radius: var(--r-ctl); text-decoration: none; }
.skip:focus { top: var(--s3); }
.wrap { width: min(100% - 2 * var(--gut), 74rem); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gut), 84rem); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.875rem; padding: 0 1.25rem; border: 1px solid var(--yellow); border-radius: var(--r-ctl);
  background: var(--yellow); color: var(--ink); font-weight: 600; font-size: var(--fs-md); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 6px 18px rgb(250 204 21 / .16); transition: transform var(--fast) var(--ease), box-shadow var(--base) var(--ease), background-color var(--fast); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 10px 26px rgb(250 204 21 / .26); }
.btn:active { transform: translateY(0) scale(.98); }
.btn span { transition: transform var(--base) var(--ease); }
.btn:hover span { transform: translateY(2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--raised); box-shadow: var(--shadow-1); }
.btn-sm { min-height: 2.25rem; padding: 0 .875rem; font-size: var(--fs-ui); }
.icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--muted); transition: color var(--fast), background-color var(--fast); }
.icon-btn:hover { color: var(--text); background: var(--raised); }
[data-theme-toggle] svg { transition: transform var(--slow) var(--ease); }
:root[data-theme="light"] [data-theme-toggle] svg { transform: rotate(180deg); }
.chip-btn { display: inline-flex; align-items: center; gap: .4em; min-height: 1.875rem; padding: 0 .625rem; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--raised); color: var(--text); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; transition: transform var(--fast) var(--ease), border-color var(--fast), background-color var(--fast); }
.chip-btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.chip-btn:active { transform: scale(.97); }
.chip-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (pointer: coarse) { .chip-btn, .foot-links a { min-height: 2.5rem; } }
.chip-btn-strong { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.eyebrow:has(.pill-note) { flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: .625rem; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { width: .5rem; height: .5rem; background: var(--yellow); border-radius: 2px; flex: none; }
.pill-note { padding: .25em .625em; border: 1px solid var(--line-2); border-radius: var(--r-pill); letter-spacing: .04em; color: var(--text); }
.demo-tag { display: inline-flex; align-items: center; gap: .4em; padding: .2em .55em; border: 1px dashed var(--line-2); border-radius: var(--r-chip); font: 500 .6875rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.demo-tag::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--yellow); }

/* ---------- nav ---------- */
.nav { position: sticky; top: -3.75rem; z-index: 50; border-bottom: 1px solid transparent; transition: background-color var(--base), border-color var(--base); }
.nav.is-stuck { background: var(--glass); border-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); }
.brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 3.75rem; text-decoration: none; }
.brand img { border-radius: 7px; transition: transform var(--base) var(--ease); }
.brand:hover img { transform: translateY(-1px); }
.wordmark { display: block; width: 4.05rem; height: 1.125rem; background: currentColor; -webkit-mask: url("/products/ugeco-os/assets/ugeco-wordmark-currentcolor.svg") center / contain no-repeat; mask: url("/products/ugeco-os/assets/ugeco-wordmark-currentcolor.svg") center / contain no-repeat; }
.brand-os { font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: .08em; color: var(--muted); padding: .25em .4em; border: 1px solid var(--line-2); border-radius: var(--r-chip); }
.nav-links { order: 3; flex: 1 0 100%; display: flex; gap: var(--s1); min-width: 0; margin-inline: -.5rem; padding: .25rem 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { flex: none; padding: .375rem .75rem; border-radius: var(--r-ctl); color: var(--muted); font-size: var(--fs-ui); font-weight: 500; text-decoration: none; transition: color var(--fast), background-color var(--fast); }
.nav-links a:hover, .nav-links a.is-here { color: var(--text); background: var(--raised); }
.nav-act { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.nav-signin { padding: .375rem .625rem; color: var(--muted); font-size: var(--fs-ui); font-weight: 500; text-decoration: none; }
.nav-signin:hover { color: var(--text); }
@media (max-width: 959.98px) { .nav-signin { display: none; } }
@media (min-width: 960px) {
  html { scroll-padding-top: 4.5rem; }
  .nav { top: 0; }
  .nav-links { order: 0; flex: none; margin-inline: auto; padding: 0; overflow: visible; }
  .nav-act { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 2.5vw, 2.25rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.hero-copy > * { animation: rise var(--slow) var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; } .hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; } .hero-copy > :nth-child(5) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.04; margin-top: var(--s5); }
.h1-mark { position: relative; white-space: nowrap; }
.h1-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .07em; background: var(--yellow); border-radius: 2px; transform-origin: left; animation: underline 900ms 700ms var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.lede { margin-top: var(--s5); max-width: 34rem; font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: var(--fs-sm); color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: .5em; }
.hero-facts li::before { content: ""; width: .75rem; height: .4rem; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg) translateY(-2px); }
.hero-viz { position: relative; height: clamp(24rem, 110vw, 30rem); min-width: 0; }
.hero-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); font: 500 .6875rem/1 var(--mono); color: var(--faint); }
.viz-legend span { display: inline-flex; align-items: center; gap: .4em; }
.lg { width: .6rem; height: .6rem; border: 1px solid var(--line-2); border-radius: 2px; }
.lg-g { border-radius: 50%; border-color: var(--yellow); background: var(--yellow); }
.lg-t { background: var(--raised); }
.lg-ok { position: relative; width: .75rem; height: .75rem; border-radius: 50%; border-color: var(--yellow); background: var(--yellow); }
.lg-ok::after { content: ""; position: absolute; left: 22%; top: 24%; width: 48%; height: 26%; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5); }
  .hero { padding-bottom: var(--s5); }
  .hero-viz { height: clamp(27rem, 38vw, 34rem); }
}

/* ---------- sections ---------- */
.sec { padding: var(--sec-y) 0 0; }
.sec-head { max-width: 46rem; margin-bottom: var(--s7); }
.sec-head h2 { font-size: var(--fs-h2); margin-top: var(--s4); letter-spacing: -.03em; }
.sec-sub { margin-top: var(--s4); font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); }
.sec-first { padding-top: clamp(2rem, 4vw, 2.5rem); }
.sec-head-c { max-width: 40rem; margin-inline: auto; text-align: center; }
.sec-head-c .eyebrow { justify-content: center; }
.sec-band { margin-top: clamp(3rem, 6vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s4); }
.sec-head-row > div:first-child { max-width: 46rem; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* `*` does not match pseudo-elements and play-state is not inherited, so they are named too */
[data-scope]:not(.in-view) *, [data-scope]:not(.in-view) *::before, [data-scope]:not(.in-view) *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }
/* a horizontal scroller with more to the right fades its edge (class set by edgeFade in marketing.js) */
.edge.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
/* without JavaScript the interactive shells are hidden; each section carries a <noscript> line instead */
html:not(.js) :is(.hero-viz, .frame-bar button, .tour-cap, #wf, .mode, #mode-note) { display: none; }

/* ---------- dashboard frame ---------- */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-3); overflow: hidden; isolation: isolate; }
.frame-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: .5rem .75rem; border-bottom: 1px solid var(--line); background: var(--raised); }
.lights { display: flex; gap: .375rem; }
.lights i { width: .625rem; height: .625rem; border-radius: 50%; background: var(--line-2); }
.url { display: flex; align-items: center; gap: .5em; flex: 1 1 calc(100% - 4rem); min-width: 0; padding: .3rem .75rem; border-radius: var(--r-pill); background: var(--well); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); color: var(--muted); }
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar .demo-tag { margin-right: auto; }
@media (min-width: 720px) { .url { flex: 0 1 22rem; } .frame-bar .demo-tag { margin-right: 0; margin-left: auto; } }
.dash { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: clamp(33rem, 76svh, 42rem); }
.dash-nav { display: flex; gap: 2px; padding: .375rem .5rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav button { position: relative; display: flex; align-items: center; gap: .5rem; flex: none; min-height: 2.25rem; padding: 0 .75rem; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font-size: var(--fs-ui); font-weight: 500; text-align: left; transition: color var(--fast), background-color var(--fast); }
.dash-nav button:hover { color: var(--text); background: var(--raised); }
.dash-nav button[aria-current="page"] { color: var(--text); background: var(--raised); box-shadow: var(--shadow-1); }
.dash-nav button[aria-current="page"]::before { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent-line); }
.dash-nav .cnt { min-width: 1.25rem; padding: 0 .3rem; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); font: 700 .6875rem/1.25rem var(--mono); text-align: center; }
.dash-main { overflow: hidden auto; padding: var(--s4); min-width: 0; scrollbar-width: thin; }
.dash-main:focus-visible { outline-offset: -2px; }
@media (min-width: 820px) {
  .dash { grid-template-columns: 11.5rem minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .dash-nav { flex-direction: column; padding: .75rem .5rem; border-bottom: 0; border-right: 1px solid var(--line); overflow: auto; }
  .dash-nav button[aria-current="page"]::before { left: 0; right: auto; top: .5rem; bottom: .5rem; width: 2px; height: auto; }
  .dash-main { padding: var(--s5); }
}
.view { animation: view-in var(--step) var(--ease) both; }
.view.no-anim { animation: none; }
.view-fill { display: flex; flex-direction: column; min-height: 100%; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.view-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s4); }
.view-head h3 { font-size: 1.25rem; }
.view-head p { color: var(--muted); font-size: var(--fs-sm); }
.h-s { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s3); font: 600 var(--fs-xs)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty { padding: var(--s5); border: 1px dashed var(--line-2); border-radius: var(--r-box); color: var(--muted); font-size: var(--fs-ui); text-align: center; }
.box { border: 1px solid var(--line); border-radius: var(--r-box); background: var(--raised); box-shadow: var(--shadow-1); }
.tag { display: inline-flex; align-items: center; gap: .35em; padding: .1em .45em; border: 1px solid var(--line-2); border-radius: var(--r-chip); font: 500 .6875rem/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.tag-ok { color: var(--ok); border-color: currentColor; background: var(--ok-bg); } .tag-bad { color: var(--bad); border-color: currentColor; background: var(--bad-bg); }
.tag-pend { color: var(--text); border-color: var(--accent-line); }
.tag-pend::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--yellow); }

/* external-thing chip: opens the preview drawer */
.xchip { display: inline-flex; align-items: center; gap: .4em; max-width: 100%; padding: .15rem .5rem .15rem .2rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--well); color: var(--text); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; transition: transform var(--fast) var(--ease), border-color var(--fast), box-shadow var(--base); }
.xchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xchip:hover { border-color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.xchip::after { content: "*"; font-size: 1em; font-weight: 700; color: var(--accent, #facc15); transition: transform var(--fast); }
.xchip:hover::after { transform: translate(1px, -1px); }
.glyph { flex: none; border-radius: 28%; }
.glyph-img { position: relative; display: inline-block; width: var(--gs, 20px); height: var(--gs, 20px); border: 1px solid var(--line-2); background: var(--raised); }
.glyph-img::after { content: ""; position: absolute; inset: 21%; background: var(--text); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.glyph rect { fill: var(--text); } .glyph text { fill: var(--bg); font: 700 9.5px var(--font); letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: .375rem; }

/* today */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: var(--s3) var(--s4); }
.tile b { display: block; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.tile small { display: block; margin-top: .125rem; font: 400 .6875rem/1.4 var(--mono); color: var(--muted); }
.tile .bar { height: .375rem; margin: .5rem 0 .25rem; }
.tile-key { border-left: 3px solid var(--yellow); }
[aria-disabled="true"] { opacity: .55; cursor: default; }
.apr { position: relative; padding: var(--s4); margin-bottom: var(--s3); overflow: hidden; }
.apr-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.apr-top .by { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }
.apr h4 { margin: 0 0 var(--s3); font-size: 1rem; line-height: 1.35; }
.frozen { position: relative; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--well); }
.frozen-bar { display: flex; align-items: center; gap: .5em; padding: .3rem .625rem; border-bottom: 1px dashed var(--line); font: 500 .6875rem/1.4 var(--mono); color: var(--muted); }
.frozen-bar svg { flex: none; color: var(--accent-text); }
.frozen pre { padding: .625rem; max-height: 8.5rem; overflow: auto; font: 400 var(--fs-sm)/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.apr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.apr-foot .chips { flex: 1 1 12rem; min-width: 0; }
.apr-act { display: flex; gap: var(--s2); margin-left: auto; }
.b-approve, .b-reject { min-height: 2.25rem; padding: 0 .875rem; border-radius: var(--r-ctl); font-size: var(--fs-ui); font-weight: 600; transition: transform var(--fast) var(--ease), box-shadow var(--base), background-color var(--fast); }
.b-approve { border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink); }
.b-approve:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(250 204 21 / .25); }
.b-reject { border: 1px solid var(--line-2); background: none; color: var(--text); }
.b-reject:hover { background: var(--bad-bg); border-color: var(--bad); }
.b-approve:active, .b-reject:active { transform: scale(.97); }
.stamp { position: absolute; right: 1.25rem; top: 50%; padding: .25rem .875rem; border: 3px solid currentColor; border-radius: var(--r-ctl); background: var(--raised); font: 800 1.375rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; transform: translateY(-50%) rotate(-8deg); animation: stamp 420ms var(--ease-spring) both; pointer-events: none; }
.stamp.ok { color: var(--ok); } .stamp.no { color: var(--bad); }
@keyframes stamp { from { opacity: 0; transform: translateY(-50%) rotate(-8deg) scale(2.4); } }
.apr.is-deciding > :not(.stamp) { opacity: .35; transition: opacity var(--base); }
.done-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: .5rem .75rem; border-bottom: 1px solid var(--line); font-size: var(--fs-ui); }
.done-list li:last-child { border-bottom: 0; }
.done-list .t { margin-left: auto; font: 400 var(--fs-xs)/1 var(--mono); color: var(--muted); }

/* pipeline */
.kan { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(12rem, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); scrollbar-width: thin; }
.kan-col { padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bg-2); }
.kan-col h4 { display: flex; justify-content: space-between; gap: var(--s2); margin: .25rem .375rem .5rem; font: 600 var(--fs-xs)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kan-col h4 span { letter-spacing: 0; text-transform: none; font-weight: 400; white-space: nowrap; }
.deal { position: relative; padding: .625rem; margin-bottom: var(--s2); cursor: default; transition: border-color var(--fast), box-shadow var(--base); }
.deal:hover, .deal:focus-visible { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.deal strong { display: block; font-size: var(--fs-ui); line-height: 1.3; }
.deal .co { display: block; font: 400 .6875rem/1.5 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.deal-meta, .deal-row { display: flex; align-items: center; gap: .375rem; margin-top: .5rem; }
.deal-meta .val { margin-right: auto; font: 500 var(--fs-xs)/1.3 var(--mono); }
.ava.sm { width: 1.375rem; height: 1.375rem; font-size: .625rem; }
.deal-row .xchip { flex: 0 1 auto; min-width: 0; }
.mvs { display: flex; flex: none; gap: .25rem; margin-left: auto; }
.mv { min-width: 1.75rem; padding: 0 .45rem; height: 1.75rem; font-weight: 600; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: none; font-size: var(--fs-sm); transition: background-color var(--fast), transform var(--fast); }
.mv:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.mv:active:not(:disabled) { transform: scale(.92); }
.mv:disabled { opacity: .3; cursor: not-allowed; }
/* the "just moved" ring is a static shadow on a pseudo-element; only its opacity animates */
.deal.just-moved::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent-line); pointer-events: none; animation: fade-out 1.2s var(--ease) both; }
@keyframes fade-out { to { opacity: 0; } }

/* outbound / shared bars */
.pad { padding: var(--s4); margin-bottom: var(--s3); }
.row-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.row-b h4 { margin: 0; font-size: 1rem; }
.bar { position: relative; height: .625rem; margin: var(--s3) 0 var(--s2); border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--text); border-radius: inherit; transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 900ms var(--ease); }
.bar.accent i { background: var(--yellow); }
.bar-meta { display: flex; justify-content: space-between; gap: var(--s3); font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--muted); }
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-top: var(--s3); font-size: var(--fs-xs); color: var(--muted); }
.seq-star { color: var(--yellow, #facc15); font-weight: 700; }
.seq b { padding: .15rem .5rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text); font-weight: 500; }
.note { display: flex; gap: .5em; align-items: baseline; margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.note::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 2px; background: var(--yellow); transform: translateY(-1px); }
.apr-foot .note { flex: 1 1 10rem; margin: 0; }
.mono-n { font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.proj-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s3); font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.proj-head .h-s { flex-wrap: wrap; margin: 0 auto 0 0; white-space: normal; }
.proj-head .bar { flex: 0 1 9rem; margin: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: .625rem .75rem; border-bottom: 1px solid var(--line); font-size: var(--fs-ui); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1 1 10rem; min-width: 0; }
.list small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.st { min-width: 6.25rem; justify-content: center; }
button.tag { cursor: pointer; background: none; transition: border-color var(--fast), transform var(--fast); }
button.tag:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }

/* people */
.ppl { display: grid; gap: var(--s3); }
.person { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .25rem var(--s3); align-items: center; padding: var(--s3) var(--s4); }
.ava { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: var(--fs-sm); }
.person > .ava { grid-row: span 2; }
.ava.agent { background: var(--yellow); color: var(--ink); border-radius: 30%; }
.person .who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); font-size: var(--fs-ui); font-weight: 600; }
.person .who small { margin-right: var(--s2); font-weight: 400; color: var(--muted); }
.person .hrs { display: flex; align-items: center; gap: var(--s3); font: 400 var(--fs-xs)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.person .bar { flex: 0 1 60%; margin: 0; }
.person .note { margin: 0; }

/* studio */
.studio { display: grid; gap: var(--s4); }
@media (min-width: 1100px) { .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.field { display: grid; gap: .375rem; font-size: var(--fs-sm); color: var(--muted); }
.field input { width: 100%; min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--well); color: var(--text); font-size: var(--fs-ui); }
.sheet { margin-top: var(--s3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--well); animation: view-in var(--step) var(--ease) both; }
.sheet div { display: flex; justify-content: space-between; gap: var(--s3); padding: .5rem .75rem; border-bottom: 1px dashed var(--line); font: 400 var(--fs-sm)/1.4 var(--mono); }
.sheet div:last-child { border-bottom: 0; font-weight: 700; }
.sheet dt { color: var(--muted); } .sheet dd { text-align: right; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--s3); align-content: start; }
.asset { overflow: hidden; }
.asset svg { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.asset figcaption { padding: .375rem .5rem; font: 400 .6875rem/1.4 var(--mono); color: var(--muted); }
.asset.is-new { animation: develop 1.1s var(--ease) both; }
@keyframes develop { from { opacity: 0; transform: scale(.94); } }
.gen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-box); border: 1px dashed var(--line-2); overflow: hidden; display: grid; place-items: center; font: 500 var(--fs-xs)/1 var(--mono); color: var(--muted); }
.gen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--mesh-a) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 1.1s linear infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

/* tables */
.tbl-wrap { overflow-x: auto; scrollbar-width: thin; }
.tbl-wrap:focus-visible, .slack-body:focus-visible, .dr-body:focus-visible { outline-offset: -2px; }
/* the action column stays in reach while the rest of a wide table scrolls under it */
.tbl-pin :is(th, td):last-child { position: sticky; right: 0; background: var(--raised); box-shadow: -1px 0 0 var(--line); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { padding: .5rem .625rem; text-align: left; font: 600 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .5rem .625rem; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.m { font-family: var(--mono); font-size: var(--fs-xs); }
td.dim { color: var(--muted); }
.spark { width: 5rem; height: 1.5rem; }
.spark path { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--yellow); }
tr.is-new td { animation: row-in 1.6s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } 30% { opacity: 1; transform: none; } }
tr.is-new td:first-child { box-shadow: inset 2px 0 0 var(--yellow); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-bottom: var(--s3); }
.filters input { flex: 1 1 9rem; min-width: 0; min-height: 1.875rem; padding: 0 .625rem; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--well); font-size: var(--fs-sm); }
.chip-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.live { display: inline-flex; align-items: center; gap: .4em; font: 500 .6875rem/1 var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.live i, .dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); flex: none; }
.live i::after, .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: beat 2s var(--ease) infinite; }
@keyframes beat { from { opacity: .7; transform: scale(1); } 70%, to { opacity: 0; transform: scale(3); } }

/* system */
.sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: var(--s3); }
.sys-t { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .125rem .625rem; align-items: center; padding: var(--s3); transition: transform var(--base) var(--ease), border-color var(--fast); }
.sys-t:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sys-t strong { font-size: var(--fs-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-t small { grid-column: 2 / -1; font: 400 .6875rem/1.4 var(--mono); color: var(--muted); }
.sys-t .dot { animation-delay: var(--d, 0s); } .sys-t .dot::after { animation-delay: var(--d, 0s); }
.sys-t.own { grid-column: 1 / -1; border-color: var(--accent-line); }

/* drawer (inside the frame) */
.scrim { position: absolute; inset: 0; z-index: 5; background: var(--scrim); animation: fade var(--base) both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: min(100% - 2.5rem, 25rem); display: flex; flex-direction: column; background: var(--raised); border-left: 1px solid var(--line-2); box-shadow: -24px 0 48px rgb(0 0 0 / .3); animation: drawer-in var(--step) var(--ease) both; }
.drawer.is-out { animation: drawer-out var(--base) var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.dr-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.dr-head div { flex: 1; min-width: 0; }
.dr-head small { display: block; font: 500 .6875rem/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-head h3 { font-size: 1rem; line-height: 1.3; }
.dr-body { flex: 1; overflow: auto; padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.dr-note { padding: .5rem .75rem; border-top: 1px solid var(--line); font: 400 .6875rem/1.4 var(--mono); color: var(--muted); }
.dr-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s4); font-size: var(--fs-sm); }
.dr-meta dt { color: var(--muted); } .dr-meta dd { overflow-wrap: anywhere; }
.msg { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0 .625rem; }
.msg .ava { width: 1.75rem; height: 1.75rem; font-size: .6875rem; border-radius: 28%; }
.msg b { font-size: var(--fs-sm); } .msg b small { margin-left: .5em; font-weight: 400; color: var(--muted); font-size: .6875rem; }
.msg p { grid-column: 2; font-size: var(--fs-ui); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.k-whatsapp .msg, .k-gmail .msg { padding: .625rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--well); }
.k-whatsapp .msg.me { margin-left: 1.5rem; border-color: var(--line-2); background: var(--panel); }
.k-whatsapp .msg:not(.me) { margin-right: 1.5rem; }
.k-github .msg { padding: .625rem; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.k-erpnext .dr-meta { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--well); }

/* tour */
.tour-cap { display: flex; align-items: center; gap: var(--s3); min-height: 3.5rem; padding: .5rem .75rem; border-top: 1px solid var(--line); background: var(--raised); }
.tour-step { flex: none; padding: .2em .6em; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font: 600 .6875rem/1.5 var(--mono); }
.tour-cap.is-live .tour-step { background: var(--yellow); color: var(--ink); }
.tour-cap p { font-size: var(--fs-sm); line-height: 1.4; color: var(--text); }
@media (max-width: 639.98px) { .tour-cap { min-height: 4.75rem; } } /* room for three lines, so the frame never jumps */
.tour-cap p.swap { animation: view-in var(--step) var(--ease) both; }
.ghost { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; opacity: 0; transform: translate(60px, 60px); transition: transform 760ms cubic-bezier(.5, .1, .2, 1), opacity var(--base); will-change: transform; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4)); }
.ghost.on { opacity: 1; }
.ghost i { position: absolute; left: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.ghost.click i { animation: ripple 480ms var(--ease) both; }
@keyframes ripple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
.toasts { position: absolute; left: 50%; bottom: .75rem; z-index: 15; display: grid; gap: var(--s2); justify-items: center; width: max-content; max-width: calc(100% - 2rem); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: var(--s3); padding: .5rem .875rem; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-2); pointer-events: auto; animation: toast-in var(--step) var(--ease) both; }
.toast.out { animation: toast-out var(--base) var(--ease) both; }
.toast button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- workflow ---------- */
.wf { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-2); overflow: hidden; }
.wf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--raised); }
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs button { flex: none; min-height: 2.125rem; padding: 0 .75rem; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; transition: color var(--fast), background-color var(--fast); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--bg); background: var(--text); }
.wf-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.wf-count { margin: 0 var(--s2); font: 500 var(--fs-xs)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.wf-grid { display: grid; }
.wf-left { display: flex; flex-direction: column; padding: var(--s4); min-width: 0; }
.wf-track { position: relative; }
.wf-rail { display: none; }
.wf-steps { position: relative; display: flex; overflow-x: auto; padding: .25rem; margin: -.25rem; scrollbar-width: none; }
.wf-steps::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.wf-step { flex: none; display: flex; align-items: center; }
/* phones: a connector between the chips; it fills as the flow reaches the next step */
.wf-step + .wf-step::before { content: ""; width: .75rem; height: 2px; background: linear-gradient(90deg, var(--accent-line) 50%, var(--line-2) 50%) 100% 0 / 200% 100%; transition: background-position var(--step) var(--ease); }
.wf-step + .wf-step:not(.is-todo)::before { background-position: 0 0; }
.wf-step button { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .375rem; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--raised); text-align: left; transition: border-color var(--fast), background-color var(--fast), transform var(--fast) var(--ease), opacity var(--base); }
.wf-step button:hover { border-color: var(--line-2); transform: translateY(-1px); }
.wf-step .n { flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); font: 600 var(--fs-xs)/1 var(--mono); transition: background-color var(--base), color var(--base), border-color var(--base), transform var(--step) var(--ease); }
.wf-step .tx { display: none; min-width: 0; }
.wf-step.is-done .n { background: var(--text); color: var(--bg); border-color: var(--text); }
.wf-step.is-on button { border-color: var(--accent-line); }
.wf-step.is-on .tx { display: block; padding-right: .375rem; font: 500 .6875rem/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.wf-step.is-on .tx b { display: none; }
.wf-step.is-on .n { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: scale(1.12); }
/* the "now" card: who is acting, what happens, why. It sits at the bottom of the left column. */
.wf-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s3); align-content: start; margin-top: auto; padding: var(--s3) var(--s4); min-height: 7.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-1); }
.wf-now .glyph { grid-row: span 2; align-self: center; }
.wf-now .who { font: 600 var(--fs-xs)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wf-now strong { font-size: 1rem; line-height: 1.3; }
.wf-now p { grid-column: 1 / -1; margin-top: var(--s2); font-size: var(--fs-ui); line-height: 1.5; color: var(--muted); }
.wf-track { margin-bottom: var(--s4); }
.wf-right { display: grid; gap: var(--s3); padding: 0 var(--s4) var(--s4); min-width: 0; }
.wf-side { display: grid; gap: var(--s3); }
@media (min-width: 620px) { .wf-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1000px) {
  .wf-grid { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
  .wf-left { padding: var(--s5); border-right: 1px solid var(--line); }
  .wf-right { padding: var(--s5); grid-template-rows: minmax(0, 1fr) auto; }
  .slack { display: flex; flex-direction: column; min-height: 0; }
  .slack-body { flex: 1 1 0; height: auto; min-height: 19rem; }
  .wf-rail { display: block; position: absolute; left: calc(1.25rem - 1px); top: 1.25rem; bottom: 1.25rem; width: 2px; background: var(--line); }
  .wf-fill { position: absolute; inset: 0; background: var(--text); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform var(--slow) var(--ease); }
  .wf-token { position: absolute; left: -5px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgb(250 204 21 / .22), 0 0 18px rgb(250 204 21 / .6); transform: translateY(var(--y, 0px)); transition: transform var(--slow) var(--ease); z-index: 0; }
  .wf-steps { display: grid; gap: .25rem; overflow: visible; }
  .wf-step { display: block; }
  .wf-step + .wf-step::before { display: none; }
  .wf-step button { border-color: transparent; background: none; padding: .375rem .5rem .375rem .375rem; }
  .wf-step button:hover { background: var(--raised); transform: none; }
  .wf-step .n { position: relative; z-index: 1; }
  .wf-step .tx, .wf-step.is-on .tx { display: block; padding: 0; font: inherit; color: inherit; white-space: normal; }
  .wf-step .tx b, .wf-step.is-on .tx b { display: block; font-size: var(--fs-ui); line-height: 1.3; }
  .wf-step.is-todo .tx b { color: var(--muted); font-weight: 500; }
  .wf-step .tx small { display: block; font: 500 .6875rem/1.4 var(--mono); color: var(--muted); }
  .wf-step.is-on button { background: var(--raised); border-color: var(--line-2); box-shadow: var(--shadow-1); }
}
.slack { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--well); overflow: hidden; }
.slack-bar { display: flex; align-items: center; gap: .625rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); background: var(--raised); font-size: var(--fs-ui); }
.slack-bar .demo-tag { margin-left: auto; }
.slack-body { height: clamp(14rem, 40svh, 19rem); overflow: auto; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); scrollbar-width: thin; }
.day { display: flex; align-items: center; gap: var(--s3); font: 500 .6875rem/1 var(--mono); color: var(--muted); }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day span { padding: .3em .75em; border: 1px solid var(--line); border-radius: var(--r-pill); }
.chan-note { font: 400 var(--fs-xs)/1.5 var(--mono); color: var(--muted); }
.slack-body .msg { animation: view-in var(--step) var(--ease) both; }
.slack-body .msg.old { animation: none; }
.app-tag { margin-left: .4em; padding: 0 .3em; border-radius: 3px; background: var(--line); font: 600 .5625rem/1.5 var(--mono); color: var(--muted); vertical-align: 1px; }
.typing { display: inline-flex; gap: 3px; padding: .375rem 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 900ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 120ms; } .typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.s-card { grid-column: 2; margin-top: .375rem; border: 1px solid var(--line-2); border-left: 3px solid var(--yellow); border-radius: var(--r-ctl); background: var(--raised); padding: .625rem .75rem; font-size: var(--fs-sm); }
.s-card pre { margin: .375rem 0; padding: .5rem; border-radius: var(--r-chip); background: var(--well); border: 1px solid var(--line); font: 400 var(--fs-xs)/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.s-card .hash { font: 500 .6875rem/1.4 var(--mono); color: var(--muted); }
.s-card .apr-act { margin: .5rem 0 0; }
.s-card .b-approve, .s-card .b-reject { min-height: 1.875rem; font-size: var(--fs-sm); }
.s-card .verdict { display: flex; align-items: center; gap: .5em; margin-top: .5rem; font-weight: 600; color: var(--ok); animation: view-in var(--step) var(--ease) both; }
.s-card .verdict.no { color: var(--bad); }
.panel-s { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); padding: var(--s3) var(--s4); min-width: 0; }
.panel-s .h-s { margin: 0 0 var(--s2); justify-content: space-between; }
.rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s3); font: 400 var(--fs-xs)/1.5 var(--mono); min-height: 6.125rem; align-content: start; }
.rec dt { color: var(--muted); } .rec dd { overflow-wrap: anywhere; }
.rec.swap > * { animation: view-in var(--step) var(--ease) both; }
/* five whole rows (5 × 1.125rem + 4 gaps); the oldest fades out instead of being cut mid-row */
.mini-audit { display: flex; flex-direction: column; gap: .125rem; height: 6.125rem; overflow: hidden; font: 400 var(--fs-xs)/1.5 var(--mono); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.mini-audit li { flex: none; display: flex; gap: var(--s2); white-space: nowrap; animation: view-in var(--step) var(--ease) both; }
.mini-audit li.old { animation: none; }
.mini-audit .h { color: var(--muted); } .mini-audit .v { overflow: hidden; text-overflow: ellipsis; }
.mini-audit .d { margin-left: auto; color: var(--muted); }

/* ---------- architecture ---------- */
.arch-row { display: grid; gap: 0; }
.layer { display: grid; gap: var(--s3); align-content: start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); text-align: left; box-shadow: var(--shadow-1); transition: transform var(--base) var(--ease), border-color var(--base), box-shadow var(--base), background-color var(--base); }
.layer:hover, .layer.is-on { transform: translateY(-3px); border-color: var(--line-2); background: var(--raised); box-shadow: var(--shadow-2); }
.layer-own { border-color: var(--accent-line); }
.layer-own:hover, .layer-own.is-on { border-color: var(--accent-line); box-shadow: var(--shadow-2), 0 0 0 1px var(--accent-line), 0 0 0 4px rgb(250 204 21 / .2); }
.layer-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; font: 600 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.layer-own .layer-k { color: var(--text); }
.layer-k small { padding: .1em .5em; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); letter-spacing: .02em; text-transform: none; }
.layer-items { display: flex; flex-wrap: wrap; gap: .375rem; }
.layer-items b { padding: .375rem .625rem; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--well); font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; }
.layer-items small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
/* the gateway's five checks, as a numbered pipeline */
.layer-chips { counter-reset: check; flex-direction: column; }
.layer-chips b { position: relative; display: flex; align-items: center; gap: .625rem; }
.layer-chips b::before { counter-increment: check; content: counter(check); flex: none; width: 1.25rem; font: 600 .6875rem/1.25rem var(--mono); text-align: center; color: var(--muted); border: 1px solid var(--line-2); border-radius: 50%; }
.layer-chips b::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent-line); border-radius: inherit; box-shadow: 0 0 0 3px rgb(250 204 21 / .18); opacity: 0; animation: check-on 6s var(--ease) infinite; }
.layer-chips b:nth-child(2)::after { animation-delay: .5s; } .layer-chips b:nth-child(3)::after { animation-delay: 1s; }
.layer-chips b:nth-child(4)::after { animation-delay: 1.5s; } .layer-chips b:nth-child(5)::after { animation-delay: 2s; }
/* One request on a 6 s loop: it crosses to the gateway, waits while the five checks light in order, then goes on to the adapter and the tool. */
.arch-link { --dx: 0px; --dy: 1.75rem; position: relative; display: block; width: 2px; height: 1.75rem; margin-inline: auto; background: var(--line); }
.arch-link i { position: absolute; inset: 0; background: var(--text); transform-origin: top; transform: scaleY(0); transition: transform 700ms var(--ease); }
.arch.in .arch-link i { transform: scaleY(1); }
.arch.in .arch-link:nth-of-type(2) i { transition-delay: 350ms; } .arch.in .arch-link:nth-of-type(3) i { transition-delay: 700ms; }
.arch-link::after { content: ""; position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); opacity: 0; animation: hop 6s linear infinite; }
.arch-link:nth-of-type(2)::after { animation-delay: 3.6s; } .arch-link:nth-of-type(3)::after { animation-delay: 4.4s; }
@keyframes hop { 0% { transform: none; opacity: 0; } 2%, 10% { opacity: 1; } 12%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes check-on { 0%, 13% { opacity: 0; } 16%, 22% { opacity: 1; } 27%, 100% { opacity: 0; } }
@media (min-width: 1000px) {
  .arch-row { grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1.1fr) 2rem minmax(0, .85fr) 2rem minmax(0, 1.1fr); align-items: center; }
  .layer-items:not(.layer-tools) { flex-direction: column; }
  .arch-link { --dx: 2rem; --dy: 0px; width: 100%; height: 2px; }
  .arch-link i { transform-origin: left; transform: scaleX(0); }
  .arch.in .arch-link i { transform: scaleX(1); }
  .arch-link::after { left: -4px; top: -3px; }
}
.arch-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: baseline; margin-top: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: var(--r-lg); background: var(--panel); min-height: 7rem; }
.arch-note-k { font: 600 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.arch-note p { grid-column: 1 / -1; max-width: 60ch; font-size: var(--fs-lg); line-height: 1.5; }
.arch-hint { font: 500 .6875rem/1.3 var(--mono); color: var(--muted); text-align: right; }
.arch-note.swap > * { animation: view-in var(--step) var(--ease) both; }

/* ---------- safety cards ---------- */
.cards { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1); }
.js .card.reveal, .js .conn.reveal { transition: opacity var(--slow) var(--ease), transform var(--step) var(--ease), border-color var(--base), box-shadow var(--base); transition-delay: calc(var(--i, 0) * 70ms); }
.card.in:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card h3 { font-size: var(--fs-h3); margin: var(--s4) 0 var(--s2); }
.card p { font-size: var(--fs-ui); line-height: 1.55; color: var(--muted); }
.sv { position: relative; height: 5.5rem; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--well); overflow: hidden; font: 500 .6875rem/1.4 var(--mono); }
/* each visual rests in its END state; the keyframes run from the start state into it */
.sv-freeze { display: grid; align-content: center; gap: .4rem; padding: 0 var(--s4); }
.sv-freeze i { height: .375rem; border-radius: var(--r-pill); background: var(--line-2); transform-origin: left; animation: sv-line 6s var(--ease) infinite; }
.sv-freeze i:nth-child(1) { width: 70%; } .sv-freeze i:nth-child(2) { width: 88%; animation-delay: .15s; } .sv-freeze i:nth-child(3) { width: 52%; animation-delay: .3s; }
.sv-freeze span { position: absolute; right: .625rem; bottom: .5rem; padding: .15em .5em; border: 1px solid var(--yellow); border-radius: var(--r-chip); background: var(--well); color: var(--text); animation: sv-pop 6s var(--ease) infinite; }
@keyframes sv-line { 0% { transform: scaleX(0); opacity: .4; } 18%, 100% { transform: none; opacity: 1; } }
@keyframes sv-pop { 0%, 24% { transform: scale(.6); opacity: 0; } 32%, 100% { transform: none; opacity: 1; } }
.sv-chain { display: flex; align-items: center; justify-content: center; padding: 0 var(--s3); }
.sv-chain b { padding: .375rem .45rem; border: 1px solid var(--line-2); border-radius: var(--r-chip); background: var(--raised); font-weight: 500; animation: sv-pop 7s var(--ease) infinite; }
.sv-chain em { flex: 0 1 1.5rem; height: 2px; background: var(--text); transform-origin: left; animation: sv-line 7s var(--ease) infinite; }
.sv-chain :nth-child(2) { animation-delay: .5s; } .sv-chain :nth-child(3) { animation-delay: .5s; } .sv-chain :nth-child(4) { animation-delay: 1s; } .sv-chain :nth-child(5) { animation-delay: 1s; } .sv-chain :nth-child(6) { animation-delay: 1.5s; }
.sv-chain :nth-child(7) { animation-delay: 1.5s; border-color: var(--accent-line); }
.sv-drop { display: flex; align-items: flex-start; justify-content: center; gap: .75rem; padding-top: 1.5rem; }
.sv-drop i { width: .875rem; height: .875rem; border-radius: 50%; background: var(--text); }
.sv-drop i.x { background: none; border: 2px solid var(--bad); transform: translateY(1.75rem); opacity: .7; animation: sv-drop 6s var(--ease) infinite; }
.sv-drop i.x:nth-child(5) { animation-delay: .25s; }
.sv-drop span { position: absolute; right: .625rem; bottom: .5rem; color: var(--bad); }
@keyframes sv-drop { 0%, 20% { transform: none; opacity: 1; } 32% { transform: translateY(2rem); } 38%, 100% { transform: translateY(1.75rem); opacity: .7; } }
.sv-role { display: flex; flex-wrap: wrap; align-content: center; gap: .375rem; padding: 0 var(--s3); }
.sv-role span { flex: 1 0 100%; color: var(--muted); }
.sv-role b { padding: .25rem .5rem; border: 1px solid var(--line-2); border-radius: var(--r-chip); font-weight: 500; }
.sv-role b.off { opacity: .6; border-style: dashed; text-decoration: line-through; animation: sv-off 6s var(--ease) infinite; }
.sv-role b.off:last-child { animation-delay: .2s; }
@keyframes sv-off { 0%, 22% { opacity: 1; } 34%, 100% { opacity: .6; } }
.sv-cap { display: grid; align-content: center; padding: 0 var(--s4); }
.sv-cap div { position: relative; height: .75rem; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); }
.sv-cap div::after { content: ""; position: absolute; left: 78%; top: -.5rem; bottom: -.5rem; width: 2px; background: var(--yellow); }
.sv-cap i { position: absolute; inset: 0; right: 22%; border-radius: inherit; background: var(--text); transform-origin: left; animation: sv-fill 6s var(--ease) infinite; }
.sv-cap span { position: absolute; left: calc(78% - 1.5rem); bottom: .5rem; color: var(--muted); }
@keyframes sv-fill { 0% { transform: scaleX(0); } 40% { transform: scaleX(1.04); } 46%, 100% { transform: none; } }
.sv-once { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .375rem .5rem; padding: 0 var(--s3); }
.sv-once b { grid-column: 1; padding: .2rem .45rem; border: 1px solid var(--line-2); border-radius: var(--r-chip); font-weight: 500; animation: sv-pop 6s var(--ease) infinite; }
.sv-once b.dup { opacity: .6; border-style: dashed; text-decoration: line-through; animation: sv-dup 6s var(--ease) infinite; }
.sv-once em { grid-column: 2; grid-row: 1 / 3; height: 2px; background: var(--text); transform-origin: left; animation: sv-line 6s .3s var(--ease) infinite; }
.sv-once span { grid-column: 3; grid-row: 1 / 3; padding: .2rem .5rem; border: 1px solid var(--yellow); border-radius: var(--r-chip); color: var(--text); animation: sv-pop 6s .5s var(--ease) infinite; }
@keyframes sv-dup { 0%, 45% { opacity: 0; transform: translateX(-8px); } 55% { opacity: 1; transform: none; } 70%, 100% { opacity: .6; } }

/* ---------- connections ---------- */
.mode { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--panel); }
.mode-b { position: relative; z-index: 1; min-height: 2.25rem; padding: 0 1.125rem; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-size: var(--fs-ui); font-weight: 600; transition: color var(--base); }
.mode-b.is-on { color: var(--ink); }
.mode-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill); background: var(--yellow); transition: transform var(--step) var(--ease-spring); }
.mode:has([data-mode="real"].is-on) .mode-thumb { transform: translateX(100%); }
.mode-note { margin-bottom: var(--s5); font-size: var(--fs-ui); color: var(--muted); min-height: 2.8em; }
.conns { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.conn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2) var(--s3); align-content: start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-1); }
.conn.in:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.conn h3 { font-size: 1rem; align-self: center; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-width: 0; }
.conn h3 > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn dl { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s3); font-size: var(--fs-sm); line-height: 1.45; }
.conn dt { font: 600 .6875rem/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.conn dd { min-height: 2.9em; color: var(--muted); }
.conn-add { border-style: dashed; background: none; box-shadow: none; }
.conn-add .glyph rect { fill: var(--raised); stroke: var(--line-2); } .conn-add .glyph text { fill: var(--text); }
.conn-add p { grid-column: 1 / -1; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.conn-add a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
/* phones: one divided list instead of twelve boxed cards */
@media (max-width: 559.98px) {
  .conns { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
  .conn, .conn-add { padding: var(--s3) var(--s4); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
  .conn:last-child { border-bottom: 0; }
  .conn .glyph { width: 1.75rem; height: 1.75rem; }
  .conn dd { min-height: 0; }
}
.flip { flex: none; position: relative; display: inline-grid; height: 1.375rem; overflow: hidden; font: 500 .6875rem/1.375rem var(--mono); }
.flip span { grid-area: 1 / 1; padding: 0 .5em; border: 1px solid var(--line-2); border-radius: var(--r-chip); color: var(--muted); line-height: calc(1.375rem - 2px); white-space: nowrap; transition: transform var(--step) var(--ease), opacity var(--base); transition-delay: calc(var(--n, 0) * 45ms); }
.flip span:last-child { border-color: var(--accent-line); color: var(--text); transform: translateY(110%); opacity: 0; justify-self: end; }
.conns[data-mode="real"] .flip span:first-child { transform: translateY(-110%); opacity: 0; }
.conns[data-mode="real"] .flip span:last-child { transform: none; opacity: 1; }

/* ---------- cta + footer ---------- */
.cta { padding-bottom: var(--sec-y); }
.cta-box { position: relative; display: grid; justify-items: center; gap: var(--s4); padding: clamp(2rem, 6vw, 4.5rem) var(--s5); border: 1px solid var(--line); border-radius: var(--r-xl); background: radial-gradient(40rem 18rem at 50% 0%, var(--mesh-a), transparent 70%), var(--panel); box-shadow: var(--shadow-2); text-align: center; overflow: hidden; }
.cta-box img { border-radius: 10px; }
.cta-box h2 { font-size: var(--fs-h2); letter-spacing: -.03em; max-width: 18ch; }
.cta-box p { max-width: 36rem; font-size: var(--fs-lg); color: var(--muted); }
.cta-box .hero-cta { justify-content: center; align-items: center; margin-top: var(--s2); }
.cta-box .cta-soon { padding: .5rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r-pill); font: 500 var(--fs-ui)/1.4 var(--mono); color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: var(--s6) 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.foot-brand { display: grid; gap: var(--s2); margin-right: auto; }
.foot-brand .wordmark { width: 5.4rem; height: 1.5rem; }
.foot-note { font-size: var(--fs-sm); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.foot-links a { display: inline-flex; align-items: center; padding: .25rem 0; font-size: var(--fs-ui); color: var(--muted); text-decoration: none; transition: color var(--fast); }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reduced motion: end states, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .arch-link::after, .layer-chips b::after, .deal.just-moved::after, .gen::before, .live i::after, .dot::after { display: none; }
}
