/* ============================================================
   Vital Robot Vacuum - funnel additions for the presell and
   interstitial exports (offer doc, "Calls to Action"):
   - a scrolling CTA bar at the top of the page that appears once
     the visitor starts scrolling, on desktop and mobile;
   - pulsating CTA buttons.
   The export stylesheets are left untouched; this file loads after
   them.
   ============================================================ */

.vrv-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 3px solid #ff6a3d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.22, .9, .28, 1), opacity .25s ease;
}

.vrv-topbar.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vrv-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vrv-topbar__logo {
  display: block;
  width: auto;
  height: 36px;
  flex-shrink: 0;
}

.vrv-topbar__text {
  flex: 1;
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  color: #0C1E38;
}

.vrv-topbar__text b {
  color: #e8402a;
}

.vrv-topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  background: #ff6a3d;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 0 0 #e85a2e;
}

.vrv-topbar__btn:hover,
.vrv-topbar__btn:focus {
  color: #fff;
  filter: brightness(.92);
}

.vrv-topbar__btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .vrv-topbar__inner {
    padding: 8px 12px;
    gap: 10px;
  }

  .vrv-topbar__text {
    display: none;
  }

  .vrv-topbar__logo {
    height: 30px;
  }

  .vrv-topbar__btn {
    flex: 1;
    font-size: 15px;
    padding: 12px 14px;
  }
}

/* ---------- pulsating CTAs ----------
   A glow ring instead of a scale(), so full-width buttons never grow past the
   page gutter and the top-bar button never grows over the logo. The first
   shadow keeps the export's 3D bottom edge on .adv-btn. */
@keyframes vrv-pulse {
  0% { box-shadow: 0 4px 0 0 #e85a2e, 0 0 0 0 rgba(255, 106, 61, .55); }
  70% { box-shadow: 0 4px 0 0 #e85a2e, 0 0 0 9px rgba(255, 106, 61, 0); }
  100% { box-shadow: 0 4px 0 0 #e85a2e, 0 0 0 0 rgba(255, 106, 61, 0); }
}

.vrv-pulse {
  animation: vrv-pulse 1.8s ease-out infinite;
}

.vrv-pulse:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .vrv-pulse {
    animation: none;
  }

  .vrv-topbar {
    transition: none;
  }
}

/* ---------- presell: the top bar replaces the export's mobile bottom bar ---------- */
.vrv-page--pre .adv-bottombar {
  display: none !important;
}

@media (max-width: 900px) {
  .vrv-page--pre .adv-footer {
    padding-bottom: 24px;
  }
}

/* ---------- interstitial: the sticky header already carries the CTA on desktop ---------- */
@media (min-width: 769px) {
  .vrv-page--int .vrv-topbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .vrv-page--int .mobile-sticky-cta {
    display: none !important;
  }
}

/* interstitial buy-box CTA is a link to checkout instead of a scroll button */
.vrv-page--int a.cta-button {
  text-decoration: none;
}

/* ---------- presell: VRV logo in the header (replaces the "LifeStyle Daily" text logo) ---------- */
.vrv-page--pre .adv-logo__img {
  display: block;
  width: auto;
  height: 45px;
}

/* ---------- presell tablets (431-768px): the export sizes inline media for phones
   (max 400px wide, 217px tall), which left them at half width on tablets. ---------- */
@media (min-width: 431px) and (max-width: 768px) {
  .vrv-page--pre .adv-article .adv-figure__video,
  .vrv-page--pre .adv-article .adv-media__video,
  .vrv-page--pre .adv-article .adv-media__img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 400 / 217;
  }
}

/* ============================================================
   Interstitial on tablets (431-1200px): the export pins several blocks to the
   left edge and, between 769 and 1200px, shows neither the desktop hero video
   (1201px+) nor the phone hero image (<=768px). Centre them instead.
   ============================================================ */
@media (min-width: 431px) and (max-width: 1200px) {
  .vrv-page--int .cta-group-hero {
    margin-left: auto;
    margin-right: auto;
  }

  .vrv-page--int .description__boxes {
    align-items: center;
  }
}

/* landscape tablets: stacked, centred hero with the hero image */
@media (min-width: 769px) and (max-width: 1200px) {
  .vrv-page--int .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .vrv-page--int .hero__subtitle,
  .vrv-page--int .hero__message {
    width: 100%;
  }

  .vrv-page--int .hero__checks {
    align-self: center;
    text-align: left;
  }

  .vrv-page--int .hero__mobile-img {
    display: block !important;
    width: 100%;
    margin: 16px 0 !important;
    border-radius: 14px;
    overflow: hidden;
  }
}

/* portrait tablets */
@media (min-width: 431px) and (max-width: 768px) {
  /* The export bleeds these 20px past the container, which only has 12px of
     padding at these widths - the page scrolled sideways by 8px. */
  .vrv-page--int .hero__mobile-img {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden;
  }

  .vrv-page--int .cta-group--how {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* hero text under the centred headline (the export pins these left with !important) */
  .vrv-page--int .hero .hero__subtitle {
    text-align: center !important;
  }

  .vrv-page--int .hero .hero__checks {
    align-self: center;
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* buy box: content is stacked under the image here, so centre its header */
  .vrv-page--int .buy-card__content {
    text-align: center;
  }

  .vrv-page--int .buy-badge {
    align-self: center;
  }

  .vrv-page--int .buy-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .vrv-page--int .buy-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* phones: same 20px-vs-12px bleed bug; keep the hero image edge to edge, using the real 12px */
@media (max-width: 430px) {
  .vrv-page--int .hero__mobile-img {
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100% + 24px) !important;
  }

  .vrv-page--int .cta-group--how {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}
