.lp-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 3rem, 1440px);
  min-height: 88px;
  margin-inline: auto;
  font-family: Inter, sans-serif;
}

.lp-nav__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.lp-nav__brand img {
  display: block;
  width: 100px;
  height: auto;
}

.lp-nav__menu {
  position: relative;
}

.lp-nav__menu summary {
  display: none;
  cursor: pointer;
  list-style: none;
}

.lp-nav__menu summary::-webkit-details-marker {
  display: none;
}

.lp-nav__menu-icon,
.lp-nav__menu-icon::before,
.lp-nav__menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #0b1f6b;
}

.lp-nav__menu-icon {
  position: relative;
}

.lp-nav__menu-icon::before,
.lp-nav__menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.lp-nav__menu-icon::before {
  top: -7px;
}

.lp-nav__menu-icon::after {
  top: 7px;
}

.lp-nav__links,
.lp-nav__menu:not([open]) > .lp-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
}

.lp-nav__links > a:not(.lp-btn) {
  color: #0b1f6b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.lp-nav__links > a:not(.lp-btn):hover {
  color: #0a7cff;
}

/* Desktop: a closed <details> hides its content regardless of display, so
   expose the slot directly (the JS in index.html also sets [open] for older browsers). */
@media (min-width: 992px) {
  .lp-nav__menu::details-content {
    display: contents;
    content-visibility: visible;
  }
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #0a7cff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lp-btn--ghost {
  color: #0a7cff;
  background: #fff;
}

.lp-btn--solid {
  color: #fff;
  background: #0a7cff;
}

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  min-height: min(820px, calc(100vh - 88px));
  overflow-x: clip;
  padding: 0 0 0 max(1.5rem, calc((100vw - 1440px) / 2));
  background: linear-gradient(160deg, #fff 0%, #f1f7ff 50%, #dfeaff 100%);
  font-family: Inter, sans-serif;
}

.lp-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-block: 1rem clamp(2rem, 5vw, 5rem);
}

.lp-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 2rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: #1d6fe0;
  background: #e3eeff;
  font-size: 0.95rem;
  font-weight: 600;
}

.lp-hero__pill svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.lp-hero__title {
  margin: 0 0 1.7rem;
  color: #0b1f6b;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lp-hero__title-accent {
  color: #0a7cff;
}

.lp-hero__lede {
  max-width: 620px;
  margin: 0 0 2rem;
  color: #4a5b7a;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.8;
}

.lp-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 58px;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  color: #fff;
  background: #0a7cff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.lp-hero__cta svg {
  width: 22px;
  height: 22px;
}

.lp-hero__visual {
  position: relative;
  z-index: 0;
  align-self: end;
  min-width: 0;
  /* Slide under the copy (z-index 1) so the text sits on the image's faded edge. */
  margin-left: -8vw;
}

.lp-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  /* Dissolve only the left edge into the hero background; right and bottom bleed off-screen. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

@media (prefers-reduced-motion: no-preference) {
  .lp-hero__cta svg {
    transition: transform 180ms ease;
  }

  .lp-hero__cta:hover svg {
    transform: translateX(4px);
  }
}

@media (max-width: 991px) {
  .lp-nav {
    width: calc(100% - 2.5rem);
    min-height: 76px;
  }

  .lp-nav__menu summary {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .lp-nav__menu summary:focus-visible {
    outline: 3px solid #0a7cff;
    outline-offset: 3px;
  }

  .lp-nav__menu:not([open]) > .lp-nav__links {
    display: none;
  }

  .lp-nav__links,
  .lp-nav__menu[open] > .lp-nav__links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    display: flex;
    min-width: min(280px, calc(100vw - 2.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid #e3eeff;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgb(11 31 107 / 12%);
  }

  .lp-nav__links > a:not(.lp-btn) {
    padding: 0.7rem 0.5rem;
  }

  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1rem;
    padding: 3.5rem max(1.25rem, calc((100vw - 720px) / 2)) 0;
  }

  .lp-hero__copy {
    max-width: 720px;
  }

  .lp-hero__visual {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .lp-hero__copy {
    padding-bottom: 0;
  }

  .lp-hero__visual img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  }
}

@media (max-width: 479px) {
  .lp-nav {
    width: calc(100% - 2rem);
  }

  .lp-nav__brand img {
    width: 132px;
  }

  .lp-hero {
    gap: 0.25rem;
    padding: 2.75rem 1rem 0;
  }

  .lp-hero__pill {
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .lp-hero__title {
    font-size: 2.1rem;
  }

  .lp-hero__lede {
    font-size: 1rem;
    line-height: 1.65;
  }

  .lp-hero__cta {
    width: 100%;
    padding-inline: 1rem;
    font-size: 0.98rem;
  }
}
