${day.badge} ${day.title}
${day.sub}
${day.drills.map(drill =>
${drill.name}
${drill.desc}
).join('')}
${day.metric}
; }); } else { html =
Your ${program.title} plan is ready
Full 5-day breakdown will be sent to your email.
; } container.innerHTML = html; } function showEmailCapture() { document.getElementById('step-4').classList.remove('active'); document.getElementById('step-5').classList.add('active'); } function submitEmail() { const email = document.getElementById('email').value; if (!email || !email.includes('@')) { alert("Please enter a valid email"); return; } document.getElementById('step-5').classList.remove('active'); document.getElementById('step-6').classList.add('active'); setTimeout(() => { redirectToAppStore(); }, 2500); } function redirectToAppStore() { window.location.href = "https://apps.apple.com/app/ball-ai"; } function goBack() { const active = document.querySelector('.funnel-step.active'); if (!active) return; active.classList.remove('active'); if (active.id === 'step-2') document.getElementById('step-1').classList.add('active'); if (active.id === 'step-3') document.getElementById('step-2').classList.add('active'); if (active.id === 'step-4') document.getElementById('step-3').classList.add('active'); } ``