/* Mobile navigation shared by the legacy marketing pages. */
.legacy-mobile-nav-toggle,
.legacy-mobile-nav-panel {
  display: none;
}

.legacy-mobile-nav-toggle {
  min-width: 72px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 19, 25, 0.82);
  color: var(--cream, #fff8e7);
  cursor: pointer;
  font: 700 14px/1 system-ui, sans-serif;
}

.legacy-mobile-nav-icon,
.legacy-mobile-nav-icon::before,
.legacy-mobile-nav-icon::after {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
}

.legacy-mobile-nav-icon {
  position: relative;
}

.legacy-mobile-nav-icon::before,
.legacy-mobile-nav-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.legacy-mobile-nav-icon::before { top: -5px; }
.legacy-mobile-nav-icon::after { top: 5px; }

.legacy-mobile-nav-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 17, 22, 0.98);
  padding: 8px max(16px, calc((100vw - 1180px) / 2));
}

.legacy-mobile-nav-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--cream, #fff8e7);
  font-weight: 700;
  text-decoration: none;
}

.legacy-mobile-nav-panel a:hover,
.legacy-mobile-nav-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.legacy-mobile-nav-toggle:focus-visible,
.legacy-mobile-nav-panel a:focus-visible {
  outline: 3px solid var(--amber, #e7b85d);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .nav .nav-inner {
    height: auto;
    min-height: 68px;
    gap: 12px;
    padding-block: 8px;
  }

  .nav .brand {
    min-height: 44px;
    align-items: center;
    color: inherit;
    font-size: clamp(18px, 5.5vw, 23px);
    line-height: 1.1;
    text-decoration: none;
  }

  .legacy-mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .legacy-mobile-nav-panel[data-open] {
    display: grid;
  }

  .hero .hero-inner {
    padding-inline: 20px !important;
  }

  .hero h1[style] {
    font-size: clamp(42px, 13vw, 62px) !important;
    overflow-wrap: anywhere;
  }

  .hero .lede[style] {
    font-size: clamp(20px, 6.2vw, 29px) !important;
    line-height: 1.28 !important;
  }

  .hero-cta-row a,
  .btn,
  .btn-ghost,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .nav .wrap,
  .hero .wrap {
    padding-inline: 16px !important;
  }

  .nav .brand {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
