# Professional Wing — Sample Workflow

> Static walkthrough. No real patient data. The live `/app/*` routes are auth-gated and noindexed.

## Persona
Dr. Mehta, board-certified dermatologist in Mumbai. Holds a Golden Invite Code from Bruvima AI.

## Journey

1. **/pro-landing** — Sovereign B2B landing. Veblen-good dark aesthetic, attribution to Dr. B. R. Upadhyay.
2. **/accession** — Enters Golden Invite Code (or joins waitlist).
3. **/auth-pro** — Email/password or Google OAuth. Role provisioned: `professional`.
4. **/app** — Dashboard. Credit balance shown (PROELITE 100c or PROMAX 250c tier).
5. Picks a workflow — any of:
   - Smile Analysis & Smile Enhancement (digital smile design)
   - Golden Ratio facial map
   - Per-region: Lip / Gum / Skin / Eye / Nose / Forehead / Eyebrow / Cheekbone / Jawline / Neck Profile
   - Facial Symmetry
   - Hair Analysis
   - Comprehensive Report (8 sections, ~32k tokens, dual-language)
   - Face Reading (clinical mode)

## Analysis pipeline

```text
Patient photos (≤5, multi-angle)
   ↓
MediaPipe 468-point facial landmarks
   ↓
Golden Ratio vector extraction (5-step protocol)
   ↓
Region zoom + measurement annotation overlays  ← mandatory
   ↓
Gemini 2.5 Flash (or 2.5 Pro for Comprehensive)
   • System prompt enforces medical conservatism
   • Auto-injects plain-language definitions for clinical terms
   • Recommends minimally invasive options first
   ↓
Visual outputs rendered on the REAL patient photo
   (object-contain, identity preserved, no new faces)
   ↓
White-labeled PDF (Gold/Navy, clinic branding, tier-based)
   ↓
AI Assistant opens proactively, budget in patient's local currency
```

## Credits & billing
- PROELITE — $99 → 100 credits
- PROMAX — $249 → 250 credits
- Comprehensive Report consumes more credits than per-region analyses.

## Compliance & integrity
- Diagnostic visualizations *must* be generated on the real uploaded photo. Generative transformations (smile enhancement, age progression) are allowed only when identity is preserved.
- All photos use `object-contain` — no distortion.
- Output disclaimer: *"FACETiQA is an aesthetic visual analysis tool. Scores are generated by AI for reference purposes only and do not constitute a medical or clinical diagnosis."*

## Referral bridge
A clinical user can also receive inbound referrals from Wellness salon partners when a salon scan detects a structural deficit (see `wellness.md`).
