/* ═══════════════════════════════════════════════════════════════
   Aurora CTA — Planet horizon + aurora lights for CTA sections
   Same look as main hero, slightly lighter intensity.
   ═══════════════════════════════════════════════════════════════ */

.aurora-cta {
  position: relative;
  overflow: hidden;
  background: #0b0a1a;
  color: #f5f5f7;
  text-align: center;
  padding: 7rem 2rem 8rem;
}

/* WebGL canvas — full opacity, shader controls its own intensity */
.aurora-cta canvas.aurora-cta-gl {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Stars */
.aurora-cta .aurora-cta-stars {
  position: absolute;
  inset: -15%;
  z-index: 2;
  pointer-events: none;
  animation: auroraCTAStarRotate 300s linear infinite;
}

@keyframes auroraCTAStarRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.aurora-cta .aurora-cta-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: auroraCTATwinkle var(--dur) ease-in-out infinite alternate;
  opacity: 0;
}

@keyframes auroraCTATwinkle {
  0%   { opacity: 0.02; }
  50%  { opacity: var(--peak); }
  100% { opacity: 0.04; }
}

/* Edge overlays */
.aurora-cta .aurora-cta-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  z-index: 4;
  background: linear-gradient(to top, #0b0a1a, transparent);
  pointer-events: none;
}

.aurora-cta .aurora-cta-overlay-left {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 180px;
  z-index: 4;
  background: linear-gradient(to right, #0b0a1a, transparent);
  pointer-events: none;
}

.aurora-cta .aurora-cta-overlay-right {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 180px;
  z-index: 4;
  background: linear-gradient(to left, #0b0a1a, transparent);
  pointer-events: none;
}

/* Film grain — now rendered inside the WebGL fragment shader (aurora-cta.js)
   for consistency with the hero. Static SVG overlay disabled; element kept
   in DOM so z-index stack stays stable. */
.aurora-cta .aurora-cta-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

/* Content */
.aurora-cta .aurora-cta-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  /* The global html{scroll-padding-top} (main.js) clears the pinned white
     bar (~52px). This stacks ON TOP of it so the CTA headline settles with
     the same aurora breathing room the original site had (~96px below the
     bar → ~148px from the very top). Tune this one number to raise (smaller)
     or lower (larger) where the headline settles. */
  scroll-margin-top: 96px;
}

/* Typography */
.aurora-cta h2 {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.aurora-cta h2 em {
  font-style: normal;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,.6), 0 0 35px rgba(255,255,255,.3);
}

.aurora-cta h2 .shimmer {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,.6), 0 0 35px rgba(255,255,255,.3);
}

.aurora-cta p {
  font-size: 1rem;
  color: #a1a1a6;
  max-width: 460px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Buttons */
.aurora-cta .aurora-cta-acts {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Stats */
.aurora-cta .aurora-cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.aurora-cta .aurora-cta-stat {
  text-align: center;
}

.aurora-cta .aurora-cta-stat-num {
  display: block;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.aurora-cta .aurora-cta-stat-label {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: #86868b;
  margin-top: 0.5rem;
  display: block;
}

/* Form (homepage) */
.aurora-cta .v2-cta-form {
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* SMS consent block — native to the aurora CTA visual idiom */
.aurora-cta .v2-form-consent {
  margin: 1rem auto 0;
  max-width: 720px;
  text-align: center;
}

/* Tighten only the gap between consecutive consent blocks (the two checkboxes),
   without affecting the first block's spacing from the form above. */
.aurora-cta .v2-form-consent + .v2-form-consent {
  margin-top: 0.375rem;
}

/* Push the "Free consultation" note down by the same amount the checkboxes tightened. */
.aurora-cta .v2-form-note {
  margin-top: 1.125rem;
}

/* Turnstile human-check. Runs in interaction-only appearance: invisible for
   most visitors, so reserve no space until Cloudflare decides to show it. */
.aurora-cta .v2-form-turnstile {
  display: flex;
  justify-content: center;
}
.aurora-cta .v2-form-turnstile iframe {
  margin-top: 1rem;
}

/* Aurora-green success state: solid green base + a single left-to-right sheen sweep */
.aurora-cta .v2-form-btn.is-success {
  position: relative;
  overflow: hidden;
  color: #052b20;
  border: none;
  background-image: linear-gradient(100deg, #047857 0%, #10b981 42%, #34f5b0 68%, #2dd4bf 100%);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.42);
}
.aurora-cta .v2-form-btn.is-success::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-200%) skewX(-14deg);
  animation: btnSheenSweep 1.1s cubic-bezier(0.33, 0, 0.2, 1) 0.12s both;
  pointer-events: none;
}
@keyframes btnSheenSweep {
  0%   { transform: translateX(-200%) skewX(-14deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(320%) skewX(-14deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-cta .v2-form-btn.is-success::after { display: none; }
}
.aurora-cta .v2-consent-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.625rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.005em;
  user-select: none;
}
.aurora-cta .v2-consent-box {
  /* Custom-styled checkbox — matches glass-input idiom */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  position: relative;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.aurora-cta .v2-consent-box:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.aurora-cta .v2-consent-box:focus-visible {
  outline: none;
  border-color: var(--cy);
  box-shadow: 0 0 0 3px rgba(158, 82, 97, 0.25);
}
.aurora-cta .v2-consent-box:checked {
  background: var(--cy);
  border-color: var(--cy);
}
.aurora-cta .v2-consent-box:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.aurora-cta .v2-consent-text {
  flex: 0 1 auto;
  min-width: 0;
}
.aurora-cta .v2-consent-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.aurora-cta .v2-consent-link:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}
.aurora-cta .v2-form-consent .v2-form-error {
  display: block;
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #f5716c;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.aurora-cta .v2-form-consent .v2-form-error.visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .aurora-cta {
    padding: 6rem 2rem 7rem;
  }
  .aurora-cta .aurora-cta-stats {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .aurora-cta {
    padding: 5rem 1.5rem;
  }
  .aurora-cta h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .aurora-cta .aurora-cta-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .aurora-cta .aurora-cta-acts {
    flex-direction: column;
    align-items: center;
  }
  .aurora-cta .aurora-cta-overlay-left,
  .aurora-cta .aurora-cta-overlay-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .aurora-cta {
    padding: 4rem 1.25rem;
  }
  .aurora-cta .aurora-cta-stats {
    gap: 1.5rem;
  }
}
