/* GEO Playbook lead-magnet popup. Namespaced under #pf-ebook so it can't collide
   with site styles. Matches the Pressfront palette + type. */
#pf-ebook{ position:fixed; inset:0; z-index:9999; font-family:var(--sans,"Inter",system-ui,sans-serif); }
#pf-ebook .pf-eb-scrim{
  position:absolute; inset:0; background:rgba(18,15,13,.55);
  opacity:0; transition:opacity .25s ease; backdrop-filter:blur(2px);
}
#pf-ebook.pf-eb-in .pf-eb-scrim{ opacity:1; }

#pf-ebook .pf-eb-card{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-46%) scale(.98);
  width:min(880px, calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:hidden;
  background:#f6f3ee; border-radius:8px; box-shadow:0 30px 80px rgba(0,0,0,.4);
  opacity:0; transition:opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
#pf-ebook.pf-eb-in .pf-eb-card{ opacity:1; transform:translate(-50%,-50%) scale(1); }

#pf-ebook .pf-eb-x{
  position:absolute; top:10px; right:12px; z-index:3; width:32px; height:32px;
  border:0; background:rgba(255,255,255,.14); color:#f3efe8; font-size:22px; line-height:1;
  border-radius:50%; cursor:pointer; transition:background .15s;
}
#pf-ebook .pf-eb-x:hover{ background:rgba(255,255,255,.28); }

#pf-ebook .pf-eb-grid{ display:grid; grid-template-columns:0.82fr 1fr; }

/* left: the book cover panel */
#pf-ebook .pf-eb-cover{
  position:relative; background:#120f0d; overflow:hidden;
  display:flex; align-items:center; justify-content:center; padding:38px 26px;
}
#pf-ebook .pf-eb-cover::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(120% 80% at 50% 0%, rgba(42,80,60,.6), transparent 60%);
}
#pf-ebook .pf-eb-book{
  position:relative; width:190px; padding:30px 22px; border-radius:3px;
  background:linear-gradient(160deg,#1c1815,#120f0d);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: -14px 16px 34px rgba(0,0,0,.5), inset 2px 0 0 rgba(255,255,255,.06);
}
#pf-ebook .pf-eb-eyebrow{
  font-size:8px; letter-spacing:.24em; color:#9d968b; line-height:1.7; margin-bottom:60px;
}
#pf-ebook .pf-eb-title{
  font-family:var(--serif,"Source Serif 4",Georgia,serif); font-weight:600;
  font-size:29px; line-height:1.04; color:#f3efe8; letter-spacing:-.01em;
}
#pf-ebook .pf-eb-title i{ color:#cfe0d3; font-weight:500; }
#pf-ebook .pf-eb-tag{
  margin-top:20px; font-size:9px; font-weight:600; letter-spacing:.22em; color:#cfe0d3;
  display:inline-block; padding-top:9px; border-top:1px solid rgba(188,208,193,.28);
}

/* right: the pitch + form */
#pf-ebook .pf-eb-body{ padding:34px 34px 30px; overflow-y:auto; }
#pf-ebook .pf-eb-kick{
  font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:#234a34; font-weight:600; margin-bottom:12px;
}
#pf-ebook .pf-eb-h{
  font-family:var(--serif,"Source Serif 4",Georgia,serif); font-weight:600;
  font-size:25px; line-height:1.12; letter-spacing:-.015em; color:#171310; margin:0 0 10px;
}
#pf-ebook .pf-eb-sub{ font-size:14px; line-height:1.55; color:#433d36; margin:0 0 16px; }
#pf-ebook .pf-eb-sub a{ color:#234a34; }
#pf-ebook .pf-eb-list{ list-style:none; margin:0 0 20px; padding:0; }
#pf-ebook .pf-eb-list li{
  position:relative; padding-left:24px; margin:0 0 9px; font-size:13.5px; line-height:1.45; color:#171310;
}
#pf-ebook .pf-eb-list li::before{
  content:"✓"; position:absolute; left:0; top:0; color:#234a34; font-weight:700;
}

#pf-ebook .pf-eb-form{ position:relative; }
#pf-ebook .pf-eb-row{ display:flex; gap:8px; }
#pf-ebook .pf-eb-input{
  flex:1; min-width:0; font:inherit; font-size:14px; padding:12px 14px;
  border:1px solid #d8cfc0; border-radius:5px; background:#fff; color:#171310;
}
#pf-ebook .pf-eb-input:focus{ outline:none; border-color:#234a34; box-shadow:0 0 0 3px rgba(35,74,52,.12); }
#pf-ebook .pf-eb-btn{
  flex:none; font:inherit; font-size:14px; font-weight:600; letter-spacing:.01em;
  padding:12px 20px; border:1px solid #234a34; background:#234a34; color:#fff;
  border-radius:5px; cursor:pointer; white-space:nowrap; transition:background .15s,color .15s;
}
#pf-ebook .pf-eb-btn:hover{ background:transparent; color:#234a34; }
#pf-ebook .pf-eb-btn:disabled{ opacity:.6; cursor:default; }
#pf-ebook .pf-eb-msg{ font-size:12.5px; margin-top:9px; min-height:1px; color:#234a34; }
#pf-ebook .pf-eb-msg.pf-eb-err{ color:#9a3412; }
#pf-ebook .pf-eb-fine{ font-size:11px; color:#837b70; margin-top:11px; line-height:1.5; }
#pf-ebook .pf-eb-dl{ color:#234a34; font-weight:600; }

/* mobile: stack, hide the cover art to save height */
@media (max-width:640px){
  #pf-ebook .pf-eb-grid{ grid-template-columns:1fr; }
  #pf-ebook .pf-eb-cover{ display:none; }
  #pf-ebook .pf-eb-body{ padding:40px 22px 26px; }
  #pf-ebook .pf-eb-h{ font-size:22px; }
  #pf-ebook .pf-eb-row{ flex-direction:column; }
  #pf-ebook .pf-eb-btn{ width:100%; }
  #pf-ebook .pf-eb-card{ transform:translate(-50%,-50%); top:50%; }
}
@media (prefers-reduced-motion:reduce){
  #pf-ebook .pf-eb-card, #pf-ebook .pf-eb-scrim{ transition:none; }
}
