import type { LikertOption, Question } from '@/lib/types';

/**
 * 24 questions: 16 self-ratings (two per archetype) and 8 forced-choice scenarios (one option per
 * archetype). They alternate rating, rating, scenario to keep the pace varied.
 *
 * Changing the order or number of questions changes the meaning of result codes. If you do,
 * bump CODE_VERSION in lib/code.ts.
 */

export const likertScale: LikertOption[] = [
  { value: 1, label: 'Not like me' },
  { value: 2, label: 'A little like me' },
  { value: 3, label: 'Somewhat like me' },
  { value: 4, label: 'Mostly like me' },
  { value: 5, label: 'Exactly like me' },
];

export const questions: Question[] = [
  {
    id: 'q01',
    kind: 'likert',
    archetype: 'architect',
    text: "I get energy from imagining products, offers or business models that don't exist yet.",
  },
  {
    id: 'q02',
    kind: 'likert',
    archetype: 'overseer',
    text: 'I naturally keep track of budgets, schedules and who is responsible for what.',
  },
  {
    id: 'q03',
    kind: 'scenario',
    text: 'A promising opportunity appears. What do you instinctively do first?',
    options: [
      { archetype: 'architect', text: 'Imagine a new product, model or possibility that does not yet exist.' },
      { archetype: 'luminary', text: 'Find the story and think about how to present it to an audience.' },
      { archetype: 'marshal', text: 'Gather people, create urgency and get everyone moving.' },
      { archetype: 'broker', text: 'Identify the relationships, introductions or deal that could unlock it.' },
      { archetype: 'navigator', text: 'Study the situation and map the best route forward.' },
      { archetype: 'builder', text: 'Start turning the idea into something useful and tangible.' },
      { archetype: 'overseer', text: 'Organize the responsibilities, resources, budget and timetable.' },
      { archetype: 'engineer', text: 'Design a repeatable process or technical system around it.' },
    ],
  },
  {
    id: 'q04',
    kind: 'likert',
    archetype: 'luminary',
    text: "People lean in when I tell the story of what we're building.",
  },
  {
    id: 'q05',
    kind: 'likert',
    archetype: 'engineer',
    text: 'When I do something twice, I start designing a way to systemize or automate it.',
  },
  {
    id: 'q06',
    kind: 'scenario',
    text: 'What do people most often rely on you for?',
    options: [
      { archetype: 'architect', text: 'Fresh ideas and a bigger vision.' },
      { archetype: 'luminary', text: 'Presence, persuasion and audience connection.' },
      { archetype: 'marshal', text: 'Leadership, motivation and coordinated action.' },
      { archetype: 'broker', text: 'Negotiation, introductions and agreements that work for everyone.' },
      { archetype: 'navigator', text: 'Strategy, analysis and a clear sense of direction.' },
      { archetype: 'builder', text: 'Reliable delivery and steady follow-through.' },
      { archetype: 'overseer', text: 'Order, accountability and operational control.' },
      { archetype: 'engineer', text: 'Efficiency, automation and scalable systems.' },
    ],
  },
  {
    id: 'q07',
    kind: 'likert',
    archetype: 'marshal',
    text: "When a goal is set, I'm the one who rallies people and gets them moving.",
  },
  {
    id: 'q08',
    kind: 'likert',
    archetype: 'navigator',
    text: 'Before committing time or money, I want to analyze the options and map the route.',
  },
  {
    id: 'q09',
    kind: 'scenario',
    text: 'When a project stalls, what is your most natural response?',
    options: [
      { archetype: 'architect', text: 'Reframe the idea or find a more inventive approach.' },
      { archetype: 'luminary', text: 'Restore confidence by communicating the opportunity clearly.' },
      { archetype: 'marshal', text: 'Realign the people and lead a push toward the goal.' },
      { archetype: 'broker', text: 'Speak to the right people and negotiate a way through the blockage.' },
      { archetype: 'navigator', text: 'Step back, diagnose the problem and revise the plan.' },
      { archetype: 'builder', text: 'Focus on the next practical task and keep building.' },
      { archetype: 'overseer', text: 'Clarify ownership, deadlines, resources and standards.' },
      { archetype: 'engineer', text: 'Remove the bottleneck by improving the process or mechanism.' },
    ],
  },
  {
    id: 'q10',
    kind: 'likert',
    archetype: 'broker',
    text: 'I quickly see who should be introduced to whom, and why both would benefit.',
  },
  {
    id: 'q11',
    kind: 'likert',
    archetype: 'builder',
    text: 'I get deep satisfaction from finishing work properly and to a high standard.',
  },
  {
    id: 'q12',
    kind: 'scenario',
    text: 'You have one free week to improve your business. How do you spend it?',
    options: [
      { archetype: 'architect', text: 'Designing a new offer, product or business model.' },
      { archetype: 'luminary', text: 'Creating content and getting in front of my audience.' },
      { archetype: 'marshal', text: 'Running a focused campaign with my team toward one target.' },
      { archetype: 'broker', text: 'Meeting potential partners, clients and collaborators.' },
      { archetype: 'navigator', text: 'Researching the market and refining our strategy.' },
      { archetype: 'builder', text: 'Finishing the projects that are half-done.' },
      { archetype: 'overseer', text: 'Tidying finances, processes and responsibilities.' },
      { archetype: 'engineer', text: 'Building a tool or workflow that saves hours every week.' },
    ],
  },
  {
    id: 'q13',
    kind: 'likert',
    archetype: 'navigator',
    text: 'I notice patterns and knock-on effects that others tend to miss.',
  },
  {
    id: 'q14',
    kind: 'likert',
    archetype: 'luminary',
    text: "I'm comfortable being the face or voice of a project, whether on stage, on camera or online.",
  },
  {
    id: 'q15',
    kind: 'scenario',
    text: 'In an important team meeting, you are most likely to…',
    options: [
      { archetype: 'architect', text: 'Propose a bold new direction.' },
      { archetype: 'luminary', text: 'Lift the room and sell the vision.' },
      { archetype: 'marshal', text: 'Assign actions and set the pace.' },
      { archetype: 'broker', text: 'Find the compromise that gets everyone to yes.' },
      { archetype: 'navigator', text: 'Ask the questions that test the plan.' },
      { archetype: 'builder', text: 'Commit to delivering the practical pieces.' },
      { archetype: 'overseer', text: 'Confirm owners, deadlines and budget.' },
      { archetype: 'engineer', text: 'Suggest a better process or tool.' },
    ],
  },
  {
    id: 'q16',
    kind: 'likert',
    archetype: 'builder',
    text: 'People trust me to turn a plan into something real, step by step.',
  },
  {
    id: 'q17',
    kind: 'likert',
    archetype: 'architect',
    text: "I'd rather design something new from a blank page than improve something that already exists.",
  },
  {
    id: 'q18',
    kind: 'scenario',
    text: 'What frustrates you most at work?',
    options: [
      { archetype: 'architect', text: 'Doing the same thing the same way for too long.' },
      { archetype: 'luminary', text: 'Being kept behind the scenes, unseen and unheard.' },
      { archetype: 'marshal', text: 'Slow movement and low energy.' },
      { archetype: 'broker', text: 'Missed chances to connect people or collaborate.' },
      { archetype: 'navigator', text: 'Decisions made without thinking them through.' },
      { archetype: 'builder', text: 'Plans that never turn into finished work.' },
      { archetype: 'overseer', text: 'Disorder, waste and unclear accountability.' },
      { archetype: 'engineer', text: 'Manual, repetitive work that could be automated.' },
    ],
  },
  {
    id: 'q19',
    kind: 'likert',
    archetype: 'engineer',
    text: 'I enjoy finding the bottleneck in a process and making it run faster and more reliably.',
  },
  {
    id: 'q20',
    kind: 'likert',
    archetype: 'broker',
    text: 'I enjoy negotiating until I find an agreement that works for every side.',
  },
  {
    id: 'q21',
    kind: 'scenario',
    text: 'Which responsibility gives you the most energy?',
    options: [
      { archetype: 'architect', text: 'Inventing what the business could become.' },
      { archetype: 'luminary', text: 'Being its voice, face or chief storyteller.' },
      { archetype: 'marshal', text: 'Leading people and building momentum.' },
      { archetype: 'broker', text: 'Forming partnerships, selling and closing deals.' },
      { archetype: 'navigator', text: 'Choosing direction and planning the route.' },
      { archetype: 'builder', text: 'Producing the work and bringing it to completion.' },
      { archetype: 'overseer', text: 'Running the organization and protecting its resources.' },
      { archetype: 'engineer', text: 'Making the business repeatable, efficient and scalable.' },
    ],
  },
  {
    id: 'q22',
    kind: 'likert',
    archetype: 'overseer',
    text: 'I like reviewing the numbers to make sure the business is performing reliably.',
  },
  {
    id: 'q23',
    kind: 'likert',
    archetype: 'marshal',
    text: 'I think in targets: how many people we need to reach, convert and mobilize.',
  },
  {
    id: 'q24',
    kind: 'scenario',
    text: 'Which compliment would mean the most to you?',
    options: [
      { archetype: 'architect', text: '"You saw it before anyone else did."' },
      { archetype: 'luminary', text: '"People trust you. They follow your voice."' },
      { archetype: 'marshal', text: '"You got everyone moving."' },
      { archetype: 'broker', text: '"You made the deal happen."' },
      { archetype: 'navigator', text: '"You found the right path."' },
      { archetype: 'builder', text: '"You always deliver."' },
      { archetype: 'overseer', text: '"Everything runs smoothly because of you."' },
      { archetype: 'engineer', text: '"You built a system that runs without us."' },
    ],
  },
];
