<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <!-- Primary Meta -->
  <title><%= typeof title !== 'undefined' ? title : 'PinInspect — Pinterest SEO & Keyword Research Tool' %></title>
  <meta name="description" content="<%= typeof meta_desc !== 'undefined' ? meta_desc : 'Find trending Pinterest keywords, analyze pins and boards, spy on competitors, and generate viral Pinterest content with AI.' %>">
  <meta name="keywords" content="pinterest seo, pinterest keyword research, pinterest analytics, pinterest pin analyzer, pinterest marketing tool">
  <meta name="robots" content="index, follow">
  <link rel="canonical" href="<%= process.env.APP_URL %><%= typeof locals.path !== 'undefined' ? path : '' %>">

  <!-- Open Graph -->
  <meta property="og:type" content="website">
  <meta property="og:site_name" content="PinInspect">
  <meta property="og:title" content="<%= typeof title !== 'undefined' ? title : 'PinInspect' %>">
  <meta property="og:description" content="<%= typeof meta_desc !== 'undefined' ? meta_desc : 'Advanced Pinterest SEO platform' %>">
  <meta property="og:image" content="<%= process.env.APP_URL %>/images/og-image.png">
  <meta property="og:url" content="<%= process.env.APP_URL %>">

  <!-- Twitter Card -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:site" content="@pininspect">
  <meta name="twitter:title" content="<%= typeof title !== 'undefined' ? title : 'PinInspect' %>">
  <meta name="twitter:description" content="<%= typeof meta_desc !== 'undefined' ? meta_desc : 'Advanced Pinterest SEO platform' %>">
  <meta name="twitter:image" content="<%= process.env.APP_URL %>/images/og-image.png">

  <!-- Favicon -->
  <link rel="icon" type="image/svg+xml" href="/images/favicon.svg">
  <link rel="apple-touch-icon" href="/images/apple-touch-icon.png">

  <!-- Fonts -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">

  <!-- Tailwind CSS -->
  <script src="https://cdn.tailwindcss.com"></script>
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            brand: { DEFAULT: '#e60023', dark: '#ad081b', light: '#ff4060' },
            surface: { DEFAULT: '#1a1a1a', dark: '#111111', light: '#242424' },
          },
          fontFamily: {
            display: ['Syne', 'sans-serif'],
            body: ['Inter', 'sans-serif'],
          },
        }
      }
    }
  </script>

  <!-- Custom CSS -->
  <link rel="stylesheet" href="/css/app.css">

  <!-- JSON-LD Schema -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Organization",
        "@id": "<%= process.env.APP_URL %>/#organization",
        "name": "PinInspect",
        "url": "<%= process.env.APP_URL %>",
        "logo": "<%= process.env.APP_URL %>/images/logo.svg",
        "sameAs": ["https://pinterest.com/pininspect", "https://twitter.com/pininspect"]
      },
      {
        "@type": "WebApplication",
        "name": "PinInspect",
        "url": "<%= process.env.APP_URL %>",
        "applicationCategory": "BusinessApplication",
        "operatingSystem": "Web Browser",
        "offers": {
          "@type": "Offer",
          "price": "0",
          "priceCurrency": "USD",
          "description": "Free Pinterest SEO and keyword research platform"
        },
        "featureList": "Pinterest keyword research, pin analysis, board analysis, competitor analysis, AI pin generation"
      }
    ]
  }
  </script>
</head>
<body class="bg-[#0f0f0f] text-white font-body antialiased">
  <%- body %>

  <!-- Main JS -->
  <script src="/js/app.js"></script>
</body>
</html>
