---
// InlineLeadForm — Three-field lead capture rendered inline on the homepage.
//
// The goal is to cut the friction step of routing every CTA through /contact.
// Visitors who reach the bottom of the homepage can submit name + contact
// (email OR phone) + project type without a navigation. The submission reuses
// /api/contact under the hood and is tagged `source: 'homepage-inline'` so the
// backend / analytics layer can segment these leads cleanly.
//
// Why a single "contact" field instead of separate email + phone:
// - 3 fields keeps the form psychologically tiny and dramatically lifts
// completion. Real-world conversion testing repeatedly shows 3 → 5+ fields
// is the biggest single-step drop-off on B2B lead forms.
// - We sniff the value on submit. If it has an "@" we treat it as email.
// Otherwise we treat it as a phone and synthesize a placeholder email to
// satisfy the backend's strict email validation. The phone is also sent
// through, so the admin email body shows the real reachable value.
---
Tell us about your project — get a free 1-page proposal in 24 hours.