.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #dde4f1;
  border-radius: 1.5rem;
  background: linear-gradient(115deg, var(--card-start), var(--card-end));
}

.detail-platform {
  display: inline-block;
  margin: 0 0 0.75rem;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.detail-lede {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.65;
}

.detail-icon {
  width: clamp(5rem, 15vw, 9rem);
  height: auto;
  border-radius: 25%;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.detail-button {
  display: inline-block;
  padding: 0.625rem 0.9375rem;
  border: 1px solid var(--card-accent);
  border-radius: 0.625rem;
  background: var(--card-accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.detail-button.secondary {
  background: #fff;
  color: var(--card-accent);
}

.detail-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.detail-section {
  margin-block: 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.detail-panel {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid #dde4f1;
  border-radius: 1rem;
  background: #fff;
}

.detail-panel h3 {
  margin: 0;
  font-size: 1.125rem;
}

.detail-panel p,
.detail-panel ol {
  margin: 0.5rem 0 0;
  color: #4e5d78;
  line-height: 1.65;
}

.detail-gallery figure {
  margin: 0;
}

.detail-gallery a {
  display: block;
  border-radius: 0.75rem;
}

.detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dde4f1;
  border-radius: 0.75rem;
}

.detail-gallery .portrait {
  max-width: 30rem;
}

.damaged-app-grid {
  align-items: center;
}

.damaged-app-screenshot {
  justify-self: center;
  max-width: 18rem;
  text-align: center;
}

.detail-gallery .damaged-app-screenshot img {
  border: 0;
}

.detail-gallery figcaption {
  margin-top: 0.5rem;
  color: #4e5d78;
}

.detail-qr {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--card-accent);
  font-weight: 700;
  text-align: center;
}

.detail-qr img {
  display: block;
  width: 10rem;
  height: auto;
}

@media (max-width: 40rem) {
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 1.25rem;
  }

  .detail-icon {
    grid-row: 1;
  }
}
