/* Scenes — 5 plain-language scenarios.
 * Each: { id, tab, user, forge[2], phases[3] (label, ms), preview, result }
 */

window.SCENES = [
  {
    id: "hotel",
    tab: "Hotel",
    user: "We're still tracking room status on spreadsheets. The night manager updates it by hand three times a day.",
    forge: [
      "I'll build you a live operations dashboard for the front desk.",
      "Reading your booking data now.",
    ],
    phases: [
      { label: "reading bookings", ms: 1600 },
      { label: "building dashboard", ms: 2000 },
      { label: "ready",              ms: 600  },
    ],
    preview: "hotel",
    result: "Built in 2 min 14 sec. Updates by itself — no more manual handover sheets.",
  },
  {
    id: "documents",
    tab: "Documents",
    user: "I have 340 supplier contracts to review for compliance. Doing it by hand takes my team three weeks.",
    forge: [
      "I'll read all 340 and flag anything that doesn't match your policy.",
      "Writing the report.",
    ],
    phases: [
      { label: "reading 340 contracts", ms: 2200 },
      { label: "writing report",         ms: 2000 },
      { label: "ready",                  ms: 500  },
    ],
    preview: "documents",
    result: "11 contracts flagged. Report ready in 4 min 41 sec. Manual baseline: 3 weeks.",
  },
  {
    id: "hospital",
    tab: "Hospital",
    user: "Bed allocation still happens on paper at every shift handover. Half the time we don't know which beds are free.",
    forge: [
      "I'll give you a live view across every ward.",
      "Connecting to admissions.",
    ],
    phases: [
      { label: "reading ward data",  ms: 1600 },
      { label: "building live view", ms: 1800 },
      { label: "ready",              ms: 500  },
    ],
    preview: "hospital",
    result: "Live across 6 wards. Ward 4 is already at 91% — alert sent to the duty manager.",
  },
  {
    id: "government",
    tab: "Government",
    user: "We get 2,400 citizen requests a month. Each one takes about 47 minutes for staff to process.",
    forge: [
      "I'll sort them, check the documents, and draft replies in Arabic and French.",
      "Working through today's batch.",
    ],
    phases: [
      { label: "sorting 287 requests",    ms: 1900 },
      { label: "drafting replies", ms: 2300 },
      { label: "ready",            ms: 500  },
    ],
    preview: "government",
    result: "287 requests handled in 18 min. Manual baseline: 17 hours of staff time.",
  },
  {
    id: "portal",
    tab: "Portal GOV",
    user: "Citizens still have to come to the office in person for every document request. We need an online portal where they submit, upload and track — in Arabic and French.",
    forge: [
      "I'll build you a citizen-facing portal with a guided submission flow.",
      "Wiring up the back office now.",
    ],
    phases: [
      { label: "reading service catalogue", ms: 1700 },
      { label: "building the portal",        ms: 2300 },
      { label: "ready",                       ms: 500  },
    ],
    preview: "portal",
    result: "Portal live for 12 services, bilingual, with SMS tracking. Citizens are submitting from home.",
  },
  {
    id: "finance",
    tab: "Finance",
    user: "We approve 800 invoices a month by hand. We never spot the ones we should escalate.",
    forge: [
      "I'll match every invoice to its purchase order and flag what needs review.",
      "Checking variances now.",
    ],
    phases: [
      { label: "matching 800 invoices", ms: 2000 },
      { label: "checking variances",     ms: 2000 },
      { label: "ready",                  ms: 500  },
    ],
    preview: "finance",
    result: "753 matched and approved. 47 flagged for review. 3 min 12 sec.",
  },
  {
    id: "workbook",
    tab: "Workbook",
    user: "Our team rebuilds the same invoice approval spreadsheet every month. We want a working .xlsx with real formulas — not just a flat export.",
    forge: [
      "I'll build you a five-sheet workbook with cross-sheet matching, variance formulas and an audit summary.",
      "Generating the file now.",
    ],
    phases: [
      { label: "shaping sheets",     ms: 1700 },
      { label: "writing formulas",   ms: 2200 },
      { label: "ready",              ms: 500  },
    ],
    preview: "workbook",
    result: "invoice-approval.xlsx · 5 sheets · 1,847 formulas · 800 invoices matched, 47 routed.",
  },
  {
    id: "pharmacy",
    tab: "Pharmacy",
    user: "We run 240 pharmacies. Stock-outs and expiry are still tracked branch by branch on spreadsheets — we only find out when a customer can't get their medicine.",
    forge: [
      "I'll bring all 240 locations onto a live operations view.",
      "Pulling today's stock and expiry windows.",
    ],
    phases: [
      { label: "reading 240 pharmacies", ms: 2000 },
      { label: "building live map",      ms: 1900 },
      { label: "ready",                  ms: 500  },
    ],
    preview: "pharmacy",
    result: "Live across 240 locations. 8 stock-outs, 23 expiry alerts surfaced — restock orders drafted.",
  },
];
