/* PetBond — slate frames in light mode, coral frames in dark mode */

.pb-showcase.showcase--hero::before {
  background: radial-gradient(
    circle,
    rgba(64, 72, 86, 0.28) 0%,
    rgba(64, 72, 86, 0.08) 46%,
    transparent 72%
  );
}

[data-theme="dark"] .pb-showcase.showcase--hero::before {
  background: radial-gradient(
    circle,
    rgba(238, 100, 92, 0.22) 0%,
    rgba(238, 100, 92, 0.05) 48%,
    transparent 72%
  );
}

.pb-showcase .screen-panel__card {
  background: linear-gradient(
    165deg,
    #d5dae2 0%,
    #8d95a3 34%,
    #404856 68%,
    #2a313b 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(24, 28, 36, 0.25),
    0 24px 48px rgba(64, 72, 86, 0.22),
    0 0 0 1px rgba(64, 72, 86, 0.08);
}

[data-theme="dark"] .pb-showcase .screen-panel__card {
  background: linear-gradient(
    165deg,
    #f08a84 0%,
    #EE645C 36%,
    #8e3d39 70%,
    #2a1614 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(238, 100, 92, 0.2);
}

.pb-showcase .screen-panel__card::after {
  background: #eef0f3;
}

[data-theme="dark"] .pb-showcase .screen-panel__card::after {
  background: #120d0f;
}

.pb-showcase .screen-panel__shadow {
  background: radial-gradient(ellipse, rgba(64, 72, 86, 0.28) 0%, transparent 72%);
}

[data-theme="dark"] .pb-showcase .screen-panel__shadow {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
}

.pb-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.pb-showcase.showcase--hero {
  min-height: 580px;
  padding: 8px 0 24px;
}

.pb-showcase.showcase--hero .showcase-stack {
  width: min(360px, 100%);
  height: min(580px, 68vh);
}

.pb-showcase.showcase--hero .screen-panel--xl {
  --panel-w: min(300px, 88%);
}

.pb-showcase.showcase--hero::before {
  width: 420px;
  height: 420px;
}

.pb-showcase .screen-panel--xl {
  --panel-w: min(300px, 88%);
}

.pb-showcase .screen-panel--lg {
  --panel-w: min(280px, 86vw);
}

.pb-screenshot-item .showcase {
  min-height: 500px;
  width: 100%;
}

.pb-split-visual .showcase {
  min-height: 560px;
  width: 100%;
}

.pb-screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pb-screenshot-item figcaption {
  margin-top: 14px;
}

.pb-split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pb-showcase .pb-shot--dark {
  display: none;
}

[data-theme="dark"] .pb-showcase .pb-shot--light {
  display: none;
}

[data-theme="dark"] .pb-showcase .pb-shot--dark {
  display: block;
}

.pb-hero-screen img,
.pb-showcase .screen-panel__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pb-showcase .showcase-stack:has(.screen-panel:only-child) .screen-panel {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  margin: 0 auto;
  scale: 1;
}

@media (max-width: 900px) {
  .pb-showcase.showcase--hero {
    min-height: 520px;
  }

  .pb-showcase.showcase--hero .showcase-stack {
    width: min(300px, 92vw);
    height: min(520px, 62vh);
  }

  .pb-showcase .screen-panel--xl {
    --panel-w: min(270px, 86vw);
  }

  .pb-showcase .screen-panel--lg {
    --panel-w: min(250px, 84vw);
  }

  .pb-screenshot-item .showcase {
    min-height: 460px;
  }

  .pb-split-visual .showcase {
    min-height: 500px;
  }
}
