// Mock directory data for the prototype
const WORKFLOWS = [
  {
    slug: 'ai-receptionist',
    name: 'AI receptionist with booking sync',
    short: 'Answers calls 24/7, books appointments straight into your calendar.',
    replaces: 'A part-time receptionist or missed-call voicemail',
    saves: '15–25 hrs/week of phone admin',
    tools: ['Synthflow', 'Bland', 'Vapi', 'Cal.com', 'Google Calendar'],
    industries: ['Salons', 'Dental', 'Med spas', 'Auto shops', 'Law firms'],
    operatorCount: 47,
    requestCount: 89,
  },
  {
    slug: 'missed-call-text-back',
    name: 'Missed-call text-back',
    short: 'Every missed call gets an automatic SMS within 30 seconds.',
    replaces: 'Lost leads from unanswered calls',
    saves: 'Up to 38% of missed-call leads recovered',
    tools: ['GoHighLevel', 'Twilio', 'OpenPhone'],
    industries: ['HVAC', 'Plumbing', 'Roofing', 'Salons'],
    operatorCount: 62,
    requestCount: 134,
  },
  {
    slug: 'lead-followup-automation',
    name: 'Lead follow-up automation',
    short: 'Multi-channel follow-up sequences across SMS, email, and voice.',
    replaces: 'Manual lead nurturing in a CRM',
    saves: '8–12 hrs/week per salesperson',
    tools: ['GoHighLevel', 'n8n', 'HubSpot', 'Smartlead'],
    industries: ['Real estate', 'Insurance', 'B2B services'],
    operatorCount: 53,
    requestCount: 71,
  },
  {
    slug: 'review-request-engine',
    name: 'Review request engine',
    short: 'Triggers personalized review asks after every completed job.',
    replaces: 'Manual "please leave a review" emails',
    saves: '3–5 new Google reviews/week per location',
    tools: ['n8n', 'Make', 'Zapier', 'Birdeye'],
    industries: ['Restaurants', 'Home services', 'Retail'],
    operatorCount: 38,
    requestCount: 55,
  },
  {
    slug: 'inbox-triage-agent',
    name: 'Inbox triage agent',
    short: 'Reads your shared inbox, drafts replies, flags what needs a human.',
    replaces: 'Hours of email sorting every morning',
    saves: '6–10 hrs/week of inbox time',
    tools: ['n8n', 'OpenAI', 'Gmail API', 'Front'],
    industries: ['Agencies', 'Property management', 'Logistics'],
    operatorCount: 29,
    requestCount: 44,
  },
  {
    slug: 'quote-generator',
    name: 'Quote & estimate generator',
    short: 'Customers describe the job, agent returns a priced estimate.',
    replaces: 'Back-and-forth scoping calls',
    saves: '40–60% faster quote turnaround',
    tools: ['Vapi', 'OpenAI', 'Airtable', 'PandaDoc'],
    industries: ['Construction', 'Landscaping', 'Moving'],
    operatorCount: 21,
    requestCount: 36,
  },
  {
    slug: 'rebooking-reminder',
    name: 'Rebooking reminder agent',
    short: 'Reaches out to past clients on the right cadence to rebook.',
    replaces: 'A salon coordinator chasing lapsed clients',
    saves: '20–30% rebooking rate uplift',
    tools: ['GoHighLevel', 'Make', 'Square'],
    industries: ['Salons', 'Med spas', 'Dental'],
    operatorCount: 18,
    requestCount: 27,
  },
  {
    slug: 'intake-form-to-crm',
    name: 'Intake form → CRM',
    short: 'New web lead becomes a fully-qualified, routed CRM record.',
    replaces: 'Manual data entry from form to CRM',
    saves: '4–6 hrs/week of ops time',
    tools: ['n8n', 'Zapier', 'HubSpot', 'Pipedrive'],
    industries: ['Law', 'Real estate', 'Agencies'],
    operatorCount: 44,
    requestCount: 51,
  },
];

const TOOLS = [
  'Synthflow', 'Bland', 'Vapi', 'Retell', 'GoHighLevel', 'n8n',
  'Make', 'Zapier', 'OpenAI', 'Twilio', 'HubSpot', 'Airtable',
];

const INDUSTRIES = [
  'Salons & beauty', 'Dental', 'Med spas', 'Auto shops', 'HVAC',
  'Plumbing', 'Roofing', 'Restaurants', 'Real estate', 'Law firms',
  'Agencies', 'Construction', 'Insurance', 'Property mgmt',
];

const OPERATORS = [
  {
    id: 'maria-c',
    name: 'Maria Castellano',
    handle: 'maria-c',
    initials: 'MC',
    region: 'Lisbon, PT',
    languages: ['EN', 'PT', 'ES'],
    rate: '$85/hr',
    response: 'Usually replies in 4h',
    status: 'live',
    bio: 'Five years building voice agents for service businesses. I set things up, hand over docs, and stay on retainer if you want updates.',
    workflows: ['ai-receptionist', 'missed-call-text-back', 'rebooking-reminder'],
    tools: ['Synthflow', 'Vapi', 'GoHighLevel', 'Cal.com'],
    industries: ['Salons & beauty', 'Med spas', 'Dental'],
    portfolio: [
      { title: 'Bella Hair Studio (3 locations)', body: 'Voice agent handling 220 calls/wk. Cut missed-call rate from 31% to 4%.' },
      { title: 'Northgate Dental', body: 'AI receptionist + rebooking reminder. 62 rebookings in first 90 days.' },
      { title: 'Solstice Med Spa', body: 'Intake voice agent that pre-qualifies callers and books consultations.' },
    ],
    delivered: 23,
    rating: 4.9,
  },
  {
    id: 'devon-r',
    name: 'Devon Reyes',
    handle: 'devon-r',
    initials: 'DR',
    region: 'Austin, TX',
    languages: ['EN', 'ES'],
    rate: '$120/hr',
    response: 'Usually replies same day',
    status: 'live',
    bio: 'I build the boring plumbing — n8n workflows that quietly run for years. No-drama operator.',
    workflows: ['lead-followup-automation', 'inbox-triage-agent', 'intake-form-to-crm'],
    tools: ['n8n', 'OpenAI', 'HubSpot', 'Airtable'],
    industries: ['Real estate', 'Agencies', 'Law firms'],
    portfolio: [
      { title: 'Cardinal Realty Group', body: 'Lead routing + 14-touch follow-up across 18 agents. 22% lift in tour bookings.' },
      { title: 'Burrow Legal', body: 'Inbox triage agent. 40% of intake emails now auto-replied with the right intake link.' },
    ],
    delivered: 41,
    rating: 4.8,
  },
  {
    id: 'amelia-t',
    name: 'Amelia Tahir',
    handle: 'amelia-t',
    initials: 'AT',
    region: 'Berlin, DE',
    languages: ['EN', 'DE', 'TR'],
    rate: '€95/hr',
    response: 'Usually replies in 2h',
    status: 'live',
    bio: 'Specialized in DACH small businesses. German-speaking voice agents that don\'t sound robotic.',
    workflows: ['ai-receptionist', 'quote-generator', 'review-request-engine'],
    tools: ['Synthflow', 'Vapi', 'Make', 'n8n'],
    industries: ['Auto shops', 'HVAC', 'Construction'],
    portfolio: [
      { title: 'Werkstatt Müller (Munich)', body: 'German voice agent for an auto shop. Handles 80+ calls/wk in DE.' },
      { title: 'Klimatech Berlin', body: 'Quote generator for HVAC retrofits. Cuts estimate time from 3 days to 6 hours.' },
    ],
    delivered: 17,
    rating: 5.0,
  },
  {
    id: 'leo-v',
    name: 'Leo Vance',
    handle: 'leo-v',
    initials: 'LV',
    region: 'Manchester, UK',
    languages: ['EN'],
    rate: '£70/hr',
    response: 'Usually replies in 6h',
    status: 'away',
    bio: 'GoHighLevel specialist. If your business lives in GHL, I can wire anything to anything.',
    workflows: ['missed-call-text-back', 'lead-followup-automation', 'review-request-engine'],
    tools: ['GoHighLevel', 'Twilio', 'Make'],
    industries: ['HVAC', 'Plumbing', 'Roofing'],
    portfolio: [
      { title: 'Pennine Plumbing', body: 'Full GHL build. Missed-call text-back recovers ~£8k/mo of jobs.' },
    ],
    delivered: 29,
    rating: 4.7,
  },
  {
    id: 'sana-k',
    name: 'Sana Kapoor',
    handle: 'sana-k',
    initials: 'SK',
    region: 'Toronto, CA',
    languages: ['EN', 'HI', 'FR'],
    rate: '$95/hr',
    response: 'Usually replies in 3h',
    status: 'live',
    bio: 'Former agency PM. I run discovery first, then build only the workflow that actually moves the needle.',
    workflows: ['lead-followup-automation', 'inbox-triage-agent', 'rebooking-reminder'],
    tools: ['n8n', 'OpenAI', 'GoHighLevel'],
    industries: ['Agencies', 'Real estate', 'Insurance'],
    portfolio: [
      { title: 'Halo Insurance Brokers', body: 'Lead nurture sequence with voice + SMS handoff. 31% more bound policies.' },
    ],
    delivered: 14,
    rating: 4.9,
  },
  {
    id: 'tomas-h',
    name: 'Tomáš Horák',
    handle: 'tomas-h',
    initials: 'TH',
    region: 'Prague, CZ',
    languages: ['EN', 'CS', 'DE'],
    rate: '€60/hr',
    response: 'Usually replies in 8h',
    status: 'live',
    bio: 'I\'m the cheap, careful, well-documented option. Twelve years as a sysadmin before this.',
    workflows: ['intake-form-to-crm', 'inbox-triage-agent'],
    tools: ['n8n', 'Make', 'Airtable'],
    industries: ['Property mgmt', 'Logistics'],
    portfolio: [
      { title: 'CityKey Rentals', body: 'Intake form → 6 downstream systems. Zero manual entry for 14 months.' },
    ],
    delivered: 22,
    rating: 4.9,
  },
];

const PROBLEMS = [
  {
    id: 'p-001',
    business: 'A 4-chair salon in Brooklyn',
    industry: 'Salons & beauty',
    region: 'New York, US',
    posted: '2d ago',
    workflows: ['ai-receptionist', 'rebooking-reminder'],
    saas: ['Square Appointments', 'Google Workspace'],
    budget: '$2k–4k setup, $200/mo retainer',
    body: 'We miss ~30% of incoming calls during peak hours. We use Square for booking. Want something that picks up calls, books into Square, and texts the client a confirmation. Bonus: nudges no-shows to rebook.',
    contacted: 9,
  },
  {
    id: 'p-002',
    business: 'Family-run HVAC company',
    industry: 'HVAC',
    region: 'Austin, TX',
    posted: '5h ago',
    workflows: ['missed-call-text-back', 'quote-generator'],
    saas: ['ServiceTitan', 'Google Voice'],
    budget: '$3k–5k setup',
    body: 'Three trucks, two-person office. Phones ring nonstop in summer. Need missed-call text-back and ideally a way for customers to describe the job and get a rough estimate before we send a tech.',
    contacted: 14,
  },
  {
    id: 'p-003',
    business: 'Boutique law firm (immigration)',
    industry: 'Law firms',
    region: 'Berlin, DE',
    posted: '1d ago',
    workflows: ['inbox-triage-agent', 'intake-form-to-crm'],
    saas: ['Clio', 'Outlook'],
    budget: 'Open',
    body: 'We get ~80 inbound emails a day, half are duplicate questions about document requirements. Want an agent that drafts replies for the partners to review, and turns new client emails into Clio matters.',
    contacted: 7,
  },
  {
    id: 'p-004',
    business: 'Independent dental practice',
    industry: 'Dental',
    region: 'Lisbon, PT',
    posted: '3d ago',
    workflows: ['rebooking-reminder', 'review-request-engine'],
    saas: ['Dentally', 'Mailchimp'],
    budget: '€1.5k–3k setup',
    body: 'We have ~600 patients who haven\'t booked in 12+ months. Want a system that reaches out on the right cadence in PT/EN and asks for a Google review after each visit.',
    contacted: 5,
  },
  {
    id: 'p-005',
    business: 'Two-location auto repair shop',
    industry: 'Auto shops',
    region: 'Munich, DE',
    posted: '6h ago',
    workflows: ['ai-receptionist', 'quote-generator'],
    saas: ['Tekmetric', 'WhatsApp Business'],
    budget: '€2k–4k setup, €150/mo',
    body: 'Receptionist quit. Need a German-speaking voice agent that can take in basic info (car, problem, urgency) and put a slot on the calendar. Has to handle Bayerisch dialect callers without sounding stupid.',
    contacted: 11,
  },
  {
    id: 'p-006',
    business: 'Real estate brokerage (18 agents)',
    industry: 'Real estate',
    region: 'Toronto, CA',
    posted: '1w ago',
    workflows: ['lead-followup-automation', 'intake-form-to-crm'],
    saas: ['Follow Up Boss', 'Zillow'],
    budget: '$5k+ setup',
    body: 'Buying-side leads from Zillow & our site. Currently agents drop the ball after the second touch. Want a 14-day, multi-channel sequence with smart handoff back to the agent when the lead replies.',
    contacted: 18,
  },
];

window.HRI_DATA = { WORKFLOWS, TOOLS, INDUSTRIES, OPERATORS, PROBLEMS };
