/* Desktop workflow-preview affordance: make the right panel feel unmistakably interactive. */

.preview-interaction-cue,
.preview-launch-overlay {
  display: none;
}

@media (min-width: 861px) {
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    background:
      radial-gradient(circle at 50% 44%, rgba(158, 232, 239, .035), transparent 52%),
      rgba(255, 255, 255, .003);
    transition: background .28s ease, box-shadow .28s ease;
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 10px;
    border: 1px solid rgba(158, 232, 239, .08);
    border-radius: 18px;
    pointer-events: none;
    transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
  }

  .workflow-preview-interactive .workflow-preview-state {
    position: relative;
    z-index: 1;
    opacity: .42;
    filter: saturate(.78);
    transform: scale(.985);
    transition: opacity .3s ease, filter .3s ease, transform .3s ease;
  }

  .preview-launch-overlay {
    position: absolute;
    z-index: 3;
    inset: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 21px;
    border: 1px solid rgba(158, 232, 239, .21);
    border-radius: 17px;
    background:
      radial-gradient(circle at 50% 16%, rgba(158, 232, 239, .14), transparent 42%),
      linear-gradient(155deg, rgba(20, 29, 35, .96), rgba(15, 21, 26, .93));
    text-align: center;
    box-shadow:
      inset 0 1px rgba(236, 253, 254, .035),
      0 26px 62px rgba(0, 0, 0, .28),
      0 0 48px rgba(69, 164, 176, .055);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  }

  .preview-launch-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border: 1px solid rgba(158, 232, 239, .31);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(158, 232, 239, .17), rgba(158, 232, 239, .055));
    color: #c8f7fa;
    font-size: 21px;
    font-weight: 500;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 16px 34px rgba(55, 147, 160, .12);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  }

  .preview-launch-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    right: 7px;
    bottom: 7px;
    border: 2px solid #19252a;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px rgba(158, 232, 239, .52);
  }

  .preview-launch-overlay > small {
    color: #91dce2;
    font-size: 8px;
    font-weight: 760;
    letter-spacing: .14em;
  }

  .preview-launch-overlay > strong {
    max-width: 270px;
    margin-top: 10px;
    color: #f1f6f7;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  .preview-launch-overlay > p {
    max-width: 245px;
    margin: 10px 0 0;
    color: #9ca9af;
    font-size: 9px;
    line-height: 1.55;
  }

  .preview-launch-cta {
    width: min(100%, 250px);
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 0 14px;
    border: 1px solid rgba(158, 232, 239, .42);
    border-radius: 11px;
    background: var(--accent);
    color: #102b30;
    font-size: 10px;
    font-weight: 790;
    box-shadow: 0 15px 34px rgba(69, 169, 181, .14);
    transition: filter .22s ease, transform .22s ease, box-shadow .22s ease;
  }

  .preview-launch-cta i {
    font-size: 14px;
    font-style: normal;
    transition: transform .22s ease;
  }

  .workflow-preview-interactive .preview-action {
    height: 39px;
    border-color: rgba(158, 232, 239, .28);
    background: linear-gradient(90deg, rgba(158, 232, 239, .1), rgba(158, 232, 239, .04));
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible {
    background:
      radial-gradient(circle at 50% 44%, rgba(158, 232, 239, .085), transparent 52%),
      rgba(255, 255, 255, .006);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover::before,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible::before {
    border-color: rgba(158, 232, 239, .34);
    box-shadow:
      inset 0 1px rgba(231, 252, 253, .04),
      0 0 0 1px rgba(158, 232, 239, .035),
      0 24px 64px rgba(60, 145, 156, .13);
    transform: translateY(-2px);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover .workflow-preview-state,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible .workflow-preview-state {
    opacity: .42;
    filter: saturate(.78);
    transform: scale(.985);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover .preview-launch-overlay,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible .preview-launch-overlay {
    border-color: rgba(158, 232, 239, .46);
    background:
      radial-gradient(circle at 50% 14%, rgba(158, 232, 239, .18), transparent 43%),
      linear-gradient(155deg, rgba(21, 31, 37, .98), rgba(15, 22, 27, .96));
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px rgba(236, 253, 254, .05),
      0 30px 70px rgba(0, 0, 0, .32),
      0 0 58px rgba(69, 164, 176, .1);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover .preview-launch-icon,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible .preview-launch-icon {
    border-color: rgba(158, 232, 239, .5);
    transform: translateY(-2px) scale(1.03);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 18px 38px rgba(55, 147, 160, .2);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover .preview-launch-cta,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible .preview-launch-cta {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(69, 169, 181, .22);
  }

  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:hover .preview-launch-cta i,
  .demo:not(.converted) .workflow .empty.workflow-preview-interactive:focus-visible .preview-launch-cta i {
    transform: translateX(4px);
  }

  .workflow-preview-interactive.preview-attention .preview-launch-icon {
    animation: preview-launch-pulse 1.25s cubic-bezier(.22, .7, .2, 1) 1;
  }

  .workflow-preview-interactive.preview-attention .preview-launch-cta {
    animation: preview-cta-pulse 1.25s ease 1;
  }
}

@keyframes preview-launch-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 16px 34px rgba(55, 147, 160, .12);
  }
  46% {
    transform: scale(1.08);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 0 0 8px rgba(158, 232, 239, .06), 0 20px 44px rgba(55, 147, 160, .22);
  }
}

@keyframes preview-cta-pulse {
  0%, 100% {
    box-shadow: 0 15px 34px rgba(69, 169, 181, .14);
  }
  48% {
    box-shadow: 0 0 0 5px rgba(158, 232, 239, .08), 0 19px 42px rgba(69, 169, 181, .24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-preview-interactive,
  .workflow-preview-interactive::before,
  .workflow-preview-interactive .workflow-preview-state,
  .preview-launch-overlay,
  .preview-launch-icon,
  .preview-launch-cta,
  .preview-launch-cta i {
    animation: none !important;
    transition: none !important;
  }
}
