/* HookGenius /learn/ CTA component library
 * Source: extracted 2026-04-22 from public/learn/suno-vocal-prompts/index.html (canonical)
 * Five components: .hg-cta (early+mid boxed), .hg-ebook-cta (premium amber), .hg-leadmagnet (compact), .hg-sticky-cta (bottom bar), .hg-final-cta (closing).
 * All class names prefixed hg- to avoid collision with per-page inline styles.
 */

/* Inline boxed CTA — used for early + mid-article placements. */
.hg-cta {
  margin: 2.25rem 0;
  padding: 1.75rem 1.85rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.10) 0%, rgba(29,78,216,0.10) 100%);
  border: 1px solid rgba(6,182,212,0.35);
  border-radius: 14px;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.hg-cta-body { flex: 1 1 260px; min-width: 0; }
.hg-cta-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #22d3ee;
  margin-bottom: 0.35rem;
}
.hg-cta h3 {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  color: #f8fafc; margin: 0 0 0.35rem; line-height: 1.2;
  border: none; padding: 0;
}
.hg-cta p { margin: 0; font-size: 0.95rem; color: #cbd5e1; max-width: none; }
.hg-cta a.hg-cta-btn {
  display: inline-block; background: linear-gradient(135deg, #0e7490, #1d4ed8);
  color: #fff; padding: 0.8rem 1.5rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; transition: transform 0.18s ease;
}
.hg-cta a.hg-cta-btn:hover { transform: scale(1.04); text-decoration: none; }

/* Ebook upsell — amber/premium treatment, distinct from free-tier CTAs. */
.hg-ebook-cta {
  margin: 2.5rem 0;
  padding: 1.85rem 1.95rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.09) 0%, rgba(249,115,22,0.05) 100%);
  border: 1px solid rgba(245,158,11,0.38);
  border-radius: 14px;
}
.hg-ebook-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #f59e0b;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hg-ebook-eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #f59e0b; box-shadow: 0 0 10px #f59e0baa;
}
.hg-ebook-cta h3 {
  font-family: 'Playfair Display', serif; font-size: 1.55rem;
  color: #f8fafc; margin: 0 0 0.65rem; line-height: 1.2;
  border: none; padding: 0;
}
.hg-ebook-cta p { margin: 0 0 1rem; font-size: 0.98rem; color: #cbd5e1; max-width: none; }
.hg-ebook-cta ul {
  list-style: none; padding: 0; margin: 0.5rem 0 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.25rem;
}
.hg-ebook-cta li {
  font-size: 0.9rem; color: #cbd5e1; margin: 0;
  padding-left: 1.1rem; position: relative;
  list-style: none;
}
.hg-ebook-cta li::before {
  content: '→'; position: absolute; left: 0; top: 0; color: #f59e0b;
}
.hg-ebook-cta a.hg-ebook-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0f172a; padding: 0.85rem 1.6rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.18s ease;
}
.hg-ebook-cta a.hg-ebook-btn:hover { transform: scale(1.04); text-decoration: none; color: #0f172a; }
.hg-ebook-cta .hg-ebook-price { font-size: 0.85rem; color: rgba(15,23,42,0.72); margin-left: 0.5rem; font-weight: 600; }
@media (max-width: 640px) { .hg-ebook-cta ul { grid-template-columns: 1fr; } }

/* Lead-magnet / cheat-sheet widget — compact inline panel. */
.hg-leadmagnet {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: #111a2f;
  border: 1px solid rgba(103,232,249,0.25);
  border-left: 3px solid #22d3ee;
  border-radius: 10px;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.hg-leadmagnet-icon {
  font-size: 1.6rem; line-height: 1; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(34,211,238,0.12);
  display: flex; align-items: center; justify-content: center;
}
.hg-leadmagnet-body { flex: 1 1 240px; min-width: 0; }
.hg-leadmagnet h4 {
  font-size: 1.05rem; color: #f8fafc; margin: 0 0 0.2rem;
  font-weight: 600;
}
.hg-leadmagnet p { margin: 0; font-size: 0.9rem; color: #94a3b8; max-width: none; }
.hg-leadmagnet a {
  display: inline-block; padding: 0.6rem 1.1rem;
  background: rgba(34,211,238,0.15); color: #67e8f9;
  border: 1px solid rgba(34,211,238,0.4); border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background 0.18s ease;
}
.hg-leadmagnet a:hover { background: rgba(34,211,238,0.25); text-decoration: none; }

/* Sticky bottom bar — appears after 30% scroll, dismissable. */
.hg-sticky-cta {
  position: fixed;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%) translateY(200%);
  width: calc(100% - 2rem); max-width: 700px;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34,211,238,0.4);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 0.85rem;
  z-index: 90;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  opacity: 0;
}
.hg-sticky-cta.hg-sticky-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.hg-sticky-text { flex: 1 1 auto; min-width: 0; color: #e2e8f0; font-size: 0.9rem; line-height: 1.35; }
.hg-sticky-text strong { color: #f8fafc; font-weight: 600; display: block; }
.hg-sticky-text span { color: #94a3b8; font-size: 0.82rem; }
.hg-sticky-btn {
  display: inline-block; padding: 0.6rem 1.15rem;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #0f172a; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  flex-shrink: 0;
}
.hg-sticky-btn:hover { text-decoration: none; filter: brightness(1.08); color: #0f172a; }
.hg-sticky-close {
  background: transparent; border: none; color: #64748b;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  padding: 0 0.25rem; flex-shrink: 0;
  transition: color 0.15s ease;
}
.hg-sticky-close:hover { color: #f8fafc; }
@media (max-width: 520px) {
  .hg-sticky-cta { padding: 0.7rem 0.85rem; gap: 0.6rem; }
  .hg-sticky-text { font-size: 0.82rem; }
  .hg-sticky-text span { display: none; }
  .hg-sticky-btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-sticky-cta { transition: opacity 0.2s ease; }
  .hg-sticky-cta.hg-sticky-visible { transform: translateX(-50%) translateY(0); }
}
