// V3 — i18n strings dictionary (IT + EN).
// Dataset verticals keep IT copy (they're scripted examples); UI chrome
// translates. The vertical name/place gets an EN alias used when lang=en.

const I18N = {
  it: {
    nav: { day: 'Una giornata', features: 'Funzioni', channels: 'Canali', pricing: 'Prezzi' },
    cta: { primary: 'Prova Gratis', start: 'Inizia Gratis', see: 'Vedi Come Funziona', scrollDay: 'Scorri la giornata ↓' },
    badge: 'AI BOOKING · WHATSAPP · TELEGRAM · WEB',

    heroIntro: { label: 'INTRO', meta: ['Martedì.', 'Dalle 08:00', 'alle 18:00.'] },
    heroH1: { l1: 'Un giorno.', l2: '11 prenotazioni.', l3: 'Zero interruzioni.' },
    heroBody: { pre: 'Assistente AI per appuntamenti. Scorri — vedi come una giornata da', post: 'si gestisce da sola.' },

    stats: [
      ['93%',  'Prenotazioni automatiche'],
      ['24/7', 'Sempre attivo'],
      ['<30s', 'Tempo di risposta'],
      ['-60%', 'No-show'],
    ],

    moments: {
      m1: { kicker: 'PRIMO CLIENTE',
            h: { pre: 'Sei con ', post: '.' }, hAccent: 'Il telefono squilla.',
            body: 'Prima, avresti dovuto scegliere: interrompere il trattamento o perdere la prenotazione. Ora non suona nemmeno — arriva su WhatsApp e Schedy ha già risposto.',
            chips: ['Google Calendar Sync', 'WhatsApp', 'Riconoscimento Clienti'],
            agenda: { title: 'AGENDA · {staff} · OGGI', sync: 'Sync con Google Calendar · 1s fa' } },
      m2: { kicker: 'VOCALE · LIVE',
            h: 'Un vocale di 47 secondi.', hAccent: "L'AI capisce prima che finisca.",
            body: 'Deepgram Nova-3 trascrive in italiano. Keyterm prompting con nomi staff, servizi e clienti frequenti. Riconoscimento automatico dal numero.',
            labels: { audio: '🎙 VOCALE WHATSAPP · 0:47', transcript: 'TRASCRIZIONE · Deepgram Nova-3 · IT', intent: '▸ INTENT PARSATO · 0.3s', confirm: { strong: 'Scritto sul calendario di {staff}.', weak: 'Conferma inviata · reminder schedulato' },
            parsed: { cliente: 'cliente', azione: 'azione', da: 'da', a: 'a' } } },
      m3: { kicker: 'REMINDER -1H · LIVE',
            h: 'Reminder automatico.', hAccent: 'No-show −60%.',
            body: '24h e 1h prima. Sul canale preferito del cliente. Se risponde, la conferma viene registrata in automatico. Se non risponde, vedi chi probabilmente non si presenterà.',
            chips: ['Reminder Intelligenti', 'GDPR-ready', 'Dedup automatico'],
            labels: { header: 'AUTOMAZIONE · REMINDER -1h', delivered: 'consegnato', confirmed: '✓ CONFERMA AUTO-REGISTRATA · NO-SHOW -60%' } },
      m4: { kicker: 'FINE GIORNATA',
            h: { pre: 'Chiudi con ', post: 'prenotazioni.' }, hAccent: 'Non le hai gestite.',
            stats: [['prenotazioni auto'], ['vocali capiti'], ['risparmiati']],
            tag: 'min',
            outro: { l1: 'Domani, stessa storia.', l2: '14 giorni gratis. Setup in 5 minuti. Nessuna carta di credito.' } },
    },

    prePost: {
      label: '№B / PRIMA & DOPO',
      h: { pre: 'Prima, il telefono era ', post: '.' }, hAccent: 'un collega di troppo',
      beforeLabel: 'PRIMA',
      afterLabel: 'DOPO',
      before: [
        '7-12 telefonate al giorno durante il lavoro',
        'Clienti che non lasciano messaggio → persi',
        'Vocali ignorati, nessuno li ascolta',
        'Doppie prenotazioni sul calendario',
        'Reminder dimenticati → 30% no-show',
        'WhatsApp inevaso la sera',
      ],
      after: [
        'Zero interruzioni durante i trattamenti',
        "L'AI risponde in <30s, 24/7",
        'Vocali trascritti e capiti — Deepgram Nova-3',
        'Sync bidirezionale con Google Calendar',
        'Reminder automatici · no-show -60%',
        'WhatsApp sotto controllo · handoff trasparente',
      ],
    },

    features: {
      label: '№05 / TUTTO IL RESTO',
      h: { l1: 'Tutto quello che serve. ', l2: 'Niente di più.' },
      items: [
        ['01', 'Google Calendar Sync',   'Bidirezionale'],
        ['02', 'Multi-Staff',            'Per operatore'],
        ['03', 'Reminder Intelligenti',  '24h & 1h'],
        ['04', 'Vocali WhatsApp',        'Deepgram Nova-3'],
        ['05', 'Riconoscimento Clienti', 'Cross-channel'],
        ['06', 'Handoff Operatore',      'Zero config'],
      ],
    },

    channels: {
      label: '№06 / CANALI',
      h: 'Dove sono i tuoi clienti.',
      items: [
        { name: 'WhatsApp', desc: 'Il canale #1 in Italia. Vocali inclusi.' },
        { name: 'Telegram', desc: 'Bot dedicato. Vocali supportati.' },
        { name: 'Web Form', desc: 'Widget da integrare nel tuo sito.' },
      ],
      tag: 'LIVE',
    },

    footer: { tagline: 'Assistente AI per prenotazioni. Fatto in Italia.',
              cols: [['Prodotto', ['Una giornata', 'Funzioni', 'Canali', 'Prezzi']],
                     ['Legale',   ['Privacy Policy', 'Termini', 'Cookie']],
                     ['Contatti', ['hello@schedy.app']]],
              rights: '© 2026 HelloAI. Tutti i diritti riservati.' },

    switcher: { label: 'DEMO SETTORE', change: 'Cambia' },
    theme: { dark: 'Scuro', light: 'Chiaro' },
  },

  en: {
    nav: { day: 'A day', features: 'Features', channels: 'Channels', pricing: 'Pricing' },
    cta: { primary: 'Try Free', start: 'Start Free', see: 'See How It Works', scrollDay: 'Scroll the day ↓' },
    badge: 'AI BOOKING · WHATSAPP · TELEGRAM · WEB',

    heroIntro: { label: 'INTRO', meta: ['Tuesday.', '08:00', 'to 18:00.'] },
    heroH1: { l1: 'One day.', l2: '11 bookings.', l3: 'Zero interruptions.' },
    heroBody: { pre: 'AI booking assistant. Scroll — see a day at a', post: 'running itself.' },

    stats: [
      ['93%',  'Automated bookings'],
      ['24/7', 'Always on'],
      ['<30s', 'Response time'],
      ['-60%', 'No-shows'],
    ],

    moments: {
      m1: { kicker: 'FIRST CLIENT',
            h: { pre: "You're with ", post: '.' }, hAccent: 'The phone rings.',
            body: "Before, you had to choose: interrupt the treatment or lose the booking. Now it doesn't even ring — it comes in on WhatsApp and Schedy already replied.",
            chips: ['Google Calendar Sync', 'WhatsApp', 'Customer Recognition'],
            agenda: { title: 'SCHEDULE · {staff} · TODAY', sync: 'Google Calendar sync · 1s ago' } },
      m2: { kicker: 'VOICE · LIVE',
            h: 'A 47-second voice note.', hAccent: 'AI gets it before it ends.',
            body: 'Deepgram Nova-3 transcribes Italian. Keyterm prompting with staff names, services and frequent clients. Auto-recognition from phone number.',
            labels: { audio: '🎙 WHATSAPP VOICE · 0:47', transcript: 'TRANSCRIPTION · Deepgram Nova-3 · IT', intent: '▸ PARSED INTENT · 0.3s', confirm: { strong: "Written to {staff}'s calendar.", weak: 'Confirmation sent · reminder scheduled' },
            parsed: { cliente: 'client', azione: 'action', da: 'from', a: 'to' } } },
      m3: { kicker: 'REMINDER -1H · LIVE',
            h: 'Automatic reminder.', hAccent: 'No-shows −60%.',
            body: "24h and 1h before. On the client's preferred channel. If they reply, confirmation is logged automatically. If they don't, you see who likely won't show up.",
            chips: ['Smart Reminders', 'GDPR-ready', 'Auto dedup'],
            labels: { header: 'AUTOMATION · REMINDER -1h', delivered: 'delivered', confirmed: '✓ CONFIRMATION AUTO-LOGGED · NO-SHOW -60%' } },
      m4: { kicker: 'END OF DAY',
            h: { pre: 'You close with ', post: 'bookings.' }, hAccent: "You didn't handle them.",
            stats: [['auto bookings'], ['voices understood'], ['saved']],
            tag: 'min',
            outro: { l1: 'Tomorrow, same story.', l2: '14 days free. 5-minute setup. No credit card.' } },
    },

    prePost: {
      label: '№B / BEFORE & AFTER',
      h: { pre: 'Before, the phone was ', post: '.' }, hAccent: 'one colleague too many',
      beforeLabel: 'BEFORE',
      afterLabel: 'AFTER',
      before: [
        '7-12 calls a day during work',
        'Clients who leave no message → lost',
        'Voice notes ignored, no one listens',
        'Double bookings on the calendar',
        'Forgotten reminders → 30% no-show',
        'WhatsApp unread at night',
      ],
      after: [
        'Zero interruptions during treatments',
        'AI answers in <30s, 24/7',
        'Voice notes transcribed — Deepgram Nova-3',
        'Two-way Google Calendar sync',
        'Automatic reminders · no-show -60%',
        'WhatsApp under control · transparent handoff',
      ],
    },

    features: {
      label: '№05 / EVERYTHING ELSE',
      h: { l1: 'Everything you need. ', l2: 'Nothing more.' },
      items: [
        ['01', 'Google Calendar Sync',   'Two-way'],
        ['02', 'Multi-Staff',            'Per operator'],
        ['03', 'Smart Reminders',        '24h & 1h'],
        ['04', 'WhatsApp Voices',        'Deepgram Nova-3'],
        ['05', 'Customer Recognition',   'Cross-channel'],
        ['06', 'Operator Handoff',       'Zero config'],
      ],
    },

    channels: {
      label: '№06 / CHANNELS',
      h: 'Where your clients are.',
      items: [
        { name: 'WhatsApp', desc: 'The #1 channel in Italy. Voice included.' },
        { name: 'Telegram', desc: 'Dedicated bot. Voice supported.' },
        { name: 'Web Form', desc: 'Widget to embed on your site.' },
      ],
      tag: 'LIVE',
    },

    footer: { tagline: 'AI booking assistant. Made in Italy.',
              cols: [['Product', ['A day', 'Features', 'Channels', 'Pricing']],
                     ['Legal',   ['Privacy Policy', 'Terms', 'Cookies']],
                     ['Contact', ['hello@schedy.app']]],
              rights: '© 2026 HelloAI. All rights reserved.' },

    switcher: { label: 'VERTICAL DEMO', change: 'Switch' },
    theme: { dark: 'Dark', light: 'Light' },
  },
};

// Vertical name aliases for EN
const VERTICAL_EN_NAMES = {
  massaggi: 'Massage Studio',
  parrucchiere: 'Hair Salon',
  medico: 'Medical Practice',
  estetista: 'Beauty Salon',
  veterinario: 'Veterinary Clinic',
  pt: 'Personal Trainer',
  legale: 'Law Firm',
  dentista: 'Dental Practice',
};

function verticalName(v, lang) {
  return lang === 'en' ? (VERTICAL_EN_NAMES[v.id] || v.name) : v.name;
}

Object.assign(window, { I18N, VERTICAL_EN_NAMES, verticalName });
