/* A compact studio: navigation, a steady phone, and one changing story. */
#explore.app-tour {
  --tour-sticky-top: 86px;
  --tour-phone-width: var(--sunday-phone-size);
  --tour-view-height: calc(100svh - var(--tour-sticky-top));
  --tour-scroll-distance: 0px;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  scroll-margin-top: var(--tour-sticky-top);
}

#explore .tour-pin {
  position: relative;
  height: auto;
  padding-block: 64px 72px;
  background: var(--paper, #fbfaf8);
}

#explore .tour-inner {
  position: relative;
  min-width: 0;
}

#explore .tour-intro {
  width: 100%;
  min-width: 0;
  max-width: 300px;
  justify-self: start;
}

#explore .tour-heading {
  width: 100%;
  max-width: 300px;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

#explore .tour-heading .eyebrow {
  display: block;
  margin-bottom: 17px;
  font-size: 10px;
  line-height: 1.3;
}

#explore .tour-heading h2 {
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -1.25px;
}

#explore .tour-heading > p {
  max-width: none;
  margin: 16px 0 0;
  color: #857481;
  font-size: 12px;
  line-height: 1.5;
}

#explore .tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  width: min(1120px, 100%);
  min-width: 0;
  margin: 0 auto;
}

#explore .tour-stage {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: var(--tour-phone-width);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

#explore .tour-stage .device-wrap {
  flex: 0 0 auto;
  /* Fixed presets preserve the silhouette; the phone never changes on scroll. */
  width: var(--tour-phone-width);
  height: auto;
  min-height: 0;
  max-width: calc(100vw - 24px);
  aspect-ratio: 71 / 149;
  margin: 0 auto;
}

#explore .device-edge {
  padding: calc(var(--tour-phone-width) * 6 / 336);
  border-radius: calc(var(--tour-phone-width) * 43 / 336);
}

#explore .device-screen {
  --phone-screen-radius: calc(var(--tour-phone-width) * 36 / 336);
  --phone-screen-border: calc(var(--tour-phone-width) * 3 / 336);
}

#explore .screen-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#explore .screen-tabs button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 48px;
  padding: 13px 2px;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid #e6dfe3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

#explore .screen-tabs button[aria-selected="true"] {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 600;
}

#explore .tour-tab-number {
  flex: 0 0 19px;
  color: #9a8c97;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
}

#explore .screen-tabs .icon {
  display: none;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

#explore .screen-tabs .tour-tab-arrow {
  display: block;
  margin-left: auto;
  color: var(--plum);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}

#explore .screen-tabs button[aria-selected="true"] .tour-tab-arrow {
  opacity: 1;
  transform: none;
}

#explore .tour-caption {
  max-width: none;
  margin: 12px 0 0;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

#explore .tour-story {
  width: 100%;
  min-width: 0;
  max-width: 300px;
  justify-self: end;
}

#explore .tour-chapters {
  position: relative;
  min-width: 0;
  padding: 0;
}

#explore .tour-chapter,
#explore .tour-chapter:first-of-type,
#explore .tour-chapter:last-of-type {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#explore:not(.is-tour-ready) .tour-chapter + .tour-chapter {
  margin-top: 40px;
}

#explore .tour-chapter::before,
#explore .tour-progress {
  display: none;
}

#explore .chapter-number {
  margin-bottom: 18px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

#explore .tour-chapter h3 {
  color: var(--ink);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

#explore .tour-chapter p {
  max-width: 355px;
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.75;
}

#explore .tour-features-label {
  display: block;
  margin-bottom: 8px;
  color: #9a8393;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#explore .tour-features {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8e0e4;
}

#explore .tour-feature {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 11px 5px;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e8e0e4;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

#explore .tour-feature:hover,
#explore .tour-feature[aria-pressed="true"] {
  background: #f3edf0;
}

#explore .tour-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 32px;
  color: var(--plum);
}

#explore .tour-feature-icon > .icon { width: 19px; height: 19px; }

#explore .tour-feature-copy { flex: 1; min-width: 0; }
#explore .tour-feature-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

#explore .tour-feature-copy small {
  display: block;
  margin-top: 3px;
  color: #817381;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

#explore .tour-feature-arrow {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: #9a8393;
  transition: transform .35s var(--ease), color .3s var(--ease);
}

#explore .tour-feature:hover .tour-feature-arrow,
#explore .tour-feature[aria-pressed="true"] .tour-feature-arrow {
  color: var(--plum);
  transform: translateX(2px);
}

#explore .feature-avatars {
  display: flex;
  width: 36px;
  margin-left: -4px;
}

#explore .feature-avatars img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

#explore .feature-avatars img + img { margin-left: -15px; }

#explore .tour-feature-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #8b7989;
  font-size: 9px;
  line-height: 1.5;
}

#explore .tour-feature-note .icon { width: 12px; height: 12px; }

@media (min-width: 901px) and (max-height: 699px) {
  #explore .chapter-number { margin-bottom: 12px; }
  #explore .tour-chapter h3 { font-size: 29px; }
  #explore .tour-chapter p { margin-block: 12px 14px; font-size: 13px; line-height: 1.6; }
  #explore .tour-feature { min-height: 60px; padding-block: 8px; }
}

/* Hidden chapters still contribute their height, so the copy never reflows. */
#explore.is-tour-ready .tour-chapters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#explore.is-tour-ready .tour-chapter {
  grid-area: 1 / 1;
  align-self: start;
}

@media (min-width: 901px) {
  #explore.is-tour-pinned {
    height: calc(var(--tour-view-height) + var(--tour-scroll-distance));
  }

  #explore.is-tour-pinned .tour-pin {
    position: sticky;
    top: var(--tour-sticky-top);
    height: var(--tour-view-height);
    padding: 0;
  }

  #explore.is-tour-pinned .tour-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding-block: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  #explore .tour-heading h2 { font-size: 30px; }
  #explore .tour-chapter h3 { font-size: 28px; }
  #explore .tour-chapter p { font-size: 13px; }
}

@media (max-width: 900px) {
  #explore .tour-pin {
    padding-block: 55px 64px;
  }

  #explore .tour-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "tabs" "phone" "copy";
    gap: 28px;
  }

  #explore .tour-intro { display: contents; }
  #explore .tour-stage { grid-area: phone; }
  #explore .tour-story {
    grid-area: copy;
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
  }

  #explore .tour-heading {
    grid-area: heading;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
  }

  #explore .screen-tabs {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 4px;
    gap: 2px;
    border: 1px solid #eae5e7;
    border-radius: 99px;
    background: #f0ecee;
  }

  #explore .screen-tabs button {
    justify-content: center;
    min-height: 38px;
    padding: 9px 4px;
    gap: 5px;
    border: 0;
    border-radius: 99px;
    font-size: 10px;
    line-height: 1.2;
  }

  #explore .screen-tabs button[aria-selected="true"] {
    background: white;
    box-shadow: 0 3px 10px #55455d0a;
  }

  #explore .screen-tabs .icon { display: block; width: 12px; height: 12px; }
  #explore .screen-tabs .tour-tab-number,
  #explore .screen-tabs .tour-tab-arrow { display: none; }

  #explore .tour-heading h2 {
    max-width: 580px;
    margin-inline: auto;
    font-size: clamp(30px, 5vw, 38px);
    letter-spacing: -1.3px;
  }

  #explore .tour-chapter h3 {
    font-size: 31px;
  }
}

@media (max-width: 650px) {
  #explore.app-tour {
    --tour-sticky-top: 74px;
  }

  #explore .tour-inner {
    width: calc(100% - 24px);
  }

  #explore .tour-heading h2 {
    max-width: 345px;
    font-size: 32px;
  }

  #explore .tour-heading > p {
    font-size: 11px;
  }

  #explore .screen-tabs {
    width: min(366px, 100%);
    border-radius: 18px;
  }

  #explore .screen-tabs button {
    flex-direction: column;
    min-height: 44px;
    padding: 7px 2px;
    gap: 4px;
    border-radius: 14px;
    font-size: 10px;
  }

  #explore .tour-story {
    max-width: 355px;
  }

  #explore .tour-chapter p {
    margin-block: 18px 22px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #explore .screen-tabs .tour-tab-arrow,
  #explore .tour-feature,
  #explore .tour-feature-arrow { transition: none; }
}
.reduce-motion #explore .screen-tabs .tour-tab-arrow,
.reduce-motion #explore .tour-feature,
.reduce-motion #explore .tour-feature-arrow { transition: none; }
