/* ════════════════════════════════════════════════════════════════
   Lesson tutoring CTA  (.lcta)  —  "ticket stub" treatment
   Single source of truth for the "Book a free session" block injected
   into every lesson & worksheet by qa/phase4-inject-cta.js.
   Loaded via an absolute path (/assets/css/lesson-cta.css) so it works
   regardless of how deep the page sits or which CSS stack it uses.

   The markup is fixed (icon span + body + link); the look is driven
   entirely from here. Treatment: a printed ticket — solid plum stub on
   the left holding a line-art cap mark, a dashed perforation seam, warm
   cream body, and a flat "admit one"-style bordered action. Deliberately
   avoids the pastel-gradient + rounded-icon-tile + pill-with-arrow combo.
   Palette: warm cream + plum tokens from quiz-engine.css.
   ════════════════════════════════════════════════════════════════ */

.lcta {
  margin: 44px 0 18px;
  padding: 0;                       /* stub runs edge-to-edge */
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f8f1e6;              /* flat warm cream "card stock" */
  border: 1.5px solid #d9c9b6;     /* warm tan, not lavender */
  border-radius: 14px;
  overflow: hidden;                /* clips the stub to the rounded corners */
  box-shadow: 0 3px 0 #cbb9a2;     /* low printed-ticket lift */
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
}

/* ── Left ticket stub ─────────────────────────────────────────────
   Hides the legacy 🎓 text node and paints a crisp SVG cap, centred
   in a full-height plum block. ::after draws the dashed perforation
   seam just inside the cream body. */
.lcta-icon {
  flex-shrink: 0;
  width: 58px;
  align-self: stretch;
  background: #6d5b8a;             /* --qe-plum */
  border-radius: 0;
  position: relative;
  font-size: 0;                    /* hide the emoji text node */
  color: transparent;
}
.lcta-icon::before {               /* the cap mark */
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M21.5 9.5 12 5 2.5 9.5 12 14l9.5-4.5Z"/><path d="M6 11.3V16c0 1.4 2.7 2.6 6 2.6s6-1.2 6-2.6v-4.7"/><path d="M21.5 9.5v5.2"/></svg>') center / 30px 30px no-repeat;
}
.lcta-icon::after {                /* dashed perforation seam */
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  right: -10px;                    /* sits in the cream, clear of the stub */
  border-left: 2px dashed #b9a7c4; /* muted plum dashes */
}

.lcta-body {
  flex: 1;
  min-width: 0;
  padding: 16px 22px 16px 26px;    /* extra left clears the perforation */
}
.lcta-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #4e4068;                  /* --qe-plum-deep */
  line-height: 1.3;
}
.lcta-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b5d75;                  /* --qe-ink-soft */
}

/* ── Flat "admit one" action — bordered, uppercase, no pill ──────── */
.lcta-btn {
  display: inline-block;
  margin-top: 13px;
  padding: 8px 16px;
  background: transparent;
  color: #4e4068 !important;       /* --qe-plum-deep */
  border: 1.5px solid #6d5b8a;     /* --qe-plum */
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, transform 0.06s ease;
}
.lcta-btn:hover {
  background: #6d5b8a;
  color: #fff !important;
}
.lcta-btn:active {
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .lcta-icon { width: 48px; }
  .lcta-icon::before { background-size: 26px 26px; }
  .lcta-body { padding: 14px 16px 14px 22px; }
  .lcta-body strong { font-size: 15px; }
}
