// ONOGolf — data module (EN + ES)
// Exported via window assignment at the end for Babel cross-script sharing.

const PHASES = [
  {
    n: 1,
    key: "spark",
    roman: "I",
    name: { en: "The Spark",        es: "La Chispa" },
    goal: { en: "Discovery",        es: "Descubrimiento" },
    hcp:  "HCP · —",
    tint: "orange",
    milestone: { en: "Buying First Sticks",      es: "Compra de los Primeros Palos" },
    focus:     { en: "Basic etiquette & feel",   es: "Etiqueta básica y sensación" },
    gates: [
      { mk: "01", t: { en: "First real club in hand",       es: "Primer palo real en la mano" }, d: { en: "Beginner set, used or borrowed, doesn't matter.",   es: "Set de principiante, usado o prestado — no importa." } },
      { mk: "02", t: { en: "Watched 10 hrs of instruction", es: "10 hrs de instrucción vista" }, d: { en: "Finding the rhythm of the game before the range.",    es: "Encontrar el ritmo del juego antes del campo." } },
      { mk: "03", t: { en: "Can read a scorecard",          es: "Sabe leer una tarjeta" }, d: { en: "Par, handicap, rules language — the vocabulary.",  es: "Par, handicap, vocabulario básico del juego." } },
    ],
    quote: { en: "The game is a stranger. You learn its name.", es: "El juego es un extraño. Aprendes su nombre." },
  },
  {
    n: 2,
    key: "lab",
    roman: "II",
    name: { en: "The Lab",          es: "El Laboratorio" },
    goal: { en: "Ball Flight",       es: "Vuelo de Bola" },
    hcp:  "HCP · 28+",
    tint: "orange",
    milestone: { en: "First Range Session",       es: "Primera Sesión en el Rango" },
    focus:     { en: "AI swing match & fundamentals", es: "Análisis IA y fundamentos" },
    gates: [
      { mk: "01", t: { en: "Contact, ten times in a row",  es: "Contacto, diez veces seguidas" }, d: { en: "The first reliable ball strike.", es: "El primer golpe consistente." } },
      { mk: "02", t: { en: "Grip · Stance · Alignment",     es: "Grip · Postura · Alineación" }, d: { en: "The three pretties before the swing.", es: "Las tres bases antes del swing." } },
      { mk: "03", t: { en: "AI Archetype assigned",          es: "Arquetipo IA asignado" }, d: { en: "Your swing DNA matched to one of Five.", es: "Tu ADN de swing emparejado con uno de los Cinco." } },
    ],
    quote: { en: "You cannot tell a story without a shape.", es: "No puedes contar una historia sin una forma." },
  },
  {
    n: 3,
    key: "transition",
    roman: "III",
    name: { en: "The Transition",    es: "La Transición" },
    goal: { en: "Course Ready",       es: "Listo Para el Campo" },
    hcp:  "HCP · 21–27",
    tint: "gold",
    milestone: { en: "Breaking 110 over 18 holes",  es: "Romper 110 en 18 hoyos" },
    focus:     { en: "Pace of play & rules fluency", es: "Ritmo de juego y reglas" },
    gates: [
      { mk: "01", t: { en: "Full 18, no drops, no mercy",    es: "18 completos, sin gotas, sin excusas" }, d: { en: "Finish every hole, even the 9.", es: "Termina cada hoyo, incluso el 9." } },
      { mk: "02", t: { en: "Played with strangers",          es: "Jugado con desconocidos" }, d: { en: "The social ritual, learned by doing.", es: "El ritual social, aprendido haciéndolo." } },
      { mk: "03", t: { en: "First par recorded",             es: "Primer par registrado" }, d: { en: "One hole, done right. It starts.", es: "Un hoyo, bien hecho. Comienza." } },
    ],
    quote: { en: "The range is theory. The course is the verdict.", es: "El rango es teoría. El campo es el veredicto." },
  },
  {
    n: 4,
    key: "grind",
    roman: "IV",
    name: { en: "The Grind",         es: "El Camino" },
    goal: { en: "Scoring",            es: "Puntuar" },
    hcp:  "HCP · 11–20",
    tint: "gold",
    milestone: { en: "Breaking 90 · GHIN established", es: "Romper 90 · GHIN establecido" },
    focus:     { en: "Short game & shot-making",       es: "Juego corto y tiro" },
    gates: [
      { mk: "01", t: { en: "GHIN index under 20",           es: "Índice GHIN bajo 20" }, d: { en: "You become a number, officially.", es: "Te conviertes en un número, oficialmente." } },
      { mk: "02", t: { en: "Up-and-down rate > 35%",         es: "Tasa de up-and-down > 35%" }, d: { en: "Wedges and putter save the card.", es: "Wedges y putter salvan la tarjeta." } },
      { mk: "03", t: { en: "First 79",                       es: "Primer 79" }, d: { en: "The score that changes how you see yourself.", es: "La puntuación que cambia cómo te ves." } },
    ],
    quote: { en: "The grind is where most players stop. Keep walking.", es: "El camino es donde la mayoría se detiene. Sigue caminando." },
  },
  {
    n: 5,
    key: "arena",
    roman: "V",
    name: { en: "The Arena",          es: "La Arena" },
    goal: { en: "Competition",         es: "Competición" },
    hcp:  "HCP · 4–10",
    tint: "olive",
    milestone: { en: "Breaking 75 · First tour win", es: "Romper 75 · Primera victoria" },
    focus:     { en: "Junior ranking points (JGS/WAGR)", es: "Puntos de ranking junior" },
    gates: [
      { mk: "01", t: { en: "Entered a ranked event",         es: "Inscrito en un evento con ranking" }, d: { en: "JGS, AJGA, USGA qualifier — any gate.", es: "JGS, AJGA, clasificatorio USGA — cualquier puerta." } },
      { mk: "02", t: { en: "Made a 36-hole cut",             es: "Pasó el corte a 36 hoyos" }, d: { en: "Proof you belong in the second round.", es: "Prueba de que perteneces en la segunda ronda." } },
      { mk: "03", t: { en: "Trophy, any size",               es: "Trofeo, de cualquier tamaño" }, d: { en: "Your first printed name on a bracket.", es: "Tu primer nombre impreso en un cuadro." } },
    ],
    quote: { en: "Scores are numbers until a scoreboard bears your name.", es: "Las puntuaciones son números hasta que un tablero lleva tu nombre." },
  },
  {
    n: 6,
    key: "launchpad",
    roman: "VI",
    name: { en: "The Launchpad",     es: "La Plataforma" },
    goal: { en: "Recruitment",        es: "Reclutamiento" },
    hcp:  "HCP · +2 to 4",
    tint: "olive",
    milestone: { en: "College commitment",           es: "Compromiso universitario" },
    focus:     { en: "Scholarship ROI & resumes",     es: "ROI de becas y CV atlético" },
    gates: [
      { mk: "01", t: { en: "Recruit profile published",      es: "Perfil de reclutamiento publicado" }, d: { en: "Video, scores, transcript — the package.", es: "Video, tarjetas, expediente — el paquete." } },
      { mk: "02", t: { en: "Three official visits",          es: "Tres visitas oficiales" }, d: { en: "Campuses seen, coaches met.", es: "Campus visitados, entrenadores conocidos." } },
      { mk: "03", t: { en: "Letter of intent signed",        es: "Carta de intención firmada" }, d: { en: "The next four years are set.", es: "Los próximos cuatro años están definidos." } },
    ],
    quote: { en: "A scholarship is a sentence written in advance.", es: "Una beca es una frase escrita por adelantado." },
  },
  {
    n: 7,
    key: "waitingroom",
    roman: "VII",
    name: { en: "The Waiting Room", es: "La Sala de Espera" },
    goal: { en: "Pro Feeder",        es: "Alimentación Pro" },
    hcp:  "HCP · Scratch+",
    tint: "olive",
    milestone: { en: "Korn Ferry or Americas Tour card", es: "Tarjeta Korn Ferry o Américas" },
    focus:     { en: "Tournament logistics & consistency", es: "Logística y consistencia" },
    gates: [
      { mk: "01", t: { en: "Q-School passed, stage one",    es: "Q-School superada, primera fase" }, d: { en: "The first door of the professional maze.", es: "La primera puerta del laberinto pro." } },
      { mk: "02", t: { en: "Top-25 mini tour finish",        es: "Top-25 en mini tour" }, d: { en: "Proof against money-earning competition.", es: "Prueba contra competencia con premios." } },
      { mk: "03", t: { en: "Sponsor deck in hand",           es: "Presentación de patrocinio lista" }, d: { en: "The year, priced out, funded.", es: "El año, presupuestado, financiado." } },
    ],
    quote: { en: "The waiting room is where talent meets paperwork.", es: "La sala de espera es donde el talento encuentra el papeleo." },
  },
  {
    n: 8,
    key: "summit",
    roman: "VIII",
    name: { en: "The Summit",       es: "La Cumbre" },
    goal: { en: "Professional",      es: "Profesional" },
    hcp:  "OWGR · Top 500",
    tint: "gold",
    milestone: { en: "PGA Tour win · LIV contract",   es: "Victoria PGA · Contrato LIV" },
    focus:     { en: "World ranking & earnings",       es: "Ranking mundial y ganancias" },
    gates: [
      { mk: "01", t: { en: "First pro-event cut",            es: "Primer corte en evento profesional" }, d: { en: "Weekend play, at the summit's edge.", es: "Juego de fin de semana, en el borde de la cumbre." } },
      { mk: "02", t: { en: "Full schedule playing privileges", es: "Privilegios de calendario completo" }, d: { en: "A guaranteed year of tournaments.", es: "Un año garantizado de torneos." } },
      { mk: "03", t: { en: "Tour title, any continent",       es: "Título de tour, cualquier continente" }, d: { en: "Your name on a trophy someone has heard of.", es: "Tu nombre en un trofeo conocido." } },
    ],
    quote: { en: "There are 250 people on earth who do this. You are one.", es: "Hay 250 personas en la tierra que hacen esto. Eres uno." },
  },
];

const ARCHETYPES = [
  {
    num: "01",
    name:  { en: "The Young Cat",    es: "El Joven Felino" },
    kind:  { en: "Explosive athlete", es: "Atleta explosivo" },
    desc:  {
      en: "Steep attack angle. Aggressive tempo. Attacks the course like it owes money. Fade bias develops late.",
      es: "Ángulo de ataque pronunciado. Tempo agresivo. Ataca el campo como si le debiera dinero."
    },
    stats: { tempo: "3:1 agg", angle: "-5.8°", shape: "Draw" },
    color: "orange",
  },
  {
    num: "02",
    name:  { en: "The Metronome",    es: "El Metrónomo" },
    kind:  { en: "Master of rhythm", es: "Maestra del ritmo" },
    desc:  {
      en: "Identical tempo on every swing, wedge to driver. Face control is uncanny. Never hits it far; never hits it wrong.",
      es: "Tempo idéntico en cada swing, wedge a driver. Control de cara asombroso."
    },
    stats: { tempo: "3:1 even", angle: "-2.1°", shape: "Straight" },
    color: "olive",
  },
  {
    num: "03",
    name:  { en: "The Power Fader", es: "El Fade de Poder" },
    kind:  { en: "Elite face control", es: "Control de cara de élite" },
    desc:  {
      en: "Power fade off the tee, chases pins with a held-off draw. Knows when not to hit it. Plays chess.",
      es: "Fade potente desde el tee, busca banderas con draw controlado. Juega ajedrez."
    },
    stats: { tempo: "2.8:1", angle: "+1.2°", shape: "Fade" },
    color: "gold",
  },
  {
    num: "04",
    name:  { en: "The Anti-Hook",  es: "El Anti-Gancho" },
    kind:  { en: "Technical ball-striker", es: "Golpeador técnico" },
    desc:  {
      en: "Arms-first, leg-second sequencing. Face is dead square at impact. Mistakes go right, never left. A student of dirt.",
      es: "Secuencia brazos-piernas. Cara cuadrada al impacto. Los errores van a la derecha."
    },
    stats: { tempo: "2.6:1", angle: "-3.4°", shape: "Fade" },
    color: "wine",
  },
  {
    num: "05",
    name:  { en: "The Rising Star", es: "La Estrella Emergente" },
    kind:  { en: "Reproducible mechanics", es: "Mecánica reproducible" },
    desc:  {
      en: "The modern composite: rotational speed of a pro, coached sequencing, two-way miss on command. The AJGA prototype.",
      es: "El compuesto moderno: velocidad rotacional pro, secuenciación entrenada."
    },
    stats: { tempo: "3:1 late", angle: "-4.2°", shape: "Two-way" },
    color: "sea",
  },
];

const TOURNAMENTS = {
  junior: {
    title: { en: "Junior Track", es: "Ruta Junior" },
    age:   { en: "Ages 9 — 18",   es: "Edades 9 — 18" },
    rows: [
      { name: "Drive, Chip & Putt",        lvl: "Skill Entry",     sub: "Zip-code qualifiers" },
      { name: "U.S. Kids Golf",            lvl: "Developmental",   sub: "1,600+ global events/yr" },
      { name: "PGA Junior League",         lvl: "Team-based",      sub: "Draft-style format" },
      { name: "Hurricane Junior Golf Tour", lvl: "Regional Elite",  sub: "300+ events" },
      { name: "Future Champions Golf",     lvl: "Regional Elite",   sub: "West-coast focus" },
      { name: "AJGA",                       lvl: "National Power",  sub: "Gateway to recruiting" },
      { name: "Junior Golf Scoreboard",    lvl: "Ranking Engine",  sub: "Used by every coach" },
    ],
  },
  adult: {
    title: { en: "Adult & Senior Track", es: "Ruta Adulta y Sénior" },
    age:   { en: "Ages 18+",              es: "Edades 18+" },
    rows: [
      { name: "US Am Tour",           lvl: "Amateur Flighted",  sub: "Organized by handicap" },
      { name: "AmateurGolf.com",       lvl: "Weekend Majors",   sub: "Mid-Am and Senior-Am hub" },
      { name: "Society of Seniors",    lvl: "Elite Senior",      sub: "Players 55+" },
      { name: "PGA Tour",              lvl: "Professional Summit", sub: "FedEx Cup · American Express Cup" },
      { name: "LIV Golf",              lvl: "Professional Summit", sub: "Team standings & events" },
      { name: "LPGA",                  lvl: "Women's Professional", sub: "Definitive roadmap" },
      { name: "World Long Drive",      lvl: "Specialty",          sub: "Distance athletes" },
    ],
  },
};

const COPY = {
  en: {
    navHome: "Home",
    navJourney: "Journey",
    navArchetypes: "Archetypes",
    navTournaments: "Tournaments",
    navMoney: "Money",
    signIn: "Sign in",
    getStarted: "Get started",
    heroEyebrow: "The One & Only Golf Journey",
    heroLead: "From the first swing on a driving-range mat to a Monday on the PGA Tour — we mapped every gate in between, so you don't have to guess.",
    heroMetric1: "K golfers already charted",
    heroMetric2: "Gated milestones tracked",
    heroMetric3: "Tournament feeds aggregated",
    startCta: "Start My Analysis",
    watchCta: "Watch 90-second tour",
    tickerEyebrow: "Live signal · now tracking",
    journeyEyebrow: "The Green-to-Gold Roadmap",
    journeyTitle: "Eight phases. One route.",
    journeyLede: "Every recreational, junior and professional golfer is on the same map. We just show you where you are and what gate comes next.",
    archEyebrow: "Pro-Am Matcher",
    archTitle: "Your swing is one of five.",
    archLede: "Our AI scores the shape of your motion against a library of fifty thousand tracked swings and assigns you an archetype — the legend your mechanics most resemble.",
    archNote: "Names are original. Archetypes are algorithmic — not player likenesses.",
    tourEyebrow: "Global Information Hub",
    tourTitle: "The tournament map, finally legible.",
    tourLede: "We aggregate the real event ecosystem — from zip-code qualifiers to OWGR-counting pro stops — filtered by the phase you're in and the handicap you carry.",
    moneyEyebrow: "The Money Hub",
    moneyTitleA: "A $50,000 junior investment returns",
    moneyTitleFrac: "a $160,000 scholarship.",
    moneyLede: "Golf is the only youth sport where the cost is visible and the return is calculable. We built both sides of the ledger in one place.",
    mobsyncEyebrow: "First-mover lock",
    mobsyncTitle: "Golf in Spanish, from day one.",
    mobsyncLede: "Every piece of instruction is auto-dubbed via our MobSync pipeline. Zero competition exists at this scale — and Spanish is the fastest-growing demographic in the game.",
    ctaEyebrow: "Start the journey",
    ctaTitleA: "The fairway",
    ctaTitleItalic: "waits.",
    ctaLede: "Free forever for the first 10,000 golfers. No card. No commitment. Just the map.",
    footerPlatform: "Platform",
    footerResources: "Resources",
    footerCompany: "Company",
    footerLegal: "Legal",
    currentPhase: "Current phase",
    milestones: "Milestones · the gates ahead",
    focusNow: "Training focus",
    legend: "This is a fictional product mock; tournament names are used as factual references.",
  },
  es: {
    navHome: "Inicio",
    navJourney: "El Camino",
    navArchetypes: "Arquetipos",
    navTournaments: "Torneos",
    navMoney: "Dinero",
    signIn: "Iniciar sesión",
    getStarted: "Empezar",
    heroEyebrow: "El Único Viaje del Golf",
    heroLead: "Desde el primer swing en un tapete hasta un lunes en el PGA Tour — trazamos cada puerta intermedia, para que no tengas que adivinar.",
    heroMetric1: "K golfistas ya trazados",
    heroMetric2: "Hitos rastreados",
    heroMetric3: "Feeds de torneos agregados",
    startCta: "Empezar mi Análisis",
    watchCta: "Ver tour de 90 segundos",
    tickerEyebrow: "Señal en vivo · rastreando",
    journeyEyebrow: "Del Green al Oro",
    journeyTitle: "Ocho fases. Una ruta.",
    journeyLede: "Cada golfista —recreativo, junior o profesional— está en el mismo mapa. Solo te mostramos dónde estás y qué puerta sigue.",
    archEyebrow: "Emparejador Pro-Am",
    archTitle: "Tu swing es uno de cinco.",
    archLede: "Nuestra IA compara tu movimiento contra cincuenta mil swings rastreados y te asigna un arquetipo — la leyenda que tu mecánica más se parece.",
    archNote: "Nombres originales. Arquetipos algorítmicos — no son semblanzas de jugadores reales.",
    tourEyebrow: "Centro Global de Información",
    tourTitle: "El mapa de torneos, por fin legible.",
    tourLede: "Agregamos el ecosistema real de eventos — desde clasificatorios por código postal hasta paradas pro que cuentan para OWGR — filtrados por tu fase y tu handicap.",
    moneyEyebrow: "El Centro de Dinero",
    moneyTitleA: "Una inversión junior de $50,000 produce",
    moneyTitleFrac: "una beca de $160,000.",
    moneyLede: "El golf es el único deporte juvenil donde el costo es visible y el retorno se puede calcular. Construimos ambos lados del balance.",
    mobsyncEyebrow: "Ventaja de primer movimiento",
    mobsyncTitle: "Golf en español, desde el primer día.",
    mobsyncLede: "Cada pieza de instrucción se doblada automáticamente vía MobSync. No existe competencia a esta escala — y el español es el demográfico de mayor crecimiento en el juego.",
    ctaEyebrow: "Comienza el viaje",
    ctaTitleA: "El fairway",
    ctaTitleItalic: "espera.",
    ctaLede: "Gratis para siempre para los primeros 10,000 golfistas. Sin tarjeta. Sin compromiso. Solo el mapa.",
    footerPlatform: "Plataforma",
    footerResources: "Recursos",
    footerCompany: "Compañía",
    footerLegal: "Legal",
    currentPhase: "Fase actual",
    milestones: "Hitos · las puertas por delante",
    focusNow: "Foco de entrenamiento",
    legend: "Esto es una maqueta ficticia; los nombres de torneos se usan como referencia factual.",
  },
};

Object.assign(window, { PHASES, ARCHETYPES, TOURNAMENTS, COPY });
