.jl-hero {
  --jl-blue: #0c62f1;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eef5ff;
  color: #111827;
  isolation: isolate;
}

.jl-hero *,
.jl-hero *::before,
.jl-hero *::after { box-sizing: border-box; }

.jl-hero__viewport { overflow: hidden; touch-action: pan-y; }

.jl-hero__track {
  display: flex;
  transition: transform 620ms cubic-bezier(.22,.8,.25,1);
  will-change: transform;
}

.jl-hero__slide {
  position: relative;
  display: grid;
  grid-template: 1fr / minmax(0,1fr);
  aspect-ratio: 5 / 2;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  background: #eef5ff;
}

.jl-hero__image {
  position: relative;
  z-index: 0;
  display: block;
  align-self: stretch;
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
  object-position: var(--jl-position,right center);
}

.jl-hero__shade {
  position: relative;
  z-index: 2;
  display: block;
  grid-area: 1 / 1;
  width: min(48%,720px);
  height: 100%;
  background: linear-gradient(90deg,rgba(247,250,255,.97),rgba(247,250,255,.86) 68%,rgba(247,250,255,0));
  pointer-events: none;
}

.jl-hero__slide[data-tone="dark"] .jl-hero__shade {
  background: linear-gradient(90deg,rgba(8,19,38,.88),rgba(8,19,38,.68) 68%,rgba(8,19,38,0));
}

.jl-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  grid-area: 1 / 1;
  gap: 10px;
  width: min(39%,590px);
  height: 100%;
  padding: 34px 24px 72px clamp(54px,5.4vw,104px);
  color: #111827;
}

.jl-hero__slide[data-tone="dark"] .jl-hero__content {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.24);
}

.jl-hero__slide[data-layout="image-only"] .jl-hero__shade,
.jl-hero__slide[data-layout="image-only"] .jl-hero__content {
  display: none;
}

@media (min-width: 768px) {
  .jl-hero__slide[data-layout="image-only"] .jl-hero__content {
    position: absolute;
    left: clamp(58px,5.5vw,106px);
    bottom: clamp(42px,4.2vw,72px);
    display: flex;
    width: auto;
    height: auto;
    padding: 0;
  }

  .jl-hero__slide[data-layout="image-only"] .jl-hero__eyebrow,
  .jl-hero__slide[data-layout="image-only"] .jl-hero__title,
  .jl-hero__slide[data-layout="image-only"] .jl-hero__description {
    display: none;
  }
}

.jl-hero__eyebrow {
  margin: 0;
  font-size: clamp(.75rem,.95vw,.95rem);
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.jl-hero__title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem,3.15vw,3.75rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.jl-hero__description {
  max-width: 440px;
  margin: 2px 0 6px;
  font-size: clamp(.92rem,1.18vw,1.18rem);
  font-weight: 500;
  line-height: 1.52;
}

.jl-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 2px solid var(--jl-blue);
  border-radius: 999px;
  background: var(--jl-blue);
  color: #fff !important;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(12,98,241,.28);
  transition: transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}

.jl-hero__button:hover,
.jl-hero__button:focus-visible {
  transform: translateY(-2px);
  background: #064dca;
  box-shadow: 0 14px 34px rgba(12,98,241,.38);
}

.jl-hero__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--jl-blue);
  font: 800 27px/1 Arial,sans-serif;
  box-shadow: 0 8px 26px rgba(13,35,67,.18);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.jl-hero__arrow:hover,
.jl-hero__arrow:focus-visible { background: var(--jl-blue); color: #fff; }
.jl-hero__arrow--prev { left: 18px; }
.jl-hero__arrow--next { right: 88px; }

.jl-hero__dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 25px rgba(13,35,67,.14);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.jl-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #a8b4c7;
  cursor: pointer;
  transition: width .25s ease,background-color .25s ease;
}

.jl-hero__dot[aria-current="true"] { width: 25px; background: var(--jl-blue); }

.jl-hero__arrow:focus-visible,
.jl-hero__dot:focus-visible,
.jl-hero__button:focus-visible { outline: 3px solid #ffd43b; outline-offset: 3px; }

@media (max-width: 767px) {
  .jl-hero { background: #fff; }

  .jl-hero__slide {
    grid-template: auto auto / 1fr;
    aspect-ratio: auto;
    min-height: 0;
    background: #fff;
  }

  .jl-hero__image {
    grid-area: 1 / 1;
    width: 100%;
    height: auto !important;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    object-position: var(--jl-position,right center);
  }

  .jl-hero__shade { display: none; }

  .jl-hero__content,
  .jl-hero__slide[data-tone="dark"] .jl-hero__content,
  .jl-hero__slide[data-layout="image-only"] .jl-hero__content {
    position: relative;
    display: flex;
    grid-area: 2 / 1;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 245px;
    padding: 22px 22px 58px;
    background: linear-gradient(145deg,#fff,#f3f7ff);
    color: #111827;
    text-align: left;
    text-shadow: none;
  }

  .jl-hero__title { max-width: 18ch; font-size: clamp(1.65rem,8vw,2.2rem); line-height: 1.02; }

  .jl-hero__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 5px;
    font-size: .9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .jl-hero__button { min-height: 42px; padding: 11px 22px; font-size: .86rem; }
  .jl-hero__arrow { display: none; }
  .jl-hero__dots { bottom: 15px; }
}

@media (max-width: 420px) {
  .jl-hero__content,
  .jl-hero__slide[data-tone="dark"] .jl-hero__content {
    min-height: 260px;
    padding: 20px 20px 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl-hero__track,
  .jl-hero__button,
  .jl-hero__dot { transition: none !important; }
}
