/* Mobile-only affordance for the conversation-to-workflow demo. */

.mobile-preview-cue {
  display: none;
}

@media (max-width: 860px) {
  .demo:not(.converted) .mobile-preview-cue {
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0 10px;
    border: 1px solid rgba(158, 232, 239, .24);
    border-radius: 999px;
    background: rgba(158, 232, 239, .075);
    color: #bceff3;
    font-size: 8px;
    font-weight: 780;
    letter-spacing: .115em;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .18);
  }

  .mobile-preview-cue > i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
      0 0 0 4px rgba(158, 232, 239, .075),
      0 0 14px rgba(158, 232, 239, .4);
  }

  .demo:not(.converted) .convert.mobile-interactive-cta {
    min-height: 68px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 9px;
    padding: 12px;
    border: 1px solid rgba(158, 232, 239, .56);
    border-radius: 14px;
    background:
      radial-gradient(circle at 11% 50%, rgba(158, 232, 239, .16), transparent 34%),
      linear-gradient(90deg, rgba(158, 232, 239, .12), rgba(158, 232, 239, .045));
    box-shadow:
      inset 0 1px rgba(244, 254, 255, .045),
      0 16px 35px rgba(54, 139, 151, .11);
    transform: none;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta > i {
    width: 41px;
    height: 41px;
    border-radius: 12px;
    background: var(--accent);
    color: #103036;
    font-size: 15px;
    box-shadow: 0 10px 22px rgba(64, 157, 169, .15);
  }

  .demo:not(.converted) .convert.mobile-interactive-cta b {
    color: #f1f7f8;
    font-size: 12px;
    line-height: 1.3;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta small {
    margin-top: 4px;
    color: #a4b1b7;
    font-size: 9px;
    line-height: 1.42;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta em {
    color: var(--accent);
    font-size: 16px;
    font-weight: 720;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta:active {
    border-color: rgba(158, 232, 239, .78);
    background:
      radial-gradient(circle at 11% 50%, rgba(158, 232, 239, .21), transparent 36%),
      linear-gradient(90deg, rgba(158, 232, 239, .17), rgba(158, 232, 239, .07));
    transform: translateY(1px);
  }

  .demo.mobile-preview-attention:not(.converted) .mobile-preview-cue > i {
    animation: mobile-preview-dot 1.2s ease 1;
  }

  .demo.mobile-preview-attention:not(.converted) .convert.mobile-interactive-cta {
    animation: mobile-preview-cta 1.2s ease 1;
  }
}

@media (max-width: 420px) {
  .demo:not(.converted) .mobile-preview-cue {
    min-height: 27px;
    padding-inline: 9px;
    font-size: 7.5px;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta {
    min-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta > i {
    width: 39px;
    height: 39px;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta b {
    font-size: 11.5px;
  }

  .demo:not(.converted) .convert.mobile-interactive-cta small {
    font-size: 8.5px;
  }
}

@keyframes mobile-preview-dot {
  0%, 100% {
    transform: scale(1);
  }
  48% {
    transform: scale(1.35);
    box-shadow:
      0 0 0 7px rgba(158, 232, 239, .08),
      0 0 18px rgba(158, 232, 239, .55);
  }
}

@keyframes mobile-preview-cta {
  0%, 100% {
    box-shadow:
      inset 0 1px rgba(244, 254, 255, .045),
      0 16px 35px rgba(54, 139, 151, .11);
  }
  48% {
    box-shadow:
      inset 0 1px rgba(244, 254, 255, .06),
      0 0 0 5px rgba(158, 232, 239, .075),
      0 20px 44px rgba(54, 139, 151, .2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-preview-cue > i,
  .convert.mobile-interactive-cta {
    animation: none !important;
    transition: none !important;
  }
}
