.feature-carousel {
  margin-top: 58px;
}

.feature-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.feature-carousel-hint {
  color: #595959;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.feature-carousel-arrows {
  display: flex;
  gap: 10px;
}

.feature-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 1px solid rgba(9, 10, 12, .24);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.feature-arrow:hover:not(:disabled),
.feature-arrow:focus-visible {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
  outline: none;
  transform: translateY(-2px);
}

.feature-arrow:disabled {
  cursor: default;
  opacity: .32;
}

.feature-track {
  display: flex;
  gap: 18px;
  padding: 2px 2px 20px;
  overflow-x: auto;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-track:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

.feature-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.feature-track img {
  pointer-events: none;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  flex: 0 0 416px;
  width: 416px;
  height: auto;
  min-height: 0;
  padding: 0;
  background: #f9f9f6;
  border: 1px solid var(--inkline);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.feature-card:hover {
  border-color: rgba(9, 10, 12, .25);
  box-shadow: 0 24px 54px rgba(9, 10, 12, .09);
  transform: translateY(-4px);
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 44px 26px 26px;
  background:
    linear-gradient(rgba(9, 10, 12, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 10, 12, .035) 1px, transparent 1px),
    #f0f1ed;
  background-size: 24px 24px;
  border-bottom: 1px solid var(--inkline);
}

.feature-media--screen {
  display: block;
  padding: 0;
  background: #fff;
}

.feature-screen-placeholder {
  position: relative;
  display: grid;
  align-content: end;
  gap: 9px;
  width: 100%;
  height: 164px;
  padding: 20px;
  color: #777a80;
  background: rgba(255, 255, 255, .72);
  border: 1px dashed rgba(9, 10, 12, .24);
  box-shadow: 0 16px 32px rgba(9, 10, 12, .06);
}

.feature-screen-placeholder:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 27px;
  background: #15171b;
}

.feature-screen-placeholder:after {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 13px 0 0 #6f51c8, 26px 0 0 #777a80;
}

.feature-screen-placeholder b {
  margin-bottom: 9px;
  font-size: .61rem;
  letter-spacing: .12em;
}

.feature-screen-placeholder i {
  display: block;
  width: 100%;
  height: 6px;
  background: #dadbd7;
}

.feature-screen-placeholder i:nth-of-type(2) {
  width: 72%;
  background: rgba(111, 81, 200, .45);
}

.feature-screen-placeholder i:nth-of-type(3) {
  width: 86%;
  background: rgba(255, 243, 42, .72);
}

.feature-screenshot {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  cursor: zoom-in;
  pointer-events: auto !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-screenshot:hover {
  box-shadow: 0 14px 28px rgba(9, 10, 12, .16);
  transform: scale(1.012);
}

.feature-screenshot:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.screenshot-lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(9, 10, 12, .9);
  border: 0;
  cursor: zoom-out;
}

.screenshot-lightbox__content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1240px, 100%);
  max-height: calc(100vh - 56px);
}

.screenshot-lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.screenshot-lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  color: #090a0c;
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.screenshot-lightbox__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body.has-lightbox {
  overflow: hidden;
}

.feature-card-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 22px;
  align-items: start;
  min-height: 0;
  padding: 24px 26px 26px;
}

.feature-card h3,
.feature-wide h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.feature-card p {
  max-width: 265px;
  margin: 0;
  color: #595959;
  font-size: .94rem;
  line-height: 1.55;
}

.feature-icon {
  display: block;
  align-self: start;
  justify-self: end;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .feature-card {
    flex-basis: min(416px, 78vw);
    width: min(416px, 78vw);
  }
}

@media (max-width: 660px) {
  .feature-carousel {
    margin-top: 42px;
  }

  .feature-carousel-toolbar {
    margin-bottom: 16px;
  }

  .feature-carousel-hint {
    font-size: .67rem;
  }

  .feature-arrow {
    width: 44px;
    height: 44px;
  }

  .feature-track {
    gap: 12px;
    margin-right: -15px;
    padding-right: 15px;
  }

  .feature-card {
    flex-basis: 84vw;
    width: 84vw;
    max-width: 350px;
  }

  .feature-media {
    padding: 40px 20px 20px;
  }

  .feature-media--screen {
    padding: 0;
  }

  .screenshot-lightbox {
    padding: 20px;
  }

  .screenshot-lightbox__content img {
    max-height: calc(100vh - 40px);
  }

  .screenshot-lightbox__close {
    top: -12px;
    right: -8px;
  }

  .feature-screen-placeholder {
    height: 174px;
  }

  .feature-card-body {
    grid-template-columns: 1fr 46px;
    gap: 14px;
    padding: 22px;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }

  .feature-card p {
    font-size: .9rem;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-track {
    scroll-behavior: auto;
  }
}
