<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <!-- Empty placeholder — useDynamicFavicon sets the real favicon once
         Firestore confirms whether a custom one exists, then falls back to the
         static asset. This prevents the static favicon from flashing before
         the Firestore config is known. -->
    <link
      rel="icon"
      href="data:,"
    />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0"
    />
    <title>Private Pay</title>

    <!-- Pre-establish connections to external origins used at runtime so
         TCP+TLS handshakes are already done when JS requests them. -->
    <link
      rel="preconnect"
      href="https://fonts.googleapis.com"
    />
    <link
      rel="preconnect"
      href="https://fonts.gstatic.com"
      crossorigin
    />
    <link
      rel="preconnect"
      href="https://firestore.googleapis.com"
    />
    <link
      rel="preconnect"
      href="https://identitytoolkit.googleapis.com"
    />
    <link
      rel="preconnect"
      href="https://securetoken.googleapis.com"
    />

    <!-- Load Inter directly from the HTML <head> so the browser fetches it at
         parse time rather than after JS executes (eliminates the webfontloader
         JS waterfall — saves one full JS-execution round-trip). -->
    <link
      rel="stylesheet"
      href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap"
    />

    <link
      rel="stylesheet"
      type="text/css"
      href="/loader.css"
    />
    <script type="module" crossorigin src="/assets/index-BRUTzdDQ.js"></script>
    <link rel="modulepreload" crossorigin href="/assets/vendor-charts-iJ4kApR5.js">
    <link rel="modulepreload" crossorigin href="/assets/vendor-firebase-DT3OEbXI.js">
    <link rel="modulepreload" crossorigin href="/assets/vendor-vuetify-x_YLMOwq.js">
    <link rel="modulepreload" crossorigin href="/assets/vendor-sentry-BO3lYImd.js">
    <link rel="modulepreload" crossorigin href="/assets/vendor-search-BCMgUbl2.js">
    <link rel="stylesheet" crossorigin href="/assets/vendor-vuetify-YrlzWiUt.css">
    <link rel="stylesheet" crossorigin href="/assets/index-DmuBBK_4.css">
  </head>

  <body>
    <div id="app">
      <div class="loading-logo">
        <div class="loading">
          <div class="effect-1 effects"></div>
          <div class="effect-2 effects"></div>
          <div class="effect-3 effects"></div>
        </div>
      </div>
    </div>
    <script>
      // Restore theme colors for the CSS spinner before Vue initialises
      const appTitle = document.title
      const legacyPrefix = 'materio'
      const storedTheme =
        localStorage.getItem(`${appTitle}-theme`) || localStorage.getItem(`${legacyPrefix}-theme`) || 'system'
      const isDarkMode =
        storedTheme === 'dark' ||
        (storedTheme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)
      const loaderColor =
        localStorage.getItem(`${appTitle}-initial-loader-bg`) ||
        localStorage.getItem(`${legacyPrefix}-initial-loader-bg`) ||
        (isDarkMode ? '#181d26' : '#FFFFFF')
      const primaryColor =
        localStorage.getItem(`${appTitle}-initial-loader-color`) ||
        localStorage.getItem(`${legacyPrefix}-initial-loader-color`) ||
        (isDarkMode ? '#FFFFFF' : '#000000')

      if (loaderColor) {
        document.documentElement.style.setProperty('--initial-loader-bg', loaderColor)
      }

      if (primaryColor) {
        document.documentElement.style.setProperty('--initial-loader-color', primaryColor)
      }
    </script>
  </body>
</html>
