/* ══════════════════════════════════════════════════════════════════════════
   abp-tour.css: the product tour (tabs + one silent product video per
   campaign type + live captions). Shared by landing.html and the persona
   pages. Behaviour lives in /js/abp-tour.js. Falls back to its own values
   where a page does not define the brand tokens.
   ══════════════════════════════════════════════════════════════════════════ */
.abp-tour {
  --t-orange: var(--orange, #E85002);
  --t-white: var(--white, #F9F9F9);
  --t-muted: rgba(249, 249, 249, 0.56);
  --t-line: var(--border, rgba(255, 255, 255, 0.07));
  font-family: var(--font-body, 'Inter', sans-serif);
  width: 100%;
  min-width: 0;
}

/* ── tabs ── */
.abp-tour-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.abp-tour-tab {
  position: relative;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  color: var(--t-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--t-line);
  border-radius: 999px;
  padding: 11px 17px 13px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.abp-tour-tab:hover { color: var(--t-white); border-color: rgba(255, 255, 255, 0.16); }
.abp-tour-tab:active { transform: scale(0.98); }
.abp-tour-tab[aria-selected='true'] {
  color: var(--t-white);
  border-color: rgba(232, 80, 2, 0.55);
  background: rgba(232, 80, 2, 0.09);
}
.abp-tour-tab:focus-visible { outline: 2px solid var(--t-orange); outline-offset: 2px; }
/* how far through its video this tab is */
.abp-tour-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.abp-tour-bar i {
  display: block;
  height: 100%;
  background: var(--t-orange);
  transform-origin: left center;
  transform: scaleX(0);
}
.abp-tour-or {
  font-size: 13px;
  color: var(--t-muted);
  margin: 0 2px 0 6px;
  text-transform: lowercase;
}

/* ── caption: live text, synced to the video ── */
.abp-tour-cap {
  min-height: 2.5em;
  margin: 0 0 14px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--t-white);
  transition: opacity 0.22s ease;
}
.abp-tour-cap .o { color: var(--t-orange); }
.abp-tour-cap.is-out { opacity: 0; }

/* ── the video ── */
.abp-tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #08080a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.abp-tour-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.abp-tour-ctl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 12, 0.72);
  color: var(--t-white);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.abp-tour-ctl:hover { border-color: rgba(232, 80, 2, 0.7); }
.abp-tour-ctl:active { transform: scale(0.94); }
.abp-tour-ctl:focus-visible { outline: 2px solid var(--t-orange); outline-offset: 2px; }
.abp-tour-ctl svg { width: 14px; height: 14px; }
.abp-tour-ctl .i-play { display: none; }
.abp-tour.is-paused .abp-tour-ctl .i-play { display: block; }
.abp-tour.is-paused .abp-tour-ctl .i-pause { display: none; }

/* ── the line under a tab (tours need solo; the hq path) ── */
.abp-tour-notes { min-height: 24px; margin-top: 12px; }
.abp-tour-note {
  display: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t-muted);
  text-transform: lowercase;
}
.abp-tour-note.is-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.abp-tour-note a {
  color: var(--t-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(249, 249, 249, 0.35);
}
.abp-tour-note a.abp-tour-go {
  text-decoration: none;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--t-orange);
  border-radius: 8px;
  padding: 9px 16px;
}
.abp-tour-note a.abp-tour-go:hover { background: var(--orange-hot, #F16001); }

.abp-tour-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .abp-tour-frame { aspect-ratio: 4 / 5; border-radius: 14px; }
  /* one row you can swipe, so the video starts right under it */
  .abp-tour-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px 12px;
    padding: 2px 16px;
    scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .abp-tour-tabs::-webkit-scrollbar { display: none; }
  .abp-tour-tab { flex: 0 0 auto; font-size: 13px; padding: 10px 14px 12px; }
  .abp-tour-cap { font-size: 18px; min-height: 2.5em; margin-bottom: 10px; }
  .abp-tour-notes { margin-top: 10px; }
}
/* phones held sideways: a short caption so the video stays on screen */
@media (max-width: 1020px) and (max-height: 520px) {
  .abp-tour-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  .abp-tour-tab { flex: 0 0 auto; font-size: 12.5px; padding: 8px 12px 10px; }
  .abp-tour-cap { font-size: 15px; min-height: 1.3em; margin-bottom: 8px; }
  .abp-tour-notes { min-height: 0; margin-top: 6px; }
}
@media (min-width: 1700px) {
  .abp-tour-tab { font-size: 15.5px; padding: 13px 20px 15px; }
  .abp-tour-or { font-size: 15px; }
  .abp-tour-cap { font-size: clamp(25px, 1.35vw, 36px); margin-bottom: 18px; }
  .abp-tour-frame { border-radius: 20px; }
  .abp-tour-ctl { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .abp-tour-note, .abp-tour-note a.abp-tour-go { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .abp-tour-cap, .abp-tour-tab, .abp-tour-ctl { transition: none; }
}
