/* V25 — use the previously empty hero space for the eBook lead magnet.
   Scoped to hero layout + game completion CTA only. */

.hero-grid--with-ebook{
  display:grid !important;
  grid-template-columns:minmax(0,1.1fr) minmax(330px,.72fr) !important;
  gap:54px !important;
  align-items:center !important;
  max-width:1180px !important;
  text-align:left !important;
  margin-top:12px !important;
}
.hero-grid--with-ebook .hero-copy{
  max-width:700px !important;
  margin:0 !important;
}
.hero-grid--with-ebook .hero-lead{
  margin-left:0 !important;
  margin-right:0 !important;
  max-width:650px !important;
}
.hero-grid--with-ebook .hero-actions{justify-content:flex-start !important}
.hero-grid--with-ebook .microcopy{margin-left:0 !important;margin-right:0 !important;max-width:650px !important}

.hero-ebook-card{
  position:relative;
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:19px;
  align-items:center;
  padding:18px;
  border:1px solid rgba(21,61,55,.12);
  border-radius:24px;
  background:rgba(255,253,248,.92);
  box-shadow:0 18px 55px rgba(27,50,45,.11);
  overflow:hidden;
}
.hero-ebook-card::after{
  content:"";
  position:absolute;
  width:190px;height:190px;
  right:-110px;top:-105px;
  border:1px solid rgba(216,107,43,.17);
  border-radius:50%;
  box-shadow:0 0 0 35px rgba(216,107,43,.045),0 0 0 70px rgba(216,107,43,.025);
  pointer-events:none;
}
.hero-ebook-cover-wrap{position:relative;z-index:1}
.hero-ebook-cover-wrap img{
  width:128px;
  aspect-ratio:1055/1491;
  object-fit:cover;
  border-radius:9px;
  box-shadow:0 15px 27px rgba(19,48,43,.22);
  transform:rotate(-1.5deg);
}
.hero-ebook-gift{
  position:absolute;
  z-index:2;
  left:-7px;top:11px;
  padding:6px 8px;
  border-radius:999px;
  background:#d86b2b;
  color:#fff;
  font:800 8px/1 "DM Sans",sans-serif;
  letter-spacing:.13em;
  box-shadow:0 6px 14px rgba(109,47,17,.20);
}
.hero-ebook-content{position:relative;z-index:1;min-width:0}
.hero-ebook-kicker{
  margin:0 0 5px;
  color:#c45f29;
  font:800 9px/1.25 "DM Sans",sans-serif;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.hero-ebook-content h2{
  margin:0 0 7px !important;
  font:600 clamp(28px,2.5vw,37px)/.96 "Newsreader",Georgia,serif !important;
  letter-spacing:-.035em !important;
  color:#153d37 !important;
}
.hero-ebook-content h2 em{color:#d86b2b !important;font-weight:500 !important}
.hero-ebook-content>p:not(.hero-ebook-kicker){
  margin:0;
  color:#56635f;
  font:500 12.5px/1.48 "DM Sans",sans-serif;
}
.hero-ebook-mini-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:11px 0 12px;
}
.hero-ebook-mini-benefits span{
  padding:5px 7px;
  border-radius:999px;
  background:#f4eee4;
  color:#36534d;
  font:700 9px/1.1 "DM Sans",sans-serif;
  white-space:nowrap;
}
.hero-ebook-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  background:#153d37;
  color:#fff;
  font:800 12px/1.2 "DM Sans",sans-serif;
  box-shadow:0 10px 22px rgba(21,61,55,.16);
}
.hero-ebook-cta:hover{background:#0c302b;transform:translateY(-1px)}
.hero-ebook-cta b{font-size:17px;color:#f2b64e}
.hero-ebook-content small{
  display:block;
  margin-top:7px;
  text-align:center;
  color:#7b817e;
  font:600 8.5px/1.3 "DM Sans",sans-serif;
}

/* The eBook CTA after the breathing game should be impossible to miss. */
.hero-game-complete .hero-game-free{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:min(100%,620px) !important;
  margin:3px auto 1px !important;
  padding:11px 18px !important;
  border:1px solid rgba(246,207,155,.52) !important;
  border-radius:999px !important;
  background:rgba(216,107,43,.15) !important;
  color:#ffe0b7 !important;
  font:800 14px/1.2 "DM Sans",sans-serif !important;
  text-decoration:none !important;
  box-shadow:0 8px 18px rgba(0,0,0,.08) !important;
}
.hero-game-complete .hero-game-free:hover{background:rgba(216,107,43,.25) !important;color:#fff !important}
.hero-game-complete .hero-play-again{font-size:10.5px !important}

/* With the lead magnet now in the hero, avoid excessive empty vertical space. */
.hero-grid--with-ebook + .thane-strip{margin-top:58px !important}

@media(max-width:950px){
  .hero-grid--with-ebook{
    grid-template-columns:minmax(0,1fr) 310px !important;
    gap:30px !important;
  }
  .hero-ebook-card{grid-template-columns:105px minmax(0,1fr);gap:14px;padding:15px}
  .hero-ebook-cover-wrap img{width:105px}
  .hero-ebook-content h2{font-size:28px !important}
  .hero-ebook-content>p:not(.hero-ebook-kicker){font-size:11px}
  .hero-ebook-mini-benefits span{font-size:8px}
  .hero-ebook-cta{font-size:10.5px;padding:10px 11px}
}

@media(max-width:760px){
  .hero-grid--with-ebook{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:24px !important;
    margin-top:6px !important;
  }
  .hero-grid--with-ebook .hero-copy{max-width:none !important}
  .hero-ebook-card{grid-template-columns:100px minmax(0,1fr);gap:14px;padding:14px;border-radius:20px}
  .hero-ebook-cover-wrap img{width:100px}
  .hero-ebook-gift{font-size:7px;left:-5px}
  .hero-ebook-content h2{font-size:27px !important}
  .hero-ebook-content>p:not(.hero-ebook-kicker){font-size:11px;line-height:1.4}
  .hero-ebook-mini-benefits{margin:9px 0 10px}
  .hero-ebook-mini-benefits span{font-size:7.5px;padding:4px 6px}
  .hero-ebook-cta{font-size:10.5px;padding:10px 11px}
  .hero-game-complete .hero-game-free{font-size:12px !important;padding:10px 12px !important}
  .hero-grid--with-ebook + .thane-strip{margin-top:36px !important}
}

@media(max-width:430px){
  .hero-ebook-card{grid-template-columns:86px minmax(0,1fr);gap:11px;padding:12px}
  .hero-ebook-cover-wrap img{width:86px}
  .hero-ebook-content h2{font-size:24px !important}
  .hero-ebook-kicker{font-size:7.5px}
  .hero-ebook-mini-benefits span{font-size:7px}
  .hero-game-complete .hero-game-free{font-size:11px !important;line-height:1.3 !important}
}
