.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text-soft);
  font-weight: 800;
}

.demo-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.56);
  font: inherit;
  font-size: 16px;
}

.demo-form input:focus {
  border-color: rgba(183, 140, 255, 0.54);
  outline: 3px solid rgba(139, 75, 220, 0.18);
}

.demo-form small,
.demo-form .form-status {
  min-height: 22px;
  margin: 0;
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 700;
}

.demo-form .form-status.error {
  color: #fca5a5;
}

.demo-form .form-status.success {
  color: var(--success);
}

.demo-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.56);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.demo-form textarea:focus {
  border-color: rgba(183, 140, 255, 0.54);
  outline: 3px solid rgba(139, 75, 220, 0.18);
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(14px);
}

.demo-modal.is-open {
  display: flex;
}

.demo-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(19, 34, 56, 0.98), rgba(3, 7, 18, 0.98)),
    var(--surface);
  box-shadow: var(--shadow), var(--glow);
}

.demo-dialog h2 {
  font-size: clamp(1.75rem, 6vw, 2.55rem);
}

.demo-dialog > p:not(.eyebrow) {
  color: var(--text-soft);
}

.demo-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  margin: -12px -12px 0 12px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.56);
  font-size: 1.3rem;
}

.demo-chat-lines {
  margin-top: 18px;
}

.demo-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.demo-banner[hidden] {
  display: none;
}

.demo-banner p {
  margin: 0;
  color: var(--text-soft);
}

.banner-close {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(139, 75, 220, 0.16);
  font-size: 1.2rem;
  font-weight: 900;
}

.banner-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.banner-form input[type="text"] {
  min-height: 40px;
  min-width: 170px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.6);
  font: inherit;
  font-size: 14px;
}

.banner-form input[type="text"]:focus {
  border-color: rgba(183, 140, 255, 0.54);
  outline: 3px solid rgba(139, 75, 220, 0.18);
}

.banner-form .form-status {
  flex-basis: 100%;
  min-height: 1.1em;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
}

.banner-form .form-status.error {
  color: #fca5a5;
}

.banner-submit {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: linear-gradient(135deg, var(--blue), #a855f7);
  box-shadow: 0 6px 20px rgba(139, 75, 220, 0.28);
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: transform 180ms ease, opacity 180ms ease;
}

.banner-submit:hover:not(:disabled),
.banner-submit:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.banner-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .demo-banner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .banner-form {
    grid-column: 1 / -1;
  }

  .banner-form input[type="text"] {
    flex: 1;
    min-width: 0;
  }
}

.exit-stage {
  margin: 22px 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 7, 18, 0.7);
}

.exit-stage-browser {
  width: 100%;
}

.exit-stage-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--border-soft);
}

.exit-stage-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.exit-stage-bar > span:nth-child(1) { background: rgba(239, 68, 68, 0.75); }

.exit-stage-bar > span:nth-child(2) { background: rgba(245, 158, 11, 0.75); }

.exit-stage-bar > span:nth-child(3) { background: rgba(34, 197, 94, 0.75); }

.exit-stage-url {
  flex: 1;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(3, 7, 18, 0.65);
  color: var(--muted);
  font-size: 0.7rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exit-stage-page {
  position: relative;
  min-height: 156px;
  padding: 16px 20px;
  overflow: hidden;
}

.exit-stage-lines {
  display: grid;
  gap: 9px;
}

.exit-stage-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.exit-stage-line--header {
  height: 11px;
  max-width: 55%;
  background: rgba(183, 140, 255, 0.18);
}

.exit-stage-line--short {
  max-width: 38%;
}

.exit-stage-cursor {
  position: absolute;
  bottom: 28%;
  left: 48%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.exit-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(3, 7, 18, 0.52);
  opacity: 0;
  pointer-events: none;
}

.exit-stage-popup {
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  z-index: 4;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.98), rgba(3, 7, 18, 0.98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: scale(0.86) translateY(-10px);
  transform-origin: center top;
  pointer-events: none;
}

.exit-stage-popup-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.exit-stage-field {
  height: 6px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.15);
  margin-bottom: 5px;
}

.exit-stage-field--short {
  max-width: 65%;
}

.exit-stage-btn {
  height: 14px;
  width: 50%;
  border-radius: 7px;
  background: rgba(139, 75, 220, 0.55);
  margin-top: 8px;
}

.demo-launch-btn {
  width: 100%;
  margin-top: 10px;
}

.demo-stage {
  position: relative;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 7, 18, 0.65);
}

.demo-stage-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(11, 18, 32, 0.95);
  border-bottom: 1px solid var(--border-soft);
}

.dsb-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dsb-dot--red { background: rgba(239, 68, 68, 0.72); }

.dsb-dot--yellow { background: rgba(245, 158, 11, 0.72); }

.dsb-dot--green { background: rgba(34, 197, 94, 0.72); }

.dsb-title {
  flex: 1;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-what-next {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.55);
}

.demo-what-label {
  margin: 0 0 12px;
  color: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.demo-flow-node {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(139, 75, 220, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-flow-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.demo-lead-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.5);
}

.demo-lead-tags {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.demo-tag-source {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--blue-soft);
  background: rgba(139, 75, 220, 0.18);
  font-size: 0.7rem;
  font-weight: 900;
}

.demo-tag-status {
  padding: 3px 9px;
  border-radius: 999px;
  color: #052e16;
  background: var(--success);
  font-size: 0.7rem;
  font-weight: 900;
}

.demo-lead-dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.demo-lead-dl div { min-width: 0; }

.demo-lead-dl dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-lead-dl dd {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  max-height: 196px;
  padding: 14px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 140, 255, 0.22) transparent;
}

.demo-chat-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.81rem;
  line-height: 1.45;
  animation: demo-fade-up 0.3s ease both;
}

.demo-chat-msg.bot {
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.demo-chat-msg.user {
  color: #f8fafc;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.demo-chat-msg.system {
  align-self: center;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.demo-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.08);
  align-self: flex-start;
  animation: demo-fade-up 0.3s ease both;
}

.demo-chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue-soft);
  animation: chat-dot-pulse 1.2s ease-in-out infinite;
}

.demo-chat-typing span:nth-child(2) { animation-delay: 0.15s; }

.demo-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

.demo-stage--popup {
  min-height: 180px;
}

.popup-stage-page {
  display: grid;
  gap: 9px;
  padding: 14px 16px 12px;
}

.popup-stage-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.popup-stage-line--h {
  height: 11px;
  max-width: 55%;
  background: rgba(183, 140, 255, 0.17);
}

.popup-stage-line--s { max-width: 40%; }

.popup-stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(3, 7, 18, 0.54);
  opacity: 0;
  transition: opacity 0.42s ease;
}

.popup-stage-overlay.is-visible {
  opacity: 1;
}

.popup-stage-modal {
  width: 78%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.98), rgba(3, 7, 18, 0.98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transform: scale(0.88) translateY(-8px);
  opacity: 0;
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.popup-stage-overlay.is-visible .popup-stage-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.popup-stage-heading {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.popup-stage-field {
  height: 6px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.15);
  margin-bottom: 7px;
}

.popup-stage-field--s { max-width: 65%; }

.popup-stage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 60%;
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(139, 75, 220, 0.55);
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 700;
}

.demo-stage--form {
  padding: 16px;
  min-height: 0;
}

.form-stage-row {
  margin-bottom: 10px;
}

.form-stage-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.form-stage-field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.5);
  color: var(--text-soft);
  font-size: 0.82rem;
  transition: border-color 0.3s ease;
}

.form-stage-field.is-filled {
  border-color: rgba(183, 140, 255, 0.42);
}

.form-stage-field--area {
  min-height: 56px;
  align-items: flex-start;
  padding-top: 10px;
}

.form-stage-cursor {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--blue-soft);
  flex-shrink: 0;
  animation: cursor-blink 0.9s ease-in-out infinite;
}

.form-stage-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  transition: box-shadow 0.35s ease;
}

.form-stage-submit.is-active {
  box-shadow: 0 0 0 4px rgba(139, 75, 220, 0.28), 0 14px 36px rgba(139, 75, 220, 0.32);
}

.form-stage-success {
  margin-top: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-stage-success.is-visible { opacity: 1; }

.demo-stage--banner {
  overflow: hidden;
}

.banner-stage-page {
  display: grid;
  gap: 9px;
  padding: 14px 16px 10px;
}

.banner-stage-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.banner-stage-line--h {
  height: 11px;
  max-width: 55%;
  background: rgba(183, 140, 255, 0.17);
}

.banner-stage-line--s { max-width: 40%; }

.banner-stage-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.97);
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-stage-bar.is-visible {
  transform: translateY(0);
}

.banner-stage-text {
  flex: 1;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-stage-input {
  height: 24px;
  width: 90px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: rgba(3, 7, 18, 0.5);
  flex-shrink: 0;
}

.banner-stage-btn {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .demo-lead-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-flow-node {
    font-size: 0.72rem;
    padding: 4px 9px;
  }

  .banner-stage-input {
    display: none;
  }
}

.demo-page-section {
  padding-top: 48px;
}

.demo-page-intro {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.demo-page-intro h1 {
  max-width: none;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.demo-tools-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.demo-tools-nav {
  display: grid;
  gap: 8px;
}

.demo-tools-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 18, 0.45);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.demo-tools-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(183, 140, 255, 0.22);
  border-radius: 10px;
  background: rgba(139, 75, 220, 0.1);
  color: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 900;
  flex-shrink: 0;
}

.demo-tools-tab.is-active {
  border-color: rgba(183, 140, 255, 0.5);
  box-shadow: inset 3px 0 0 var(--blue);
  background: rgba(139, 75, 220, 0.16);
  color: var(--text);
  font-weight: 800;
}

.demo-tools-tab.is-active .demo-tools-tab-icon {
  border-color: rgba(183, 140, 255, 0.44);
  background: rgba(139, 75, 220, 0.24);
  color: #e9d5ff;
}

.demo-tools-panel {
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(19, 34, 56, 0.86), rgba(15, 23, 42, 0.84)),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.24);
}

.demo-tool-pane {
  display: none;
  flex-direction: column;
  height: 100%;
}

.demo-tool-pane.is-active {
  display: flex;
}

.tool-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-demo-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(19, 34, 56, 0.86), rgba(15, 23, 42, 0.84)),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 140, 255, 0.34);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38), var(--glow);
}

.tdc-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tdc-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(183, 140, 255, 0.24);
  border-radius: 14px;
  color: var(--blue-soft);
  background: rgba(139, 75, 220, 0.16);
  font-weight: 900;
  font-size: 0.78rem;
}

.tdc-meta {
  min-width: 0;
}

.tdc-meta h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.tdc-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tdc-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 152px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(3, 7, 18, 0.65);
  flex-shrink: 0;
}

.tdc-stage-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(11, 18, 32, 0.95);
  border-bottom: 1px solid var(--border-soft);
}

.tdc-chat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 92, 255, 0.6) transparent;
}

.tdc-chat-body::-webkit-scrollbar {
  width: 5px;
}

.tdc-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.tdc-chat-body::-webkit-scrollbar-thumb {
  border: none;
  border-radius: 999px;
  background: rgba(165, 92, 255, 0.5);
}

.tdc-chat-msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 13px;
  font-size: 0.79rem;
  line-height: 1.42;
  animation: demo-fade-up 0.3s ease both;
}

.tdc-chat-msg.bot {
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.tdc-chat-msg.user {
  color: #f8fafc;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.tdc-chat-msg.system {
  align-self: center;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.tdc-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: 13px;
  border-bottom-left-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.08);
  align-self: flex-start;
  animation: demo-fade-up 0.3s ease both;
}

.tdc-chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue-soft);
  animation: chat-dot-pulse 1.2s ease-in-out infinite;
}

.tdc-chat-typing span:nth-child(2) { animation-delay: 0.15s; }

.tdc-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

.tdc-stage--popup {
  height: 152px;
  overflow: hidden;
}

.tdc-popup-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.tdc-popup-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px 24px;
  transform: translateY(0);
  transition: transform 1.35s cubic-bezier(0.33, 1, 0.38, 1);
  will-change: transform;
}

.tdc-popup-page.is-scrolling {
  transform: translateY(-32%);
}

.tdc-pl-hero {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.tdc-pl-hero-line {
  height: 7px;
  border-radius: 5px;
  background: rgba(183, 140, 255, 0.16);
}

.tdc-pl-hero-line--lg {
  width: 72%;
  height: 11px;
  background: rgba(183, 140, 255, 0.24);
}

.tdc-pl-hero-line--sm {
  width: 48%;
}

.tdc-pl-cta {
  width: 34%;
  height: 14px;
  margin-top: 2px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.55), rgba(168, 85, 247, 0.38));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.22);
}

.tdc-pl-band {
  height: 6px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.tdc-pl-band--short { width: 78%; }

.tdc-pl-band--xs {
  width: 52%;
  opacity: 0.7;
}

.tdc-pl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tdc-pl-card {
  display: block;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  background:
    linear-gradient(160deg, rgba(19, 34, 56, 0.72), rgba(8, 12, 24, 0.82)),
    rgba(183, 140, 255, 0.06);
}

.tdc-popup-sidebox {
  position: absolute;
  top: 50%;
  left: 8px;
  z-index: 2;
  width: min(210px, 54%);
  max-height: calc(100% - 16px);
  padding: 9px 10px 10px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-left: 2px solid rgba(192, 132, 252, 0.55);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(19, 34, 56, 0.98), rgba(8, 12, 24, 0.98));
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.1),
    8px 0 24px rgba(139, 92, 246, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.48);
  transform: translateX(-120%) translateY(-50%);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tdc-popup-sidebox.is-open {
  transform: translateX(0) translateY(-50%);
  opacity: 1;
}

.tdc-popup-sidebox-label {
  display: inline-flex;
  margin: 0 0 5px;
  padding: 3px 8px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  color: rgba(216, 180, 254, 0.92);
  background: rgba(139, 92, 246, 0.12);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tdc-popup-heading {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
}

.tdc-popup-field {
  height: 6px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.15);
  margin-bottom: 6px;
}

.tdc-popup-field--s { max-width: 72%; }

.tdc-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  width: 58%;
  margin-top: 6px;
  border-radius: 7px;
  background: rgba(139, 75, 220, 0.55);
  color: var(--text);
  font-size: 0.56rem;
  font-weight: 700;
}

.tdc-stage-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.tdc-stage--exit {
  overflow: hidden;
  height: 152px;
}

.tdc-exit-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--border-soft);
}

.tdc-exit-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.tdc-exit-bar > span:nth-child(1) { background: rgba(239, 68, 68, 0.75); }

.tdc-exit-bar > span:nth-child(2) { background: rgba(245, 158, 11, 0.75); }

.tdc-exit-bar > span:nth-child(3) { background: rgba(34, 197, 94, 0.75); }

.tdc-exit-url {
  flex: 1;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(3, 7, 18, 0.65);
  color: var(--muted);
  font-size: 0.66rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tdc-exit-page {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 10px 14px 12px;
  overflow: hidden;
}

.tdc-exit-edge-hint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tdc-exit-edge-hint.is-visible {
  opacity: 1;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.tdc-exit-lines {
  display: grid;
  gap: 6px;
}

.tdc-exit-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.tdc-exit-line--h {
  height: 10px;
  max-width: 55%;
  background: rgba(183, 140, 255, 0.18);
}

.tdc-exit-line--s { max-width: 38%; }

.tdc-exit-cursor {
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  transition: top 1.1s cubic-bezier(0.4, 0, 0.2, 1), left 0.9s ease;
}

.tdc-exit-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(3, 7, 18, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.tdc-exit-overlay.is-visible {
  opacity: 1;
}

.tdc-exit-popup-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 4;
  width: min(78%, 280px);
  padding: 12px 14px;
  border: 1px solid rgba(183, 140, 255, 0.38);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.98), rgba(3, 7, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.62),
    0 0 40px rgba(139, 92, 246, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transform-origin: center center;
  pointer-events: none;
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.tdc-exit-popup-stage.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tdc-exit-popup-title {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
}

.tdc-exit-field {
  height: 5px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.15);
  margin-bottom: 5px;
}

.tdc-exit-field--s { max-width: 65%; }

.tdc-exit-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13px;
  width: 60%;
  border-radius: 6px;
  background: rgba(139, 75, 220, 0.55);
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.5rem;
  font-weight: 700;
}

.tdc-stage--form-mock {
  position: relative;
  padding: 12px;
  height: 152px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(183, 140, 255, 0.02),
      rgba(183, 140, 255, 0.02) 6px,
      transparent 6px,
      transparent 12px
    ),
    rgba(3, 7, 18, 0.65);
}

.tdc-form-skel {
  margin-bottom: 8px;
}

.tdc-form-skel-label {
  width: 42%;
  height: 5px;
  margin-bottom: 5px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.14);
}

.tdc-form-skel-label--s {
  width: 56%;
}

.tdc-form-skel-field {
  position: relative;
  min-height: 26px;
  padding: 6px 8px;
  border: 1px dashed rgba(183, 140, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.42);
  overflow: hidden;
}

.tdc-form-skel-field--area {
  min-height: 38px;
}

.tdc-form-skel-fill {
  display: block;
  width: 0;
  height: 5px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.38);
  transition: width 0.55s ease;
}

.tdc-form-skel-field.is-filled .tdc-form-skel-fill {
  background: rgba(168, 85, 247, 0.55);
}

.tdc-form-skel--area .tdc-form-skel-fill:nth-child(1) { margin-bottom: 5px; }

.tdc-form-skel-submit {
  height: 28px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(139, 75, 220, 0.22);
  border: 1px dashed rgba(183, 140, 255, 0.28);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tdc-form-skel-submit.is-active {
  background: linear-gradient(135deg, rgba(139, 75, 220, 0.75), rgba(168, 85, 247, 0.65));
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(139, 75, 220, 0.24);
}

.tdc-form-skel-success {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tdc-form-skel-success.is-visible { opacity: 1; }

.tdc-stage--form {
  overflow: hidden;
  height: 152px;
}

.tdc-form-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.tdc-form-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.12), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(168, 85, 247, 0.08), transparent 36%),
    rgba(3, 7, 18, 0.72);
}

.tdc-fp-hero {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
  padding-bottom: 0;
}

.tdc-fp-line {
  height: 6px;
  border-radius: 5px;
  background: rgba(183, 140, 255, 0.14);
}

.tdc-fp-line--lg {
  width: 56%;
  height: 10px;
  background: linear-gradient(90deg, rgba(183, 140, 255, 0.28), rgba(139, 92, 246, 0.16));
}

.tdc-fp-line--sm {
  width: 40%;
}

.tdc-fp-line--xs {
  width: 28%;
  opacity: 0.75;
}

.tdc-fp-band {
  height: 5px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.08);
}

.tdc-fp-band--short {
  width: 64%;
  margin-inline: auto;
  margin-top: auto;
}

.tdc-form-embed-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 420px;
  width: 100%;
}

.tdc-form-embed-intro,
.tdc-form-embed-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
  padding: 0;
  text-align: center;
}

.tdc-form-embed-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  color: rgba(216, 180, 254, 0.94);
  background: rgba(139, 92, 246, 0.18);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tdc-form-embed-kicker {
  margin: 0;
  color: rgba(192, 132, 252, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tdc-form-embed-title {
  margin: 0;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.22;
  max-width: 28ch;
}

.tdc-form-embed-sub {
  margin: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 32ch;
}

.tdc-form-embed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 2px;
}

.tdc-form-embed-chips span {
  padding: 4px 9px;
  border: none;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(139, 92, 246, 0.12);
  font-size: 0.56rem;
  font-weight: 700;
}

.tdc-fp-offer-lines {
  display: none;
}

.tdc-form-embed-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.tdc-form-embed-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  padding: 14px 16px 12px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.22), transparent 58%),
    linear-gradient(155deg, rgba(28, 20, 48, 0.78), rgba(8, 12, 24, 0.82));
  box-shadow:
    0 0 48px rgba(139, 92, 246, 0.2),
    0 20px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.tdc-form-embed-card::before {
  display: none;
}

.tdc-fe-card-label {
  margin: 0 0 10px;
  color: rgba(216, 180, 254, 0.82);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tdc-fe-field {
  margin-bottom: 6px;
}

.tdc-fe-field--area {
  margin-bottom: 7px;
}

.tdc-fe-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tdc-fe-input {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.48);
  transition: background 280ms ease, box-shadow 280ms ease;
}

.tdc-fe-input--area {
  min-height: 32px;
  align-items: flex-start;
  padding-top: 6px;
}

.tdc-fe-input.is-filled {
  background: rgba(15, 23, 42, 0.68);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.22), 0 0 18px rgba(139, 92, 246, 0.08);
}

.tdc-fe-text {
  color: rgba(241, 245, 249, 0.94);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.tdc-fe-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.72), rgba(139, 92, 246, 0.62));
  border: none;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  transition:
    background 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.tdc-fe-submit.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(168, 85, 247, 0.95));
  box-shadow:
    0 0 0 2px rgba(139, 75, 220, 0.22),
    0 0 36px rgba(139, 92, 246, 0.36),
    0 12px 28px rgba(76, 29, 149, 0.32);
}

.tdc-fe-submit.is-sending {
  opacity: 0.9;
  transform: scale(0.99);
}

.tdc-fe-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.9), rgba(22, 101, 52, 0.86));
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 300ms ease;
}

.tdc-fe-success.is-visible {
  opacity: 1;
}

.tdc-flow-node.is-active {
  border-color: rgba(192, 132, 252, 0.52);
  color: rgba(248, 250, 252, 0.96);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(3, 7, 18, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(139, 92, 246, 0.18);
}

.tdc-lead-card.is-active {
  border-color: rgba(192, 132, 252, 0.34);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.14);
}

.tdc-form-row {
  margin-bottom: 9px;
}

.tdc-form-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.tdc-form-field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(3, 7, 18, 0.5);
  color: var(--text-soft);
  font-size: 0.79rem;
  transition: border-color 0.3s ease;
}

.tdc-form-field.is-filled {
  border-color: rgba(183, 140, 255, 0.42);
}

.tdc-form-field--area {
  min-height: 50px;
  align-items: flex-start;
  padding-top: 8px;
}

.tdc-form-cursor {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--blue-soft);
  flex-shrink: 0;
  animation: cursor-blink 0.9s ease-in-out infinite;
}

.tdc-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  transition: box-shadow 0.35s ease;
}

.tdc-form-submit.is-active {
  box-shadow: 0 0 0 3px rgba(139, 75, 220, 0.28), 0 12px 32px rgba(139, 75, 220, 0.32);
}

.tdc-form-success {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tdc-form-success.is-visible { opacity: 1; }

.tdc-stage--banner {
  overflow: hidden;
  height: 152px;
}

.tdc-banner-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.tdc-banner-page {
  display: grid;
  gap: 7px;
  flex: 1;
  padding: 12px 14px 52px;
}

.tdc-banner-line {
  height: 6px;
  border-radius: 4px;
  background: rgba(183, 140, 255, 0.1);
}

.tdc-banner-line--h {
  height: 10px;
  max-width: 55%;
  background: rgba(183, 140, 255, 0.17);
}

.tdc-banner-line--s { max-width: 40%; }

.tdc-banner-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 24px rgba(139, 75, 220, 0.12);
  transform: translateY(calc(100% + 14px));
  transition: transform 0.48s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.tdc-banner-bar.is-visible {
  transform: translateY(0);
}

.tdc-banner-text {
  flex: 1;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.64rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tdc-banner-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tdc-banner-input-mock {
  height: 22px;
  width: 72px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(3, 7, 18, 0.55);
}

.tdc-banner-btn-mock {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #a855f7);
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.tdc-banner-close-mock {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(139, 75, 220, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.tdc-result {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.5);
}

.tdc-result-label {
  margin: 0 0 7px;
  color: var(--blue-soft);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tdc-flow {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tdc-flow-node {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(139, 75, 220, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.tdc-flow-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.tdc-lead-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tdc-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.tdc-badge--source {
  color: var(--blue-soft);
  background: rgba(139, 75, 220, 0.18);
}

.tdc-badge--status {
  color: #052e16;
  background: var(--success);
}

.tdc-badge--industry {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-soft);
}

.tdc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.tdc-anim-btn {
  width: 100%;
  min-height: 38px;
  min-width: 0;
  font-size: 0.82rem;
}

.tdc-anim-btn.is-playing {
  opacity: 0.65;
  pointer-events: none;
}

.tdc-launch-btn {
  width: 100%;
  margin-top: 0;
  min-height: 42px;
  font-size: 0.86rem;
}

.demo-tools-panel .tdc-stage {
  height: 240px;
}

.pane-section-label {
  margin: 14px 0 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pane-section-label:first-of-type {
  margin-top: 4px;
}

.demo-tool-pane .tdc-actions {
  flex-direction: row;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.demo-tool-pane .tdc-anim-btn,
.demo-tool-pane .tdc-launch-btn {
  flex: 1;
  width: auto;
}

.tdc-lead-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.52);
}

.tdc-lc-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tdc-lc-key {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tdc-lc-val {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.tdc-lc-val--new {
  color: var(--success);
  font-weight: 800;
}

.demo-page .demo-tools-panel .tdc-stage--form {
  height: clamp(280px, 32vw, 330px);
}

.demo-page .tdc-form-page,
.demo-page .tdc-form-viewport {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}

.demo-page .tdc-form-page {
  gap: 12px;
  padding: 20px 24px 18px;
}

.demo-page .tdc-fp-line--lg {
  width: 50%;
  height: 13px;
}

.demo-page .tdc-fp-line--sm {
  width: 36%;
}

.demo-page .tdc-form-embed-layout {
  gap: 16px;
  padding: 12px 20px 14px;
  max-width: 460px;
}

.demo-page .tdc-form-embed-card {
  max-width: 340px;
  padding: 16px 18px 14px;
}

.demo-page .tdc-form-embed-title {
  font-size: 0.96rem;
}

.demo-page .tdc-form-embed-sub {
  font-size: 0.72rem;
}

.demo-page .tdc-fe-input {
  min-height: 26px;
}

.demo-page .tdc-fe-input--area {
  min-height: 34px;
}

.demo-page .tdc-fe-text {
  font-size: 0.74rem;
}

.demo-page .tdc-fe-submit {
  min-height: 32px;
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .tdc-form-embed-layout {
    gap: 12px;
    padding: 8px 12px 10px;
    max-width: 100%;
  }

  .demo-page .tdc-form-embed-card {
    max-width: 100%;
  }
}

.tdc-lf-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
}

.tdc-lf-row--area {
  align-items: flex-start;
}

.tdc-lf-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.tdc-lf-field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: rgba(3, 7, 18, 0.5);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.tdc-lf-field.is-filled {
  border-color: rgba(183, 140, 255, 0.38);
}

.tdc-lf-field--area {
  min-height: 36px;
  align-items: flex-start;
  padding-top: 6px;
}

.tdc-lf-text {
  flex: 1;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.tdc-lf-cursor {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--blue-soft);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.tdc-lf-cursor.is-active {
  opacity: 1;
  animation: cursor-blink 0.9s ease-in-out infinite;
}

.tdc-lf-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(139, 75, 220, 0.2);
  border: 1px dashed rgba(183, 140, 255, 0.26);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.tdc-lf-submit.is-active {
  background: linear-gradient(135deg, rgba(139, 75, 220, 0.8), rgba(168, 85, 247, 0.7));
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 0 0 2px rgba(139, 75, 220, 0.24), 0 0 24px rgba(139, 92, 246, 0.22);
}

.demo-page .tdc-flow-node {
  transition:
    border-color 320ms ease,
    color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.demo-page .tdc-lead-card {
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.tdc-popup-success {
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tdc-popup-success.is-visible { opacity: 1; }

.tdc-exit-success {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: var(--success);
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tdc-exit-success.is-visible { opacity: 1; }

.tdc-banner-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: rgba(11, 18, 32, 0.98);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 750;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tdc-banner-success.is-visible { opacity: 1; }

.tdc-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
}

.tdc-wide-left {
  flex: 1.3;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tdc-wide-right {
  flex: 0.7;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.tdc-wide-right .tdc-result {
  flex: 1;
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .tool-demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-tools-shell {
    grid-template-columns: 1fr;
  }

  .demo-tools-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .demo-tools-tab {
    flex: 0 0 auto;
    min-width: 148px;
  }

  .demo-tools-panel {
    min-height: 480px;
  }

  .tdc-card--wide {
    flex-direction: column;
    gap: 0;
  }

  .tdc-wide-right {
    flex: none;
    min-width: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tool-demo-card {
    padding: 18px;
  }

  .tdc-banner-actions {
    display: none;
  }

  .tdc-banner-close-mock {
    display: none;
  }

  .tdc-flow-node {
    font-size: 0.67rem;
    padding: 4px 8px;
  }
}

.tool-demo-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.tool-demo-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 140, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(183, 140, 255, 0.08), transparent 44%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.tool-demo-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .tool-demo-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(183, 140, 255, 0.48);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44), 0 0 52px rgba(139, 75, 220, 0.2);
  }

  .tool-demo-card:hover::before {
    opacity: 1;
  }
}

.banner-submit,
.demo-close,
.banner-close {
  position: relative;
  overflow: hidden;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background-position 260ms ease,
    opacity 260ms ease;
}

.banner-submit {
  background-size: 160% 160%;
}

.banner-submit::after {
  position: absolute;
  inset: -45% auto -45% -70%;
  width: 48%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 560ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .banner-submit:hover::after {
    left: 125%;
  }

  .banner-submit:hover {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 18px 48px rgba(139, 75, 220, 0.3);
  }
}

.banner-submit:active {
  transform: translateY(0) scale(0.98);
}

.banner-submit:focus-visible,
.demo-close:focus-visible,
.banner-close:focus-visible {
  outline: 3px solid rgba(183, 140, 255, 0.48);
  outline-offset: 3px;
}

.demo-modal {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.demo-modal.is-open,
.demo-modal.is-closing,
.demo-modal.is-opening {
  display: flex;
}

.demo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.demo-modal.is-opening {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.demo-modal.is-closing {
  opacity: 0;
}

.demo-dialog {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-modal.is-open .demo-dialog:not(.demo-dialog--side) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-modal.is-closing .demo-dialog:not(.demo-dialog--side) {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

/* Lead popup live demo: edge side panel sliding from left */
.demo-modal.demo-modal--side {
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: rgba(3, 7, 18, 0.16);
  backdrop-filter: blur(3px);
  overflow: visible;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.demo-modal.demo-modal--side.is-opening {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.demo-modal.demo-modal--side.is-closing {
  opacity: 1;
  visibility: visible;
}

.demo-modal.demo-modal--side .demo-dialog--side {
  position: fixed;
  top: 50%;
  left: 0;
  width: min(320px, 92vw);
  max-width: 340px;
  max-height: none;
  margin: 0;
  padding: 14px 16px 16px;
  overflow: visible;
  border-radius: 0 18px 18px 0;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-left: none;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    12px 0 40px rgba(139, 92, 246, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateX(-100%) translateY(-50%);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-modal.demo-modal--side.is-opening .demo-dialog--side {
  opacity: 0;
  transform: translateX(-100%) translateY(-50%);
}

.demo-modal.demo-modal--side.is-open .demo-dialog--side {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

.demo-modal.demo-modal--side.is-closing .demo-dialog--side {
  opacity: 0;
  transform: translateX(-100%) translateY(-50%);
}

.demo-dialog--side .demo-close {
  width: 34px;
  height: 34px;
  margin: -6px -6px 0 8px;
  font-size: 1.1rem;
}

.demo-dialog--side h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
  line-height: 1.2;
}

.demo-dialog--side > p:not(.eyebrow) {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-dialog--side .eyebrow {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.demo-dialog--side .demo-form {
  gap: 8px;
}

.demo-dialog--side .demo-form label {
  gap: 4px;
  font-size: 0.8rem;
}

.demo-dialog--side .demo-form input,
.demo-dialog--side .demo-form textarea {
  padding: 8px 10px;
  font-size: 0.86rem;
}

.demo-dialog--side .demo-form textarea {
  min-height: 44px;
  resize: none;
}

.demo-dialog--side .demo-form .btn {
  margin-top: 2px;
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .demo-modal.demo-modal--side .demo-dialog--side {
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: none;
    border-radius: 16px;
    border-left: 1px solid rgba(168, 85, 247, 0.34);
    transform: translateX(-100%) translateY(-50%);
  }

  .demo-modal.demo-modal--side.is-opening .demo-dialog--side {
    opacity: 0;
    transform: translateX(-100%) translateY(-50%);
  }

  .demo-modal.demo-modal--side.is-open .demo-dialog--side {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }

  .demo-modal.demo-modal--side.is-closing .demo-dialog--side {
    opacity: 0;
    transform: translateX(-100%) translateY(-50%);
  }

  .tdc-popup-sidebox {
    width: min(52%, 190px);
    left: 8px;
    padding: 10px 11px;
  }

  .tdc-popup-heading {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdc-popup-page {
    transition: none;
  }

  .tdc-popup-page.is-scrolling,
  #popup-inline-page {
    transform: translateY(-22%);
  }

  .tdc-popup-sidebox {
    transition: opacity 0.12s ease;
  }

  .tdc-popup-sidebox.is-open,
  #popup-inline-sidebox {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
  }

  #popup-inline-success {
    opacity: 1;
  }

  .demo-modal.demo-modal--side .demo-dialog--side {
    transition: opacity 0.12s ease;
  }

  .demo-modal.demo-modal--side .demo-dialog--side,
  .demo-modal.demo-modal--side.is-opening .demo-dialog--side,
  .demo-modal.demo-modal--side.is-open .demo-dialog--side,
  .demo-modal.demo-modal--side.is-closing .demo-dialog--side {
    transform: translateY(-50%);
  }
}

.demo-banner {
  opacity: 0;
  transform: translateY(calc(100% + 26px));
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-banner.is-closing {
  opacity: 0;
  transform: translateY(calc(100% + 26px));
}

.tdc-exit-overlay {
  backdrop-filter: blur(3px);
}

.tdc-banner-bar,
.banner-stage-bar {
  will-change: transform;
}

@media (max-width: 640px) {
  .demo-banner {
    transform: translateY(calc(100% + 18px));
  }

  .demo-banner.is-visible {
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .tool-demo-card:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(183, 140, 255, 0.62);
    box-shadow: 0 30px 96px rgba(0, 0, 0, 0.48), 0 0 62px rgba(139, 75, 220, 0.24);
  }

  .tool-demo-card:hover .tdc-icon {
    animation: icon-soft-pulse 1.25s ease-in-out infinite;
    transform: translateY(-1px) rotate(-2deg);
  }

  .tool-demo-card:hover .tdc-stage {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 36px rgba(139, 75, 220, 0.11);
  }
}

.banner-submit:hover {
  box-shadow: 0 20px 58px rgba(139, 75, 220, 0.38), 0 0 0 1px rgba(183, 140, 255, 0.28);
}

.demo-dialog {
  transform-origin: center bottom;
}

.demo-banner.is-visible {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), 0 0 42px rgba(139, 75, 220, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .tool-demo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(183, 140, 255, 0.48);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 36px rgba(139, 75, 220, 0.16);
  }
}

@media (min-width: 1024px) {
  .demo-page-section {
    padding-top: clamp(34px, 4.4vw, 52px);
    padding-bottom: clamp(34px, 4.4vw, 52px);
  }

  .demo-page .demo-page-section {
    padding-top: clamp(18px, 2.5vw, 28px);
    padding-bottom: clamp(34px, 4.2vw, 52px);
  }

  .demo-tools-shell {
    gap: clamp(14px, 2.2vw, 22px);
    margin-top: clamp(18px, 2.4vw, 26px);
  }

  .demo-tools-panel {
    padding: clamp(15px, 2.4vw, 19px);
  }
}

.demo-page-section {
  padding-top: clamp(42px, 5.4vw, 64px);
  padding-bottom: clamp(42px, 5.4vw, 64px);
}

.demo-tools-shell {
  gap: clamp(18px, 2.8vw, 28px);
}

.demo-tools-shell {
  margin-top: clamp(22px, 3vw, 32px);
}

.demo-tools-panel {
  min-height: auto;
  padding: clamp(18px, 3vw, 22px);
}

@media (max-width: 768px) {
  .demo-page-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .demo-tools-shell {
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .demo-page-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

.demo-page .demo-page-section {
  position: relative;
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(42px, 5vw, 62px);
  overflow: visible;
}

.demo-page .demo-page-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: min(620px, 78vh);
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 49% 12%, rgba(168, 85, 247, 0.2), transparent 22rem),
    radial-gradient(circle at 14% 42%, rgba(139, 92, 246, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.demo-page .demo-page-section .container {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1280px);
  max-width: 1280px;
}

.demo-page .demo-page-intro {
  max-width: 780px;
  margin-bottom: clamp(16px, 2vw, 22px);
}

.demo-page .demo-page-intro .eyebrow {
  width: fit-content;
  margin-inline: auto;
  padding: 5px 18px;
  border-color: rgba(192, 132, 252, 0.42);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.14);
}

.demo-page .demo-page-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.demo-page .demo-page-intro h1 span {
  color: #c084fc;
  text-shadow: 0 0 34px rgba(192, 132, 252, 0.42);
}

.demo-page .demo-page-intro .page-lead {
  max-width: 760px;
  margin-inline: auto;
  color: rgba(203, 213, 225, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.demo-page .demo-tools-shell {
  position: relative;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: clamp(14px, 2vw, 20px) auto 0;
  padding: clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.62), rgba(3, 7, 18, 0.82)),
    rgba(3, 7, 18, 0.72);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 76px rgba(139, 92, 246, 0.12);
}

.demo-page .demo-tools-shell::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 27px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 0%, rgba(168, 85, 247, 0.16), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(192, 132, 252, 0.1), transparent 18rem);
}

.demo-page .demo-tools-nav,
.demo-page .demo-tools-panel {
  position: relative;
  z-index: 1;
}

.demo-page .demo-tools-nav {
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: clamp(8px, 1.2vw, 12px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 20px;
  background: rgba(3, 7, 18, 0.34);
  box-shadow: none;
}

.demo-page .demo-tools-tab {
  position: relative;
  gap: 11px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  color: rgba(203, 213, 225, 0.86);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.demo-page .demo-tools-tab::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 14% 18%, rgba(168, 85, 247, 0.18), transparent 12rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.demo-page .demo-tools-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 132, 252, 0.3);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.demo-page .demo-tools-tab:hover::before,
.demo-page .demo-tools-tab.is-active::before {
  opacity: 1;
}

.demo-page .demo-tools-tab.is-active {
  border-color: rgba(192, 132, 252, 0.42);
  background: rgba(93, 36, 162, 0.28);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
}

.demo-page .demo-tools-tab-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-color: rgba(192, 132, 252, 0.24);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.18);
  color: #e9d5ff;
  font-size: 0.82rem;
  box-shadow: none;
}

.demo-page .demo-tools-tab.is-active .demo-tools-tab-icon {
  border-color: rgba(216, 180, 254, 0.78);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.78), rgba(76, 29, 149, 0.78));
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.demo-tools-tab-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo-tools-tab-title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 850;
}

.demo-tools-tab-desc {
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.demo-page .demo-tools-panel {
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border-color: rgba(192, 132, 252, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.62), rgba(3, 7, 18, 0.74)),
    rgba(3, 7, 18, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.demo-page .tdc-header {
  position: relative;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.demo-page .tdc-icon {
  width: 54px;
  height: 54px;
  border-color: rgba(192, 132, 252, 0.42);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.5), rgba(44, 18, 76, 0.72));
  color: #e9d5ff;
  font-size: 1rem;
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.24);
}

.demo-page .tdc-meta {
  flex: 1;
}

.demo-page .tdc-meta h3 {
  margin-bottom: 3px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.demo-page .tdc-meta p {
  max-width: 780px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.95rem;
}

.tdc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(3, 7, 18, 0.58);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tdc-live-badge span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
}

.demo-page .pane-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  padding-bottom: 0;
  border-bottom: 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.72rem;
}

.demo-page .pane-section-label::before {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 3px, rgba(192, 132, 252, 0.9) 3px 5px, transparent 5px 8px, rgba(168, 85, 247, 0.65) 8px 10px, transparent 10px),
    rgba(139, 92, 246, 0.12);
}

.demo-page .demo-tools-panel .tdc-stage {
  height: clamp(200px, 24vw, 260px);
  margin-bottom: 12px;
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 0%, rgba(139, 92, 246, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(3, 7, 18, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 42px rgba(0, 0, 0, 0.2);
}

.demo-page .tdc-stage--popup {
  height: clamp(210px, 26vw, 280px);
}

.demo-page .tdc-stage--exit {
  height: clamp(200px, 24vw, 270px);
}

.demo-page .tdc-stage-bar,
.demo-page .tdc-exit-bar {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
}

.demo-page .tdc-chat-body,
.demo-page .tdc-popup-viewport,
.demo-page .tdc-popup-page,
.demo-page .tdc-exit-page,
.demo-page .tdc-banner-viewport {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}

.demo-page .tdc-popup-page {
  gap: 12px;
  padding: 18px 22px 34px;
}

.demo-page .tdc-pl-hero {
  gap: 8px;
  margin-bottom: 4px;
}

.demo-page .tdc-pl-hero-line--lg {
  height: 14px;
}

.demo-page .tdc-pl-hero-line {
  height: 9px;
}

.demo-page .tdc-pl-cta {
  width: 38%;
  height: 18px;
  margin-top: 4px;
}

.demo-page .tdc-pl-band {
  height: 8px;
}

.demo-page .tdc-pl-cards {
  gap: 10px;
}

.demo-page .tdc-pl-card {
  height: 42px;
  border-radius: 10px;
}

.demo-page .tdc-popup-sidebox {
  left: 12px;
  width: min(240px, 46%);
  padding: 12px 13px 13px;
}

.demo-page .tdc-popup-sidebox-label {
  margin-bottom: 7px;
  font-size: 0.58rem;
}

.demo-page .tdc-popup-heading {
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.demo-page .tdc-popup-field {
  height: 8px;
  margin-bottom: 8px;
}

.demo-page .tdc-popup-btn {
  height: 18px;
  width: 62%;
  margin-top: 8px;
  font-size: 0.64rem;
}

.demo-page .tdc-popup-success {
  margin-top: 9px;
  padding: 5px 10px;
  font-size: 0.68rem;
}

.demo-page .tdc-stage-hint {
  margin: -2px 0 16px;
  font-size: 0.78rem;
}

.demo-page .tdc-result {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 4px;
}

.demo-page .tdc-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 0;
}

.demo-page .tdc-chat-body {
  gap: 8px;
  padding: 14px 16px;
}

.demo-page .tdc-chat-msg {
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-page .tdc-flow-node {
  min-height: 62px;
  padding: 12px 14px;
  border-color: rgba(192, 132, 252, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(3, 7, 18, 0.72)),
    rgba(139, 92, 246, 0.08);
  color: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-page .tdc-flow-arrow {
  color: rgba(216, 180, 254, 0.88);
  font-weight: 900;
}

.demo-page .tdc-lead-card {
  gap: 10px 18px;
  margin-top: 0;
  padding: 14px;
  border-color: rgba(192, 132, 252, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.14), transparent 12rem),
    rgba(3, 7, 18, 0.58);
}

.demo-page .tdc-lc-key {
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.68rem;
}

.demo-page .tdc-lc-val {
  color: rgba(248, 250, 252, 0.9);
}

.demo-page .tdc-lc-val--new {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.demo-page .demo-tool-pane .tdc-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(3, 7, 18, 0.42);
}

.demo-page .demo-tool-pane .tdc-anim-btn,
.demo-page .demo-tool-pane .tdc-launch-btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: 0.94rem;
}

.demo-page .demo-tool-pane .tdc-launch-btn {
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.26);
}

.demo-page .tdc-anim-btn.is-playing {
  opacity: 0.72;
}

@media (max-width: 1080px) {
  .demo-page .demo-tools-shell {
    grid-template-columns: 1fr;
  }

  .demo-page .demo-tools-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: thin;
  }

  .demo-page .demo-tools-tab {
    min-width: 132px;
    min-height: 94px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .demo-page .demo-page-section {
    padding-top: 24px;
  }

  .demo-page .demo-page-intro h1 span {
    display: block;
  }

  .demo-page .demo-tools-shell {
    padding: 10px;
    border-radius: 22px;
  }

  .demo-page .demo-tools-nav {
    margin-inline: -2px;
    padding: 8px 2px 12px;
  }

  .demo-page .demo-tools-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .demo-page .tdc-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tdc-live-badge {
    margin-left: 70px;
  }

  .demo-page .demo-tools-panel .tdc-stage {
    height: clamp(240px, 52vw, 300px);
  }

  .demo-page .tdc-stage--popup {
    height: clamp(250px, 54vw, 310px);
  }

  .demo-page .tdc-result {
    grid-template-columns: 1fr;
  }

  .demo-page .tdc-flow {
    grid-template-columns: 1fr;
  }

  .demo-page .tdc-flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .demo-page .demo-tool-pane .tdc-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .demo-page .demo-page-section {
    padding-top: 20px;
  }

  .demo-page .demo-page-intro {
    margin-bottom: 14px;
  }

  .demo-page .demo-tools-nav {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
  }

  .demo-page .demo-tools-tab {
    min-width: 118px;
    padding: 12px;
  }

  .demo-page .demo-tools-tab-icon {
    width: 40px;
    height: 40px;
  }

  .demo-tools-tab-title {
    font-size: 0.9rem;
  }

  .demo-tools-tab-desc {
    font-size: 0.72rem;
  }

  .tdc-live-badge {
    margin-left: 0;
  }

  .demo-page .demo-tools-panel .tdc-stage {
    height: clamp(230px, 58vw, 280px);
  }

  .demo-page .tdc-stage--popup {
    height: clamp(240px, 60vw, 290px);
  }

  .demo-page .tdc-lead-card {
    grid-template-columns: 1fr;
  }
}

.demo-modal,
.demo-dialog,
.demo-banner {
  pointer-events: auto;
}

.demo-page,
.demo-page-section {
  height: auto !important;
  max-height: none !important;
  overflow-x: visible;
  overflow-y: visible !important;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.demo-page .demo-tools-shell,
.demo-page .demo-tools-nav,
.demo-page .demo-tools-panel,
.demo-page .demo-tools-tab,
.demo-page .demo-tools-panel .tdc-stage,
.demo-page .tdc-stage,
.tdc-popup-modal,
.tdc-exit-popup-stage,
.popup-stage-modal,
.exit-stage-popup,
.demo-page .tdc-result,
.demo-page .tdc-flow-node,
.demo-page .tdc-lead-card,
.demo-page .demo-tool-pane .tdc-actions,
.tool-demo-card,
.tdc-result,
.tdc-lead-card,
.demo-what-next,
.demo-lead-card {
  background:
    var(--card-bg-dark-gradient),
    var(--card-bg-dark);
}

.demo-page .demo-tools-tab.is-active {
  background:
    radial-gradient(circle at 16% 18%, rgba(168, 85, 247, 0.22), transparent 46%),
    linear-gradient(135deg, rgba(34, 18, 56, 0.88), rgba(8, 7, 15, 0.92)),
    var(--card-bg-dark-strong);
}

.demo-page .demo-page-section {
  padding-top: clamp(12px, 1.8vw, 20px);
}

.demo-page .demo-page-intro {
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.demo-page .demo-page-intro .eyebrow {
  margin-bottom: 8px;
}

.demo-page .demo-page-intro h1 {
  margin-bottom: 6px;
}

.demo-page .demo-tools-shell {
  margin-top: clamp(10px, 1.5vw, 16px);
  background:
    radial-gradient(circle at 22% 0%, rgba(168, 85, 247, 0.08), transparent 28rem),
    var(--card-bg-dark-gradient),
    var(--card-bg-dark);
}

.demo-page .demo-tools-nav,
.demo-page .demo-tools-panel,
.demo-page .demo-tools-panel .tdc-stage,
.demo-page .tdc-result,
.demo-page .tdc-lead-card,
.demo-page .demo-tool-pane .tdc-actions {
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.06), transparent 18rem),
    var(--card-bg-dark-gradient),
    var(--card-bg-dark);
}

.demo-page .demo-tools-tab {
  background:
    linear-gradient(135deg, rgba(10, 9, 18, 0.92), rgba(4, 6, 12, 0.88)),
    var(--card-bg-dark);
}

.demo-page .tdc-flow-node {
  background:
    linear-gradient(145deg, rgba(12, 11, 20, 0.9), rgba(5, 7, 13, 0.84)),
    var(--card-bg-dark);
}

.demo-page .tdc-stage-bar,
.demo-page .tdc-exit-bar {
  background: rgba(7, 8, 15, 0.86);
}

.pane-section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.pane-section-label::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .tool-demo-card:hover {
    border-color: rgba(216, 180, 254, 0.34);
    background:
      radial-gradient(circle at 22% 0%, rgba(168, 85, 247, 0.13), transparent 38%),
      rgba(255, 255, 255, 0.055);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3), 0 0 34px rgba(139, 75, 220, 0.12);
    transform: translateY(-6px);
  }
}

.tool-demo-card {
  transition:
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.demo-form input:hover,
.demo-form textarea:hover {
  border-color: rgba(183, 140, 255, 0.3);
}

.demo-form input:focus-visible,
.demo-form textarea:focus-visible {
  outline: 3px solid rgba(183, 140, 255, 0.34);
  outline-offset: 2px;
  border-color: rgba(216, 180, 254, 0.52);
  box-shadow: 0 0 0 6px rgba(139, 75, 220, 0.1);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

body.demo-page .demo-page-section {
  padding-top: clamp(6px, 1vw, 12px) !important;
}

body.demo-page .demo-page-intro {
  margin-top: 0 !important;
  margin-bottom: clamp(8px, 1.2vw, 12px) !important;
}

body.demo-page .demo-page-intro .eyebrow {
  margin-bottom: 6px !important;
}

body.demo-page .demo-page-intro h1 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

body.demo-page .demo-page-intro .page-lead {
  margin-top: 0 !important;
}

body.demo-page .demo-tools-shell {
  margin-top: clamp(8px, 1.2vw, 12px) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(168, 85, 247, 0.08), transparent 24rem),
    linear-gradient(145deg, rgba(8, 10, 18, 0.94), rgba(10, 9, 18, 0.9)) !important;
}

body.demo-page .demo-tools-nav,
body.demo-page .demo-tools-panel,
body.demo-page .demo-tools-panel .tdc-stage,
body.demo-page .tdc-result,
body.demo-page .tdc-lead-card,
body.demo-page .demo-tool-pane .tdc-actions {
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.055), transparent 16rem),
    linear-gradient(145deg, rgba(8, 10, 18, 0.94), rgba(10, 9, 18, 0.9)) !important;
}

body.demo-page .demo-tools-tab {
  background:
    linear-gradient(145deg, rgba(8, 10, 18, 0.92), rgba(5, 7, 13, 0.88)) !important;
}

body.demo-page .demo-tools-tab.is-active {
  background:
    radial-gradient(circle at 18% 14%, rgba(168, 85, 247, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(18, 12, 31, 0.94), rgba(8, 10, 18, 0.92)) !important;
}

body.demo-page .tdc-stage-bar,
body.demo-page .tdc-exit-bar,
body.demo-page .tdc-flow-node,
body.demo-page .tdc-popup-modal,
body.demo-page .tdc-exit-popup-stage,
body.demo-page .tdc-lf-field,
body.demo-page .tdc-banner-bar {
  background:
    linear-gradient(145deg, rgba(8, 10, 18, 0.9), rgba(5, 7, 13, 0.86)) !important;
}

@media (max-width: 760px) {
  body.demo-page .demo-page-section {
    padding-top: 8px !important;
  }

  body.demo-page .demo-tools-shell {
    margin-top: 10px !important;
  }
}

@media (min-width: 1024px) {
  body.demo-page .demo-page-section {
    min-height: auto;
    padding-top: 6px !important;
    padding-bottom: 14px !important;
  }

  body.demo-page .demo-page-intro {
    margin-bottom: 8px !important;
  }

  body.demo-page .demo-page-intro .eyebrow {
    min-height: 0;
    margin-bottom: 5px !important;
    padding: 3px 14px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  body.demo-page .demo-page-intro h1 {
    margin-bottom: 4px !important;
    font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    line-height: 1.1;
  }

  body.demo-page .demo-page-intro .page-lead {
    max-width: 640px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  body.demo-page .demo-tools-shell {
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
    gap: 12px;
    max-width: 1280px;
    margin: 6px auto 0 !important;
    padding: 10px;
    border-radius: 20px;
  }

  body.demo-page .demo-tools-nav {
    gap: 5px;
    padding: 6px;
    border-radius: 14px;
  }

  body.demo-page .demo-tools-tab {
    min-height: 0;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 11px;
  }

  body.demo-page .demo-tools-tab-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.66rem;
  }

  body.demo-page .demo-tools-tab-title {
    font-size: 0.88rem;
  }

  body.demo-page .demo-tools-tab-desc {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  body.demo-page .demo-tools-panel {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 16px;
    overflow: hidden;
  }

  body.demo-page .demo-tool-pane.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.demo-page .demo-tools-panel .tdc-stage {
    flex: 0 0 auto;
    height: 220px;
    min-height: 220px;
    max-height: none;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  body.demo-page .tdc-stage--popup,
  body.demo-page .tdc-stage--exit {
    height: 220px;
    min-height: 220px;
  }

  body.demo-page .tdc-stage.tdc-stage--form {
    height: 320px;
    min-height: 320px;
  }

  body.demo-page .tdc-header {
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 9px;
  }

  body.demo-page .tdc-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 0.84rem;
  }

  body.demo-page .tdc-meta h3 {
    margin-bottom: 2px;
    font-size: 1.05rem;
  }

  body.demo-page .tdc-meta p {
    font-size: 0.8rem;
    line-height: 1.32;
  }

  body.demo-page .tdc-live-badge {
    padding: 5px 9px;
    font-size: 0.62rem;
  }

  body.demo-page .pane-section-label {
    margin: 10px 0 8px;
    font-size: 0.64rem;
  }

  body.demo-page .demo-tools-panel .tdc-stage {
    flex: 0 0 auto;
    height: 220px !important;
    min-height: 220px !important;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  body.demo-page .tdc-stage--popup {
    height: 220px !important;
    min-height: 220px !important;
  }

  body.demo-page .tdc-stage--exit {
    height: 220px !important;
    min-height: 220px !important;
  }

  body.demo-page .tdc-stage-bar,
  body.demo-page .tdc-exit-bar {
    padding: 6px 10px;
  }

  body.demo-page .tdc-chat-body {
    gap: 5px;
    padding: 8px 10px;
  }

  body.demo-page .tdc-chat-msg {
    padding: 6px 9px;
    font-size: 0.72rem;
    line-height: 1.34;
  }

  body.demo-page .tdc-result {
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
    gap: 14px;
  }

  body.demo-page .tdc-flow {
    gap: 6px;
  }

  body.demo-page .tdc-flow-node {
    min-height: 42px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size: 0.68rem;
  }

  body.demo-page .tdc-lead-card {
    gap: 7px 12px;
    padding: 10px;
    border-radius: 12px;
  }

  body.demo-page .tdc-lc-key {
    font-size: 0.58rem;
  }

  body.demo-page .tdc-lc-val {
    font-size: 0.72rem;
  }

  body.demo-page .demo-tool-pane .tdc-actions {
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  body.demo-page .demo-tool-pane .tdc-anim-btn,
  body.demo-page .demo-tool-pane .tdc-launch-btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  body.demo-page .tdc-stage.tdc-stage--form {
    height: 320px !important;
    min-height: 320px !important;
  }

  body.demo-page .tdc-form-page {
    padding: 10px;
  }

  body.demo-page .tdc-form-embed-card {
    max-width: 100%;
    padding: 10px 11px 9px;
  }
}

@media (min-width: 1024px) {
  body.demo-page .demo-page-intro {
    margin-bottom: 8px !important;
  }

  body.demo-page .demo-page-intro .eyebrow {
    margin-bottom: 5px !important;
    padding: 3px 14px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  body.demo-page .demo-page-intro h1 {
    margin-bottom: 4px !important;
    font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    line-height: 1.1;
  }

  body.demo-page .demo-page-intro .page-lead {
    max-width: 640px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  body.demo-page .demo-tools-shell {
    margin-top: 6px !important;
  }
}

@media (max-width: 768px) {
  .demo-tools-shell,
  .demo-tools-panel {
    max-width: 100%;
  }

  .demo-page .demo-page-intro h1 {
    max-width: 100%;
    font-size: clamp(2.18rem, 8.4vw, 3.35rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .tool-demo-card.is-tapped,
  .demo-tools-tab.is-tapped,
  .demo-tools-panel.is-tapped,
  .tdc-flow-node.is-tapped,
  .tdc-lead-card.is-tapped {
    border-color: rgba(216, 180, 254, 0.42);
    background:
      radial-gradient(circle at 18% 0%, rgba(168, 85, 247, 0.18), transparent 42%),
      rgba(255, 255, 255, 0.065);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 30px rgba(139, 75, 220, 0.16);
    transform: translateY(-3px) scale(1.006);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .demo-form label {
    min-width: 0;
  }

  .demo-form input,
  .demo-form textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  body.demo-page .demo-page-section,
  .demo-page .demo-page-section {
    min-height: auto;
    padding-top: 22px !important;
    padding-bottom: 38px !important;
  }

  body.demo-page .demo-page-intro,
  .demo-page .demo-page-intro {
    margin-bottom: 16px !important;
  }

  body.demo-page .demo-page-intro .eyebrow,
  .demo-page .demo-page-intro .eyebrow {
    margin-bottom: 8px !important;
    padding: 5px 15px;
    font-size: 0.72rem;
  }

  body.demo-page .demo-page-intro h1,
  .demo-page .demo-page-intro h1 {
    margin-bottom: 8px !important;
  }

  body.demo-page .demo-page-intro .page-lead,
  .demo-page .demo-page-intro .page-lead {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  body.demo-page .demo-tools-shell,
  .demo-page .demo-tools-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 16px !important;
    padding: 12px;
    border-radius: 22px;
  }

  body.demo-page .demo-tools-nav,
  .demo-page .demo-tools-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 8px;
  }

  body.demo-page .demo-tools-tab,
  .demo-page .demo-tools-tab {
    min-width: 0;
    min-height: 64px;
    padding: 9px;
    border-radius: 14px;
  }

  body.demo-page .demo-tools-tab-icon,
  .demo-page .demo-tools-tab-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  body.demo-page .demo-tools-tab-title,
  .demo-page .demo-tools-tab-title {
    font-size: 0.8rem;
  }

  body.demo-page .demo-tools-tab-desc,
  .demo-page .demo-tools-tab-desc {
    font-size: 0.66rem;
    line-height: 1.24;
  }

  body.demo-page .demo-tools-panel,
  .demo-page .demo-tools-panel {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  body.demo-page .tdc-header,
  .demo-page .tdc-header {
    align-items: flex-start;
    gap: 10px;
  }

  body.demo-page .tdc-live-badge,
  .demo-page .tdc-live-badge {
    margin-left: 0;
  }

  body.demo-page .demo-tools-panel .tdc-stage,
  .demo-page .demo-tools-panel .tdc-stage {
    height: auto;
    min-height: clamp(240px, 58vw, 280px);
    max-height: none;
    overflow: hidden;
  }

  body.demo-page .tdc-stage--popup,
  .demo-page .tdc-stage--popup {
    min-height: clamp(250px, 60vw, 290px);
  }

  body.demo-page .tdc-result,
  .demo-page .tdc-result {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.demo-page .tdc-flow,
  .demo-page .tdc-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.demo-page .tdc-flow-arrow,
  .demo-page .tdc-flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  body.demo-page .tdc-lead-card,
  .demo-page .tdc-lead-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body.demo-page .demo-tool-pane .tdc-actions,
  .demo-page .demo-tool-pane .tdc-actions {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  body.demo-page .demo-tool-pane .tdc-anim-btn,
  body.demo-page .demo-tool-pane .tdc-launch-btn,
  .demo-page .demo-tool-pane .tdc-anim-btn,
  .demo-page .demo-tool-pane .tdc-launch-btn {
    width: 100%;
    min-height: 44px;
  }

  .demo-dialog {
    width: min(100% - 24px, 520px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .demo-banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (max-width: 480px) {
  .demo-page .demo-page-intro h1 {
    font-size: clamp(2rem, 10.6vw, 2.72rem);
    line-height: 1.06;
  }

  body.demo-page .demo-tools-shell,
  .demo-page .demo-tools-shell {
    padding: 10px;
  }

  body.demo-page .demo-tools-nav,
  .demo-page .demo-tools-nav {
    grid-template-columns: 1fr;
  }

  body.demo-page .demo-tools-tab,
  .demo-page .demo-tools-tab {
    min-height: 58px;
  }

  body.demo-page .tdc-header,
  .demo-page .tdc-header {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  body.demo-page .tdc-live-badge,
  .demo-page .tdc-live-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.demo-page .demo-tools-panel .tdc-stage,
  .demo-page .demo-tools-panel .tdc-stage {
    min-height: 240px;
  }

  body.demo-page .tdc-stage--popup,
  .demo-page .tdc-stage--popup {
    min-height: 250px;
  }

  .demo-page .tdc-popup-sidebox {
    width: min(58%, 200px);
  }

  .tdc-banner-text {
    max-width: 100%;
    white-space: normal;
  }

  .demo-form,
  .banner-form {
    grid-template-columns: 1fr;
  }

  .banner-form input[type="text"],
  .banner-submit {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .demo-page .demo-page-intro h1 {
    font-size: clamp(1.82rem, 10vw, 2.34rem);
  }

  body.demo-page .demo-tools-panel,
  .demo-page .demo-tools-panel,
  body.demo-page .demo-tools-shell,
  .demo-page .demo-tools-shell {
    border-radius: 18px;
  }

  body.demo-page .demo-tools-panel .tdc-stage,
  .demo-page .demo-tools-panel .tdc-stage {
    min-height: 220px;
  }

  body.demo-page .tdc-stage--popup,
  .demo-page .tdc-stage--popup {
    min-height: 230px;
  }
}

.demo-page-section {
  background-color: transparent;
}

.demo-page .demo-page-section::before {
  display: none;
}

@keyframes chat-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes demo-fade-up {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes icon-soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(183, 140, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(183, 140, 255, 0.08);
  }
}

/* Form tab: lighter layout, dominant form card, clearer flow */
.demo-tool-pane[data-demo-pane="form"] .pane-section-label {
  margin: 18px 0 14px;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-stage--form {
  border-color: rgba(148, 163, 184, 0.1);
  background:
    radial-gradient(circle at 50% 16%, rgba(139, 92, 246, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(3, 7, 18, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.demo-tool-pane[data-demo-pane="form"] .tdc-form-page {
  background:
    radial-gradient(circle at 50% 6%, rgba(139, 92, 246, 0.12), transparent 44%),
    radial-gradient(circle at 50% 92%, rgba(168, 85, 247, 0.06), transparent 38%),
    rgba(3, 7, 18, 0.58);
}

.demo-tool-pane[data-demo-pane="form"] .tdc-form-embed-layout {
  margin-inline: auto;
  max-width: 480px;
  padding-inline: 24px;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-form-embed-card {
  max-width: 380px;
  border-color: rgba(168, 85, 247, 0.32);
  box-shadow:
    0 0 64px rgba(139, 92, 246, 0.24),
    0 0 28px rgba(168, 85, 247, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.32);
}

.demo-tool-pane[data-demo-pane="form"] #form-result-panel {
  gap: 22px;
  margin-top: 14px;
  padding-inline: 4px;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-flow {
  gap: 12px;
  align-items: stretch;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-flow-node {
  min-height: 54px;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.48);
  color: rgba(226, 232, 240, 0.82);
  box-shadow: none;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-flow-node.is-active {
  background: rgba(93, 36, 162, 0.22);
  color: rgba(248, 250, 252, 0.96);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.14);
}

.demo-tool-pane[data-demo-pane="form"] .tdc-lead-card {
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: none;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-lead-card.is-active {
  background: rgba(93, 36, 162, 0.16);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
}

.demo-tool-pane[data-demo-pane="form"] .tdc-actions {
  margin-top: 22px;
  padding: 16px;
  border: none;
  background: rgba(3, 7, 18, 0.28);
}

.demo-tool-pane[data-demo-pane="form"] .tdc-fe-status-footer {
  max-width: 380px;
  margin-inline: auto;
}

.demo-tool-pane[data-demo-pane="form"] .tdc-fe-status-chip,
.demo-tool-pane[data-demo-pane="form"] .tdc-fe-success {
  border: none;
}

/* Desktop: compact demo panel + room for lead path below */
@media (min-width: 1024px) {
  body.demo-page .demo-page-section {
    padding-top: 8px !important;
    padding-bottom: 36px !important;
    min-height: auto;
  }

  body.demo-page .demo-tools-shell {
    align-items: stretch;
    min-height: 0;
  }

  body.demo-page .demo-tools-panel {
    display: flex;
    flex-direction: column;
  }

  body.demo-page .demo-tool-pane.is-active {
    display: flex;
    flex-direction: column;
  }

  body.demo-page .demo-tools-panel .tdc-stage,
  body.demo-page .tdc-stage--popup,
  body.demo-page .tdc-stage--exit,
  body.demo-page .tdc-stage--form-mock,
  body.demo-page .tdc-stage--banner {
    flex: 0 0 auto;
    height: 220px !important;
    min-height: 220px !important;
  }

  body.demo-page .tdc-stage.tdc-stage--form {
    height: 320px !important;
    min-height: 320px !important;
  }

  body.demo-page .demo-tool-pane .tdc-actions {
    margin-top: 10px;
    flex-shrink: 0;
    padding: 10px;
  }

  body.demo-page .demo-tool-pane .tdc-anim-btn,
  body.demo-page .demo-tool-pane .tdc-launch-btn {
    min-height: 40px;
  }
}

@media (min-width: 1024px) and (max-height: 860px) {
  body.demo-page .demo-page-intro .page-lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.demo-page .demo-tools-tab-desc {
    display: none;
  }

  body.demo-page .demo-tools-shell {
    min-height: 0;
  }

  body.demo-page .demo-tools-panel .tdc-stage,
  body.demo-page .tdc-stage--popup,
  body.demo-page .tdc-stage--exit,
  body.demo-page .tdc-stage--form-mock,
  body.demo-page .tdc-stage--banner {
    height: 190px !important;
    min-height: 190px !important;
  }

  body.demo-page .tdc-stage.tdc-stage--form {
    height: 270px !important;
    min-height: 270px !important;
  }

  body.demo-page .tdc-fp-hero {
    display: none;
  }

  body.demo-page .tdc-meta p {
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.demo-page .demo-tool-pane .tdc-actions {
    margin-top: 8px;
    padding: 8px;
  }
}

/* How it works + Sheets lead example */
.demo-lead-path {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
  max-width: 1280px;
  margin: clamp(28px, 4vw, 48px) auto 0;
}

.demo-lead-path__intro .eyebrow {
  margin-bottom: 10px;
}

.demo-lead-path__intro h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.demo-lead-path__intro > p {
  margin: 0 0 18px;
  max-width: 42ch;
  color: rgba(203, 213, 225, 0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.demo-lead-path__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-lead-path__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.demo-lead-path__steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(192, 132, 252, 0.36);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: #e9d5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-sheets-mock {
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.18), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(190, 40, 120, 0.1), transparent 46%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.94));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 48px rgba(139, 92, 246, 0.12);
}

.demo-sheets-mock__chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.demo-sheets-mock__dots {
  display: flex;
  gap: 5px;
}

.demo-sheets-mock__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.demo-sheets-mock__dots span:nth-child(1) { background: rgba(239, 68, 68, 0.85); }
.demo-sheets-mock__dots span:nth-child(2) { background: rgba(245, 158, 11, 0.85); }
.demo-sheets-mock__dots span:nth-child(3) { background: rgba(34, 197, 94, 0.85); }

.demo-sheets-mock__title {
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-sheets-mock__badge {
  padding: 4px 10px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: #e9d5ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-sheets-mock__toolbar {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.demo-sheets-mock__toolbar span {
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.demo-sheets-mock__table-wrap {
  overflow-x: auto;
  background: transparent;
}

.demo-sheets-mock__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.92);
}

.demo-sheets-mock__table th {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-sheets-mock__table td {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(3, 7, 18, 0.28);
  vertical-align: top;
}

.demo-sheets-mock__table tbody tr:nth-child(even) td {
  background: rgba(139, 92, 246, 0.06);
}

.demo-sheets-mock__table tbody tr:hover td {
  background: rgba(139, 92, 246, 0.1);
}

.demo-sheets-mock__detail {
  display: block;
  color: rgba(203, 213, 225, 0.78);
}

.demo-sheets-mock__pill {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: #e9d5ff;
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
}

.demo-sheets-mock__status {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 0.64rem;
  font-weight: 750;
}

.demo-sheets-mock__tabs {
  display: flex;
  gap: 2px;
  padding: 0 10px;
  background: rgba(3, 7, 18, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.demo-sheets-mock__tabs span {
  padding: 8px 14px 9px;
  border-radius: 10px 10px 0 0;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.7rem;
  font-weight: 650;
}

.demo-sheets-mock__tabs span.is-active {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.4));
  color: rgba(248, 250, 252, 0.94);
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(216, 180, 254, 0.2);
}

@media (max-width: 900px) {
  .demo-lead-path {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .demo-lead-path__intro > p {
    max-width: none;
  }
}

