/* "Scale.gg in 30 seconds": the brand spot that sits right below the FAQ on the
   home, pricing, Pro Max replay and checkout pages. It plays muted when it
   scrolls into view; "Watch with sound" restarts it with sound (js/brand-spot.js).
   The block is inserted by scripts/add-brand-spot.js. */

.brand-spot {
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 88px);
}

.brand-spot-head {
  display: flex;
  justify-content: center;
}

.brand-spot-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(18px, 2.4vw, 32px);
  background: #f5f4ef;
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.08), 0 28px 70px rgba(5, 5, 5, 0.12);
}

.brand-spot-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f4ef;
}

.brand-spot-frame:not([data-state="user"]) .brand-spot-video { cursor: pointer; }

.brand-spot-sound {
  position: absolute;
  bottom: clamp(12px, 2vw, 22px);
  left: clamp(12px, 2vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.86);
  box-shadow: 0 8px 24px rgba(5, 5, 5, 0.2);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.brand-spot-sound:hover { background: #050505; transform: translateY(-1px); }

.brand-spot-sound:focus-visible {
  outline: 3px solid var(--coral, #ff6f61);
  outline-offset: 3px;
}

.brand-spot-sound svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.brand-spot-frame[data-state="user"] .brand-spot-sound { display: none; }

/* Checkout pages: the spot is a card like the sections around it. */
.checkout-section.brand-spot--checkout {
  padding: clamp(18px, 3vw, 32px);
}

.brand-spot--checkout .checkout-section-eyebrow { margin-bottom: 14px; }

.brand-spot--checkout .brand-spot-frame {
  max-width: none;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.08);
}

/* Phones: a round speaker button, so it doesn't cover the small video.
   The words stay for screen readers. */
@media (max-width: 620px) {
  .brand-spot-sound {
    justify-content: center;
    width: 38px;
    min-height: 38px;
    padding: 0;
    bottom: 10px;
    left: 10px;
  }

  .brand-spot-sound span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-spot-sound { transition: none; }
  .brand-spot-sound:hover { transform: none; }
}
