// data-en.jsx — English content set. Swapped into the globals on language change.

const DATA_EN = {
  MODULE_LONG: {
    agenda: {
      eyebrow: 'Scheduling module',
      pitch: 'A smart calendar that knows every provider.',
      body: 'Sync with Google Calendar, automate WhatsApp confirmations and free up the front desk phone. The AI suggests fill-ins, spots gaps and reschedules on its own.',
      color: '#A5B4FC',
      metrics: [
        { v: '94%', l: 'reduction in no-shows' },
        { v: '3.2h', l: 'freed at the front desk daily' },
        { v: '24/7', l: 'online booking' },
      ],
    },
    clinic: {
      eyebrow: 'Clinical Care module',
      pitch: 'From history to prescription, in half the time.',
      body: 'Structured SOAP records, prescriptions with integrated drug data, imaging, labs and reports in one place. The AI suggests differentials and drafts the note while you examine.',
      color: '#F8A5C2',
      metrics: [
        { v: '12 min', l: 'average visit length' },
        { v: '8.4k+', l: 'drugs in the database' },
        { v: '1 click', l: 'prescription and report' },
      ],
    },
    crm: {
      eyebrow: 'CRM module',
      pitch: 'Every owner known. Every conversation kept. Every lead worked.',
      body: 'Official WhatsApp Meta API, a visual lead pipeline, behavior-triggered automations and AI agents answering 24/7. Automatic win-back for lapsed owners.',
      color: '#86EFAC',
      metrics: [
        { v: '+38%', l: 'leads converted' },
        { v: '< 2 min', l: 'first response time' },
        { v: '6 agents', l: 'customizable AI' },
      ],
    },
    finance: {
      eyebrow: 'Finance module',
      pitch: 'Finance leaves the spreadsheet and gets daily clarity.',
      body: 'Payables and receivables, bank reconciliation, projected cash flow and management P&L. Multi-entity for chains and franchises. Bank integration via open banking.',
      color: '#FCD34D',
      metrics: [
        { v: '15 banks', l: 'integrated via open banking' },
        { v: 'Real time', l: 'cash flow' },
        { v: '200+ accounts', l: 'multi-unit P&L' },
      ],
    },
    marketing: {
      eyebrow: 'Marketing module',
      pitch: 'Content, campaigns and social with AI that speaks pet.',
      body: 'Content Studio writes posts, carousels and captions in your clinic\u2019s voice. Editorial calendar, cross-network scheduling, consolidated metrics and pet-vertical templates.',
      color: '#FFB199',
      metrics: [
        { v: '12x', l: 'more posts published monthly' },
        { v: '5 networks', l: 'natively integrated' },
        { v: 'Brand voice', l: 'trained on your clinic' },
      ],
    },
    pos: {
      eyebrow: 'Sales / POS module',
      pitch: 'Fast checkout. Inventory under control. Commissions handled.',
      body: 'A register built for high turnover, every payment method, ABC inventory control, integrated quotes and automatic per-provider commissions.',
      color: '#818CF8',
      metrics: [
        { v: '4 sec', l: 'average sale at checkout' },
        { v: '99.8%', l: 'inventory accuracy' },
        { v: 'Card, wallet, link', l: 'all payment methods' },
      ],
    },
    presence: {
      eyebrow: 'Directory \u00b7 Presence module',
      pitch: 'Your online presence, from Google to direct booking.',
      body: 'A public profile tuned for local SEO, online booking with no login, reviews collected automatically after each visit, a gallery and hours that are always current.',
      color: '#67E8F9',
      metrics: [
        { v: '3x', l: 'visibility on Google' },
        { v: '4.9 \u2605', l: 'average review score' },
        { v: '1 click', l: 'public booking' },
      ],
    },
    portal: {
      eyebrow: 'Pet Owner Portal module',
      pitch: 'The app your clients download \u2014 carrying your brand.',
      body: 'Fully white-label iOS and Android app. Owners see history and prescriptions, book visits, get vaccine reminders and pay in-app. You build brand and retention.',
      color: '#C4B5FD',
      metrics: [
        { v: '76%', l: 'owners active in the app' },
        { v: 'White-label', l: 'your brand, your app' },
        { v: 'iOS + Android', l: 'native' },
      ],
    },
  },

  PLANS: [
    { id: 'free', tier: 'Free Professional', name: 'Free',
      desc: 'To get the practice off paper.',
      priceMonth: 0, priceYear: 0,
      feats: ['Full scheduling', 'Directory / Presence', 'Up to 100 pet records', '1 active provider', 'Help center support'],
      cta: 'Start free', popular: false },
    { id: 'pro', tier: 'Pro', name: 'Pro',
      desc: 'For clinics and pet shops in daily operation.',
      priceMonth: 49, priceYear: 39,
      feats: ['7 modules included', 'AI agents (1,000 actions/mo)', 'WhatsApp Meta API', 'Up to 10 providers', 'Chat support'],
      cta: 'Try Pro', popular: true },
    { id: 'premium', tier: 'Premium', name: 'Premium',
      desc: 'For chains, franchises and scaled operations.',
      priceMonth: 129, priceYear: 103,
      feats: ['All 8 modules + Owner Portal', 'Unlimited AI agents', 'Multi-unit and multi-entity', 'Unlimited providers', 'Priority support + dedicated CSM'],
      cta: 'Talk to sales', popular: false },
  ],

  TESTIMONIALS: [
    { name: 'Dr. Camila Reis', role: 'Pata Feliz Clinic \u00b7 Curitiba, BR',
      av: 'CR', avCls: '',
      quote: 'In two months we stopped running three separate systems. Cowork\u2019s AI writes the notes while I examine. I look at the pet again, not the screen.' },
    { name: 'Rodrigo Tavares', role: 'Doguinho Pet Shop \u00b7 Recife, BR',
      av: 'RT', avCls: 'b',
      quote: 'Online booking doubled our new clients. Checkout is fast enough that the line disappears. And Cowork became a partner who understands sales.' },
    { name: 'Dr. Felipe Hamada', role: 'AnimalCare Group \u00b7 7 locations',
      av: 'FH', avCls: 'g',
      quote: 'Migrating 7 locations with 12 years of data is not simple. Zoee did it in 22 days. Consolidated finance took an enormous weight off my shoulders.' },
  ],

  FAQ: [
    { q: 'How long does implementation take?',
      a: 'Most clinics are seeing patients the same day. For data migration from another system, the average is 7 to 15 business days with the Zoee team alongside you.' },
    { q: 'Can I migrate data from another system?',
      a: 'Yes. We have ready importers for the major veterinary systems and offer assisted migration on Pro and Premium at no extra cost.' },
    { q: 'Does it work offline?',
      a: 'The mobile app keeps recent visits available for reading offline. New entries sync automatically once the connection returns.' },
    { q: 'Is it secure? What about privacy law?',
      a: 'Yes. Zoee is built for GDPR and LGPD compliance: encryption in transit and at rest, daily geo-redundant backups, granular permissions and a DPA on request.' },
    { q: 'Is there a mobile app for the team?',
      a: 'Yes. iOS and Android for providers (visits, schedule, records) and the Owner Portal for clients, white-labeled with your brand.' },
    { q: 'Does it work for a solo practice?',
      a: 'It works well. The Free Professional plan covers solo and independent professionals at no cost, with full scheduling and an online directory profile.' },
    { q: 'How does support work?',
      a: 'Knowledge base and community on Free. Business-hours chat on Pro. Dedicated CSM, phone and an SLA on Premium.' },
    { q: 'Can I cancel anytime?',
      a: 'Yes. No penalty, no lock-in. Cancel from the dashboard. Your data stays available for export for 90 days afterward.' },
  ],

  SOLUTIONS: [
    { id: 'vet', tone: 'pink', icon: 'stethoscope',
      headline: 'General practice veterinarian',
      bullet: ['SOAP records in 12 minutes', 'Prescriptions with integrated drug data', 'Imaging and reports in one place', 'AI that drafts the note while you examine'] },
    { id: 'petshop', tone: 'coral', icon: 'register',
      headline: 'Pet shop, bath and grooming',
      bullet: ['Register built for high turnover', 'Automatic per-provider commissions', 'ABC inventory control', 'Client CRM with pet birthdays'] },
    { id: 'solo', tone: 'midnight', icon: 'phone',
      headline: 'Solo professional',
      bullet: ['Mobile-first for house calls', 'Take payment at the visit', 'Online booking with your public link', 'Free plan, permanently'] },
    { id: 'chain', tone: 'violet', icon: 'globe',
      headline: 'Chain and franchise',
      bullet: ['Multi-unit with consolidated finance', 'Standardized clinical protocols', 'Real-time consolidated P&L', 'Granular role-based permissions'] },
  ],

  CUSTOMERS_LIST: [
    { name: 'Pata Feliz', city: 'Curitiba, BR', type: 'Veterinary clinic', size: '4 vets \u00b7 60 pets/day' },
    { name: 'Doguinho', city: 'Recife, BR', type: 'Pet shop + grooming', size: '12 staff' },
    { name: 'AnimalCare', city: 'S\u00e3o Paulo, BR', type: 'Clinic group', size: '7 locations \u00b7 38 vets' },
    { name: 'PetCare House Calls', city: 'Florian\u00f3polis, BR', type: 'Mobile vet', size: 'Solo practice' },
    { name: 'BichoSa\u00fade', city: 'Belo Horizonte, BR', type: 'Clinic + surgery', size: '3 vets \u00b7 surgical' },
    { name: 'Mundo Animal', city: 'Porto Alegre, BR', type: 'Multi-brand pet shop', size: '2 stores \u00b7 8 staff' },
    { name: 'Vet24', city: 'Bras\u00edlia, BR', type: '24h emergency', size: '6 vets \u00b7 on call' },
    { name: 'Caes&Gatos', city: 'Salvador, BR', type: 'Grooming and training', size: '3 stores' },
    { name: 'CavalosFortes', city: 'Goi\u00e2nia, BR', type: 'Equine \u00b7 large animal', size: '2 vets' },
  ],

  VALUES: [
    { title: 'The pet is the end customer', body: 'Every decision has to make sense for the one being cared for. Not for the software.' },
    { title: 'AI with accountability', body: 'Auditable models, cited sources, clinical decisions always reviewed by a human.' },
    { title: 'Build in public', body: 'Open roadmap, changes explained, mistakes admitted. Trust is built daily.' },
    { title: 'Local by design', body: 'Privacy law, WhatsApp, local currency and correct language in every market we enter.' },
  ],

  JOBS: [
    { dept: 'Engineering', loc: 'Remote \u00b7 Americas', role: 'Senior Backend Engineer (Elixir)' },
    { dept: 'Engineering', loc: 'Remote \u00b7 Americas', role: 'Senior Frontend Engineer (React/TS)' },
    { dept: 'AI', loc: 'Remote \u00b7 Global', role: 'AI Product Engineer' },
    { dept: 'Design', loc: 'Remote \u00b7 Americas', role: 'Senior Product Designer' },
    { dept: 'Customer', loc: 'Hybrid \u00b7 S\u00e3o Paulo', role: 'CSM \u2014 Chains and Franchises' },
    { dept: 'Sales', loc: 'Hybrid \u00b7 New York', role: 'Account Executive \u2014 Mid-Market' },
    { dept: 'Marketing', loc: 'Remote \u00b7 Americas', role: 'Content Lead \u2014 Pet Vertical' },
  ],

  BLOG_POSTS: [
    { id: 'lgpd-clinicas', cat: 'Compliance',
      title: 'Data privacy for vet clinics: the checklist you can apply today',
      excerpt: 'Seven critical privacy requirements applied to daily clinic work \u2014 with templates you can adopt as-is.',
      author: 'Mariana Schmidt', role: 'DPO at Zoee', date: 'May 8, 2026', read: 9, color: '#A5B4FC' },
    { id: 'cowork-prescricao', cat: 'Product',
      title: 'How Cowork writes a clinical note in 45 seconds',
      excerpt: 'A step-by-step walkthrough of a real visit where the vet dictated findings and the AI structured the full SOAP note.',
      author: 'Pedro Vasconcelos', role: 'Head of AI', date: 'May 2, 2026', read: 7, color: '#FFB199' },
    { id: 'banho-e-tosa-margem', cat: 'Management',
      title: 'The real math of grooming: how one group raised margin 34%',
      excerpt: 'A case study across 7 stores. Metrics, pricing decisions and what changed in daily operations.',
      author: 'Camila Reis', role: 'Guest \u00b7 DVM', date: 'Apr 28, 2026', read: 12, color: '#F8A5C2' },
    { id: 'whatsapp-meta-api', cat: 'Marketing',
      title: 'WhatsApp Meta API for clinics: stop using QR codes tomorrow',
      excerpt: 'Why the official API changes everything \u2014 automation, scale, compliance and support without personal numbers.',
      author: 'Jo\u00e3o Beltr\u00e3o', role: 'Head of Marketing', date: 'Apr 22, 2026', read: 6, color: '#86EFAC' },
    { id: 'reativacao-tutores', cat: 'CRM',
      title: 'Owner win-back: the 90-day cadence that recovers 28% of lapsed clients',
      excerpt: 'The cadence model we run with more than 200 clinics. Messages ready to copy and adapt.',
      author: 'Let\u00edcia Andrade', role: 'CRM Specialist', date: 'Apr 15, 2026', read: 8, color: '#FCD34D' },
    { id: 'precificacao-cirurgia', cat: 'Finance',
      title: 'Pricing surgery: the spreadsheet we killed with Zoee Finance',
      excerpt: 'How to stop guessing on price. Covers cost of goods, vet-hour, materials and target margin.',
      author: 'Rafael Tobias', role: 'CFO at Zoee', date: 'Apr 10, 2026', read: 11, color: '#67E8F9' },
  ],

  CHANGELOG_ENTRIES: [
    { date: 'May 10, 2026', tag: 'feature',
      title: 'Cowork now builds automations through conversation',
      body: 'Describe the trigger and the action in plain language. The AI generates the visual automation and hands it over ready to review and activate. Works across all 8 modules.' },
    { date: 'May 3, 2026', tag: 'feature',
      title: 'Importers for 4 legacy systems',
      body: 'We added ready importers for the four most-used veterinary systems in Brazil. Average migration dropped from 22 to 9 business days.' },
    { date: 'Apr 26, 2026', tag: 'improvement',
      title: 'Clinical Care got 40% faster',
      body: 'We rebuilt the visit screen. Keyboard shortcuts, AI dictate mode and a modular form. Average time dropped from 19 to 12 minutes.' },
    { date: 'Apr 19, 2026', tag: 'feature',
      title: 'Seven languages in production',
      body: 'Zoee in English, Portuguese (BR and PT), Spanish, French, Italian and German. Product, owner app and official site.' },
    { date: 'Apr 11, 2026', tag: 'fix',
      title: 'More stable Google Calendar sync',
      body: 'Fixed sync for calendars with more than 2,000 events per month. Average latency dropped from 4.2s to 0.9s.' },
    { date: 'Apr 2, 2026', tag: 'feature',
      title: 'Owner Portal available on iOS and Android',
      body: 'A white-label app for your clinic. Owners install it with your brand, see their pets, book visits and pay in-app.' },
  ],

  DOC_SECTIONS: [
    { title: 'Getting started', items: ['Overview','Quickstart','Authentication','Core concepts','Workspaces','Official SDKs'] },
    { title: 'REST API', items: ['Pets','Owners','Appointments','Visits','Prescriptions','Sales / POS','Finance','Messages'] },
    { title: 'Webhooks', items: ['Setup','Available events','HMAC signing','Redelivery'] },
    { title: 'Cowork & AI', items: ['Conversations','Agents','Custom tools','Supported models','Limits and cost'] },
    { title: 'Integrations', items: ['WhatsApp Meta','Google Calendar','Open banking','Invoicing','Zapier webhooks'] },
    { title: 'Operations', items: ['Rate limits','Idempotency','Errors','Versioning','Data migration'] },
  ],

  LEGAL_DOCS: {
    lgpd: {
      title: 'Data Protection & Privacy Compliance',
      updated: 'Effective January 2, 2026 \u00b7 last reviewed May 2, 2026',
      body: [
        { p: 'Zoee operates in compliance with Brazil\u2019s LGPD (Law 13.709/2018) and the EU GDPR. This page describes our practices, legal bases and the channels available to data subjects.' },
        { h: 'What data we process' },
        { p: 'We process three categories: (i) account data for the contracting professional; (ii) operational data entered by the customer \u2014 pets, owners, visits; (iii) platform usage data for security and service improvement.' },
        { h: 'Legal bases' },
        { p: 'Performance of a contract, legitimate interest for security and fraud prevention, compliance with legal and regulatory obligations, and specific consent for commercial communications.' },
        { h: 'Data subject rights' },
        { p: 'Confirmation, access, correction, anonymization, portability, erasure, information on sharing and withdrawal of consent. All handled within 15 business days via dpo@zoee.pet.' },
        { h: 'Sharing' },
        { p: 'Subprocessors are listed at /legal/subprocessors. These include cloud infrastructure, transactional email, payment gateway and AI processors under no-training clauses.' },
        { h: 'Security' },
        { p: 'Encryption in transit (TLS 1.3) and at rest (AES-256), daily geo-redundant backups, role-based access control, mandatory multi-factor authentication for administrators and full access auditing.' },
      ],
    },
    termos: {
      title: 'Terms of Service',
      updated: 'Last updated May 2, 2026',
      body: [
        { p: 'These Terms govern use of the Zoee platform. By creating an account you agree to this document in full. We recommend keeping a copy.' },
        { h: '1. Scope' },
        { p: 'Zoee provides, as Software as a Service, management tools for veterinary clinics, pet shops and pet professionals. The scope of each plan is described on the pricing page.' },
        { h: '2. Account and access' },
        { p: 'You are responsible for the accuracy of the information you provide, for safeguarding your credentials and for actions taken within the platform.' },
        { h: '3. Payment and cancellation' },
        { p: 'Billing is monthly or annual, at your choice. Cancellation is unrestricted and takes effect at the end of the current cycle. There is no termination penalty.' },
        { h: '4. Intellectual property' },
        { p: 'The platform, trademarks and code are the exclusive property of Zoee. Data entered by the customer remains the customer\u2019s property.' },
        { h: '5. Limitation of liability' },
        { p: 'Zoee works to keep the service stable, with a 99.9% SLA on paid plans. Liability is limited to amounts paid in the 12 months preceding the event.' },
        { h: '6. Governing law' },
        { p: 'These Terms are governed by the laws of Brazil, with venue in the courts of S\u00e3o Paulo/SP.' },
      ],
    },
    privacidade: {
      title: 'Privacy Policy',
      updated: 'Last updated May 2, 2026',
      body: [
        { p: 'This policy describes how we handle personal data collected on zoee.pet, in app.zoee.pet, tutor.zoee.pet and other Zoee products.' },
        { h: 'Collection' },
        { p: 'We collect data you give us (registration, forms, support) and data generated by use (logs, usage metrics, error telemetry).' },
        { h: 'Use' },
        { p: 'We use data to deliver and improve the service, provide support, prevent fraud, meet legal obligations and send operational notices. Marketing only with consent.' },
        { h: 'Cookies' },
        { p: 'We use strictly necessary cookies by default, and analytics and marketing cookies only after explicit acceptance in the consent banner.' },
        { h: 'Retention' },
        { p: 'Operational data is retained for the life of the contract and a further 5 years to meet tax obligations, after which it is anonymized.' },
        { h: 'International transfers' },
        { p: 'When data is processed outside its country of origin (for example, by AI processors), we apply standard contractual clauses and maintain LGPD and GDPR adequacy.' },
      ],
    },
  },
};

// Snapshot the Portuguese set defined in data.jsx so we can swap back.
const DATA_PT = {
  MODULE_LONG: window.MODULE_LONG, PLANS: window.PLANS, TESTIMONIALS: window.TESTIMONIALS,
  FAQ: window.FAQ, SOLUTIONS: window.SOLUTIONS, CUSTOMERS_LIST: window.CUSTOMERS_LIST,
  VALUES: window.VALUES, JOBS: window.JOBS, BLOG_POSTS: window.BLOG_POSTS,
  CHANGELOG_ENTRIES: window.CHANGELOG_ENTRIES, DOC_SECTIONS: window.DOC_SECTIONS,
  LEGAL_DOCS: window.LEGAL_DOCS,
};

// Portuguese for pt-BR/pt-PT, English for everything else (en is the default).
function applyDataLang(lang) {
  const set = (lang === 'pt-BR' || lang === 'pt-PT') ? DATA_PT : DATA_EN;
  Object.assign(window, set);
}

Object.assign(window, { DATA_EN, DATA_PT, applyDataLang });
applyDataLang(window.__lang || 'en');
