/* Product demo videos: hero button and the lightbox player. */

/* ---------- hero button ---------- */
.t4-pv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.t4-pv-btn {
  --pv-a: var(--t4-blue, #2458de);
  --pv-b: var(--t4-teal, #10b5b0);
  --pv-bg: var(--t4-surface, #fff);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px;
  padding-block: 8px; padding-inline: 8px 10px; border: 1.5px solid transparent; border-radius: 999px;
  background:
    linear-gradient(var(--pv-bg), var(--pv-bg)) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--pv-a) 60%, transparent), color-mix(in srgb, var(--pv-b) 50%, transparent) 50%, color-mix(in srgb, var(--pv-a) 16%, transparent)) border-box;
  color: var(--t4-ink, #14243b); font: inherit; text-align: start; cursor: pointer;
  box-shadow: 0 18px 38px -24px color-mix(in srgb, var(--pv-a) 80%, transparent), 0 2px 6px -3px rgba(16, 32, 64, .12);
  transition: transform .35s var(--t4-ease, cubic-bezier(.2, .8, .2, 1)), box-shadow .35s;
}
.t4-pv-btn:hover { transform: translateY(-2px); box-shadow: 0 26px 46px -24px color-mix(in srgb, var(--pv-a) 95%, transparent), 0 2px 6px -3px rgba(16, 32, 64, .12); }
.t4-pv-btn:active { transform: translateY(0) scale(.985); }
.t4-pv-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--pv-a) 45%, transparent); outline-offset: 3px; }

/* a light sweep: once after load, again on hover */
.t4-pv-btn__sheen { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.t4-pv-btn__sheen::before {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--pv-b) 14%, transparent) 38%, rgba(255, 255, 255, .7) 50%, color-mix(in srgb, var(--pv-a) 12%, transparent) 62%, transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: t4pv-sheen 1.15s 1s cubic-bezier(.45, 0, .2, 1) both;
}
.t4-pv-btn:hover .t4-pv-btn__sheen::before { animation-name: t4pv-sheen-again; animation-delay: 0s; animation-duration: .9s; }
@keyframes t4pv-sheen { from { transform: translateX(250%) skewX(-18deg); } to { transform: translateX(-120%) skewX(-18deg); } }
@keyframes t4pv-sheen-again { from { transform: translateX(250%) skewX(-18deg); } to { transform: translateX(-120%) skewX(-18deg); } }

.t4-pv-btn__icon {
  position: relative; display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-a), var(--pv-b)); color: #fff;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--pv-a) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--t4-ease, cubic-bezier(.2, .8, .2, 1));
}
.t4-pv-btn:hover .t4-pv-btn__icon { transform: scale(1.06); }
.t4-pv-btn__icon::before,
.t4-pv-btn__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid color-mix(in srgb, var(--pv-b) 60%, transparent); animation: t4pv-ring 2.6s cubic-bezier(.2, .7, .3, 1) infinite; pointer-events: none; }
.t4-pv-btn__icon::after { animation-delay: 1.3s; }
.t4-pv-btn__icon svg { width: 22px; height: 22px; fill: currentColor; transform: translateX(1px); }
.t4-pv-btn__text { display: grid; gap: 2px; line-height: 1.5; }
.t4-pv-btn__text b { font-size: 15.5px; font-weight: 900; letter-spacing: -.01em; }
.t4-pv-btn__text small { display: flex; align-items: center; gap: 8px; color: var(--t4-muted, #52647c); font-size: 12px; font-weight: 600; white-space: nowrap; }
.t4-pv-btn__time { display: inline-flex; align-items: center; gap: 4px; padding-inline-start: 8px; border-inline-start: 1px solid color-mix(in srgb, var(--t4-muted, #52647c) 35%, transparent); }
.t4-pv-btn__time svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t4-pv-btn__go {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-inline-start: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--pv-a) 9%, transparent); color: var(--pv-a);
  transition: transform .35s var(--t4-ease, cubic-bezier(.2, .8, .2, 1)), background .35s, color .35s;
}
.t4-pv-btn__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.t4-pv-btn:hover .t4-pv-btn__go { transform: translateX(-3px); background: linear-gradient(135deg, var(--pv-a), var(--pv-b)); color: #fff; }
.t4-pv-btn:dir(ltr) .t4-pv-btn__go svg { transform: scaleX(-1); }
.t4-pv-btn:dir(ltr):hover .t4-pv-btn__go { transform: translateX(3px); }
@keyframes t4pv-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- lightbox ---------- */
html.t4-pv-lock { overflow: hidden; }
.t4-pv {
  --pv-a: var(--t4-blue, #2458de);
  --pv-b: var(--t4-teal, #10b5b0);
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #eef3ff; overflow: hidden;
}
.t4-pv::backdrop { background: rgba(3, 7, 20, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.t4-pv[open] { display: grid; place-items: center; animation: t4pv-fade .32s ease both; }
.t4-pv.is-closing { animation: t4pv-fade-out .22s ease both; }
.t4-pv.is-closing::backdrop { animation: t4pv-fade-out .22s ease both; }
.t4-pv__glow { position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(40% 35% at 80% 10%, color-mix(in srgb, var(--pv-a) 38%, transparent), transparent 70%), radial-gradient(38% 34% at 12% 92%, color-mix(in srgb, var(--pv-b) 30%, transparent), transparent 70%); filter: blur(10px); }
.t4-pv__shell { position: relative; display: grid; gap: 16px; width: min(1120px, calc(100vw - 48px)); max-height: calc(100dvh - 32px); animation: t4pv-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.t4-pv__head { display: flex; align-items: center; gap: 16px; }
.t4-pv__heading { flex: 1; min-width: 0; }
.t4-pv__kicker { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0 0 2px; color: #9fb3d9; font-size: 12.5px; font-weight: 700; }
.t4-pv__kicker i { display: inline-block; vertical-align: middle; margin-inline-end: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pv-b); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pv-b) 25%, transparent); }
.t4-pv__title { margin: 0; overflow: hidden; color: #fff; font-size: clamp(17px, 2vw, 22px); font-weight: 900; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.t4-pv__caption { transition: opacity .2s; }
.t4-pv__caption.is-swap { opacity: 0; }
.t4-pv__count { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #b9c7e6; font-size: 13px; font-weight: 600; white-space: nowrap; }
.t4-pv__count b { color: #fff; font-size: 15px; font-weight: 900; }
.t4-pv__close { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: transform .3s, background .3s; }
.t4-pv__close:hover { background: rgba(255, 255, 255, .18); transform: rotate(90deg); }
.t4-pv__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.t4-pv__stage { position: relative; }
.t4-pv__viewport { position: relative; overflow: hidden; border-radius: 22px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -40px color-mix(in srgb, var(--pv-a) 70%, transparent); }
.t4-pv__track { display: flex; transition: transform .55s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.t4-pv__slide { flex: 0 0 100%; min-width: 0; }
.t4-pv__frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - 250px); margin-inline: auto; background: #05070f center / cover no-repeat; }
.t4-pv:not(.is-multi) .t4-pv__frame { max-height: calc(100dvh - 150px); }
.t4-pv__frame::before { content: ""; position: absolute; inset: 0; background: rgba(3, 7, 20, .35); transition: opacity .4s; }
.t4-pv__frame.is-live::before { opacity: 0; }
.t4-pv__frame :is(video, iframe) { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: #000; }
.t4-pv__frame video { object-fit: contain; }
.t4-pv__loader { position: absolute; top: 50%; left: 50%; z-index: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: t4pv-spin .9s linear infinite; }

.t4-pv__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -27px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(10, 16, 36, .55); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s, background .3s, opacity .3s; }
.t4-pv__nav:hover { background: linear-gradient(135deg, var(--pv-a), var(--pv-b)); }
.t4-pv__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.t4-pv__nav--prev { right: -76px; }
.t4-pv__nav--next { left: -76px; }
.t4-pv__nav--prev:hover { transform: translateX(3px); }
.t4-pv__nav--next:hover { transform: translateX(-3px); }

.t4-pv__rail { display: flex; gap: 12px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.t4-pv__rail li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.t4-pv__thumb { display: flex; align-items: center; gap: 12px; width: 268px; padding: 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .05); color: #dbe4fb; font: inherit; text-align: start; cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.t4-pv__thumb:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.t4-pv__thumb.is-on { border-color: transparent; background: linear-gradient(rgba(14, 22, 48, .92), rgba(14, 22, 48, .92)) padding-box, linear-gradient(135deg, var(--pv-a), var(--pv-b)) border-box; border: 1.5px solid transparent; }
.t4-pv__thumb-img { position: relative; display: grid; place-items: center; flex: none; width: 104px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--pv-a) 70%, #0b1330), color-mix(in srgb, var(--pv-b) 55%, #0b1330)) center / cover no-repeat; }
.t4-pv__thumb-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0b1330; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.t4-pv__thumb-play svg { width: 13px; height: 13px; fill: currentColor; transform: translateX(1px); }
.t4-pv__thumb.is-on .t4-pv__thumb-play { background: linear-gradient(135deg, var(--pv-a), var(--pv-b)); color: #fff; }
.t4-pv__thumb-img time { position: absolute; bottom: 4px; left: 4px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; }
.t4-pv__thumb-text { display: grid; gap: 1px; min-width: 0; line-height: 1.6; }
.t4-pv__thumb-text small { color: #8ea0c6; font-size: 11px; font-weight: 700; }
.t4-pv__thumb-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #fff; font-size: 13px; font-weight: 800; }

@keyframes t4pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t4pv-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes t4pv-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes t4pv-spin { to { transform: rotate(360deg); } }

@media (max-width: 1290px) {
  .t4-pv__nav--prev { right: 14px; }
  .t4-pv__nav--next { left: 14px; }
}
@media (max-width: 760px) {
  .t4-pv-cta { margin-top: 18px; }
  .t4-pv-btn { gap: 12px; padding-block: 7px; }
  .t4-pv-btn__icon { width: 44px; height: 44px; }
  .t4-pv-btn__go { width: 28px; height: 28px; }
  .t4-pv__shell { width: calc(100vw - 20px); gap: 12px; }
  .t4-pv__head { gap: 10px; }
  .t4-pv__count { padding: 5px 10px; }
  .t4-pv__close { width: 40px; height: 40px; }
  .t4-pv__viewport { border-radius: 14px; }
  .t4-pv__nav { width: 42px; height: 42px; margin-top: -21px; }
  .t4-pv__nav--prev { right: 8px; }
  .t4-pv__nav--next { left: 8px; }
  .t4-pv__thumb { width: 220px; }
  .t4-pv__thumb-img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .t4-pv-btn__icon::before, .t4-pv-btn__icon::after { animation: none; opacity: 0; }
  .t4-pv-btn__sheen { display: none; }
  .t4-pv[open], .t4-pv__shell, .t4-pv.is-closing { animation: none; }
  .t4-pv__track { transition: none; }
}
[data-theme="dark"] .t4-pv-btn { --pv-bg: var(--t4-surface, #172d38); box-shadow: 0 18px 38px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03); }
[data-theme="dark"] .t4-pv-btn__sheen::before { opacity: .3; }
[data-theme="dark"] .t4-pv-btn__go { background: rgba(255, 255, 255, .07); color: #fff; }
