/* ============================================================
   PRODUCT TOUR — components/product-tour.css
   "The real product": screenshots or video of the program, not mockups.
   Official coffeecup.com assets, served locally from assets-coffeecup-website/cc/.
   Static: no JS. The video never starts on its own (native controls).
   ============================================================ */

.tour {
  padding: var(--sp-7) var(--sp-3);
  background: var(--surface);
}
.tour-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.tour-header {
  max-width: 680px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}
.tour-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--primary-on-light);
}
.tour-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.1;
  color: var(--text-primary);
}
.tour-sub {
  margin-top: var(--sp-2);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Main piece: large screenshot or video ── */
.tour-main {
  max-width: 1040px;
  margin: 0 auto;
}
.tour-frame {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}
.tour-frame img,
.tour-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.tour-frame--video { background: #111; }

.tour-caption {
  max-width: 720px;
  margin: var(--sp-2) auto 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
}
.tour-caption strong {
  font-weight: var(--fw-strong);
  color: var(--text-primary);
}

/* ── Details: captioned screenshot grid ── */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.tour-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.tour-shot .tour-frame {
  aspect-ratio: 16 / 11;
  background: #fff;
}
.tour-shot .tour-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.tour-shot figcaption {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-secondary);
}
.tour-shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .tour { padding: var(--sp-6) var(--sp-3); }   /* same 24px gutter as .container */
  .tour-sub { font-size: var(--fs-body); }
}
