/* ============================================================================
   cta-additions.css — conversion CTAs for the Articles section
   Link this AFTER /css/style.css, or paste these rules into style.css once.
   Purpose: give readers a prominent, repeated path to the course demos
   (/courses/) and plans (/pricing.html) so they don't get stuck in articles.
   Uses only existing design tokens, button classes and fonts.
   ============================================================================ */

/* ── 1. CTA PATH BAND ───────────────────────────────────────────────────────
   Bold, high-contrast band. Use high on the Articles index & category pages,
   and at the END of an article (before prev/next). Sits inside .container on
   index/category, or directly inside .article-body at an article's end. */
.cta-path {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink3) 100%);
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--green);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.4rem, 4vw, 2.5rem);
  margin: 2.25rem 0;
}
.cta-path::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3,169,244,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cta-path-inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}
.cta-path-text { max-width: 560px; }
.cta-path .eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.cta-path h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 3.2vw, 1.95rem);
  font-weight: 700; color: var(--white);
  line-height: 1.22; margin-bottom: 0.45rem;
}
.cta-path p {
  font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.cta-path-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }
.btn .ico-play { font-size: 0.8em; margin-right: 0.15em; }

/* ── 2. INLINE CTA (mid-article nudge) ──────────────────────────────────────
   Lightweight; drop INSIDE article prose. Matches the .callout family. */
.cta-inline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.85rem 1.5rem; flex-wrap: wrap;
  background: var(--blue-lt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.3rem;
  margin: 1.85rem 0;
}
.cta-inline .ci-text {
  flex: 1 1 260px;
  font-size: 0.95rem; color: var(--ink2); line-height: 1.55;
}
.cta-inline .ci-text strong { color: var(--ink); font-weight: 700; }
.cta-inline .btn { flex-shrink: 0; }

/* ── 3. STICKY SIDEBAR CTA (desktop only) ───────────────────────────────────
   Makes the existing sidebar demo CTA follow the reader down the page.
   (Header is static, so a small offset is enough; raise it if you make the
   header sticky.) */
@media (min-width: 901px) {
  .article-sidebar .sidebar-cta { position: sticky; top: 1.5rem; }
}

/* ── 4. MOBILE STICKY DOCK ──────────────────────────────────────────────────
   Persistent bottom bar on small screens, so the path to the demos is always
   one tap away while reading. Hidden on desktop (the sticky sidebar covers it). */
.cta-dock { display: none; }
@media (max-width: 900px) {
  .cta-dock {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(12,26,39,0.96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 2px solid var(--green);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
  }
  .cta-dock span { font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.3; }
  .cta-dock .btn { flex-shrink: 0; padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  body.has-cta-dock { padding-bottom: 66px; }
}
