# Gain AI Solutions — Complete Build Reference

> **Use this document** to recreate the site, hand it to another developer, or train a future AI on the exact structure, design, and content of https://trygain-ai.com.
> **Exported:** August 18, 2026
> **Live URLs:** https://trygain-ai.com, https://www.trygain-ai.com, https://james-hoglen2k.lovable.app

---

## 1. Project Overview

- **Name:** gAIn AI Solutions
- **Brand name (short):** Gain AI
- **Tagline:** "Workflow automation for small businesses"
- **Core promise:** Connects existing tools, automates repetitive work, and gives small business owners a real-time view of their operations so they can focus on the work instead of managing it.
- **Business model:** SaaS / service-based AI automation for small and mid-sized businesses.
- **Contact:**
  - Phone: 945-732-2282
  - Email: info@trygain-ai.com
  - Location: Frisco, TX 75033
- **Voice agent demo number:** 214-954-3133
- **Chatbot:** Retell widget, bot name "MJ", brand color `#2362a1`
- **Owner:** James Hoglen

---

## 2. Brand Identity

### Visual Direction
- **Style:** Clean, flat SaaS aesthetic inspired by Linear, Notion, and Stripe.
- **No gradients** in the main design (except the logo text in the old NavBar component).
- **Lots of whitespace** and clear hierarchy.

### Colors
| Token | HSL | Hex/Use |
|-------|-----|---------|
| Primary deep blue | `222 65% 38%` | `#1d3d66` — brand anchor |
| Primary | `220 80% 60%` | `#5c8ce6` — buttons, links, accents |
| Primary dark | `222 65% 38%` | `#234a7d` — hover states |
| Primary tint | `222 40% 16%` | `#18243a` — chip backgrounds, icon containers |
| Accent orange | `22 90% 55%` | `#f06a2a` — highlights, CTAs |
| Background | `222 30% 7%` | `#0c101a` — page background |
| Soft background | `222 25% 10%` | `#121824` — alternate sections |
| Card | `222 28% 10%` | `#131b28` — cards |
| Foreground | `220 15% 95%` | `#edf0f5` — text |
| Muted foreground | `220 10% 65%` | `#98a2b3` — secondary text |
| Border | `222 20% 18%` | `#232b3d` — borders |
| Button interactive | alias of primary | active nav pill background |

### Typography
- **Headings:** DM Serif Display (Google Fonts), weight 400, letter-spacing -0.01em.
- **Body:** DM Sans (Google Fonts), weights 400, 500, 600, 700, opsz 9..40.
- **Font display:** `display=swap` for performance.

### Logo & Imagery
- **Primary logo:** `src/assets/gain-ai-logo.png` (used in nav, hero, footer, and as background watermark).
- **Veterans badge:** `src/assets/veterans-badge.png` (used in nav next to logo and on `/veterans`).
- **Background watermark:** Large centered logo at 20% opacity, fixed behind content.
- **Other images:** insurance-hero.jpg, insurance-team.jpg, satisfied-clients.jpg (legacy/available but not currently used in main pages).

### Content Rules
- **Forbidden sections:** Pricing, case studies, testimonials/chatbot UI (legacy exclusions). Reviews are allowed as a separate `/reviews` page.
- Tone: Professional, human, practical. No gimmicks.

---

## 3. Technology Stack

- **Framework:** React 18 + TypeScript 5
- **Build tool:** Vite 5
- **Routing:** react-router-dom v6
- **Styling:** Tailwind CSS v3 + shadcn/ui components
- **State:** React hooks (local); TanStack Query for future data
- **Theming:** next-themes (dark mode default)
- **Animation:** framer-motion
- **Icons:** lucide-react
- **SEO:** react-helmet-async
- **Sitemap:** `scripts/generate-sitemap.ts` (runs in `predev` and `prebuild` via `bunx tsx`)
- **Chatbot:** Retell widget embedded in `index.html`

---

## 4. Site Structure & Routes

| Route | Page Component | Title | Description | Priority |
|-------|---------------|-------|-------------|----------|
| `/` | `Index.tsx` | Gain AI \| Workflow Automation for Small Businesses | General site description | 1.0 |
| `/about` | `About.tsx` | About \| Gain AI Solutions | Smaller team, practical AI, veteran friendly | 0.8 |
| `/services` | `Services.tsx` | Services \| Gain AI Solutions | Voice agents, chatbots, CRM integrations, workflow automation | 0.9 |
| `/demo` | `Demo.tsx` | Live Voice Agent Demo \| Gain AI | Call the home services voice agent demo | 0.8 |
| `/contact` | `Contact.tsx` | Contact \| Gain AI Solutions | Contact info page | 0.8 |
| `/faq` | `FAQ.tsx` | FAQ \| Gain AI Solutions | 16-question FAQ with structured data | 0.7 |
| `/reviews` | `Reviews.tsx` | Reviews & Testimonials \| Gain AI | Client testimonials | - |
| `/veterans` | `Veterans.tsx` | Veterans & First Responders Discount \| Gain AI | Honor page with discount CTA | - |
| `/privacy` | `Privacy.tsx` | Privacy Policy \| Gain AI | Legal page | 0.4 |
| `/terms` | `Terms.tsx` | Terms of Service \| Gain AI | Legal placeholder | 0.4 |
| `/sms-policy` | `SmsPolicy.tsx` | SMS & Communication Policy \| Gain AI | Legal page | 0.4 |
| `*` | `NotFound.tsx` | 404 Not Found \| Gain AI | Catch-all | - |

**Shared layout:** `SiteLayout.tsx` wraps all pages with `SiteNav`, `SiteFooter`, and the watermark background.

---

## 5. Navigation

### Top Navigation (`SiteNav.tsx`)
- Sticky, blurred background, border-bottom.
- Logo area (left): Gain AI logo + veterans badge + "Veterans / First Responders — click here" text (lg screens only).
- Desktop links (right): Home, About, Services, Demo, Reviews, FAQ, Contact + "Get started free" CTA button.
- Mobile: hamburger menu with the same links.
- Active state uses `text-primary`.

### Footer (`SiteFooter.tsx`)
- Centered logo, tagline, quick links, copyright.
- Copyright text: `© 2026 Gain AI Solutions. All rights reserved.`
- Legal links: Privacy Policy, Terms of Service, SMS & Communication Policy.

---

## 6. Page Content Summaries

### Home (`/`)
- Large Gain AI logo centered in hero.
- Chip pill: "Workflow automation for small businesses" with Workflow icon.
- H1 (two lines on desktop, centered on mobile):
  - Line 1: "stop running your business on" (white/near-white)
  - Line 2: "spreadsheets and sticky notes." (primary color)
- Subheadline about connecting tools and automating work.
- Two CTAs: "See how it works" (primary) and "Find my workflows" (secondary outline).
- Section: "What Gain AI Automates" — 6 workflow cards:
  1. Lead-to-job pipeline
  2. Scheduling & dispatch
  3. Estimates & follow-ups
  4. Client communication
  5. Reputation building
  6. Reporting & visibility
- Teaser cards linking to About, Demo, FAQ.
- Final CTA: "Ready to see your workflows?" → "Get started free"

### About (`/about`)
- H1: "Practical AI, built around how your business actually runs."
- 4 value cards:
  1. The advantage of a smaller team (same-day replies, 48-hour resolution).
  2. No gimmicks. Just what works.
  3. AI that enhances your team (not replaces people).
  4. Veteran & first responder friendly (special pricing).
- Final CTA: "Ready to simplify your business?" → "Schedule a call"

### Services (`/services`)
- H1: "Built for the way your business actually runs."
- Section: "What Gain AI Automates" (same 6 cards as home).
- **Industry Finder:**
  - Category chips: All businesses, Home services, Trades, Health & wellness, Legal & finance, Food & retail, Personal services, Automotive.
  - Industry chips under each category (35+ industries with Lucide icons).
  - Selecting an industry shows 6 tailored workflow cards below.
- **How It Works:** 4 steps:
  1. Map your workflows
  2. Connect your tools
  3. Automation goes live
  4. Measure and expand
- Final CTA: "See what your workflow could look like." → "Schedule a call"

### Demo (`/demo`)
- H1: "Talk to a Gain AI voice agent right now."
- Large tap-to-call link: (214) 954-3133
- 3 info cards: "Try these", "What it does", "Yours, customized".
- Final CTA: "Want one built for your business?" → "Schedule a call"

### Contact (`/contact`)
- H1: "Get in touch."
- 3 cards: Call/text (945-732-2282), Email (info@trygain-ai.com), Location (Frisco, TX 75033).

### FAQ (`/faq`)
- H1: "Questions, answered."
- 16 accordion items covering services, customization, setup time, veterans discount, etc.
- FAQPage JSON-LD structured data.
- Final CTA: "Ready to Simplify Your Business?" → "Schedule a Call"

### Reviews (`/reviews`)
- H1: "In their own words."
- 6 testimonial cards (Shelley, N., Maggie, Stephen & Bob, Arturo, Mike) — generic business recommendations referencing James Hoglen.
- Final CTA: "Ready to experience it for yourself?" → "Get in touch"

### Veterans (`/veterans`)
- Large veterans badge.
- H1: "Honoring those who serve."
- Personal story about family military service and why they offer special pricing.
- CTA: "Claim your discount." → "Get in touch"

### Legal Pages
- Privacy Policy, Terms of Service, SMS & Communication Policy.
- All use the same dark theme and centered prose layout.

---

## 7. Data Model (`src/data/site.ts`)

### Exports
- `categories` — filter chips for the industry finder.
- `industries` — 35+ industries with id, label, icon, category, subtitle, and 6 workflow descriptions each.
- `workflowMeta` — 6 generic workflow titles + icons for the services cards.
- `automates` — 6 generic workflow cards used on home and services.
- `steps` — 4 "How it works" steps.

### Industries List
Trades: HVAC, Plumber, Electrician
Home services: Tree Service, Garage Door, Lawn Care, Cleaning, Pest Control, Roofing, Painting, Handyman, Pool Service, Locksmith
Legal & finance: Bankruptcy Attorney, Personal Injury, Family Law, Tax & Accounting, Mortgage Broker, Insurance Agent, Real Estate
Health & wellness: Medical Office, Dental Office, Chiropractor, Therapy & Counseling
Personal services: Salon & Spa, Gym & Fitness, Pet Services, Tattoo Studio, Photography, Childcare
Food & retail: Restaurant & Café, Catering, Retail Shop
Automotive: Auto Services, Towing & Roadside, Auto Detailing

---

## 8. SEO Setup

### Per-Route SEO (`src/components/Seo.tsx`)
- Uses `react-helmet-async`.
- Sets `<title>`, `<meta name="description">`, canonical link, OG tags, and Twitter tags.
- Base URL: `https://trygain-ai.com`.

### Global SEO (`index.html`)
- Default title, description, OG tags, Twitter card.
- JSON-LD structured data:
  - Organization
  - WebSite
  - LocalBusiness
- Google Fonts preconnect.
- Favicon and apple-touch-icon from logo.

### Sitemap & Robots
- `public/sitemap.xml` generated by `scripts/generate-sitemap.ts`.
- `public/robots.txt` allows all major crawlers and points to sitemap.
- Sitemap includes 9 routes.

### FAQ Structured Data
- `/faq` injects FAQPage JSON-LD via `react-helmet-async`.

### Chatbot SEO Note
- Retell widget is appended to `<body>` in `index.html`. It should not block rendering.

---

## 9. Third-Party Integrations

### Retell Chat Widget
- Script ID: `retell-widget`
- Source: `https://dashboard.retellai.com/retell-widget.js`
- `data-public-key`: `public_key_3e7f6187d0f2c57374f07`
- `data-agent-id`: `agent_14351dc289619a54898c3b1150`
- `data-title`: "Gain AI Solutions"
- `data-bot-name`: "MJ"
- `data-color`: `#2362a1`
- `data-popup-message`: "Hey! 👋 I'm MJ — ask me anything about Gain AI!"
- `data-show-ai-popup`: true
- `data-show-ai-popup-time`: 5
- `data-auto-open`: false

### Phone Numbers
- Main business: `tel:9457322282`
- Demo voice agent: `tel:2149543133`

### Email
- `mailto:info@trygain-ai.com`

---

## 10. Build & Deployment

### Scripts
```json
{
  "predev": "bunx tsx scripts/generate-sitemap.ts",
  "dev": "vite",
  "prebuild": "bunx tsx scripts/generate-sitemap.ts",
  "build": "vite build",
  "build:dev": "vite build --mode development",
  "lint": "eslint .",
  "preview": "vite preview"
}
```

### Deploy
- Platform: Lovable (publishes to trygain-ai.com, www.trygain-ai.com, and james-hoglen2k.lovable.app).
- Manual publish step in the Lovable editor: **Publish → Update**.

### Key Files
| File | Purpose |
|------|---------|
| `index.html` | Entry point, global SEO, fonts, Retell widget |
| `src/App.tsx` | Route definitions |
| `src/main.tsx` | React root, Helmet provider |
| `src/components/Seo.tsx` | Per-route SEO |
| `src/components/SiteLayout.tsx` | Shared page wrapper |
| `src/components/SiteNav.tsx` | Top navigation |
| `src/components/SiteFooter.tsx` | Footer |
| `src/data/site.ts` | Industries, categories, workflow copy |
| `src/index.css` | CSS variables, base styles, chip-btn component |
| `tailwind.config.ts` | Tailwind theme extension |
| `scripts/generate-sitemap.ts` | Sitemap generator |
| `public/sitemap.xml` | Generated sitemap |
| `public/robots.txt` | Crawler rules |
| `public/llms.txt` | LLM-friendly site summary |

---

## 11. Assets Inventory

### Source Assets (`src/assets/`)
- `gain-ai-logo.png` — Primary brand logo (used everywhere)
- `veterans-badge.png` — Veterans badge
- `insurance-hero.jpg` — Legacy insurance image
- `insurance-team.jpg` — Legacy team image
- `satisfied-clients.jpg` — Legacy testimonial image

### Public Uploads (`public/lovable-uploads/`)
- `0b890f22-9357-4c4e-b7c5-e44f8cbf168d.png`
- `7b7e7140-a661-4569-9ce4-e0994e0d19d1.png`
- `9310987a-18b7-4ffc-a62a-3c85b98c0d38.png`
- `9403f89d-dc07-4367-9b52-57b47f8a07ac.png`
- `cb41ed95-ea6e-42d4-af5d-0196bfe2aa32.png`
- `e27c3e3d-3a7d-4116-9a2d-70c0faac6edd.png`

---

## 12. Reproduction Prompt

Use this condensed prompt to recreate or extend the site in a new environment:

```
Build a multi-page React + Vite + TypeScript + Tailwind + shadcn/ui website for gAIn AI Solutions (Gain AI), a workflow automation company for small businesses.

Brand rules:
- Dark theme (background #0c101a, foreground #edf0f5).
- Primary blue: #5c8ce6, accent orange: #f06a2a, primary-dark: #234a7d, primary-tint: #18243a.
- Fonts: DM Serif Display (headings), DM Sans (body).
- Flat SaaS aesthetic, lots of whitespace, no gradients, no pricing/case studies/testimonials sections (except a dedicated Reviews page).
- Logo: gain-ai-logo.png, watermark at 20% opacity behind content.

Pages:
1. Home: centered hero logo, chip pill "Workflow automation for small businesses", two-line H1 "stop running your business on / spreadsheets and sticky notes.", subheadline, 2 CTAs, 6 "What Gain AI Automates" cards, 3 teaser cards (About, Demo, FAQ), final CTA.
2. About: H1 + 4 value cards + final CTA.
3. Services: H1, 6 workflow cards, industry finder with 35+ industries and 6 tailored workflow cards, 4-step how-it-works, final CTA.
4. Demo: live voice agent demo with tap-to-call (214) 954-3133, 3 info cards, final CTA.
5. Contact: 3 cards (phone, email, location).
6. FAQ: 16 questions accordion + FAQPage JSON-LD + final CTA.
7. Reviews: 6 testimonial cards referencing James Hoglen.
8. Veterans: honor page with badge and personal story + discount CTA.
9. Privacy, Terms, SMS & Communication Policy legal pages.

Nav: sticky blurred header with logo + veterans badge + "Veterans / First Responders — click here" and links Home, About, Services, Demo, Reviews, FAQ, Contact + Get started free CTA.
Footer: centered logo, tagline, links, copyright "© 2026 Gain AI Solutions. All rights reserved.", legal links.

SEO: react-helmet-async per page, unique title/description, canonical, OG/Twitter tags, Organization/WebSite/LocalBusiness JSON-LD, sitemap generator, FAQPage structured data, robots.txt.

Integrations: Retell chat widget (public key provided, agent ID provided, color #2362a1, bot name MJ).

Contact: 945-732-2282, info@trygain-ai.com, Frisco TX 75033.
```

---

## 13. Current Status & Notes

- The site is fully split into multiple pages with shared layout.
- The chat widget is wired with the real Retell public key and agent ID.
- The sitemap is auto-generated at build/dev time.
- Veterans page and reviews page are live and linked.
- Main CTA across site is "Get started free" / "Schedule a call" → `/contact`.
- Publishing is done manually via the Lovable editor.
