/* Rediall marketing site: the demo section. Big serif title, the video card
   with its play pill, and the facts card. Loads after sections.css. */

#demo {
  padding-top: clamp(16px, 3vw, 40px);
}

/* one step below the hero h1, matching the closing line */
#demo .display {
  font-size: var(--fs-display-2);
  margin-bottom: clamp(48px, 6vw, 88px);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 8px;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #f6f6f6;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* contain, never crop: the poster's own grey fills any extra height */
.video-wrap video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f6f6f6;
}

/* The poster is near-white in both themes, so the pill stays light: frosted
   white with a hairline, a navy play disc and the running time. */
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px 0 6px;
  border: 0;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(0, 18, 46, 0.08),
    0 10px 30px -10px rgba(0, 18, 46, 0.35);
  color: #00122e;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition:
    background-color 250ms var(--ease),
    box-shadow 250ms var(--ease),
    scale 160ms var(--ease-out);
}

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

.video-play:active {
  scale: 0.97;
}

.video-play:focus-visible {
  outline: 2px solid var(--focus, #3e6aef);
  outline-offset: 3px;
}

.video-play-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #00122e;
  transition: transform 250ms var(--ease-out);
}

.video-play-icon::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffffff;
}

.video-play-time {
  color: #5b5f73;
  font-weight: 400;
}

@media (hover: hover) {
  .video-play:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 0 0 1px rgba(0, 18, 46, 0.1),
      0 14px 36px -10px rgba(0, 18, 46, 0.4);
  }

  .video-play:hover .video-play-icon {
    transform: scale(1.06);
  }
}

.demo-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.demo-lede {
  max-width: 24em;
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.demo-facts {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.demo-facts div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.demo-facts dt {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.demo-facts dd {
  margin: 0;
  font-size: var(--fs-body);
  letter-spacing: -0.03em;
  color: var(--ink);
}

@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
