@property --post-cta-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.post-cta {
  margin-top: 48px;
  padding: 32px clamp(20px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 24, 34, 0.96), rgba(9, 14, 22, 0.98));
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 60px rgba(0, 0, 0, 0.14);
}

.post-cta--takeaways {
  margin-bottom: 48px;
}

.post-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--post-cta-beam-angle),
    transparent 0deg,
    transparent 265deg,
    rgba(212, 118, 74, 0.18) 292deg,
    #f2b38d 316deg,
    var(--accent-primary) 334deg,
    transparent 356deg
  );
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: post-cta-beam 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes post-cta-beam {
  to {
    --post-cta-beam-angle: 360deg;
  }
}

.post-cta p {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.post-cta .post-cta-button {
  flex: 0 0 auto;
  background: var(--accent-primary) !important;
  border: 1px solid var(--accent-primary) !important;
  color: #fff !important;
  animation: none !important;
  box-shadow: 0 8px 30px rgba(212, 118, 74, 0.28) !important;
}

.post-cta .post-cta-button:hover {
  background: #e18458 !important;
  border-color: #e18458 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 34px rgba(212, 118, 74, 0.42) !important;
}

@media (prefers-reduced-motion: reduce) {
  .post-cta::before {
    animation: none;
    background: rgba(212, 118, 74, 0.3);
  }
}

@media (max-width: 560px) {
  .post-cta {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .post-cta .post-cta-button {
    width: 100%;
  }
}
