/* TradeCert house promo v2 — sticky anchor + 2-step QUESTION ad (Q -> pitch).
   Fills the tool page while optAd360 approval is pending. Theme-aware, honest
   (no fake ratings/counts). Copy is English: the app targets US CDL/EPA-608. */
:root{--hp-play:#01875f;--hp-play2:#046c4e;--hp-card:#fff;--hp-ink:#0f172a;--hp-mut:#5b6b7f;--hp-line:#e2e8f0;--hp-soft:#f1f5f9}
@media (prefers-color-scheme:dark){:root{--hp-card:#121b2b;--hp-ink:#e7eef7;--hp-mut:#93a3b8;--hp-line:#1f2a3c;--hp-soft:#0e1725}}
.hp-font{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}

/* ---- sticky anchor ---- */
.hp-anchor{position:fixed;left:0;right:0;bottom:0;z-index:9000;display:flex;align-items:center;gap:12px;
  padding:9px 12px;background:var(--hp-card);border-top:1px solid var(--hp-line);
  box-shadow:0 -4px 18px rgba(15,23,42,.12);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.hp-anchor img{width:44px;height:44px;border-radius:10px;flex:0 0 auto}
.hp-anchor .hp-tx{flex:1;min-width:0}
.hp-anchor .hp-nm{font-weight:800;font-size:14px;color:var(--hp-ink);line-height:1.2}
.hp-anchor .hp-sb{font-size:12px;color:var(--hp-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-cta{flex:0 0 auto;background:var(--hp-play);color:#fff;font-weight:700;font-size:13px;
  padding:9px 16px;border-radius:8px;text-decoration:none;white-space:nowrap;border:0;cursor:pointer}
.hp-cta:hover{background:var(--hp-play2)}
.hp-x{flex:0 0 auto;background:none;border:0;color:var(--hp-mut);font-size:22px;line-height:1;cursor:pointer;padding:2px 6px}

/* ---- overlay + modal ---- */
.hp-overlay{position:fixed;inset:0;z-index:9500;background:rgba(15,23,42,.62);
  display:flex;align-items:center;justify-content:center;padding:18px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  animation:hp-fade .18s ease}
@keyframes hp-fade{from{opacity:0}to{opacity:1}}
.hp-modal{background:var(--hp-card);border-radius:20px;max-width:360px;width:100%;padding:24px 22px 18px;
  text-align:center;box-shadow:0 24px 64px rgba(0,0,0,.42);animation:hp-pop .22s cubic-bezier(.2,.8,.25,1)}
@keyframes hp-pop{from{transform:translateY(10px) scale(.97);opacity:.4}to{transform:none;opacity:1}}
.hp-tag{font-size:10px;letter-spacing:.6px;color:var(--hp-mut);text-transform:uppercase;margin-bottom:14px}

/* ---- step 1: the question ---- */
.hp-emoji{font-size:40px;line-height:1;margin-bottom:12px}
.hp-q{font-size:20px;font-weight:800;color:var(--hp-ink);line-height:1.25;margin-bottom:6px;text-wrap:balance}
.hp-qsub{font-size:13px;color:var(--hp-mut);margin-bottom:18px}
.hp-qbtns{display:flex;flex-direction:column;gap:9px}
.hp-yes{width:100%;box-sizing:border-box;background:var(--hp-play);color:#fff;font-weight:800;font-size:15px;
  padding:13px;border:0;border-radius:12px;cursor:pointer}
.hp-yes:hover{background:var(--hp-play2)}
.hp-no{width:100%;box-sizing:border-box;background:none;color:var(--hp-mut);font-weight:600;font-size:14px;
  padding:9px;border:0;border-radius:10px;cursor:pointer}
.hp-no:hover{background:var(--hp-soft)}

/* ---- step 2: the brief pitch ---- */
.hp-app{display:flex;align-items:center;gap:12px;text-align:left;margin-bottom:14px}
.hp-app img{width:56px;height:56px;border-radius:14px;flex:0 0 auto}
.hp-app .hp-nm{font-weight:800;font-size:18px;color:var(--hp-ink)}
.hp-app .hp-sb{font-size:12.5px;color:var(--hp-mut)}
.hp-bullets{list-style:none;margin:0 0 16px;padding:0;text-align:left}
.hp-bullets li{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:var(--hp-ink);padding:5px 0}
.hp-bullets li svg{flex:0 0 auto;margin-top:2px}
.hp-install{display:block;width:100%;box-sizing:border-box;background:var(--hp-play);color:#fff;font-weight:800;
  font-size:15px;padding:13px;border-radius:12px;text-decoration:none;margin-bottom:6px}
.hp-install:hover{background:var(--hp-play2)}
/* exit interstitial: the "continue to your link" button must always let them leave */
.hp-line{font-size:13px;color:var(--hp-mut);margin:2px 0 16px}
.hp-continue{display:block;width:100%;box-sizing:border-box;background:#2563eb;color:#fff;font-weight:800;
  font-size:15px;padding:13px;border-radius:12px;text-decoration:none;border:0;cursor:pointer;margin-bottom:6px}
.hp-continue:hover{background:#1d4ed8}
.hp-install.alt{background:none;color:var(--hp-play);border:1.5px solid var(--hp-play)}
.hp-install.alt:hover{background:var(--hp-soft)}
[hidden]{display:none!important}
