/** Marketing copy shared across pages. English below; Spanish in `contentEs`. Pick with contentFor(lang). */
import type { Lang } from '../i18n';

export const features = [
  { icon: 'journal-text', tint: 'blue', title: 'Digital Trip Sheets', text: 'The same sheet your drivers know, now on the phone. Start from a template, add a new shipper, truck or fuel stop with +, and repeat last time\'s miles with one tap.' },
  { icon: 'map', tint: 'cyan', title: 'State Mileage & IFTA', text: "Gallons and miles per state for any quarter, tax per state, and the IFTA return exported with every fuel receipt." },
  { icon: 'receipt', tint: 'amber', title: 'Expenses & Receipts', text: 'Fuel, Com Check, tolls, lumper, parts and lodging, plus fuel stops and repairs, with a photo of every receipt.' },
  { icon: 'cash-stack', tint: 'violet', title: 'Driver Settlements', text: 'Weekly pay statements: per mile, percentage or flat, with each team driver paid their own wage.' },
  { icon: 'broadcast', tint: 'green', title: 'Live Dispatch & GPS', text: 'See every truck on a live map, tracked by the driver\'s phone, with a GPS device as an option.' },
  { icon: 'shield-check', tint: 'rose', title: 'Compliance', text: 'Driver qualification files, company filings (MCS-150, UCR, IFTA, HVUT) and online driver applications, with reminders.' },
  { icon: 'truck', tint: 'slate', title: 'Fleet & Maintenance', text: 'Trucks and trailers, service due by miles or days, and truck documents with expiry alerts.' },
  { icon: 'folder2-open', tint: 'amber', title: 'Documents & Contacts', text: 'Company papers with files to download any time, and a phone book your drivers can call from.' },
  { icon: 'speedometer2', tint: 'primary', title: 'Owner Dashboard', text: 'Revenue, expenses, profit, MPG and cost per mile, by truck, by driver and by month, for any year.' },
  { icon: 'phone', tint: 'pink', title: 'Driver Mobile App', text: 'Install it on the home screen. Drafts are saved on the phone, and with no internet it says so and opens the phone\'s settings.' },
  { icon: 'search', tint: 'cyan', title: 'Search & Export', text: 'Find any trip, truck, driver or document from one search box, and export any list to Excel, Word, CSV or PDF.' },
  { icon: 'headset', tint: 'violet', title: 'Help & Support', text: 'Guided tours on the main pages, help articles and support tickets inside the app.' },
] as const;

export const detailedFeatures = [
  {
    id: 'trip-sheets', icon: 'journal-text', tint: 'blue', title: 'Digital driver trip sheets',
    lead: 'Built from the paper sheet your drivers already use, in the same order, with the totals added up for you.',
    points: [
      "Driver, date, Load No., truck and trailer, with starting miles filled in from the truck's last trip",
      'Required fields are marked with a red *, so drivers know what must be filled in before they submit',
      'Team driving: two or more drivers on one trip, with the hours each one drove',
      'Several shippers and consignees: type a few letters to find a saved one; each needs a name and a city before the sheet is submitted',
      '"+" beside Driver, Truck No., Trailer No., Shipper, Consignee and Fuel stop: add a new one in a short pop-up without leaving the sheet, and it is saved to your list and picked',
      'Load From and Destination fill in from the shipment; cities come from a search list, and the state fills in by itself',
      "Gallons and miles for the US states and Canadian provinces you drove through, with a warning when state miles don't match the odometer",
      "Driven this lane before? \"Same as last time?\" fills in last trip's states and miles with one tap",
      'Fuel stops (optional): search your truck stops or add one with +, then the date, fuel type, invoice, gallons, cost and receipt photo',
      'The expense lines drivers use on every trip (Cash Fuel, Com Check, Advance, Toll, Lumper, Parts, Lodging, Truck Wash), each with a receipt photo, all added into TOTAL',
      'Repairs & breakdowns on the road: where it happened (search the city, the state fills in), what went wrong and what was done in one box, the repair shop and mechanic, parts and labor, and photos, added to TOTAL as a REPAIRS line',
      'Same run every week? Duplicate a trip or fill the sheet from a saved template: driver, truck, route, shippers, consignees and states are filled in, and starting miles continue from the last trip',
      "6 simple steps on the phone: repairs and fuel stops wait in one optional \"Anything else?\" step (folded until needed on the computer), then a review of the whole sheet, saved as a draft even with no signal",
      'Submit → Approve / Reject → Settled, with a driver signature on the phone if your company needs one',
    ],
  },
  {
    id: 'ifta', icon: 'map', tint: 'cyan', title: 'State mileage, fuel & IFTA tax',
    lead: 'Miles and gallons per state are added up on every trip and ready for your quarterly IFTA return.',
    points: [
      "Tax per state worked out from the quarter's IFTA rates: taxable gallons, tax and the amount to pay or get back, in whole miles and gallons like the return",
      'Pick any quarter of any year, by truck, driver or date range',
      'Export the quarter laid out like the IFTA return, with miles by truck, fuel purchases and trips: as PDF or Excel, or with every fuel receipt in one PDF or a ZIP folder',
      'The records IFTA asks for: trip start and end dates, empty miles, highways and odometer when entering each state, and fuel receipts with date, fuel type and invoice',
      "Fuel stops fill the gallons per state from their receipts (reefer fuel left out); only IFTA-qualified trucks count, with each truck's IFTA decal and fleet number",
      'Record checks before you file: trips that cross into another quarter, miles between trips that are on no trip sheet, and fuel without a receipt photo',
      'A warning appears when state miles differ from odometer miles by more than 2%',
    ],
  },
  {
    id: 'expenses', icon: 'receipt', tint: 'amber', title: 'Expenses with receipt photos',
    lead: 'Every expense line can have a receipt photo, and the photo is compressed on the phone so it uploads fast.',
    points: ['Cash, Com Check, fuel card or company card', 'Fuel stops with the receipt photo, and road repairs with the shop, mechanic, parts list, labor, invoice number and photos', 'Expenses and repairs reports by category, truck, shop, state, driver or month', 'Cost per mile on every trip, repairs included'],
  },
  {
    id: 'settlements', icon: 'cash-stack', tint: 'violet', title: 'Weekly driver settlements',
    lead: 'Turn approved trips into a weekly pay statement in a few clicks.',
    points: ['Per-mile, percentage or flat pay, or a wage the office types for each trip', 'Team trips: every driver gets their own statement with their own wage, grouped by trip', 'Advances and Com Checks deducted; cash expenses and repairs the driver paid are reimbursed', 'Statement PDF the driver can see on their phone'],
  },
  {
    id: 'dispatch', icon: 'broadcast', tint: 'green', title: 'Live dispatch & truck tracking',
    lead: 'Your trip sheets are your dispatch board: see where every truck is and which trip it is on.',
    points: [
      'Live map of every truck: moving, stopped or offline, with the route of the trip on the road',
      "Tracked by the driver's phone: the app sends the truck's position during a trip, and drivers signed in on the website share it too, with their permission",
      'Nothing to set up when you add a truck: the driver\'s phone is the tracker, and positions saved on a weak signal are sent when it returns',
      'Optional: a separate GPS device or the free Traccar Client app on a truck, with several devices per truck and one in use',
      'Free OpenStreetMap maps, no extra map fees',
    ],
  },
  {
    id: 'compliance', icon: 'shield-check', tint: 'rose', title: 'Compliance: driver files & company filings',
    lead: 'Know what is due before it is late: for every driver and for the company.',
    points: [
      'Driver Qualification Files: CDL, medical card, MVR, road test, drug tests and more, with a clear "cleared to drive" status',
      'Reminders 90, 60 and 30 days before a driver document expires, and a PDF / ZIP of the whole file for an audit',
      'Online driver application: send a link, the driver fills in the DOT application on the phone and signs; approve it to create the driver and the file',
      'Company filings calendar: MCS-150 (from your USDOT number), UCR, IFTA returns, HVUT 2290, IRP, BOC-3 and more, with reminders 30 and 7 days before',
    ],
  },
  {
    id: 'fleet', icon: 'truck', tint: 'green', title: 'Fleet, maintenance & documents',
    lead: 'Keep trucks, trailers, drivers and staff in one place.',
    points: ['Service schedules by miles or days (oil change, PM service, DOT inspection, tires) with "due soon" alerts', 'Service history: shop visits and road repairs from the trip sheets in one place', 'Truck documents (registration, insurance, DOT inspection, IRP cab card) with files and expiry alerts', 'Odometer history per truck and a shipper and consignee address book'],
  },
  {
    id: 'documents', icon: 'folder2-open', tint: 'amber', title: 'Company documents & contacts',
    lead: "The company's papers and phone numbers, always at hand.",
    points: ['Save insurance policies, permits, contracts, bank and tax papers, with several files each', 'Optional category and expiry date, with a reminder 30 and 7 days before', 'Download any file at any time', "Contacts: brokers, mechanics, towing and more. Drivers can see them and call with one tap"],
  },
  {
    id: 'dashboard', icon: 'speedometer2', tint: 'primary', title: 'Owner dashboard & reports',
    lead: 'Know your numbers every day, not just at the end of the month.',
    points: ['Revenue, expenses, driver pay and net profit', 'Miles by state, MPG and cost-per-mile trends', 'Trip summary, profit, driver pay, repairs and performance reports', 'Reports cover up to one year at a time, and any past year can be opened', 'Export any list or report to Excel, Word, CSV or PDF', 'One search box for trips, trucks, drivers, documents, contacts and settings'],
  },
  {
    id: 'team', icon: 'people', tint: 'pink', title: 'Your team, your rules',
    lead: 'Owners decide who can do what.',
    points: ['Roles for dispatchers, accountants and managers', 'Drivers can enter their own sheets, but only if you allow it', 'Extra permissions for one person without changing their role', 'Nobody sees or manages people with more access than they have'],
  },
  {
    id: 'mobile', icon: 'phone', tint: 'rose', title: 'Made for the phone',
    lead: 'Most of the work happens on the road, so the app is built for phones first.',
    points: ['Installs like an app (PWA) on Android and iPhone, with push notifications', 'Six short steps with big buttons; search boxes for shippers, cities and fuel stops instead of long lists', 'One + button to start a trip, add a truck, a document, a contact and more', 'Drafts are saved on the phone and sync when the signal returns', 'No internet? The app says so, opens the phone\'s Wi-Fi / mobile data settings and carries on when it is back, with nothing typed lost', 'A short guided tour the first time you open each main page'],
  },
] as const;

export const steps = [
  { title: 'Create your company', text: 'Sign up free and add your logo, address and phone numbers. They print on every trip sheet.' },
  { title: 'Add trucks & drivers', text: 'Add your fleet, invite drivers and staff, and choose who can enter trip sheets.' },
  { title: 'Go paperless', text: 'Drivers fill in the sheet on the phone and submit it. You approve, pay and report.' },
] as const;

export const faqs = [
  { q: 'How does the 14-day free trial work?', a: "Sign up and use every Professional feature for 14 days. We'll remind you on days 7, 3 and 1. When the trial ends, your data stays safe in read-only mode until you choose a plan." },
  { q: 'Do I need a credit card to start?', a: 'No. You only need your company name, email and phone. No card and no commitment.' },
  { q: 'How do I pay for a plan?', a: 'Choose a plan in Billing, then pay by bank transfer (the account details are shown with copy buttons) or in cash. Upload your receipt and we activate your plan once it is verified, usually within 24 hours.' },
  { q: 'Is my data safe?', a: "Each company's data is kept completely separate. All traffic is encrypted, backups run daily, and you can export everything to Excel at any time." },
  { q: 'Can drivers use it on their phones?', a: 'Yes, it is built for phones first. Drivers tap "Add to Home Screen" and it opens like an app. Trip sheets save on the phone, even with a weak signal. You decide which drivers can enter sheets.' },
  { q: 'Does it work like our paper trip sheet?', a: 'Yes. The digital sheet has the same sections in the same order: driver and truck, shipper and consignee, gallons and miles by state, expenses and odometer, with the fields that must be filled in marked with a red *. Repairs and fuel stops on the road are optional sections, and a driver signature can be switched on for your company. The printed version looks like your paper sheet, with your logo, your address and every expense line.' },
  { q: 'Is the state mileage report an official IFTA filing?', a: 'No. It gives you the miles, gallons and estimated tax per state for any quarter, laid out like the IFTA return, and you can export it with every fuel receipt (one PDF or a ZIP) to prepare your return or answer an audit. Check the official filing rules for your base jurisdiction.' },
  { q: 'We run the same trips every week. Do drivers type it all again?', a: 'No. Duplicate a trip, or save it as a template and start the next sheet from it: driver, truck, route, shippers, consignees and states are filled in, and starting miles continue from the last trip. On a lane driven before, one tap fills in last time\'s states and miles. The driver only types this trip\'s numbers.' },
  { q: 'Can I see where my trucks are?', a: "Yes. Live Dispatch shows every truck on a map. The driver's phone sends the position during a trip: the app, or the website while the driver is signed in. You can also put a GPS device or the free Traccar Client app on a truck. No extra map fees: the maps are OpenStreetMap." },
  { q: 'How far back can I run reports?', a: 'As far back as you have data. Each report covers up to one year at a time (for example a quarter, a year, or any dates within 12 months), and you can open any past year the same way.' },
  { q: 'Does it help with DOT compliance?', a: 'Yes. Driver Qualification Files keep each driver\'s CDL, medical card, MVR, drug tests and more with reminders before they expire, and the company filings calendar reminds you of MCS-150, UCR, IFTA returns, HVUT 2290, IRP and more. New drivers can fill in the DOT application online.' },
  { q: 'Can I get a plan with more trucks or only some modules?', a: 'Yes. Contact us and we can create a custom plan for your company with the limits and modules you need.' },
] as const;

/** Ready-made questions in the WhatsApp chat (components/WhatsAppChat.astro) — tapping one opens WhatsApp with it typed in. */
export const whatsappQuestions = [
  'How does the 14-day free trial work?',
  'Which plan is right for my fleet?',
  'Can my drivers fill in trip sheets on their phones?',
  'Can you help with IFTA mileage by state?',
  'How do I pay for a plan?',
  "I'd like to book a demo.",
] as const;

/* ------------------------------------------------------------------ Spanish (same order, ids, icons and tints) */
type Copy = {
  features: readonly { icon: string; tint: string; title: string; text: string }[];
  detailedFeatures: readonly { id: string; icon: string; tint: string; title: string; lead: string; points: readonly string[] }[];
  steps: readonly { title: string; text: string }[];
  faqs: readonly { q: string; a: string }[];
  whatsappQuestions: readonly string[];
};

const featuresEs = [
  ['Hojas de viaje digitales', 'La misma hoja que tus choferes ya conocen, ahora en el teléfono. Empieza desde una plantilla, agrega un remitente, camión o parada de combustible con +, y repite las millas de la última vez con un toque.'],
  ['Millas por estado e IFTA', 'Galones y millas por estado de cualquier trimestre, impuesto por estado y la declaración IFTA exportada con cada recibo de combustible.'],
  ['Gastos y recibos', 'Combustible, Com Check, peajes, lumper, piezas y hospedaje, además de paradas de combustible y reparaciones, con una foto de cada recibo.'],
  ['Liquidaciones de choferes', 'Estados de pago semanales: por milla, por porcentaje o tarifa fija, y cada chofer del equipo con su propio pago.'],
  ['Despacho en vivo y GPS', 'Ve cada camión en un mapa en vivo, rastreado por el teléfono del chofer, con un dispositivo GPS como opción.'],
  ['Cumplimiento', 'Expedientes de choferes (DQF), trámites de la empresa (MCS-150, UCR, IFTA, HVUT) y solicitudes en línea, con recordatorios.'],
  ['Flota y mantenimiento', 'Camiones y remolques, servicios por millas o días, y documentos del camión con alertas de vencimiento.'],
  ['Documentos y contactos', 'Papeles de la empresa con archivos para descargar cuando quieras, y una agenda desde la que tus choferes pueden llamar.'],
  ['Panel del dueño', 'Ingresos, gastos, ganancia, MPG y costo por milla, por camión, por chofer y por mes, de cualquier año.'],
  ['App móvil para choferes', 'Se instala en la pantalla de inicio. Los borradores se guardan en el teléfono y, sin internet, te avisa y abre los ajustes del teléfono.'],
  ['Búsqueda y exportación', 'Encuentra cualquier viaje, camión, chofer o documento desde un solo buscador, y exporta cualquier lista a Excel, Word, CSV o PDF.'],
  ['Ayuda y soporte', 'Recorridos guiados en las páginas principales, artículos de ayuda y tickets de soporte dentro de la app.'],
] as const;

const detailedEs: Record<string, { title: string; lead: string; points: string[] }> = {
  'trip-sheets': {
    title: 'Hojas de viaje digitales para choferes',
    lead: 'Hecha a partir de la hoja de papel que tus choferes ya usan, en el mismo orden, con los totales sumados por ti.',
    points: [
      'Chofer, fecha, Load No., camión y remolque, con las millas iniciales tomadas del último viaje del camión',
      'Los campos obligatorios llevan un * rojo, así el chofer sabe qué debe llenar antes de enviar',
      'Choferes en equipo: dos o más choferes en un viaje, con las horas que manejó cada uno',
      'Varios remitentes y destinatarios: escribe unas letras para encontrar uno guardado; cada uno necesita nombre y ciudad antes de enviar la hoja',
      '"+" junto a Chofer, Camión, Remolque, Remitente, Destinatario y Parada de combustible: agrega uno nuevo en una ventana corta sin salir de la hoja, y queda guardado en tu lista y elegido',
      'Origen y destino se llenan a partir del envío; las ciudades salen de una lista con buscador y el estado se llena solo',
      'Galones y millas de los estados de EE. UU. y las provincias de Canadá por los que pasaste, con un aviso cuando las millas por estado no coinciden con el odómetro',
      '¿Ya hiciste esta ruta? "¿Igual que la última vez?" llena los estados y las millas del último viaje con un toque',
      'Paradas de combustible (opcional): busca tus paradas o agrega una con +, y luego la fecha, el tipo de combustible, la factura, los galones, el costo y la foto del recibo',
      'Las líneas de gastos que los choferes usan en cada viaje (Cash Fuel, Com Check, Advance, Toll, Lumper, Parts, Lodging, Truck Wash), cada una con foto del recibo, todas sumadas en el TOTAL',
      'Reparaciones y averías en ruta: dónde pasó (busca la ciudad y el estado se llena solo), qué falló y qué se hizo en un solo cuadro, el taller y el mecánico, piezas y mano de obra, y fotos, sumado al TOTAL como línea REPAIRS',
      '¿La misma ruta cada semana? Duplica un viaje o llena la hoja desde una plantilla guardada: chofer, camión, ruta, remitentes, destinatarios y estados ya llenos, y las millas iniciales siguen desde el último viaje',
      '6 pasos sencillos en el teléfono: las reparaciones y paradas de combustible esperan en un paso opcional "¿Algo más?" (plegado hasta que se necesite en la computadora) y luego una revisión de toda la hoja, guardados como borrador incluso sin señal',
      'Enviar → Aprobar / Rechazar → Liquidado, con la firma del chofer en el teléfono si tu empresa la necesita',
    ],
  },
  ifta: {
    title: 'Millas por estado, combustible e impuesto IFTA',
    lead: 'Las millas y los galones por estado se suman en cada viaje y quedan listos para tu declaración trimestral de IFTA.',
    points: [
      'Impuesto por estado calculado con las tasas IFTA del trimestre: galones gravables, impuesto y el monto a pagar o a favor, en millas y galones enteros como en la declaración',
      'Elige cualquier trimestre de cualquier año, por camión, chofer o rango de fechas',
      'Exporta el trimestre con el formato de la declaración IFTA, con millas por camión, compras de combustible y viajes: en PDF o Excel, o con cada recibo de combustible en un solo PDF o una carpeta ZIP',
      'Los registros que pide IFTA: fechas de inicio y fin del viaje, millas vacías, carreteras y odómetro al entrar a cada estado, y recibos de combustible con fecha, tipo de combustible y factura',
      'Las paradas de combustible llenan los galones por estado con sus recibos (sin el combustible del reefer); solo cuentan los camiones calificados para IFTA, con la calcomanía IFTA y el número de flota de cada camión',
      'Revisión de registros antes de declarar: viajes que pasan a otro trimestre, millas entre viajes que no están en ninguna hoja y combustible sin foto del recibo',
      'Aparece un aviso cuando las millas por estado difieren más de un 2 % de las millas del odómetro',
    ],
  },
  expenses: {
    title: 'Gastos con fotos de recibos',
    lead: 'Cada línea de gasto puede llevar la foto del recibo, y la foto se comprime en el teléfono para que suba rápido.',
    points: ['Efectivo, Com Check, tarjeta de combustible o tarjeta de la empresa', 'Paradas de combustible con la foto del recibo, y reparaciones en ruta con el taller, el mecánico, la lista de piezas, la mano de obra, el número de factura y fotos', 'Reportes de gastos y reparaciones por categoría, camión, taller, estado, chofer o mes', 'Costo por milla en cada viaje, con las reparaciones incluidas'],
  },
  settlements: {
    title: 'Liquidaciones semanales de choferes',
    lead: 'Convierte los viajes aprobados en un estado de pago semanal con unos pocos clics.',
    points: ['Pago por milla, por porcentaje o tarifa fija, o un pago que la oficina escribe en cada viaje', 'Viajes en equipo: cada chofer recibe su propio estado de pago con su propio pago, agrupado por viaje', 'Se descuentan los adelantos y los Com Checks; se reembolsan los gastos en efectivo y las reparaciones que pagó el chofer', 'Estado de pago en PDF que el chofer puede ver en su teléfono'],
  },
  dispatch: {
    title: 'Despacho en vivo y rastreo de camiones',
    lead: 'Tus hojas de viaje son tu tablero de despacho: ve dónde está cada camión y en qué viaje va.',
    points: [
      'Mapa en vivo de cada camión: en movimiento, detenido o sin señal, con la ruta del viaje en curso',
      'Rastreado por el teléfono del chofer: la app envía la ubicación del camión durante el viaje, y los choferes con sesión abierta en el sitio web también la comparten, con su permiso',
      'Nada que configurar al agregar un camión: el teléfono del chofer es el rastreador, y las ubicaciones guardadas con poca señal se envían cuando vuelve',
      'Opcional: un dispositivo GPS aparte o la app gratuita Traccar Client en un camión, con varios dispositivos por camión y uno en uso',
      'Mapas gratuitos de OpenStreetMap, sin costos extra de mapas',
    ],
  },
  compliance: {
    title: 'Cumplimiento: expedientes de choferes y trámites de la empresa',
    lead: 'Sabe qué vence antes de que sea tarde: para cada chofer y para la empresa.',
    points: [
      'Expedientes de calificación del chofer (DQF): CDL, tarjeta médica, MVR, prueba de manejo, pruebas de drogas y más, con un estado claro de "apto para manejar"',
      'Recordatorios 90, 60 y 30 días antes de que venza un documento del chofer, y un PDF / ZIP de todo el expediente para una auditoría',
      'Solicitud de empleo en línea: envía un enlace, el chofer llena la solicitud DOT en el teléfono y la firma; al aprobarla se crean el chofer y su expediente',
      'Calendario de trámites de la empresa: MCS-150 (según tu número USDOT), UCR, declaraciones IFTA, HVUT 2290, IRP, BOC-3 y más, con recordatorios 30 y 7 días antes',
    ],
  },
  fleet: {
    title: 'Flota, mantenimiento y documentos',
    lead: 'Ten camiones, remolques, choferes y personal en un solo lugar.',
    points: ['Programas de servicio por millas o días (cambio de aceite, servicio PM, inspección DOT, llantas) con alertas de "vence pronto"', 'Historial de servicio: visitas al taller y reparaciones en ruta de las hojas de viaje en un solo lugar', 'Documentos del camión (registro, seguro, inspección DOT, tarjeta IRP) con archivos y alertas de vencimiento', 'Historial del odómetro por camión y libreta de direcciones de remitentes y destinatarios'],
  },
  documents: {
    title: 'Documentos y contactos de la empresa',
    lead: 'Los papeles y los teléfonos de la empresa, siempre a la mano.',
    points: ['Guarda pólizas de seguro, permisos, contratos y papeles del banco y de impuestos, con varios archivos cada uno', 'Categoría y fecha de vencimiento opcionales, con un recordatorio 30 y 7 días antes', 'Descarga cualquier archivo cuando quieras', 'Contactos: brokers, mecánicos, grúas y más. Los choferes pueden verlos y llamar con un toque'],
  },
  dashboard: {
    title: 'Panel del dueño y reportes',
    lead: 'Conoce tus números todos los días, no solo al final del mes.',
    points: ['Ingresos, gastos, pago de choferes y ganancia neta', 'Millas por estado, MPG y tendencias del costo por milla', 'Reportes de resumen de viajes, ganancia, pago de choferes, reparaciones y rendimiento', 'Cada reporte cubre hasta un año a la vez, y puedes abrir cualquier año anterior', 'Exporta cualquier lista o reporte a Excel, Word, CSV o PDF', 'Un solo buscador para viajes, camiones, choferes, documentos, contactos y ajustes'],
  },
  team: {
    title: 'Tu equipo, tus reglas',
    lead: 'El dueño decide quién puede hacer qué.',
    points: ['Roles para despachadores, contadores y gerentes', 'Los choferes pueden llenar sus propias hojas, pero solo si tú lo permites', 'Permisos extra para una persona sin cambiar su rol', 'Nadie ve ni administra a personas con más acceso que el suyo'],
  },
  mobile: {
    title: 'Hecha para el teléfono',
    lead: 'La mayor parte del trabajo ocurre en la carretera, por eso la app está pensada primero para teléfonos.',
    points: ['Se instala como una app (PWA) en Android y iPhone, con notificaciones push', 'Seis pasos cortos con botones grandes; buscadores para remitentes, ciudades y paradas de combustible en vez de listas largas', 'Un botón + para empezar un viaje, agregar un camión, un documento, un contacto y más', 'Los borradores se guardan en el teléfono y se sincronizan cuando vuelve la señal', '¿Sin internet? La app te avisa, abre los ajustes de Wi-Fi / datos móviles del teléfono y sigue cuando vuelve, sin perder nada de lo escrito', 'Un recorrido guiado corto la primera vez que abres cada página principal'],
  },
};

export const contentEs: Copy = {
  features: features.map((f, i) => ({ ...f, title: featuresEs[i][0], text: featuresEs[i][1] })),
  detailedFeatures: detailedFeatures.map((f) => ({ ...f, ...detailedEs[f.id] })),
  steps: [
    { title: 'Crea tu empresa', text: 'Regístrate gratis y agrega tu logo, dirección y teléfonos. Se imprimen en cada hoja de viaje.' },
    { title: 'Agrega camiones y choferes', text: 'Agrega tu flota, invita a choferes y personal, y elige quién puede llenar hojas de viaje.' },
    { title: 'Olvídate del papel', text: 'Los choferes llenan la hoja en el teléfono y la envían. Tú apruebas, pagas y ves los reportes.' },
  ],
  faqs: [
    { q: '¿Cómo funciona la prueba gratis de 14 días?', a: 'Regístrate y usa todas las funciones del plan Professional durante 14 días. Te lo recordamos los días 7, 3 y 1. Cuando termina la prueba, tus datos quedan seguros en modo de solo lectura hasta que elijas un plan.' },
    { q: '¿Necesito una tarjeta de crédito para empezar?', a: 'No. Solo necesitas el nombre de tu empresa, tu correo y tu teléfono. Sin tarjeta y sin compromiso.' },
    { q: '¿Cómo pago un plan?', a: 'Elige un plan en Facturación (Billing) y paga por transferencia bancaria (los datos de la cuenta se muestran con botones para copiar) o en efectivo. Sube tu comprobante y activamos tu plan cuando se verifique, normalmente en menos de 24 horas.' },
    { q: '¿Mis datos están seguros?', a: 'Los datos de cada empresa se guardan completamente separados. Todo el tráfico va cifrado, se hacen copias de seguridad diarias y puedes exportar todo a Excel en cualquier momento.' },
    { q: '¿Los choferes pueden usarla en su teléfono?', a: 'Sí, está pensada primero para teléfonos. Los choferes tocan "Agregar a pantalla de inicio" y se abre como una app. Las hojas de viaje se guardan en el teléfono, incluso con poca señal. Tú decides qué choferes pueden llenar hojas.' },
    { q: '¿Funciona como nuestra hoja de viaje en papel?', a: 'Sí. La hoja digital tiene las mismas secciones en el mismo orden: chofer y camión, remitente y destinatario, galones y millas por estado, gastos y odómetro, con los campos obligatorios marcados con un * rojo. Las reparaciones y paradas de combustible en ruta son secciones opcionales, y la firma del chofer se puede activar para tu empresa. La versión impresa se ve como tu hoja de papel, con tu logo, tu dirección y todas las líneas de gastos.' },
    { q: '¿El reporte de millas por estado es una declaración oficial de IFTA?', a: 'No. Te da las millas, los galones y el impuesto estimado por estado de cualquier trimestre, con el formato de la declaración IFTA, y puedes exportarlo con cada recibo de combustible (un PDF o un ZIP) para preparar tu declaración o responder a una auditoría. Revisa las reglas oficiales de tu jurisdicción base.' },
    { q: 'Hacemos los mismos viajes cada semana. ¿Los choferes tienen que escribir todo otra vez?', a: 'No. Duplica un viaje, o guárdalo como plantilla y empieza la siguiente hoja desde ella: chofer, camión, ruta, remitentes, destinatarios y estados ya llenos, y las millas iniciales siguen desde el último viaje. En una ruta ya recorrida, un toque llena los estados y las millas de la última vez. El chofer solo escribe los números de este viaje.' },
    { q: '¿Puedo ver dónde están mis camiones?', a: 'Sí. Despacho en vivo muestra cada camión en un mapa. El teléfono del chofer envía la ubicación durante el viaje: la app, o el sitio web mientras el chofer tiene la sesión abierta. También puedes poner un dispositivo GPS o la app gratuita Traccar Client en un camión. Sin costos extra de mapas: los mapas son de OpenStreetMap.' },
    { q: '¿Hasta qué fecha atrás puedo ver reportes?', a: 'Hasta donde tengas datos. Cada reporte cubre hasta un año a la vez (por ejemplo un trimestre, un año o cualquier rango dentro de 12 meses), y puedes abrir cualquier año anterior de la misma forma.' },
    { q: '¿Ayuda con el cumplimiento del DOT?', a: 'Sí. Los expedientes de calificación del chofer guardan la CDL, la tarjeta médica, el MVR, las pruebas de drogas y más de cada chofer, con recordatorios antes de que venzan, y el calendario de trámites te recuerda el MCS-150, UCR, declaraciones IFTA, HVUT 2290, IRP y más. Los choferes nuevos pueden llenar la solicitud DOT en línea.' },
    { q: '¿Puedo tener un plan con más camiones o solo algunos módulos?', a: 'Sí. Contáctanos y creamos un plan a la medida de tu empresa, con los límites y módulos que necesitas.' },
    { q: '¿La app está en español?', a: 'Por ahora la app (el panel del dueño y la app de choferes) está en inglés, con pantallas sencillas, botones grandes y pasos guiados. Este sitio web está en español.' },
  ],
  whatsappQuestions: [
    '¿Cómo funciona la prueba gratis de 14 días?',
    '¿Qué plan es el mejor para mi flota?',
    '¿Mis choferes pueden llenar hojas de viaje en su teléfono?',
    '¿Me ayudan con las millas por estado para IFTA?',
    '¿Cómo pago un plan?',
    'Quiero reservar una demostración.',
  ],
};

/** the site copy in the page language */
export const contentFor = (lang: Lang): Copy =>
  lang === 'es' ? contentEs : { features, detailedFeatures, steps, faqs, whatsappQuestions };
