/* A full-width continuation of the covered heading, using the shared carousel. */
.home-tools {
  position: relative;
  padding: 0 0 72px;
  background: #fff;
  color: #080b11;
  font-family: Raleway, system-ui, sans-serif;
}

.home-tools__inner,
.home-tools__viewport {
  width: 100%;
}

.home-tools__apps {
  display: grid;
  grid-auto-flow: column;
  /* Keep enough offscreen items to recycle even on ultrawide displays. */
  grid-auto-columns: max(120px, 6.25vw);
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  /* Projected cards must not create a vertical scroll area inside the page. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0;
  padding: 32px 0;
  list-style: none;
}

.home-tools__apps::-webkit-scrollbar {
  display: none;
}

.home-tools__apps.orbit-carousel--active {
  position: relative;
  overflow-anchor: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.home-tools__apps.orbit-carousel--active > li {
  transform-origin: center;
  will-change: transform;
}

.home-tools__apps.orbit-carousel--dragging,
.home-tools__apps.orbit-carousel--dragging a {
  cursor: grabbing;
}

.home-tools__apps img {
  -webkit-user-drag: none;
}

.home-tools__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 108px;
  color: #242b36;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease;
}

.home-tools__app img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .8;
}

/* Mirror AppsMenuIcon._opticalScale and its bounds-relative Originals offset. */
.home-tools__app img[src$="/videos.svg"] { transform: scale(1.08); }
.home-tools__app img[src$="/post.svg"] { transform: scale(.84); }
.home-tools__app img[src$="/polls.svg"] { transform: scale(.85); }
.home-tools__app img[src$="/planner.svg"] { transform: scale(1.15); }
.home-tools__app img[src$="/storyboard.svg"] { transform: scale(1.25); }
.home-tools__app img[src$="/pixels.svg"] { transform: scale(1.28); }
.home-tools__app img[src$="/originals.svg"] { transform: translateX(4.166667%) scale(1.18); }

.home-tools__app:is(:hover, :focus-visible) { color: var(--link-highlight); }
.home-tools__app:hover img { opacity: 1; }

/* Payments characters span the icon, gap and title together. */
.home-tools__character img {
  width: 100%;
  height: calc(40px + 20px + 1.4em);
  opacity: 1;
  transform: translateY(-10px);
}

.home-tools__motion {
  position: absolute;
  z-index: 1;
  top: -28px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f7fa;
  color: #64748d;
  cursor: pointer;
}

.home-tools__motion .material-icons { font-size: 18px; }
.home-tools__motion:disabled { opacity: .4; cursor: default; }

.home-tools :is(a, button, ul):focus-visible {
  outline: 2px solid #0066ff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .home-tools { padding-bottom: 48px; }
  .home-tools__apps { grid-auto-columns: 120px; gap: 6px; }
  .home-tools__app img[src$="/originals.svg"] { transform: translateX(3.571429%) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .home-tools__app { transition: none; }
}
