/* Paragmatiq stub, for routes not yet re-skinned. */

const STUB_META = {
  '/products':                              { eyebrow: 'PRODUCTS',                                      title: 'Four modules. One platform.',                                              body: 'A short hub introducing the portfolio. The four product pages, Voice, Safe, Ops, Signal, are linked from the global navigation and the homepage.', kind: 'quadrant' },
  '/products/voice':                        { eyebrow: 'PARAGMATIQ VOICE, THE FOUNDATION MODULE',         title: 'Your radios become structured data.',                                       body: 'Captures every PTT and PMR transmission across every channel, transcribes it in the language being spoken, threads fragmented messages, and recognises the operators, equipment, and procedures referred to.', kind: 'control-room' },
  '/products/safe':                         { eyebrow: 'PARAGMATIQ SAFE, SAFETY INTELLIGENCE',            title: 'Every conversation, watched for the things that put your people at risk.', body: 'Listens to every radio transmission and flags the safety events that matter, permit breaches, confined-space risks, hot-work conflicts, gas mentions, near-misses, incidents in progress.', kind: 'refinery' },
  '/products/ops':                          { eyebrow: 'PARAGMATIQ OPS, OPERATIONAL INTELLIGENCE',        title: 'The right communications, in the right order, at the right time.',          body: 'Verifies operator rounds, startup and shutdown procedures, equipment handovers, and shift transitions. When they slip, you know within minutes.', kind: 'procedure' },
  '/products/signal':                       { eyebrow: 'PARAGMATIQ SIGNAL, CUSTOM INTELLIGENCE',          title: 'You define what matters. Paragmatiq finds it.',                                body: 'Define any concept your operation cares about in plain language. Evaluate it against historical conversations. Put it into continuous monitoring.', kind: 'concept-flow' },

  '/solutions':                             { eyebrow: 'SOLUTIONS',                                     title: 'Solutions for the problems your operation actually has.',                  body: 'Paragmatiq\u2019s modules combine to solve specific operational and safety problems. Each solution names the problem in your language, the outcome you\u2019ll get, and the modules that power it.', kind: 'site-map' },
  '/solutions/permit-to-work':              { eyebrow: 'SOLUTION',                                       title: 'Permit-to-work, verified in conversation.',                                 body: 'Every permit and confined-space entry generates a sequence of radio communications. We watch all of them, confirm the right communications happened, and flag the moment they didn\u2019t.', kind: 'permit-board' },
  '/solutions/procedural-compliance':       { eyebrow: 'SOLUTION',                                       title: 'The right words, in the right order, every time.',                          body: 'Operator rounds, startup/shutdown, switching, emergency drills. We verify them in real time, and tell you within minutes when they don\u2019t happen.', kind: 'procedure' },
  '/solutions/shift-handover':              { eyebrow: 'SOLUTION',                                       title: 'Nothing falls between shifts.',                                             body: 'A structured handover summary at the end of every shift, open permits, in-progress work, unresolved incidents, verified by the incoming crew.', kind: 'shift-board' },
  '/solutions/alarm-response':              { eyebrow: 'SOLUTION',                                       title: 'Every alarm acknowledged. Every response timed.',                           body: 'From the moment an alarm sounds to the moment it\u2019s resolved, captured, timed, defensible.', kind: 'alarm-timeline' },
  '/solutions/incident-detection':          { eyebrow: 'SOLUTION',                                       title: 'Every incident, reconstructed end to end.',                                 body: 'Detected from the language of radio traffic. Linked across channels and crews. Exportable as evidence-grade record.', kind: 'evidence' },
  '/solutions/custom-detection':            { eyebrow: 'SOLUTION',                                       title: 'Watch for the events your operation has decided matter.',                   body: 'Anything your team manually reviews today, defined once, watched continuously.', kind: 'concept-flow' },
  '/solutions/multilingual-operations':     { eyebrow: 'SOLUTION',                                       title: 'One operational record. Every language your crews speak.',                  body: 'English, Arabic, Spanish, French, Dutch, German, one platform, one record.', kind: 'waveform' },

  '/industries':                            { eyebrow: 'INDUSTRIES',                                     title: 'Built for environments where radio is the backbone of operations.',         body: 'Paragmatiq runs in industries where field teams coordinate by voice and the cost of missed communication is operational.', kind: 'site-map' },
  '/industries/energy':                     { eyebrow: 'INDUSTRY · ENERGY & UTILITIES',                  title: 'Voice intelligence built for the way energy operations actually run.',      body: 'Refineries, upstream, downstream, power generation, transmission. Where permits, hot work, and procedural radio communications are the difference between an uneventful shift and a regulator visit.', kind: 'refinery' },
  '/industries/aviation':                   { eyebrow: 'INDUSTRY · AVIATION',                            title: 'Ramp, MRO, ground handling, coordinated by voice, verified by Paragmatiq.',   body: 'Aviation ground operations involve multilingual crews, multiple agencies on the same apron, and tight timing windows where missed communication directly affects on-time performance and safety.', kind: 'aircraft-ramp' },
  '/industries/construction':               { eyebrow: 'INDUSTRY · CONSTRUCTION & HEAVY INDUSTRY',       title: 'For multi-site, multilingual, multi-crew operations.',                       body: 'Construction is the industry most exposed to voice-based coordination, and the least likely to have a structured record of what was said.', kind: 'site-map' },
  '/industries/emergency-services':         { eyebrow: 'INDUSTRY · EMERGENCY SERVICES',                  title: 'Multi-agency communications, structured.',                                   body: 'Fire, EMS, dispatch, police coordination, and emergency operations centres run on radio. Paragmatiq structures every transmission.', kind: 'dispatch-console' },
  '/industries/mining':                     { eyebrow: 'INDUSTRY · MINING',                              title: 'Surface and underground operations, structured.',                            body: 'Underground mining is among the most radio-dependent industrial environments in the world. Paragmatiq is designed for that reality.', kind: 'mine-tunnel' },
  '/industries/defense':                    { eyebrow: 'INDUSTRY · DEFENSE',                             title: 'Multi-agency operations, training facilities, base security.',                body: 'Defense communications are radio-heavy, multilingual, and operationally sensitive. Built for on-premise deployment with no external AI providers.', kind: 'topology' },
  '/industries/logistics':                  { eyebrow: 'INDUSTRY · LOGISTICS & PORTS',                   title: 'Terminal control, cargo handling, ramp operations.',                          body: 'Container terminals, ports, and large logistics yards run on radio coordination between yard control, equipment operators, and external carriers.', kind: 'site-map' },

  '/platform':                              { eyebrow: 'PLATFORM',                                       title: 'The platform underneath every Paragmatiq module.',                              body: 'Paragmatiq is built on a single platform layer that every product module inherits. Six languages. Local infrastructure. Per-company vocabulary. Evidence-backed decisions.', kind: 'stack' },
  '/platform/understanding':                { eyebrow: 'THE INTELLIGENCE LAYER',                         title: 'How Paragmatiq Understands.',                                                   body: 'Most voice-AI products fail in the field for the same reasons: accents, jargon, equipment names the system has never heard, multilingual crews, noisy channels. Paragmatiq Understanding is built for this environment.', kind: 'stack' },
  '/platform/data-sovereignty':             { eyebrow: 'YOUR INFRASTRUCTURE',                            title: 'Your data stays where your operation is.',                                   body: 'Engineered for sovereign deployment from the ground up. Every model runs on your infrastructure. No external AI providers. No third-party data egress.', kind: 'appliance' },
  '/platform/security':                     { eyebrow: 'PLATFORM · SECURITY & COMPLIANCE',               title: 'Engineered for regulated environments.',                                     body: 'Role-based access, audit logging, per-domain segregation, identity-provider integration. Built for operations where compliance posture is not optional.', kind: 'topology' },
  '/platform/multi-site':                   { eyebrow: 'PLATFORM · MULTI-SITE & MULTI-CHANNEL',          title: 'One platform. Every site. Every channel.',                                    body: 'Per-site deployment with central management. Per-channel configuration. Cross-site reporting and pattern analysis.', kind: 'topology' },
  '/platform/integrations':                 { eyebrow: 'PLATFORM · INTEGRATIONS',                        title: 'Connects to the radio, identity, and operational systems you already run.', body: 'PTT/PMR networks, identity providers, reporting and warehousing, operational messaging. No rip-and-replace.', kind: 'topology' },

  '/about':                                 { eyebrow: 'ABOUT PARAGMATIQ',                               title: 'Paragmatiq Systems builds industrial voice intelligence for operators worldwide.',         body: 'Paragmatiq Systems builds and deploys industrial voice intelligence for operators worldwide. Aligned to operator requirements, with sovereign deployment on infrastructure you control.', kind: 'generic' },
  '/contact':                               { eyebrow: 'CONTACT',                                        title: 'Talk to the team.',                                                          body: 'Pilots, procurement questions, partnership conversations, reference calls. Tell us what you need and we\u2019ll route it to the right person.', kind: 'generic' },
  '/demo':                                  { eyebrow: 'REQUEST A PILOT',                                title: 'Bring Paragmatiq to one site.',                                                 body: 'A scoped, time-boxed deployment on one of your sites, typically 60 to 90 days, with explicit success criteria agreed up front.', kind: 'generic' },

  '/legal/privacy':                         { eyebrow: 'LEGAL · PRIVACY',                                title: 'Privacy.',                                                                   body: 'How Paragmatiq Systems Ltd handles personal data. Full policy issued at the time of pilot agreement.', kind: 'generic' },
  '/legal/terms':                           { eyebrow: 'LEGAL · TERMS',                                  title: 'Terms.',                                                                     body: 'Terms of service issued by Paragmatiq Systems Ltd. Governed by the laws of Delaware.', kind: 'generic' },
  '/legal/cookies':                         { eyebrow: 'LEGAL · COOKIES',                                title: 'Cookies.',                                                                   body: 'How paragmatiq.com handles cookies. Strictly-necessary only. No third-party trackers. No retargeting.', kind: 'generic' },
};

function StubPage({ path }) {
  useReveal();
  const meta = STUB_META[path] || { eyebrow: 'PAGE', title: path, body: 'This route is part of the v1 sitemap and will be re-skinned next.', kind: 'generic' };
  return (
    <>
      <section className="on-navy hero-page">
        <div className="container">
          <div className="eyebrow on-dark"><span>{meta.eyebrow}</span></div>
          <h1>{meta.title}</h1>
          <p className="subhead">{meta.body}</p>

          <div className="hero-meta">
            <div className="hero-meta-cell"><span className="label">PATH</span><span className="value">{path}</span></div>
            <div className="hero-meta-cell"><span className="label">STATUS</span><span className="value gold">FOUNDATION RENDERED</span></div>
            <div className="hero-meta-cell"><span className="label">SITE</span><span className="value">paragmatiq.com</span></div>
            <div className="hero-meta-cell"><span className="label">NEXT</span><span className="value">Detail re-skin</span></div>
          </div>

          <div style={{ marginTop: 64, paddingBottom: 64 }}>
            <Plate kind={meta.kind || 'generic'} tag={meta.eyebrow} corner={['DWG-A-100', 'PMQ']} ratio="21/9" />
          </div>
        </div>
      </section>

      <ClosingCTA
        headline="Bring Paragmatiq to your operation."
        subhead="The fastest path through this site is a 30-minute call. We'll show you what Paragmatiq looks like in your environment, in your languages, on your radios."
        primary={{ label: 'Request a Pilot', to: '/demo' }}
        secondary={{ label: 'Talk to the team', to: '/contact' }}
      />
    </>
  );
}

Object.assign(window, { StubPage });
