.nj-home-shell {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.nj-home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.nj-home-heading p {
  margin: 0 0 5px;
  color: #946812;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nj-home-heading h2 {
  margin: 0;
  color: var(--nj-app-ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.nj-home-heading > a {
  flex: 0 0 auto;
  color: var(--nj-app-ink);
  font-size: 13px;
  font-weight: 730;
  text-decoration-thickness: 1px;
}

.nj-native-hero {
  position: relative;
  background: #e8edf2;
}

.nj-native-hero__track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.nj-native-hero__track::-webkit-scrollbar {
  display: none;
}

.nj-native-hero__slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: 520px;
  overflow: hidden;
  scroll-snap-align: start;
}

.nj-native-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  max-width: 590px;
  padding: 62px max(38px, 7vw);
  flex-direction: column;
}

.nj-native-hero__copy > p:first-child {
  margin: 0 0 14px;
  color: #8f6514;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nj-native-hero__copy h1,
.nj-native-hero__copy h2 {
  margin: 0;
  color: var(--nj-app-ink);
  font-size: clamp(46px, 5.1vw, 72px);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.nj-native-hero__copy > p:not(:first-child) {
  max-width: 540px;
  margin: 20px 0 0;
  color: #475563;
  font-size: 18px;
  line-height: 1.55;
}

.nj-native-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.nj-native-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--nj-app-ink);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.nj-native-hero__button:hover {
  color: #fff;
  background: var(--nj-app-ink-deep);
}

.nj-native-hero__media,
.nj-native-hero__media img {
  width: 100%;
  height: 100%;
}

.nj-native-hero__media img {
  object-fit: cover;
}

.nj-native-hero__slide--coral {
  background: #f4ddd7;
}

.nj-native-hero__slide--paper {
  background: #f2ede3;
}

.nj-native-hero__dots {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 0;
  transform: translateX(-50%);
}

.nj-native-hero__dots button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
}

.nj-native-hero__dots button::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 38, 63, 0.38);
  content: "";
}

.nj-native-hero__dots button[aria-current="true"]::before {
  width: 23px;
  height: 9px;
  border-radius: 8px;
  background: var(--nj-app-ink);
}

.nj-home-categories {
  padding: 62px 0 68px;
  background: #fff;
}

.nj-category-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.nj-category-rail a {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 14px 8px 13px;
  border: 1px solid #e1e5e9;
  border-radius: 14px;
  color: var(--nj-app-ink);
  background: #fff;
  text-align: center;
  text-decoration: none;
  flex-direction: column;
}

.nj-category-rail__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 18px;
  color: var(--nj-app-ink);
  background: #edf2f6;
  font-size: 27px;
  place-items: center;
}

.nj-category-rail a:nth-child(3n + 2) .nj-category-rail__icon {
  background: #f7e7e2;
}

.nj-category-rail a:nth-child(3n) .nj-category-rail__icon {
  background: #f6eedc;
}

.nj-category-rail strong {
  min-height: 33px;
  font-size: 11px;
  line-height: 1.35;
}

.nj-category-rail small {
  margin-top: 4px;
  color: #59636d;
  font-size: 11px;
}

.nj-demo-products,
.nj-product-rail-section {
  padding: 62px 0 70px;
  background: var(--nj-app-soft);
}

.nj-product-rail-section:nth-of-type(even) {
  background: #fff;
}

.nj-product-rail .woocommerce,
.nj-product-rail ul.products {
  margin: 0;
}

.nj-home-promos {
  padding: 68px 0;
  background: #fff;
}

.nj-home-promos__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(235px, 1fr));
  gap: 14px;
}

.nj-home-promo {
  position: relative;
  display: flex;
  min-height: 235px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: var(--nj-app-ink);
  text-decoration: none;
}

.nj-home-promo:first-child {
  grid-row: 1 / 3;
}

.nj-home-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 240ms ease;
}

.nj-home-promo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(8, 23, 39, 0.82));
  content: "";
}

.nj-home-promo__copy {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  padding: 28px;
}

.nj-home-promo small,
.nj-home-promo strong,
.nj-home-promo span {
  display: block;
}

.nj-home-promo small {
  color: #f1bd55;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nj-home-promo strong {
  margin-top: 6px;
  color: #fff;
  font-size: clamp(22px, 3vw, 37px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.nj-home-promo span {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.nj-home-promo:hover {
  color: #fff;
}

.nj-home-promo:hover img {
  transform: scale(1.025);
}

.nj-home-steps {
  padding: 74px 0 80px;
  background: var(--nj-app-ink);
}

.nj-home-steps .nj-home-heading p,
.nj-home-steps .nj-home-heading h2 {
  color: #fff;
}

.nj-home-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nj-home-step {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
}

.nj-home-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--nj-app-ink);
  background: #f0b84f;
  font-size: 13px;
  font-weight: 850;
  place-items: center;
}

.nj-home-step h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
}

.nj-home-step p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.nj-home-help {
  padding: 72px 0 78px;
  background: #fff;
}

.nj-home-help__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.nj-home-help__copy h2 {
  margin: 0;
  color: var(--nj-app-ink);
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.nj-home-help__copy p {
  margin: 17px 0 0;
  color: #596673;
  line-height: 1.65;
}

.nj-home-help details {
  padding: 18px 0;
  border-bottom: 1px solid #dfe3e7;
}

.nj-home-help details:first-child {
  border-top: 1px solid #dfe3e7;
}

.nj-home-help summary {
  color: var(--nj-app-ink);
  font-weight: 730;
  cursor: pointer;
}

.nj-home-help details p {
  margin: 10px 0 0;
  color: #64717d;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .nj-category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nj-home-shell {
    width: calc(100% - 28px);
  }

  .nj-native-hero__slide {
    display: flex;
    min-height: 0;
    background: #e7edf2;
    flex-direction: column;
  }

  .nj-native-hero__media {
    order: 1;
    height: min(76vw, 330px);
  }

  .nj-native-hero__copy {
    order: 2;
    min-height: 285px;
    max-width: none;
    padding: 31px 20px 53px;
  }

  .nj-native-hero__copy h1,
  .nj-native-hero__copy h2 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1;
  }

  .nj-native-hero__copy > p:not(:first-child) {
    margin-top: 14px;
    font-size: 15px;
  }

  .nj-native-hero__actions {
    margin-top: 20px;
  }

  .nj-native-hero__button {
    width: 100%;
  }

  .nj-native-hero__dots {
    bottom: 4px;
  }

  .nj-home-categories {
    padding: 36px 0 43px;
  }

  .nj-home-heading {
    margin-bottom: 17px;
  }

  .nj-home-heading h2 {
    font-size: 26px;
  }

  .nj-home-heading > a {
    font-size: 11px;
  }

  .nj-category-rail {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 8px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nj-category-rail::-webkit-scrollbar {
    display: none;
  }

  .nj-category-rail a {
    flex: 0 0 110px;
    scroll-snap-align: start;
  }

  .nj-category-rail__icon {
    width: 58px;
    height: 58px;
  }

  .nj-demo-products,
  .nj-product-rail-section {
    padding: 38px 0 45px;
  }

  .nj-demo-products .nj-demo-shell,
  .nj-product-rail-section .nj-home-shell {
    width: calc(100% - 28px);
  }

  .nj-demo-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nj-product-rail ul.products {
    display: flex !important;
    overflow-x: auto;
    gap: 12px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 10px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nj-product-rail ul.products::-webkit-scrollbar {
    display: none;
  }

  .nj-product-rail ul.products li.product {
    flex: 0 0 min(46vw, 210px);
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .nj-home-promos {
    padding: 42px 0;
  }

  .nj-home-promos__grid {
    display: flex;
    overflow-x: auto;
    gap: 11px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 8px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nj-home-promos__grid::-webkit-scrollbar {
    display: none;
  }

  .nj-home-promo,
  .nj-home-promo:first-child {
    flex: 0 0 min(82vw, 320px);
    min-height: 360px;
    grid-row: auto;
    scroll-snap-align: start;
  }

  .nj-home-promo__copy {
    padding: 22px;
  }

  .nj-home-promo strong {
    font-size: 28px;
  }

  .nj-home-steps {
    padding: 49px 0 54px;
  }

  .nj-home-steps__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nj-home-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    padding: 19px;
    column-gap: 12px;
  }

  .nj-home-step > span {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .nj-home-step h3,
  .nj-home-step p {
    grid-column: 2;
  }

  .nj-home-step h3 {
    font-size: 17px;
  }

  .nj-home-step p {
    margin-top: 5px;
    font-size: 12px;
  }

  .nj-home-help {
    padding: 47px 0 53px;
  }

  .nj-home-help__inner {
    grid-template-columns: 1fr;
    gap: 33px;
  }

  .nj-home-help__copy h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nj-native-hero__track {
    scroll-behavior: auto;
  }
}
