/* Hospitality Hero Gate V1 — isolated presentation layer over RC18 Guest Hub. */
.hero-gate {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding:
    max(24px, env(safe-area-inset-top))
    22px
    max(24px, env(safe-area-inset-bottom));
  color: #fff;
  background: #000;
  text-align: left;
}

.hero-gate::before,
.hero-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gate::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.03) 38%, rgba(0,0,0,.56) 100%);
}

.hero-gate::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.22) 100%);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-slideshow.hero-video-autoplay-blocked {
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(180deg, #232323 0%, #111 58%, #080808 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
  opacity: 0;
  transition: opacity 260ms ease;
  will-change: opacity;
  pointer-events: none;
}

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

/* Do not expose a paused iOS video just because it decoded.
   Safari can show a native play button when autoplay is blocked (for example
   in Low Power Mode). The hero becomes visible only after the playing event. */
.hero-video.is-ready:not([hidden]) {
  opacity: 1;
}

.hero-media-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.hero-gate.hero-media-loading .hero-media-loader {
  opacity: 1;
  visibility: visible;
}

.hero-loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  opacity: .28;
  transform: scale(.82);
  animation: heroLoaderPulse 1.05s ease-in-out infinite;
}

.hero-loader-dot:nth-child(2) { animation-delay: 140ms; }
.hero-loader-dot:nth-child(3) { animation-delay: 280ms; }

@keyframes heroLoaderPulse {
  0%, 72%, 100% { opacity: .24; transform: scale(.82); }
  36% { opacity: 1; transform: scale(1); }
}

.hero-gate.hero-media-loading .hero-slide.is-active {
  opacity: 0;
}

.hero-gate.hero-media-loading .hero-gate-actions,
.hero-gate.hero-media-ready .hero-gate-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-loader-dot {
    animation: none;
    opacity: .72;
    transform: none;
  }
  .hero-video,
  .hero-media-loader,
  .hero-gate-actions {
    transition: none !important;
  }
}

.hero-slide {
  position: absolute;
  inset: -4%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 450ms ease;
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide.motion-zoom-in { animation: heroZoomIn 3.6s ease-out both; }
.hero-slide.motion-zoom-out { animation: heroZoomOut 3.6s ease-out both; }
.hero-slide.motion-pan-left { animation: heroPanLeft 3.6s ease-out both; }
.hero-slide.motion-pan-right { animation: heroPanRight 3.6s ease-out both; }
.hero-slide.motion-pan-up { animation: heroPanUp 3.6s ease-out both; }
.hero-slide.motion-pan-down { animation: heroPanDown 3.6s ease-out both; }
.hero-slide.motion-drift { animation: heroDrift 3.6s ease-out both; }

@keyframes heroZoomIn {
  from { transform: scale(1.02); }
  to { transform: scale(1.18); }
}
@keyframes heroZoomOut {
  from { transform: scale(1.19); }
  to { transform: scale(1.03); }
}
@keyframes heroPanLeft {
  from { transform: scale(1.12) translateX(5%); }
  to { transform: scale(1.12) translateX(-5%); }
}
@keyframes heroPanRight {
  from { transform: scale(1.12) translateX(-5%); }
  to { transform: scale(1.12) translateX(5%); }
}
@keyframes heroPanUp {
  from { transform: scale(1.12) translateY(5%); }
  to { transform: scale(1.12) translateY(-5%); }
}
@keyframes heroPanDown {
  from { transform: scale(1.12) translateY(-5%); }
  to { transform: scale(1.12) translateY(5%); }
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate(-2%, 2%); }
  to { transform: scale(1.16) translate(3%, -2%); }
}

.hero-gate-brand,
.hero-gate-actions {
  position: relative;
  z-index: 2;
}

.hero-gate-brand {
  display: none;
}

.hero-gate-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
}

.hero-gate-logo-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: #171717;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.hero-gate .hero-gate-name {
  margin: 0;
  max-width: calc(100vw - 118px);
  color: #fff;
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
  text-shadow: 0 4px 22px rgba(0,0,0,.28);
}

.hero-gate-actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 44px), 520px);
  margin: 0;
  display: grid;
  gap: 10px;
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.hero-gate-button {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 0 24px;
  font: inherit;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.02em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-gate-button.primary {
  border-color: #fff;
  background: #fff;
  color: #141414;
  box-shadow: 0 14px 36px rgba(0,0,0,.19);
}

.hero-explore-button {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  text-align: center;
  line-height: 1.1;
}

.hero-explore-title,
.hero-explore-copy {
  display: block;
  width: 100%;
  text-align: center;
}

.hero-explore-title {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.015em;
}

.hero-explore-copy {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: -.005em;
  opacity: .68;
}

.hero-gate-button.secondary {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-gate-button.scanner {
  min-height: 50px;
  border-color: transparent;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.hero-gate-button.scanner .scan-icon {
  display: inline-block;
  margin-right: 9px;
  font-size: 17px;
  transform: translateY(1px);
}

.hero-sheet-backdrop {
  position: fixed;
  z-index: 160;
  inset: 0;
  background: rgba(0,0,0,.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-sheet {
  position: fixed;
  z-index: 161;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 680px);
  max-height: 92svh;
  overflow-y: auto;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  background: #fbfaf7;
  color: #171717;
  box-shadow: 0 -24px 70px rgba(0,0,0,.24);
}

.hero-sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #d8d5cf;
}

.hero-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-sheet-head h2 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  letter-spacing: -.045em;
}

.hero-sheet-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #efede8;
  color: #1d1d1d;
  font: inherit;
  font-size: 25px;
}

.hero-wifi-methods {
  display: grid;
  gap: 10px;
}

.hero-wifi-method {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #e5e1da;
  border-radius: 22px;
  padding: 13px 14px;
  background: #fff;
  color: #171717;
  text-align: left;
  font: inherit;
}

.hero-wifi-method-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #f4f1ec;
  font-size: 25px;
}

.hero-wifi-method-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hero-wifi-method-copy strong {
  font-size: 16px;
}

.hero-wifi-method-copy small {
  color: #74706a;
  font-size: 12px;
  line-height: 1.35;
}

.hero-wifi-method-price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.hero-wifi-empty {
  padding: 18px;
  border-radius: 20px;
  background: #f3f1ed;
  color: #69645e;
  line-height: 1.45;
}

.hero-scanner-stage {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 24px;
  background: #111;
}

.hero-scanner-video {
  width: 100%;
  height: min(62svh, 520px);
  min-height: 330px;
  display: block;
  object-fit: cover;
}

.hero-scanner-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 28px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.20);
}

.hero-scanner-message {
  margin: 12px 4px 4px;
  color: #6f6a64;
  font-size: 13px;
  line-height: 1.45;
}

.hero-scanner-fallback {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hero-scanner-fallback input[type="text"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ded9d1;
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.hero-scanner-fallback button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #171717;
  color: #fff;
  font: inherit;
  font-weight: 750;
}

@media (min-width: 680px) {
  .hero-gate {
    width: min(100%, 760px);
    margin: 0 auto;
    border-radius: 0 0 46px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gate-media {
    display: none !important;
  }
}


.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-pay-screen {
  position: fixed;
  z-index: 180;
  inset: 0;
  height: 100svh;
  overflow: hidden;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    max(12px, env(safe-area-inset-bottom));
  background: #1b1b1b;
  color: #fff;
  overscroll-behavior: none;
}

.hero-pay-topbar {
  width: min(100%, 620px);
  height: clamp(44px, 7svh, 52px);
  margin: 0 auto clamp(8px, 1.5svh, 14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-pay-back,
.hero-pay-close {
  width: clamp(42px, 6svh, 50px);
  height: clamp(42px, 6svh, 50px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #8f8f8f;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 34px;
  line-height: 1;
}

.hero-pay-close {
  border-color: transparent;
  background: rgba(255,255,255,.08);
  font-size: 29px;
}

.hero-pay-content {
  width: min(100%, 620px);
  height: calc(100svh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)) - clamp(60px, 9svh, 74px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  align-content: space-between;
  gap: clamp(7px, 1.15svh, 12px);
}

.hero-pay-choice {
  min-height: clamp(126px, 20svh, 170px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  margin: 0;
  padding: clamp(12px, 2svh, 18px);
  border: 3px solid #9e9e9e;
  border-radius: 28px;
  text-align: center;
}

.hero-pay-choice small {
  font-size: clamp(14px, 2.1svh, 17px);
  font-weight: 750;
}

.hero-pay-choice strong {
  display: block;
  font-size: clamp(38px, 11vw, 56px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-pay-choice span {
  margin-top: 4px;
  font-size: clamp(16px, 2.5svh, 20px);
  font-weight: 650;
}

.hero-pay-networks {
  text-align: center;
  margin: 0;
}

.hero-pay-networks h2 {
  margin: 0 0 clamp(8px, 1.2svh, 12px);
  font-size: clamp(21px, 5.5vw, 30px);
}

.hero-pay-network-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-pay-network {
  min-height: clamp(50px, 7.5svh, 62px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 6px 4px;
  color: #fff;
  font-size: clamp(10px, 2.7vw, 13px);
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.hero-pay-network.airtel { background: #e1261c; }
.hero-pay-network.mixx { background: #213f88; color: #f2d84b; }
.hero-pay-network.mpesa { background: #df241e; }
.hero-pay-network.halo { background: #d7673f; }

.hero-pay-phone {
  min-height: clamp(54px, 7.5svh, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 4px solid #f3f1ec;
  border-radius: 999px;
  padding: 0 18px;
  margin: 0;
}

.hero-pay-phone input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 650;
}

.hero-pay-phone input::placeholder {
  color: #9d9d9d;
  opacity: 1;
}

.hero-pay-phone > span:last-child {
  color: #d7d7d7;
  font-size: 24px;
}

.hero-pay-help {
  margin: 0 auto;
  max-width: 560px;
  color: #f4f4f4;
  font-size: clamp(12px, 3.1vw, 15px);
  line-height: 1.38;
  text-align: center;
}

.hero-pay-terms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px;
  color: #d7d7d7;
  font-size: clamp(12px, 3.1vw, 15px);
}

.hero-pay-terms input {
  width: clamp(24px, 4.5svh, 30px);
  height: clamp(24px, 4.5svh, 30px);
  flex: 0 0 clamp(24px, 4.5svh, 30px);
  accent-color: #f3f1ec;
}

.hero-pay-terms strong {
  color: #fff;
}

.hero-pay-submit {
  width: 100%;
  min-height: clamp(54px, 7.5svh, 64px);
  border: 0;
  border-radius: 999px;
  background: #f3f1ec;
  color: #65635d;
  font: inherit;
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 850;
}

.hero-pay-submit:disabled {
  opacity: .52;
}

.hero-pay-message {
  min-height: 22px;
  margin: 12px 10px 0;
  text-align: center;
  color: #d0cdc6;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 390px) {
  .hero-pay-choice {
    min-height: 172px;
    border-width: 4px;
  }

  .hero-pay-network {
    min-height: 60px;
    font-size: 11px;
  }

  .hero-pay-help {
    font-size: 15px;
  }
}

@media (max-height: 760px) {
  .hero-gate {
    padding:
      max(14px, env(safe-area-inset-top))
      16px
      max(14px, env(safe-area-inset-bottom));
  }

  .hero-gate-brand {
    gap: 10px;
  }

  .hero-gate-logo,
  .hero-gate-logo-fallback {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .hero-gate .hero-gate-name {
    font-size: clamp(22px, 6vw, 30px);
    max-width: calc(100vw - 92px);
  }

  .hero-gate-actions {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(calc(100% - 32px), 520px);
    gap: 8px;
  }

  .hero-gate-button {
    min-height: 54px;
    font-size: 16px;
  }

  .hero-gate-button.scanner {
    min-height: 42px;
    font-size: 14px;
  }

  .hero-pay-message {
    min-height: 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    transform: none !important;
  }
}
