/* Photo 1 composition: one complete first screen at every aspect ratio.
   Height is a minimum so browser zoom and larger text never hide the CTA. */
body.landing-b.has-site-navigation > .evareo-site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  position: absolute;
  inset: 0 0 auto;
  min-height: 76px !important;
  padding: calc(16px + env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 12px !important;
  background: transparent;
  border: 0;
}

body.landing-b.has-site-navigation > .evareo-site-header > .mobile-nav-open {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

/* Shared mobile navigation already uses a grid. An absolutely positioned
   brand would resolve its offset against that grid area, not the viewport. */
body.landing-b.has-site-navigation > .evareo-site-header > .evareo-site-brand {
  position: static;
  inset: auto;
  transform: none;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

body.landing-b.has-site-navigation > .evareo-site-header > .evareo-site-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.landing-b .b-hero {
  --hero-top: calc(clamp(96px, 13.7svh, 142px) + env(safe-area-inset-top));
  /* Permanent space below the CTA: consent visibility never changes its position. */
  --hero-bottom: calc(clamp(210px, 25svh, 270px) - 56px + env(safe-area-inset-bottom));
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--hero-top) 0 var(--hero-bottom);
  background: #082d31;
}

.landing-b .b-hero::before {
  background: linear-gradient(180deg, #032b32a6 0%, #102d4040 30%, transparent 52%, #001c1859 75%, #001914eb 100%);
}

.landing-b .b-hero::after { display: none; }

.landing-b .b-hero-picture {
  background: var(--hero-wide) 50% 57% / cover no-repeat;
}
@media (max-aspect-ratio: 1/1) {
  .landing-b .b-hero-picture { background-image: var(--hero-portrait); }
}
.landing-b .b-hero-picture img {
  object-fit: cover;
  object-position: 50% 57%;
}

.landing-b .b-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(96px, 1fr) auto;
  width: calc(100% - clamp(48px, 18vw, 160px));
  max-width: 1440px;
  min-height: calc(100vh - var(--hero-top) - var(--hero-bottom));
  min-height: calc(100svh - var(--hero-top) - var(--hero-bottom));
  margin-inline: auto;
  padding: 0;
}

.landing-b .b-hero-copy { grid-row: 1; max-width: 560px; }
.landing-b .b-badge {
  margin-bottom: clamp(16px, 2.5svh, 28px) !important;
  font-size: clamp(8px, 2.2vw, 11px);
  letter-spacing: .95px;
  color: #f5f7f4;
}
.landing-b .b-badge span {
  width: 7px;
  height: 7px;
  background: #a8ff8b;
  box-shadow: 0 0 0 4px #27be7770;
}
.landing-b .b-hero h1 {
  max-width: none;
  font-size: clamp(36px, 11.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: initial;
}
.landing-b .b-hero h1 > span { display: block; }
.landing-b .b-hero h1 > br { display: none; }
.landing-b .b-hero h1 em {
  display: block;
  margin-top: 3px;
  color: #d2ff79;
  font-size: inherit;
  line-height: inherit;
}
.landing-b .b-intro {
  max-width: 470px;
  margin-top: clamp(16px, 2.5svh, 25px) !important;
  font-size: clamp(13px, 3.55vw, 19px);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 12px #061e3266;
}
.landing-b .b-hero-action {
  position: relative;
  grid-row: 3;
  justify-self: center;
  width: min(92%, 446px);
  text-align: center;
}
.landing-b .b-primary {
  display: flex;
  width: 100%;
  min-height: clamp(50px, 6.5svh, 64px);
  margin: 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: #d2ff79;
  color: #0a302a !important;
  font-size: clamp(17px, 5vw, 21px);
  font-weight: 800;
  box-shadow: 0 5px 28px #00191438;
}
.landing-b .b-caption {
  margin-top: 12px !important;
  color: #fff;
  font-size: clamp(11px, 3.3vw, 14px);
  line-height: 1.5;
  letter-spacing: -.15px;
}
.landing-b .b-hero .b-primary:focus-visible { outline-color: white; }
.landing-b .b-primary,
.landing-b .b-primary:hover {
  transform: none;
  animation: none;
  transition: background .2s;
}
.landing-b .b-benefits { margin-top: 24px; }

@media (min-aspect-ratio: 10001/10000) {
  .landing-b .b-hero { --hero-top: calc(106px + env(safe-area-inset-top)); }
  .landing-b .b-hero::before {
    background: linear-gradient(90deg, #082c3a99 0%, transparent 65%), linear-gradient(180deg, #032b3299 0%, #102d4020 38%, transparent 55%, #001914e8 100%);
  }
  .landing-b .b-hero h1 { font-size: clamp(38px, 7.6svh, 82px); }
  .landing-b .b-hero-picture img { object-position: 54% 55%; }
  .landing-b .b-intro { max-width: 470px; font-size: clamp(14px, 2.15svh, 19px); }
  .landing-b .b-hero-copy { max-width: 570px; }
}

/* Short displays keep the same top / scenery / bottom composition. */
@media (max-height: 650px) {
  body.landing-b.has-site-navigation > .evareo-site-header {
    min-height: 60px !important;
    padding-top: calc(10px + env(safe-area-inset-top)) !important;
  }
  .landing-b .b-hero { --hero-top: calc(78px + env(safe-area-inset-top)); }
  .landing-b .b-hero h1 { font-size: clamp(27px, 7.5svh, 44px); }
  .landing-b .b-badge { margin-bottom: 12px !important; font-size: 8px; }
  .landing-b .b-intro { max-width: 400px; margin-top: 12px !important; font-size: 13px; }
  .landing-b .b-hero-inner { grid-template-rows: auto minmax(35px, 1fr) auto; }
  .landing-b .b-primary { min-height: 46px; font-size: 16px; }
  .landing-b .b-caption { margin-top: 8px !important; font-size: 11px; }
}

@media (max-height: 440px) and (min-aspect-ratio: 10001/10000) {
  .landing-b .b-hero { --hero-top: calc(68px + env(safe-area-inset-top)); }
  .landing-b .b-hero h1 { font-size: 24px; line-height: 1; }
  .landing-b .b-badge { margin-bottom: 8px !important; }
  .landing-b .b-hero-inner { grid-template-rows: auto minmax(12px, 1fr) auto; }
  .landing-b .b-hero-copy { max-width: 420px; }
  .landing-b .b-intro { max-width: 420px; margin-top: 8px !important; font-size: 12px; }
  .landing-b .b-hero-action { width: min(100%, 350px); }
  .landing-b .b-primary { min-height: 44px; padding-block: 8px; }
}

/* Booking platforms in the first screen. Both copies have the same width,
   so translating by half the track keeps the loop continuous. */
.landing-b .b-hero-platforms {
  position: absolute;
  inset: calc(100% + 14px) 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.landing-b .b-hero-platform-window { flex: 1; min-width: 0; }

.landing-b .b-hero-platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-b .b-hero-platform-list[aria-hidden] { display: none; }

.landing-b .b-hero-platform-list li {
  display: grid;
  place-items: center;
}

.landing-b .b-hero-platform-list .rv-provider-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-b .b-hero-platform-window {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 9px, #000 calc(100% - 9px), transparent);
  }

  .landing-b .b-hero-platform-track {
    display: flex;
    width: max-content;
    animation: b-hero-platform-scroll 16s linear infinite;
  }

  .landing-b .b-hero-platform-list {
    flex-wrap: nowrap;
    padding-inline: 4px;
    gap: 8px;
  }

  .landing-b .b-hero-platform-list li { width: 68px; }

  .landing-b .b-hero-platform-list[aria-hidden] { display: flex; }

  .landing-b .b-hero-platforms:focus-within .b-hero-platform-track { animation-play-state: paused; }
}

@media (hover: hover) {
  .landing-b .b-hero-platform-window:hover .b-hero-platform-track { animation-play-state: paused; }
}

@keyframes b-hero-platform-scroll {
  to { transform: translateX(-50%); }
}
