/* =============================================================================
   RBNs Studio — AI & automation platform modules  (static/css/rbns_ai.css)

   Ported from the standalone "AI OS" page (v10 → v11) into the landing page's
   "For real businesses." section and the process walkthrough's step 02.

   Everything is scoped under `.rs-ai`, so none of these generic-sounding class
   names (workflow-*, autonomy-*, company-os-*) can leak into the rest of the
   page. Colour comes from the landing page's own --rs-* tokens (declared in
   rbns_studio.css) with literal fallbacks, so this file also works standalone.

   Self-contained like rbns_studio.css: no build step, no Tailwind.
   ============================================================================= */

.rs-ai {
  --ai-ink: var(--rs-ink, #0d1b2a);
  --ai-ink-2: var(--rs-ink-2, #45525f);
  --ai-muted: var(--rs-muted, #8a93a0);
  --ai-paper: var(--rs-paper, #fbfaf6);
  --ai-surface: #fff;
  --ai-line: var(--rs-line, rgba(13, 27, 42, .09));
  --ai-line-2: var(--rs-line-2, rgba(13, 27, 42, .14));
  --ai-mint: var(--rs-mint, #adffbe);
  --ai-mint-s: var(--rs-mint-s, #e2fbe8);
  --ai-green: var(--rs-green, #0e7a3f);
  --ai-violet: var(--rs-violet, #6600ff);
  --ai-violet-s: var(--rs-violet-s, #efe9ff);
  --ai-lilac: #c4adff;               /* violet, lifted for use on navy */
  --ai-night-tile: rgba(255, 255, 255, .07);
  --ai-night-line: rgba(255, 255, 255, .18);
  --ai-night-text: rgba(255, 255, 255, .7);
  --ai-ease: var(--rs-ease, cubic-bezier(.22, .61, .18, 1));
  --ai-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ai-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ai-body: 'DM Sans', system-ui, sans-serif;
  font-family: var(--ai-body);
  color: var(--ai-ink);
}
.rs-ai *, .rs-ai *::before, .rs-ai *::after { box-sizing: border-box; }
.rs-ai button { font-family: inherit; cursor: pointer; }
.rs-ai button:focus-visible, .rs-ai a:focus-visible { outline: 2px solid var(--ai-violet); outline-offset: 3px; }
.rs-ai [data-theme="dark"] button:focus-visible { outline-color: var(--ai-mint); }
.rs-ai p { margin: 0; }

/* ---- module switcher ------------------------------------------------------ */
.rs-ai-switch {
  display: flex; gap: 4px; width: max-content; max-width: 100%;
  padding: 5px; border-radius: 999px;
  background: var(--ai-surface); border: 1.5px solid var(--ai-line-2);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.rs-ai-switch::-webkit-scrollbar { display: none; }
.rs-ai-switch button {
  flex: none; scroll-snap-align: start;
  appearance: none; border: 0; background: transparent; color: var(--ai-ink-2);
  padding: 10px 17px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ai-ease), color .25s var(--ai-ease), box-shadow .25s var(--ai-ease), transform .25s var(--ai-bounce);
}
.rs-ai-switch button:hover { color: var(--ai-ink); background: rgba(13, 27, 42, .05); }
.rs-ai-switch button[aria-selected="true"] {
  background: var(--ai-ink); color: #fff; box-shadow: 3px 3px 0 0 var(--ai-mint);
  transform: translate(-1px, -1px);
}

/* ---- the board: one frame, five panels ------------------------------------ */
.rs-ai-board {
  position: relative; margin-top: 18px; overflow: hidden; isolation: isolate;
  border-radius: 28px; background: var(--ai-surface); border: 1.5px solid var(--ai-line-2);
  box-shadow: 0 40px 80px -52px rgba(13, 27, 42, .55), 10px 10px 0 0 var(--ai-mint);
  transition: background-color .6s var(--ai-ease), border-color .6s var(--ai-ease);
}
.rs-ai-board[data-theme="dark"] { background: var(--ai-ink); border-color: var(--ai-ink); }
.rs-ai-board[data-theme="soft"] { background: linear-gradient(160deg, #fff 0%, #fff 40%, var(--ai-mint-s) 100%); }

.rs-ai-panel { display: none; }
.rs-ai-panel.is-active {
  display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
  min-height: 540px;
  animation: rsAiPanelIn .6s var(--ai-ease) both;
}
@keyframes rsAiPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rs-ai-story {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: 40px 12px 36px 40px;
}
.rs-ai-story h3 {
  margin: 26px 0 0; font-family: var(--ai-display); font-weight: 700;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.04; letter-spacing: -.045em;
  color: var(--ai-ink); max-width: 15ch; text-wrap: balance;
  transition: opacity .3s var(--ai-ease), transform .3s var(--ai-ease);
}
/* One accent per heading: the hero's wobbly underline (rbns_studio.css
   .rs-type-word), in violet; lilac on navy, where violet would sink. The
   fallbacks keep the standalone page working without rbns_studio.css. */
.rs-ai .rs-wave {
  position: relative; display: inline-block; white-space: nowrap; color: var(--ai-violet);
  padding-bottom: calc(var(--rs-wave-gap, .04em) + var(--rs-wave-height, .22em));
}
.rs-ai .rs-wave::after {
  content: ""; position: absolute; left: .04em; right: .06em; bottom: 0;
  height: var(--rs-wave-height, .22em); background: currentColor;
  -webkit-mask: var(--rs-wave-svg, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 5.6 Q3 0.4 6 4 T12 4 T18 4 T24 5.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")) left center / var(--rs-wave-unit, .78em) 100% repeat-x;
  mask: var(--rs-wave-svg, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 5.6 Q3 0.4 6 4 T12 4 T18 4 T24 5.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")) left center / var(--rs-wave-unit, .78em) 100% repeat-x;
}
[data-theme="dark"] .rs-wave { color: var(--ai-lilac); }
.rs-ai-story > p { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ai-ink-2); max-width: 32ch; }
.rs-ai-story .rs-ai-note { margin-top: auto; padding-top: 26px; font-size: 12px; line-height: 1.55; color: var(--ai-muted); max-width: 34ch; }
.rs-ai-story h3.is-swapping { opacity: 0; transform: translateY(6px); }
.rs-ai-viz { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 28px 28px 28px 8px; }

[data-theme="dark"] .rs-ai-story h3 { color: #fff; }
[data-theme="dark"] .rs-ai-story > p { color: var(--ai-night-text); }
[data-theme="dark"] .rs-ai-story .rs-ai-note { color: rgba(255, 255, 255, .45); }

/* ---- pills: each module's own tabs ---------------------------------------
   v10 painted a progress fill *behind the label*, which swallowed half the
   word ("Dete|rministic", a blank "Sales" on phones). The timer now runs as a
   thin bar under the text, so the label is always fully legible. */
.rs-ai-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-ai-pills button {
  position: relative; overflow: hidden;
  appearance: none; border: 0; border-radius: 999px; padding: 9px 13px 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  background: rgba(13, 27, 42, .05); color: var(--ai-ink-2);
  transition: background-color .25s var(--ai-ease), color .25s var(--ai-ease), transform .25s var(--ai-bounce);
}
.rs-ai-pills button:hover { transform: translateY(-1px); color: var(--ai-ink); }
.rs-ai-pills button[aria-selected="true"] { background: var(--ai-ink); color: #fff; }
.rs-ai-pills button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
  transform: scaleX(var(--fill, 0)); transform-origin: left center;
}
.rs-ai-pills button[aria-selected="false"]::after { transform: scaleX(0); }
.rs-ai-pills button b { font-weight: 700; opacity: .55; margin-right: 6px; }
/* "Examples:" ahead of the sub-tabs, so they read as samples, not a menu */
.rs-ai-pills-label { flex-basis: 100%; margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--ai-muted); white-space: nowrap; }
[data-theme="dark"] .rs-ai-pills-label { color: rgba(255, 255, 255, .55); }
[data-theme="dark"] .rs-ai-pills button { background: rgba(255, 255, 255, .08); color: var(--ai-night-text); }
[data-theme="dark"] .rs-ai-pills button:hover { color: #fff; background: rgba(255, 255, 255, .13); }
[data-theme="dark"] .rs-ai-pills button[aria-selected="true"] { background: var(--ai-mint); color: var(--ai-ink); }
[data-ai-panel="agents"] .rs-ai-pills button[aria-selected="true"] { background: var(--ai-lilac); color: var(--ai-ink); }

/* ============================================================================
   1 · WORKFLOWS — the interactive automation canvas (navy)
   ============================================================================ */
.workflow-canvas {
  position: relative; width: 100%; height: 430px; overflow: hidden;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 1.05px, transparent 1.15px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.workflow-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.workflow-paths { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.wf-path { fill: none; stroke: var(--ai-night-line); stroke-width: 2.2; stroke-linecap: round; transition: stroke .35s, stroke-width .35s; }
.wf-path.active { stroke: rgba(173, 255, 190, .7); stroke-width: 2.6; }
.wf-path.related { stroke: var(--ai-mint); stroke-width: 3; }
.wf-particle { fill: var(--ai-mint); filter: drop-shadow(0 0 8px rgba(173, 255, 190, .8)); transition: opacity .2s; }
.wf-node {
  position: absolute; width: 96px; height: 118px; padding: 0; border: 0; background: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  transition: transform .3s var(--ai-bounce), opacity .3s;
}
.wf-node:hover, .wf-node:focus-visible { transform: translate(-2px, -4px); }
.wf-tile {
  width: 66px; height: 66px; flex: 0 0 66px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ai-night-tile); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s, box-shadow .3s var(--ai-ease), border-color .3s;
}
.wf-tile img { display: block; max-width: 36px; max-height: 36px; object-fit: contain; }
.wf-node.wf-ai .wf-tile { background: rgba(173, 255, 190, .1); border-color: rgba(173, 255, 190, .25); }
.wf-node.active .wf-tile { background: rgba(255, 255, 255, .12); border-color: transparent; box-shadow: 0 0 0 2px rgba(173, 255, 190, .6), 0 0 26px rgba(173, 255, 190, .16); }
.wf-node.related .wf-tile { background: rgba(255, 255, 255, .14); border-color: transparent; box-shadow: 4px 4px 0 0 var(--ai-mint); }
.wf-label { position: relative; padding: 2px 6px; border-radius: 6px; background: var(--ai-ink); width: max-content; max-width: 132px; font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ai-night-text); transition: color .25s; }
.wf-node:hover .wf-label, .wf-node.active .wf-label, .wf-node.related .wf-label { color: #fff; }
.workflow-canvas.is-tiny .wf-label { opacity: 0; }
/* phone layout: the canvas grows to fit a vertical flow, so no edge fade */
.workflow-canvas.is-phone { -webkit-mask-image: none; mask-image: none; background-size: 18px 18px; }
.workflow-canvas.is-phone .wf-tile { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; }
.workflow-canvas.is-phone .wf-tile img { max-width: 30px; max-height: 30px; }
.workflow-canvas.is-phone .wf-node { gap: 7px; }

.flow-tooltip, .autonomy-graph-tip {
  position: absolute; z-index: 10; width: 230px; padding: 13px 15px;
  border-radius: 12px; background: #fff; color: var(--ai-ink); border: 1.5px solid var(--ai-ink);
  box-shadow: 4px 4px 0 0 var(--ai-mint);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px);
  transition: opacity .16s, transform .16s var(--ai-ease), visibility 0s linear .16s;
}
.flow-tooltip.show, .autonomy-graph-tip.show { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s var(--ai-ease); }
.flow-tooltip strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.flow-tooltip span { display: block; font-size: 12px; line-height: 1.5; color: var(--ai-ink-2); }
.workflow-nodes.scene-enter, .workflow-paths.scene-enter { animation: rsAiSceneIn .45s var(--ai-ease) both; }
@keyframes rsAiSceneIn { from { opacity: .15; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* the compact build flow in "Let's work together" step 02 */
.rs-ai-mini { flex: 1 1 auto; min-height: 0; display: flex; background: var(--ai-ink); }
.rs-ai-mini .workflow-canvas { height: 100%; -webkit-mask-image: none; mask-image: none; }
.rs-ai-mini .rs-ai-mini-caption {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ai-night-text);
}
.rs-ai-mini .rs-ai-mini-caption i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-mint); box-shadow: 0 0 0 4px rgba(173, 255, 190, .15); animation: rsAiLit 2.4s ease-in-out infinite; }

/* ============================================================================
   2 · COMPANY AI — "Your Daily Driver", permission-aware answers
   ============================================================================ */
.company-os-app {
  width: 100%; max-width: 700px; min-height: 470px; display: flex; flex-direction: column;
  padding: 22px 24px 18px; border-radius: 20px; background: #fff;
  border: 1.5px solid var(--ai-line-2); box-shadow: 0 30px 60px -40px rgba(13, 27, 42, .45);
}
.company-os-toolbar { display: flex; align-items: center; gap: 12px; }
.company-os-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.company-os-title { font: 700 15px var(--ai-display); letter-spacing: -.03em; white-space: nowrap; }
.r10-profile { border: 0; background: none; padding: 0; cursor: default; }
.r10-profile-avatar {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ai-mint); color: var(--ai-ink); border: 1.5px solid var(--ai-ink);
  font-size: 11px; font-weight: 700;
}
.company-os-tabs { display: flex; gap: 4px; margin-top: 20px; }
.company-os-conversation {
  flex: none; height: 338px; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 18px 0 14px;
  /* older turns slide up under a soft fade instead of being cut off */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px); mask-image: linear-gradient(180deg, transparent 0, #000 34px);
}
.cos-turn { display: flex; flex-direction: column; flex: none; }
/* messages sit at the bottom, like any chat, and push older ones up */
.cos-turn:first-child { margin-top: auto; }
.cos-turn:not(.is-asked) .company-os-agent { opacity: 0; transform: translateY(6px); }
.cos-turn .company-os-agent { transition: opacity .3s var(--ai-ease), transform .3s var(--ai-ease); }
.cos-turn.is-asked .company-os-caret { display: none; }
/* extras (badge, chart, sources) arrive once the answer has finished typing */
.cos-turn .r10-access, .cos-turn .company-os-chart, .cos-turn .company-os-sources { display: none; }
.cos-turn.is-answered .r10-access, .cos-turn.is-answered .company-os-chart { display: block; animation: rsAiArrive .45s var(--ai-ease) both; }
.cos-turn.is-answered .r10-access { display: inline-flex; }
.cos-turn.is-answered .company-os-sources { display: flex; animation: rsAiArrive .45s .1s var(--ai-ease) both; }
.company-os-question {
  align-self: flex-end; max-width: 88%; margin: 0 0 12px 40px; padding: 11px 15px;
  border-radius: 14px 14px 4px 14px; background: var(--ai-paper); border: 1px solid var(--ai-line);
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ai-ink);
}
.company-os-caret { display: inline-block; width: 1.6px; height: 1em; margin-left: 3px; vertical-align: -.14em; background: var(--ai-violet); animation: rsAiBlink 1s steps(1) infinite; }
@keyframes rsAiBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.company-os-agent { display: flex; gap: 11px; align-items: flex-start; }
.company-os-agentmark { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--ai-mint-s); }
.company-os-agentmark img { width: 18px; height: 18px; display: block; }
.company-os-answer-area { flex: 1; min-width: 0; }
.company-os-answer-area > p { min-height: 1.6em; margin: 4px 0 10px; font-size: 14px; line-height: 1.6; color: var(--ai-ink-2); }
.r10-access {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: 0 0 14px; padding: 6px 11px;
  border-radius: 999px; background: var(--ai-violet-s); color: var(--ai-violet); font-size: 11.5px; font-weight: 600; line-height: 1.4;
}
.r10-lock { display: grid; place-items: center; }
.company-os-chart { margin: 0 0 12px; }
.company-os-chartheader { margin-bottom: 10px; font-size: 11.5px; font-weight: 700; color: var(--ai-ink); }
.company-os-bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; max-width: 300px; }
.company-os-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.company-os-barfill { width: 100%; max-width: 30px; min-height: 5px; border-radius: 6px 6px 2px 2px; background: rgba(13, 27, 42, .09); transition: height .5s var(--ai-ease); }
.company-os-bar:last-child .company-os-barfill { background: var(--ai-mint); box-shadow: inset 0 0 0 1.5px var(--ai-ink); }
.company-os-barlabel { font-size: 10px; color: var(--ai-muted); }
.company-os-horizontal { display: grid; gap: 8px; max-width: 360px; }
.company-os-horizontalrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 26px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ai-ink-2); }
.company-os-horizontalrow strong { text-align: right; color: var(--ai-ink); }
.company-os-track { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(13, 27, 42, .06); }
.company-os-fill { height: 100%; border-radius: 999px; background: rgba(14, 122, 63, .35); transform-origin: left; animation: rsAiGrow .7s var(--ai-ease) both; }
.company-os-horizontalrow:last-child .company-os-fill { background: var(--ai-green); }
@keyframes rsAiGrow { from { transform: scaleX(.08); } to { transform: none; } }
.company-os-sources { align-items: center; flex-wrap: wrap; gap: 10px; }
.company-os-sources > span:first-child { font-size: 11px; font-weight: 600; color: var(--ai-muted); }
.company-os-source-list { display: flex; gap: 8px; }
.company-os-source {
  width: 34px; height: 34px; padding: 6px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--ai-line-2);
  transition: transform .3s var(--ai-bounce), box-shadow .3s var(--ai-ease), border-color .3s;
}
.company-os-source:hover, .company-os-source:focus-visible { transform: translate(-2px, -2px); border-color: var(--ai-ink); box-shadow: 2px 2px 0 0 var(--ai-mint); }
.company-os-source img, .company-os-source svg { width: 20px; height: 20px; display: block; object-fit: contain; }
.company-os-source svg { color: var(--ai-green); }
.cos-turn.is-answered .company-os-source { animation: rsAiArrive .48s var(--ai-ease) both; animation-delay: var(--source-delay, 0ms); }
@keyframes rsAiArrive { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.company-os-source-note { font-size: 11px; color: var(--ai-muted); }
.company-os-compose {
  height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 7px 7px 7px 14px; border-radius: 12px; background: var(--ai-paper); border: 1px solid var(--ai-line);
  font-size: 13px; color: var(--ai-muted);
}
.company-os-send { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ai-ink); color: var(--ai-mint); font-size: 17px; }

/* ============================================================================
   3 · AI AGENTS — rules, judgment and autonomy (navy + lilac)
   ============================================================================ */
.autonomy-viz { position: relative; width: 100%; min-width: 0; overflow: hidden; }
.autonomy-graph {
  position: absolute; left: 0; top: 0; transform-origin: top left;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1.1px); background-size: 22px 22px;
}
.autonomy-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.autonomy-line { fill: none; stroke: var(--ai-night-line); stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.autonomy-line.loop { stroke: var(--ai-lilac); stroke-dasharray: 5 11; opacity: .75; }
.autonomy-line.related { stroke: var(--ai-lilac); stroke-width: 3; }
.autonomy-particle { fill: var(--ai-lilac); filter: drop-shadow(0 0 8px rgba(196, 173, 255, .85)); transition: opacity .2s; }
.autonomy-node {
  position: absolute; width: 118px; height: 92px; padding: 0; border: 0; background: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .3s var(--ai-bounce), opacity .3s;
}
.autonomy-node:hover, .autonomy-node:focus-visible { transform: translate(-2px, -4px); }
.autonomy-node.muted { opacity: .45; }
.autonomy-tile {
  width: 62px; height: 60px; display: grid; place-items: center; border-radius: 15px;
  background: var(--ai-night-tile); border: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s var(--ai-ease), background-color .3s, border-color .3s;
}
.autonomy-tile img { width: 34px; height: 34px; object-fit: contain; }
.autonomy-node.is-active .autonomy-tile { background: rgba(255, 255, 255, .12); border-color: transparent; box-shadow: 0 0 0 2px var(--ai-lilac), 0 0 24px rgba(196, 173, 255, .2); }
.autonomy-node.is-hovered .autonomy-tile { background: rgba(255, 255, 255, .14); border-color: transparent; box-shadow: 4px 4px 0 0 var(--ai-lilac); }
.autonomy-nodename { font-size: 12px; line-height: 1.25; font-weight: 600; color: rgba(255, 255, 255, .85); text-align: center; }
.autonomy-graph-tip { left: 24px; top: 6px; width: auto; max-width: 300px; font-size: 12.5px; font-weight: 600; line-height: 1.45; box-shadow: 4px 4px 0 0 var(--ai-lilac); }
.autonomy-graph.is-mobile .autonomy-node { width: 94px; height: 81px; gap: 5px; }
.autonomy-graph.is-mobile .autonomy-tile { width: 52px; height: 52px; border-radius: 13px; }
.autonomy-graph.is-mobile .autonomy-tile img { width: 29px; height: 29px; }
.autonomy-graph.is-mobile .autonomy-nodename { font-size: 11px; }

/* ============================================================================
   4 · QUESTIONS — the enterprise FAQ
   ============================================================================ */
.enterprise-questions { width: 100%; max-width: 680px; display: grid; gap: 8px; }
.rb8-faq-item { border-radius: 14px; background: #fff; border: 1.5px solid var(--ai-line); overflow: hidden; transition: border-color .25s, box-shadow .3s var(--ai-ease); }
.rb8-faq-item:hover { border-color: var(--ai-line-2); }
.rb8-faq-item.is-open { border-color: var(--ai-ink); box-shadow: 3px 3px 0 0 var(--ai-mint); }
.rb8-faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 18px; border: 0; background: transparent; text-align: left;
  font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; color: var(--ai-ink);
}
.rb8-faq-plus {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(13, 27, 42, .06); font-size: 19px; font-weight: 400; color: var(--ai-ink);
  transition: transform .3s var(--ai-bounce), background-color .25s;
}
.rb8-faq-item.is-open .rb8-faq-plus { transform: rotate(45deg); background: var(--ai-mint); }
.rb8-faq-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s var(--ai-ease), opacity .25s; }
.rb8-faq-item.is-open .rb8-faq-panel { opacity: 1; }
.rb8-faq-panel p { margin: 0 52px 18px 18px; font-size: 14px; line-height: 1.65; color: var(--ai-ink-2); }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1100px) {
  .rs-ai-panel.is-active { grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); }
}
@media (max-width: 900px) {
  .rs-ai-board { border-radius: 22px; box-shadow: 0 30px 60px -44px rgba(13, 27, 42, .5), 6px 6px 0 0 var(--ai-mint); }
  .rs-ai-panel.is-active { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rs-ai-story { padding: 24px 22px 4px; }
  .rs-ai-story h3 { margin-top: 20px; font-size: clamp(28px, 7vw, 38px); max-width: 18ch; }
  .rs-ai-story > p { margin-top: 10px; font-size: 14.5px; max-width: 52ch; }
  .rs-ai-story .rs-ai-note { display: none; }
  .rs-ai-viz { padding: 18px 14px 18px; }
    .company-os-app { min-height: 0; }
}
@media (max-width: 560px) {
  .rs-ai-switch button { padding: 9px 13px; font-size: 13px; }
  .rs-ai-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 22px); padding-right: 22px; }
  .rs-ai-pills::-webkit-scrollbar { display: none; }
  .rs-ai-pills button { flex: none; padding: 8px 12px 9px; font-size: 12px; }
  .rs-ai-pills-label { flex-basis: auto; align-self: center; margin: 0 2px 0 0; }
  .company-os-app { padding: 16px 14px 14px; border-radius: 16px; }
  .company-os-title { font-size: 13px; }
  .company-os-question { margin-left: 12px; max-width: 94%; font-size: 13px; }
  .company-os-answer-area > p { font-size: 13px; }
  .company-os-conversation { height: 330px; }
  .company-os-horizontalrow { grid-template-columns: 76px minmax(0, 1fr) 20px; gap: 6px; font-size: 10.5px; }
  .company-os-source { width: 30px; height: 30px; padding: 5px; }
  .rb8-faq-question { padding: 15px 14px; font-size: 14px; }
  .rb8-faq-panel p { margin: 0 18px 16px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-ai *, .rs-ai *::before, .rs-ai *::after { animation: none !important; transition-duration: .01ms !important; }
  .rs-ai-pills button::after { display: none; }
}
