/* ─────────────────────────────────────────────
   CTA — Strong book download promotion
   Two-column: content left, floating book right
─────────────────────────────────────────────  */
.cta {
  padding:0 28px 80px;
  max-width:1280px;
  margin:0 auto;
}
.cta-inner {
  padding:72px 56px 76px;
  background:var(--white);
  border:1.5px solid var(--ink);
  border-radius:24px;
  box-shadow: 0 8px 0 var(--orange);
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:48px;
  align-items:center;
  isolation:isolate;
}

/* Pattern background - subtle ink dots on white */
.cta-inner::before {
  content:'';
  position:absolute;
  top:0; right:0; bottom:0;
  width:55%;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(21,21,26,.06) 2px, transparent 2.5px);
  background-size:40px 40px;
  pointer-events:none;
  z-index:0;
  border-radius:0 24px 24px 0;
  overflow:hidden;
}

.cta-studs {
  position:absolute;
  top:-10px;
  left:48px;
  transform:none;
  display:flex;
  gap:12px;
  z-index:30;
}
.cta-studs .stud {
  width:16px; height:16px;
}

.cta-content {
  position:relative;
  z-index:2;
}

.cta-eyebrow {
  font-family:var(--font-mono);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:22px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:6px 12px 6px 8px;
  background:var(--yellow);
  border:1.5px solid var(--ink);
  border-radius:7px;
  box-shadow: 0 2px 0 var(--orange);
}
.cta-eyebrow::before {
  content:''; width:7px; height:7px; border-radius:50%;
  background:var(--green);
  animation:livepulse 2s infinite;
}

.cta h2 {
  font-family:var(--font-display);
  font-size:clamp(24px, 6vw, 76px);
  font-weight:400;
  line-height:.92;
  letter-spacing:-1.2px;
  color:var(--ink);
  margin-bottom:22px;
  text-transform:uppercase;
}
.cta h2 em {
  font-style:normal;
  color:var(--orange-d);
  position:relative;
  display:inline-block;
}
.cta h2 em::after {
  content:'';
  position:absolute;
  left:-0.07em; right:-0.07em; bottom:0.32em;
  height:0.32em;
  background:var(--yellow);
  border-radius:0.06em;
  z-index:-1;
  transform:rotate(-1deg);
}

.cta p {
  font-family:var(--font-ui);
  font-size:16.5px;
  color:var(--gray-1);
  line-height:1.5;
  max-width:480px;
  margin:0 0 24px;
}

/* Features checklist */
.cta-features {
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:32px;
}
.cta-features li {
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--font-ui);
  font-size:14.5px;
  color:var(--ink-soft);
  font-weight:500;
}
.cta-check {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  background:var(--orange);
  border:1.5px solid var(--orange-d);
  border-radius:50%;
  color:var(--white);
  font-weight:700;
  font-size:11px;
  flex-shrink:0;
  box-shadow: 0 2px 0 var(--orange-d);
}

.cta-actions {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:28px;
}

/* btn-ghost inherits its default style (ink border on white) — no override needed
   now that the CTA card itself is white */

/* Social proof row */
.cta-social-proof {
  display:flex;
  align-items:center;
  gap:14px;
  padding-top:24px;
  border-top:1px dashed var(--line);
}
.cta-avatars {
  display:flex;
  align-items:center;
}
.cta-avatar {
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-size:13px;
  color:var(--white);
  margin-left:-8px;
  box-shadow: 0 2px 0 var(--ink);
}
.cta-avatar:first-child { margin-left:0 }
.cta-avatar-plus {
  background:var(--white) !important;
  color:var(--ink) !important;
  font-size:10px;
  letter-spacing:-0.3px;
}
.cta-social-text {
  font-family:var(--font-ui);
  font-size:13px;
  color:var(--gray-1);
  line-height:1.4;
}
.cta-social-text strong {
  color:var(--ink);
  font-weight:700;
}

/* BOOK on right */
/* ─── BOOK COVER ─── */
/* ─────────────────────────────────────────────
   CTA BOOK — LEGO Brick design
   A single big chunky brick with studs on top,
   simple and clean, no "book" mess.
─────────────────────────────────────────────  */
.cta-book {
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:340px;
  padding-top:24px;
}

/* The brick itself */
.cta-brick {
  position:relative;
  width:88%;
  max-width:320px;
  background:var(--orange);
  border:2px solid var(--ink);
  border-radius:14px;
  padding:32px 28px 28px;
  box-shadow:
    0 8px 0 var(--ink),
    0 14px 24px -10px rgba(0,0,0,.4);
  transform:rotate(-2deg);
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
  display:flex;
  flex-direction:column;
  gap:20px;
  z-index:3;
}
.cta-book:hover .cta-brick {
  transform:rotate(0deg) translateY(-6px);
}

/* Studs running across the top */
.cta-brick-studs {
  position:absolute;
  top:-16px;
  left:0; right:0;
  display:flex;
  justify-content:space-around;
  padding:0 24px;
  pointer-events:none;
  z-index:4;
}
.cta-brick-stud {
  width:32px;
  height:32px;
  background:var(--orange);
  border:2px solid var(--ink);
  border-bottom:none;
  border-radius:50% 50% 0 0;
  position:relative;
}
.cta-brick-stud::after {
  content:'';
  position:absolute;
  inset:4px 4px 0;
  border-radius:50% 50% 0 0;
  background:linear-gradient(180deg, rgba(255,255,255,.4) 0%, transparent 60%);
}

/* Header row inside brick */
.cta-brick-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-bottom:18px;
  border-bottom:2px dashed rgba(21,21,26,.25);
}
.cta-brick-tag {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:700;
  letter-spacing:0.8px;
  color:var(--ink);
  padding:5px 10px 5px 7px;
  background:var(--yellow);
  border:1.5px solid var(--ink);
  border-radius:6px;
  text-transform:uppercase;
  box-shadow: 0 2px 0 var(--ink);
}
.cta-brick-tag svg { width:11px; height:11px }

.cta-brick-pages {
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:0.6px;
  text-transform:uppercase;
  opacity:.7;
}
.cta-brick-pages strong {
  font-family:var(--font-display);
  font-size:14px;
  letter-spacing:-0.5px;
  font-weight:400;
  margin-right:2px;
}

/* Title block */
.cta-brick-title {
  font-family:var(--font-display);
  font-size:clamp(22px, 4.5vw, 36px);
  font-weight:400;
  line-height:.92;
  letter-spacing:-1.2px;
  color:var(--white);
  text-transform:uppercase;
}
.cta-brick-title em {
  font-style:normal;
  color:var(--ink);
  position:relative;
}

.cta-brick-subtitle {
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:500;
  color:var(--ink);
  line-height:1.4;
  opacity:.8;
}

/* Bottom bar */
.cta-brick-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
  padding-top:18px;
  border-top:2px dashed rgba(21,21,26,.25);
}
.cta-brick-brand {
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:0.6px;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.cta-brick-brand-dot {
  width:8px; height:8px;
  border-radius:50%;
  background:var(--ink);
}
.cta-brick-download {
  width:42px; height:42px;
  background:var(--ink);
  border:1.5px solid var(--ink);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  box-shadow: 0 3px 0 var(--orange-d);
}
.cta-brick-download svg { width:18px; height:18px }
.cta-book:hover .cta-brick-download svg {
  animation:bounceDown .6s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform:translateY(0) }
  50% { transform:translateY(2px) }
}

/* Floating "200+ downloads" badge */
.cta-brick-badge {
  position:absolute;
  top:-18px;
  right:-18px;
  z-index:5;
  width:80px;
  height:80px;
  background:var(--yellow);
  border:2px solid var(--ink);
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:rotate(12deg);
  box-shadow: 0 4px 0 var(--ink), 0 8px 16px -4px rgba(0,0,0,.25);
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
}
.cta-book:hover .cta-brick-badge {
  transform:rotate(20deg) translate(4px, -4px);
}
.cta-brick-badge-num {
  font-family:var(--font-display);
  font-size:20px;
  color:var(--ink);
  line-height:1;
  letter-spacing:-0.8px;
}
.cta-brick-badge-num em {
  font-style:normal;
  color:var(--orange-d);
}
.cta-brick-badge-label {
  font-family:var(--font-mono);
  font-size:7.5px;
  font-weight:700;
  letter-spacing:0.4px;
  text-transform:uppercase;
  color:var(--ink);
  line-height:1.2;
  margin-top:3px;
  padding:0 4px;
}
