/* Photo-led homepage hero: content changes, primary actions stay in place. */
.hero.hero-photo.hero-slider {
  background-color: #edf5fa;
  background-image: none;
}
.hero-slider-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-slide-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image-desktop, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide-image.is-active { opacity: 1; }
.hero-slider-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 25%, rgba(255,255,255,.68) 43%, rgba(255,255,255,.1) 66%, transparent 78%);
}
.hero.hero-photo.hero-slider .hero-grid { position: relative; z-index: 1; }
.hero.hero-photo.hero-slider .hero-copy { width: min(640px, 58%); }
.hero-slide-copy {
  min-height: 398px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
.hero-slide-copy.is-changing { opacity: 0; transform: translateY(8px); }
.hero.hero-photo.hero-slider h1 { max-width: 535px; font-size: clamp(42px, 3.5vw, 56px); }
.hero.hero-photo.hero-slider .hero-sub { margin-top: 19px; }
.hero.hero-photo.hero-slider .hero-description { margin-top: 12px; }
.hero.hero-photo.hero-slider .actions { margin-top: 20px; }
.hero.hero-photo.hero-slider .hero-play-badge { margin-top: 13px; }
.hero-play-mobile { display: none; }
.hero-slider-nav {
  display: none;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
}
.hero-slider.is-ready .hero-slider-nav { display: flex; }
.hero-slider-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1269ae;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible { background: #e7f3fc; color: #074c8b; }
.hero-slider-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-slider-count { min-width: 40px; color: #0e416b; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-slider-count span { color: #7d9bb0; font-weight: 650; }
.hero-slider-arrow, .hero-slider-count { display: none; }
.hero-slider-dots { display: flex; align-items: center; }
.hero-slider-dots button {
  display: grid;
  width: 24px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.hero-slider-dots button::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #97bad2;
  box-shadow: 0 1px 3px rgba(255,255,255,.7);
  transition: width .24s ease, background .24s ease;
}
.hero-slider-dots button[aria-current="true"]::before { width: 21px; background: #0875d0; }
.hero-slider-dots button:focus-visible,
.hero-slider-arrow:focus-visible { outline: 3px solid #75bff0; outline-offset: 3px; }
.hero-slider-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1020px) {
  .hero.hero-photo.hero-slider .hero-copy { width: min(590px, 68%); }
  .hero-slide-image { background-position: 60% center; }
  .hero-slider-media::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 36%, rgba(255,255,255,.45) 68%, transparent 88%); }
  .hero.hero-photo.hero-slider h1 { font-size: clamp(40px, 5vw, 50px); }
}

@media (max-width: 680px) {
  .hero.hero-photo.hero-slider { min-height: 730px; }
  .hero-slider-media { inset: 0; height: auto; }
  .hero-slide-image { background-image: var(--hero-image-mobile, none); background-position: center; transform: none; }
  .hero-slider-media::after {
    background:
      linear-gradient(90deg, rgba(248,252,255,.96), rgba(248,252,255,.81) 55%, rgba(248,252,255,.32)),
      linear-gradient(180deg, rgba(248,252,255,.07), rgba(248,252,255,.1) 58%, rgba(248,252,255,.35));
  }
  .hero.hero-photo.hero-slider .hero-grid { align-items: flex-start; }
  .hero.hero-photo.hero-slider .hero-copy { width: 100%; padding: 42px 0 46px; text-align: left; }
  .hero-slide-copy { min-height: 280px; }
  .hero.hero-photo.hero-slider h1 { max-width: 440px; margin: 0; font-size: clamp(32px, 9vw, 40px); }
  .hero.hero-photo.hero-slider .hero-sub { margin: 15px 0 0; }
  .hero.hero-photo.hero-slider .hero-description { margin: 10px 0 0; }
  .hero.hero-photo.hero-slider .actions { margin: 16px 0 0; }
  .hero.hero-photo.hero-slider .hero-play-badge {
    display: inline-flex;
    width: min(100%, 390px);
    min-height: 72px;
    align-items: center;
    margin-top: 12px;
    padding: 8px 12px 8px 9px;
    border: 1px solid rgba(168, 204, 230, .95);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(255, 255, 255, .98), rgba(239, 248, 255, .94));
    box-shadow: 0 14px 32px rgba(8, 57, 96, .13), inset 0 1px 0 #fff;
    backdrop-filter: blur(12px);
    color: #0b406b;
    text-decoration: none;
  }
  .hero.hero-photo.hero-slider .hero-play-badge img { display: none; }
  .hero-play-mobile { display: flex; width: 100%; align-items: center; gap: 12px; }
  .hero-play-mobile-icon { display: grid; width: 54px; height: 54px; flex: none; place-items: center; border: 1px solid #e6eef5; border-radius: 13px; background: #fff; box-shadow: 0 3px 9px rgba(5, 40, 74, .06); }
  .hero-play-mobile-icon svg { width: 29px; height: 33px; }
  .hero-play-mobile-copy { display: grid; gap: 4px; min-width: 0; line-height: 1.2; }
  .hero-play-mobile-copy small { color: #62829c; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
  .hero-play-mobile-copy strong { color: #0a416d; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
  .hero-play-mobile-arrow { display: grid; width: 34px; height: 34px; margin-left: auto; flex: none; place-items: center; border-radius: 50%; background: #0876cf; color: #fff; }
  .hero-play-mobile-arrow svg { width: 17px; height: 17px; }
  .hero-slider-nav { margin: 15px 0 0; }
}

@media (max-width: 380px) {
  .hero.hero-photo.hero-slider { min-height: 780px; }
  .hero-slide-copy { min-height: 315px; }
  .hero-play-mobile { gap: 9px; }
  .hero-play-mobile-icon { width: 48px; height: 48px; }
  .hero-play-mobile-copy strong { font-size: 13px; }
  .hero-play-mobile-arrow { width: 32px; height: 32px; }
}

@media (max-width: 370px) {
  .landing-professional-type #rl-demo-widget { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .landing-professional-type #rl-demo-widget .rl-demo-launcher { width: 52px; min-height: 52px; gap: 0; padding: 5px; }
  .landing-professional-type #rl-demo-widget .rl-demo-launcher-icon { width: 40px; height: 40px; }
  .landing-professional-type #rl-demo-widget .rl-demo-launcher-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .landing-professional-type #rl-demo-widget .rl-demo-launcher-arrow { display: none; }
}

.hero-store-badges { display: flex; align-items: center; gap: 14px; margin-top: 13px; max-width: 430px; }
.hero.hero-photo.hero-slider .hero-store-badges .hero-play-badge { display: block; flex: 0 1 200px; width: 200px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; backdrop-filter: none; }
.hero.hero-photo.hero-slider .hero-store-badges .hero-play-badge img { display: block; width: 100%; height: auto; }
.hero-store-badges .hero-play-mobile { display: none; }
.hero-microsoft-badge { display: block; flex: 0 1 200px; min-width: 0; border-radius: 6px; transition: transform .18s, filter .18s; }
.hero-microsoft-badge img { display: block; width: 100%; height: auto; }
.hero-microsoft-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 12px rgba(5,43,80,.16)); }
.hero-microsoft-badge:focus-visible { outline: 3px solid #0879d7; outline-offset: 3px; }
@media (max-width: 680px) {
  .hero-store-badges { width: 100%; max-width: 390px; gap: 10px; margin-top: 12px; }
  .hero.hero-photo.hero-slider .hero-store-badges .hero-play-badge { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-image, .hero-slide-copy, .hero-slider-arrow, .hero-slider-dots button { transition: none; }
}
