/* Opsfield demo video: centred, responsive, self-hosted player. */
#demo {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 64px 0;
  background: #ffffff;
  scroll-margin-top: 100px;
}

#demo > .wrap {
  display: block;
  width: calc(100% - 48px);
  max-width: 1040px;
  min-width: 0;
  margin: 0 auto;
}

#demo .demo-intro {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

#demo .demo-intro .eyebrow { justify-content: center; }
#demo .demo-intro h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
#demo .demo-intro p { max-width: 700px; margin-inline: auto; font-size: 1rem; line-height: 1.7; color: #66717a; }

#demo .demo-frame {
  display: block;
  position: relative;
  width: 100%;
  max-width: 880px;
  max-width: min(880px, 110svh);
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(25, 33, 42, 0.15);
  border-radius: 14px;
  background: #19212A;
  box-shadow: 0 12px 32px rgba(25, 33, 42, 0.09);
}

#demo .demo-frame video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #19212A;
}

#demo .demo-note {
  margin: 18px auto 0;
  color: #5f686f;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

#demo .demo-direct-link {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

#demo .demo-direct-link a {
  color: #365b5c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#demo .demo-offer {
  line-height: 1.6;
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 600px) {
  #demo { padding: 56px 0; }
  #demo > .wrap { width: calc(100% - 32px); }
  #demo .demo-frame { border-radius: 8px; }
}
