.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1d1f24;
  box-shadow: 0 1px 0 var(--color-line);
  color: #ffffff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.tool::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 13, 13, .05) 0%, rgba(13, 13, 13, .25) 35%, rgba(10, 20, 40, .92) 72%);
}

.tool__screenshot {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s;
}

.tool__top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool__logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  color: #ffffff;
  font-size: 24px;
}

.tool__logo--yellow {
  background: var(--color-yellow);
  color: var(--color-on-yellow);
}

.tool__logo img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.tool__status {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .75em;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success-text);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.tool__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tool__body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.tool__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.tool__description {
  margin: 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .88);
}

.tool__button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .4em;
  margin-top: 8px;
  padding: .45em 1em;
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  color: var(--color-on-yellow);
  font-size: .9rem;
  font-weight: 700;
}

a.tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0, 40, 100, .6);
}

a.tool:hover .tool__screenshot {
  transform: scale(1.04);
}

.tool--soon {
  cursor: default;
}

.tool--soon::after {
  background: linear-gradient(180deg, rgba(10, 20, 40, .35) 0%, rgba(10, 20, 40, .5) 45%, rgba(10, 20, 40, .9) 75%);
}

.tool--soon .tool__screenshot {
  transform: scale(1.08);
}

.tool--soon .tool__top,
.tool--soon .tool__button {
  filter: blur(4px);
}

.tool__popup {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .55);
  color: var(--color-text);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.tool__popup-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--color-yellow);
  color: var(--color-on-yellow);
  font-size: 20px;
}

.tool__popup-text {
  font-size: .95rem;
  font-weight: 700;
}

.page-intro .container > * {
  animation: tools-rise .6s ease-out both;
}

.page-intro .eyebrow {
  animation-delay: .05s;
}

.page-intro h1 {
  animation-delay: .12s;
}

.page-intro .lead {
  animation-delay: .2s;
}

.tools > li {
  animation: tools-rise .6s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(.3s + var(--order, 0) * 90ms);
}

.tools > li:nth-child(2) {
  --order: 1;
}

.tools > li:nth-child(3) {
  --order: 2;
}

.tools > li:nth-child(4) {
  --order: 3;
}

.tools > li:nth-child(5) {
  --order: 4;
}

.tools > li:nth-child(6) {
  --order: 5;
}

.tool__status::before {
  animation: tools-status-blink 2s ease-in-out infinite;
}

.tool--soon .tool__status::before {
  animation: none;
}

.tool--soon .tool__popup {
  animation: tools-popup-in .5s cubic-bezier(.3, 1.4, .5, 1) both;
  animation-delay: calc(.75s + var(--order, 0) * 90ms);
}

.tool--soon.is-pinged .tool__popup {
  animation: tools-popup-in .5s cubic-bezier(.3, 1.4, .5, 1) both, popup-ping .5s ease-out;
  animation-delay: calc(.75s + var(--order, 0) * 90ms), 0s;
}

.tool--soon .tool__popup-icon .icon {
  animation: tools-hourglass 3s ease-in-out infinite;
}

@keyframes tools-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes tools-popup-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.85);
  }
}

@keyframes tools-status-blink {
  50% {
    opacity: .35;
  }
}

@keyframes tools-hourglass {
  0%,
  60% {
    transform: rotate(0);
  }

  80%,
  100% {
    transform: rotate(180deg);
  }
}

@keyframes popup-ping {
  40% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.sso-message {
  max-width: 64ch;
  margin: 18px 0 0;
  padding: 12px 18px;
  border-left: 4px solid currentColor;
  border-radius: var(--radius-sm);
  font-weight: 600;
  animation: tools-rise .5s ease-out both;
}

.sso-message--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.sso-message--error {
  background: #fde8e7;
  color: #a1261d;
}

@media (max-width: 960px) {
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tools {
    grid-template-columns: 1fr;
  }
}

