/* Product demo phone + video (homepage, /demo, …). Scope under .aitype-product-demo */
.aitype-product-demo .vd-eyebrow {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.aitype-product-demo .vd-heading {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.aitype-product-demo .vd-sub {
  color: #a1a1aa;
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.aitype-product-demo .vd-phone-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
.aitype-product-demo .vd-phone-shell {
  position: relative;
  width: clamp(210px, 22vw, 282px);
  background: #1c1c1e;
  border-radius: 44px;
  border: 3px solid #3a3a3c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 16px 40px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  cursor: pointer;
}
.aitype-product-demo .vd-phone-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 26px;
  background: #1c1c1e;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}
.aitype-product-demo .vd-phone-shell::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -5px;
  width: 3px;
  height: 50px;
  background: #3a3a3c;
  border-radius: 2px;
}
.aitype-product-demo .vd-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 41px;
}
.aitype-product-demo .vd-phone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 41px;
  transition: opacity 0.25s;
}
.aitype-product-demo .vd-phone-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.aitype-product-demo .vd-play-btn {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 14px rgba(16, 185, 129, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: apd-vd-glow 2.5s ease-in-out infinite;
}
.aitype-product-demo .vd-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 20px rgba(16, 185, 129, 0.22);
}
.aitype-product-demo .vd-play-btn svg {
  margin-left: 4px;
}
.aitype-product-demo .vd-caption {
  color: #a1a1aa;
  font-size: 0.72rem;
  margin-top: 1.1rem;
  letter-spacing: 0.02em;
}
@keyframes apd-vd-glow {
  0%,
  100% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0.18);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(16, 185, 129, 0.08);
  }
}
.aitype-product-demo .vd-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 6px 10px;
  z-index: 20;
  transition: opacity 0.2s;
}
.aitype-product-demo .vd-controls.visible {
  display: flex;
}
.aitype-product-demo .vd-ctrl-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.aitype-product-demo .vd-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.aitype-product-demo .vd-ctrl-btn svg {
  display: block;
}
.aitype-product-demo .vd-progress-wrap {
  width: 72px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
@media (min-width: 480px) {
  .aitype-product-demo .vd-progress-wrap {
    width: 90px;
  }
}
.aitype-product-demo .vd-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}

.aitype-product-demo .video-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.aitype-product-demo .video-hero-actions .button {
  min-width: 13.5rem;
}

.aitype-product-demo .video-hero-price {
  color: rgba(255, 255, 255, 0.7);
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.aitype-product-demo .video-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  max-width: 46rem;
}

.aitype-product-demo .video-hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .aitype-product-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .aitype-product-demo .vd-eyebrow {
    order: 1;
  }

  .aitype-product-demo .vd-heading {
    order: 2;
  }

  .aitype-product-demo .vd-sub {
    order: 3;
  }

  .aitype-product-demo .video-hero-actions {
    order: 4;
  }

  .aitype-product-demo .video-hero-trust {
    order: 5;
  }

  .aitype-product-demo .vd-phone-wrap {
    order: 6;
    margin-top: 1.35rem;
  }

  .aitype-product-demo .vd-caption {
    order: 7;
  }

  .aitype-product-demo .video-hero-price {
    order: 8;
  }

  .aitype-product-demo .vd-sub {
    margin-bottom: 1.35rem;
  }

  .aitype-product-demo .vd-phone-shell {
    width: min(72vw, 250px);
  }

  .aitype-product-demo .video-hero-actions {
    align-items: center;
    flex-direction: column;
  }

  .aitype-product-demo .video-hero-actions .button {
    width: min(100%, 21rem) !important;
    min-width: 0;
  }
}
