/* ERP product page: video overview of client systems.
   Dark band picks up the video's own navy background so the player
   reads as part of the page, not an embedded rectangle. */
.erp-video {
  --ev-bg: #060d1f;
  --ev-line: rgba(160, 196, 255, 0.14);
  --ev-text: #eaf2ff;
  --ev-muted: #9fb3cf;
  --ev-accent: #c6f04a;
  --ev-blue: #3b8cff;
  position: relative;
  overflow: hidden;
  padding: 88px 0 92px;
  color: var(--ev-text);
}
html body.w27 main section#erp-video.erp-video,
html body main section#erp-video.erp-video {
  background:
    radial-gradient(60% 70% at 78% 10%, rgba(40, 92, 220, 0.38), transparent 70%),
    radial-gradient(45% 60% at 8% 100%, rgba(90, 60, 210, 0.28), transparent 70%),
    var(--ev-bg) !important;
}
.erp-video-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 34px;
}
html body .erp-video .erp-video-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9fd0ff !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.erp-video-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev-accent);
  box-shadow: 0 0 0 5px rgba(198, 240, 74, 0.14);
}
html body .erp-video h2 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: #fff !important;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
html body .erp-video h2 em {
  font-style: normal;
  color: var(--ev-accent) !important;
}
html body .erp-video .erp-video-lead {
  max-width: 700px;
  margin: 0;
  color: var(--ev-muted) !important;
  font-size: 18px;
  line-height: 1.62;
}
.erp-video-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .erp-video .erp-video-industries li {
  padding: 8px 12px;
  border: 1px solid var(--ev-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d5e3f7 !important;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.erp-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}

/* Player */
.erp-video-player {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ev-line);
  border-radius: 24px;
  overflow: hidden;
  background: #050b1a;
  box-shadow:
    0 40px 110px rgba(14, 60, 170, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.erp-video-player video,
.erp-video-player picture,
.erp-video-player picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.erp-video-player video {
  background: #050b1a;
}
.erp-video-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
}
.erp-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 9, 22, 0.72));
  pointer-events: none;
}
.erp-video-play {
  position: absolute;
  left: 50%;
  top: 83%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0d2142;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.erp-video-play b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3b8cff, #1764e8);
}
.erp-video-play b svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  fill: #fff;
}
.erp-video-play small {
  color: #5d7493;
  font-size: 13px;
  font-weight: 750;
}
.erp-video-cover:hover .erp-video-play,
.erp-video-cover:focus-visible .erp-video-play {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 22px 60px rgba(59, 140, 255, 0.45);
}
.erp-video-cover:focus-visible {
  outline: 3px solid var(--ev-accent);
  outline-offset: -3px;
}
.erp-video-player.is-started .erp-video-cover {
  display: none;
}

/* Chapters */
.erp-video-chapters {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 0;
  min-height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  padding: 16px;
  border: 1px solid var(--ev-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
}
html body .erp-video .erp-video-chapters-title {
  margin: 4px 6px 12px;
  color: #8fa6c6 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.erp-video-chapters ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.erp-video-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.erp-video-chapter:hover {
  background: rgba(255, 255, 255, 0.05);
}
.erp-video-chapter:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 1px;
}
.erp-video-chapter.is-active {
  border-color: rgba(198, 240, 74, 0.35);
  background: rgba(198, 240, 74, 0.07);
}
.erp-video-chapter-num {
  display: grid;
  place-items: center;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #b9c9de;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.erp-video-chapter.is-active .erp-video-chapter-num {
  background: var(--ev-accent);
  color: #10200a;
}
.erp-video-chapter-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.erp-video-chapter-text b {
  color: #f1f6ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.erp-video-chapter-text span {
  overflow: hidden;
  color: #8ea3c0;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-video-chapter time {
  margin-top: 2px;
  color: #7f95b4;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.erp-video-chapter-bar {
  position: absolute;
  left: 52px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
}
.erp-video-chapter.is-active .erp-video-chapter-bar {
  background: rgba(255, 255, 255, 0.08);
}
.erp-video-chapter-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ev-accent);
}
.erp-video-chapters-cta {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px 4px 2px;
  border-top: 1px solid var(--ev-line);
}
html body .erp-video .erp-video-chapters-cta p {
  margin: 0;
  color: #b8c8de !important;
  font-size: 14px;
  line-height: 1.5;
}
.erp-video-chapters-cta .v20-button {
  justify-content: center;
  width: 100%;
  text-align: center;
}
html body .erp-video .erp-video-chapters-cta .v20-button {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3b8cff, #1764e8) !important;
  color: #fff !important;
  box-shadow: 0 14px 36px rgba(31, 111, 255, 0.35) !important;
}
html body .erp-video .erp-video-chapters-cta .v20-button:hover {
  background: linear-gradient(135deg, #5a9fff, #2a74f0) !important;
}

@media (max-width: 1100px) {
  .erp-video-layout {
    grid-template-columns: 1fr;
  }
  .erp-video-chapters {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .erp-video-chapters ol {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .erp-video-chapters-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 12px;
  }
  .erp-video-chapters-cta .v20-button {
    width: auto;
  }
}
@media (max-width: 860px) {
  .erp-video-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 720px) {
  .erp-video {
    padding: 58px 0 60px;
  }
  html body .erp-video .erp-video-lead {
    font-size: 16px;
  }
  .erp-video-player {
    border-radius: 16px;
  }
  .erp-video-play {
    top: 76%;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    font-size: 14px;
  }
  .erp-video-play b {
    width: 38px;
    height: 38px;
  }
  .erp-video-play small {
    display: none;
  }
  .erp-video-chapter-text span {
    white-space: normal;
  }
  .erp-video-chapters {
    padding: 12px;
    border-radius: 18px;
  }
  .erp-video-chapters ol {
    grid-template-columns: 1fr;
  }
  .erp-video-chapters-cta {
    grid-template-columns: 1fr;
  }
  .erp-video-chapters-cta .v20-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .erp-video-play,
  .erp-video-chapter {
    transition: none;
  }
}
