/* Five equal feature cards, retaining the supplied titles and descriptions. */
#features #feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch
}

#features .feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 12px;
  border: 1px solid #e4deef;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff, #faf8ff);
  text-align: center;
  min-width: 0
}

#features .feature-number {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee6ff;
  color: #6a36c8
}

#features .feature-number .icon {
  width: 25px;
  height: 25px
}

#features .feature-row:nth-child(2) .feature-number {
  background: #e8efff;
  color: #3b65c5
}

#features .feature-row:nth-child(3) .feature-number {
  background: #fbe8f1;
  color: #b9347a
}

#features .feature-row:nth-child(4) .feature-number {
  background: #e8f4ef;
  color: #2b7c65
}

#features .feature-row:nth-child(5) .feature-number {
  background: #fff1d9;
  color: #9b6a17
}

#features .feature-row h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 10px;
  overflow-wrap: break-word
}

#features .feature-row p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0
}

aside .resource {
  gap: 12px;
  align-items: flex-start
}

aside .resource>div {
  flex: 1;
  min-width: 0
}

.resource-explore {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 22px;
  height: 30px;
  color: #7144bb;
  margin-left: auto;
  transition: transform .15s
}

.resource-explore .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2
}

.resource:hover .resource-explore {
  transform: translateX(3px)
}

@media(min-width:801px) and (max-width:1150px) {
  #features #feature-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 12px
  }

  #features .feature-row {
    flex: 0 0 185px;
    scroll-snap-align: start
  }
}

@media(max-width:800px) {
  #features #feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
  }

  #features .feature-row {
    padding: 20px 14px
  }
}

@media(max-width:550px) {
  #features #feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  #features .feature-row:last-child {
    grid-column: 1/-1
  }

  #features .feature-row h3 {
    font-size: 16px
  }

  #features .feature-row p {
    font-size: 15px
  }
}

/* Wider cards stay in one row; overflow is available by touch, keyboard and buttons. */
#features .section-heading {
  flex-wrap: nowrap;
  align-items: center
}

#features .section-heading h2 {
  min-width: 0
}

#features .feature-carousel {
  position: relative
}

#features #feature-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 2px;
  padding: 3px 2px 16px;
  align-items: stretch;
  scrollbar-width: thin;
  scrollbar-color: #c4b0e7 #f3eefb
}

#features .feature-row {
  flex: 0 0 260px;
  min-width: 0;
  padding: 25px 20px;
  gap: 17px;
  scroll-snap-align: start;
  border-radius: 13px;
  box-shadow: 0 3px 10px #48336b05
}

#features .feature-number {
  width: 56px;
  min-width: 56px;
  height: 56px
}

#features .feature-number .icon {
  width: 28px;
  height: 28px
}

#features .feature-row h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 11px
}

#features .feature-row p {
  font-size: 14px;
  line-height: 1.75
}

.feature-scroll-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0
}

.feature-scroll-controls[hidden] {
  display: none
}

.feature-scroll-controls button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d4c5ed;
  border-radius: 50%;
  background: #fff;
  color: #683cc0;
  cursor: pointer;
  transition: background .15s
}

.feature-scroll-controls button .icon {
  width: 18px;
  height: 18px
}

.feature-scroll-controls button:hover:enabled {
  background: #f0e8fc;
  border-color: #aa8bd8
}

.feature-scroll-controls button:disabled {
  opacity: .35;
  cursor: default
}

@media(max-width:550px) {
  #features .section-heading {
    flex-wrap: wrap;
    gap: 10px
  }

  #features .section-heading h2 {
    font-size: 21px;
    flex: 1;
    min-width: 180px
  }

  .feature-scroll-controls {
    margin-left: auto
  }

  #features .feature-row {
    flex-basis: min(260px, calc(100vw - 104px));
    padding: 23px 19px
  }

  #features .feature-row p {
    font-size: 14px
  }
}

/* Edge controls belong to the scrolling content; no visible scrollbar. */
#features .feature-carousel {
  position: relative;
  padding: 0 25px
}

#features #feature-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 3px
}

#features #feature-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0
}

#features .feature-scroll-controls {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
  z-index: 2
}

#features .feature-scroll-controls[hidden] {
  display: none
}

#features .feature-scroll-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-color: #d8c9ef;
  box-shadow: 0 3px 12px #42256814;
  pointer-events: auto
}

#features #features-previous {
  left: -10px
}

#features #features-next {
  right: -10px
}

#features .feature-scroll-controls button:hover:enabled {
  background: #f4edff
}

#features .feature-scroll-controls button:disabled {
  opacity: 1;
  background: #f9f7fc;
  color: #c5b5de;
  border-color: #ece5f5;
  box-shadow: none
}

@media(max-width:550px) {
  #features .feature-carousel {
    padding: 0 19px
  }

  #features .feature-scroll-controls button {
    width: 36px;
    height: 36px
  }

  #features #features-previous {
    left: -13px
  }

  #features #features-next {
    right: -13px
  }
}
