/* data.jsx — realistic placeholder content for Resum3 */
(function () {
  const SAMPLE_RESUME = `JORDAN AVERY
Senior Operations Manager — Atlanta, GA
jordan.avery@email.com · (404) 555-0188 · linkedin.com/in/jordanavery

SUMMARY
Operations leader with 8 years scaling support and fulfillment teams at
high-growth consumer brands. Built process and reporting that cut costs
while improving customer experience.

EXPERIENCE
Operations Manager — Brightline Goods (2021–Present)
• Managed a 14-person fulfillment and support team across two warehouses.
• Reduced order processing time by 22% by redesigning the pick-pack flow.
• Owned weekly KPI reporting for leadership using spreadsheets and Looker.

Operations Analyst — Carta Retail Co. (2018–2021)
• Built inventory forecasting models that lowered stockouts by 31%.
• Coordinated cross-functional projects between warehouse and merchandising.

EDUCATION
B.S. Business Administration — University of Georgia

SKILLS
Process improvement, inventory planning, team leadership, Excel, Looker`;

  const SAMPLE_JD = `Senior Product Operations Manager — Northwind Commerce (Remote, US)

About the role
We're looking for a Senior Product Operations Manager to own the systems
and processes that keep our product organization running. You'll partner
with Product, Engineering, and Data to drive operational excellence.

What you'll do
• Build and scale operational processes across product teams.
• Define and track KPIs and OKRs; own executive reporting dashboards.
• Lead cross-functional programs and drive process improvement.
• Manage vendor relationships and operational budgets.

What we're looking for
• 6+ years in product operations, business operations, or program management.
• Strong analytical skills; proficiency with SQL and BI tools (Looker, Tableau).
• Experience with OKR frameworks and stakeholder management.
• Excellent written communication and executive presence.`;

  const MATCHED = ['Process improvement', 'KPI reporting', 'Cross-functional', 'Looker', 'Team leadership', 'Stakeholder management', 'Operational excellence'];
  const MISSING = ['SQL', 'OKR frameworks', 'Program management', 'Tableau', 'Executive reporting', 'Vendor management'];

  const ADDITIONS = [
    { kw: 'OKR frameworks', tip: 'Reframe your KPI reporting as owning team OKRs.' },
    { kw: 'SQL', tip: 'List SQL alongside Looker — both appear in the posting.' },
    { kw: 'Program management', tip: 'Your cross-functional projects qualify as program management.' },
    { kw: 'Executive reporting', tip: 'Call out the leadership dashboards you built.' },
  ];

  const EVIDENCE_MAP = [
    {
      keyword: 'Executive reporting',
      status: 'added',
      confidence: 'High',
      score: 96,
      jobEvidence: 'Define and track KPIs and OKRs; own executive reporting dashboards.',
      resumeEvidence: 'Owned weekly KPI reporting for leadership using spreadsheets and Looker.',
      placement: 'Brightline Goods bullet 2',
      action: 'Reframed weekly KPI reporting as executive reporting.',
      note: 'The original resume already supports leadership-facing reporting.',
    },
    {
      keyword: 'SQL',
      status: 'review',
      confidence: 'Needs review',
      score: 68,
      jobEvidence: 'Strong analytical skills; proficiency with SQL and BI tools.',
      resumeEvidence: 'Owned KPI reporting using spreadsheets and Looker.',
      placement: 'Skills section',
      action: 'Suggested SQL next to Looker as a related analytics tool.',
      note: 'Approve only if the candidate has hands-on SQL experience.',
    },
    {
      keyword: 'OKR frameworks',
      status: 'review',
      confidence: 'Needs review',
      score: 72,
      jobEvidence: 'Experience with OKR frameworks and stakeholder management.',
      resumeEvidence: 'Owned weekly KPI reporting for leadership.',
      placement: 'Summary and Brightline Goods bullet 2',
      action: 'Positioned KPI ownership as OKR-adjacent operating rhythm.',
      note: 'Good stretch wording, but the user should confirm OKR ownership.',
    },
    {
      keyword: 'Program management',
      status: 'added',
      confidence: 'High',
      score: 91,
      jobEvidence: 'Lead cross-functional programs and drive process improvement.',
      resumeEvidence: 'Coordinated cross-functional projects between warehouse and merchandising.',
      placement: 'Skills section and Carta Retail bullet 1',
      action: 'Promoted cross-functional project coordination into program language.',
      note: 'The wording stays grounded in existing project experience.',
    },
    {
      keyword: 'Tableau',
      status: 'missing',
      confidence: 'Not supported',
      score: 24,
      jobEvidence: 'Proficiency with SQL and BI tools (Looker, Tableau).',
      resumeEvidence: 'Looker appears in the resume; Tableau does not.',
      placement: 'Not added',
      action: 'Flagged as missing instead of inventing tool experience.',
      note: 'This becomes an interview prep gap unless the user confirms Tableau.',
    },
    {
      keyword: 'Vendor management',
      status: 'missing',
      confidence: 'Not supported',
      score: 18,
      jobEvidence: 'Manage vendor relationships and operational budgets.',
      resumeEvidence: 'No vendor or budget ownership appears in the resume.',
      placement: 'Not added',
      action: 'Kept out of the tailored resume.',
      note: 'Ask the user whether they have vendor or budget examples.',
    },
  ];

  const SCORE_BREAKDOWN = [
    { label: 'Skills Match', score: 86 },
    { label: 'Experience Match', score: 88 },
    { label: 'Tooling Match', score: 72 },
    { label: 'Leadership Match', score: 91 },
    { label: 'Formatting Risk', score: 94 },
  ];

  const APPLICATION_CONFIDENCE = {
    label: 'Apply',
    score: 84,
    summary: 'You have enough role match to apply now, with a few gaps to tighten before sending.',
    reasons: [
      'Strong process improvement and reporting evidence',
      'Several job keywords are already supported',
      'SQL, Tableau, and vendor ownership need review before claiming them',
    ],
    nextStep: 'Answer the missing-experience questions, then download the final packet.',
  };

  const REVIEW_QUEUE = [
    { keyword: 'SQL', question: 'Have you written SQL queries for reporting or analysis?', impact: '+5% match if approved' },
    { keyword: 'OKR frameworks', question: 'Did you directly define, track, or report against OKRs?', impact: '+3% match if approved' },
    { keyword: 'Tableau', question: 'Have you used Tableau in a professional setting?', impact: '+4% match if approved' },
  ];

  const MISSING_EXPERIENCE = [
    {
      keyword: 'Vendor management',
      question: 'Have you managed vendors, agencies, contractors, or external software partners?',
      why: 'The job mentions vendor relationships and operational budgets.',
      yesPrompt: 'Add one real example, such as the vendor type, budget, or result.',
      suggestion: 'Managed vendor relationships supporting fulfillment operations and service-level performance.',
    },
    {
      keyword: 'Tableau',
      question: 'Have you built, edited, or used Tableau dashboards at work?',
      why: 'The role lists Tableau as a preferred BI tool.',
      yesPrompt: 'Name the dashboard, report, or business question you used Tableau for.',
      suggestion: 'Used Tableau dashboards to monitor operational performance and leadership reporting.',
    },
    {
      keyword: 'Operational budgets',
      question: 'Have you owned, tracked, or influenced an operations budget?',
      why: 'Budget ownership appears in the job description but not your resume.',
      yesPrompt: 'Add the budget size, category, or cost-saving result if you know it.',
      suggestion: 'Tracked operational spend and identified process improvements that reduced fulfillment costs.',
    },
  ];

  const RECRUITER_SKIM = {
    impression: 'Strong operations leader with clear process improvement wins, credible reporting experience, and a good bridge into product operations.',
    targetTitle: 'Senior Product Operations Manager',
    strongestSignal: 'Reduced order processing time by 22% and built leadership KPI reporting.',
    topSkills: ['Process improvement', 'Executive reporting', 'Cross-functional leadership', 'Looker'],
    concern: 'SQL, Tableau, and vendor management need confirmation before they should appear as hard skills.',
    opener: 'Eight-year operations leader who improves workflows, reporting, and cross-functional execution for scaling teams.',
    fixFirst: 'Confirm whether SQL, Tableau, vendor management, or budget ownership are real experience before adding them.',
  };

  const INTERVIEW_PREP = {
    tellMe: 'I am an operations leader who has spent the last eight years improving the systems, reporting, and cross-functional workflows behind high-growth teams. In my current role, I lead a 14-person team, redesigned a core workflow that reduced processing time by 22%, and own leadership reporting in Looker. I am excited about this product operations role because it connects the process improvement work I already do with product, engineering, and data teams.',
    talkingPoints: [
      'Lead with the 22% processing-time reduction as proof of process improvement.',
      'Connect KPI reporting in Looker to the role’s executive reporting requirement.',
      'Use the forecasting model that reduced stockouts 31% as your analytics example.',
    ],
    questions: [
      {
        q: 'Tell me about a time you improved an operational process.',
        angle: 'Use the pick-pack workflow redesign and quantify the 22% improvement.',
      },
      {
        q: 'How do you work with cross-functional teams?',
        angle: 'Discuss warehouse, merchandising, and leadership reporting stakeholders.',
      },
      {
        q: 'How do you define and track success?',
        angle: 'Anchor your answer in KPIs, dashboards, and leadership decision-making.',
      },
      {
        q: 'What analytics tools have you used?',
        angle: 'Be precise about Looker, spreadsheets, and SQL/Tableau only if true.',
      },
      {
        q: 'Why product operations?',
        angle: 'Frame your operations background as systems-building for product teams.',
      },
    ],
  };

  // Resume bullets with before/after tailoring
  const RESUME_DIFF = [
    { before: 'Managed a 14-person fulfillment and support team across two warehouses.',
      after: 'Led a 14-person cross-functional operations team, driving operational excellence across two sites.' },
    { before: 'Owned weekly KPI reporting for leadership using spreadsheets and Looker.',
      after: 'Owned executive reporting and team OKRs, building leadership dashboards in Looker and SQL.' },
    { before: 'Built inventory forecasting models that lowered stockouts by 31%.',
      after: 'Led a forecasting program that lowered stockouts 31%, partnering across merchandising and warehouse teams.' },
  ];

  const COVER_LETTER = `Dear Northwind Commerce Hiring Team,

I was excited to see your opening for a Senior Product Operations Manager. Over the past eight years I've built and scaled the operational systems behind high-growth consumer brands — exactly the kind of cross-functional, process-driven work your team is hiring for.

At Brightline Goods I led a 14-person operations team and rebuilt our core workflow, cutting processing time 22%. I own our executive reporting today, translating messy operational data into the dashboards and OKRs leadership uses to make decisions. I pair that operational instinct with hands-on analytics in Looker and SQL.

I'd welcome the chance to bring that same rigor to Northwind's product organization. Thank you for your consideration.

Sincerely,
Jordan Avery`;

  const TAILORED_RESUME = '';

  const HISTORY = [
    { company: 'Northwind Commerce', role: 'Senior Product Operations Manager', score: 84, date: 'Jun 10, 2026', initials: 'NC', evidence: 6, reviews: 2 },
    { company: 'Lumen Health', role: 'Operations Lead', score: 91, date: 'Jun 4, 2026', initials: 'LH', evidence: 8, reviews: 0 },
    { company: 'Transit Labs', role: 'Program Manager, Ops', score: 73, date: 'May 28, 2026', initials: 'TL', evidence: 5, reviews: 3 },
    { company: 'Cedar & Co.', role: 'Business Operations Manager', score: 88, date: 'May 19, 2026', initials: 'CC', evidence: 7, reviews: 1 },
    { company: 'Northstar Logistics', role: 'Supply Chain Analyst', score: 67, date: 'May 2, 2026', initials: 'NL', evidence: 4, reviews: 4 },
  ];

  window.DATA = { SAMPLE_RESUME, SAMPLE_JD, MATCHED, MISSING, ADDITIONS, EVIDENCE_MAP, SCORE_BREAKDOWN, APPLICATION_CONFIDENCE, REVIEW_QUEUE, MISSING_EXPERIENCE, RECRUITER_SKIM, INTERVIEW_PREP, RESUME_DIFF, COVER_LETTER, TAILORED_RESUME, HISTORY };
})();
