
/* ===== Sticky bottom CTA (Andromeda) ===== */
.amd-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:150;
  display:flex;align-items:center;gap:14px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#C6FF3C 0%,#B6FF00 100%);
  border-top:1px solid rgba(0,0,0,.18);
  box-shadow:0 -8px 30px rgba(0,0,0,.35);
  font-family:'Prompt','Sarabun',sans-serif;color:#050505;
  transform:translateY(120%);opacity:0;pointer-events:none;
  transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .28s ease;
}
.amd-cta.is-visible{transform:translateY(0);opacity:1;pointer-events:auto}
.amd-cta__info{flex:1 1 auto;min-width:0;line-height:1.12}
.amd-cta__price{font-size:clamp(19px,5.6vw,24px);font-weight:700;letter-spacing:-.01em;color:#050505}
.amd-cta__price small{font-size:.6em;font-weight:600;color:rgba(5,5,5,.6);margin-left:2px}
.amd-cta__sub{margin-top:1px;font-size:clamp(10.5px,3.1vw,12.5px);font-weight:600;color:rgba(5,5,5,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amd-cta__btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;font-family:inherit;font-weight:700;font-size:clamp(15px,4.3vw,18px);color:#B6FF00;background:#050505;border:none;cursor:pointer;padding:13px clamp(18px,5.2vw,30px);border-radius:100px;box-shadow:0 4px 16px rgba(0,0,0,.4);white-space:nowrap;letter-spacing:.3px;transition:transform .12s ease,box-shadow .2s ease}
.amd-cta__btn:active{transform:scale(.96)}
.amd-cta__btn:hover{box-shadow:0 6px 22px rgba(0,0,0,.5)}
/* keep the resume-reading pill above the bar on mobile so they don't overlap */
@media (max-width:819px){
  body.amd-cta-on .resume-btn{bottom:calc(74px + env(safe-area-inset-bottom))!important}
}
/* desktop: floating centered pill instead of full-width bar */
@media (min-width:820px){
  .amd-cta{left:0;right:0;margin:0 auto;width:min(720px,calc(100% - 40px));bottom:20px;border-radius:16px;border:1px solid rgba(0,0,0,.2);padding:12px 18px}
}
@media (prefers-reduced-motion:reduce){
  .amd-cta{transition:opacity .2s ease}
}
/* ===== เมื่อปลดล็อกแล้ว (ซื้อแล้ว) ===== */
/* 1) ไม่ต้องแสดง sticky bar */
body[data-unlocked="true"] .amd-cta{display:none!important}
/* 2) ตัดช่วงโปรโมทลูกค้าใหม่ (hero -> เรื่องเล่า 05.03น.) ให้ hero ต่อเรื่องเล่าเลย
      (.pitch / #buy / .reviews-wrap / .pricing-wrap / .guarantee ถูกซ่อนไว้แล้วด้านบน) */
body[data-unlocked="true"] .prob-wrap,
body[data-unlocked="true"] .core-wrap,
body[data-unlocked="true"] .dec-wrap,
body[data-unlocked="true"] .amd-promo-cta,
body[data-unlocked="true"] .fbr-wrap,
body[data-unlocked="true"] .usecase-wrap,
body[data-unlocked="true"] .getlist-wrap{display:none!important}
