// Journey Mapping . RigShare worked example, A-CAR framework × 2 sides
// A-CAR: Attract → Convert → Adopt → Retain (Marketplace Studio's proprietary stage model)
const JOURNEY_EXAMPLE = {
  meta: {
    name: 'RigShare',
    category: 'B2B equipment rental marketplace',
    buyerName: 'Contractors',
    supplierName: 'Equipment owners',
  },
  stages: [
    { id: 'attract', label: 'Attract', sub: 'Awareness → first visit' },
    { id: 'convert', label: 'Convert', sub: 'Sign-up → first commit' },
    { id: 'adopt',   label: 'Adopt',   sub: 'First action → habit forms' },
    { id: 'retain',  label: 'Retain',  sub: 'Loyalty → referral' },
  ],
  buyer: {
    attract: {
      action: 'Searches "rent excavator near me" on Google after their owned rig breaks on-site.',
      thinking: 'I need this today. Renting from the dealer takes three days and costs more than the job is worth.',
      feeling: 'urgent',
      pain: 'Most search results are dealer rentals with phone numbers, not bookable inventory. Half the SEO winners are not actually serving their region.',
      opportunity: 'Own the long-tail "rent [equipment] [city]" keywords with location-specific landing pages and live availability.',
    },
    convert: {
      action: 'Signs up to view pricing, gets asked to upload insurance certificate and operator credentials before seeing rates.',
      thinking: 'Why am I uploading documents before I even see if the price works?',
      feeling: 'frustrated',
      pain: 'Friction-heavy onboarding for buyers who came in hot. 60% drop after the credentials gate.',
      opportunity: 'Show pricing immediately. Move credentials check to post-quote, before booking confirmation.',
    },
    adopt: {
      action: 'Books a 3-day excavator rental for a Wednesday job. Confirms via SMS, picks up at the supplier yard at 6am.',
      thinking: 'This is faster than the dealer ever was. Just hope the rig is what was advertised.',
      feeling: 'cautiously optimistic',
      pain: 'No standard photos or condition disclosure. First booking is a leap of faith , and there is no in-app guidance for the pickup.',
      opportunity: 'Mandatory condition photos, standardized listing fields, dispute-resolution SLA visible at booking. In-app pickup checklist.',
    },
    retain: {
      action: 'Returns 11 days later for a different rig from a different supplier. Saves three suppliers as favorites.',
      thinking: 'I am not going back to the dealer. This is just easier.',
      feeling: 'converted',
      pain: 'No project view, no procurement export, no team accounts. Treats power users like one-off transactions.',
      opportunity: 'Build a "fleet account" tier. Procurement export to QuickBooks. Team seats for foremen.',
    },
  },
  supplier: {
    attract: {
      action: 'Hears about RigShare from another contractor at a job site. Looks up the .ca domain on their phone.',
      thinking: 'I have three rigs sitting idle most weeks. If this actually pays out it is free money.',
      feeling: 'curious, skeptical',
      pain: 'Trust gap on listing platforms. Most owners have been burned by no-show buyers or damage claims.',
      opportunity: 'Lead with payouts ("our average supplier earned $X last quarter") and damage protection messaging on the supplier landing page.',
    },
    convert: {
      action: 'Signs up, photographs first two rigs, sets daily rates by copying what they see on competitor listings.',
      thinking: 'I have no idea if my pricing is right. I am just guessing.',
      feeling: 'uncertain',
      pain: 'Pricing anxiety leaves listings under- or over-priced. 40% of suppliers list once and never log back in.',
      opportunity: 'Pricing assistant: show median rate by category and region at the moment they set the price. Auto-fill condition fields from photos.',
    },
    adopt: {
      action: 'Gets first booking notification, prepares rig for 6am pickup, hands keys to a contractor they have never met.',
      thinking: 'This part is the test. If the rig comes back damaged, I am done with this platform.',
      feeling: 'anxious',
      pain: 'Damage protection terms are buried in TOS. No clear handover protocol. Refund clarity zero.',
      opportunity: 'Standardized handover photo flow inside the app. Pre-authorized damage hold visible to supplier. Insurance proof on every booking.',
    },
    retain: {
      action: 'Has a great first booking, lists two more rigs over the following week, refers a friend who also has equipment.',
      thinking: 'I should put my whole fleet on this.',
      feeling: 'engaged',
      pain: 'Referral program is buried two clicks deep. No bulk-listing tool for suppliers with 5+ rigs.',
      opportunity: 'Surface referral program in transaction confirmation. Build CSV import for fleet operators.',
    },
  },
};
Object.assign(window, { JOURNEY_EXAMPLE });
