/* Product cards on the homepage. */
.solution-card {
  min-width: 0;
}
.solution-card-shell,
.solution-card-link {
  height: 100%;
}
.solution-card-link {
  display: flex;
  flex-direction: column;
}
.solution-card-link:focus-visible {
  outline: 3px solid #7644c4;
  outline-offset: -3px;
}
.solution-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #172234;
  overflow: hidden;
}
.solution-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.solution-card[data-project="cashbrain"] .solution-preview {
  background: #f9e8e2;
}
.solution-card[data-project="lemonclub"] .solution-preview {
  background: #eee7f6;
}
.solution-card[data-project="proxyventure"] .solution-preview {
  background: #101c32;
}
.solution-card[data-project="proxyrequest"] .solution-preview {
  background: #eaf0f3;
}
.solution-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.solution-card-link:hover .solution-preview-overlay,
.solution-card-link:focus-visible .solution-preview-overlay {
  opacity: 1;
}
.solution-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
}
.solution-title {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.solution-description {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
}
.solution-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.solution-cta i {
  transition: transform 0.2s ease;
}
.solution-card-link:hover .solution-cta i {
  transform: translateX(4px);
}

/* Technology widgets at the end of each case study. */
.portfolio-technology {
  --tech-ink: var(--case-ink, var(--p2p-ink, #1e293b));
  --tech-muted: var(--case-muted, var(--p2p-muted, #64748b));
  --tech-accent: var(--case-accent, var(--p2p-purple, #285fc0));
  --tech-line: var(--case-line, var(--p2p-line, #e2e8f0));
  padding: 84px 0;
  background: #fff;
  color: var(--tech-ink);
  scroll-margin-top: 80px;
}
.portfolio-technology .tech-wrap {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}
.portfolio-technology .tech-intro {
  max-width: 780px;
  margin-bottom: 36px;
}
.portfolio-technology .tech-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--tech-accent);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.portfolio-technology .tech-title {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.portfolio-technology .tech-description {
  margin: 0;
  color: var(--tech-muted);
  font-size: 16px;
  line-height: 1.8;
}
.portfolio-technology .tech-sdk-choice {
  margin-top: 16px;
}
.portfolio-technology .tech-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.portfolio-technology .tech-widget {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--tech-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px #18243a04;
}
.portfolio-technology .tech-widget-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 20px;
}
.portfolio-technology .tech-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px;
  background: var(--case-soft, #f7f8fb);
  border-radius: 10px;
}
.portfolio-technology .tech-icons img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.portfolio-technology .tech-widget-title {
  margin: 0;
  color: var(--tech-ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.portfolio-technology .tech-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--tech-muted);
  font-size: 14px;
  line-height: 1.7;
}
.portfolio-technology .tech-roles li + li {
  margin-top: 8px;
}
.portfolio-technology .tech-group-title {
  margin: 0 0 20px;
  color: var(--tech-ink);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.portfolio-technology .tech-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 32px;
  padding: 28px;
  background: var(--case-soft, #f8f7fa);
  border-radius: 14px;
}
.portfolio-technology .tech-support {
  flex: 1 1 300px;
  min-width: 0;
}
.portfolio-technology .tech-support .tech-group-title {
  margin-bottom: 12px;
}
.portfolio-technology .tech-support .tech-description {
  font-size: 14px;
}
.portfolio-technology .tech-support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.portfolio-technology .tech-support-list li {
  padding: 6px 12px;
  border: 1px solid var(--tech-line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
.portfolio-technology .tech-network {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.portfolio-technology .tech-network > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.portfolio-technology .tech-network dt {
  color: var(--tech-muted);
}
.portfolio-technology .tech-network dd {
  margin: 0;
  font-weight: 500;
}
.portfolio-technology .tech-support .tech-network-note {
  margin-top: 16px;
  max-width: 700px;
}
.portfolio-technology .tech-docs {
  display: inline-block;
  margin-top: 28px;
  color: var(--tech-accent);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.portfolio-technology .tech-docs:focus-visible {
  outline: 3px solid var(--tech-accent);
  outline-offset: 5px;
}
@media (min-width: 640px) {
  .portfolio-technology .tech-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .portfolio-technology .tech-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .solution-card-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .solution-card-wide .solution-preview-right {
    order: 2;
  }
  .solution-card-wide .solution-copy {
    padding: 40px;
    justify-content: center;
  }
  .solution-card-wide .solution-cta {
    margin-top: 8px;
  }
  .solution-card-wide .solution-title {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  .portfolio-technology {
    padding: 56px 0;
  }
  .portfolio-technology .tech-wrap {
    width: calc(100% - 40px);
  }
  .portfolio-technology .tech-compatibility {
    padding: 24px;
  }
}
@media (max-width: 479px) {
  .solution-copy {
    padding: 24px;
  }
  .solution-title {
    font-size: 23px;
  }
  .portfolio-technology .tech-network > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .solution-preview-overlay,
  .solution-cta i {
    transition: none;
  }
}
