import { ARCHETYPE_IDS, ARCHETYPE_LETTERS, type Archetype, type ArchetypeId } from '@/lib/types';

export const archetypes: Record<ArchetypeId, Archetype> = {
  architect: {
    id: 'architect',
    letter: ARCHETYPE_LETTERS.architect,
    monogram: 'AR',
    name: 'Architect',
    aliases: ['Mastermind', 'Innovator', 'Creator'],
    role: 'Vision',
    color: '#7C5CFF',
    tagline: 'Sees what could exist.',
    core: 'Creates the new: ideas, products, systems, frameworks and future possibilities.',
    strengths: [
      'Visionary and full of ideas',
      'Inventive and willing to disrupt',
      'Comfortable designing from a blank page',
    ],
    watchOuts: [
      'Starts more than can be finished',
      'Distracted by the next idea',
      'Struggles with consistency and completion',
    ],
    complements: ['builder', 'engineer'],
    complementNote: 'a Builder for steady execution, and an Engineer for structure, automation and repeatability',
    moveThisWeek:
      "Choose one idea. Define 'done' in one sentence. Give a trusted Builder or Engineer the authority, deadline and review rhythm to finish it.",
    atBest:
      'You open new markets, products and possibilities. You make a business feel alive with what it could become.',
    underPressure:
      'You start something new instead of finishing what exists, and the team gets whiplash from changes of direction.',
    predictableCost: 'Unfinished projects, scattered resources and a team unsure which idea matters most.',
    asSupport: 'original thinking that keeps your work fresh and ahead of the market',
    keep: 'Product vision and the next big bet: your judgment about what should exist.',
    delegate: 'Delivery of approved ideas: timelines, production and day-to-day execution.',
    design:
      'An idea pipeline: capture every idea, but let only one move into build each quarter, with a clear definition of done.',
    plan: [
      "List every idea you are carrying. Choose one, write its definition of 'done' in one sentence, and park the rest in an idea log.",
      'Hand the chosen idea to a Builder or Engineer with authority, a deadline and a weekly review. Your job is to clarify, not redesign.',
      'Hold a 20-minute weekly review. Allow changes only if they make the project simpler or faster to finish.',
      'Ship the smallest complete version. Collect feedback from real users before you open a new idea.',
    ],
    loop: { step: 1, verb: 'Sees possibility' },
    book: { title: 'The Lean Startup', author: 'Eric Ries', why: 'Test ideas with evidence before you scale them.' },
  },

  luminary: {
    id: 'luminary',
    letter: ARCHETYPE_LETTERS.luminary,
    monogram: 'LU',
    name: 'Luminary',
    aliases: ['Magnet', 'Star'],
    role: 'Influence',
    color: '#D99A0B',
    tagline: 'Turns trust into attention.',
    core: 'Turns personality, story, presence and trust into attention and demand.',
    strengths: [
      'Charismatic and audience-aware',
      'Strong presence on camera or stage',
      'Converts through personal trust and influence',
    ],
    watchOuts: [
      'Weak operational structure',
      'Burnout without support',
      'Personal reputation can affect the whole brand',
    ],
    complements: ['overseer', 'marshal'],
    complementNote: 'an Overseer for operations and risk control, and a Marshal for people, pace and sustained momentum',
    moveThisWeek:
      'Separate your public role from the engine behind it. Assign one owner for schedule, content operations, follow-up and reputation safeguards.',
    atBest:
      "You make people care. Customers, partners and talent come because they trust you and believe what you're saying.",
    underPressure:
      "You say yes to every stage and spotlight, and the business behind you can't keep up. Energy and reputation get stretched thin.",
    predictableCost: 'Burnout, dropped follow-ups and a brand that depends entirely on your personal availability.',
    asSupport: 'the presence and storytelling that help people believe in your work',
    keep: 'Your voice: the story, the stage and the relationships only you can carry.',
    delegate: 'Scheduling, content production, follow-up and the operations behind your visibility.',
    design:
      'A content and follow-up engine: every appearance feeds a capture, nurture and offer path that runs without you.',
    plan: [
      'Separate your public role from the engine behind it. List every task that happens after you appear: editing, posting, replying, following up.',
      'Name one owner for schedule and follow-up. Agree response times and what they can decide without you.',
      'Set a weekly rhythm: one planned content block, one review of leads, and one protected recovery block.',
      'Review which appearances created real customers or partners. Keep the top two channels and pause the rest.',
    ],
    loop: { step: 8, verb: 'Amplifies trust' },
    book: { title: 'Building a StoryBrand', author: 'Donald Miller', why: 'Make your message clear enough to scale beyond you.' },
  },

  marshal: {
    id: 'marshal',
    letter: ARCHETYPE_LETTERS.marshal,
    monogram: 'MA',
    name: 'Marshal',
    aliases: ['Mobilizer'],
    role: 'Mobilize',
    color: '#E5484D',
    tagline: 'Turns goals into movement.',
    core: 'Turns a goal into collective movement by organizing people, urgency and momentum.',
    strengths: [
      'Rallies people around a goal',
      'Creates pace and coordinated action',
      'Thinks in movements, targets and scale',
    ],
    watchOuts: [
      'Can move before the idea is strong',
      'May borrow vision rather than originate it',
      'Activity can outrun strategic clarity',
    ],
    complements: ['architect', 'navigator'],
    complementNote: 'an Architect for originality, and a Navigator for sequencing, priorities and a credible route',
    moveThisWeek:
      'Write the mobilization equation: target result, conversion rate, reach required, responsible owners and weekly checkpoints.',
    atBest: 'You turn a goal into a movement. People know what to do, feel the urgency and move together.',
    underPressure:
      'You push hard before the idea or the route is clear, so effort is spent fast and in the wrong places.',
    predictableCost: 'Busy teams, borrowed vision and campaigns that burn energy without reaching the target.',
    asSupport: 'the ability to rally people and turn plans into coordinated action',
    keep: 'People, pace and momentum: setting targets and leading the push.',
    delegate: 'Original concept work and detailed route-planning. Pair with an Architect and a Navigator.',
    design:
      'A mobilization dashboard: target, reach, conversion, owners and weekly checkpoints visible to everyone.',
    plan: [
      'Write the mobilization equation: target result, conversion rate, reach required, owners and weekly checkpoints.',
      'Before you push, ask a Navigator to pressure-test the route and an Architect to sharpen the offer.',
      'Run weekly 15-minute huddles: numbers first, then blockers, then commitments for the week.',
      'Compare actual reach and conversion to your equation. Fix the weakest number before increasing effort.',
    ],
    loop: { step: 4, verb: 'Mobilizes people' },
    book: {
      title: 'The 4 Disciplines of Execution',
      author: 'Chris McChesney, Sean Covey, Jim Huling',
      why: 'Turn energy into a focused execution rhythm.',
    },
  },

  broker: {
    id: 'broker',
    letter: ARCHETYPE_LETTERS.broker,
    monogram: 'BR',
    name: 'Broker',
    aliases: ['Mediator'],
    role: 'Deals',
    color: '#12A594',
    tagline: 'Connects people to value.',
    core: 'Creates value by connecting people, interests, opportunities and agreements.',
    strengths: [
      'Builds relationships and access',
      'Negotiates useful agreements',
      'Sees mutual value across different parties',
    ],
    watchOuts: [
      'Can miss operational detail',
      'May overpromise in the room',
      'Follow-through can be weaker than deal energy',
    ],
    complements: ['overseer', 'builder'],
    complementNote: 'an Overseer for detail and accountability, and a Builder for reliable delivery after the agreement',
    moveThisWeek:
      'For every deal, record the value exchange, exact deliverables, owner, due date and next checkpoint before leaving the conversation.',
    atBest:
      'You open doors. You see mutual value between people and turn it into partnerships, sales and opportunities.',
    underPressure:
      'You promise more in the room than the business can deliver, and details fall away after the handshake.',
    predictableCost: 'Strained partnerships, missed deliverables and deals that create more work than value.',
    asSupport: 'the relationships and negotiating instincts that open doors',
    keep: 'Relationships, negotiation and opening new partnerships and markets.',
    delegate: 'Contracts, fulfilment, invoicing and post-deal follow-through.',
    design:
      'A deal record: value exchange, deliverables, owner, due date and next checkpoint, completed before every conversation ends.',
    plan: [
      'List your open deals and conversations. For each, write the value exchange, deliverables, owner and next checkpoint.',
      "Hand fulfilment to an Overseer or Builder. Agree what 'delivered' means for each deal.",
      'Before saying yes to anything new, confirm capacity with the person who will deliver it.',
      'Review which deals created real value for both sides. Double down on that kind of partner.',
    ],
    loop: { step: 3, verb: 'Secures access' },
    book: {
      title: 'Never Split the Difference',
      author: 'Chris Voss with Tahl Raz',
      why: 'Sharpen negotiation and listening.',
    },
  },

  navigator: {
    id: 'navigator',
    letter: ARCHETYPE_LETTERS.navigator,
    monogram: 'NA',
    name: 'Navigator',
    aliases: ['Mapper'],
    role: 'Strategy',
    color: '#3E63DD',
    tagline: 'Finds the route.',
    core: 'Finds the route by reading patterns, weighing choices and setting strategic direction.',
    strengths: [
      'Analytical and strategic',
      'Sees patterns and knock-on effects',
      'Clarifies direction before resources are spent',
    ],
    watchOuts: [
      'Overthinks the decision',
      'Plans can become a substitute for action',
      'May underachieve despite strong insight',
    ],
    complements: ['luminary', 'marshal'],
    complementNote: 'a Luminary for visibility and conviction, and a Marshal for action, ownership and movement',
    moveThisWeek:
      'Set a decision deadline. Turn the preferred route into one small test with a named owner, metric and review date.',
    atBest:
      'You see the board clearly. You spot patterns and risks early and choose the route that saves time and money.',
    underPressure: 'You keep analyzing and refining the plan, and the moment to act passes.',
    predictableCost: 'Excellent strategies that stay on paper, and windows missed while waiting for certainty.',
    asSupport: 'the analysis and strategic judgment that keep effort pointed in the right direction',
    keep: 'Direction: strategy, priorities and the big decisions about where to play.',
    delegate: 'Execution, public visibility and the day-to-day push. Pair with a Marshal and a Luminary.',
    design: 'A decision rhythm: every decision gets a deadline, an owner, a small test and a review date.',
    plan: [
      "Pick the decision you've been delaying. Set a deadline within 7 days and decide.",
      'Turn the decision into one small test with an owner, a metric and a review date.',
      'Hand the push to a Marshal and the message to a Luminary. Your role is to watch the data, not to replan.',
      'Review the test. Decide to scale, adjust or stop, and write down what you learned.',
    ],
    loop: { step: 2, verb: 'Maps the route' },
    book: { title: 'Good Strategy/Bad Strategy', author: 'Richard Rumelt', why: 'Make coherent choices that lead to action.' },
  },

  builder: {
    id: 'builder',
    letter: ARCHETYPE_LETTERS.builder,
    monogram: 'BU',
    name: 'Builder',
    aliases: ['Mason'],
    role: 'Delivery',
    color: '#C2703D',
    tagline: 'Makes it real.',
    core: 'Turns plans into dependable, useful work through craft, consistency and completion.',
    strengths: [
      'Reliable and practical',
      'Values quality and follow-through',
      'Creates visible progress from abstract plans',
    ],
    watchOuts: [
      'Can move too slowly',
      'May stay inside the work too long',
      'Can resist new direction once building begins',
    ],
    complements: ['architect', 'broker'],
    complementNote:
      'an Architect for fresh possibilities, and a Broker for access, partners, customers and commercial movement',
    moveThisWeek:
      'Define the smallest complete version that creates value. Ship it, learn from use, then strengthen the next version.',
    atBest: 'You turn plans into dependable work. People trust you because what you build works and lasts.',
    underPressure: 'You stay inside the work, move too slowly, and resist changes once building has begun.',
    predictableCost:
      'A business that grows only as fast as your own two hands, and openings missed while you perfect the work.',
    asSupport: 'the craft and follow-through that turn plans into finished work',
    keep: 'Quality and craft: the standard of the work and how it gets finished.',
    delegate: 'Selling, partnerships and finding new opportunities. Pair with a Broker and an Architect.',
    design: "A 'smallest complete version' habit: ship a useful version, learn from real use, then improve.",
    plan: [
      'Define the smallest complete version of your current project that creates value. Cut everything else.',
      'Ask a Broker to put it in front of customers or partners while you finish it.',
      'Ship it. Collect feedback from real users within the week.',
      'Document how you built it, so someone else can build the next one while you review.',
    ],
    loop: { step: 5, verb: 'Produces value' },
    book: { title: 'The E-Myth Revisited', author: 'Michael E. Gerber', why: 'Learn to work on the business, not only in it.' },
  },

  overseer: {
    id: 'overseer',
    letter: ARCHETYPE_LETTERS.overseer,
    monogram: 'OV',
    name: 'Overseer',
    aliases: ['Manager'],
    role: 'Operations',
    color: '#3F9A4E',
    tagline: 'Protects performance.',
    core: 'Protects performance through systems, data, logistics, resource control and accountability.',
    strengths: [
      'Dependable and data-aware',
      'Controls logistics and operations',
      'Protects assets, standards and continuity',
    ],
    watchOuts: [
      'Can over-optimize the system',
      'May focus on control more than inspiration',
      'May under-communicate purpose or overlook morale',
    ],
    complements: ['luminary', 'marshal'],
    complementNote: 'a Luminary for meaning and trust, and a Marshal for human energy, alignment and movement',
    moveThisWeek:
      'Pair every dashboard review with one human question: what does the team or customer experience behind these numbers?',
    atBest:
      'You keep the business reliable. Money, resources and commitments are tracked, protected and delivered.',
    underPressure:
      'You tighten control, optimize the numbers and forget to explain the purpose. Morale quietly drops.',
    predictableCost: 'An efficient but uninspired business, and people who comply without caring.',
    asSupport: 'the order and accountability that keep the business reliable',
    keep: 'Operations, resources and performance standards.',
    delegate: 'Being the public face and rallying the team. Pair with a Luminary and a Marshal.',
    design:
      'A dashboard review that always ends with one human question: what does the team or customer experience behind these numbers?',
    plan: [
      'Pick the 3–5 numbers that matter most and put them on one simple dashboard.',
      'Pair every dashboard review with one human question about the team or customer behind the numbers.',
      "Invite a Luminary or Marshal to share the 'why' when you announce changes.",
      'Remove one control or approval step that no longer protects anything important.',
    ],
    loop: { step: 7, verb: 'Protects performance' },
    book: {
      title: 'Who Not How',
      author: 'Dan Sullivan with Benjamin Hardy',
      why: 'Trade some control for capacity through the right people.',
    },
  },

  engineer: {
    id: 'engineer',
    letter: ARCHETYPE_LETTERS.engineer,
    monogram: 'EN',
    name: 'Engineer',
    aliases: ['Mechanic', 'Mechanist'],
    role: 'Systems',
    color: '#64748B',
    tagline: 'Makes it repeatable.',
    core: 'Builds mechanisms that make proven value efficient, repeatable, automated and scalable.',
    strengths: [
      'Designs systems and automation',
      'Improves efficiency and consistency',
      'Scales through technology or repeatable process',
    ],
    watchOuts: [
      'Perfectionism delays release',
      'Low visibility can weaken adoption',
      'May struggle with managing people',
    ],
    complements: ['luminary', 'marshal'],
    complementNote: 'a Luminary for adoption and trust, and a Marshal for implementation across people and teams',
    moveThisWeek:
      'Automate only after the process creates value manually. Measure the bottleneck, simplify it, then build the lightest reliable mechanism.',
    atBest: 'You make value repeatable. Your systems let the business grow without the same effort every time.',
    underPressure: 'You keep perfecting the system and delay release. People feel left out of how it works.',
    predictableCost: 'Elegant systems nobody uses, and slow releases while you chase perfection.',
    asSupport: 'the systems thinking that makes good work repeatable and scalable',
    keep: 'Systems, automation and the mechanics of scale.',
    delegate: 'Adoption, training and leading people through change. Pair with a Luminary and a Marshal.',
    design:
      'A rule: automate only after a process creates value manually. Measure, simplify, then build the lightest reliable mechanism.',
    plan: [
      'Find one process that already creates value manually. Measure where it slows down.',
      'Simplify it on paper first. Remove steps before you automate any.',
      'Build the lightest reliable version and release it to a small group. Good enough beats perfect.',
      'Ask a Marshal or Luminary to lead adoption. Measure the time saved and errors removed.',
    ],
    loop: { step: 6, verb: 'Makes it repeatable' },
    book: { title: 'The Goal', author: 'Eliyahu M. Goldratt and Jeff Cox', why: 'Find and fix the constraint that limits the whole system.' },
  },
};

export const archetypeList: Archetype[] = ARCHETYPE_IDS.map((id) => archetypes[id]);
