html.rrh-landing {
  background-size: 100% 100dvh;
  background-repeat: no-repeat;
}
#mendy-phone-demo {
  --phone-art-height: clamp(475px, 73svh, 650px);
  box-sizing: border-box;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding: clamp(36px, 5vw, 72px) max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  color: #132c48;
  font: 16px/1.6 system-ui, sans-serif;
  background: radial-gradient(ellipse at 73% 48%, #c2ddf3, transparent 62%), linear-gradient(120deg, #fcfdff, #e6f1fa);
}
.mendy-phone-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 64px);
  width: min(100%, 1144px);
  margin-inline: auto;
}
.mendy-phone-visual {
  position: relative;
  height: var(--phone-art-height);
  pointer-events: none;
}
#mendy-phone-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms linear;
}
.mendy-phone-poster {
  position: absolute;
  left: 50%;
  top: 48.8%;
  width: auto;
  height: 91.4%;
  max-width: 86%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 160ms linear;
}
.phone-rendered #mendy-phone-stage { opacity: 1; }
.phone-rendered .mendy-phone-poster { opacity: 0; }
.mendy-phone-copy { max-width: 540px; }
.mendy-phone-copy h2 {
  font-size: clamp(43px, 5.3vw, 82px);
  letter-spacing: -.065em;
  line-height: 1.03;
  font-weight: 550;
  margin: 15px 0 24px;
}
.mendy-phone-copy h2 strong { font-weight: inherit; color: #1559d5; }
.mendy-phone-copy p { max-width: 340px; color: #3f5872; margin: 0; }
.mendy-phone-eyebrow { font-size: 13px; color: #1556b5; font-weight: 650; }
.mendy-phone-display {
  position: relative;
  padding-bottom: 49px;
}
.mendy-phone-replay {
  position: absolute;
  right: 0;
  bottom: 0;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  color: #183c70;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid #a8c4dc;
  background: #fff;
  cursor: pointer;
}
.mendy-phone-replay:focus-visible, .mendy-phone-links :is(summary, a):focus-visible {
  outline: 3px solid #266ae9;
  outline-offset: 3px;
}
.mendy-phone-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 16px;
  margin-top: 16px;
  color: #183c70;
  font-size: 14px;
}
.mendy-phone-links summary { min-height: 44px; cursor: pointer; max-width: max-content; padding: 9px 0; }
.mendy-phone-links a { display: inline-flex; align-items: center; min-height: 44px; color: #1451b9; text-underline-offset: 3px; }
.mendy-phone-transcript {
  padding: 12px 14px;
  max-height: 185px;
  overflow: auto;
  overscroll-behavior: contain;
  max-width: 360px;
  border: 1px solid #cedeef;
  border-radius: 12px;
  background: #fff;
}
.mendy-phone-transcript p { margin-bottom: 8px; }
.mendy-phone-transcript p:last-child { margin-bottom: 0; }

@media (min-width: 761px) {
  .mendy-phone-layout { position: relative; }
  .mendy-phone-display {
    position: static;
    box-sizing: border-box;
    min-height: calc(var(--phone-art-height) + 49px);
  }
  .mendy-phone-visual { position: absolute; inset: 0 0 auto; }
  .mendy-phone-poster { left: 75%; }
  .phone-enhanced .mendy-phone-poster { left: calc(26.5% + var(--phone-art-height) * .038); }
  .mendy-phone-copy { position: relative; z-index: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-enhanced .mendy-phone-copy {
    transition: opacity .55s, transform .8s cubic-bezier(.2,.75,.25,1);
  }
  .phone-enhanced:not(.phone-copy-ready) .mendy-phone-copy {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-28px);
  }
}

@media (max-width: 760px) {
  #mendy-phone-demo {
    --phone-art-height: clamp(378px, 112vw, 465px);
    min-height: 0;
    padding-block: 42px 30px;
  }
  .mendy-phone-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(100%, 455px); }
  .mendy-phone-copy h2 { font-size: clamp(40px, 9vw, 56px); margin: 8px 0 12px; }
  .mendy-phone-copy p { font-size: 15px; }
  .mendy-phone-display { display: contents; }
  .mendy-phone-visual { order: -1; }
  .phone-enhanced .mendy-phone-poster { left: calc(39.8% + var(--phone-art-height) * .038); }
  .mendy-phone-replay { position: static; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  #mendy-phone-stage, .mendy-phone-poster { transition: none; }
  .mendy-phone-display { padding-bottom: 0; }
  .mendy-phone-replay { display: none; }
}
