/* Sample 2 — S01 Marketplace tour (dark continuation of hero)
   Left: phone stack scrolls up. Right: sticky beat copy. */

body.tz-s2-hero-on {
  --tz-s2-void: #050a09;
  --tz-s2-ink-deep: #0a1614;
  --tz-s2-fog: #9bb0aa;
  --tz-s2-paper: #f7f5f1;
  --tz-s2-teal: #008080;
  --tz-s2-orange: #ff6b35;
}

body.tz-s2-hero-on .home-intro-wrap,
body.tz-s2-hero-on .home-intro {
  display: none !important;
}

/* Shared phone chrome (also used by asphalt cards) */
.tz-s2-phone {
  position: relative;
  flex: 0 0 auto;
  height: clamp(22rem, 32vh, 36rem);
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: min(24rem, 40vw);
  filter: drop-shadow(0 1rem 2.4rem rgba(0, 0, 0, 0.45));
}

.tz-s2-phone-bezel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  padding: 0.45rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    #141414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tz-s2-phone-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  z-index: 4;
  width: 28%;
  height: 0.75rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}

.tz-s2-phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 1.55rem;
  background: #0a0a0a;
}

.tz-s2-hero-bg {
  will-change: transform;
}

.tz-s2-hero-bg img {
  transform: scale(1.08);
  transform-origin: 62% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .tz-s2-hero-bg,
  .tz-s2-market-plate img,
  .tz-s2-market-stack {
    transform: none !important;
  }
}

.tz-s2-market {
  position: relative;
  z-index: 4;
  color: var(--tz-s2-paper);
  background: var(--tz-s2-void);
  font-family: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  overflow: clip;
}

.tz-s2-market-plate {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
  will-change: transform;
}

.tz-s2-market-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(0.88) saturate(1.05) contrast(1.04);
}

.tz-s2-market-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 9, 0.28) 0%, rgba(5, 10, 9, 0.48) 42%, rgba(5, 10, 9, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 10, 9, 0.2) 0%, transparent 35%, rgba(5, 10, 9, 0.35) 100%),
    radial-gradient(70% 50% at 20% 30%, rgba(0, 128, 128, 0.12), transparent 55%);
}

.tz-s2-market-scroll {
  position: relative;
  z-index: 2;
  min-height: 380vh;
}

.tz-s2-market-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  box-sizing: border-box;
  padding: 8.4rem 1.6rem 2.4rem;
}

@media screen and (min-width: 992px) {
  .tz-s2-market-pin {
    grid-template-columns: minmax(22rem, 0.85fr) minmax(28rem, 1.15fr);
    gap: 3.2rem;
    padding: 8.8rem 2.4rem 3.2rem 4.8rem;
  }
}

/* Left — scrolling phone stack */
.tz-s2-market-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.tz-s2-market-viewport {
  position: relative;
  width: min(28rem, 72vw);
  height: clamp(30rem, 68vh, 58rem);
  overflow: hidden;
}

.tz-s2-market-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
  transition: none;
}

.tz-s2-market-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(30rem, 68vh, 58rem);
  opacity: 0.38;
  transform: scale(0.94);
  filter: saturate(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.tz-s2-market-card.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
  z-index: 1;
}

.tz-s2-market-phone {
  height: min(100%, clamp(28rem, 62vh, 54rem));
  max-width: min(28rem, 100%);
  width: auto;
  aspect-ratio: 9 / 16;
  box-shadow:
    0 2.4rem 4.8rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(247, 245, 241, 0.06);
}

.tz-s2-market-phone .tz-s2-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tz-s2-market-frame {
  width: 100%;
  height: 100%;
  background: var(--tz-s2-paper);
}

.tz-s2-market-frame.is-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12% 8% 8%;
  box-sizing: border-box;
  text-align: center;
  color: #1a1a1a;
}

.tz-s2-market-frame .tz-s2-auth-logo {
  width: 28%;
  max-width: 7.2rem;
  margin: 8% 0 10%;
}

.tz-s2-market-frame .tz-s2-auth-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tz-s2-market-frame .tz-s2-auth-sub {
  margin: 0.4rem 0 1.6rem;
  font-size: 1.15rem;
  color: #666;
}

.tz-s2-market-frame .tz-s2-google-btn {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.9rem 1rem;
  cursor: default;
}

.tz-s2-market-frame .tz-s2-google-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.tz-s2-market-frame .tz-s2-google-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  color: #3c4043;
}

.tz-s2-market-frame .tz-s2-google-copy small {
  font-size: 1rem;
}

.tz-s2-market-frame .tz-s2-google-copy strong {
  font-size: 1.25rem;
}

.tz-s2-market-frame .tz-s2-auth-email {
  margin: 1.2rem 0 0;
  font-size: 1.2rem;
  color: var(--tz-s2-teal);
}

/* Right — sticky copy */
.tz-s2-market-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  margin-left: auto;
  min-height: 0;
  width: min(100%, 58rem);
  max-width: 58rem;
  padding-right: 0.4rem;
  box-sizing: border-box;
}

.tz-s2-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}

.tz-s2-market-chips li {
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.82);
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(247, 245, 241, 0.24);
  border-radius: 0.45rem;
  background: rgba(5, 10, 9, 0.4);
}

.tz-s2-market-chips li em {
  font-style: normal;
  color: var(--tz-s2-teal);
  font-weight: 700;
}

.tz-s2-market-beats {
  display: grid;
  width: 100%;
}

.tz-s2-market-beat {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.4rem);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.tz-s2-market-beat.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.tz-s2-market-kicker {
  margin: 0 0 1rem;
  font-size: clamp(14px, 1.15vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tz-s2-orange);
  font-weight: 700;
}

.tz-s2-market-headline {
  margin: 0 0 1.4rem;
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
  color: var(--tz-s2-paper);
}

.tz-s2-market-lead {
  margin: 0 0 1.7rem;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.45;
  color: rgba(247, 245, 241, 0.9);
  max-width: 36ch;
}

.tz-s2-market-points {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 38ch;
}

.tz-s2-market-points li {
  position: relative;
  padding-left: 2.2rem;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--tz-s2-paper);
}

.tz-s2-market-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--tz-s2-teal);
  box-shadow: 0 0 0 0.3rem rgba(0, 128, 128, 0.2);
}

.tz-s2-market-note {
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(247, 245, 241, 0.16);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.45;
  color: var(--tz-s2-fog);
  max-width: 38ch;
}

.tz-s2-market-progress {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.tz-s2-market-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(247, 245, 241, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.tz-s2-market-dot.is-active {
  background: var(--tz-s2-teal);
  transform: scale(1.25);
}

/* Mobile / tablet: static vertical tour — no sticky scrub, no clipped pin */
@media screen and (max-width: 991px) {
  .tz-s2-market {
    overflow: visible;
  }

  .tz-s2-market-scroll {
    min-height: 0;
  }

  .tz-s2-market-pin {
    position: static;
    min-height: 0;
    padding: 7.2rem 1.6rem 2.4rem;
    align-content: start;
  }

  .tz-s2-market-left {
    order: 1;
  }

  .tz-s2-market-rail {
    order: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-left: 0;
    padding-right: 0;
  }

  .tz-s2-market-viewport {
    width: min(22rem, 78vw);
    height: clamp(26rem, 52vh, 44rem);
  }

  .tz-s2-market-card {
    height: clamp(26rem, 52vh, 44rem);
  }

  .tz-s2-market-phone {
    height: min(100%, clamp(24rem, 48vh, 40rem));
    max-width: min(18rem, 100%);
  }

  .tz-s2-market-headline {
    max-width: 16ch;
    font-size: clamp(32px, 8.5vw, 48px);
  }

  /* Dedicated mobile flow (built by s2-journey.js when ≤991) */
  .tz-s2-market-mobile {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    box-sizing: border-box;
    padding: 5.6rem 1.25rem 3rem;
  }

  .tz-s2-market-mobile .tz-s2-market-chips {
    margin: 0 0 0.25rem;
    gap: 0.65rem;
  }

  .tz-s2-market-mobile .tz-s2-market-chips li {
    font-size: 11px;
    padding: 0.55rem 0.85rem;
  }

  .tz-s2-market-mobile-beat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .tz-s2-market-mobile-beat .tz-s2-market-card {
    height: auto;
    width: auto;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .tz-s2-market-mobile-beat .tz-s2-market-phone,
  .tz-s2-market-mobile-beat .tz-s2-phone {
    height: clamp(19rem, 52vh, 30rem);
    max-width: min(17rem, 78vw);
    width: auto;
  }

  .tz-s2-market-mobile-copy {
    width: 100%;
    max-width: 36rem;
  }

  .tz-s2-market-mobile-copy .tz-s2-market-headline {
    max-width: 14ch;
    font-size: clamp(30px, 8vw, 44px);
  }

  .tz-s2-market-mobile-copy .tz-s2-market-lead {
    font-size: clamp(16px, 4.2vw, 20px);
    max-width: none;
  }

  .tz-s2-market-mobile-copy .tz-s2-market-points li {
    font-size: clamp(15px, 4vw, 18px);
  }

  .tz-s2-market-mobile-copy .tz-s2-market-note {
    font-size: clamp(14px, 3.6vw, 16px);
    max-width: none;
  }
}
