/* Homepage block after the marquee: reliability plaques. Tokens from the glass dump. */

.deeds {
  padding: 10vh var(--gutter) 9vh;
}

.deeds-head,
.deeds-card {
  background: linear-gradient(#1e1e2066, #0c0c0e4d);
  box-shadow: 0 0 0 1px #ffffff17;
  color: var(--ink);
}

.deeds-head {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  padding: 36px 40px;
  border-radius: var(--r-xl);
}

.deeds-copy {
  min-width: 0;
}

.deeds-head .display {
  overflow-wrap: anywhere;
}

.deeds-head .lede {
  max-width: 42ch;
  margin-top: 14px;
}

.deeds-bill,
.deeds-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.deeds-bill {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(#1e1e2066, #0c0c0e4d);
  box-shadow: 0 0 0 1px #ffffff17;
}

.deeds-bill svg,
.deeds-ico svg {
  display: block;
}

.deeds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.deeds-card {
  appearance: none;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 22px;
  padding: 26px 26px 28px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.deeds-card:active {
  transform: scale(0.97);
}

.deeds-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
}

.deeds-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.deeds-card h3 {
  min-width: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.deeds-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(#1e1e2066, #0c0c0e4d);
  box-shadow: 0 0 0 1px #ffffff17;
}

.deeds-body,
.deeds-note {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.deeds-note {
  color: var(--ink-3);
  font-size: 14px;
}

.deeds-dl {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .deeds-dl {
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 150ms cubic-bezier(0.23, 1, 0.32, 1),
      transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .deeds-card:hover .deeds-dl,
  .deeds-card:focus-visible .deeds-dl {
    opacity: 1;
    transform: none;
  }
}

html.js .deeds-grid .fade-up[data-pre-in]:nth-child(1) {
  animation-delay: 40ms;
}

html.js .deeds-grid .fade-up[data-pre-in]:nth-child(2) {
  animation-delay: 100ms;
}

@media (max-width: 760px) {
  .deeds {
    padding: 8vh var(--gutter) 7vh;
  }

  .deeds-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
  }

  .deeds-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deeds .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .deeds-dl {
    transform: none;
  }

  .deeds-card,
  .deeds-card:active {
    transform: none;
  }
}

html.rm .deeds .fade-up {
  opacity: 1;
  transform: none;
  animation: none;
}

html.rm .deeds-dl {
  transform: none;
}

html.rm .deeds-card,
html.rm .deeds-card:active {
  transform: none;
}
