/* Product tour — tabbed real-app screenshots */
.tour {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
}

.tour-heading {
  font-size: var(--font-size-h2);
  line-height: 1.15;
  margin: 0 0 var(--space-5);
  text-align: center;
}

.tour-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tour-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tour-tab:hover {
  background: var(--color-border);
}

.tour-tab.active {
  background: var(--color-bg-elevated);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.tour-tab-title {
  font-weight: 700;
  font-size: var(--font-size-body);
  color: var(--color-text);
}

.tour-tab.active .tour-tab-title {
  color: var(--color-accent);
}

.tour-tab-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.tour-viewer {
  position: relative;
  aspect-ratio: 1400 / 934;
}

.tour-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tour-image[hidden] {
  display: none;
}

/* Responsive — extends the site's existing 900 / 760 / 600 breakpoints */
@media (max-width: 900px) {
  .tour-layout {
    grid-template-columns: 1fr;
  }
  .tour-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tour-tab {
    flex: 1 1 calc(50% - var(--space-2));
  }
}
/* Phones: tabs become a horizontal swipe strip of titles sitting right
   above the screenshot, so tapping one changes the image in view. */
@media (max-width: 600px) {
  .tour {
    padding: var(--space-6) var(--space-3);
  }
  .tour-layout {
    gap: var(--space-3);
  }
  .tour-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--space-3));
    padding: 0 var(--space-3) var(--space-2);
  }
  .tour-tabs::-webkit-scrollbar {
    display: none;
  }
  .tour-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    border-color: var(--color-border);
    min-height: 44px;
    justify-content: center;
  }
  .tour-tab-title {
    font-size: var(--font-size-small);
    white-space: nowrap;
  }
  .tour-tab-desc {
    display: none;
  }
}
