/* Header / eBook Hero — compiled from src/global-flexible-content/scss/header__ebook_hero.scss
   (hand-compiled; will be regenerated by `npm run build` in src/global-flexible-content) */

.gfc.header__ebook_hero {
  position: relative;
  background: linear-gradient(95deg, #B31983 0%, #C2317B 65%, #E0532B 88%, #F47721 100%);
  color: #FFFFFF;
  overflow: hidden;
  padding: clamp(48px, 6.5vw, 88px) clamp(24px, 5vw, 80px) clamp(64px, 8vw, 112px);
}
.gfc.header__ebook_hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 92% 92%, rgba(102, 28, 120, 0.35), transparent 50%);
  pointer-events: none;
}
.gfc.header__ebook_hero .eb-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
}
.gfc.header__ebook_hero .eb-hero__copy {
  max-width: 32em;
  position: relative;
}
.gfc.header__ebook_hero .eb-hero__title {
  color: #FFFFFF;
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.gfc.header__ebook_hero .eb-hero__title em {
  font-style: normal;
  font-family: "Caveat", cursive;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.78em;
  line-height: 0.9;
  color: #FFE2B0;
  display: inline-block;
  transform: translateY(0.08em) rotate(-1.5deg);
  position: relative;
  white-space: nowrap;
  margin-bottom: 1.5rem;
}
.gfc.header__ebook_hero .eb-hero__title em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 6%;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' fill='none'><path d='M3 6 C 40 2, 80 9, 120 4 C 160 1, 180 6, 197 5' stroke='%23FFE2B0' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='0.85'/></svg>") no-repeat;
  background-size: 100% 100%;
}
.gfc.header__ebook_hero .eb-hero__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  margin: 0;
  max-width: 32em;
  text-wrap: pretty;
}
.gfc.header__ebook_hero .eb-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.gfc.header__ebook_hero .eb-hero__glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 226, 176, 0.42), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.gfc.header__ebook_hero .eb-hero__cover-img {
  position: relative;
  z-index: 1;
  width: clamp(260px, 32vw, 380px);
  height: auto;
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 32px 60px -22px rgba(0, 0, 0, 0.55),
    0 12px 24px -10px rgba(0, 0, 0, 0.35);
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gfc.header__ebook_hero .eb-hero__cover-img:hover {
  transform: rotateY(-6deg) rotateX(1deg) translateY(-12px) scale(1.04);
  box-shadow:
    0 44px 80px -26px rgba(0, 0, 0, 0.6),
    0 18px 36px -12px rgba(0, 0, 0, 0.4);
}
.gfc.header__ebook_hero .eb-book {
  position: relative;
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 5/7;
  perspective: 1800px;
  z-index: 1;
}
.gfc.header__ebook_hero .eb-book__inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gfc.header__ebook_hero .eb-book__face {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 32px 60px -22px rgba(0, 0, 0, 0.55),
    0 12px 24px -10px rgba(0, 0, 0, 0.35),
    inset 4px 0 0 rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #2A1640 0%, #661C78 38%, #B31983 72%, #F47721 100%);
  transition: box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gfc.header__ebook_hero .eb-book:hover .eb-book__inner {
  transform: rotateY(-6deg) rotateX(1deg) translateY(-12px) scale(1.04);
}
.gfc.header__ebook_hero .eb-book:hover .eb-book__face {
  box-shadow:
    0 44px 80px -26px rgba(0, 0, 0, 0.6),
    0 18px 36px -12px rgba(0, 0, 0, 0.4),
    inset 4px 0 0 rgba(0, 0, 0, 0.18);
}
.gfc.header__ebook_hero .eb-book__face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 226, 176, 0.4), transparent 40%),
    radial-gradient(circle at 10% 110%, rgba(0, 175, 170, 0.35), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}
.gfc.header__ebook_hero .eb-book__spine-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}
.gfc.header__ebook_hero .eb-book__pages {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -8px;
  width: 12px;
  background: repeating-linear-gradient(180deg, #FCFAF6 0px, #FCFAF6 2px, #E8E4DC 2px, #E8E4DC 3px);
  border-radius: 0 6px 6px 0;
  transform: rotateY(8deg) translateZ(0);
  transform-origin: left center;
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.25);
}
.gfc.header__ebook_hero .eb-book__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(20px, 2.4vw, 34px) clamp(22px, 2.6vw, 36px) clamp(24px, 3vw, 38px) clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}
.gfc.header__ebook_hero .eb-book__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
}
.gfc.header__ebook_hero .eb-book__brand-mark {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
}
.gfc.header__ebook_hero .eb-book__brand-mark span {
  display: block;
  border-radius: 2px;
  background: #FFFFFF;
}
.gfc.header__ebook_hero .eb-book__brand-mark span:nth-child(2),
.gfc.header__ebook_hero .eb-book__brand-mark span:nth-child(3) {
  background: #FFE2B0;
}
.gfc.header__ebook_hero .eb-book__type {
  font-family: "Caveat", cursive;
  font-size: clamp(18px, 1.6vw, 24px);
  color: #FFE2B0;
  margin: clamp(14px, 2vw, 22px) 0 6px;
  line-height: 1;
  transform: rotate(-2deg);
}
.gfc.header__ebook_hero .eb-book__title {
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: #FFFFFF;
  text-wrap: balance;
}
.gfc.header__ebook_hero .eb-book__rule {
  height: 2px;
  width: 56px;
  background: #FFE2B0;
  margin: clamp(14px, 2vw, 22px) 0 14px;
  opacity: 0.95;
}
.gfc.header__ebook_hero .eb-book__subtitle {
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.45;
  opacity: 0.88;
  max-width: 22ch;
  margin: 0;
  text-wrap: pretty;
}
.gfc.header__ebook_hero .eb-book__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.gfc.header__ebook_hero .eb-book__edition {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
.gfc.header__ebook_hero .eb-book__seal {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.1;
  color: #FFFFFF;
  opacity: 0.85;
}
.gfc.header__ebook_hero .eb-hero__callout {
  position: absolute;
  z-index: 4;
  background: #fff;
  color: #343741;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 30px 60px -28px rgba(52, 55, 65, 0.28), 0 10px 30px -12px rgba(52, 55, 65, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}
.gfc.header__ebook_hero .eb-hero__callout-num {
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #B31983 0%, #C2317B 65%, #E0532B 88%, #F47721 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}
.gfc.header__ebook_hero .eb-hero__callout-label {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #343741;
  max-width: 13ch;
}
.gfc.header__ebook_hero .eb-hero__callout-label small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00AFAA;
  margin-bottom: 4px;
}
.gfc.header__ebook_hero .eb-hero__callout--tl {
  top: 4%;
  right: -4%;
  transform: rotate(2.5deg);
}
.gfc.header__ebook_hero .eb-hero__callout--bl {
  bottom: 6%;
  left: -7%;
  transform: rotate(-2.5deg);
}
.gfc.header__ebook_hero .eb-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  fill: none;
}
.gfc.header__ebook_hero .eb-doodle--circle {
  top: -20px;
  right: 14%;
  width: 90px;
  color: rgba(255, 226, 176, 0.75);
  transform: rotate(-8deg);
}
@media (max-width: 920px) {
  .gfc.header__ebook_hero .eb-hero__grid { grid-template-columns: 1fr; }
  .gfc.header__ebook_hero .eb-hero__visual { min-height: 440px; }
  .gfc.header__ebook_hero .eb-hero__callout--bl { left: 4%; }
  .gfc.header__ebook_hero .eb-hero__callout--tl { right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .gfc.header__ebook_hero .eb-book__inner,
  .gfc.header__ebook_hero .eb-hero__cover-img { transition: none; }
}
