/* Valtyn — demo video page (/demo) and the homepage teaser that links to it.
   Loaded after valtyn-main.css and valtyn-editorial.css, so it inherits the
   editorial tokens (--navy, --accent, --off-white, --radius ...) and only adds
   the few blocks those two files do not already describe. */

/* ---- Homepage teaser band ------------------------------------------------ */
/* Sits between "So funktioniert's" (off-white) and the navy interactive demo
   band, and borrows the same label / title / button rhythm as .demo-section. */
.video-cta {
  background: #fff;
  padding: 78px 40px;
}

.video-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  column-gap: 50px;
  align-items: center;
}

.video-cta .section-label,
.video-cta .section-title {
  grid-column: 1;
  margin-left: 0;
  margin-right: 0;
}

.video-cta .section-title {
  font-size: 36px;
  margin-bottom: 18px;
}

.video-cta-text {
  grid-column: 1;
  max-width: 670px;
  margin: 0;
  font-size: 16px;
  color: var(--gray-700);
}

.video-cta .btn {
  grid-column: 2;
  grid-row: 1 / 4;
  justify-self: end;
}

/* ---- Demo page: intro --------------------------------------------------- */
.demo-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.demo-page-intro {
  background: #fff;
  padding: 150px 40px 0;
}

.demo-page-intro h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.14;
  max-width: 880px;
  margin: 0 0 22px;
  color: var(--navy);
}

.demo-page-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 740px;
  margin: 0;
}

/* ---- Demo page: video -------------------------------------------------- */
.demo-video-section {
  background: #fff;
  padding: 44px 40px 86px;
}

/* The frame keeps the page height stable before the poster arrives and gives
   the player the same quiet border treatment as the inbox and pricing cards.
   Change aspect-ratio here if the recording is not 16:9. */
.demo-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid #bbcbd5;
  border-radius: var(--radius-lg, 6px);
  box-shadow: var(--shadow-lg);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--navy);
}

/* Play overlay. js/valtyn-demo.js creates it, so with JavaScript disabled the
   native player is left untouched instead of sitting behind a dead button.
   The button covers the whole frame — the entire poster is clickable — and its
   circle is centred on, and a little larger than, the one printed on the
   poster, so the two read as one control. */
.demo-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.demo-video-play[hidden] {
  display: none;
}

/* The symbol printed on the poster measures about 8.9% of the frame width and
   sits at 50.2% / 49.3% — not quite dead centre. The circle is placed on those
   coordinates and kept a little larger, so it covers the printed one at every
   width instead of leaving a ring around it. */
.demo-video-play-circle {
  position: absolute;
  left: 50.2%;
  top: 49.3%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 12%, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #182e41e8;
  border: 1px solid #ffffff4d;
  color: #fff;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.demo-video-play:hover .demo-video-play-circle {
  background: var(--accent);
  border-color: #ffffff80;
}

.demo-video-play:active .demo-video-play-circle {
  transform: translate(-50%, -50%) scale(0.96);
}

.demo-video-play:focus-visible {
  outline: 3px solid #397b9f;
  outline-offset: -6px;
}

.demo-video-play svg {
  width: 36%;
  height: 36%;
}

.demo-video-fallback {
  padding: 28px;
  color: #d4e2e9;
  font-size: 15px;
}

.demo-video-fallback a {
  color: #fff;
}

.demo-video-caption {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- Demo page: benefits ------------------------------------------------ */
.demo-benefits {
  background: var(--off-white);
  border-top: 1px solid #dbe3e8;
  padding: 86px 40px;
}

.demo-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #cbd5dc;
  margin-top: 44px;
}

.demo-benefit {
  padding: 32px 34px 32px 0;
  border-bottom: 1px solid #dbe3e8;
}

.demo-benefit:nth-child(even) {
  border-left: 1px solid #d5dfe5;
  padding-left: 34px;
}

.demo-benefit-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
}

.demo-benefit h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
  color: var(--navy);
}

.demo-benefit p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* ---- Demo page: closing call to action --------------------------------- */
/* The footer is navy too, so a hairline keeps the two blocks distinguishable. */
.demo-cta {
  background: var(--navy);
  color: #fff;
  padding: 78px 40px;
  border-bottom: 1px solid #2c4357;
}

.demo-cta .section-label {
  color: #b3ccd9;
}

.demo-cta .section-title {
  color: #fff;
  font-size: 36px;
  margin: 0 0 18px;
  max-width: 820px;
}

.demo-cta-text {
  color: #c8d7e0;
  font-size: 16px;
  max-width: 670px;
  margin: 0 0 32px;
}

.demo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.demo-cta .btn-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.demo-cta .btn-primary:hover {
  background: #d8e5ec;
  border-color: #d8e5ec;
}

.demo-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #6c8ba1;
}

.demo-cta .btn-secondary:hover {
  background: #21394c;
  border-color: #d8e5ec;
  color: #fff;
}

.demo-cta-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: #a9bfcd;
}

.demo-cta-note a {
  color: #dbe8ef;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
  .video-cta,
  .demo-video-section,
  .demo-benefits,
  .demo-cta {
    padding-left: 28px;
    padding-right: 28px;
  }

  .video-cta {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .demo-page-intro {
    padding: 128px 28px 0;
  }

  .demo-benefits,
  .demo-cta {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .demo-video-section {
    padding-top: 36px;
    padding-bottom: 65px;
  }
}

@media (max-width: 760px) {
  .video-cta-inner {
    display: block;
  }

  .video-cta .section-title,
  .demo-cta .section-title {
    font-size: 30px;
  }

  .video-cta .btn {
    margin-top: 26px;
  }

  .demo-page-intro h1 {
    letter-spacing: -1.1px;
  }

  .demo-page-sub {
    font-size: 17px;
  }

  .demo-benefits-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .demo-benefit,
  .demo-benefit:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }

  .demo-benefit-index {
    margin-bottom: 13px;
  }
}

@media (max-width: 440px) {
  .video-cta,
  .demo-video-section,
  .demo-benefits,
  .demo-cta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .video-cta {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .demo-page-intro {
    padding: 112px 22px 0;
  }

  .demo-video-section {
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .demo-benefits,
  .demo-cta {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .video-cta .btn,
  .demo-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
