/* ==========================================================================
   Content CTAs — v2 design system
   Call-to-action snippets pasted into blog posts (Custom HTML block).
   Copy-ready HTML for each lives in the "Blog CTA snippets" document.

   .ws-cta--dark     A. Dark feature panel (end of post, strongest)
   .ws-cta--process  B. Glass card with the three-step process (mid-post)
   .ws-cta--strip    C. Slim inline strip (light touch, can repeat)

   Built on the --ws-* tokens and .main-button from webshape-v2.css. The "W"
   marks are CSS backgrounds so the snippets need no inline SVG (WordPress
   strips SVG for users without the unfiltered_html capability).
   ========================================================================== */

.ws-cta { margin: 2.2em 0; position:relative; }
.ws-cta, .ws-cta * { box-sizing: border-box; }
.ws-cta p { margin: 0; }

/* Links in .article-body are underlined; CTAs opt out */
.article-body .ws-cta a, .article-body a.ws-cta,
.ws-cta a, a.ws-cta { text-decoration: none; }
.ws-cta .main-button, .ws-cta .main-button:hover { color: #fff; }

.ws-cta-kicker {
  font-family: var(--ws-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ws-accent-dark);
}
.ws-cta-title { font-weight: 600; color: var(--ws-text); }

/* ── A. Dark feature panel ─────────────────────────────────────────────── */
.ws-cta--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 40px 34px;
  border-radius: var(--ws-radius-panel);
  color: #fff;
  background-color: var(--ws-ink);
  /* faint W watermark, bottom right */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 126.37 90'%3E%3Cg fill='%23fff' fill-opacity='.08'%3E%3Cpolygon points='110.04 40.42 126.37 0 93.71 0 110.04 40.42'/%3E%3Cpolygon points='6.32 6.52 40.04 90 55.49 51.77 34.57 0 0 0 6.3 6.53 6.32 6.52'/%3E%3Cpolygon points='52.6 6.52 86.33 90 101.77 51.77 80.85 0 46.28 0 52.59 6.53 52.6 6.52'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 34px bottom 26px;
  background-size: 90px auto;
  box-shadow: 0 30px 70px rgba(23, 20, 42, 0.22);
}
/* soft coral + violet glows */
.ws-cta--dark::before, .ws-cta--dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.ws-cta--dark::before {
  width: 380px; height: 380px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(232, 66, 94, 0.45), rgba(232, 66, 94, 0) 65%);
}
.ws-cta--dark::after {
  width: 300px; height: 300px; left: -120px; bottom: -170px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0) 65%);
}
.ws-cta--dark .ws-cta-kicker { color: var(--ws-accent-light); margin-bottom: 14px; }
.ws-cta--dark .ws-cta-title { font-size: 30px; line-height: 1.2; color: #fff; margin-bottom: 12px; }
.ws-cta--dark .ws-cta-title em {
  font-style: normal;
  background: linear-gradient(135deg, #f2647c, #e8425e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ws-cta--dark .ws-cta-text {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}
.ws-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.ws-cta-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.ws-cta-trust span::before { content: "\2713"; margin-right: 6px; color: var(--ws-accent-light); }

/* ── B. Glass card with the process ────────────────────────────────────── */
.ws-cta--process {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius-panel);
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(23, 20, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ws-cta--process .ws-cta-kicker { margin-bottom: 12px; }
.ws-cta--process .ws-cta-title { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.ws-cta--process .ws-cta-text { margin-bottom: 22px; font-size: 15px; line-height: 1.6; color: var(--ws-text-2); }

.ws-cta-steps, .article-body .ws-cta-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ws-cta-steps li, .article-body .ws-cta-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--ws-line-soft);
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ws-text);
}
.ws-cta-steps .num {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ws-accent-soft);
  color: var(--ws-accent-dark);
  font-family: var(--ws-mono);
  font-size: 13px;
  font-weight: 500;
}
.ws-cta-steps small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ws-muted); }
.ws-cta-steps li:first-child { border-color: rgba(232, 66, 94, 0.4); box-shadow: 0 8px 22px rgba(200, 45, 68, 0.1); }
.ws-cta-steps li:first-child .num { background: linear-gradient(135deg, var(--ws-accent), var(--ws-accent-dark)); color: #fff; }

/* ── C. Slim inline strip ──────────────────────────────────────────────── */
.ws-cta--strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 14px 14px 64px;
  border-radius: 999px;
  border: 1px solid var(--ws-line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 20, 42, 0.08);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.ws-cta--strip:hover {
  border-color: rgba(232, 66, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 66, 94, 0.1), 0 18px 40px rgba(23, 20, 42, 0.12);
  transform: translateY(-2px);
}
.ws-cta-chip {
    position:absolute;
    left:20px;
    top:18px;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--ws-ink);
  /* W mark: white strokes, coral corner */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 126.37 90'%3E%3Cpolygon fill='%23e8425e' points='110.04 40.42 126.37 0 93.71 0 110.04 40.42'/%3E%3Cg fill='%23fff'%3E%3Cpolygon points='6.32 6.52 40.04 90 55.49 51.77 34.57 0 0 0 6.3 6.53 6.32 6.52'/%3E%3Cpolygon points='52.6 6.52 86.33 90 101.77 51.77 80.85 0 46.28 0 52.59 6.53 52.6 6.52'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px auto;
}

.ws-cta-copy { flex: 1; min-width: 0; line-height: 1.4; }
.ws-cta-copy strong { display: block; font-size: 16px; font-weight: 600; color: var(--ws-text); }
.ws-cta-copy span { font-size: 13.5px; color: var(--ws-text-2); }
.ws-cta--strip .main-button { flex: none; }

/* ── Dark Page template ────────────────────────────────────────────────── */
html.ws-dark .ws-cta-kicker { color: var(--ws-accent-light); }
html.ws-dark .ws-cta-title, html.ws-dark .ws-cta-copy strong { color: #fff; }
html.ws-dark .ws-cta--process,
html.ws-dark .ws-cta--strip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
html.ws-dark .ws-cta--process .ws-cta-text, html.ws-dark .ws-cta-copy span { color: rgba(255, 255, 255, 0.72); }
html.ws-dark .ws-cta-steps li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
html.ws-dark .ws-cta-steps small { color: rgba(255, 255, 255, 0.6); }
html.ws-dark .ws-cta-chip { background-color: rgba(255, 255, 255, 0.1); }

/* ── Small screens ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ws-cta--dark { padding: 30px 24px 26px; }
  .ws-cta--dark .ws-cta-title { font-size: 24px; }
  .ws-cta--process { grid-template-columns: 1fr; padding: 26px 22px; }
  .ws-cta--process .ws-cta-title { font-size: 23px; }
  .ws-cta--strip { flex-wrap: wrap; border-radius: 24px; padding: 18px; }
  .ws-cta--strip .main-button { width: 100%; justify-content: space-between; }
  .ws-cta-chip { position:static; left: 0px; margin-right:18px; }
  .ws-cta--strip { gap:0px; }
  .ws-cta--strip .main-button { margin-top:14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-cta--strip, .ws-cta--strip:hover { transition: none; transform: none; }
}
