/* Emerald hero v2: scoped to the home-page hero, independent of audit fixes. */
.hero.hero-emerald {
  /* Match Plex Mono's character advance before the web font arrives. */
  --font-body: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  --font-display: var(--font-body);
  font-family: var(--font-body);
  isolation: isolate;
  min-height: max(720px, 100svh);
  padding: clamp(112px, 14vh, 152px) 0 clamp(64px, 9vh, 104px);
  background: #000;
}
.hero-emerald__media {
  position: absolute;
  inset: 0;
  z-index: auto;
}
.hero-emerald__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  animation: none;
  transform: none;
  background: #000;
}
.hero-emerald__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .96) 25%, rgba(0, 0, 0, .64) 45%, rgba(0, 0, 0, .08) 72%, rgba(0, 0, 0, .1) 100%);
}
.hero-emerald .hero-inner {
  z-index: 2;
  pointer-events: none;
}
.hero-emerald__copy {
  width: 46%;
  max-width: 560px;
  pointer-events: auto;
}
.hero-emerald .hero-title {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-shadow: none;
}
.hero-emerald .hero-subtitle {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  margin-bottom: 28px;
}
.hero-emerald .hero-title,
.hero-emerald .hero-title .accent,
.hero-emerald .hero-badge,
.hero-emerald .hero-subtitle,
.hero-emerald .hero-actions {
  animation: none;
  opacity: 1;
  transform: none;
}
.hero-emerald .hero-price-note {
  max-width: 100%;
  line-height: 1.6;
}
.hero-emerald .hero-actions .btn-primary {
  /* Preserve the loaded Plex button height across fallback font metrics. */
  line-height: 1.25;
}
.hero-emerald__control {
  position: absolute;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  background: rgba(0, 0, 0, .88);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.hero-emerald__control[hidden] { display: none; }
.hero-emerald__control:hover { background: #064e3b; }
.hero-emerald__control:focus-visible {
  outline: 3px solid #b8e4ff;
  outline-offset: 3px;
}
@media (max-width: 1023px) {
  .hero.hero-emerald {
    display: block;
    min-height: 100svh;
    padding: 120px 0 96px;
  }
  .hero-emerald__copy { width: 100%; max-width: 680px; }
  .hero-emerald .hero-title { font-size: clamp(36px, 6.4vw, 56px); }
  .hero-emerald .hero-subtitle { max-width: 620px; color: #c0c0c0; }
  .hero-emerald .hero-inner { margin-bottom: 0; }
  .hero-emerald__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero-emerald__video {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: 82% center;
  }
  .hero-emerald__veil {
    display: block;
    background: linear-gradient(180deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .76) 55%, rgba(0, 0, 0, .90) 100%);
  }
  .hero-emerald__control { left: 16px; right: auto; bottom: 16px; font-size: 13px; }
}
@media (max-width: 479px) {
  .hero.hero-emerald { padding-top: 108px; }
  .hero-emerald .hero-title { font-size: clamp(32px, 9vw, 40px); }
  .hero-emerald .hero-badge { font-size: 11px; padding: 8px 12px; }
  .hero-emerald .hero-actions > * { width: 100%; text-align: center; }
  .hero-emerald .hero-price-note { padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-emerald *, .hero-emerald *::before, .hero-emerald *::after {
    animation: none !important;
    transition: none !important;
  }
}
