.tour-compact-page,
.tour-guided-page {
  padding-bottom: 104px;
}

.tour-floating-footer {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: min(1040px, calc(100vw - 2rem));
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin-inline: auto;
  padding: 0.7rem 0.8rem 0.7rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: var(--paper);
  background: rgba(23, 23, 21, 0.92);
  box-shadow: 0 18px 54px rgba(23, 23, 21, 0.24);
  opacity: 0;
  transform: translateY(calc(100% + 2rem));
  transition: opacity 220ms ease, transform 280ms ease;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.tour-floating-footer.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tour-floating-footer__copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.8rem;
}

.tour-floating-footer__copy strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.tour-floating-footer__meta {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.tour-v4-legal {
  position: absolute;
  bottom: clamp(1rem, 2.5svh, 2rem);
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  width: min(92vw, 680px);
  color: rgba(251, 250, 246, 0.54);
  font-size: 0.7rem;
  line-height: 1.2;
  transform: translateX(-50%);
}

.tour-v4-legal a {
  padding-block: 0.2rem;
  transition: color 160ms ease;
}

.tour-v4-legal a:hover,
.tour-v4-legal a:focus-visible {
  color: var(--paper);
}

.tour-v4-legal a:focus-visible {
  border-radius: 2px;
  outline: 1px solid rgba(251, 250, 246, 0.62);
  outline-offset: 3px;
}

.tour-floating-footer__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tour-floating-footer__actions a {
  display: block;
  border-radius: 8px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.tour-floating-footer__actions a:hover,
.tour-floating-footer__actions a:focus-visible {
  opacity: 0.86;
  transform: translateY(-2px);
}

.tour-floating-footer__actions img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.tour-v4-footer__aside {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.tour-v4-legal {
  justify-content: center;
  font-size: 0.72rem;
}

/* Compact variation */

.tour-compact-page .tour-v4-hero {
  min-height: 82svh;
  padding-block: 3rem;
}

.tour-compact-page .tour-v4-hero h1 {
  font-size: clamp(4.6rem, 8.3vw, 8.3rem);
}

.tour-compact-page .tour-v4-hero__screens {
  min-height: 620px;
}

.tour-compact-page .tour-v4-mode {
  min-height: 0;
  height: clamp(540px, 62svh, 580px);
  grid-template-columns: minmax(250px, 360px) minmax(690px, 760px);
  gap: clamp(1.75rem, 3vw, 4rem);
  padding: 2rem 4vw;
}

.tour-compact-page .tour-v4-mode__copy {
  gap: 0.8rem;
}

.tour-compact-page .tour-v4-mode__title {
  gap: 1rem;
}

.tour-compact-page .tour-v4-mode__title h2 {
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.tour-compact-page .tour-v4-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
}

.tour-compact-page .tour-v4-icon img {
  width: 58px;
  height: 58px;
}

.tour-compact-page .tour-v4-mode__copy > p {
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tour-compact-page .tour-v4-screens,
.tour-compact-page .tour-v4-sequence {
  max-width: 760px;
  gap: 0.7rem;
}

.tour-compact-page .tour-v4-screens .v3-phone,
.tour-compact-page .tour-v4-sequence .v3-phone {
  max-width: 225px;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(47, 43, 36, 0.14);
}

.tour-compact-page .tour-v4-screens .v3-phone:nth-child(2),
.tour-compact-page .tour-v4-sequence .v3-phone:nth-child(2) {
  transform: translateY(-0.65rem);
}

.tour-compact-page .tour-v4-footer {
  min-height: 72svh;
}

/* Guided variation */

.tour-guided-page {
  height: 100svh;
  padding-bottom: 0;
  overflow: hidden;
}

.tour-guided-page main {
  height: 100svh;
  overflow: hidden;
}

.guided-experience {
  position: fixed;
  z-index: 30;
  inset: 0;
  height: 100svh;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.guided-toolbar {
  position: fixed;
  z-index: 220;
  top: 0.5rem;
  left: 50%;
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 1rem);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: none;
}

.guided-steps {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0;
}

.guided-step {
  position: relative;
  display: grid;
  width: 12px;
  min-width: 12px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

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

.guided-step::before {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: width 180ms ease, background 180ms ease;
}

.guided-step[aria-selected="true"] {
  color: var(--ink);
}

.guided-step:focus-visible {
  outline: 0;
  background: var(--sage-light);
}

.guided-step[aria-selected="true"]::before {
  width: 10px;
  border-radius: 999px;
  background: var(--ink);
}

.guided-progress,
.guided-count {
  display: none;
}

.guided-slides {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  pointer-events: none;
}

.guided-slide {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding: clamp(6.25rem, 12svh, 7.5rem) 5vw clamp(7rem, 14svh, 9rem);
  border-top: 0;
  overflow: hidden;
  pointer-events: auto;
  animation: guided-enter 280ms ease both;
}

.tour-guided-page .tour-v4-hero.guided-slide {
  min-height: 0;
  grid-template-columns: minmax(410px, 0.9fr) minmax(560px, 1.1fr);
  padding: clamp(6rem, 10svh, 7rem) 5vw clamp(7rem, 13svh, 8.5rem);
}

.tour-guided-page .tour-v4-hero h1 {
  font-size: clamp(5rem, 8.2vw, 8.2rem);
  line-height: 0.78;
}

.tour-guided-page .tour-v4-hero__screens {
  min-height: min(680px, 72svh);
}

.tour-guided-page .guided-final-slide {
  min-height: 0;
  padding: clamp(6.5rem, 12svh, 8rem) 5vw 5vw;
}

.guided-slide[hidden] {
  display: none !important;
}

.guided-slide .tour-v4-mode__copy::before {
  display: none;
}

@keyframes guided-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .tour-compact-page .tour-v4-hero {
    min-height: 1040px;
  }

  .tour-compact-page .tour-v4-mode {
    height: 700px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.6rem;
  }

  .tour-compact-page .tour-v4-mode__copy {
    width: min(680px, 100%);
  }

  .tour-compact-page .tour-v4-screens,
  .tour-compact-page .tour-v4-sequence {
    width: min(760px, 100%);
  }

  .tour-guided-page .tour-v4-hero.guided-slide,
  .tour-guided-page .tour-v4-mode.guided-slide {
    height: 100svh;
    min-height: 0;
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(3.5rem, 6svh, 4.5rem);
    padding: 6.25rem 4vw 7.5rem;
  }

  .tour-guided-page .tour-v4-mode__copy {
    width: min(680px, 100%);
  }

  .tour-guided-page .tour-v4-screens,
  .tour-guided-page .tour-v4-sequence {
    width: min(680px, 100%);
  }

  .tour-guided-page .tour-v4-hero__screens {
    min-height: min(490px, 52svh);
  }

  .tour-guided-page .guided-final-slide {
    height: 100svh;
    min-height: 0;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 3rem;
    padding: 5rem 4vw 4rem;
    text-align: center;
  }
}

@media (min-width: 721px) and (max-width: 1040px) and (max-height: 900px) {
  .tour-guided-page .tour-v4-hero.guided-slide {
    grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
    align-content: center;
    align-items: center;
    gap: clamp(2.25rem, 4vw, 3.25rem);
    padding: 2.5rem 3.5vw 6rem;
  }

  .tour-guided-page .tour-v4-hero h1 {
    font-size: clamp(3.5rem, 7.4vw, 4.6rem);
    line-height: 0.79;
  }

  .tour-guided-page .tour-v4-hero__screens {
    width: 100%;
    min-height: min(450px, 64svh);
  }

  .tour-guided-page .tour-v4-hero__screens .v3-phone {
    width: min(160px, 34%);
  }
}

@media (min-width: 721px) and (max-width: 1040px) and (max-height: 760px) {
  .tour-guided-page .tour-v4-mode.guided-slide {
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    align-content: center;
    align-items: center;
    gap: clamp(3rem, 5.5vw, 4.25rem);
    padding: 3.25rem 4vw 6.5rem;
  }

  .tour-guided-page .tour-v4-mode__copy {
    width: 100%;
    max-width: 360px;
  }

  .tour-guided-page .tour-v4-mode__title {
    gap: 1rem;
  }

  .tour-guided-page .tour-v4-mode__title h2 {
    font-size: clamp(3rem, 5.9vw, 3.8rem);
  }

  .tour-guided-page .tour-v4-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .tour-guided-page .tour-v4-icon img {
    width: 73px;
    height: 73px;
  }

  .tour-guided-page .tour-v4-mode__copy > p {
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .tour-guided-page .tour-v4-screens,
  .tour-guided-page .tour-v4-sequence {
    width: 100%;
    max-width: 590px;
    gap: 0.55rem;
  }

  .tour-guided-page .tour-v4-screens .v3-phone,
  .tour-guided-page .tour-v4-sequence .v3-phone {
    max-width: 190px;
  }

  .tour-guided-page .tour-v4-screens .v3-phone:nth-child(2),
  .tour-guided-page .tour-v4-sequence .v3-phone:nth-child(2) {
    transform: translateY(-1rem);
  }
}

@media (max-width: 720px) {
  .tour-compact-page {
    padding-bottom: 92px;
  }

  .tour-floating-footer {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: calc(100vw - 1rem);
    min-height: 72px;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    padding: 0.55rem 0.55rem 0.55rem 0.85rem;
    border-radius: 20px;
  }

  .tour-floating-footer__copy {
    display: grid;
    gap: 0.08rem;
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .tour-floating-footer__copy strong {
    font-size: 1.12rem;
  }

  .tour-floating-footer__actions {
    gap: 0.25rem;
  }

  .tour-floating-footer__actions img {
    height: 31px;
  }

  .tour-compact-page .tour-v4-hero {
    min-height: 900px;
  }

  .tour-compact-page .tour-v4-hero__screens {
    min-height: 470px;
  }

  .tour-compact-page .tour-v4-mode {
    height: 480px;
    gap: 0.75rem;
    padding: 1.2rem 0.75rem 1rem;
  }

  .tour-compact-page .tour-v4-mode__copy {
    gap: 0.5rem;
  }

  .tour-compact-page .tour-v4-mode__title {
    gap: 0.6rem;
  }

  .tour-compact-page .tour-v4-mode__title h2 {
    font-size: 2.35rem;
  }

  .tour-compact-page .tour-v4-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .tour-compact-page .tour-v4-icon img {
    width: 41px;
    height: 41px;
  }

  .tour-compact-page .tour-v4-mode__copy > p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .tour-compact-page .tour-v4-screens,
  .tour-compact-page .tour-v4-sequence {
    width: calc(100% + 1.5rem);
    max-width: none;
    grid-template-columns: repeat(3, 138px);
    justify-content: start;
    justify-self: stretch;
    gap: 0.65rem;
    margin-inline: -0.75rem;
    padding: 0.25rem 0.75rem 0.8rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .tour-compact-page .tour-v4-screens::-webkit-scrollbar,
  .tour-compact-page .tour-v4-sequence::-webkit-scrollbar {
    display: none;
  }

  .tour-compact-page .tour-v4-screens .v3-phone,
  .tour-compact-page .tour-v4-sequence .v3-phone {
    width: 138px;
    max-width: 138px;
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .tour-compact-page .tour-v4-screens .v3-phone:nth-child(2),
  .tour-compact-page .tour-v4-sequence .v3-phone:nth-child(2) {
    transform: none;
  }

  .guided-toolbar {
    top: 0.25rem;
    grid-template-columns: auto;
    padding: 0;
  }

  .guided-steps {
    gap: 0;
  }

  .guided-step {
    width: 11px;
    min-width: 11px;
    height: 22px;
    padding: 0;
  }

  .guided-step::before {
    width: 4px;
    height: 4px;
  }

  .guided-step[aria-selected="true"]::before {
    width: 9px;
  }

  .tour-guided-page .tour-v4-hero.guided-slide,
  .tour-guided-page .tour-v4-mode.guided-slide {
    height: 100svh;
    min-height: 0;
    gap: clamp(2.25rem, 5svh, 3rem);
    padding: 5rem 0.75rem 6.5rem;
  }

  .tour-guided-page .tour-v4-mode__copy {
    gap: 0.8rem;
  }

  .tour-guided-page .tour-v4-mode__title {
    gap: 0.85rem;
  }

  .tour-guided-page .tour-v4-mode__title h2 {
    font-size: 3rem;
  }

  .tour-guided-page .tour-v4-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .tour-guided-page .tour-v4-icon img {
    width: 58px;
    height: 58px;
  }

  .tour-guided-page .tour-v4-mode__copy > p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .tour-guided-page .tour-v4-screens,
  .tour-guided-page .tour-v4-sequence {
    gap: 0.45rem;
  }

  .tour-guided-page .tour-v4-hero.guided-slide {
    grid-template-columns: 1fr;
    padding-top: 4.6rem;
  }

  .tour-guided-page .tour-v4-hero h1 {
    font-size: 4rem;
  }

  .tour-guided-page .tour-v4-hero__screens {
    min-height: min(360px, 43svh);
  }

  .tour-guided-page .tour-v4-hero__screens .v3-phone {
    width: 120px;
  }

  .tour-guided-page .guided-final-slide {
    height: 100svh;
    min-height: 0;
    padding: 5rem 1rem 3rem;
  }

  .tour-v4-legal {
    bottom: 1rem;
    gap: 0.3rem 0.8rem;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-floating-footer,
  .guided-progress span,
  .guided-slide {
    animation: none !important;
    transition: none !important;
  }
}
