/* =========================================================
   WordSqueezer – Monetization layer v1
   Loaded AFTER assets/style.css.
   Does not replace the existing design.
   ========================================================= */

/* Right rail: exact requested desktop format */
.ad-rail{
  position:sticky;
  top:120px; /* below the sticky header */
  width:300px;
}

.ad-box-rail,
.ad-placeholder-rail{
  width:300px;
  height:600px;
  min-height:600px;
}

/* Bottom banner, immediately above footer */
.bottom-ad-wrap{
  width:100%;
  max-width:1160px;
  margin:54px auto 0;
  padding:0 24px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.bottom-ad-box,
.bottom-ad-placeholder{
  width:728px;
  max-width:100%;
  min-height:90px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.35);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  overflow:hidden;
}

.bottom-ad-placeholder small,
.bottom-ad-box .ad-label{
  font-size:.62rem;
  letter-spacing:.12em;
  color:#96958e;
}

.bottom-ad-placeholder strong{
  font-size:1.05rem;
  color:#aaa79f;
}

.bottom-ad-ins{
  width:100%;
  min-height:90px;
}

/* Premium must never reserve empty ad space */
.is-premium .ad-rail,
.is-premium .bottom-ad-wrap{
  display:none !important;
}

/* Premium page */
.premium-page{
  max-width:780px;
}

.premium-offer{
  margin:26px 0 18px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
}

.premium-price-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.premium-price{
  font-size:clamp(4rem,10vw,6.5rem);
  line-height:.82;
  font-weight:900;
  letter-spacing:-.07em;
}

.premium-term{
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  padding-bottom:7px;
}

.premium-facts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0 24px;
}

.premium-facts div{
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px;
  background:#fff;
}

.premium-facts strong,
.premium-facts span{
  display:block;
}

.premium-facts strong{
  font-size:.82rem;
}

.premium-facts span{
  color:var(--muted);
  font-size:.72rem;
  margin-top:3px;
}

.premium-benefits{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:22px 0;
}

.premium-benefits article{
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  background:var(--paper);
}

.premium-benefits h2{
  margin:6px 0 7px;
  font-size:1.25rem;
}

.premium-benefits p{
  margin:0;
  color:var(--muted);
}

.premium-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 17px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-weight:900;
}

.premium-checkout-disabled{
  display:inline-block;
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--muted);
  background:#fff;
}

.premium-free-core{
  margin:36px 0 0;
  padding:24px 0;
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
}

.premium-free-core strong{
  font-size:1.2rem;
}

.premium-free-core p{
  color:var(--muted);
  margin-bottom:0;
}

/* Mobile: no right rail. Bottom ad stays centered/responsive. */
@media(max-width:1080px){
  .ad-rail{
    display:none !important;
  }
}

@media(max-width:720px){
  .bottom-ad-wrap{
    margin-top:36px;
    padding:0 14px;
  }

  .bottom-ad-box,
  .bottom-ad-placeholder{
    width:100%;
    min-height:100px;
  }

  .bottom-ad-placeholder strong{
    font-size:.9rem;
  }

  .premium-offer{
    padding:20px;
  }

  .premium-facts,
  .premium-benefits{
    grid-template-columns:1fr;
  }

  .premium-price{
    font-size:4.3rem;
  }
}
