/* Shared CTA right-side compliance visual (all .cta blocks) */
.cta.ta-cta-has-viz {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.95fr);
  gap: 1.25rem 2rem;
  align-items: center;
}

.cta.ta-cta-has-viz > .ta-cta-split__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.cta.ta-cta-has-viz > .ta-cta-split__copy > * {
  position: relative;
  z-index: 1;
}

.ta-cta-viz {
  --cv-green: #5fb173;
  --cv-hot: #7dff9a;
  --cv-soft: #b8ffc8;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  aspect-ratio: 1;
  min-height: 220px;
  pointer-events: none;
  user-select: none;
}

.ta-cta-viz__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Radar */
.ta-cta-viz__radar {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  opacity: 0;
}

.ta-cta-viz__radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(125, 255, 154, 0.35);
}

.ta-cta-viz__radar-ring:nth-child(2) {
  inset: 12%;
  border-style: solid;
  border-color: rgba(95, 177, 115, 0.28);
}

.ta-cta-viz__radar-ring:nth-child(3) {
  inset: 24%;
  border-style: dashed;
  border-color: rgba(95, 177, 115, 0.22);
}

.ta-cta-viz__radar-ring:nth-child(4) {
  inset: 36%;
  border-color: rgba(125, 255, 154, 0.4);
}

.ta-cta-viz__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(95, 177, 115, 0.06) 320deg,
    rgba(125, 255, 154, 0.35) 348deg,
    rgba(255, 255, 255, 0.75) 358deg,
    transparent 360deg
  );
  mask-image: radial-gradient(circle, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 72%);
  opacity: 0;
}

.ta-cta-viz__bloom {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 255, 154, 0.28) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0;
}

/* Shields */
.ta-cta-viz__shield {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.ta-cta-viz__shield--l2 {
  width: 78%;
  height: 86%;
}

.ta-cta-viz__shield--l1 {
  width: 52%;
  height: 58%;
}

.ta-cta-viz__shield svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.ta-cta-viz__shield-stroke {
  fill: none;
  stroke: var(--cv-hot);
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(125, 255, 154, 0.7));
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.ta-cta-viz__shield--l1 .ta-cta-viz__shield-stroke {
  stroke: var(--cv-soft);
  stroke-width: 2.6;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.ta-cta-viz__shield-fill {
  fill: rgba(95, 177, 115, 0.12);
  opacity: 0;
}

.ta-cta-viz__shield--l1 .ta-cta-viz__shield-fill {
  fill: rgba(125, 255, 154, 0.18);
}

/* Labels */
.ta-cta-viz__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.ta-cta-viz__label strong {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #eafff0;
  text-shadow: 0 0 10px rgba(125, 255, 154, 0.7);
}

.ta-cta-viz__label span {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(184, 255, 200, 0.85);
}

.ta-cta-viz__label--l2 { top: 4%; }
.ta-cta-viz__label--l1 { top: 22%; }

/* Core */
.ta-cta-viz__core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 5;
}

.ta-cta-viz__core-hex {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 48, 36, 0.98), rgba(6, 16, 22, 0.98));
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: inset 0 0 18px rgba(125, 255, 154, 0.3);
}

.ta-cta-viz__core-hex::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 0 0 1.5px #b8ffc8, 0 0 14px rgba(125, 255, 154, 0.8);
}

.ta-cta-viz__core-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 4px;
}

.ta-cta-viz__core-mark strong {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 0 8px rgba(125, 255, 154, 0.5);
}

.ta-cta-viz__core-mark span {
  margin-top: 2px;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b8ffc8;
}

.ta-cta-viz__core-glow {
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle, rgba(125, 255, 154, 0.55) 0%, transparent 68%);
  filter: blur(8px);
  opacity: 0;
}

/* Modules */
.ta-cta-viz__mod {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(10, 32, 26, 0.92), rgba(6, 16, 22, 0.9));
  border: 1px solid rgba(125, 255, 154, 0.5);
  box-shadow: 0 0 14px rgba(95, 177, 115, 0.28), inset 0 1px 0 rgba(184, 255, 200, 0.15);
  opacity: 0;
  transform: scale(0.9);
}

.ta-cta-viz__mod i {
  color: var(--cv-soft);
  font-size: 12px;
}

.ta-cta-viz__mod strong {
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ta-cta-viz__mod--scan { left: 0%; top: 34%; }
.ta-cta-viz__mod--onboard { right: 0%; top: 34%; left: auto; }
.ta-cta-viz__mod--monitor {
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%) scale(0.9);
}

.ta-cta-viz__chip {
  position: absolute;
  z-index: 7;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.5rem;
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(12, 36, 28, 0.94), rgba(6, 16, 22, 0.92));
  border: 1px solid rgba(125, 255, 154, 0.55);
  box-shadow: 0 0 18px rgba(95, 177, 115, 0.3);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.ta-cta-viz__chip i {
  color: var(--cv-soft);
  font-size: 13px;
}

.ta-cta-viz__chip strong {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ta-cta-viz__chip--assurance { top: 0%; }
.ta-cta-viz__chip--radar { bottom: 0%; }

/* Animation states */
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__radar,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__shield,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__label,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__core,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__mod,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__chip,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__sweep,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__bloom,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__core-glow,
.ta-cta-viz[data-cv="idle"] .ta-cta-viz__shield-fill {
  opacity: 0 !important;
  animation: none !important;
}

.ta-cta-viz[data-cv="enter"] .ta-cta-viz__radar {
  animation: cv-fade-scale 0.7s ease both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__sweep {
  animation: cv-fade 0.4s ease 0.2s both, cv-spin 5s linear 0.5s infinite;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__bloom {
  animation: cv-fade 0.5s ease 0.25s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__core {
  animation: cv-core-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__core-glow {
  animation: cv-fade 0.4s ease 0.7s both, cv-pulse 2.4s ease-in-out 1s infinite;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l1 {
  animation: cv-fade 0.01s linear 0.85s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l1 .ta-cta-viz__shield-stroke {
  animation: cv-draw-l1 0.9s ease-out 0.85s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l1 .ta-cta-viz__shield-fill {
  animation: cv-fade 0.5s ease 1.15s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__label--l1 {
  animation: cv-rise 0.45s ease 1.2s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__mod--scan {
  animation: cv-mod-in 0.45s ease 1.4s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__mod--onboard {
  animation: cv-mod-in 0.45s ease 1.55s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__mod--monitor {
  animation: cv-mod-in-c 0.45s ease 1.7s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l2 {
  animation: cv-fade 0.01s linear 1.95s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l2 .ta-cta-viz__shield-stroke {
  animation: cv-draw-l2 1s ease-out 1.95s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__shield--l2 .ta-cta-viz__shield-fill {
  animation: cv-fade 0.5s ease 2.25s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__label--l2 {
  animation: cv-rise 0.45s ease 2.3s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__chip--assurance {
  animation: cv-chip-in 0.5s ease 2.55s both;
}
.ta-cta-viz[data-cv="enter"] .ta-cta-viz__chip--radar {
  animation: cv-chip-in 0.5s ease 2.85s both;
}

.ta-cta-viz[data-cv="hold"] .ta-cta-viz__radar,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__shield,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__label,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__core,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__chip,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__sweep,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__bloom,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__core-glow,
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__shield-fill {
  opacity: 1;
}

.ta-cta-viz[data-cv="hold"] .ta-cta-viz__core {
  transform: translate(-50%, -50%) scale(1);
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod {
  transform: scale(1);
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod--monitor {
  transform: translateX(-50%) scale(1);
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__chip {
  transform: translateX(-50%) translateY(0);
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__shield-stroke {
  stroke-dashoffset: 0;
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__sweep {
  animation: cv-spin 5s linear infinite;
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__core-glow {
  animation: cv-pulse 2.4s ease-in-out infinite;
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod--scan {
  animation: cv-float-a 3.2s ease-in-out infinite;
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod--onboard {
  animation: cv-float-b 3.4s ease-in-out infinite;
}
.ta-cta-viz[data-cv="hold"] .ta-cta-viz__mod--monitor {
  animation: cv-float-c 3s ease-in-out infinite;
}

.ta-cta-viz[data-cv="exit"] .ta-cta-viz__chip--radar { animation: cv-fade-down 0.35s ease both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__chip--assurance { animation: cv-fade-down 0.35s ease 0.08s both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__label--l2,
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__shield--l2 { animation: cv-fade-out 0.4s ease 0.15s both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__mod { animation: cv-fade-out 0.35s ease 0.3s both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__label--l1,
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__shield--l1 { animation: cv-fade-out 0.4s ease 0.45s both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__core { animation: cv-core-out 0.4s ease 0.6s both; }
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__radar,
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__sweep,
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__bloom,
.ta-cta-viz[data-cv="exit"] .ta-cta-viz__core-glow { animation: cv-fade-out 0.4s ease 0.75s both; }

.ta-cta-viz[data-cv="done"] .ta-cta-viz__radar,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__shield,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__label,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__core,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__mod,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__chip,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__sweep,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__bloom,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__core-glow,
.ta-cta-viz[data-cv="done"] .ta-cta-viz__shield-fill {
  opacity: 1;
}
.ta-cta-viz[data-cv="done"] .ta-cta-viz__core { transform: translate(-50%, -50%) scale(1); }
.ta-cta-viz[data-cv="done"] .ta-cta-viz__mod--monitor { transform: translateX(-50%) scale(1); }
.ta-cta-viz[data-cv="done"] .ta-cta-viz__chip { transform: translateX(-50%); }
.ta-cta-viz[data-cv="done"] .ta-cta-viz__shield-stroke { stroke-dashoffset: 0; }

@keyframes cv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cv-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cv-fade-scale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes cv-spin { to { transform: rotate(360deg); } }
@keyframes cv-pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes cv-core-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes cv-core-out { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(0.55); } }
@keyframes cv-draw-l1 { from { stroke-dashoffset: 620; opacity: 0.3; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes cv-draw-l2 { from { stroke-dashoffset: 900; opacity: 0.3; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes cv-rise { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes cv-mod-in { from { opacity: 0; transform: scale(0.85) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes cv-mod-in-c { from { opacity: 0; transform: translateX(-50%) scale(0.85) translateY(8px); } to { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); } }
@keyframes cv-chip-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes cv-fade-down { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@keyframes cv-float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cv-float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes cv-float-c { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }

/* Light mode */
html[data-theme="light"] .ta-cta-viz__radar-ring {
  border-color: rgba(47, 158, 95, 0.32);
}
html[data-theme="light"] .ta-cta-viz__sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(47, 158, 95, 0.05) 320deg,
    rgba(47, 158, 95, 0.28) 348deg,
    rgba(255, 255, 255, 0.8) 358deg,
    transparent 360deg
  );
}
html[data-theme="light"] .ta-cta-viz__bloom {
  background: radial-gradient(circle, rgba(47, 158, 95, 0.22) 0%, transparent 70%);
}
html[data-theme="light"] .ta-cta-viz__shield-stroke {
  stroke: #2f9e5f;
  filter: drop-shadow(0 0 6px rgba(47, 158, 95, 0.45));
}
html[data-theme="light"] .ta-cta-viz__shield--l1 .ta-cta-viz__shield-stroke {
  stroke: #1f7a4d;
}
html[data-theme="light"] .ta-cta-viz__shield-fill {
  fill: rgba(47, 158, 95, 0.1);
}
html[data-theme="light"] .ta-cta-viz__shield--l1 .ta-cta-viz__shield-fill {
  fill: rgba(47, 158, 95, 0.16);
}
html[data-theme="light"] .ta-cta-viz__label strong {
  color: #0f3d28;
  text-shadow: none;
}
html[data-theme="light"] .ta-cta-viz__label span {
  color: #3d6b52;
}
html[data-theme="light"] .ta-cta-viz__core-hex {
  background: linear-gradient(160deg, #ffffff, #e8f6ee);
}
html[data-theme="light"] .ta-cta-viz__core-hex::before {
  box-shadow: 0 0 0 1.5px #2f9e5f, 0 0 12px rgba(47, 158, 95, 0.45);
}
html[data-theme="light"] .ta-cta-viz__core-mark strong {
  color: #0a141c;
  text-shadow: none;
}
html[data-theme="light"] .ta-cta-viz__core-mark span {
  color: #1f7a4d;
}
html[data-theme="light"] .ta-cta-viz__core-glow {
  background: radial-gradient(circle, rgba(47, 158, 95, 0.4) 0%, transparent 68%);
}
html[data-theme="light"] .ta-cta-viz__mod,
html[data-theme="light"] .ta-cta-viz__chip {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 244, 0.94));
  border-color: rgba(47, 158, 95, 0.4);
  box-shadow: 0 8px 18px rgba(15, 49, 69, 0.1);
}
html[data-theme="light"] .ta-cta-viz__mod i,
html[data-theme="light"] .ta-cta-viz__chip i {
  color: #1f7a4d;
}
html[data-theme="light"] .ta-cta-viz__mod strong,
html[data-theme="light"] .ta-cta-viz__chip strong {
  color: #0a141c;
}

@media (max-width: 900px) {
  .cta.ta-cta-has-viz {
    grid-template-columns: 1fr;
  }

  .ta-cta-viz {
    max-width: 280px;
    margin: 0.5rem auto 0;
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .ta-cta-viz {
    max-width: 240px;
    min-height: 180px;
  }

  .ta-cta-viz__mod strong {
    font-size: 7.5px;
  }

  .ta-cta-viz__core {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ta-cta-viz[data-cv] * {
    animation: none !important;
  }
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__radar,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__shield,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__label,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__core,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__mod,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__chip,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__sweep,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__bloom,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__core-glow,
  .ta-cta-viz[data-cv="done"] .ta-cta-viz__shield-fill {
    opacity: 1 !important;
  }
}
