<!doctype html>
<html lang="en" data-theme="light">
  <head>
    <script>
    // Apply the persisted Kapsule theme (light default) before first paint so
    // there's no flash of the wrong palette. Tokens live in src/index.css.
    (function(){
      try{
        var raw=localStorage.getItem('theme-storage');
        var t=raw?(JSON.parse(raw).state||{}).theme:null;
        document.documentElement.setAttribute('data-theme', t==='dark'?'dark':'light');
      }catch(e){document.documentElement.setAttribute('data-theme','light');}
    })();
    // Capture Meta fbclid before React loads so it survives redirects. The
    // Meta Pixel and Google gtag scripts themselves are loaded dynamically by
    // src/components/ThirdPartyAnalytics.tsx so they never run on /investors/*.
    (function(){
      var p=new URLSearchParams(window.location.search),fc=p.get('fbclid');
      if(fc){try{localStorage.setItem('kapsule_fbclid',fc);
      localStorage.setItem('kapsule_fbclid_ts',String(Date.now()));}catch(e){}}
      // Capture ambassador referral code from /r/{code} before React loads so
      // it survives the Stripe checkout redirect during artist onboarding.
      var m=window.location.pathname.match(/^\/r\/([A-Za-z0-9]+)\/?$/);
      if(m&&m[1]){try{localStorage.setItem('kapsule_ref',m[1]);
      localStorage.setItem('kapsule_ref_ts',String(Date.now()));}catch(e){}
      try{document.cookie='kapsule_ref='+encodeURIComponent(m[1])+'; Max-Age='+(90*24*60*60)+'; Path=/; SameSite=Lax'+(window.location.protocol==='https:'?'; Secure':'');}catch(e){}}
    })();
    </script>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>Kapsule - Your gateway to undiscovered music</title>
    <meta name="description" content="Discover music in its purest form, where the only thing that matters is how it sounds." />
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="/images/favicon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
    <link rel="apple-touch-icon" href="/images/favicon.png">
    <link rel="manifest" href="/site.webmanifest">
    <meta name="theme-color" content="#FF383A">
    
    <!-- Performance optimizations -->
    <link rel="dns-prefetch" href="https://fihjahpokzdqomytswpy.supabase.co">
    <link rel="preconnect" href="https://fihjahpokzdqomytswpy.supabase.co">
    
    <!-- Disable iOS touch delay -->
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <script type="module" crossorigin src="/assets/index-amYdtbyH.js"></script>
    <link rel="modulepreload" crossorigin href="/assets/react-vendor-DbLh4lJm.js">
    <link rel="modulepreload" crossorigin href="/assets/ui-vendor-D7WwCSDK.js">
    <link rel="modulepreload" crossorigin href="/assets/data-vendor-CsLZHuCe.js">
    <link rel="stylesheet" crossorigin href="/assets/index-BcgWfmaE.css">
  </head>
  <body class="bg-background text-foreground overscroll-none">
    <div id="root"></div>
  </body>
</html>
