.ca-callout,
.ca-steps,
.ca-checklist,
.ca-beforeafter,
.ca-exercise,
.ca-faq,
.ca-toolcard,
.ca-copy {
  margin: 24px 0;
}

.ca-callout {
  border: 1px solid #d7dee8;
  border-left-width: 5px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px 18px;
}

.ca-callout--info { border-left-color: #2563eb; }
.ca-callout--tip { border-left-color: #16a34a; }
.ca-callout--warning { border-left-color: #d97706; background: #fffbeb; }
.ca-callout--note { border-left-color: #6b7280; }

.ca-callout__title,
.ca-copy__title,
.ca-steps__title,
.ca-checklist__title,
.ca-beforeafter__title,
.ca-exercise__title,
.ca-faq__title,
.ca-step__title,
.ca-toolcard__name {
  margin: 0 0 10px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.ca-callout__body > :last-child,
.ca-step__body > :last-child,
.ca-exercise__body > :last-child,
.ca-faqitem__body > :last-child {
  margin-bottom: 0;
}

.ca-steps__list {
  counter-reset: ca-step;
  list-style: none;
  padding-left: 0;
}

.ca-step {
  counter-increment: ca-step;
  position: relative;
  padding: 0 0 22px 48px;
  border-left: 2px solid #e5e7eb;
}

.ca-step::before {
  content: counter(ca-step);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ca-step__image {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 12px;
}

.ca-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.ca-check input {
  margin-top: 5px;
}

.ca-beforeafter__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ca-beforeafter__panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.ca-beforeafter__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ca-toolcard {
  display: flex;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.ca-toolcard__icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  font-weight: 700;
}

.ca-toolcard__price,
.ca-exercise__pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

.ca-exercise {
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 18px;
  background: #f0fdf4;
}

.ca-exercise__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ca-faqitem {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
}

.ca-faqitem summary {
  cursor: pointer;
  font-weight: 700;
}

.ca-copy {
  border: 1px solid #111827;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1020;
}

.ca-copy__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ca-copy__title {
  color: #fff;
  margin: 0;
}

.ca-copy__button,
.ca-code__copy {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
}

pre.ca-code {
  position: relative;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #0b1020;
  color: #e5e7eb;
}

pre.ca-code code {
  white-space: pre;
}

.ca-code__copy {
  position: absolute;
  right: 10px;
  top: 10px;
}

.ca-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
}

.ca-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .ca-beforeafter__grid {
    grid-template-columns: 1fr;
  }

  .ca-step {
    padding-left: 34px;
  }
}
