/* Voice OTP product page — 3D hero + motion stage (how-it-works) */
.votp-hero-3d {
    --votp-teal: #14b8a6;
    --votp-cyan: #5eead4;
    --votp-blue: #1d5ed2;
    --votp-purple: #a855f7;
    --votp-navy: #0f172a;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    overflow: visible;
}

.votp-hero-3d__stage {
    position: relative;
    width: min(24rem, 92vw);
    height: min(22rem, 72vw);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 980px;
    transform-style: preserve-3d;
    overflow: visible;
}

.votp-hero-3d__glow {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 72%;
    height: 2.5rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        rgba(20, 184, 166, 0.38) 0%,
        rgba(29, 94, 210, 0.22) 42%,
        rgba(168, 85, 247, 0.1) 62%,
        transparent 78%
    );
    filter: blur(14px);
    pointer-events: none;
}

.votp-hero-3d__phone-unit {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    animation: votpHeroPhoneShake 10s ease-in-out infinite;
}

.votp-hero-3d__ripples {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 5rem;
    height: 5rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: votpHeroRipplesPhase 10s ease-in-out infinite;
}

.votp-hero-3d__ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(94, 234, 212, 0.45);
    box-shadow: 0 0 18px rgba(20, 184, 166, 0.25);
    animation: votpHeroRippleExpand 1.35s ease-out infinite;
}

.votp-hero-3d__ripple:nth-child(2) { animation-delay: 0.45s; }
.votp-hero-3d__ripple:nth-child(3) { animation-delay: 0.9s; }

.votp-hero-3d__phone {
    position: relative;
    width: 8.25rem;
    height: 14.5rem;
    transform-style: preserve-3d;
    filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.28));
}

.votp-hero-3d__phone-bezel {
    position: absolute;
    inset: 0;
    border-radius: 1.65rem;
    padding: 0.42rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #111827 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -8px 16px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    transform: rotateX(18deg) rotateY(-22deg);
    transform-style: preserve-3d;
}

.votp-hero-3d__phone-bezel::before {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: 50%;
    width: 2.4rem;
    height: 0.28rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
}

.votp-hero-3d__screen {
    position: relative;
    height: 100%;
    border-radius: 1.28rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.28), transparent 42%),
        radial-gradient(circle at 30% 72%, rgba(29, 94, 210, 0.22), transparent 48%),
        linear-gradient(165deg, #111827 0%, #0b1220 48%, #172033 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0.85rem 1.15rem;
}

.votp-hero-3d__caller {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.votp-hero-3d__caller-ring {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(29, 94, 210, 0.35));
    border: 1px solid rgba(94, 234, 212, 0.35);
    box-shadow: 0 0 24px rgba(20, 184, 166, 0.22);
    animation: votpHeroCallerPulse 10s ease-in-out infinite;
}

.votp-hero-3d__caller-ring i {
    font-size: 1.15rem;
    color: #ccfbf1;
}

.votp-hero-3d__caller-dots {
    display: flex;
    gap: 0.28rem;
}

.votp-hero-3d__caller-dots span {
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.55);
    animation: votpHeroDotBlink 1.1s ease-in-out infinite;
}

.votp-hero-3d__caller-dots span:nth-child(2) { animation-delay: 0.2s; }
.votp-hero-3d__caller-dots span:nth-child(3) { animation-delay: 0.4s; }

.votp-hero-3d__waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.22rem;
    height: 2rem;
    opacity: 0.15;
    animation: votpHeroWaveformPhase 10s ease-in-out infinite;
}

.votp-hero-3d__waveform span {
    width: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(to top, var(--votp-teal), var(--votp-purple));
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
    animation: votpHeroWaveBar 0.85s ease-in-out infinite;
}

.votp-hero-3d__waveform span:nth-child(1) { height: 0.55rem; animation-delay: 0s; }
.votp-hero-3d__waveform span:nth-child(2) { height: 1rem; animation-delay: 0.12s; }
.votp-hero-3d__waveform span:nth-child(3) { height: 1.45rem; animation-delay: 0.24s; }
.votp-hero-3d__waveform span:nth-child(4) { height: 0.85rem; animation-delay: 0.36s; }
.votp-hero-3d__waveform span:nth-child(5) { height: 1.2rem; animation-delay: 0.48s; }
.votp-hero-3d__waveform span:nth-child(6) { height: 0.65rem; animation-delay: 0.6s; }

.votp-hero-3d__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
}

.votp-hero-3d__btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.votp-hero-3d__btn--decline {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.35);
}

.votp-hero-3d__btn--decline::after {
    content: '';
    width: 0.95rem;
    height: 0.12rem;
    border-radius: 999px;
    background: #fb7185;
    transform: rotate(-38deg);
}

.votp-hero-3d__btn--answer {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border: 1px solid rgba(94, 234, 212, 0.45);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.45);
    animation: votpHeroAnswerGlow 10s ease-in-out infinite;
}

.votp-hero-3d__btn--answer i {
    font-size: 0.82rem;
    color: #ecfeff;
    transform: rotate(110deg);
}

.votp-hero-3d__sound-burst {
    position: absolute;
    right: -1.2rem;
    top: 34%;
    width: 3.5rem;
    height: 3.5rem;
    pointer-events: none;
    animation: votpHeroSoundBurstPhase 10s ease-in-out infinite;
}

.votp-hero-3d__sound-burst span {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: rgba(168, 85, 247, 0.55);
    border-right-color: rgba(94, 234, 212, 0.45);
    border-radius: 50%;
    transform: rotate(-28deg);
    animation: votpHeroSoundArc 1.2s ease-out infinite;
}

.votp-hero-3d__sound-burst span:nth-child(2) {
    inset: 0.45rem;
    animation-delay: 0.35s;
    border-top-color: rgba(29, 94, 210, 0.5);
    border-right-color: rgba(168, 85, 247, 0.4);
}

.votp-hero-3d__sound-burst span:nth-child(3) {
    inset: 0.9rem;
    animation-delay: 0.7s;
}

.votp-hero-3d__digits {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    transform-style: preserve-3d;
}

.votp-hero-3d__digit {
    position: absolute;
    left: 54%;
    top: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.55rem;
    border-radius: 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--votp-cyan);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(94, 234, 212, 0.35);
    text-shadow: 0 0 16px rgba(94, 234, 212, 0.65);
    box-shadow:
        0 0 22px rgba(20, 184, 166, 0.28),
        0 0 36px rgba(168, 85, 247, 0.18);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
    animation: votpHeroDigitEmerge 10s ease-in-out infinite;
    animation-delay: calc(3.8s + var(--i) * 0.42s);
}

.votp-hero-3d__digit:nth-child(1) { --tx: 4.5rem; --ty: -3.2rem; --tz: 48px; }
.votp-hero-3d__digit:nth-child(2) { --tx: 6.2rem; --ty: -0.8rem; --tz: 72px; }
.votp-hero-3d__digit:nth-child(3) { --tx: 5.4rem; --ty: 1.8rem; --tz: 56px; }
.votp-hero-3d__digit:nth-child(4) { --tx: 3.2rem; --ty: 3.1rem; --tz: 40px; }
.votp-hero-3d__digit:nth-child(5) { --tx: 1rem; --ty: 2.2rem; --tz: 64px; }
.votp-hero-3d__digit:nth-child(6) { --tx: -0.8rem; --ty: 0.2rem; --tz: 52px; }

.votp-hero-3d__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: votpHeroParticlesPhase 10s ease-in-out infinite;
}

.votp-hero-3d__particle {
    position: absolute;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: rgba(94, 234, 212, 0.85);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.55);
    opacity: 0;
    animation: votpHeroParticleDrift 10s ease-out infinite;
    animation-delay: calc(4.1s + var(--p) * 0.18s);
}

.votp-hero-3d__particle:nth-child(1) { left: 52%; top: 38%; --dx: 5rem; --dy: -2rem; }
.votp-hero-3d__particle:nth-child(2) { left: 54%; top: 40%; --dx: 6rem; --dy: 0.5rem; }
.votp-hero-3d__particle:nth-child(3) { left: 53%; top: 36%; --dx: 4.5rem; --dy: 2rem; }
.votp-hero-3d__particle:nth-child(4) { left: 51%; top: 39%; --dx: 3rem; --dy: 2.8rem; }
.votp-hero-3d__particle:nth-child(5) { left: 55%; top: 37%; --dx: 6.5rem; --dy: -1rem; }

@keyframes votpHeroRipplesPhase {
    0%, 32% { opacity: 1; }
    38%, 100% { opacity: 0; }
}

@keyframes votpHeroRippleExpand {
    0% { transform: scale(0.55); opacity: 0.7; }
    100% { transform: scale(2.15); opacity: 0; }
}

@keyframes votpHeroPhoneShake {
    0%, 3% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0); }
    4% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-2deg) translate3d(-2px, 0, 0); }
    6% { transform: rotateX(0deg) rotateY(0deg) rotateZ(2deg) translate3d(2px, -1px, 0); }
    8% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-2deg) translate3d(-2px, 0, 0); }
    10% { transform: rotateX(0deg) rotateY(0deg) rotateZ(2deg) translate3d(2px, 0, 0); }
    12%, 15% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0); }
    16% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-2deg) translate3d(-2px, 0, 0); }
    18% { transform: rotateX(0deg) rotateY(0deg) rotateZ(2deg) translate3d(2px, 0, 0); }
    20% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-1deg) translate3d(-1px, 0, 0); }
    22%, 30% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0); }
    31%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0); }
}

@keyframes votpHeroCallerPulse {
    0%, 30% { box-shadow: 0 0 24px rgba(20, 184, 166, 0.22); transform: scale(1); }
    8%, 18% { box-shadow: 0 0 32px rgba(20, 184, 166, 0.45); transform: scale(1.04); }
    35%, 100% { box-shadow: 0 0 28px rgba(168, 85, 247, 0.35); transform: scale(1); }
}

@keyframes votpHeroDotBlink {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes votpHeroWaveformPhase {
    0%, 34% { opacity: 0.12; }
    38%, 72% { opacity: 1; }
    78%, 100% { opacity: 0.12; }
}

@keyframes votpHeroWaveBar {
    0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes votpHeroAnswerGlow {
    0%, 30% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.45); transform: scale(1); }
    6%, 22% { box-shadow: 0 0 30px rgba(20, 184, 166, 0.75); transform: scale(1.06); }
    35%, 100% { box-shadow: 0 0 16px rgba(20, 184, 166, 0.3); transform: scale(1); }
}

@keyframes votpHeroSoundBurstPhase {
    0%, 36% { opacity: 0; }
    40%, 78% { opacity: 1; }
    84%, 100% { opacity: 0; }
}

@keyframes votpHeroSoundArc {
    0% { transform: rotate(-28deg) scale(0.7); opacity: 0.8; }
    100% { transform: rotate(-28deg) scale(1.25); opacity: 0; }
}

@keyframes votpHeroDigitEmerge {
    0%, 6% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.35); }
    12%, 18% { opacity: 1; transform: translate3d(calc(var(--tx) * 0.18), calc(var(--ty) * 0.18), calc(var(--tz) * 0.25)) scale(1.08); }
    42%, 58% { opacity: 0.92; transform: translate3d(var(--tx), var(--ty), var(--tz)) scale(1); }
    72%, 100% { opacity: 0; transform: translate3d(calc(var(--tx) * 1.12), calc(var(--ty) * 1.12), calc(var(--tz) + 16px)) scale(0.88); }
}

@keyframes votpHeroParticlesPhase {
    0%, 38% { opacity: 0; }
    42%, 80% { opacity: 1; }
    86%, 100% { opacity: 0; }
}

@keyframes votpHeroParticleDrift {
    0%, 8% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.5); }
    16%, 24% { opacity: 0.9; transform: translate3d(calc(var(--dx) * 0.35), calc(var(--dy) * 0.35), 20px) scale(1); }
    50%, 62% { opacity: 0.5; transform: translate3d(var(--dx), var(--dy), 48px) scale(0.7); }
    72%, 100% { opacity: 0; transform: translate3d(calc(var(--dx) * 1.1), calc(var(--dy) * 1.1), 64px) scale(0.4); }
}

@media (max-width: 639px) {
    .votp-hero-3d__stage {
        width: min(20rem, 94vw);
        height: min(19rem, 66vw);
    }

    .votp-hero-3d__phone {
        width: 7rem;
        height: 12.25rem;
    }

    .votp-hero-3d__digit {
        width: 1.8rem;
        height: 2.15rem;
        font-size: 1.1rem;
    }

    .votp-hero-3d__digit:nth-child(1) { --tx: 3.4rem; --ty: -2.4rem; --tz: 36px; }
    .votp-hero-3d__digit:nth-child(2) { --tx: 4.6rem; --ty: -0.5rem; --tz: 52px; }
    .votp-hero-3d__digit:nth-child(3) { --tx: 4rem; --ty: 1.3rem; --tz: 42px; }
    .votp-hero-3d__digit:nth-child(4) { --tx: 2.4rem; --ty: 2.3rem; --tz: 30px; }
    .votp-hero-3d__digit:nth-child(5) { --tx: 0.6rem; --ty: 1.6rem; --tz: 48px; }
    .votp-hero-3d__digit:nth-child(6) { --tx: -0.6rem; --ty: 0.1rem; --tz: 38px; }
}

@media (min-width: 640px) {
    .votp-hero-3d__stage {
        width: min(28rem, 92vw);
        height: min(26rem, 72vw);
    }

    .votp-hero-3d__phone {
        width: 9.25rem;
        height: 16rem;
    }

    .votp-hero-3d__digit {
        font-size: 1.55rem;
        width: 2.35rem;
        height: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .votp-hero-3d__stage {
        width: min(30rem, 100%);
        height: min(28rem, 74vh);
    }
}

/* Voice OTP product page — motion stage (how-it-works) */
.votp-how-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 40rem;
}

.votp-motion-stage {
    position: relative;
    min-height: 24rem;
    --motion-caption-reserve: 2.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.12), transparent 36%),
        radial-gradient(circle at 12% 78%, rgba(29, 94, 210, 0.1), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    contain: layout style paint;
    isolation: isolate;
}

.votp-motion-stage__progress {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: rgba(148, 163, 184, 0.2);
    z-index: 3;
    overflow: hidden;
}

.votp-motion-stage__progress-fill {
    display: block;
    height: 100%;
    width: calc((var(--votp-step, 0) + 1) * 25%);
    background: linear-gradient(90deg, #14b8a6, #1d5ed2);
    transition: width 0.45s ease;
}

.votp-motion-stage[data-active-step="0"] { --votp-step: 0; }
.votp-motion-stage[data-active-step="1"] { --votp-step: 1; }
.votp-motion-stage[data-active-step="2"] { --votp-step: 2; }
.votp-motion-stage[data-active-step="3"] { --votp-step: 3; }

.votp-motion-stage__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.65rem 1rem;
    min-height: var(--motion-caption-reserve, 2.75rem);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 58%, rgba(255, 255, 255, 0.88) 82%, transparent);
    pointer-events: none;
    z-index: 10;
}

.votp-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 2rem calc(var(--motion-caption-reserve, 2.75rem) + 1.25rem);
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

.votp-scene.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

/* Pause all child animations when off-screen, tab hidden, or hovered */
.votp-motion-stage.is-paused .votp-scene *,
.votp-scene:not(.is-active) * {
    animation-play-state: paused !important;
}

.votp-step-btn {
    width: 100%;
    text-align: right;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.votp-step-btn.is-active {
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: 0 8px 22px rgba(20, 184, 166, 0.12);
    transform: translateX(-2px);
}

.votp-step-btn__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f766e;
    background: #ccfbf1;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.votp-step-btn.is-active .votp-step-btn__num {
    background: #14b8a6;
    color: #fff;
}

.votp-flow-arrow {
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, #14b8a6);
    position: relative;
    flex-shrink: 0;
}

.votp-flow-arrow::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-left: 2px solid #14b8a6;
    border-bottom: 2px solid #14b8a6;
    transform: translateY(-50%) rotate(45deg);
}

@keyframes votpArrowFlow {
    0%, 100% { opacity: 0.45; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1); }
}

.votp-flow-arrow--active {
    transform-origin: center;
    animation: votpArrowFlow 1.5s ease-in-out infinite;
}

.votp-latency-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

@keyframes votpPhoneRing {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
    70% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}

.votp-phone-ring {
    animation: votpPhoneRing 2.4s ease-in-out infinite;
}

@keyframes votpAnswerRing {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30% { transform: scale(1.08) rotate(-3deg); }
    20%, 40% { transform: scale(1.08) rotate(3deg); }
    50% { transform: scale(1) rotate(0deg); }
}

.votp-answer-btn {
    animation: votpAnswerRing 2.5s ease-in-out infinite;
}

.votp-otp-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: rgba(94, 234, 212, 0.45);
    opacity: 0.55;
}

@keyframes votpDigitLight {
    to {
        opacity: 1;
        color: #5eead4;
        background: rgba(20, 184, 166, 0.22);
        border-color: rgba(45, 212, 191, 0.55);
        box-shadow: 0 0 18px rgba(20, 184, 166, 0.25);
        transform: scale(1.05);
    }
}

.votp-scene.is-active .votp-otp-digit {
    animation: votpDigitLight 0.35s ease forwards;
}

.votp-scene.is-active .votp-otp-digit:nth-child(1) { animation-delay: 0.15s; }
.votp-scene.is-active .votp-otp-digit:nth-child(2) { animation-delay: 0.45s; }
.votp-scene.is-active .votp-otp-digit:nth-child(3) { animation-delay: 0.75s; }
.votp-scene.is-active .votp-otp-digit:nth-child(4) { animation-delay: 1.05s; }
.votp-scene.is-active .votp-otp-digit:nth-child(5) { animation-delay: 1.35s; }
.votp-scene.is-active .votp-otp-digit:nth-child(6) { animation-delay: 1.65s; }

@keyframes votpVoiceWave {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.12); opacity: 1; }
}

.votp-voice-icon {
    animation: votpVoiceWave 1.5s ease-in-out infinite;
}

@keyframes votpPulseLine {
    0%, 100% { opacity: 0.35; transform: scaleX(0.92); }
    50% { opacity: 1; transform: scaleX(1); }
}

.votp-pulse-line {
    transform-origin: center;
    animation: votpPulseLine 1.6s ease-in-out infinite;
}

@keyframes votpWebhookReveal {
    from { opacity: 0; transform: translate3d(0, 6px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.votp-scene.is-active .votp-webhook-event {
    opacity: 0;
    animation: votpWebhookReveal 0.35s ease forwards;
}

.votp-scene.is-active .votp-webhook-event:nth-child(1) { animation-delay: 0.1s; }
.votp-scene.is-active .votp-webhook-event:nth-child(2) { animation-delay: 0.35s; }
.votp-scene.is-active .votp-webhook-event:nth-child(3) { animation-delay: 0.6s; }
.votp-scene.is-active .votp-webhook-event:nth-child(4) { animation-delay: 0.85s; }

.votp-webhook-event {
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
}

/* Breathing room: keep scene art smaller than the stage frame */
.votp-motion-stage .votp-scene > * {
    width: 100%;
    max-width: min(17.5rem, 72%);
    margin-inline: auto;
}

@media (max-width: 639px) {
    .votp-motion-stage {
        min-height: 21rem;
    }

    .votp-motion-stage__caption {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.52) 38%, rgba(255, 255, 255, 0.18) 72%, transparent);
        color: rgba(100, 116, 139, 0.82);
    }

    .votp-scene {
        align-items: flex-start;
        justify-content: center;
        padding-top: 1.35rem;
        padding-inline: 1rem;
        padding-bottom: calc(var(--motion-caption-reserve, 2.75rem) + 0.65rem);
        overflow: hidden;
    }

    .votp-motion-stage .votp-scene > * {
        max-width: min(14.25rem, 88%);
        transform: scale(0.88);
        transform-origin: center top;
    }

    /* Step 1 — widen flow row, smaller app/backend copy */
    #votp-scene-0 > div {
        max-width: min(16.75rem, 94%);
        transform: scale(0.9);
    }

    #votp-scene-0 .flex.items-center.gap-3 > .flex-1 {
        flex: 1.55 1 0;
        padding: 0.55rem 0.7rem;
    }

    #votp-scene-0 .flex.items-center.gap-3 > .rounded-2xl.border-teal-200 {
        min-width: 5.25rem;
        padding: 0.55rem 0.45rem;
    }

    #votp-scene-0 .flex.items-center.gap-3 .text-\[10px\] {
        font-size: 0.58rem;
        margin-bottom: 0.25rem;
    }

    #votp-scene-0 .flex.items-center.gap-3 .text-xs {
        font-size: 0.65rem;
        line-height: 1.35;
    }

    /* Step 2 — shorter phone mockup */
    #votp-scene-1 {
        align-items: center;
        padding-top: 0.85rem;
    }

    #votp-scene-1 > div {
        max-width: min(13rem, 82%);
        transform: scale(0.86, 0.8);
        transform-origin: center center;
    }

    #votp-scene-1 .votp-phone-ring {
        padding: 0.85rem;
        transform: none;
    }

    #votp-scene-1 .mb-6 {
        margin-bottom: 1rem;
    }

    #votp-scene-1 .mt-5 {
        margin-top: 0.65rem;
    }

    #votp-scene-1 .w-14 {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 0.5rem;
    }

    /* Step 3 — wider OTP card */
    #votp-scene-2 {
        align-items: center;
        padding-top: 0.75rem;
    }

    #votp-scene-2 > div {
        max-width: min(17rem, 96%);
        width: 100%;
        transform: scale(0.94);
        transform-origin: center center;
        padding: 1.1rem 1rem;
    }

    #votp-scene-2 .mb-5 {
        margin-bottom: 0.85rem;
    }

    #votp-scene-2 .mb-4 {
        margin-bottom: 0.65rem;
    }

    /* Step 4 — shorter webhook stack */
    #votp-scene-3 > div {
        max-width: min(15.5rem, 90%);
        transform: scale(0.88, 0.84);
        transform-origin: center top;
    }

    .votp-motion-stage .votp-scene > .space-y-3 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.45rem;
    }

    .votp-webhook-event {
        padding: 0.25rem 0.4rem;
        font-size: 0.58rem;
    }

    .votp-motion-stage .votp-scene .rounded-xl.bg-slate-900,
    .votp-motion-stage .votp-scene .rounded-2xl.border {
        padding: 0.55rem 0.65rem;
    }
}

@media (min-width: 640px) {
    .votp-motion-stage {
        min-height: 26rem;
    }

    .votp-scene {
        padding: 2.5rem 2.5rem 4rem;
    }

    .votp-motion-stage .votp-scene > * {
        max-width: min(18rem, 66%);
    }
}

@media (min-width: 1024px) {
    .votp-motion-stage {
        min-height: 30rem;
    }

    .votp-scene {
        padding: 3rem 3.25rem 4.75rem;
    }

    .votp-motion-stage .votp-scene > * {
        max-width: min(19rem, 60%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .votp-how-section {
        content-visibility: visible;
    }

    .votp-hero-3d__phone-unit,
    .votp-hero-3d__ripples,
    .votp-hero-3d__ripple,
    .votp-hero-3d__caller-ring,
    .votp-hero-3d__caller-dots span,
    .votp-hero-3d__waveform,
    .votp-hero-3d__waveform span,
    .votp-hero-3d__btn--answer,
    .votp-hero-3d__sound-burst,
    .votp-hero-3d__sound-burst span,
    .votp-hero-3d__digit,
    .votp-hero-3d__particle,
    .votp-hero-3d__particles {
        animation: none !important;
    }

    .votp-hero-3d__ripples,
    .votp-hero-3d__sound-burst {
        opacity: 0;
    }

    .votp-hero-3d__waveform {
        opacity: 1;
    }

    .votp-hero-3d__digit {
        opacity: 0.85;
        transform: translate3d(var(--tx), var(--ty), var(--tz)) scale(1);
    }

    .votp-scene {
        transition: none !important;
        transform: none !important;
        will-change: auto;
    }

    .votp-motion-stage__progress-fill {
        transition: none !important;
    }

    .votp-pulse-line,
    .votp-flow-arrow--active,
    .votp-phone-ring,
    .votp-answer-btn,
    .votp-voice-icon,
    .votp-scene.is-active .votp-otp-digit,
    .votp-scene.is-active .votp-webhook-event {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .votp-otp-digit {
        opacity: 1;
        color: #5eead4;
        background: rgba(20, 184, 166, 0.22);
        border-color: rgba(45, 212, 191, 0.55);
    }
}
