/* Temporary light palette preview; night.css remains the dark source. */
/* Local dark-surface study. The handoff and its timing stay unchanged. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/instrument-sans-latin-400-normal.woff2?v=591dcb40a8c0') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/instrument-sans-latin-500-normal.woff2?v=591dcb40a8c0') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/instrument-sans-latin-600-normal.woff2?v=591dcb40a8c0') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: 'Instrument Sans', Arial, sans-serif;
  --paper: #fafafa;
  --page-content-width: 1100px;
  --page-gutter: 40px;
  --page-inset: max(var(--page-gutter), calc((100vw - var(--page-content-width)) / 2));
  --card-inset: 24px;
  color: #120f11;
  background: var(--paper);
}
body {
  background: var(--paper);
}
.handoff-preview {
  max-width: calc(var(--page-content-width) + 2 * var(--page-gutter));
  padding-top: 20px;
  padding-inline: var(--page-gutter);
}
@media (max-width: 800px) {
  :root {
    --page-gutter: 24px;
  }
}
.handoff {
  margin-top: 20px;
}
/* Hold the opening composition for one screen before the walkthrough begins. */
.product-intro {
  top: 24px;
}
.source-workspace {
  top: 32px;
}
.product-story {
  padding-top: max(660px, calc(100svh - 40px));
  padding-inline: var(--page-inset);
}
.handoff-note {
  left: auto;
  inset-inline-start: var(--page-inset);
}
@media (max-width: 580px) {
  .handoff-note {
    inset-inline-start: auto;
  }
}
@media (max-width: 620px) {
  .product-intro {
    top: auto;
    min-height: max(620px, calc(100svh - 76px));
  }
  .source-workspace {
    top: 320px;
  }
  .product-story {
    padding-top: 64px;
  }
}
.brand-lockup,
.preview-header .brand {
  display: flex;
  align-items: center;
}
.brand-lockup {
  gap: 13px;
}
.preview-header .brand {
  gap: 9px;
  color: #0d0a0c;
  font-size: 24px;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.beta-label {
  padding: 5px 7px 4px;
  border-radius: 4px;
  color: #4a121f;
  background: #4a121f14;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.preview-header nav > a {
  color: #5f595f;
  font-size: 14px;
  line-height: 20px;
}
.preview-header .download-button {
  flex: none;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: #fff;
  background: #0d0d0f;
  border: 1px solid #0d0d0f;
  box-shadow: none;
}
.preview-header .download-button svg {
  flex: none;
  width: 16px;
  height: 18px;
}
.product-intro p,
.product-copy p,
.handoff-note p {
  color: #5b545c;
}
.hero > h1 {
  font-weight: 600;
}
.hero .product-intro p,
.agent-destination-label,
.tool-avatar {
  color: #252023;
  font-size: 16px;
  font-weight: 500;
}
.hero-copy-lead {
  display: block;
  white-space: nowrap;
}
.inline-agent {
  white-space: nowrap;
}
.agent-avatar {
  position: relative;
  display: inline-block;
  vertical-align: -0.24em;
  margin-right: 5px;
  width: 1.2em;
  height: 1.2em;
  overflow: hidden;
  border-radius: 0.3em;
  background: #d6d6d6;
  box-shadow: inset 0 0 0 1px #0000000d;
}
.agent-avatar > * {
  position: absolute;
  inset: 0;
  margin: auto;
}
.agent-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.agent-avatar-codex img {
  transform: scale(1.24);
}
.claude-spark {
  width: 72%;
  height: 72%;
  background: #a84626;
  mask: url('./avatars/claude-spark.svg?v=591dcb40a8c0') center / contain no-repeat;
}
.workspace {
  background: linear-gradient(120deg, #f5f5f6, #e9e8ea);
  border-color: #d4d1d6;
}
.source-workspace {
  background: radial-gradient(
    ellipse at 85% 100%,
    #e1dae1 0,
    #edecee 48%,
    #fafafa 90%
  );
  border: 0;
  border-bottom: 1px solid #cdc8cf;
  border-radius: 0 0 0 28px;
}
.source-workspace .chat-footer {
  justify-content: flex-end;
  background: linear-gradient(transparent, #eceaed 55%);
}
.source-workspace .handoff-prompt {
  background: #dbd9dd;
  color: #211d23;
}
.source-workspace .file-chip {
  background: #e4e2e6;
  border-color: #cdc5cf;
}
.source-workspace .chat-crop {
  bottom: 0;
  mask-image: linear-gradient(transparent, #ffffff 24px, #ffffff 92%, transparent);
}
.setup-prompt {
  background: #e9e7ea;
  border-color: #cfc6cf;
  color: #1a141a;
  box-shadow: 0 3px 18px #ffffff44;
}
.setup-mark {
  background: #decfd8;
}
.setup-copy {
  background: #4a121f;
  color: #e4dbe1;
}
.setup-prompt[data-copied] .setup-copy {
  background: #2c0812;
}
.setup-fallback {
  background: #e9e7ea;
  border-color: #cfc6cf;
}
#thread,
#forward-thread {
  stroke: #75495b;
  stroke-opacity: 0.65;
}
.thread-filaments {
  fill: none;
  stroke: #6d3c52;
  stroke-width: 0.5;
  opacity: 0.18;
}
.handoff-signal {
  height: 2px;
  background: linear-gradient(90deg, transparent, #3f0d1e 65%, #0d0006);
  filter: drop-shadow(0 0 5px #591031);
}
.context-file,
.filter-visual {
  background: #eeedef;
  border-color: #d6cfd6;
}
.filter-visual > div + div {
  border-color: #d6cfd6;
}
.filter-track {
  border-color: #cab2be;
}
.approved-message {
  background: #dfd2d9;
  border-color: #ad8497;
}
.held-label,
.client-links small {
  background: #e3dae0;
  color: #6a384e;
}
.agent-switcher {
  background: #eeedef;
  border-color: #d6cfd6;
}
.agent-choice {
  color: #5f595f;
}
.agent-choice[aria-pressed='true'] {
  background: #d8d2da;
  color: #120f11;
  box-shadow: none;
}
.client-links > a,
.client-links > span,
.hosting-options,
.context-file small {
  color: #5f555f;
}
.hosting-options span {
  border-color: #ccbfc9;
}
.sharing-prompt {
  background: #dfd4db;
  color: #391d2b;
}
.sharing-file,
.sharing-person {
  color: #5d525d;
}
.sharing-person i {
  background: #d9c6d1;
  color: #4b1f33;
}
.prototype-footer {
  border-color: #ddd6dd;
  color: #6f636d;
}
.handoff-controls {
  color: #6b5d69;
}
.handoff-controls button {
  background: #ede8ed;
  border-color: #d1c4cf;
  color: #412635;
}
@media (hover: hover) and (pointer: fine) {
  .preview-header a:hover {
    color: #2d0f1d;
  }
  .preview-header .download-button:hover {
    color: #fff;
    background: #252528;
    border-color: #252528;
  }
  .setup-prompt:hover {
    border-color: #9e7689;
  }
  .handoff-controls button:hover {
    background: #dbcfd8;
  }
}
@media (max-width: 580px) {
  .brand-lockup {
    gap: 7px;
  }
  .preview-header .brand {
    gap: 5px;
    font-size: 20px;
  }
  .brand svg {
    width: 24px;
    height: 24px;
  }
  .beta-label {
    font-size: 8px;
    padding: 4px 5px;
  }
  .preview-header nav {
    gap: 11px;
  }
  .preview-header nav > a {
    font-size: 12px;
  }
  .preview-header .download-button {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Message and attachment arrive first; the agent replies after a reading beat. */
.hero-examples {
  position: relative;
  display: grid;
}
.hero-example {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  pointer-events: none;
}
.hero-example:first-child {
  position: relative;
}
.hero-example[data-active='true'] {
  pointer-events: auto;
}
.hero-example > .handoff-prompt,
.hero-example > .draft-attachment,
.hero-example > .source-sending {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}
.hero-example[data-active='true'] > .handoff-prompt,
.hero-example[data-active='true'] > .draft-attachment,
.hero-example[data-response='true'] > .source-sending {
  opacity: 1;
  transform: translateY(0);
}
.hero-example[data-active='true'] > .handoff-prompt {
  transition-delay: 120ms;
}
.hero-example[data-active='true'] > .draft-attachment {
  transition-delay: 180ms;
}
.recipient-mention {
  color: #401224;
  text-decoration: underline;
  text-decoration-color: #784259;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 3px;
  cursor: help;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}
.recipient-mention:focus-visible {
  outline: 1px solid #642944;
  outline-offset: 3px;
  background: #4a121f1c;
}
@media (hover: hover) and (pointer: fine) {
  .recipient-mention:hover {
    color: #0f0006;
    background: #4a121f25;
    text-decoration-color: currentColor;
  }
}
.hero-file-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 30px;
  border: 1px solid #ac94a4;
  border-radius: 3px;
  color: #4a273b;
  background: #d4c6d2;
  font:
    9px ui-monospace,
    monospace;
}
.hero-file-mark[data-kind='XLS'] {
  color: #2e4f3c;
  background: #c6dcd0;
  border-color: #a1bead;
}
@media (prefers-reduced-motion: reduce) {
  .hero-example > .handoff-prompt,
  .hero-example > .draft-attachment,
  .hero-example > .source-sending {
    transform: none;
    transition: none;
  }
}

/* Rare UI status mounted inside the existing agent response row. */
.nodebox-tool-status {
  height: 24px;
  font-family: inherit;
  font-size: 13px;
  color: #312930;
  gap: 7px;
}
.nodebox-tool-status [data-slot='ai-status-label'] {
  font-weight: 400;
  color: #4d434e;
}
.nodebox-tool-status [data-slot='ai-status-detail'] {
  font-weight: 400;
  color: #5c525f;
}
.nodebox-tool-status[data-state='sending'] [data-slot='ai-status-detail'] {
  font:
    11px ui-monospace,
    monospace;
}
.nodebox-tool-status[data-state='done'] [data-slot='ai-status-detail'] {
  color: #312930;
}

.hero-example > .source-sending {
  align-items: flex-start;
}
.nodebox-agent-reply {
  display: block;
  margin-top: 8px;
  color: #312930;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}
.nodebox-agent-reply[data-visible='true'] {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 650ms;
}
@media (prefers-reduced-motion: reduce) {
  .nodebox-agent-reply {
    transform: none;
    transition: none;
  }
}

/* The opening loop and the scroll walkthrough occupy separate sections. */
/* A wide conversation leads into the pitch, with traffic beside the copy. */
.hero {
  --peek: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-content: start;
  align-items: start;
  padding: 8px var(--page-inset) 40px;
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-top: 20px;
  /* 20px page inset + 37px header + 20px hero separation. */
  min-height: calc(100svh - 77px);
  overflow: visible;
  /* Traffic clips to its own surface, keeping the chat out of its paint layer. */
}
.hero > h1 {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  max-width: 900px;
  margin: 0;
  margin-block-start: var(--copy-inset, 0px);
  font-size: clamp(44px, min(5.2vw, 7svh), 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero .product-intro {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 1;
  grid-row: 3;
  width: min(640px, 68%);
  margin: 0;
}
.hero .product-intro p {
  max-width: 640px;
  margin: 0 0 32px;
}
.hero .hero-workspace {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  top: auto;
  left: auto;
  right: auto;
  width: 88%;
  height: auto;
  margin-bottom: 0;
  border-radius: 0 0 28px 28px;
}
.hero-workspace .chat-stream {
  padding-top: 28px;
  padding-left: 30px;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}
.hero-workspace .handoff-prompt {
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 12px 12px 4px 12px;
}
.hero-workspace .file-chip {
  font-size: 11px;
  padding: 7px 10px;
  gap: 8px;
}
.hero-workspace .draft-attachment {
  margin-top: 8px;
}
.hero-workspace .hero-file-mark {
  width: 40px;
  height: 28px;
}
.hero-workspace .agent-line {
  margin-top: 20px;
  margin-bottom: 0;
  gap: 8px;
}
.hero-workspace .agent-line > img {
  width: 20px;
  height: 20px;
}
.hero-workspace .nodebox-tool-status {
  font-size: 13px;
}
.hero-workspace .nodebox-agent-reply {
  margin-top: 6px;
  font-size: 14px;
}
.handoff {
  margin-top: 0;
}
.handoff .receiver-workspace {
  top: 32px;
  bottom: auto;
}
.product-story {
  padding-top: 380px;
}
@media (max-width: 620px) {
  .hero .product-intro {
    min-height: 0;
  }
}

/* Messages flow below the hero with a matching trail, independent of scroll. */
.hero {
  isolation: isolate;
}
.hero-workspace {
  z-index: 2;
}
:is(.queued-message, .message-trail, .status-message) {
  --message-ink: #6e1236;
  color: var(--message-ink);
}
.queued-message {
  position: absolute;
  top: 0;
  width: 26px;
  height: 12px;
  color: var(--message-ink);
  offset-path: var(--message-path);
  offset-anchor: 13px 4px;
  offset-rotate: auto -90deg;
  animation: message-flow 1.75s linear forwards;
}
:is(.queued-message, .message-trail, .status-message)[data-kind='md'] {
  --message-ink: #2d116e;
}
:is(.queued-message, .message-trail, .status-message)[data-kind='xlsx'] {
  --message-ink: #398770;
}
:is(.queued-message, .message-trail, .status-message)[data-kind='png'] {
  --message-ink: #8a5f20;
}
:is(.queued-message, .message-trail, .status-message)[data-kind='fig'] {
  --message-ink: #0d2a71;
}
.message-symbol {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 9px;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: color-mix(in srgb, var(--message-ink) 32%, #fafafa);
}
:is(.queued-message, .status-message)[data-kind='md'] .message-symbol {
  transform: rotate(45deg);
}
:is(.queued-message, .status-message)[data-kind='xlsx'] .message-symbol {
  border-radius: 50%;
}
.queued-message[data-kind='png'] .message-symbol {
  height: 4px;
  top: 2px;
}
.status-message {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}
.status-message .message-symbol {
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
}
.status-message[data-kind='png'] .message-symbol {
  top: 7px;
  height: 6px;
}
/* Fading stroke segments hug the exact route through every bend. */
.message-trail {
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: butt;
  filter: drop-shadow(0 0 2px currentColor);
  animation: trail-opacity 1.75s linear forwards;
}
.message-trail path {
  animation: trail-flow 1.75s linear forwards;
}
@keyframes trail-flow {
  from {
    stroke-dashoffset: var(--tail-start);
  }
  to {
    stroke-dashoffset: var(--tail-end);
  }
}
@keyframes trail-opacity {
  0%,
  100% {
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
}
@keyframes message-flow {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
/* Preserve the streak-only baseline; the shape study opts in below. */
.queued-message[data-branch],
.message-trail[data-branch] path {
  animation-duration: var(--traffic-duration, 2.6s);
  animation-delay: var(--traffic-delay, 0s);
}
.queued-message[data-branch] .message-symbol {
  visibility: hidden;
}
/* Small, low-contrast cargo follows the existing motion without extra glow. */
.hero[data-traffic-shapes='true'] .queued-message[data-branch] .message-symbol {
  visibility: visible;
  scale: 0.75;
  opacity: 0.46;
  background: color-mix(in srgb, var(--message-ink) 16%, #fafafa);
}
.message-trail[data-branch] {
  filter: none;
  animation: none;
  opacity: 0.6;
}
/* More flybys across the hero stay quieter than the highway and actual send. */
.message-trail[data-traffic='flyby'] {
  opacity: 0.24;
}
.hero[data-traffic-shapes='true'] .queued-message[data-traffic='flyby'] .message-symbol {
  opacity: 0.3;
}
.hero[data-motion-paused='true']
  :is(.queued-message, .message-trail, .message-trail path) {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .queued-message {
    animation: none;
    transform: translateY(50px);
  }
  .message-trail {
    display: none;
  }
}
@media (max-width: 800px) {
  .hero {
    gap: 20px;
  }
  .hero > h1 {
    padding-right: 0;
    font-size: clamp(36px, 6vw, 48px);
  }
  .hero .product-intro {
    width: 100%;
  }
  .hero-copy-lead {
    white-space: normal;
  }
  .hero .hero-workspace {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: clamp(360px, calc(100svh - 440px), 560px);
    min-height: 350px;
    margin: 0;
  }
}

/* Client cards are the destinations; the row itself has no surrounding panel. */
.agent-destination {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 8px auto 0;
  box-sizing: border-box;
  overflow: visible;
}
.agent-destination-label {
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
}
.client-receipt {
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, currentColor 12%, transparent), transparent 75%);
  box-shadow: inset 0 0 12px color-mix(in srgb, currentColor 10%, transparent);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .client-receipt { display: none; }
}
.agent-marquees {
  position: relative;
  contain: layout paint;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}
/* Static overlays produce the same fade over the page background without
   masking and repainting the whole moving row. */
.agent-marquees::before,
.agent-marquees::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: 12%;
  pointer-events: none;
}
.agent-marquees::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}
.agent-marquees::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}
.agent-marquee {
  min-width: 0;
  width: 100%;
}
.tool-carousel-window {
  position: relative;
  overflow: hidden;
}
.tool-carousel-list {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tool-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 156px;
  width: 156px;
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #0000000d;
  border-radius: 10px;
  background: #f2f1f4;
  white-space: nowrap;
}
.tool-avatar img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: none;
  opacity: 0.85;
}
.tool-avatar.monochrome img {
  filter: none;
}
@media (max-width: 520px) {
  .tool-avatar {
    padding-inline: 12px;
    gap: 8px;
    height: 42px;
  }
  .tool-avatar img {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

/* Flybys and the hidden highway both stay behind the chat surface. */
.highway-lines,
.highway-carriers {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.highway-lines {
  fill: none;
  stroke: #75495b40;
  stroke-width: 1;
  stroke-linecap: round;
}
/* A matching object leaves beside the receipt, entirely behind the chat. */
.sent-lines,
.sent-carriers {
  z-index: 0;
}
.queued-message[data-sent] {
  left: 0;
  transform-origin: 13px 4px;
  animation: sent-message-flow var(--send-duration) linear forwards;
}
.message-trail[data-sent] {
  animation: none;
  opacity: 0.8;
}
.message-trail[data-sent] path {
  animation: trail-flow var(--send-duration) linear forwards;
}
@keyframes sent-message-flow {
  from { offset-distance: 0px; opacity: 1; transform: scale(1.5); }
  to { offset-distance: var(--route-distance); opacity: 1; transform: scale(1.5); }
}
/* Invisible anchors retain recipient identity; the shared surface paints traffic. */
.queued-message.composited-message {
  display: none; /* Canvas paints these signals; their DOM markers need no box. */
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  animation: none;
  offset-path: none;
  visibility: hidden;
  pointer-events: none;
}
.hero .composited-message .message-symbol { visibility: hidden; left: -4px; top: -4px; }
.traffic-surface { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sent-lines,
  .sent-carriers { display: none; }
}
@media (max-width: 620px) {
  .highway-lane {
    display: none;
  }
}

/* Setup and desktop companion share the primary action row. */
.preview-header {
  min-height: 37px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .setup-prompt,
.hero-actions .companion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #00000026;
  border-radius: 999px;
  font:
    500 14px/21px 'Instrument Sans',
    Arial,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 160ms ease;
}
.hero-actions :is(.setup-prompt, .companion-button)[data-pressed] {
  transform: scale(0.97);
  transition-duration: 100ms, 160ms;
}
.hero-actions .setup-prompt {
  color: #e6e6e8;
  background: #060506;
  border-color: #000000b3;
}
.hero-actions .setup-mark {
  width: 14px;
  height: 14px;
  padding: 0;
  color: currentColor;
  background: none;
  border-radius: 0;
}
.hero-actions .setup-copy {
  position: relative;
  width: 16px;
  height: 20px;
  margin-left: 2px;
  color: #a49da3;
  background: none;
}
.hero-actions .setup-copy svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 20px;
  transition: opacity 150ms var(--ease-out);
}
.setup-check-icon,
.setup-prompt[data-copied] .setup-copy-icon {
  opacity: 0;
}
.setup-prompt[data-copied] .setup-check-icon {
  opacity: 1;
}
.setup-prompt[data-keyboard-feedback='true'] .setup-copy svg {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions :is(.setup-prompt, .companion-button)[data-pressed] {
    transform: none;
    opacity: 0.8;
  }
}
.hero-actions .companion-button {
  color: #e6e6e8;
  background: #060506;
  border-color: #000000b3;
}
.companion-button svg {
  width: 14px;
  height: 14px;
}
.companion-button:focus-visible {
  outline: 2px solid #4a121f;
  outline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  .hero-actions .setup-prompt:hover {
    background: #170b10;
  }
  .hero-actions .companion-button:hover {
    background: #170b10;
  }
}

/* A compact, familiar composer closes the conversation cutout. */
.hero-playback {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b5e67;
  cursor: pointer;
}
.hero-playback svg {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-play-icon,
.hero-playback[data-paused='true'] .hero-pause-icon {
  display: none;
}
.hero-playback[data-paused='true'] .hero-play-icon {
  display: block;
}
.hero-playback:focus-visible {
  outline: 2px solid #4a121f;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .hero-playback:hover {
    color: #67374c;
    background: #714a5b18;
  }
}
.hero-workspace .chat-crop {
  position: relative;
  inset: auto;
  mask-image: linear-gradient(transparent, #ffffff 24px);
}
.hero-composer {
  position: relative;
  margin: 20px 20px 16px 30px;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 8px 0 13px;
  border: 1px solid #00000012;
  border-radius: 12px;
  background: #dbd9dd;
}
.hero-composer input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: #1e191d;
  background: transparent;
  font:
    400 13px/20px 'Instrument Sans',
    Arial,
    sans-serif;
}
.hero-composer input::placeholder {
  color: #6d676f;
}
.hero-composer:focus-within {
  border-color: #7c5365;
}
.hero-composer-send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #cbc6cd;
  color: #5d545e;
}
.hero-composer-send svg {
  width: 18px;
  height: 18px;
}

.hero-workspace .attachment-preview {
  display: block;
  width: 160px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #00000018;
}

/* The artifact itself leads; a quiet caption replaces the filename. */
.hero-workspace .draft-attachment {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  background: #e4e2e6;
}
.hero-workspace .draft-attachment > span:last-child {
  padding: 0 2px 1px;
  color: #6a616a;
  font-size: 10px;
  line-height: 14px;
}

/* Compact the opening in short windows. Keep natural content growth on
   narrow screens and when text is zoomed, rather than clipping the actions. */
@media (max-height: 820px), (max-width: 620px) {
  .hero {
    gap: 16px;
    padding-bottom: 24px;
  }
  .hero .product-intro p {
    margin-bottom: 24px;
  }
  .hero-workspace .chat-stream {
    padding-top: 18px;
  }
  .hero-workspace .attachment-preview {
    width: 120px;
    height: 72px;
  }
  .hero-workspace .agent-line {
    margin-top: 12px;
  }
}
@media (max-width: 620px) {
  .hero-workspace .chat-stream {
    padding-inline: 16px;
  }
  .hero-composer {
    margin-inline: 16px;
  }
}
@media (max-width: 380px) {
  .preview-header .brand {
    font-size: 22px;
    gap: 7px;
  }
  .brand svg {
    width: 26px;
    height: 26px;
  }
  .brand-lockup {
    gap: 8px;
  }
}

/* A compact source file leads to one cohesive generated-result card. */
.hero-workspace [data-scenario='dashboard'] .draft-attachment {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
}
.hero-workspace
  [data-scenario='dashboard']
  .draft-attachment
  .attachment-preview {
  width: 64px;
  height: 38px;
}
.hero-workspace [data-scenario='dashboard'] .source-sending {
  margin-top: 8px;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.generated-dashboard {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 480px);
  margin: 0;
  padding: 10px;
  border: 1px solid #00000016;
  border-radius: 12px;
  background: #dbd8de;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.hero-example[data-sent='true'] .generated-dashboard {
  opacity: 1;
}
.generated-dashboard img {
  display: block;
  flex: 0 0 auto;
  width: 160px;
  height: 96px;
  border: 1px solid #00000014;
  border-radius: 5px;
}
.generated-dashboard figcaption {
  padding-right: 6px;
}
.generated-dashboard figcaption strong {
  display: block;
  margin-bottom: 8px;
  color: #171116;
  font-size: 13px;
  font-weight: 500;
}
.generated-dashboard figcaption span {
  display: block;
  color: #514650;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-height: 820px), (max-width: 620px) {
  .generated-dashboard {
    gap: 12px;
  }
  .generated-dashboard img {
    width: 120px;
    height: 72px;
  }
}

@media (max-width: 380px) {
  .hero-workspace .generated-dashboard img {
    width: 80px;
    height: 48px;
  }
  .generated-dashboard figcaption {
    min-width: 0;
    padding-right: 0;
  }
  .generated-dashboard figcaption strong {
    margin-bottom: 4px;
    font-size: 12px;
  }
  .generated-dashboard figcaption span {
    font-size: 11px;
    line-height: 1.4;
  }
}

.inbox-principles {
  width: 100%;
  margin: 0 auto;
  padding-block-start: var(--section-space, 80px);
}
.inbox-principles + .handoff {
  margin-top: max(360px, 50svh);
}
.principle-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.principle-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #0000001c;
  border-radius: 20px;
  background: #f0eef1;
}
.principle-visual {
  height: 184px;
  padding: 26px var(--card-inset);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at 50% 60%, #54172f12, transparent 75%);
  border-bottom: 1px solid #00000009;
}
.principle-copy {
  padding: var(--card-inset);
}
.principle-copy h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #100a0e;
}
.principle-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #423940;
}
.principle-soon {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 6px;
  border: 1px solid #4a121f3d;
  border-radius: 5px;
  color: #4a121f;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.send-example {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #e1dce3;
  border: 1px solid #0000001a;
  border-radius: 10px;
}
.send-example img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.principle-visual strong {
  display: block;
  color: #1c1119;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.send-example div > span,
.permission-row div > span {
  display: block;
  color: #645662;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 2px;
}
.explicit-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #391f2d;
}
.result-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #405d3a14;
  color: #33502a;
  font-size: 13px;
}
.permission-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.permission-row.held {
  padding-top: 12px;
  border-top: 1px solid #00000010;
}
.permission-row svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 3px;
  color: #604d5c;
}
.rule-example {
  margin-top: 14px;
}
.rule-example > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.rule-key {
  width: 32px;
  flex: 0 0 32px;
  color: #766473;
  font-size: 11px;
}
.rule-connector {
  display: block;
  margin: 6px 0 6px 43px;
  color: #613049;
  font-size: 17px;
}
@media (max-width: 800px) {
  .principle-cards {
    grid-template-columns: 1fr;
  }
  .principle-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .principle-visual {
    border-bottom: 0;
    border-right: 1px solid #00000009;
  }
  .principle-copy {
    align-self: center;
  }
}
@media (max-width: 520px) {
  .principle-card {
    display: block;
  }
  .principle-visual {
    border-right: 0;
    border-bottom: 1px solid #00000009;
  }
}
/* A finite, viewport-triggered example. Only transforms and opacity animate. */
.inbox-principles {
  position: relative;
  isolation: isolate;
}
.principle-cards {
  position: relative;
  z-index: 1;
}
.principle-route {
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
  overflow: clip;
  z-index: 0;
}
.principle-route svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.permission-row { position: relative; }
.safety-glow {
  position: absolute;
  inset: -6px -8px;
  pointer-events: none;
  border-radius: 10px;
  border: 1px solid #33502a66;
  box-shadow: inset 0 0 36px #33502a14;
  opacity: 0;
}
.safety-glow[data-outcome='quarantined'] {
  border-color: #641a1a88;
  box-shadow: inset 0 0 36px #641a1a14;
}
.permission-status {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #00000005;
  color: #71666f;
  font-size: 13px;
}
.permission-status .permission-outcome {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #c6d6c8;
  color: #28481e;
  opacity: 0;
}
.held .permission-outcome {
  background: #d5bac0;
  color: #520f12;
}
.permission-status svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  color: inherit;
}
.safety-card:not([data-filter-state]) :is(.permission-outcome, .permission-label) {
  opacity: 1;
}
.permission-row .safety-label,
.principle-route .safety-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--label-color, #6e1236) 30%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--label-color, #6e1236) 12%, #e6e6e8);
  color: var(--label-color, #6e1236);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.permission-row .permission-label { margin-top: 5px; opacity: 0; }
.permission-row .safety-label svg,
.principle-route .safety-label svg {
  position: static;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  padding: 0;
  overflow: visible;
  color: inherit;
}
.principle-route .label-flight {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
@media (max-width: 800px) {
  .principle-cards { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .principle-route, .safety-glow { display: none; }
  .permission-status .permission-outcome,
  .permission-row .permission-label { opacity: 1; }
}

.permission-row .safety-label .label-name { margin: 0; color: inherit; font: inherit; }

.safety-label[data-kind="pdf"] { --label-color: #6e1236; }
.safety-label[data-kind="md"] { --label-color: #2d116e; }
.safety-label[data-kind="xlsx"] { --label-color: #398770; }

.protect-demo { position: relative; }
 .permission-row > div { position: relative; }


.safety-label[data-kind="html"] { --label-color: #6e1236; }
.safety-label[data-kind="png"] { --label-color: #8a5f20; }
.safety-label[data-kind="fig"] { --label-color: #0d2a71; }

/* Give the main signal its own corridor without pushing the pitch lower. */
@media (min-width: 621px) {
  .hero .hero-workspace {
    margin-bottom: 24px;
  }
}

/* Leave a visible return lane beside the copy on tablet-width screens. */
@media (min-width: 621px) and (max-width: 800px) {
  .hero > h1,
  .hero .product-intro { width: calc(100% - 80px); }
}

/* Lower-page traffic stays behind content and quieter than the hero stream. */
.handoff-preview { position: relative; isolation: isolate; }
.page-ambient {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

/* End the landing page after the capabilities, with room for the outgoing signal. */
.handoff-preview { padding-bottom: 120px; }

/* Shared rails frame two intentionally different, reusable compositions. */
.exposed-layout {
  --grid-line: #5a475018;
  --grid-mark: #59233740;
  position: relative;
  /* The hero already fills the opening viewport; reveal this rule on scroll. */
  margin-top: 1px;
  border-inline: 1px solid var(--grid-line);
}
.exposed-section {
  position: relative;
  display: grid;
  border-top: 1px solid var(--grid-line);
}
.exposed-section::before,
.exposed-section::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background: linear-gradient(var(--grid-mark), var(--grid-mark)) center / 1px 9px no-repeat,
    linear-gradient(var(--grid-mark), var(--grid-mark)) center / 9px 1px no-repeat;
  pointer-events: none;
}
.exposed-section::before { left: -5px; }
.exposed-section::after { right: -5px; }
.exposed-overview { grid-template-columns: 1fr 2fr; min-height: 340px; }
.exposed-intro,
.exposed-feature { padding: clamp(24px, 3.5vw, 48px); }
.exposed-intro { display: flex; flex-direction: column; border-right: 1px solid var(--grid-line); }
.exposed-index,
.exposed-coordinate,
.exposed-footnote {
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
  color: #51464c;
}
.exposed-index { text-transform: uppercase; }
.exposed-section h2 {
  margin: 32px 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.exposed-footnote { margin-top: auto; color: #857d83; }
.exposed-space { position: relative; min-width: 0; }
.exposed-coordinate { position: absolute; top: 20px; left: 24px; color: #857d83; }
.exposed-stage { background: linear-gradient(135deg, #4a121f05, transparent 65%); }
.exposed-guide {
  position: absolute;
  inset: 64px 12%;
  border: 1px dashed #5a475014;
}
.exposed-details { grid-template-columns: 1fr 2fr; grid-template-areas: "support feature"; border-bottom: 1px solid var(--grid-line); }
.exposed-feature { grid-area: feature; min-height: 400px; border-left: 1px solid var(--grid-line); }
.exposed-feature-space { min-height: 160px; }
.exposed-stack { grid-area: support; display: grid; grid-template-rows: 1fr 1fr; }
.exposed-stack > * + * { border-top: 0; }
.exposed-stack > .exposed-space + .exposed-space::before {
  content: '';
  position: absolute;
  inset-inline: 24px;
  top: 0;
  height: 1px;
  background: var(--grid-line);
  pointer-events: none;
}
.exposed-stack > :last-child { background: #4a121f03; }
@media (max-width: 620px) {
  .exposed-overview, .exposed-details { grid-template-columns: 1fr; }
  .exposed-intro { border-right: 0; }
  .exposed-details { grid-template-areas: "feature" "support"; }
  .exposed-feature { border-left: 0; }
  .exposed-intro { min-height: 200px; }
  .exposed-stage { min-height: 230px; border-top: 1px solid var(--grid-line); }
  .exposed-feature { min-height: 300px; }
  .exposed-feature-space { min-height: 100px; }
  .exposed-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 160px; border-top: 1px solid var(--grid-line); }
  .exposed-stack > * + * { border-top: 0; border-left: 1px solid var(--grid-line); }
}

/* The capabilities form one continuous row within the page rails. */
.exposed-section::before,
.exposed-section::after { content: none; }
.exposed-layout > .inbox-principles {
  padding-block: 0;
  border-top: 0;
}
.exposed-layout .principle-cards {
  gap: 0;
  border-block: 1px solid var(--grid-line);
}
.exposed-layout .principle-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.exposed-layout .principle-card + .principle-card {
  border-inline-start: 1px solid var(--grid-line);
}
.exposed-layout .principle-visual {
  height: 208px;
  border-bottom: 0;
  background: transparent;
}
.exposed-layout .principle-copy { padding: 28px 24px 32px; }
@media (max-width: 620px) {
  .exposed-layout .principle-cards { grid-template-columns: 1fr; }
  .exposed-layout .principle-card + .principle-card {
    border-inline-start: 0;
    border-top: 1px solid var(--grid-line);
  }
}

/* Extend structural rules to the viewport while retaining the content rails. */
.exposed-layout > .inbox-principles::before,
.exposed-layout .principle-cards::before,
.exposed-layout .principle-cards::after,
.exposed-details::before,
.exposed-details::after {
  content: '';
  position: absolute;
  inset-inline-start: calc(50% - 50vw);
  width: 100vw;
  height: 1px;
  background: var(--grid-line);
  pointer-events: none;
  z-index: -1;
}
.exposed-layout > .inbox-principles::before,
.exposed-layout .principle-cards::before,
.exposed-details::before { top: -1px; }
.exposed-layout .principle-cards::after,
.exposed-details::after { top: auto; bottom: -1px; }
.exposed-details::before,
.exposed-details::after {
  inset-inline-start: 0;
  width: calc(50vw + 50%);
}

/* Full-width rules own these edges; transparent borders retain exact geometry
   without painting a second, darker segment inside the page rails. */
.exposed-layout > .inbox-principles { border-top-color: transparent; }
.exposed-layout .principle-cards { border-block-color: transparent; }
.exposed-details { border-block-color: transparent; }

/* Desktop content occupies the middle three quarters of the viewport.
   Full-bleed decoration and rules continue to use the entire screen. */
@media (min-width: 1000px) {
  :root { --page-content-width: 75vw; }
}

/* The capability row uses horizontal rules only; rails resume below it. */
.exposed-layout { border-inline-color: transparent; }
.exposed-layout .principle-card + .principle-card { border-inline-start: 0; }
.exposed-details { border-inline-start: 0; border-inline-end: 1px solid var(--grid-line); }

/* The cards now open the section, with the first rule at the fold. */
.exposed-details::before { content: none; }

/* Vertical boundaries belong only to the capability row. */
.exposed-layout .principle-cards {
  border-inline: 1px solid var(--grid-line);
}
.exposed-layout .principle-card + .principle-card {
  border-inline-start: 1px solid var(--grid-line);
}
@media (max-width: 620px) {
  .exposed-layout .principle-card + .principle-card {
    border-inline-start: 0;
  }
}

/* The card row meets the empty grid directly. */
.exposed-layout > .inbox-principles::after {
  content: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 64px;
  pointer-events: none;
  border-inline-end: 1px solid var(--grid-line);
}

/* A compact client wheel beside its caption, showing three names at a time. */
.exposed-stack > .exposed-space { min-width: 0; }
.agent-destination.client-compatibility {
  grid-template-columns: auto minmax(0, 124px);
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 24px 16px;
  height: 144px;
  overflow: hidden;
}
.client-compatibility .agent-destination-label {
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #252023;
  white-space: nowrap;
}
.client-compatibility .agent-marquees { min-width: 0; width: 124px; }
.client-compatibility .agent-marquees::before,
.client-compatibility .agent-marquees::after { content: none; }
.client-compatibility .tool-carousel-window {
  height: 96px;
  mask-image: linear-gradient(transparent, #ffffff 30%, #ffffff 70%, transparent);
}
.client-compatibility .tool-carousel-list { display: block; width: 100%; }
.client-compatibility .tool-avatar {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  color: #171115;
  justify-content: flex-start;
}
.client-compatibility .tool-avatar img { width: 18px; height: 18px; flex-basis: 18px; }
.exposed-stack { grid-template-rows: 1fr 1fr; }
@media (max-width: 620px) {
  .exposed-stack { grid-template-columns: 1fr; grid-template-rows: 160px 160px; }
  .exposed-stack > * + * { border-left: 0; border-top: 0; }
}


/* Lower-page layout: preserve the exposed grid with shared rails and insets.
   The hero composition and animation timing remain untouched. */
.exposed-layout {
  container-type: inline-size;
  width: 100%;
  margin-block-start: 32px;
  border: 0;
}
.exposed-layout .principle-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--grid-line);
  border-block-color: transparent;
}
.exposed-layout .principle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  border: 0;
}
.exposed-layout .principle-card + .principle-card {
  border-inline-start: 1px solid transparent;
}
.exposed-layout .principle-card + .principle-card::before {
  content: '';
  position: absolute;
  inset-block: 24px;
  inset-inline-start: -1px;
  width: 1px;
  background: var(--grid-line);
  pointer-events: none;
}
.exposed-layout .principle-visual {
  height: auto;
  min-block-size: 184px;
  padding: 24px;
  border: 0;
}
.exposed-layout .principle-copy {
  align-self: stretch;
  padding: 16px 24px 32px;
}
.exposed-layout .principle-copy h3 { margin-block-end: 12px; }
.exposed-layout .principle-soon {
  top: 12px;
  right: auto;
  inset-inline-end: 16px;
}
.exposed-layout .send-example,
.exposed-layout .permission-row > div,
.exposed-layout .rule-example strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.exposed-layout .send-example img { flex-shrink: 0; }
.exposed-layout .rule-example { margin-block-start: 0; }
.exposed-layout .rule-key { width: auto; flex: 0 0 32px; }
.exposed-layout .rule-connector {
  margin: 6px 0;
  margin-inline-start: 43px;
}
/* Supporting cells lead visually and in the DOM, including when stacked. */
.exposed-layout .exposed-details {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas: none;
  margin-block-start: 0;
  border-block: 0 solid var(--grid-line);
  border-block-end-width: 1px;
  border-block-color: transparent;
  border-inline-end: 1px solid var(--grid-line);
}
.exposed-layout .exposed-stack {
  grid-area: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  border: 0;
}
.exposed-layout .exposed-stack > * + * { border: 0; }
.exposed-layout .exposed-feature {
  grid-area: auto;
  min-width: 0;
  min-height: 360px;
  padding: 32px;
  border: 0;
  border-inline-start: 1px solid var(--grid-line);
}
.exposed-layout .exposed-feature h2 { margin-block: 24px; }
.exposed-layout .exposed-feature-space { min-height: 120px; }
.agent-destination.client-compatibility {
  min-height: 144px;
  height: auto;
  margin-block-start: 64px;
  padding-block: 24px;
  border-block-start: 1px solid #00000012;
  overflow: visible;
}
.client-compatibility .agent-destination-label { margin: 0; }
.client-compatibility .tool-avatar {
  padding-inline: 8px;
  justify-content: start;
}
@container (width < 760px) {
  .exposed-layout .principle-cards { grid-template-columns: minmax(0, 1fr); }
  .exposed-layout .principle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .exposed-layout .principle-card + .principle-card {
    border-inline-start: 0;
    border-block-start: 1px solid var(--grid-line);
  }
  .exposed-layout .principle-card + .principle-card::before { content: none; }
  .exposed-layout .principle-copy { padding: 24px; align-self: center; }
}
@container (width < 560px) {
  .exposed-layout .exposed-details { grid-template-columns: minmax(0, 1fr); }
  .exposed-layout .exposed-stack { grid-template-rows: repeat(2, minmax(120px, 1fr)); }
  .exposed-layout .exposed-feature {
    min-height: 280px;
    padding: 24px;
    border-inline-start: 0;
    border-block-start: 1px solid var(--grid-line);
  }
}
@container (width < 480px) {
  .exposed-layout .principle-card { display: flex; }
  .exposed-layout .principle-visual { width: 100%; min-block-size: 160px; }
  .exposed-layout .principle-copy { padding: 16px 24px 32px; }
}

/* The introduction shares the capability grid rails and full-width rules. */
.setup-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4.2vw, 64px);
  min-height: 280px;
  padding: clamp(24px, 4.2vw, 64px);
  border-inline: 1px solid var(--grid-line);
  background: transparent;
}
.setup-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 1px;
  background: var(--grid-line);
  pointer-events: none;
}
.setup-overview h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.setup-overview p {
  margin: 0;
  color: #423940;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.6;
}
@container (width < 760px) {
  .setup-overview { grid-template-columns: 1fr; gap: 24px; }
}

/* Blank, independently removable compositions on the existing page rails. */
.layout-spaces { margin-block-start: 64px; }
.space-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--grid-line);
}
.space-group + .space-group { margin-block-start: 64px; }
.space-group + .space-connected { margin-block-start: -1px; }
.space-cell {
  min-width: 0;
  min-height: 160px;
  padding: 24px;
  background: var(--paper);
}
.space-short { min-height: 160px; }
.space-medium { min-height: 280px; }
.space-tall { min-height: 400px; }
.space-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.space-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.space-feature-main { grid-row: span 2; }
.space-detached {
  align-items: start;
  gap: 32px;
  padding: 0;
  background: transparent;
}
.space-detached .space-cell { border: 1px solid var(--grid-line); }
@container (width < 760px) {
  .space-detached { gap: 24px; }
  .space-tall { min-height: 320px; }
}
@container (width < 560px) {
  .space-group { grid-template-columns: minmax(0, 1fr); }
  .space-feature-main { grid-row: auto; min-height: 320px; }
  .space-group + .space-group { margin-block-start: 32px; }
  .space-group + .space-connected { margin-block-start: -1px; }
}

/* Stable reference numbers and rules extending beyond the content rails. */
.space-group { position: relative; }
.space-group::before,
.space-group::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50vw - 50%);
  border-block: 1px solid var(--grid-line);
  pointer-events: none;
}
.space-group::before { right: 100%; }
.space-group::after { left: 100%; }
.space-cell { position: relative; }
.space-number {
  display: block;
  color: #857d83;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
}

/* Detached rules belong to the outer cells, never to the tallest sibling. */
.space-connected::before,
.space-connected::after { border-top: 0; }
.space-detached::before,
.space-detached::after { content: none; }
.space-detached > .space-cell:first-child::before,
.space-detached > .space-cell:last-child::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: calc(50vw - 50cqw);
  border-block: 1px solid var(--grid-line);
  pointer-events: none;
}
.space-detached > .space-cell:first-child::before { right: calc(100% + 1px); }
.space-detached > .space-cell:last-child::after { left: calc(100% + 1px); }
@container (width < 560px) {
  .space-detached > .space-cell::before,
  .space-detached > .space-cell::after {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: calc(50vw - 50cqw);
    border-block: 1px solid var(--grid-line);
    pointer-events: none;
  }
  .space-detached > .space-cell::before { right: calc(100% + 1px); }
  .space-detached > .space-cell::after { left: calc(100% + 1px); }
}

/* The compatibility wheel now lives in the introductory grid row. */
.setup-overview .client-compatibility {
  --client-row-height: 44px;
  grid-template-columns: minmax(0, 360px);
  gap: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.setup-overview .agent-destination-label { font-size: 20px; }
.setup-overview .agent-marquees { width: 100%; max-width: 360px; }
.setup-overview .tool-carousel-window { height: calc(3 * var(--client-row-height)); }
.setup-overview .tool-avatar {
  height: var(--client-row-height);
  gap: 11px;
  font-size: 22px;
}
.setup-overview .tool-avatar img { width: 28px; height: 28px; flex-basis: 28px; }
@container (width < 760px) {
  .setup-overview .client-compatibility { justify-content: start; }
}
@container (width < 400px) {
  .setup-overview .client-compatibility { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* A large introduction beside the client wheel. */
.setup-overview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 32px;
  min-height: 160px;
  padding-block: 20px;
}
.setup-overview h2 {
  max-width: none;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -.045em;
}
@container (width < 760px) {
  .setup-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Cycle clients horizontally within the same compact grid cell. */
.setup-overview .tool-carousel-window {
  height: var(--client-row-height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #ffffff 30%, #ffffff 70%, transparent);
}
.setup-overview .tool-carousel-list {
  display: flex;
  width: max-content;
  gap: 0;
}
.setup-overview .tool-avatar {
  width: 172px;
  flex: 0 0 172px;
  justify-content: center;
}

.setup-overview .tool-avatar { position: relative; }

/* Shallow grid spacer between the carousel and spaces 01–02. */
.setup-divider-space {
  position: relative;
  min-height: 48px;
  border-inline: 1px solid var(--grid-line);
}
.setup-divider-space::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 1px;
  background: var(--grid-line);
  pointer-events: none;
}

/* Two-column introduction with the existing compact client wheel beneath. */
.setup-overview {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.setup-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 4.2vw, 64px);
}
.setup-intro p {
  max-width: 40ch;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.5;
  color: #5b5559;
}
.setup-overview .client-compatibility {
  justify-content: center;
  padding: 20px 24px;
  border-top: 0;
}
@container (width < 760px) {
  .setup-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .setup-overview .client-compatibility { justify-content: center; }
}

/* A full-width row of equally visible clients. */
.setup-overview .client-compatibility {
  --client-row-height: 40px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 0;
}
.setup-overview .agent-marquees { max-width: none; }
.setup-overview .tool-carousel-window {
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #ffffff 5%, #ffffff 95%, transparent);
}
.setup-overview .tool-avatar {
  width: 160px;
  flex-basis: 160px;
  gap: 10px;
  font-size: 18px;
}
.setup-overview .tool-avatar img { width: 24px; height: 24px; flex-basis: 24px; }

/* Inset rule aligned with the introduction’s content. */
.setup-overview .client-compatibility { position: relative; }
.setup-overview .client-compatibility::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: clamp(16px, 2.5vw, 40px);
  height: 1px;
  background: var(--grid-line);
  pointer-events: none;
}

/* Full-width scenario study. */
.scenario-section { padding: 20px clamp(20px, 4vw, 56px) 32px; }
.scenario-section > .space-number { display: block; margin-block-end: 16px; }
.scenario-header { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.scenario-header h2 { margin: 0; font-size: clamp(30px, 3.5vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
.scenario-switcher { width: fit-content; max-width: 100%; margin: 24px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border: 1px solid #00000012; border-radius: 28px; background: #edecee; }
.scenario-switcher button { padding: 11px 17px; border: 1px solid transparent; border-radius: 24px; background: transparent; color: #5f595e; font: inherit; font-size: 14px; cursor: pointer; }
.scenario-switcher button:hover { color: #120f11; }
.scenario-switcher button[aria-pressed="true"] { color: #120f11; background: #d7d4d9; border-color: #00000012; box-shadow: 0 2px 5px #ffffff44; }
.scenario-switcher button:focus-visible { outline: 2px solid #4a121f; outline-offset: 3px; }
.scenario-diagram { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(90px, .48fr) minmax(0, 1fr); align-items: center; margin-block-start: 24px; }
.scenario-source { position: relative; z-index: 1; min-width: 0; padding: 22px; border: 1px solid #00000018; border-radius: 14px; background: #eeedef; box-shadow: 0 12px 40px #ffffff33; }
.scenario-window { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6d686f; font-size: 12px; }
.scenario-window > span:first-child { color: #c8c4cb; font-size: 10px; letter-spacing: 2px; }
.scenario-window > span:last-child { display: flex; align-items: center; gap: 7px; }
.scenario-window img { width: 18px; height: 18px; border-radius: 4px; }
.scenario-prompt { min-height: 104px; margin: 20px 0 16px; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.scenario-source-caption { display: block; margin-block-start: 16px; color: #928c95; font-size: 11px; }
.scenario-bridge { position: relative; display: grid; place-items: center; min-height: 90px; }
.scenario-wire { position: absolute; inset-inline: 0; top: 50%; height: 1px; background: #4a121f40; }
.scenario-node { z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eae6ea; border: 1px solid #4a121f35; color: #4a121f; }
.scenario-node svg { width: 32px; height: 32px; }
.scenario-node-label { position: absolute; top: calc(50% + 43px); font-size: 11px; color: #7b6c76; }
.scenario-recipients { position: relative; display: grid; gap: 22px; padding-inline-start: 24px; }
.scenario-recipients::before { content: ''; position: absolute; inset-inline-start: 0; top: 28px; bottom: 28px; width: 1px; background: #4a121f25; }
.scenario-recipient { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; }
.scenario-recipient::before { content: ''; position: absolute; inset-inline-start: -24px; top: 50%; width: 24px; height: 1px; background: #4a121f25; }
.scenario-recipient > div { min-width: 0; }
.scenario-recipient strong { display: block; font-size: 14px; font-weight: 500; }
.scenario-recipient div > span { display: block; margin-block-start: 5px; font-size: 12px; line-height: 1.5; color: #746d77; }
.scenario-avatar { position: relative; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #dcd4de; overflow: hidden; color: #563963; }
.scenario-avatar::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: currentColor; top: 9px; left: 16px; opacity: .7; }
.scenario-avatar::after { content: ''; position: absolute; width: 26px; height: 24px; border-radius: 50% 50% 0 0; background: currentColor; top: 25px; left: 9px; opacity: .5; }
.scenario-avatar.avatar-1 { background: #d5dfdd; color: #4a6e5e; }
.scenario-avatar.avatar-2 { background: #ded9d4; color: #75603f; }
@container (width < 650px) {
  .scenario-diagram { grid-template-columns: minmax(0, 1fr); max-width: 390px; margin-inline: auto; }
  .scenario-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; width: 100%; max-width: 380px; }
  .scenario-switcher button { padding: 10px 8px; font-size: 12px; }
  .scenario-bridge { min-height: 128px; }
  .scenario-wire { top: 0; bottom: 0; inset-inline-start: 50%; width: 1px; height: auto; }
  .scenario-node-label { top: auto; inset-inline-start: calc(50% + 44px); }
  .scenario-recipients { padding-inline-start: 0; padding-block-start: 16px; border-top: 1px solid #4a121f25; }
  .scenario-recipients::before, .scenario-recipient::before { display: none; }
  .scenario-prompt { min-height: 0; }
}

/* Small agent badges overlap the bottom-left of each recipient avatar. */
.scenario-avatar-stack { position: relative; display: flex; flex: 0 0 44px; }
.scenario-agent-avatar { position: absolute; z-index: 1; bottom: -2px; left: -2px; box-sizing: content-box; width: 14px; height: 14px; padding: 2px; border-radius: 5px; background: var(--paper); object-fit: contain; }

.scenario-avatar[data-kind="thread"],
.scenario-avatar[data-kind="team"],
.scenario-avatar[data-kind="service"] { display: grid; place-items: center; border-radius: 12px; }
.scenario-avatar:not([data-kind="dm"])::before,
.scenario-avatar:not([data-kind="dm"])::after { display: none; }
.scenario-avatar > svg { width: 23px; height: 23px; }

.scenario-avatar[data-kind="service"] { background: #120f11; }
.scenario-avatar[data-kind="service"] > img { width: 24px; height: 24px; object-fit: contain; }

/* Reference layout: scenario rail beside a stable routing stage. */
.scenario-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); padding: 0; }
.scenario-section > .space-number { position: absolute; top: 18px; left: 24px; }
.scenario-copy { padding: 64px 32px 48px; border-inline-end: 1px solid var(--grid-line); }
.scenario-header { align-items: start; text-align: start; gap: 24px; }
.scenario-header h2 { font-size: clamp(28px, 3vw, 40px); }
.scenario-header p { margin: 0; color: #5f595e; font-size: 16px; line-height: 1.6; }
.scenario-switcher { display: flex; flex-direction: column; width: 100%; max-width: none; margin: 32px 0 0; padding: 0; gap: 0; border: 0; border-inline-start: 1px solid var(--grid-line); border-radius: 0; background: none; }
.scenario-switcher button { position: relative; padding: 12px 0 12px 18px; border: 0; border-radius: 0; text-align: start; font-size: 16px; }
.scenario-switcher button b { font-weight: 500; }
.scenario-switcher button[aria-pressed="true"] { background: none; box-shadow: none; }
.scenario-switcher button::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: #888888; opacity: 0; transition: opacity 280ms ease; }
.scenario-switcher button[aria-pressed="true"]::before { opacity: 1; }
.scenario-option-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 280ms cubic-bezier(.165,.84,.44,1), opacity 280ms cubic-bezier(.165,.84,.44,1); }
.scenario-option-detail > span { overflow: hidden; min-height: 0; color: #66616b; font-size: 13px; line-height: 1.6; }
.scenario-switcher button[aria-pressed="true"] .scenario-option-detail { grid-template-rows: 1fr; opacity: 1; }
.scenario-option-detail > span::before { content: ''; display: block; height: 10px; }
.scenario-content { align-self: center; min-width: 0; padding: 48px 24px; }
.scenario-diagram { position: relative; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); margin: 0; max-width: none; }
.scenario-source { border-radius: 8px; padding: 14px; background: #efeff1; box-shadow: inset 0 0 0 6px #fafafa; }
.scenario-window { justify-content: start; padding-block-end: 14px; border-bottom: 1px solid #00000005; font-size: 10px; }
.scenario-window img { width: 14px; height: 14px; }
.scenario-prompt { font-size: 14px; min-height: 154px; margin: 16px 0; line-height: 1.5; }
.scenario-picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: fit-content; margin-inline-start: auto; padding: 6px 10px; border: 1px solid #00000012; border-radius: 20px; font-size: 11px; }
.scenario-node { width: 56px; height: 56px; background: #ebebed; border-color: #00000020; }
.scenario-node svg { width: 28px; height: 28px; }
.scenario-wire, .scenario-node-label, .scenario-recipients::before, .scenario-recipient::before { display: none; }
.scenario-recipients { padding: 0; gap: 14px; border: 0; }
.scenario-recipient { z-index: 1; padding: 9px 10px; gap: 8px; min-height: 48px; border: 1px solid #00000017; border-radius: 28px; background: var(--paper); opacity: .45; transition: opacity 280ms cubic-bezier(.165,.84,.44,1), background-color 280ms ease; }
.scenario-recipient.is-selected { opacity: 1; background: #eae9ec; }
.scenario-recipient strong { font-size: 12px; }
.scenario-recipient div > span { font-size: 10px; margin-block-start: 3px; line-height: 1.3; }
.scenario-avatar-stack { flex-basis: 26px; }
.scenario-avatar { flex-basis: 26px; height: 26px; }
.scenario-avatar::before { width: 8px; height: 8px; top: 5px; left: 9px; }
.scenario-avatar::after { width: 18px; height: 16px; top: 16px; left: 4px; }
.scenario-avatar > svg, .scenario-avatar[data-kind="service"] > img { width: 17px; height: 17px; }
.scenario-agent-avatar { width: 10px; height: 10px; padding: 1px; }
.scenario-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scenario-routes path { fill: none; stroke: #00000022; stroke-width: 1; }
.scenario-signal { position: absolute; top: 0; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #4a121f; box-shadow: 0 0 8px #4a121f80; opacity: 0; pointer-events: none; }
@container (width < 800px) {
  .scenario-section { grid-template-columns: minmax(0, 1fr); }
  .scenario-copy { border-inline-end: 0; padding: 48px 24px 24px; }
  .scenario-content { padding: 24px; }
  .scenario-switcher { max-width: none; }
}
@container (width < 450px) {
  .scenario-diagram { grid-template-columns: minmax(0, 1fr); }
  .scenario-bridge { min-height: 96px; }
  .scenario-prompt { min-height: 100px; }
  .scenario-recipients { gap: 10px; }
  .scenario-recipient { width: 100%; box-sizing: border-box; }
  .scenario-routes, .scenario-signal { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scenario-option-detail, .scenario-recipient { transition: none; transform: none; }
}

.scenario-file-slot { min-height: 44px; margin-block-end: 12px; }
.scenario-file { display: flex; align-items: center; gap: 8px; padding: 7px; background: #00000005; border: 1px solid #0000000d; border-radius: 6px; }
.scenario-file[hidden] { display: none; }
.scenario-file-icon { display: grid; place-items: center; flex: 0 0 25px; height: 30px; border-radius: 3px; background: #dac7cf; color: #4a121f; font-size: 8px; font-weight: 600; }
.scenario-file-copy { min-width: 0; }
.scenario-file-name { display: block; font-size: 10px; overflow-wrap: anywhere; }
.scenario-file-status { display: block; color: #6c6069; font-size: 9px; margin-block-start: 3px; }

/* Preserve the light backing for original service logos. */
.scenario-avatar[data-kind="service"] { background: #f0edef; }

/* Use the supplied light-surface Cursor mark. */
.tool-avatar img[src="avatars/cursor-dark.png?v=591dcb40a8c0"] { content: url("avatars/cursor-light.png?v=591dcb40a8c0"); }

.scenario-destinations { position: relative; min-width: 0; }
.scenario-route-label { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 10px; font-size: 11px; color: #888; }

.scenario-file-slot.has-response { min-height: 108px; }
.scenario-response { margin: 0; font-size: 12px; line-height: 1.5; opacity: 0; transition: opacity 200ms ease; }
.scenario-response.is-visible { opacity: 1; padding-block-start: 12px; border-top: 1px solid #00000012; }
@media (prefers-reduced-motion: reduce) { .scenario-response { transition: none; } }

/* Quiet, single-row destinations: identity first, type only where needed. */
.scenario-recipient { min-height: 46px; padding: 9px 12px; gap: 10px; opacity: .65; }
.scenario-recipient > div { flex: 1; min-width: 0; }
.scenario-recipient strong { font-size: 12px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.scenario-destination-type { flex: none; font-size: 9px; line-height: 1; padding: 4px 5px; border-radius: 5px; color: #756d76; background: #00000006; }
.scenario-recipient.is-selected { background: #f0edf1; border-color: #b7a7ba; }

/* Miniature of the hero conversation, with a message and inset composer. */
.scenario-source { display: flex; flex-direction: column; min-height: 350px; padding: 14px 12px 12px; border: 1px solid #00000012; border-radius: 20px; background: linear-gradient(145deg, #fafafa, #eeedf0 65%, #e7e1e9); box-shadow: none; }
.scenario-window { border: 0; padding: 0 2px 16px; }
.scenario-window > span:first-child { display: none; }
.scenario-prompt { align-self: flex-end; min-height: 0; max-width: 100%; margin: 0 0 20px 8px; padding: 10px 11px; border-radius: 12px 12px 3px 12px; background: #dedce1; font-size: 13px; line-height: 1.5; }
.scenario-file-slot { flex: 1; margin-block-end: 20px; }
.scenario-response.is-visible { border: 0; padding: 0 3px; }
.scenario-composer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 4px 5px 4px 10px; border: 1px solid #00000012; border-radius: 10px; background: #dedbe1; color: #7b737e; font-size: 10px; }
.scenario-composer-send { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #00000012; font-size: 16px; }

/* Content occludes the ambient stream; rails and spacer bands remain open. */
.setup-overview,
.exposed-layout .principle-cards,
.exposed-layout .exposed-section { background: var(--paper); }

/* Small connected shapes at structural grid intersections. */
.grid-box-marker {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  z-index: 2;
  background: var(--paper);
  color: var(--grid-line);
  pointer-events: none;
}
.grid-box-marker svg { width: 100%; height: 100%; overflow: visible; }

/* Each boundary has one rule; neighboring sections must not double it. */
.space-group + .setup-divider-space::before,
.inbox-principles + .setup-divider-space::before,
.exposed-layout > .inbox-principles::before { content: none; }

/* Split each signal corridor's rail at its midpoint. The junction markers
   keep their anchors while the line ends tuck behind them for a passing signal. */
.scenario-group + .setup-divider-space,
.inbox-principles + .setup-divider-space { border-inline-color: transparent; }
.signal-rail-gate {
  position: absolute;
  inset-block: -.5px;
  width: 1px;
  z-index: 3;
  overflow: hidden;
  clip-path: inset(4px 0);
  pointer-events: none;
}
/* Absolute offsets start inside the spacer border: cover that exact pixel. */
.signal-rail-gate[data-side='left'] { left: -1px; }
.signal-rail-gate[data-side='right'] { right: -1px; }
.signal-rail-gate > i {
  position: absolute;
  inset-inline: 0;
  height: 50%;
  background: var(--grid-line);
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(.65, 0, .35, 1) 120ms;
}
.signal-rail-gate > i:first-child { top: 0; }
.signal-rail-gate > i:last-child { bottom: 0; }
.signal-rail-gate[data-open='true'] > i {
  transition: transform 240ms cubic-bezier(.65, 0, .35, 1);
}
.signal-rail-gate[data-open='true'] > i:first-child { transform: translateY(-14px); }
.signal-rail-gate[data-open='true'] > i:last-child { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .signal-rail-gate > i { transition: none; transform: none !important; }
}

/* One shared installation above a compact agent dock. */
.exposed-layout .shared-cli-demo { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; }
.shared-cli-install { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--grid-line); border-radius:9px; font-size:12px; }
.shared-cli-install > span:first-child { font-family:ui-monospace,monospace; opacity:.55; }
.shared-cli-install strong { font-weight:500; }
.shared-cli-check { color:#78a78a; margin-inline-start:12px; }
.shared-cli-connection { height:20px; width:1px; background:var(--grid-line); }
.shared-agent-dock { display:flex; align-items:center; gap:14px; padding:10px 14px 7px; border:1px solid var(--grid-line); border-radius:16px; background:color-mix(in srgb, currentColor 4%, var(--paper)); box-shadow:0 4px 12px #00000008; }
.shared-agent-dock > div { display:flex; flex-direction:column; align-items:center; gap:6px; }
.shared-agent-dock img { width:30px; height:30px; object-fit:contain; border-radius:7px; }
.shared-agent-dock > div > span { width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.35; }

.shared-cli-install { padding:10px 12px; border-radius:12px; background:var(--paper); }
.shared-cli-install > .shared-cli-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:color-mix(in srgb, #b57b92 12%, var(--paper)); color:#b57b92; opacity:1; }
.shared-cli-icon svg { width:25px; height:25px; }
.shared-cli-name { display:flex; flex-direction:column; gap:3px; }
.shared-cli-name small { font-size:10px; opacity:.55; }

.shared-credential { display:flex; align-items:center; gap:7px; font-size:10px; color:inherit; opacity:.65; }
.shared-credential svg { width:13px; height:13px; flex:none; }
.shared-cli-demo .shared-cli-connection { height:12px; flex:none; }
.exposed-layout .shared-cli-demo { padding-block:16px; }

/* Headless service: shared infrastructure, rather than another app window. */
.shared-cli-demo .shared-cli-install { padding:0; border:0; border-radius:0; background:none; gap:8px; font:13px ui-monospace, SFMono-Regular, monospace; }
.shared-cli-demo .headless-command { opacity:.4; }
.headless-tag { font-size:9px; opacity:.45; letter-spacing:.08em; }
.shared-cli-demo .shared-agent-dock { position:relative; border:0; border-top:1px solid var(--grid-line); border-radius:0; background:none; box-shadow:none; padding:20px 0 0; gap:26px; }
.shared-cli-demo .shared-agent-dock > div { position:relative; }
.shared-cli-demo .shared-agent-dock > div::before { content:''; position:absolute; top:-20px; left:50%; height:13px; width:1px; background:var(--grid-line); }
.shared-cli-demo .shared-agent-dock img { width:24px; height:24px; border-radius:4px; }
.shared-cli-demo .shared-agent-dock > div > span { display:none; }
.shared-cli-demo .shared-credential { font-size:10px; }
.shared-cli-demo .shared-cli-connection { height:15px; }

.shared-cli-terminal { align-self:stretch; max-width:240px; width:100%; margin-inline:auto; border:1px solid var(--grid-line); border-radius:10px; overflow:hidden; background:color-mix(in srgb,currentColor 3%,var(--paper)); }
.shared-terminal-title { display:flex; align-items:center; gap:12px; padding:8px 11px; border-bottom:1px solid var(--grid-line); font-size:9px; opacity:.55; }
.shared-terminal-title > span:first-child { font-size:6px; letter-spacing:2px; }
.shared-cli-terminal code { display:block; padding:12px; font:11px/1.6 ui-monospace,SFMono-Regular,monospace; overflow-wrap:anywhere; }
.shared-cli-terminal code span { opacity:.4; }
.shared-terminal-caption { padding:0 12px 12px; font-size:10px; opacity:.55; }

/* Equal illustration areas keep the three capability headings aligned. */
.exposed-layout .principle-visual {
  box-sizing: border-box;
  block-size: 200px;
  min-block-size: 200px;
  flex: 0 0 200px;
  justify-content: center;
}
.exposed-layout .shared-cli-demo { gap:0; padding:20px 24px; }
.shared-cli-demo .shared-cli-terminal { flex:none; }
.shared-cli-demo .shared-terminal-title { padding-block:6px; }
.shared-cli-demo .shared-cli-terminal code { padding:10px; }
.shared-cli-demo .shared-cli-connection { height:12px; }
.shared-cli-demo .shared-agent-dock { padding-top:14px; gap:24px; flex:none; }
.shared-cli-demo .shared-agent-dock > div::before { top:-14px; height:9px; }
.shared-cli-demo .shared-agent-dock img { width:22px; height:22px; }

/* Supporting copy uses darker ink and a medium weight. */
.product-copy p,
.handoff-note p,
.principle-copy p,
.scenario-header p,
.scenario-option-detail > span {
  color: #252023;
  font-weight: 500;
}
.scenario-option-detail > span { font-size: 14px; }

/* Faint road lines use the exact geometry followed by the hero signals. */
.hero .highway-lines {
  overflow: hidden;
  stroke: #b8a5ae40;
  stroke-width: 1;
}
.hero .highway-lane { vector-effect: non-scaling-stroke; }
@media (max-width: 620px) {
  .hero .highway-lane:nth-of-type(1),
  .hero .highway-lane:nth-of-type(3) { display: initial; }
}

.hero > .traffic-surface { max-width: 100%; }
