/* Home v2: "See it run" section. A walkthrough player, then one tab per team.
   UX brief (Sam, 2026-11-14 rule). Seats: a carrier sales, underwriting, implementation or billing lead who looks for their own team.
   First read: the walkthrough, then "Who is 8/0 for?". Second read: the team tabs. One action: Play.
   A tab swaps team, player and proof in place and starts the player. Wide: tabs left of the player, same height.
   Below 1240px the tabs scroll sideways above the player. Tokens: colors_and_type.css. Dark only, like the site. */

.watch { position: relative; background: var(--ebz-ink-800); padding: 112px 0 120px; isolation: isolate; }
.watch::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 28px; background: linear-gradient(180deg, rgba(0,8,4,0.85), rgba(0,8,4,0)); border-top: 1px solid rgba(0,6,3,0.7); pointer-events: none; z-index: 1; }
.watch-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.watch-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.watch-lede { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

/* the player: poster until Play, then the Wistia element */
.watch-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: #000; border: 1px solid var(--border-2); border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.watch-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45)); pointer-events: none; }
.watch-stage[data-playing="true"]::after { display: none; }
.watch-stage wistia-player { display: block; width: 100%; height: 100%; }
.watch-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.watch-play > span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--ebz-ink-900); box-shadow: 0 8px 28px rgba(16,200,128,0.35); transition: transform .18s ease, background .18s ease; }
.watch-play svg { width: 30px; height: 30px; margin-left: 4px; }
.watch-play:hover > span { background: var(--accent-hover); transform: scale(1.06); }
.watch-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }

.watch-lead { margin-bottom: 112px; }

.watch-who { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; padding-top: 64px; border-top: 1px solid var(--border-1); }
.watch-who h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }

.watch-deck { display: grid; gap: 32px; align-items: stretch; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.watch-deck .watch-stage { min-height: 452px; }
.watch-tabs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.watch-tab { appearance: none; text-align: left; font: inherit; color: inherit; cursor: pointer; background: transparent; border: 1px solid var(--border-1); border-radius: 4px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: background .15s ease, border-color .15s ease; }
.watch-tab:hover { background: rgba(255,255,255,0.04); border-color: var(--border-2); }
.watch-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.watch-tab .who { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--fg-1); }
.watch-tab .what, .watch-tab .proof { display: none; }
.watch-tab[aria-selected="true"] { flex: 1 1 auto; background: rgba(16,200,128,0.08); border-color: rgba(16,200,128,0.55); }
.watch-tab[aria-selected="true"] .who { color: var(--accent); }
.watch-tab[aria-selected="true"] .what { display: block; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.watch-tab[aria-selected="true"] .proof { display: block; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(16,200,128,0.22); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--accent); }
.watch-tab .proof small { display: block; margin-top: 3px; font-size: 11px; color: var(--fg-3); }

/* the caption under the player shows only when the tabs stack */
.watch-cap { display: none; }

@media (max-width: 1240px) {
  .watch-deck { grid-template-columns: minmax(0, 1fr); }
  .watch-deck .watch-stage { min-height: 0; }
  .watch-tabs { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .watch-tab, .watch-tab[aria-selected="true"] { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; }
  .watch-tab[aria-selected="true"] .what, .watch-tab[aria-selected="true"] .proof { display: none; }
  .watch-cap { display: block; margin-top: 4px; }
  .watch-cap p { margin: 0 0 14px; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
  .watch-cap .proof { border-top: 1px solid var(--border-1); padding-top: 14px; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--accent); }
  .watch-cap .proof small { display: block; margin-top: 4px; font-size: 12px; color: var(--fg-3); }
}
@media (max-width: 980px) {
  .watch { padding: 80px 0 88px; }
  .watch-lead { margin-bottom: 72px; }
  .watch-who { padding-top: 48px; }
}
@media (max-width: 520px) {
  .watch-play > span { width: 64px; height: 64px; }
  .watch-play svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .watch * { transition: none !important; } }
