# TechE CTA Implementation Authority — Static/Node v3

## Governing rule

The public lead-capture experience is one standardized CTA application. The visual shell is derived from the Laravel form implementation (`forms.blade.php`, `start-form.blade.php`, and form components). Workflow differences are configuration, not separate independently designed pages.

The business workflow authority is `CTA_FINAL_WORKFLOW_V2_SOURCE.md`.

### Explicit project override

Where the source workflow says **EspoCRM**, this implementation uses **ERPNext CRM** as the canonical CRM/backend destination. The underlying business outputs remain Lead, company/account/customer context, Contact, Opportunity where applicable, tags, attribution and activity.

## One physical form surface

`public/start/index.html`

The page loads `public/data/lead-workflows-v2.json` and selects exactly one workflow from the query parameters:

| Workflow | Canonical route |
|---|---|
| WorkDesk signup | `/start?intent=signup&offer=workdesk` |
| WorkDesk walkthrough | `/start?intent=demo&offer=workdesk` |
| AI & Advanced Tech assessment | `/start?intent=demo&offer=advanced-tech` |
| Tech Estate assessment | `/start?intent=demo&offer=estate&focus=assessment` |
| Resource | `/start?intent=resource&asset=ecosystem-whitepaper` |
| Community | `/start?intent=community` |
| General discovery | `/start?intent=demo&offer=general` |

Sovereign Infra remains direct navigation to `/sovereign-infra`; it is not converted into a homepage lead form.

## UI rule

Every workflow reuses the same:

- form background and logo assets
- two-column Laravel-derived layout
- kicker, title, explanation and “What happens next” block
- white form card
- progress rail
- Details / workflow-specific middle step / Review / final action pattern
- field control styling
- Back / Continue controls
- validation and error surface
- confirmation surface

The configuration changes the visible copy, labels, fields, step labels and backend workflow mapping.

## Attribution rule

The browser captures and the Node service validates:

`intent`, `offer`, `focus`, `asset`, `cta_label`, `cta_section`, `landing_page`, `source_url`, `ref`, `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `first_seen_at`, `form_session_id`, `variant`, and timestamped `consent_status`.

Referral and UTM values are optional when absent from the session; the workflow context and core source/session fields are always carried.

## Payment rule

The public form contains no card number or CVC inputs. `pay_now` can only return a configured processor-hosted handoff URL. Paid state cannot be updated by the generic scaffold webhook; a processor-specific signature-verifying adapter is required.

## ERPNext rule

Node emits schema `teche.website-lead.v2` to the configured ERPNext/BFF `POST /website-leads` endpoint. The contract includes:

- contact email dedupe key
- domain/company dedupe context
- Lead
- Contact
- company/account/customer context
- Opportunity only for sales/assessment workflows
- workflow tags
- CTA/session/UTM/referral activity
- complete workflow data
- downstream action contract

No live ERPNext synchronization can be certified until the endpoint and credentials are configured.
