.home-hero-slider {
  position: relative;
  width: min(1580px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.home-hero-slides {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(7, 36, 80, 0.08);
}

.home-hero-slide {
  --hero-bg: #dff7ee;
  --hero-ink: #072450;
  grid-area: 1 / 1;
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(320px, 44%);
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.home-hero-slide[data-active="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(circle at 12% 18%, transparent 0 38px, rgba(104, 188, 63, 0.16) 39px 40px, transparent 41px),
    radial-gradient(circle at 35% 74%, transparent 0 54px, rgba(7, 36, 80, 0.08) 55px 56px, transparent 57px),
    radial-gradient(circle at 58% 20%, rgba(255, 255, 255, 0.45), transparent 34%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding: clamp(3.25rem, 6vw, 6rem) clamp(3rem, 6vw, 6.5rem);
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-content h1 {
  max-width: 760px;
  margin: 0.9rem 0 1rem;
  color: inherit;
  font-family: inherit;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-hero-content p {
  max-width: 650px;
  margin: 0;
  color: color-mix(in srgb, var(--hero-ink) 68%, transparent);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-hero-primary,
.home-hero-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-hero-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(73, 173, 50, 0.2);
}

.home-hero-secondary {
  border: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent);
  background: rgba(255, 255, 255, 0.65);
  color: var(--hero-ink);
}

.home-hero-primary:hover,
.home-hero-secondary:hover {
  transform: translateY(-1px);
}

.home-hero-media {
  position: relative;
  z-index: 1;
  min-height: 510px;
  display: grid;
  place-items: center;
  padding: 2rem 3.5rem 2rem 1rem;
}

.home-hero-media::before {
  content: "";
  position: absolute;
  width: min(460px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.14);
}

.home-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(7, 36, 80, 0.2));
}

.home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7, 36, 80, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #56606e;
  box-shadow: 0 8px 24px rgba(7, 36, 80, 0.1);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.home-hero-prev {
  left: 1.25rem;
}

.home-hero-next {
  right: 1.25rem;
}

.home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.home-hero-dots button {
  width: 11px;
  height: 11px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 36, 80, 0.25);
  box-shadow: none;
}

.home-hero-dots button[data-active="true"] {
  background: var(--green);
}

.home-section {
  max-width: 1280px;
  margin: auto;
  padding: 5rem max(2vw, 1.25rem);
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-section-heading > div:first-child {
  max-width: 760px;
}

.home-section-heading.compact {
  display: block;
  max-width: 760px;
}

.home-section-heading h2,
.home-help h2 {
  margin: 0.45rem 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 3.5vw, 3.7rem);
  line-height: 1.05;
}

.home-section-heading p,
.home-help p {
  color: var(--muted);
}

.home-slider-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.55rem;
}

.home-slider-actions button {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}

.home-product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 1rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 36, 80, 0.06);
  scroll-snap-align: start;
}

.home-product-image {
  position: relative;
  flex: 0 0 250px;
  height: 250px;
  min-height: 250px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1.25rem;
  background: linear-gradient(145deg, #fff, #eef2ee);
}

.home-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-product-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.home-product-copy > small {
  color: var(--green);
  font-weight: 750;
}

.home-product-copy h3 {
  margin: 0.3rem 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-product-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-product-copy strong {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.home-product-link {
  margin-top: 0.55rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

.home-products-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-how {
  max-width: none;
  background: #eff5ee;
}

.home-how > .home-section-heading,
.home-how > .home-step-grid {
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-step-grid article {
  padding: 1.6rem;
  border-radius: 20px;
  background: #fff;
}

.home-step-grid b {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.home-step-grid h3 {
  margin: 0.5rem 0;
}

.home-step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-help > div {
  max-width: 760px;
}

.home-help > .outline {
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .home-hero-slide {
    min-height: 470px;
    grid-template-columns: minmax(0, 58%) minmax(280px, 42%);
  }

  .home-hero-content {
    padding-right: 2rem;
    padding-left: 4.25rem;
  }

  .home-hero-media {
    min-height: 470px;
    padding-right: 2.5rem;
  }

  .home-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero-slider {
    width: min(100% - 1rem, 1580px);
    margin-top: 0.5rem;
  }

  .home-hero-slides {
    border-radius: 20px;
  }

  .home-hero-slide {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .home-hero-content {
    padding: 3.75rem 2.75rem 2rem;
    text-align: center;
  }

  .home-hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .home-hero-content p {
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .home-hero-media {
    min-height: 270px;
    padding: 0 2.75rem 3.75rem;
  }

  .home-hero-media::before {
    width: min(300px, 70vw);
  }

  .home-hero-media img {
    max-height: 250px;
  }

  .home-hero-arrow {
    top: 46%;
    width: 40px;
    height: 40px;
    font-size: 1.55rem;
  }

  .home-hero-prev {
    left: 0.75rem;
  }

  .home-hero-next {
    right: 0.75rem;
  }

  .home-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-slider-actions {
    align-self: flex-end;
  }

  .home-product-track {
    grid-auto-columns: minmax(245px, 82vw);
  }

  .home-product-image {
    flex-basis: 230px;
    height: 230px;
    min-height: 230px;
  }

  .home-step-grid {
    grid-template-columns: 1fr;
  }

  .home-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide,
  .home-hero-primary,
  .home-hero-secondary {
    transition: none;
  }
}
