export async function validateStartup(idea, targetAudience, monetization) { const res = await fetch('/api/validate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ idea, targetAudience, monetization }), }); if (!res.ok) throw new Error((await res.json()).error); return res.json(); }