<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/c4c3e7346_4.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    
    <!-- Primary Meta Tags -->
    <title>Food Cost Calculator - Free Restaurant Costing Tool | MenuOptimizer</title>
    <meta name="title" content="Food Cost Calculator - Free Restaurant Costing Tool | MenuOptimizer" />
    <meta name="description" content="Free food cost calculator for restaurants. Calculate recipe costs, track ingredient prices, and optimize food costs with AI-powered analysis. Start free today." />
    <meta name="keywords" content="food cost calculator, restaurant food cost calculator, recipe cost calculator, ingredient cost tracker, AI food cost analysis, food cost percentage calculator, restaurant costing tool, food cost optimization, ingredient price tracking, food cost management" />
    <meta name="author" content="BarGlance" />
    <meta name="robots" content="index, follow" />
    <link rel="canonical" href="https://app.barglance.com/" />
    
    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://app.barglance.com/" />
    <meta property="og:title" content="Food Cost Calculator - Free Restaurant Costing Tool | MenuOptimizer" />
    <meta property="og:description" content="Free food cost calculator for restaurants. Calculate recipe costs, track ingredient prices, and optimize food costs with AI-powered analysis. Start free today." />
    <meta property="og:image" content="https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/c4c3e7346_4.png" />
    
    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image" />
    <meta property="twitter:url" content="https://app.barglance.com/" />
    <meta property="twitter:title" content="Food Cost Calculator - Free Restaurant Costing Tool | MenuOptimizer" />
    <meta property="twitter:description" content="Free food cost calculator for restaurants. Calculate recipe costs, track ingredient prices, and optimize food costs with AI-powered analysis. Start free today." />
    <meta property="twitter:image" content="https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/c4c3e7346_4.png" />
    
    <!-- Schema.org structured data -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "SoftwareApplication",
      "name": "MenuOptimizer",
      "description": "AI-powered food cost calculator and restaurant costing tool for recipe analysis and ingredient tracking",
      "url": "https://app.barglance.com",
      "applicationCategory": "BusinessApplication",
      "operatingSystem": "Web Browser",
      "offers": {
        "@type": "Offer",
        "price": "0",
        "priceCurrency": "USD",
        "availability": "https://schema.org/InStock"
      },
      "provider": {
        "@type": "Organization",
        "name": "BarGlance"
      },
      "featureList": [
        "Food cost calculator",
        "Recipe cost analysis",
        "Ingredient cost tracking",
        "AI-powered food cost optimization",
        "Invoice scanning and processing",
        "Real-time cost management"
      ]
    }
    </script>
    
    <!-- Google Ads Global Site Tag (gtag.js) - Optimized for SPA -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=AW-577360671"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      
      // Set default consent state (Consent Mode v2)
      gtag('consent', 'default', {
        'ad_user_data': 'denied',
        'ad_personalization': 'denied',
        'analytics_storage': 'denied',
        'ad_storage': 'denied'
      });
      
      gtag('js', new Date());
      
      // Single global configuration - ONLY place config is called
      gtag('config', 'AW-577360671', {
        send_page_view: false, // Manual SPA pageviews only
        allow_enhanced_conversions: true,
        custom_map: {
          'custom_parameter_1': 'user_plan'
        }
      });
      
      // Temporary consent grant for development - replace with real consent banner
      gtag('consent', 'update', {
        'ad_user_data': 'granted',
        'ad_personalization': 'granted', 
        'analytics_storage': 'granted',
        'ad_storage': 'granted'
      });
      
      // Mark as initialized for utilities
      window.gtag_initialized = true;
    </script>
    
    <!-- Performance hints -->
    <link rel="preconnect" href="https://www.gstatic.com" crossorigin>
    <link rel="preconnect" href="https://firebasestorage.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://firebase.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://www.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://js.stripe.com" crossorigin>
    <link rel="preconnect" href="https://m.stripe.network" crossorigin>
    <script type="module" crossorigin src="/assets/index-CB4OrdDl.js"></script>
    <link rel="modulepreload" crossorigin href="/assets/firebase-BGYd5frV.js">
    <link rel="stylesheet" crossorigin href="/assets/index-DTiiW5CZ.css">
  </head>
  <body>
    <div id="root"></div>
  </body>
</html>
