/* Shared LingoTotal header and hero refinements. */
.topbar .logo,
.banner .brand-wrap {
  gap: 16px !important;
}

.topbar .home,
.banner .home-link {
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
  color: #fff !important;
  line-height: 1 !important;
}

.topbar .home {
  font-size: 1.3rem !important;
}

.banner .home-link > span:first-child {
  font-size: 1.3rem !important;
}

.banner .home-link svg {
  width: 23px !important;
  height: 23px !important;
}

.topbar .home:hover,
.topbar .home:focus-visible,
.banner .home-link:hover,
.banner .home-link:focus-visible {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.hero h1,
.panel.hero h1 {
  font-family: Inter, Arial, sans-serif !important;
  font-size: clamp(2rem, 3.3vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
}

.hero:has(> .hero-journey) {
  position: relative !important;
  overflow: hidden !important;
}

.hero:has(> .hero-journey)::before,
.hero:has(> .hero-journey)::after,
.hero:has(> .hero-journey) .hero-icon {
  content: none !important;
  display: none !important;
}

.hero:has(> .hero-journey) h1,
.hero:has(> .hero-journey) p,
.hero:has(> .hero-journey) .safety {
  max-width: 58% !important;
  position: relative;
  z-index: 2;
}

.hero > .hero-journey {
  position: absolute !important;
  right: 24px !important;
  top: 54px !important;
  z-index: 1;
  width: min(285px, 34%) !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

@media (max-width: 820px) {
  .topbar .logo,
  .banner .brand-wrap {
    gap: 14px !important;
  }
}

@media (max-width: 650px) {
  .hero:has(> .hero-journey) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .hero:has(> .hero-journey) h1,
  .hero:has(> .hero-journey) p,
  .hero:has(> .hero-journey) .safety {
    max-width: 100% !important;
  }

  .hero:has(> .hero-journey) h1 {
    width: 100%;
    margin: 0 auto 15px !important;
    text-align: center !important;
    font-size: clamp(1.85rem, 8.5vw, 2.65rem) !important;
    line-height: 1.04 !important;
  }

  .hero > .hero-journey {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    order: -1 !important;
    width: min(360px, 88%) !important;
    margin: 0 auto 20px !important;
    transform: none !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
  }
}
