// PassMark onboarding — static data + config
// Exported to window at the bottom so other babel scripts can read it.

const NIGERIAN_STATES = [
  "Abia", "Adamawa", "Akwa Ibom", "Anambra", "Bauchi", "Bayelsa", "Benue",
  "Borno", "Cross River", "Delta", "Ebonyi", "Edo", "Ekiti", "Enugu", "Gombe",
  "Imo", "Jigawa", "Kaduna", "Kano", "Katsina", "Kebbi", "Kogi", "Kwara",
  "Lagos", "Nasarawa", "Niger", "Ogun", "Ondo", "Osun", "Oyo", "Plateau",
  "Rivers", "Sokoto", "Taraba", "Yobe", "Zamfara", "FCT (Abuja)", "Other",
];

const COUNTRIES = [
  "Afghanistan","Albania","Algeria","Angola","Argentina","Australia","Austria",
  "Bangladesh","Belgium","Benin","Botswana","Brazil","Burkina Faso","Cameroon",
  "Canada","Chad","Chile","China","Colombia","Côte d'Ivoire","Democratic Republic of the Congo",
  "Denmark","Egypt","Ethiopia","Finland","France","Gabon","Gambia","Germany",
  "Ghana","Greece","Guinea","India","Indonesia","Ireland","Israel","Italy",
  "Japan","Kenya","Liberia","Libya","Malaysia","Mali","Mexico","Morocco",
  "Mozambique","Namibia","Netherlands","New Zealand","Niger","Norway","Pakistan",
  "Philippines","Poland","Portugal","Qatar","Russia","Rwanda","Saudi Arabia",
  "Senegal","Sierra Leone","Singapore","Somalia","South Africa","South Korea",
  "Spain","Sudan","Sweden","Switzerland","Tanzania","Togo","Tunisia","Turkey",
  "Uganda","Ukraine","United Arab Emirates","United Kingdom","United States",
  "Zambia","Zimbabwe","Other",
];

const YEARS_OF_BIRTH = (() => {
  const now = 2026;
  const arr = [];
  for (let y = now - 10; y >= now - 70; y--) arr.push(String(y));
  return arr;
})();

const GENDERS = ["Female", "Male", "Prefer not to say"];

const EDUCATION_LEVELS = [
  { id: "secondary", label: "Secondary School", desc: "JSS & SSS students preparing for terminal exams" },
  { id: "undergraduate", label: "Undergraduate", desc: "University or polytechnic student" },
  { id: "postgraduate", label: "Postgraduate", desc: "Masters, PhD or advanced study" },
  { id: "professional", label: "Professional Learner", desc: "Certifications & lifelong learning" },
];

const FEATURES = [
  {
    id: "cbt",
    name: "PassMark Practice",
    tag: "CBT",
    label: "CBT Practice",
    desc: "Timed mock exams for WAEC, NECO, JAMB & Post-UTME with instant scoring and topic analytics.",
    points: ["Real exam simulations", "Per-topic performance", "Question bank by exam"],
  },
  {
    id: "learn",
    name: "PassMark Learn",
    tag: "AI",
    label: "Learning Assistant",
    desc: "Upload any notes — get summaries, flashcards, key points and auto-generated questions. For any level.",
    points: ["Summaries & flashcards", "Auto-generated questions", "Works for any subject"],
  },
  {
    id: "both",
    name: "Complete Package",
    tag: "BEST VALUE",
    label: "Complete Package",
    desc: "Everything in Practice and Learn, combined into one workspace. Our most popular plan.",
    points: ["Practice + Learn", "Unified analytics", "Best value for serious learners"],
  },
];

const EXAMS = [
  { id: "waec", name: "WAEC", desc: "West African Examinations Council" },
  { id: "neco", name: "NECO", desc: "National Examinations Council" },
  { id: "jamb", name: "JAMB", desc: "Unified Tertiary Matriculation Exam" },
  { id: "putme", name: "Post-UTME", desc: "University screening exams" },
];

const SCHOOL_CAPACITY = [
  { id: "10-50", label: "10 – 50", desc: "Small school or single class set" },
  { id: "50-100", label: "50 – 100", desc: "Growing school" },
  { id: "100-250", label: "100 – 250", desc: "Mid-size institution" },
  { id: "250-500", label: "250 – 500", desc: "Large institution" },
  { id: "500+", label: "500 and above", desc: "Multi-campus / enterprise" },
];

const SCHOOL_PLANS = [
  { id: "cbt", name: "CBT", desc: "Run mock exams and track student readiness for terminal exams." },
  { id: "learn", name: "Learning Assistant", desc: "Give every student AI study tools from their own materials." },
  { id: "both", name: "Both", desc: "Full PassMark suite for your whole student body.", best: true },
];

Object.assign(window, {
  NIGERIAN_STATES, COUNTRIES, YEARS_OF_BIRTH, GENDERS,
  EDUCATION_LEVELS, FEATURES, EXAMS, SCHOOL_CAPACITY, SCHOOL_PLANS,
});
