<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
    <title>Activ OS</title>

    <!-- PWA meta tags -->
    <meta name="theme-color" content="#1B2A4A" />
    <meta name="description" content="Sales platform and pricing calculator for Activ Energy Chemicals" />

    <!-- iOS PWA support -->
    <link rel="apple-touch-icon" href="/pwa-icons/apple-touch-icon-180x180.png" />
    <meta name="mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="Activ OS" />
    <script type="module" crossorigin src="/assets/index-sblZ1Osk.js"></script>
    <link rel="stylesheet" crossorigin href="/assets/index-CyMwz4-0.css">
  <link rel="manifest" href="/manifest.webmanifest"></head>
  <body>
    <div id="root"></div>
    <script>
      // Recovery: if the entry-point module fails to load (stale HTML referencing
      // old chunk hashes after a deployment), reload the page once to fetch fresh
      // HTML. Uses sessionStorage to prevent infinite reload loops.
      window.addEventListener('error', function(e) {
        if (e.target && e.target.tagName === 'SCRIPT' && e.target.type === 'module') {
          var key = 'entry_chunk_reload';
          if (!sessionStorage.getItem(key)) {
            sessionStorage.setItem(key, '1');
            window.location.reload();
          } else {
            sessionStorage.removeItem(key);
          }
        }
      }, true);
    </script>
  </body>
</html>
