function Founding() { const [done, setDone] = React.useState(false); const [submitting, setSubmitting] = React.useState(false); const [error, setError] = React.useState(''); const t = window.t; const lang = window.__LANG__ || 'el'; const TOTAL = 50; const baseFilled = 17; const filled = done ? baseFilled + 1 : baseFilled; const pct = Math.round((filled / TOTAL) * 100); async function onSubmit(e) { e.preventDefault(); if (submitting) return; const form = e.target; setSubmitting(true); setError(''); try { const res = await fetch('https://formspree.io/f/mvzjkyrz', { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' }, }); if (res.ok) { setDone(true); form.reset(); } else { const j = await res.json().catch(() => ({})); const msg = j && j.errors && j.errors[0] && j.errors[0].message; setError(msg || (lang === 'el' ? 'Κάτι πήγε στραβά. Δοκίμασε ξανά.' : 'Something went wrong. Please try again.')); } } catch (err) { setError(lang === 'el' ? 'Σφάλμα δικτύου. Δοκίμασε ξανά.' : 'Network error. Please try again.'); } setSubmitting(false); } return (
{/* Badge Pill */} {t('founding.badge')} {/* Title */}

{t('founding.title')}

{t('founding.sub')}

{/* Live Waitlist Progress Bar */}
{filled} / {TOTAL} {t('waitlist.filled')} {TOTAL - filled} {t('waitlist.spotsLeft')}
{/* Form */} {!done ? (
) : (
✓ {t('founding.success')}
)} {error &&
{error}
}
{t('founding.disclaimer')}
); } window.Founding = Founding;