body.landing-page .hero-showcase { width: min(960px, 100%); }
.landing-page .kb-demo {
  --chat-width: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: #f5f8f6;
  color: #16392c;
  color-scheme: light;
  text-align: left;
  box-shadow: 0 28px 80px #001a1640;
  font-size: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transform-origin: center bottom;
  transform: perspective(1400px) rotateX(calc(12deg * var(--kb-tilt, 1)));
}
.kb-demo *, .kb-demo *::before, .kb-demo *::after { box-sizing: border-box; }
.kb-demo button, .kb-demo input, .kb-demo select { font: inherit; }
.kb-demo button { cursor: pointer; }
.kb-demo [hidden] { display: none !important; }
.kb-demo .kb-toolbar, .kb-demo .kb-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; }
.kb-demo .kb-toolbar { border-bottom: 1px solid #e1e9e4; }
.kb-product { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.kb-demo-label { padding: 3px 7px; border: 1px solid #dce6df; border-radius: 5px; color: #60776b; font-size: 10px; font-weight: 500; }
.kb-live { display: flex; align-items: center; gap: 6px; color: #60776b; font-size: 11px; }
.kb-live i { width: 6px; height: 6px; background: #73c941; border-radius: 50%; }
.kb-workspace { display: flex; position: relative; height: 440px; }
.kb-contact-rail { display: flex; flex: 0 0 54px; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 10px 8px; padding: 8px 0; border-radius: 12px; background: #eaf1ed; overflow-y: auto; scrollbar-width: thin; }
.kb-demo .kb-contact-circle { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #d4e2d8; border-radius: 50%; background: #e2f4d6; color: #31563c; font-size: 10px; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.kb-demo .kb-contact-circle:nth-child(3n + 2) { background: #e2ebf2; color: #526b8a; }
.kb-demo .kb-contact-circle:nth-child(3n) { background: #f4ebd9; color: #776243; }
.kb-demo .kb-contact-circle:hover { border-color: #79bd58; box-shadow: 0 0 0 3px #79bd5820; }
.kb-demo .kb-contact-circle[aria-pressed="true"] { background: #8bfa42; color: #0b382a; border-color: #5eab36; box-shadow: 0 0 0 3px #8bfa4233; }
.kb-board { display: flex; flex: 1; gap: 9px; padding: 10px; overflow-x: auto; min-width: 0; overscroll-behavior-x: contain; }
.kb-demo .kb-column { flex: 1 0 180px; min-width: 0; padding: 0 7px 10px; overflow-y: auto; scrollbar-width: thin; border: 1px solid #e1e9e4; border-top: 3px solid #d5ad62; border-radius: 10px; background: #eaf1ed; transition: background .15s; }
.kb-demo .kb-column[data-stage="1"] { border-top-color: #7894b7; }
.kb-demo .kb-column[data-stage="2"] { border-top-color: #79bd58; }
.kb-demo .kb-column h3 { display: flex; align-items: center; gap: 7px; padding: 10px 3px; color: #16392c; font-size: 11px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.kb-column h3 i { width: 6px; height: 6px; border-radius: 50%; background: #b39453; }
.kb-column[data-stage="1"] h3 i { background: #7894b7; }
.kb-column[data-stage="2"] h3 i { background: #79bd58; }
.kb-count { display: grid; place-items: center; margin-left: auto; min-width: 21px; height: 21px; border-radius: 6px; background: #ffffffa6; color: #5d7567; font-size: 10px; }
.kb-list { display: flex; flex-direction: column; gap: 7px; min-height: 200px; }
.kb-card { display: flex; min-width: 0; border: 1px solid #e1e9e4; border-radius: 9px; background: white; box-shadow: 0 2px 5px #0b382a05; cursor: grab; touch-action: none; user-select: none; }
.kb-demo .kb-card-open { cursor: grab; }
.kb-demo.is-moving, .kb-demo.is-moving * { cursor: grabbing !important; }
.kb-demo .kb-drag-preview { position: absolute; z-index: 10; pointer-events: none; transform: rotate(-3deg) scale(1.03); opacity: .98; border-color: #79bd58; box-shadow: 0 16px 30px #0b382a35; }
.kb-card:hover { border-color: #a9c1b3; }
.kb-card.is-selected { border-color: #79bd58; box-shadow: 0 0 0 1px #79bd5830; }
.kb-card-open { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px 9px; text-align: left; border: 0; border-radius: 9px; color: #16392c; background: transparent; min-width: 0; }
.kb-card-info { flex: 1; min-width: 0; }
.kb-card-note { flex-basis: 100%; padding: 5px 7px; border: 1px solid #eee3c4; border-radius: 5px; background: #fcf7e9; color: #796238; font: 10px/1.5 "Inter", sans-serif; overflow-wrap: anywhere; }
.kb-card-open > span:last-child { min-width: 0; }
.kb-card strong, .kb-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-card strong { font-size: 11px; font-weight: 700; }
.kb-card small { margin-top: 3px; color: #6c8175; font-size: 9px; }
.kb-demo .kb-avatar { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #e9f6df; color: #31563c; font-size: 10px; font-weight: 700; }
.kb-column[data-stage="1"] .kb-avatar { background: #e8eef5; color: #526b8a; }
.kb-column[data-stage="2"] .kb-avatar { background: #e8eee9; }
.kb-card.is-dragging { opacity: .25; outline: 2px dashed #65994a; }
.kb-demo .kb-column.is-target { background: #def0d6; border-color: #78b64d; }
.kb-demo:is(.is-moving, .is-resizing) { user-select: none; }
.kb-demo .kb-chat { display: flex; position: relative; flex: 0 0 auto; flex-direction: column; width: min(var(--chat-width), calc(100% - 64px)); min-width: 0; border-left: 1px solid #d6e2d9; background: #f4f1e9; }
.kb-chat-header { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; padding: 10px 12px; background: white; }
.kb-chat-header > div { min-width: 0; }
.kb-chat-header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.kb-chat-header div span { display: block; color: #6c8175; font-size: 9px; margin-top: 4px; }
.kb-close { margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: 0; border-radius: 6px; color: #526c5f; background: #f3f7f4; font-size: 22px !important; }
.kb-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 12px; background-image: radial-gradient(#b9b29e40 .75px, transparent .75px); background-size: 16px 16px; }
.kb-today { align-self: center; background: #ffffffb3; border-radius: 5px; padding: 4px 10px; color: #7b8076; font-size: 9px; }
.kb-bubble { align-self: flex-start; max-width: 90%; padding: 9px 11px; border-radius: 0 10px 10px; background: white; color: #294636; box-shadow: 0 1px 2px #0000000a; overflow-wrap: anywhere; font: 12px/1.6 "Inter", sans-serif; white-space: pre-wrap; }
.kb-bubble.is-sent { align-self: flex-end; background: #dff6cf; border-radius: 10px 0 10px 10px; }
.kb-bubble time { display: block; color: #768576; font-size: 9px; text-align: right; margin-top: 5px; }
.kb-compose { display: flex; gap: 8px; padding: 9px; background: #fff; border-top: 1px solid #e1e9e4; }
.kb-compose input { width: 0; flex: 1; min-width: 0; padding: 10px; border: 1px solid #e1e9e4; border-radius: 7px; color: #16392c; background: #f7faf8; font-size: 11px; }
.kb-compose button { flex-shrink: 0; width: 36px; border: 0; border-radius: 7px; color: #0b382a; background: #8bfa42; font-size: 22px; }
.kb-resizer { position: absolute; z-index: 3; top: 0; bottom: 0; left: -6px; width: 12px; cursor: col-resize; touch-action: none; }
.kb-resizer::after { position: absolute; top: 45%; left: 3px; width: 6px; height: 42px; border: 1px solid #c1d8b4; border-radius: 5px; background: #8bfa42; content: ""; }
.kb-resizer:hover, .is-resizing .kb-resizer { background: #8bfa4230; }
.kb-demo .kb-footer { padding: 8px 14px; border-top: 1px solid #e1e9e4; color: #6c8175; font-size: 10px; }
.kb-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.kb-tour-progress { height: 4px; overflow: hidden; background: #dce9df; }
.kb-tour-progress > span { display: block; width: 100%; height: 100%; background: #79d447; transform: scaleX(0); transform-origin: left; }
.landing-page .kb-demo :is(button, input, select, [role="separator"]):focus-visible { outline: 2px solid #477c2d; outline-offset: -2px; }
.landing-page .hero-showcase .kb-caption { display: block; color: #ffffffb8; text-align: center; font-size: 12px; line-height: 1.7; margin-top: 12px; }
@media (max-width: 760px) {
  .kb-workspace { height: 410px; }
  .kb-contact-rail { flex-basis: 50px; margin-left: 6px; gap: 8px; }
  .kb-demo .kb-chat { position: absolute; z-index: 2; inset: 0 0 0 auto; box-shadow: -12px 0 32px #0b382a20; }
  .kb-demo .kb-toolbar { padding: 10px 12px; }
  .kb-live { display: none; }
  .kb-board { padding: 10px; gap: 8px; }
  .kb-demo .kb-footer { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-demo .kb-column { transition: none; }
  .landing-page .kb-demo { transform: none; }
}

/* Decorative tour overlays never intercept real pointer input. */
.kb-demo .kb-tour-cursor {
  position: absolute; top: 0; left: 0; z-index: 12;
  display: flex; align-items: flex-start; gap: 3px;
  pointer-events: none; filter: drop-shadow(0 3px 4px #0b382a30);
  will-change: transform;
}
.kb-tour-cursor svg { flex-shrink: 0; transform-origin: 3px 2px; transition: transform .15s; }
.kb-tour-cursor span { margin-top: 22px; padding: 4px 8px; border-radius: 4px 10px 10px; background: #0b382a; color: white; font-size: 10px; }
.kb-tour-cursor::before { content: ''; position: absolute; left: -13px; top: -13px; width: 30px; height: 30px; border: 2px solid #61ac36; border-radius: 50%; opacity: 0; transform: scale(.5); }
.kb-tour-cursor.is-clicking::before { opacity: .7; transform: scale(1); transition: transform .25s, opacity .25s; }
.kb-tour-cursor:is(.is-clicking, .is-holding) svg { transform: scale(.85); }
.kb-demo .kb-tour-column { position: absolute; z-index: 11; pointer-events: none; border-color: #79bd58; box-shadow: 0 16px 30px #0b382a35; }
.kb-demo .kb-column.is-tour-source { opacity: .25; outline: 2px dashed #65994a; }
.kb-demo .kb-tour-toggle { margin-left: auto; flex-shrink: 0; padding: 5px 8px; border: 1px solid #d4e2d8; border-radius: 6px; color: #31563c; background: #f3f8ef; font-size: 10px; }
@media (prefers-reduced-motion: reduce) {
  .kb-demo .kb-tour-toggle, .kb-demo .kb-tour-cursor, .kb-demo .kb-tour-column { display: none; }
}

.kb-demo .kb-column-handle { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: grab; }
.kb-demo .kb-column-handle:active { cursor: grabbing; }
.kb-demo .kb-column.is-column-dragging { opacity: .3; }
.kb-demo .kb-column.is-column-target { outline: 2px dashed #65994a; outline-offset: -3px; }
.kb-demo .kb-tour-column { margin: 0; flex: none; overflow: hidden; }
.kb-demo .kb-tour-card { position: absolute; z-index: 11; pointer-events: none; border-color: #79bd58; box-shadow: 0 16px 30px #0b382a35; }
.kb-demo .kb-card.is-tour-source { opacity: .25; outline: 2px dashed #65994a; }
.kb-demo .kb-compose input.is-tour-typing { border-color: #79bd58; box-shadow: 0 0 0 2px #79bd5825; }
@media (prefers-reduced-motion: reduce) {
  .kb-demo .kb-tour-card { display: none; }
}

/* Compact dock, inspired by the extension's workspace controls. */
.kb-demo .kb-footer { justify-content: center; padding: 10px 14px; background: #f5f8f6; }
.kb-dock { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 8px; border: 1px solid #d3e1da; border-radius: 16px; background: #ffffffed; box-shadow: 0 3px 10px #0b382a12; }
.kb-dock-brand { display: flex; align-items: center; gap: 5px; color: #16392c; font-size: 12px; font-weight: 600; }
.kb-dock-brand img { flex-shrink: 0; }
.kb-dock-stages { display: flex; align-items: center; overflow: visible; border: 1px solid #b4d99b; border-radius: 9px; background: #e7f8d9; color: #16392c; }
.kb-dock-stages > span { padding: 8px 10px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.kb-demo .kb-add-stage { position: relative; width: 32px; height: 31px; padding: 0; border: 0; border-left: 1px solid #b4d99b; border-radius: 0 8px 8px 0; background: transparent; color: #16392c; font-size: 20px; line-height: 1; }
.kb-add-stage::after { content: 'Criar etapa'; position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 13; padding: 6px 8px; border-radius: 5px; background: #16392c; color: #fff; font: 10px/1.2 Inter, sans-serif; white-space: nowrap; opacity: 0; transform: translateX(-50%) translateY(3px); pointer-events: none; transition: opacity .15s, transform .15s; }
.kb-add-stage:hover::after, .kb-add-stage:focus-visible::after, .kb-add-stage.is-tour-hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.kb-demo .kb-add-stage:hover, .kb-demo .kb-add-stage.is-tour-hover { background: #d4f3bd; }
.kb-demo .kb-dock .kb-tour-toggle { min-height: 31px; padding: 6px 9px; border-radius: 9px; background: #fff; }
.kb-stage-form { display: flex; align-items: center; gap: 4px; min-height: 45px; }
.kb-demo .kb-stage-form input { width: 0; min-width: 0; flex: 1; padding: 7px 6px; border: 1px solid #9fc482; border-radius: 5px; background: #fff; color: #16392c; font-size: 11px; }
.kb-demo .kb-stage-form button { flex: 0 0 24px; height: 26px; padding: 0; border: 1px solid #c3d7b7; border-radius: 5px; background: #e7f8d9; color: #31563c; font-size: 14px; }
.kb-demo .kb-stage-form button:last-child { background: transparent; border-color: transparent; color: #6c8175; }
.kb-demo .kb-empty-stage { margin: 16px 8px; color: #829488; text-align: center; font: 10px/1.6 Inter, sans-serif; }
.kb-demo .kb-column[data-stage="3"] { border-top-color: #a18abe; }
.kb-column[data-stage="3"] h3 i { background: #a18abe; }
@media (max-width: 400px) {
  .kb-dock { gap: 6px; padding: 5px 6px; }
  .kb-dock-brand { font-size: 11px; }
  .kb-dock-stages > span { padding-inline: 7px; }
  .kb-demo .kb-dock .kb-tour-toggle { padding-inline: 6px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-add-stage::after { transition: none; }
}
