/* The original hero stays in place until the visitor starts the tour. */
.hero-tour-launch {
  position: absolute;
  z-index: 2;
  left: 51%;
  top: 49%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  min-height: 44px;
  border: 1px solid #5a354166;
  border-radius: 99px;
  background: #fffdf9;
  color: #2d2025;
  box-shadow:
    0 8px 30px #0c110f80,
    0 0 0 4px #ffffff66;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition:
    background-color 0.18s,
    box-shadow 0.18s;
}
.hero-tour-launch:hover {
  background: #ffffff;
  box-shadow:
    0 10px 32px #0c110f99,
    0 0 0 4px #ffffff99;
}
.hero-tour-launch svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: #652b3c;
  color: #ffffff;
}
.hero-tour-launch svg,
.hero-tour-close svg {
  flex-shrink: 0;
}
.hero-phone.glass[data-tour-open="true"] {
  transform: none;
  translate: none;
  scroll-margin-top: 96px;
}
.hero-phone [hidden] {
  display: none !important;
}
.hero-tour-panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-phone > picture,
.hero-tour-projection {
  transform-origin: 0 0;
  transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-tour-projection {
  position: absolute;
  inset: 0;
}
.hero-phone[data-tour-open="true"] > picture,
.hero-phone[data-tour-open="true"] .hero-tour-projection {
  transform: var(--hero-front-transform);
}
.hero-tour-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #514c43;
  font-size: 12px;
}
.hero-tour-toolbar > span {
  font-weight: 750;
}
.hero-tour-close {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 99px;
  background: #ffffffaa;
  border: 1px solid #ffffff;
  color: #514c43;
  font: inherit;
  cursor: pointer;
}
.hero-tour-device {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  pointer-events: auto;
}
.hero-tour-screen {
  position: absolute;
  inset: 0;
  border-radius: var(--screen-radius, 30px);
  clip-path: inset(0 round var(--screen-radius, 30px));
  overflow: hidden;
  isolation: isolate;
  background: #fafaf6;
}
.hero-tour-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-tour-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  clip-path: inset(0 round var(--screen-radius, 30px));
  background: #fafaf6;
  visibility: hidden;
}
.hero-tour-screen iframe[data-ready] {
  visibility: visible;
}
.hero-tour-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    700 11px/1 system-ui,
    sans-serif;
  color: #292a24;
  pointer-events: none;
}
.hero-tour-island {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  border-radius: 20px;
  background: #202021;
  pointer-events: none;
}
.hero-tour-home-indicator {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 4px;
  border-radius: 99px;
  background: #292a24;
  pointer-events: none;
}
.hero-tour-loading,
.hero-tour-error {
  position: absolute;
  inset: 44px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 14px;
  color: #655f53;
}
.hero-tour-loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #dde7c8;
  border-top-color: #799b37;
  border-radius: 50%;
  animation: hero-tour-spin 1s linear infinite;
}
.hero-tour-retry {
  padding: 9px 16px;
  border: 1px solid #652b3c;
  border-radius: 99px;
  background: #652b3c;
  color: #fffdf9;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hero-phone a:focus-visible,
.hero-phone button:focus-visible {
  outline: 2px solid #3478cc;
  outline-offset: 3px;
}
@keyframes hero-tour-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 639px) {
  .hero-phone.glass[data-hero-tour] {
    --hero-mobile-screen: min(calc(100vw - 72px), 340px);
    margin-inline: -12px;
    height: min(
      calc(var(--hero-mobile-screen) * 13 / 6 + 100px),
      calc(100svh - 88px)
    );
    min-height: 32rem;
    scroll-margin-top: 80px;
  }
}
@media (max-width: 380px) {
  .hero-tour-toolbar {
    font-size: 11px;
  }
  .hero-tour-launch {
    padding: 12px 14px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tour-launch,
  .hero-phone > picture,
  .hero-tour-projection {
    transition: none;
  }
  .hero-tour-loading::before {
    animation: none;
  }
}
