/* fonts: self-hosted (no third-party requests), Instrument Sans + JetBrains Mono, SIL OFL */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/sh/fonts/InstrumentSans-italic-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/sh/fonts/InstrumentSans-italic-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/sh/fonts/InstrumentSans-normal-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/sh/fonts/InstrumentSans-normal-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/sh/fonts/JetBrainsMono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/sh/fonts/JetBrainsMono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/sh/fonts/JetBrainsMono-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/sh/fonts/JetBrainsMono-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0a1033;
  --night-2: #141c4d;
  --porcelain: #f4f5f9;
  --sheet: #ffffff;
  --ink: #15171e;
  --ink-soft: #4b5060;
  --steel: #6b7080;
  --line: #dde0e8;
  --cobalt: #3b5bff;
  --cobalt-deep: #2236c9;
  --cobalt-mist: #e8ecff;
  --mint: #14a37f;
  --paused: #9aa0a6;
  --danger: #c93a3f;
  --radius-window: 12px;
  --radius-control: 999px;
  --measure: 62ch;
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--cobalt-deep); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
kbd {
  display: inline-block; padding: 0.05em 0.45em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--sheet); color: var(--ink); white-space: nowrap;
}
img, svg { display: block; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- header: one dark glass bar on every page ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--night) 90%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.home .site-head { margin-bottom: -56px; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; color: #fff;
  text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn, .nav .btn:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.78em 1.4em; border-radius: var(--radius-control);
  font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: var(--cobalt); color: #fff; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--cobalt-deep); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--cobalt-deep); border-color: color-mix(in srgb, var(--cobalt) 45%, transparent); }
.btn.ghost:hover { background: var(--cobalt-mist); color: var(--cobalt-deep); }
.btn.small { padding: 0.45em 1em; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: #fff; isolation: isolate;
  display: grid; align-items: start; justify-items: center;
  background:
    radial-gradient(80% 55% at 50% 82%, rgba(59, 91, 255, 0.42), transparent 72%),
    radial-gradient(60% 50% at 85% 20%, rgba(122, 140, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #070b26 0%, var(--night) 55%, var(--night-2) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: calc(56px + 13svh) 16px 0; max-width: 1080px;
  pointer-events: none; }
.hero-copy a, .hero-copy .btn { pointer-events: auto; }
.hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 6.6rem); line-height: 1; letter-spacing: -0.032em; font-weight: 600;
  margin: 0 0 26px; font-stretch: 92%;
}
.hero h1 span { display: block; color: rgba(255, 255, 255, 0.5); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, 0.74); max-width: 54ch;
  margin: 0 auto 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .cta-row { justify-content: center; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cta-note { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin: 16px 0 0; }
/* phones: room under the text for the two cursors and their tags (hero3d.js keeps them inside this band) */
@media (max-width: 699px) { .hero-copy { padding-top: calc(44px + 6svh); padding-bottom: 230px; } }

.tag3d { position: absolute; left: 0; top: 0; z-index: 1; padding: 3px 10px; border-radius: 7px; font-size: 0.82rem;
  font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.6s, background 0.3s;
  will-change: transform; }
.tag3d.you { background: #f5f7ff; color: var(--night); }
.tag3d.agent { background: var(--cobalt); color: #fff; }
.paused .tag3d.agent, .tag3d.agent.paused { background: var(--paused); }
.hero.live .tag3d { opacity: 1; }

/* still picture when WebGL or motion is off */
.hero-fallback { display: none; position: absolute; inset: 0; z-index: 0; }
.hero.static .hero-fallback { display: block; }
.hero.static .hero-canvas { display: none; }
.hero-fallback .fb { position: absolute; width: clamp(54px, 7vw, 96px); height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
.hero-fallback .you { left: 22%; bottom: 14%; transform: rotate(-8deg); }
.hero-fallback .agent { right: 22%; bottom: 22%; transform: rotate(6deg); }

/* ---------- screen scene: the demo on a display that tilts up ---------- */
.screen-scene { position: relative; height: 230vh; color: #fff;
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 45%, #0d1440 100%); }
.screen-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(16px, 3svh, 36px); padding: 64px 16px 12px; overflow: hidden; }
.screen-intro { text-align: center; max-width: 760px; opacity: calc(0.35 + var(--p) * 0.65); }
.screen-intro h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 12px; }
.screen-intro p { color: rgba(255, 255, 255, 0.68); font-size: 1.12rem; margin: 0 auto; max-width: 50ch; }

.display {
  margin: 0; width: min(1080px, 94vw, (100svh - 400px) * 1.8);
  transform-origin: 50% 100%;
  transform: perspective(1800px) translateY(calc((1 - var(--p)) * 70px))
    rotateX(calc((1 - var(--p)) * 38deg)) scale(calc(0.82 + var(--p) * 0.18));
  will-change: transform;
}
.display-glass {
  padding: 10px; border-radius: 22px; background: linear-gradient(160deg, #2b3157, #10142e 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.5);
}
.display-stand { width: 18%; height: 18px; margin: 0 auto; border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #1b2148, #2a3163); opacity: var(--p); }

.desk {
  position: relative; aspect-ratio: 16 / 8.6; border-radius: 13px; overflow: hidden; user-select: none;
  color: var(--ink);
  background:
    radial-gradient(70% 90% at 15% 110%, #6f86ff 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 0%, #c3cbff 0%, transparent 65%),
    linear-gradient(135deg, #a9b6ff 0%, #e9ecff 55%, #f7f8fd 100%);
}
.win {
  position: absolute; background: rgba(255, 255, 255, 0.92); border-radius: var(--radius-window);
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.18), 0 22px 50px -20px rgba(21, 23, 30, 0.45);
  display: flex; flex-direction: column; overflow: hidden;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(21, 23, 30, 0.08);
  font-size: 0.8rem; font-weight: 500; color: var(--steel); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.win-bar .owner { margin-left: auto; font-size: 0.74rem; padding: 1px 8px; border-radius: 99px; }
.owner.you { background: #eef0f4; color: var(--ink-soft); }
.owner.agent { background: var(--cobalt-mist); color: var(--cobalt-deep); }
.paused .owner.agent { background: #eceef1; color: var(--paused); }

.desk { font-size: clamp(0.6rem, 0.95vw, 0.8rem); }
.desk .win { z-index: 2; }
.os-bar { position: absolute; left: 0; right: 0; top: 0; height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 0.92em;
  color: var(--ink); z-index: 3; }
.os-bar .os-clock { margin-left: auto; color: var(--ink-soft); }
.dock { position: absolute; left: 50%; bottom: 1.5%; translate: -50% 0; display: flex; gap: 8px; padding: 6px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.8); z-index: 1; }
.dock i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(140deg, #6f86ff, #2236c9); }
.dock i:nth-child(2) { background: linear-gradient(140deg, #5ee0b5, #14a37f); }
.dock i:nth-child(3) { background: linear-gradient(140deg, #ffd27a, #f29d38); }
.dock i:nth-child(4) { background: linear-gradient(140deg, #ff9aa8, #e0546b); }
.dock i:nth-child(5) { background: linear-gradient(140deg, #c7b5ff, #7c5cf0); }
.dock i:nth-child(6) { background: linear-gradient(140deg, #e3e6ee, #9aa0ad); }

/* you: video meeting */
.win.meet { left: 2.5%; top: 8.5%; width: 30%; height: 78%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; flex: 1.25; min-height: 0; background: #11152b; }
.tile { position: relative; border-radius: 8px; display: grid; place-items: center; min-height: 0; }
.tile.t1 { background: linear-gradient(135deg, #ffb4a2, #d9707a); animation: speak 6s infinite; }
.tile.t2 { background: linear-gradient(135deg, #a0c4ff, #5e74d6); animation: speak 6s 3s infinite; }
.tile.t3 { background: linear-gradient(135deg, #a8f0c6, #3fae8a); }
.tile.t4 { background: linear-gradient(135deg, #d6c8ff, #8a74ef); }
@keyframes speak { 0%, 45% { box-shadow: inset 0 0 0 2px #5ee0b5; } 50%, 100% { box-shadow: none; } }
.tile .face { width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85);
  color: var(--ink); font-weight: 600; font-size: 0.95em; }
.tile .nm { position: absolute; left: 6px; bottom: 5px; padding: 0 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: #fff;
  font-size: 0.85em; }
.meet-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; }
.msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.msgs p { margin: 0; line-height: 1.35; animation: rise 0.3s var(--ease-out); }
.msgs b { font-weight: 600; margin-right: 4px; }
.meet-input { min-height: 2.2em; padding: 0.45em 0.7em; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: #fff;
  white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -0.2em;
  animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* agent: web store */
.win.browser { left: 34.5%; top: 8.5%; width: 27.5%; height: 46%; }
.win-bar .url { flex: 1; min-width: 0; padding: 1px 8px; border-radius: 6px; background: rgba(21, 23, 30, 0.05); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orders-list { display: grid; padding: 6px; }
.o-row { display: grid; grid-template-columns: 0.8fr 1.5fr 0.9fr; gap: 6px; padding: 0.5em 0.6em; border-radius: 6px;
  transition: background 0.3s, box-shadow 0.3s, opacity 0.3s; }
.o-row b { text-align: right; font-weight: 600; }
.o-row + .o-row { border-top: 1px solid rgba(21, 23, 30, 0.05); }
.o-row.hl { background: var(--cobalt-mist); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.o-row.done { opacity: 0.45; }

/* agent: spreadsheet */
.win.sheet { left: 64%; top: 8.5%; width: 33.5%; height: 84%; }
.ribbon { display: flex; align-items: center; gap: 14px; padding: 5px 10px; border-bottom: 1px solid rgba(21, 23, 30, 0.07);
  color: var(--ink-soft); }
.rb-btn { margin-left: auto; padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.12s; }
.rb-btn.pressed { transform: scale(0.93); }
.grid { display: grid; padding: 0 0 4px; }
.g-row { display: grid; grid-template-columns: 2em 0.8fr 1.3fr 1fr; border-bottom: 1px solid rgba(21, 23, 30, 0.07); }
.g-row > span { padding: 0.32em 0.5em; min-height: 1.9em; border-right: 1px solid rgba(21, 23, 30, 0.06); white-space: nowrap; overflow: hidden; }
.g-row > span:first-child { color: var(--steel); text-align: center; background: #f6f7fa; }
.g-head > span { color: var(--steel); text-align: center; background: #f6f7fa; padding: 0.15em; min-height: 0; }
.g-row .h { font-weight: 600; }
.g-sum { border-top: 1.5px solid var(--ink); }
.cell { transition: box-shadow 0.2s; }
.cell.fresh { animation: cellpop 0.9s ease-out; }
@keyframes cellpop { from { background: rgba(20, 163, 127, 0.25); } to { background: transparent; } }
.cell.sel { box-shadow: inset 0 0 0 2px var(--mint); color: var(--steel); }
.g-sum .cell { font-weight: 600; }
.chart { display: flex; align-items: flex-end; gap: 10%; flex: 1; min-height: 40px; max-height: 110px; margin: 6px 14px 8px; padding: 0 6%;
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.3s; }
.chart.on { opacity: 1; }
.chart i { flex: 1; height: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6f86ff, var(--cobalt));
  transition: height 0.7s var(--ease-out); }
.chart.on i:nth-child(1) { height: 53%; transition-delay: 0.05s; }
.chart.on i:nth-child(2) { height: 35%; transition-delay: 0.15s; }
.chart.on i:nth-child(3) { height: 100%; transition-delay: 0.25s; }
.chart.on i:nth-child(4) { height: 64%; transition-delay: 0.35s; }

.toast { position: absolute; left: 34.5%; top: 60%; z-index: 4; display: flex; gap: 10px; align-items: flex-start; width: 27%;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.15), 0 18px 40px -16px rgba(21, 23, 30, 0.45);
  opacity: 0; translate: 16px 0; transition: opacity 0.35s, translate 0.45s var(--ease-out); }
.toast.on { opacity: 1; translate: 0 0; }
.toast .t-dot { flex: none; width: 1.8em; height: 1.8em; border-radius: 6px; background: linear-gradient(140deg, #6f86ff, #2236c9); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--ink-soft); }

.trace { margin-top: auto; border-top: 1px solid rgba(21, 23, 30, 0.08); padding: 7px 14px; font-family: var(--mono);
  font-size: clamp(0.62rem, 0.9vw, 0.74rem); color: var(--steel); background: rgba(244, 245, 249, 0.8); min-height: 2.4em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace b { color: var(--mint); font-weight: 600; }
.paused .trace b { color: var(--danger); }

.cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; will-change: transform; }
.cursor svg { filter: drop-shadow(0 3px 4px rgba(21, 23, 30, 0.3)); }
.cursor.agent { transition: transform 0.7s var(--ease-out); }
.cursor .tag { position: absolute; left: 18px; top: 22px; padding: 2px 9px; border-radius: 6px; font-size: 0.76rem;
  font-weight: 600; color: #fff; background: var(--cobalt); white-space: nowrap; }
.cursor.agent path { fill: var(--cobalt); }
.paused .cursor.agent path { fill: var(--paused); }
.paused .cursor.agent .tag { background: var(--paused); }
.cursor .ring { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--cobalt); opacity: 0; }
.cursor .ring.go { animation: ring 0.45s ease-out; }
@keyframes ring { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(1.6); } }
.cursor.human { transition: transform 0.25s linear; }

.desk-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: center;
  margin-top: 22px; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; opacity: var(--p); }
.desk-controls kbd { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.desk-controls .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.desk-controls .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 760px) {
  .screen-scene { height: auto; }
  .screen-sticky { position: static; height: auto; padding: 72px 16px 64px; }
  .screen-intro, .desk-controls, .display-stand { opacity: 1; }
  .display { transform: none; width: 100%; }
  .desk { aspect-ratio: auto; height: 780px; font-size: 0.78rem; }
  .win.meet { left: 4%; top: 5%; width: 92%; height: 29%; }
  .win.browser { left: 4%; top: 36%; width: 92%; height: 19%; }
  .win.sheet { left: 4%; top: 57%; width: 92%; height: 41%; }
  .toast { width: 70%; top: 5%; }
  .dock, .os-bar span:not(.os-clock) { display: none; }
  .kbd-hint { display: none; }
}

/* ---------- teaching labels + agent settings (coming soon) ---------- */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; }
.sec-head h2 { margin-bottom: 16px; }
.soon { order: -1; margin-bottom: 18px; padding: 4px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 600;
  background: var(--cobalt-mist); color: var(--cobalt-deep); }

.teach-stage { position: relative; width: 100%; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 90% 110%, #8296ff 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 0%, #d3d9ff 0%, transparent 65%),
    linear-gradient(135deg, #eceffe 0%, #c7d0ff 100%);
  box-shadow: 0 0 0 1px rgba(21, 23, 30, 0.06), 0 50px 90px -50px rgba(34, 54, 201, 0.55); }
.tc-canvas { position: absolute; left: 0; top: 0; width: 900px; height: 470px; transform-origin: 0 0; font-size: 14px;
  line-height: 1.4; color: var(--ink); }
.t-app { left: 40px; top: 36px; width: 820px; height: 398px; }
.t-app .menubar span[data-k="data"] { transition: background 0.3s; }
.t-tools { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(21, 23, 30, 0.07); }
.tb { padding: 5px 12px; border-radius: 7px; font-size: 12.5px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.12s, background 0.2s; }
.tb.pressed { transform: scale(0.94); background: var(--cobalt-mist); }
.t-table { padding: 6px 12px; font-size: 13px; }
.t-rows { display: grid; }
.t-row { display: grid; grid-template-columns: 1.1fr 0.9fr 1.5fr; gap: 10px; padding: 8px 10px; border-radius: 7px;
  transition: transform 0.6s var(--ease-out), background 0.3s, box-shadow 0.3s, opacity 0.4s, max-height 0.45s, padding 0.45s;
  max-height: 40px; overflow: hidden; }
.t-rows .t-row + .t-row { border-top: 1px solid rgba(21, 23, 30, 0.05); }
.t-head { color: var(--steel); font-size: 11.5px; }
.t-row span:last-child { color: var(--steel); }
.t-row.dup { background: #fff1f1; box-shadow: inset 0 0 0 1.5px #f08a8f; }
.t-row.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }

.t-cursor, .pv-cursor { position: absolute; left: 0; top: 0; z-index: 5; --agent: var(--cobalt); }
.t-cursor { transition: transform 0.75s var(--ease-out); }
.t-icon { position: absolute; display: block; width: 24px; height: 28px; filter: drop-shadow(0 3px 4px rgba(21, 23, 30, 0.3)); }
.t-icon svg { display: block; }
.t-cursor .ring { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--agent); opacity: 0; }
.t-cursor .ring.go { animation: ring 0.45s ease-out; }

.t-label { position: absolute; left: 22px; top: 22px; width: max-content; max-width: 250px; padding: 9px 12px 10px;
  border-radius: 4px 14px 14px 14px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--agent), 0 18px 34px -16px rgba(21, 23, 30, 0.5);
  opacity: 0; transform: translateY(4px) scale(0.96); transform-origin: 0 0; transition: opacity 0.25s, transform 0.3s var(--ease-out);
  pointer-events: none; }
.t-label.on { opacity: 1; transform: none; pointer-events: auto; }
.t-cursor.flip .t-label { left: auto; right: 14px; border-radius: 14px 4px 14px 14px; transform-origin: 100% 0; }
.t-name { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  color: #fff; background: var(--agent); }
.t-text { margin: 0; font-size: 13.5px; line-height: 1.4; }
.t-actions { display: flex; gap: 8px; margin-top: 10px; }
.t-actions[hidden] { display: none; }
.t-actions button { font: 600 12.5px/1 var(--font); padding: 7px 14px; border-radius: 99px; cursor: pointer; border: 0;
  transition: transform 0.12s, background 0.2s; }
.t-actions button:active { transform: scale(0.95); }
.t-yes { background: var(--agent); color: #fff; }
.t-no { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.t-no:hover { background: #f4f5f9; }
.t-wait { display: none; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--line); overflow: hidden; }
.t-label.waiting .t-wait { display: block; }
.t-wait i { display: block; height: 100%; background: var(--agent); transform-origin: 0 50%; }
.t-label.waiting .t-wait i { animation: waitbar var(--wait, 12s) linear forwards; }
.t-label.paused-wait .t-wait i { animation-play-state: paused; }
@keyframes waitbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* the settings app on a laptop */
.agents { position: relative; padding: clamp(80px, 12vw, 140px) 0 clamp(90px, 12vw, 150px); color: #fff; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 100%, rgba(59, 91, 255, 0.4), transparent 70%), var(--night); }
.agents h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; max-width: 20ch; }
.agents .intro { color: rgba(255, 255, 255, 0.7); font-size: 1.15rem; max-width: var(--measure); margin: 0 0 56px; }
.agents .soon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.agents-note { margin: 34px 0 0; text-align: center; color: rgba(255, 255, 255, 0.6); }

.laptop { position: relative; width: min(980px, 100%); margin: 0 auto; perspective: 2000px; }
.lp-tilt { transform: rotateX(6deg); transition: transform 0.6s var(--ease-out); }
.lp-lid { padding: 14px 14px 18px; border-radius: 22px 22px 8px 8px; background: linear-gradient(180deg, #2a2f4d, #12162e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.lp-screen { position: relative; overflow: hidden; border-radius: 10px; background: #f4f5f9; }
.lp-base { position: relative; height: 18px; margin: 0 -6%; border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #c9cede 0%, #9aa1b8 55%, #6d7491 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.lp-base span { position: absolute; left: 50%; top: 0; width: 14%; height: 7px; translate: -50% 0; border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #8d94ad, #a9afc4); }
.lp-shadow { height: 40px; margin: -6px 4% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px); }

.sh-app { display: grid; grid-template-columns: 200px 1fr; height: 100%; }
.sh-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: #eceef5;
  border-right: 1px solid var(--line); }
.sh-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin: 0 6px 18px; }
.sh-brand svg { width: 22px; height: 22px; }
.sh-cap { margin: 0 8px 4px; font-size: 11.5px; color: var(--steel); }
.sh-list { display: grid; gap: 2px; }
.sh-agent { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sh-agent:hover { background: rgba(21, 23, 30, 0.05); }
.sh-agent.on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(21, 23, 30, 0.3); }
.sh-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); flex: none; }
.sh-ico svg { width: 16px; height: 19px; }
.sh-who { display: grid; min-width: 0; }
.sh-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-who small { color: var(--steel); font-size: 11.5px; }
.sh-add { margin-top: 6px; padding: 8px; border: 1px dashed #c3c8d5; border-radius: 9px; background: none; color: var(--ink-soft);
  font: 500 12.5px var(--font); cursor: pointer; }
.sh-add:hover { border-color: var(--cobalt); color: var(--cobalt-deep); }
.sh-kill { margin-top: auto; display: grid; gap: 6px; padding: 8px; border: 0; border-radius: 9px; background: none; text-align: left;
  font: 11.5px var(--font); color: var(--steel); cursor: pointer; }
.sh-kill:hover { background: rgba(21, 23, 30, 0.05); color: var(--ink); }
.sh-kill b { font-weight: 600; }
.sh-kill span { display: flex; gap: 4px; }
.sh-kill kbd { font-size: 10.5px; }
.sh-main { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.sh-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sh-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #0d7a5f; }
.sh-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.sh-grid { flex: 1; display: grid; grid-template-columns: 1fr 236px; gap: 20px; padding: 18px 22px; min-height: 0; }
.sh-form { display: grid; align-content: start; gap: 14px; }
.sh-field { display: grid; gap: 6px; }
.sh-field > span { font-size: 11.5px; color: var(--steel); font-weight: 500; }
.sh-field input, .sh-field select { font: 500 13.5px var(--font); color: var(--ink); padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; }
.sh-field input:focus, .sh-field select:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.sh-designs, .sh-colors { display: flex; gap: 8px; }
.sh-design { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: #f4f5f9;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 0.2s, background 0.2s; }
.sh-design svg { width: 20px; height: 24px; }
.sh-design.on { background: #fff; box-shadow: inset 0 0 0 2px var(--cobalt), 0 4px 12px -6px rgba(34, 54, 201, 0.5); }
.sh-color { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s; }
.sh-color.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.sh-color:hover { transform: scale(1.1); }
.sh-switches { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.sh-switches label { display: flex; align-items: center; gap: 8px; }
.sh-switches input { accent-color: var(--cobalt); }
.sh-preview { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
.pv-desk { position: relative; border-radius: 12px; overflow: hidden; --agent: var(--cobalt);
  background: radial-gradient(80% 80% at 20% 100%, color-mix(in srgb, var(--agent) 55%, white), transparent 70%),
    linear-gradient(135deg, #eef0fb, #d9defa); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.4s; }
.pv-cursor { left: 34px; top: 46px; }
.pv-cursor .t-label { max-width: 160px; }
.sh-lock { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); }
.sh-lock svg { flex: none; width: 14px; height: 14px; margin-top: 1px; fill: var(--steel); stroke: var(--steel); stroke-width: 1.5; }
.sh-lock svg path { fill: none; }

/* teaching labels switched off: only the name tag shows */
.quiet .t-text { display: none; }
.quiet .t-label:not(.ask) { padding-bottom: 6px; }
.quiet .t-label:not(.ask) .t-name { margin-bottom: 0; }
.quiet .t-label.ask .t-text { display: block; }

@media (prefers-reduced-motion: reduce) {
  .t-cursor, .t-label, .t-row, .lp-tilt { transition: none; }
  .t-label.waiting .t-wait i { animation: none; }
}

/* laptop screen as a desktop: settings window, minimize to an icon, parking bay */
.app-canvas { position: absolute; left: 0; top: 0; width: 840px; height: 525px; transform-origin: 0 0; font-size: 13px;
  line-height: 1.4; color: var(--ink); overflow: hidden;
  background: radial-gradient(70% 90% at 15% 110%, #7f93ff 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 0%, #c9d1ff 0%, transparent 65%), linear-gradient(135deg, #b4c0ff 0%, #e8ebfd 60%, #f5f6fd 100%); }
.dt-bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 14px; padding: 0 12px;
  font-size: 11.5px; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dt-clock { margin-left: auto; color: var(--ink-soft); }
.dt-app { position: absolute; border-radius: 10px; background: rgba(255, 255, 255, 0.86); overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.18), 0 20px 40px -22px rgba(21, 23, 30, 0.45); }
.dt-title { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-size: 11px; color: var(--steel);
  border-bottom: 1px solid rgba(21, 23, 30, 0.07); }
.dt-title .dots i { width: 8px; height: 8px; }
.dt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 12px; background: var(--line); border: 1px solid var(--line); }
.dt-grid i { height: 26px; background: #fff; }
.dt-grid i:nth-child(3n + 2) { background: linear-gradient(90deg, #fff 20%, #eef1ff 20% 70%, #fff 70%); }
.dt-mail { display: grid; gap: 8px; padding: 12px; }
.dt-mail i { height: 30px; border-radius: 7px; background: linear-gradient(90deg, #e9ecf5 0 30%, transparent 30% 34%, #f1f3f8 34% 85%, transparent 85%); }

.sh-win { position: absolute; left: 40px; top: 34px; width: 760px; height: 462px; z-index: 3; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.25), 0 30px 70px -25px rgba(21, 23, 30, 0.55);
  transform-origin: 756px 447px; transition: transform 0.55s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.45s 0.08s; }
.app-canvas.min .sh-win { transform: scale(0.03); opacity: 0; pointer-events: none; }
.sh-titlebar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; flex: none; font-size: 12px; font-weight: 500;
  color: var(--steel); background: #f6f7fa; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 8px; }
.lights button, .lights i { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: block; }
.l-close { background: #ff5f57; }
.l-min { background: #febc2e; }
.l-max { background: #28c840; cursor: default; }
.lights button:hover { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2); }
.sh-win .sh-app { flex: 1; min-height: 0; height: auto; }
.sh-win .sh-side { padding-top: 14px; }
.sh-win .sh-head { padding: 12px 20px; }
.sh-win .sh-grid { padding: 14px 20px; }
.sh-win .sh-form { gap: 11px; }
.sh-status { border: 0; background: #e8f7f2; padding: 4px 10px; border-radius: 99px; font: 500 12px var(--font); cursor: pointer; }
.sh-status.off { background: #eceef1; color: var(--steel); }
.sh-status.off i { background: var(--paused); }
.sh-agent.parked .sh-ico { opacity: 0.5; }

.d-cursors { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.app-canvas.min .d-cursors { opacity: 1; }
.d-cur { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; pointer-events: none;
  transition: transform 1.1s var(--ease-out); }
.d-cur .t-icon { filter: drop-shadow(0 3px 4px rgba(21, 23, 30, 0.3)); }
.d-tag { position: absolute; left: 18px; top: 20px; padding: 1px 7px; border-radius: 6px; font: 600 10.5px var(--font); color: #fff;
  white-space: nowrap; transition: opacity 0.3s; }
.d-cur .ring { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff;
  opacity: 0; }
.d-cur .ring.go { animation: ring 0.45s ease-out; }
.d-cur.parked { pointer-events: auto; cursor: pointer; }
.d-cur.parked .d-tag { opacity: 0; }
.d-cur.parked:hover .d-tag, .d-cur.parked:focus-visible .d-tag { opacity: 1; top: -26px; left: -10px; }

.sh-bay { position: absolute; right: 70px; top: 462px; height: 38px; z-index: 3; display: flex; align-items: center; padding: 0 12px;
  border-radius: 19px 0 0 19px; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8); opacity: 0; transition: opacity 0.3s, width 0.4s var(--ease-out); }
.app-canvas.min .sh-bay { opacity: 1; transition-delay: 0.35s, 0s; }
.sh-bay.empty .bay-cap { opacity: 0.6; }
.bay-cap { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }
.sh-orb { position: absolute; left: 770px; top: 455px; width: 52px; height: 52px; z-index: 5; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 12px; cursor: pointer; background: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 12px 30px -8px rgba(34, 54, 201, 0.8);
  transform: scale(0); transition: transform 0.45s var(--ease-out); }
.app-canvas.min .sh-orb { transform: scale(1); transition-delay: 0.3s; }
.sh-orb::after { content: ""; position: absolute; inset: -6px; border-radius: 17px; border: 2px solid rgba(59, 91, 255, 0.5);
  animation: orbglow 2.4s ease-out infinite; }
@keyframes orbglow { from { opacity: 1; transform: scale(0.9); } to { opacity: 0; transform: scale(1.25); } }
.sh-orb svg { width: 52px; height: 52px; }
.orb-count { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mint);
  color: #fff; font: 700 11px/18px var(--font); box-shadow: 0 0 0 2px #fff; }
.orb-count[hidden] { display: none; }

.sh-pop { position: absolute; right: 16px; bottom: 80px; width: 290px; z-index: 6; padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.2), 0 24px 50px -18px rgba(21, 23, 30, 0.5); animation: popin 0.25s var(--ease-out); }
.sh-pop[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.pop-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
.pop-head b { font-size: 14px; }
.pop-head span { font-size: 11.5px; color: var(--steel); }
.pop-list { display: grid; gap: 2px; }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; }
.pop-row .sh-who { flex: 1; }
.pop-switch { position: relative; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 99px; background: #d5d9e3; cursor: pointer;
  transition: background 0.25s; }
.pop-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out); }
.pop-switch[aria-checked="true"] { background: var(--mint); }
.pop-switch[aria-checked="true"]::after { transform: translateX(14px); }
.pop-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pop-foot button { flex: 1; padding: 7px 10px; border: 0; border-radius: 8px; font: 600 12px var(--font); cursor: pointer;
  background: #eef0f5; color: var(--ink); }
.pop-foot .pop-main { background: var(--cobalt); color: #fff; }

.sh-hint { position: absolute; left: 74px; top: 52px; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  --agent: var(--cobalt); }
.sh-hint.on { opacity: 1; animation: hintbob 1.8s ease-in-out infinite; }
.app-canvas.min .sh-hint { opacity: 0; }
@keyframes hintbob { 50% { transform: translate(3px, 3px); } }
.sh-hint .t-label { max-width: 220px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .sh-win, .d-cur, .sh-orb, .sh-bay { transition: none; }
  .sh-orb::after, .sh-hint.on, .sh-pop { animation: none; }
}

/* ---------- exploded view: the three paths ---------- */
.stack-scene { position: relative; height: 340vh; background: var(--porcelain); }
.stack-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: 40px; width: min(1160px, 100% - 32px); margin-inline: auto; padding-top: 56px; }
.stack-copy h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 14px; }
.stack-copy .intro { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 26px; max-width: 46ch; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.paths li { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); opacity: 0.38;
  transition: opacity 0.45s, border-color 0.45s; }
.paths li h3 { margin: 0; font-size: 1.15rem; display: inline; }
.paths li code { margin-left: 10px; color: var(--cobalt-deep); font-size: 0.82rem; }
.paths li p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 48ch; }
.paths li .yours { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.paths li p { display: none; }
.stack-scene[data-step="1"] [data-path="1"],
.stack-scene[data-step="2"] [data-path="2"],
.stack-scene[data-step="3"] [data-path="3"] { opacity: 1; border-left-color: var(--cobalt); }
.stack-scene[data-step="1"] [data-path="1"] p,
.stack-scene[data-step="2"] [data-path="2"] p,
.stack-scene[data-step="3"] [data-path="3"] p { display: block; }
.stack-scene[data-step="0"] .paths li { opacity: 0.6; }

.stack-stage { position: relative; height: min(82svh, 700px); perspective: 2200px; display: grid; place-items: center; }
.stack-stage::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 62%; height: 12%; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 23, 30, 0.22), transparent); filter: blur(10px); }
.stack { position: relative; width: min(360px, 66vw); aspect-ratio: 4 / 3; transform-style: preserve-3d;
  transform: translateY(calc(var(--sep) * 90px)) rotateX(58deg) rotateZ(-38deg); }
.plate {
  position: absolute; inset: 0; border-radius: 20px; padding: 18px 20px;
  transform: translateZ(calc(var(--i) * (26px + var(--sep) * 160px)));
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(21, 23, 30, 0.07),
    0 40px 60px -30px rgba(21, 23, 30, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 0.45s, background 0.45s;
}
.plate-name { font-size: 0.82rem; font-weight: 600; color: var(--steel); }
.stack-scene[data-step="1"] .tree,
.stack-scene[data-step="2"] .app,
.stack-scene[data-step="3"] .input {
  background: rgba(248, 249, 255, 0.92);
  box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 0 0 6px rgba(59, 91, 255, 0.12), 0 40px 60px -30px rgba(34, 54, 201, 0.45);
}
.stack-scene[data-step="1"] .tree .plate-name,
.stack-scene[data-step="2"] .app .plate-name,
.stack-scene[data-step="3"] .input .plate-name { color: var(--cobalt-deep); }

.nodes { list-style: none; margin: 12px 0 0; padding: 0; font: 0.74rem/1.9 var(--mono); color: var(--ink-soft); }
.nodes .in { padding-left: 16px; }
.nodes .hit { color: var(--ink); }
.stack-scene[data-step="1"] .nodes .hit { color: var(--cobalt-deep); font-weight: 600; }
.mini-form { margin-top: 14px; display: grid; gap: 10px; }
.mini-form i { display: block; height: 22px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mini-form b { justify-self: start; font-size: 0.78rem; font-weight: 500; color: #fff; background: var(--cobalt);
  padding: 4px 14px; border-radius: 99px; }
.keys { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.keys i { height: 26px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--line); }

.pin { position: absolute; width: 26px; height: auto; transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.pin path { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.pin.agent path { fill: var(--cobalt); }
.pin.you path { fill: #fff; }
.pin.agent { opacity: 0; transform: translate(-30px, 30px); }
.tree .pin.agent { left: 58%; top: 76%; }
.app .pin.agent { left: 30%; top: 70%; }
.input .pin.agent { left: 52%; top: 26%; }
.input .pin.you { left: 52%; top: 26%; }
.stack-scene[data-step="1"] .tree .pin.agent,
.stack-scene[data-step="2"] .app .pin.agent,
.stack-scene[data-step="3"] .input .pin.agent { opacity: 1; transform: none; }
.stack-scene[data-step="3"] .input .pin.you { animation: borrow 2.4s var(--ease-out) infinite; }
.stack-scene[data-step="3"] .input .pin.agent { animation: borrowed 2.4s var(--ease-out) infinite; }
@keyframes borrow { 0%, 12% { transform: none; opacity: 1; } 20%, 62% { transform: translate(-70px, 24px); opacity: 0.35; } 72%, 100% { transform: none; opacity: 1; } }
@keyframes borrowed { 0%, 14% { opacity: 0; } 22%, 58% { opacity: 1; } 66%, 100% { opacity: 0; } }

@media (max-width: 900px) {
  .stack-scene { height: auto; --sep: 0.75 !important; }
  .stack-sticky { position: static; height: auto; grid-template-columns: 1fr; padding: 88px 0 40px; gap: 8px; }
  .stack-stage { height: 420px; order: -1; }
  .paths li, .stack-scene[data-step] .paths li { opacity: 1; border-left-color: var(--line); }
  .paths li p { display: block; }
}

/* ---------- content sections ---------- */
section.block { padding: clamp(80px, 12vw, 140px) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 16px; max-width: 20ch; }
.block .intro { color: var(--ink-soft); font-size: 1.15rem; max-width: var(--measure); margin: 0 0 52px; }

.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 3.4rem; font-weight: 600; line-height: 1;
  letter-spacing: -0.05em; color: var(--cobalt); margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.01em; }
.steps p { margin: 0 0 14px; color: var(--ink-soft); }
pre.cmd { margin: 0; background: var(--night); color: #e9ecf3; padding: 13px 16px; border-radius: 12px;
  overflow-x: auto; font-size: 0.84rem; }
pre.cmd .dim { color: #7f88b5; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.clients { display: flex; flex-wrap: wrap; gap: 10px; }
.clients span { padding: 9px 18px; border-radius: 99px; font-weight: 500; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--line); }

/* uses: animated showcase of jobs to hand off */
.showcase { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 56px; align-items: center; }
.show-tabs { display: grid; min-width: 0; }
.show-tabs button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 18px 0 16px; font: 500 1.12rem/1.3 var(--font); letter-spacing: -0.01em; color: var(--steel); cursor: pointer;
  transition: color 0.25s; }
.show-tabs button:last-child { border-bottom: 1px solid var(--line); }
.show-tabs button:hover { color: var(--ink); }
.show-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.show-tabs .bar { display: block; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden;
  visibility: hidden; }
.show-tabs [aria-selected="true"] .bar { visibility: visible; }
.show-tabs .bar i { display: block; height: 100%; width: 100%; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); }
.showcase.auto [aria-selected="true"] .bar i { animation: tabfill 10s linear forwards; }
.showcase.off [aria-selected="true"] .bar i { animation-play-state: paused; }
.showcase:not(.auto) [aria-selected="true"] .bar i { transform: scaleX(1); }
@keyframes tabfill { to { transform: scaleX(1); } }

.show-stage { position: relative; width: 100%; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 10;
  background:
    radial-gradient(70% 90% at 10% 110%, #8296ff 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 0%, #d3d9ff 0%, transparent 65%),
    linear-gradient(135deg, #b7c2ff 0%, #eceffe 55%, #f7f8fd 100%);
  box-shadow: 0 0 0 1px rgba(21, 23, 30, 0.06), 0 50px 90px -50px rgba(34, 54, 201, 0.55); }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s 0.45s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity 0.45s; }
.sc-canvas { position: absolute; left: 0; top: 0; width: 720px; height: 450px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  font-size: 13px; line-height: 1.4; color: var(--ink); }
.sc-canvas .bubble { position: absolute; left: 24px; top: 22px; max-width: 600px; margin: 0; padding: 10px 16px;
  border-radius: 18px 18px 18px 6px; background: var(--cobalt); color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: 0 12px 30px -14px rgba(34, 54, 201, 0.8); }

.mw { position: absolute; background: rgba(255, 255, 255, 0.95); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.18), 0 24px 50px -24px rgba(21, 23, 30, 0.45); }
.mw-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-size: 11.5px; font-weight: 500;
  color: var(--steel); border-bottom: 1px solid rgba(21, 23, 30, 0.07); }
.mw-bar .dots i { width: 8px; height: 8px; }
.mw-bar .owner { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.owner.a1 { background: var(--cobalt-mist); color: var(--cobalt-deep); }
.owner.a2 { background: #dcf5ee; color: #0d7a5f; }
.mw-body { padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.lbl { color: var(--steel); font-size: 11.5px; margin-top: 4px; }
.muted { color: var(--steel); font-size: 11.5px; }
.inp { min-height: 30px; padding: 6px 10px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s, background 0.3s; white-space: nowrap; overflow: hidden; }
.inp.typing, .inp.filled { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cobalt) 60%, white), 0 0 0 3px rgba(59, 91, 255, 0.12);
  background: #f8f9ff; }
.btnm { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--cobalt); color: #fff; font-weight: 500;
  font-size: 12px; transition: transform 0.12s, background 0.3s; }
.btnm.pressed { transform: scale(0.93); }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }

.tbl { display: grid; margin-top: 8px; font-size: 12px; }
.tr { display: grid; grid-template-columns: 1.6fr 0.6fr 0.9fr; gap: 8px; padding: 7px 8px; border-radius: 6px;
  transition: background 0.3s, box-shadow 0.3s, opacity 0.3s; }
.tr.th { color: var(--steel); font-size: 11px; padding-bottom: 4px; }
.tbl .tr:not(.th) + .tr:not(.th) { border-top: 1px solid rgba(21, 23, 30, 0.05); }
.tr.hl, .ticket.hl { background: var(--cobalt-mist); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.tr.done { opacity: 0.45; }
.dst .c { min-height: 18px; border-radius: 4px; background: rgba(21, 23, 30, 0.04); padding: 0 4px; }
.c.fresh { animation: fresh 0.9s ease-out; }
@keyframes fresh { from { background: rgba(59, 91, 255, 0.28); } to { background: rgba(21, 23, 30, 0.04); } }
.pdf-from { font-size: 15px; }
.pdf-total { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.pdf { height: calc(100% - 30px); display: flex; flex-direction: column; }
.ok-badge { color: var(--mint); font-weight: 600; opacity: 0; transition: opacity 0.4s; }
.ok-badge.on { opacity: 1; }

.tickets { position: absolute; left: 24px; top: 96px; width: 292px; display: grid; gap: 14px; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.18), 0 16px 30px -20px rgba(21, 23, 30, 0.45);
  border-left: 5px solid #ffb547; transition: background 0.3s, box-shadow 0.3s, opacity 0.4s; }
.ticket .route { font-weight: 600; }
.ticket b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 15px; }
.ticket .stamp { position: absolute; right: 92px; top: 50%; translate: 0 -50%; rotate: -8deg; padding: 2px 10px;
  border: 2px solid var(--mint); border-radius: 6px; color: var(--mint); font-weight: 700; font-size: 13px; background: #fff;
  opacity: 0; scale: 1.6; transition: opacity 0.25s, scale 0.3s var(--ease-out); }
.ticket.filed { opacity: 0.6; }
.ticket.filed .stamp { opacity: 1; scale: 1; }
.counter { display: flex; align-items: center; gap: 5px; margin-right: auto; color: var(--steel); font-size: 12px; }
.counter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s; }
.counter i.on { background: var(--mint); }
.counter span { margin-left: 4px; }

.settings { gap: 4px; }
.set { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 8px;
  transition: background 0.3s, box-shadow 0.3s; }
.switch { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #d5d9e3; transition: background 0.25s; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out); }
.switch.on { background: var(--mint); }
.switch.on::after { transform: translateX(14px); }
.set.fail { box-shadow: inset 0 0 0 1.5px var(--danger); background: #fff4f4; }
.btnm.fail { background: #c4c8d2; box-shadow: 0 0 0 2px var(--danger); }
.set.pass { box-shadow: inset 0 0 0 1.5px var(--mint); background: #f2fbf8; }
.report { position: absolute; padding: 16px 18px; border-radius: 12px; background: #fff; min-height: 120px;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.18), 0 24px 50px -24px rgba(21, 23, 30, 0.45); }
.report b { font-size: 14px; }
.report ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.report li { position: relative; padding-left: 26px; animation: rise 0.35s var(--ease-out); }
.report li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; }
.report li.pass::before { content: "✓"; background: var(--mint); }
.report li.fail::before { content: "!"; background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.menubar { display: flex; gap: 4px; padding: 4px 8px; border-bottom: 1px solid rgba(21, 23, 30, 0.07); font-size: 12.5px; }
.menubar span { padding: 4px 10px; border-radius: 6px; }
.menu { position: absolute; left: 178px; top: 66px; display: grid; min-width: 190px; padding: 6px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.2), 0 18px 40px -16px rgba(21, 23, 30, 0.4); opacity: 0; translate: 0 -6px;
  transition: opacity 0.2s, translate 0.2s; z-index: 2; }
.menu.on { opacity: 1; translate: 0 0; }
.menu span { padding: 7px 10px; border-radius: 6px; }
.menu span[data-k="prefs"] { background: var(--cobalt); color: #fff; }
.prefs { position: absolute; left: 150px; top: 84px; width: 372px; padding: 16px 18px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(21, 23, 30, 0.2), 0 24px 50px -20px rgba(21, 23, 30, 0.45);
  opacity: 0; scale: 0.96; transition: opacity 0.3s, scale 0.3s var(--ease-out); }
.prefs.on { opacity: 1; scale: 1; }
.prefs b { display: block; margin-bottom: 6px; font-size: 14px; }
.set.point { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 6px rgba(59, 91, 255, 0.15); background: var(--cobalt-mist);
  animation: pointpulse 1.4s ease-in-out infinite; }
@keyframes pointpulse { 50% { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 11px rgba(59, 91, 255, 0.08); } }
.answer { position: absolute; right: 18px; bottom: 16px; max-width: 300px; margin: 0; padding: 10px 14px; border-radius: 16px 16px 6px 16px;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; opacity: 0; translate: 0 8px;
  transition: opacity 0.4s, translate 0.4s var(--ease-out); }
.answer.on { opacity: 1; translate: 0 0; }

.sheet .tr { grid-template-columns: 1.6fr 1fr; }
.sheet .c { border-radius: 4px; padding: 0 6px; }
.orders { gap: 8px; }
.order { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s; }
.order .pill { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #fff1d9; color: #9a5b00; }
.order.done { background: #f2fbf8; }
.order.done .pill { background: #dcf5ee; color: #0d7a5f; }

.s-cursor { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; transition: transform 0.6s var(--ease-out);
  will-change: transform; }
.s-cursor svg { width: 18px; height: 25px; filter: drop-shadow(0 3px 4px rgba(21, 23, 30, 0.3)); }
.s-cursor path { fill: var(--cobalt); stroke: #15171e; stroke-width: 1.4; stroke-linejoin: round; }
.s-cursor.two path { fill: var(--mint); }
.s-cursor.you path { fill: #fff; }
.s-cursor .tag { position: absolute; left: 15px; top: 20px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  color: #fff; background: var(--cobalt); white-space: nowrap; }
.s-cursor.two .tag { background: var(--mint); }
.s-cursor.you .tag { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.s-cursor .ring { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--cobalt); opacity: 0; }
.s-cursor.two .ring { border-color: var(--mint); }
.s-cursor .ring.go { animation: ring 0.45s ease-out; }

.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: rgba(34, 54, 201, 0.18); stroke-width: 2; stroke-dasharray: 6 8; transition: stroke 0.3s; }
.wires path.lit { stroke: var(--cobalt); animation: flow 0.9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.app-chip { position: absolute; translate: -50% -50%; padding: 10px 18px; border-radius: 99px; background: #fff; font-weight: 600;
  font-size: 14px; white-space: nowrap; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(21, 23, 30, 0.5);
  transition: box-shadow 0.3s, color 0.3s; }
.app-chip.lit { color: var(--cobalt-deep); box-shadow: 0 0 0 2px var(--cobalt), 0 14px 30px -14px rgba(34, 54, 201, 0.6); }
.hub { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 8px; padding: 18px 22px 14px; border-radius: 22px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(34, 54, 201, 0.7); font-weight: 600;
  transition: transform 0.25s var(--ease-out); }
.hub svg { width: 52px; height: 52px; }
.hub.pulse { transform: scale(1.06); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .show-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 4px;
    scrollbar-width: none; }
  .show-tabs button, .show-tabs button:last-child { border: 0; padding: 8px 14px; border-radius: 99px; font-size: 0.95rem;
    background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
  .show-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
  .show-tabs .bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .s-cursor, .scene, .menu, .prefs, .answer, .ticket .stamp { transition: none; }
  .wires path.lit, .set.point, .report li { animation: none; }
}

/* safety */
.chat { position: sticky; top: 96px; margin: 0; border-radius: 20px; overflow: hidden; background: var(--porcelain);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -45px rgba(10, 16, 51, 0.45); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 0.82rem; font-weight: 500;
  color: var(--steel); background: var(--sheet); border-bottom: 1px solid var(--line); }
.chat-body { display: grid; gap: 14px; padding: 24px 22px 28px; }
.msg { margin: 0; max-width: 86%; padding: 12px 16px; line-height: 1.5; font-size: 0.97rem; }
.msg.you { justify-self: end; background: var(--cobalt); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.agent { justify-self: start; background: var(--sheet); border-radius: 18px 18px 18px 6px;
  box-shadow: 0 0 0 1px var(--line); }
.msg.agent p { margin: 0; }
.msg.agent p + p { margin-top: 8px; }
.msg .who { display: block; font-size: 0.78rem; font-weight: 600; color: var(--cobalt-deep); margin-bottom: 4px; }
@media (max-width: 860px) { .chat { position: static; } .msg { max-width: 94%; } }

.safety-block { background: var(--sheet); }
.safety { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules li:first-child { padding-top: 0; }
.rules strong { display: block; font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.rules span { color: var(--ink-soft); }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; gap: 40px; } }

.price-notes { color: var(--steel); margin-top: 18px; font-size: 0.95rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 1.1rem; list-style: none; display: flex;
  justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--cobalt);
  transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* final call */
.closing { padding: clamp(110px, 16vw, 190px) 0; text-align: center; color: #fff;
  background: radial-gradient(90% 80% at 50% 120%, rgba(59, 91, 255, 0.5), transparent 65%), var(--night); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.045em; line-height: 1; margin: 0 auto 36px; }
.closing h2 span { display: block; color: rgba(255, 255, 255, 0.5); }
.closing .cta-row { justify-content: center; }
.closing .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.closing .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* footer */
.site-foot { padding: 32px 0 56px; color: var(--steel); font-size: 0.86rem; background: var(--porcelain); }
.home .site-foot { background: var(--night); color: rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot-legal { max-width: 62ch; line-height: 1.5; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--cobalt); }
.home .site-foot a:hover { color: #fff; }

/* dialog */
dialog { border: 0; border-radius: 20px; padding: 30px; max-width: 460px; width: calc(100% - 32px);
  box-shadow: 0 40px 100px -20px rgba(10, 16, 51, 0.55); color: var(--ink); }
dialog::backdrop { background: rgba(10, 16, 51, 0.5); backdrop-filter: blur(6px); }
dialog h3 { margin: 0 0 10px; font-size: 1.3rem; }
dialog p { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- inner pages (docs, download, legal) ---------- */
.page { padding: 80px 0 110px; }
.page h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 16px; }
.page .sub { color: var(--ink-soft); font-size: 1.15rem; max-width: var(--measure); margin: 0 0 48px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 9px; font-size: 0.94rem; }
.toc a { color: var(--steel); text-decoration: none; }
.toc a:hover { color: var(--cobalt-deep); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; letter-spacing: -0.03em; margin: 60px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #2b3040; }
.prose pre { background: var(--night); color: #e9ecf3; padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--steel); font-weight: 600; }
.prose td code { white-space: nowrap; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl { background: var(--sheet); border-radius: 24px; padding: 34px; box-shadow: 0 0 0 1px var(--line); }
.dl.match { box-shadow: 0 0 0 1.5px var(--cobalt), 0 30px 60px -30px rgba(34, 54, 201, 0.35); }
.dl h2 { margin: 0 0 4px; font-size: 1.8rem; letter-spacing: -0.03em; }
.dl .req { color: var(--ink-soft); margin: 0 0 24px; }
.dl .links { display: flex; flex-wrap: wrap; gap: 10px; }
.dl .yours-os { color: var(--cobalt-deep); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.notice { margin-top: 14px; font-size: 0.9rem; color: var(--steel); }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .screen-scene { height: auto; }
  .screen-sticky { position: static; height: auto; padding: 96px 16px; }
  .screen-scene { --p: 1 !important; }
  .stack-scene { height: auto; --sep: 1 !important; }
  .stack-sticky { position: static; height: auto; padding: 96px 0; }
  .paths li, .stack-scene[data-step] .paths li { opacity: 1; }
  .paths li p { display: block; }
  .pin, .btn, .faq summary::after { transition: none; }
  .stack-scene[data-step="3"] .input .pin.you, .stack-scene[data-step="3"] .input .pin.agent { animation: none; }
}

/* ---------- Odoo shop: platform choice above the plans ---------- */
.platform-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 26px; }
.platform-pick .pp-label { color: var(--ink-soft); margin-right: 4px; }
.platform-pick button {
  font: 600 0.95rem/1 var(--font); padding: 0.7em 1.25em; border-radius: var(--radius-control); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--cobalt) 45%, transparent); background: transparent; color: var(--cobalt-deep);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.platform-pick button:hover { background: var(--cobalt-mist); }
.platform-pick button[aria-checked="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.steps-plain { max-width: var(--measure); padding-left: 1.2em; margin: 0 0 32px; }
.steps-plain li { margin: 0 0 10px; }
.downloads + h2 { margin-top: 56px; }

/* ---------- plans: Solo / Crew / Fleet, counted in agents ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; border-radius: 20px;
  background: var(--sheet); border: 1px solid var(--line);
}
.plan.pick { border-color: var(--cobalt); box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--cobalt) 55%, transparent); }
.plan-agents { display: flex; align-items: center; gap: 6px; height: 34px; margin-bottom: 6px; }
.plan-agents svg { width: 20px; height: 28px; }
.plan-agents .times { margin-left: 6px; font-weight: 600; color: var(--ink-soft); font-size: 1.05rem; }
.plan h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan.pick h3 { color: var(--cobalt-deep); }
.plan-for { margin: 0; color: var(--ink-soft); min-height: 3.2em; }  /* two lines, so the prices line up */
.plan-price { margin: 4px 0 6px; color: var(--steel); font-size: 0.92rem; }
.plan-price .amount { display: block; color: var(--ink); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 600;
  letter-spacing: -0.05em; line-height: 1.05; }
.plan-list { list-style: none; padding: 14px 0 0; margin: 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.plan-list li { padding-left: 24px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.included { margin-top: 34px; padding: 28px 30px; border-radius: 20px; background: var(--cobalt-mist); }
.included h3 { margin: 0 0 16px; font-size: 1.1rem; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.included li { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.included li strong { display: block; color: var(--ink); }
@media (max-width: 900px) {
  .plans, .included ul { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
}
.byo { margin: 22px 0 0; padding: 14px 18px; background: var(--sheet); border-left: 3px solid var(--cobalt); border-radius: 0 12px 12px 0; color: var(--ink-soft); max-width: 80ch; }
.byo strong { color: var(--ink); }
