<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
    <title>Premium Coach Portal - Elite Golf Flow State Coaching | FlowCode Golf Academy</title>
    <meta name="description" content="Elite coaching resources and advanced flow state training for premium golf coaches with FlowCode Golf Academy.">
    <meta property="og:title" content="Premium Coach Portal - Elite Golf Flow State Coaching | FlowCode Golf Academy">
    <meta property="og:description" content="Elite coaching resources and advanced flow state training for premium golf coaches with FlowCode Golf Academy.">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="FlowCode Golf Academy">
    <meta name="theme-color" content="#059669">
    <meta name="google-site-verification" content="">
    <!-- Google tag (gtag.js) with Consent Mode v2 -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-45PG3D7JP2"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}

      // Consent Mode v2: default to denied until the visitor chooses.
      gtag('consent', 'default', {
        ad_storage: 'denied',
        ad_user_data: 'denied',
        ad_personalization: 'denied',
        analytics_storage: 'denied',
        wait_for_update: 500
      });
      // Apply a previously saved choice immediately.
      try {
        var fcConsent = localStorage.getItem('fc_cookie_consent');
        if (fcConsent === 'granted' || fcConsent === 'denied') {
          gtag('consent', 'update', {
            ad_storage: fcConsent,
            ad_user_data: fcConsent,
            ad_personalization: fcConsent,
            analytics_storage: fcConsent
          });
        }
      } catch (e) {}

      gtag('js', new Date());
      gtag('config', 'G-45PG3D7JP2');
      // Google Ads
      gtag('config', 'AW-18366514711');
      // Event snippet for Page view conversion page
      gtag('event', 'conversion', {'send_to': 'AW-18366514711/-_r2CMX1-docEJeM67VE'});
    </script>
    <!-- Meta Pixel with consent gating (default: revoked until visitor accepts) -->
    <script>
      !function(f,b,e,v,n,t,s)
      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
      n.queue=[];t=b.createElement(e);t.async=!0;
      t.src=v;s=b.getElementsByTagName(e)[0];
      s.parentNode.insertBefore(t,s)}(window, document,'script',
      'https://connect.facebook.net/en_US/fbevents.js');
      try {
        var fcMetaConsent = localStorage.getItem('fc_cookie_consent');
        fbq('consent', fcMetaConsent === 'granted' ? 'grant' : 'revoke');
      } catch (e) {
        fbq('consent', 'revoke');
      }
      fbq('init', '1387719589170179');
      fbq('track', 'PageView');
    </script>
    <!-- FlowCode Golf affiliate referral bridge -->
    <script>
    (function () {
      try {
        var ref = new URLSearchParams(location.search).get('ref');
        if (!ref || !/^[A-Za-z0-9-]{3,40}$/.test(ref)) return;   // keep code as-is (lowercase + hyphen allowed)
        // 1) Remember the code across both sites (shared parent-domain cookie)
        document.cookie = 'flowcode_ref=' + ref +
          '; Domain=.flowcode.golf; Path=/; Max-Age=2592000; Secure; SameSite=Lax';
        // 2) Count the click once per browser
        var k = 'flowcode_ref_clicked_' + ref;
        if (!localStorage.getItem(k)) {
          localStorage.setItem(k, '1');
          fetch('https://app.flowcode.golf/api/affiliate/click', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify({ code: ref })
          }).catch(function () {});
        }
        // 3) Stamp the code onto every link that sends people to signup/checkout in the app
        function tag() {
          document.querySelectorAll('a[href]').forEach(function (a) {
            try {
              var u = new URL(a.href, location.href);
              var goesToApp = /(^|\.)flowcode\.golf$/.test(u.hostname) &&
                              /\/(join|join-coaches|join-players|join-juniors|join-portal)/.test(u.pathname);
              if (goesToApp && !u.searchParams.get('ref')) {
                u.searchParams.set('ref', ref);
                a.href = u.toString();
              }
            } catch (e) {}
          });
        }
        function start() {
          tag();
          var t;
          function schedule() { clearTimeout(t); t = setTimeout(tag, 200); }
          try { new MutationObserver(schedule).observe(document.body, { childList: true, subtree: true }); } catch (e) {}
          ['pushState', 'replaceState'].forEach(function (m) {
            var orig = history[m];
            if (typeof orig === 'function') {
              history[m] = function () { var r = orig.apply(this, arguments); schedule(); return r; };
            }
          });
          window.addEventListener('popstate', schedule);
        }
        if (document.body) start();
        else document.addEventListener('DOMContentLoaded', start);
      } catch (e) {}
    })();
    </script>
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
    <link rel="icon" type="image/png" sizes="64x64" href="/favicon.png" />
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
    <link rel="sitemap" type="application/xml" href="/sitemap.xml">
    <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=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <!-- PlayAI SDK Integration -->
    <script type="text/javascript">
      // Load PlayAI SDK with security context handling
      (function() {
        try {
          const script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = 'https://cdn.jsdelivr.net/npm/@play-ai/agent-web-sdk@ht';
          script.crossOrigin = 'anonymous';
          
          script.onload = function() {
            try {
              if (window.PlayAI && typeof window.PlayAI.open === 'function') {
                // Only auto-open on specific pages
                if (window.location.pathname === '/max-flow-ai' || window.location.pathname === '/flowcode-assistant') {
                  window.PlayAI.open('qH5qg_Nw23H3MFTbjbYlZ');
                }
              }
            } catch (e) {
              console.warn('PlayAI initialization handled gracefully');
            }
          };
          
          script.onerror = function() {
            console.warn('PlayAI SDK loading handled gracefully');
          };
          
          document.head.appendChild(script);
        } catch (e) {
          console.warn('PlayAI setup handled gracefully');
        }
      })();
    </script>
    <!-- PlayAI Iframe Integration -->
    <script>
      window.openMaxFlowVoiceChat = function() {
        const iframe = document.createElement('iframe');
        iframe.src = 'https://play.ai/s/qH5qg_Nw23H3MFTbjbYlZ';
        iframe.style.position = 'fixed';
        iframe.style.top = '50%';
        iframe.style.left = '50%';
        iframe.style.transform = 'translate(-50%, -50%)';
        iframe.style.width = '400px';
        iframe.style.height = '600px';
        iframe.style.border = 'none';
        iframe.style.borderRadius = '12px';
        iframe.style.boxShadow = '0 10px 30px rgba(0,0,0,0.3)';
        iframe.style.zIndex = '10000';
        iframe.style.backgroundColor = '#1a1a1a';
        iframe.allow = 'microphone; autoplay; camera';
        
        // Create backdrop
        const backdrop = document.createElement('div');
        backdrop.style.position = 'fixed';
        backdrop.style.top = '0';
        backdrop.style.left = '0';
        backdrop.style.width = '100%';
        backdrop.style.height = '100%';
        backdrop.style.backgroundColor = 'rgba(0,0,0,0.7)';
        backdrop.style.zIndex = '9999';
        backdrop.style.backdropFilter = 'blur(5px)';
        
        // Close on backdrop click
        backdrop.onclick = function() {
          document.body.removeChild(backdrop);
          document.body.removeChild(iframe);
        };
        
        document.body.appendChild(backdrop);
        document.body.appendChild(iframe);
        
        return true;
      };
    </script>
    <script type="module" crossorigin src="/assets/index-Dt2lHG6b.js"></script>
    <link rel="stylesheet" crossorigin href="/assets/index-1vz8gRcf.css">
      <link rel="canonical" href="https://flowcode.golf/premium-coach-portal">
    <meta name="robots" content="index, follow">
    <meta property="og:url" content="https://flowcode.golf/premium-coach-portal">
    <meta property="og:type" content="website">
    <meta property="og:image" content="https://flowcode.golf/images/og-share.jpg">
    <meta property="og:image:alt" content="Premium Coach Portal - Elite Golf Flow State Coaching | FlowCode Golf Academy">
    <meta property="og:image:secure_url" content="https://flowcode.golf/images/og-share.jpg">
    <meta property="og:image:type" content="image/jpeg">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="630">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Premium Coach Portal - Elite Golf Flow State Coaching | FlowCode Golf Academy">
    <meta name="twitter:description" content="Elite coaching resources and advanced flow state training for premium golf coaches with FlowCode Golf Academy.">
    <meta name="twitter:image" content="https://flowcode.golf/images/og-share.jpg">
    <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","url":"https://flowcode.golf/premium-coach-portal","name":"Premium Coach Portal - Elite Golf Flow State Coaching | FlowCode Golf Academy","description":"Elite coaching resources and advanced flow state training for premium golf coaches with FlowCode Golf Academy.","inLanguage":"en","isPartOf":{"@type":"WebSite","name":"FlowCode Golf Academy","url":"https://flowcode.golf"}}</script>
  </head>
  <body>
    <div id="root"><div data-ssr="1" style="max-width:900px;margin:0 auto;padding:40px 24px;font-family:system-ui,sans-serif;color:#1a1a1a;line-height:1.6">
      <h1 style="font-size:2.2rem;font-weight:700;margin:0 0 16px">Premium Coach Portal — Elite Golf Mental Performance</h1>
      <p style="font-size:1.1rem;margin:0 0 24px">Elite coaching resources and advanced flow state training tools for premium golf coaches. Access the full FlowCode methodology with dedicated support from the FlowCode team.</p>
      <h2 style="font-size:1.4rem;font-weight:600;margin:24px 0 12px">Premium Features</h2>
      <ul style="margin:0 0 24px;padding-left:24px">
        <li>Full access to all FlowCode coach curriculum and training materials</li>
        <li>Advanced student management and progress analytics</li>
        <li>Priority support from Dr. Rick Sessinghaus and the coaching team</li>
        <li>Exclusive masterclasses and live coaching sessions</li>
        <li>White-labeled portal with full customization</li>
        <li>Revenue-sharing opportunities through the FlowCode Ambassador program</li>
      </ul>
      <p>The Premium Coach Portal is designed for high-volume coaches and teaching professionals who want to make flow state mental game training the cornerstone of their coaching practice.</p>
    </div></div>
    <script>
      // Simple initialization check
      window.addEventListener('DOMContentLoaded', function() {
        console.log('Max Flow AI voice chat interface ready');
      });
    </script>
    <!-- This is a replit script which adds a banner on the top of the page when opened in development mode outside the replit environment -->
    <script type="text/javascript" src="https://replit.com/public/js/replit-dev-banner.js"></script>
  </body>
</html>
