<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">

  <!--
    Apex Fitness — STATIC main sitemap
    Last regenerated: 2026-06-24
    Maintainer: /app/frontend/public/sitemap-main.xml

    GUIDING PRINCIPLE: only canonical, indexable, hand-curated surfaces appear
    here. Dynamic content (Apex Insights articles) lives in the sibling
    sitemap `/api/sitemaps/insights.xml` and is referenced from the sitemap
    index at `/sitemap.xml`.
  -->

  <!-- ════════════════════════════════════════════════════════════════
       PRIMARY MARKETING SURFACES (highest priority)
       ════════════════════════════════════════════════════════════════ -->

  <!-- Homepage / canonical landing.
       NOTE: while gate is on, anonymous visitors here see the ComingSoon
       marketing page (rich H1/H2/FAQ/feature-grid/CTA). Once gate flips off
       on launch, the same URL serves the logged-out dashboard. Bots always
       see the marketing version. -->
  <url>
    <loc>https://apexfitness.ai/</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <image:image>
      <image:loc>https://apexfitness.ai/og-image.png</image:loc>
      <image:title>Apex Fitness — AI Workout Plan, Macro Tracker, Recovery Score</image:title>
      <image:caption>The AI workout that finally pushes back. Personalized splits, macro-precise meal plans, recovery score.</image:caption>
    </image:image>
  </url>

  <!-- Subscription / pricing page (high-intent conversion target) -->
  <url>
    <loc>https://apexfitness.ai/subscription</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>

  <!-- FAQ — Google FAQ rich-result eligible. JSON-LD on the page. -->
  <url>
    <loc>https://apexfitness.ai/faq</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ════════════════════════════════════════════════════════════════
       CONTENT / SEO SURFACES (OverRank-powered blog)
       ════════════════════════════════════════════════════════════════ -->

  <!-- Insights INDEX page. The individual article URLs (?post=<slug>) are
       enumerated dynamically by /api/sitemaps/insights.xml — referenced
       from the sitemap index. This entry alone helps Google discover the
       hub without re-listing every slug here. -->
  <url>
    <loc>https://apexfitness.ai/insights</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ════════════════════════════════════════════════════════════════
       LEGAL / TRUST SURFACES (required by App Store + Play Console)
       ════════════════════════════════════════════════════════════════ -->

  <url>
    <loc>https://apexfitness.ai/privacy</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <url>
    <loc>https://apexfitness.ai/terms</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <url>
    <loc>https://apexfitness.ai/data-policy</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

  <url>
    <loc>https://apexfitness.ai/disclaimer</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

  <!-- Account deletion — App Store requires this URL be reachable from the
       app metadata. Indexable so Google can verify the link works. -->
  <url>
    <loc>https://apexfitness.ai/delete-account</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>

  <url>
    <loc>https://apexfitness.ai/delete-data</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>

  <!-- ════════════════════════════════════════════════════════════════
       APP STORE DEEP-LINK / UNIVERSAL-LINK SURFACES
       ════════════════════════════════════════════════════════════════ -->

  <!-- iOS Universal Link domain marker — Google indexes this surface and
       serves it in app-install carousels when users search "apex fitness ios". -->
  <url>
    <loc>https://apexfitness.ai/ios</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.55</priority>
  </url>

  <!-- Android App Links domain marker — same role for Play Store install
       carousels. -->
  <url>
    <loc>https://apexfitness.ai/android</loc>
    <lastmod>2026-06-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.55</priority>
  </url>

</urlset>
