/* Composição do produto: livro com lombada, dispositivos e folhas reais. */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: .76;
  margin: 6px auto 30px;
  isolation: isolate;
}
.hero-showcase { position: relative; width: 100%; height: 100%; }
.hero-cover {
  position: absolute;
  z-index: 4;
  top: 1%;
  left: 5%;
  width: 43%;
  transform: rotate(-2deg);
  filter: drop-shadow(0 14px 12px rgba(26, 51, 42, .23));
}
.hero-cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border: 1px solid #114f43;
  border-radius: 1px 3px 3px 1px;
  transform: perspective(900px) rotateY(-10deg);
  transform-origin: left center;
}
.book-spine {
  position: absolute;
  z-index: 3;
  top: 1px;
  bottom: 1px;
  left: -11px;
  width: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #063c32;
  border-right: 1px solid #bdc39c;
  background: linear-gradient(90deg, #083f35, #137764 65%, #075343);
  color: #fff4ce;
  writing-mode: vertical-rl;
  transform: skewY(-9deg);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}
.hero-cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4px -3px -4px 1px;
  border: 1px solid #b5c0b4;
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, #fbfaf1 0 1px, #d3d7cb 1px 2px);
  transform: perspective(900px) rotateY(-10deg);
  transform-origin: left center;
}
.hero-device {
  position: absolute;
  margin: 0;
  border: 2px solid #202b26;
  background: #26352e;
  padding: 4px;
  box-shadow: 0 10px 15px rgba(24, 45, 36, .2), inset 0 0 0 1px #64736b;
}
.hero-tablet {
  z-index: 3;
  top: 5%;
  left: 47%;
  width: 34%;
  aspect-ratio: .67;
  border-radius: 10px;
  transform: rotate(1deg);
}
.hero-tablet::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #89978c;
}
.device-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 5px; background: #fff; }
.device-screen img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hero-phone {
  z-index: 5;
  top: 14%;
  left: 76%;
  width: 22%;
  aspect-ratio: .5;
  padding: 4px 3px;
  border-radius: 12px;
  transform: rotate(1deg);
}
.hero-phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 38%;
  width: 24%;
  height: 3px;
  border-radius: 9px;
  background: #172c22;
}
.hero-phone .device-screen { display: flex; flex-direction: column; border-radius: 7px; background: #116351; }
.hero-phone .device-screen img { flex: 1; min-height: 0; object-fit: contain; }
.phone-brand, .phone-footer { flex-shrink: 0; color: #fff9df; text-align: center; line-height: 1.15; }
.phone-brand { padding: 7px 2px 4px; font-size: 7px; font-weight: 900; }
.phone-footer { padding: 4px 1px; font-size: 4px; font-weight: 700; letter-spacing: .06em; }
.hero-page-collage { position: absolute; inset: 0; pointer-events: none; }
.hero-page-sheet { display: block; height: auto; border: 1px solid #e1e6df; border-radius: 1px; background: #fff; box-shadow: 0 8px 14px rgba(28, 48, 41, .14); }
.back-sheet { position: absolute; top: 43%; width: 42%; }
.back-sheet-one { z-index: 1; left: 7%; transform: rotate(-4deg); }
.back-sheet-two { z-index: 2; left: 49%; transform: rotate(3deg); }
.hero-page-row { position: absolute; z-index: 6; top: 65%; left: 3%; width: 94%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 4px; }
.preview-page { position: relative; width: 100%; padding: 2px; }
.preview-page-one { transform: rotate(-3deg); margin-top: 4%; }
.preview-page-two { transform: rotate(-.5deg); }
.preview-page-four { transform: rotate(3deg); margin-top: 4%; }
@media (max-width: 600px) {
  .hero-mockup-wrapper { width: calc(100% + 8px); max-width: none; margin-left: -4px; }
}
