<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="WorkmanLinks — the smart WordPress plugin for affiliate product displays. AI-powered automation, Amazon Creators API ready, multi-network support. Free to start.">
  <meta name="keywords" content="WordPress affiliate plugin, Amazon affiliate plugin, product display plugin, affiliate links, Amazon Creators API, multi-network affiliate">
  <title>WorkmanLinks — Smart Affiliate Product Displays for WordPress</title>

  <!-- Favicon -->
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="favicon.ico">
  <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">

  <!-- Google 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=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

  <!-- Styles -->
  <link rel="stylesheet" href="css/styles.css?v=2.0.1">
</head>
<body>

  <!-- ====================================================================
       HEADER / NAVIGATION
       ==================================================================== -->
  <header class="header" id="header">
    <div class="container header-inner">
      <a href="/" class="logo" aria-label="WorkmanLinks Home">
        <img src="img/logo.jpg" alt="WorkmanLinks" class="logo-img" width="36" height="36" style="border-radius:8px;margin-right:8px;vertical-align:middle;">
        <span class="logo-text">Workman<strong>Links</strong></span>
      </a>

      <nav class="nav" id="main-nav" aria-label="Main navigation">
        <a href="#features" class="nav-link">Features</a>
        <a href="#how-it-works" class="nav-link">How It Works</a>
        <a href="#pricing" class="nav-link">Pricing</a>
        <a href="/docs/" class="nav-link">Docs</a>
      </nav>

      <div class="nav-actions">
        <a href="#pricing" class="btn btn-primary btn-sm">Get Started Free</a>
        <button class="nav-toggle" id="nav-toggle" aria-label="Toggle navigation" aria-expanded="false">
          <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
            <line x1="3" y1="6" x2="21" y2="6" class="menu-line menu-line-1"/>
            <line x1="3" y1="12" x2="21" y2="12" class="menu-line menu-line-2"/>
            <line x1="3" y1="18" x2="21" y2="18" class="menu-line menu-line-3"/>
          </svg>
        </button>
      </div>
    </div>

    <!-- Mobile menu -->
    <div class="mobile-nav" id="mobile-nav">
      <a href="#features" class="nav-link">Features</a>
      <a href="#how-it-works" class="nav-link">How It Works</a>
      <a href="#pricing" class="nav-link">Pricing</a>
      <a href="/docs/" class="nav-link">Docs</a>
      <a href="#pricing" class="btn btn-primary" style="margin-top: 8px;">Get Started Free</a>
    </div>
  </header>

  <!-- ====================================================================
       HERO SECTION — Dark gradient, dramatic headline
       ==================================================================== -->
  <section class="hero" id="hero">
    <div class="hero-bg"></div>
    <div class="container hero-content">
      <div class="hero-eyebrow">
        <span class="eyebrow-dot"></span>
        WordPress Plugin &mdash; Free &amp; Pro
      </div>
      <h1>Affiliate Product Displays<br><span class="hero-gradient-text">That Actually Work</span></h1>
      <p class="hero-subtitle">
        AI-powered product cards, automatic affiliate linking, and the only WordPress plugin
        with Amazon Creators API support. Multi-network ready. Free to start.
      </p>
      <div class="hero-actions">
        <button onclick="fsBuyFree()" class="btn btn-primary btn-lg">
          <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
          Download Free
        </button>
        <a href="#features" class="btn btn-ghost-light btn-lg">See What's Inside</a>
      </div>

      <!-- Social proof -->
      <div class="hero-proof">
        <div class="proof-item">
          <span class="proof-number">10+</span>
          <span class="proof-label">Affiliate Networks</span>
        </div>
        <div class="proof-divider"></div>
        <div class="proof-item">
          <span class="proof-number">5</span>
          <span class="proof-label">Shortcodes</span>
        </div>
        <div class="proof-divider"></div>
        <div class="proof-item">
          <span class="proof-number">$0</span>
          <span class="proof-label">To Start</span>
        </div>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       PROBLEM SECTION — Why affiliates need this
       ==================================================================== -->
  <section class="section section--white" id="problem">
    <div class="container">
      <div class="section-header">
        <span class="section-tag">The Problem</span>
        <h2>Affiliate Plugins Are Stuck in 2019</h2>
        <p>Amazon changed the game with Creators API. Most plugins haven't caught up.
           You're paying top dollar for tools that are one API deprecation away from breaking.</p>
      </div>

      <div class="problem-grid">
        <div class="problem-card">
          <div class="problem-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6"/></svg>
          </div>
          <h4>Expensive Annual Renewals</h4>
          <p>Most affiliate display plugins charge $49&ndash;$249/year. That eats directly into your commissions &mdash; and if you stop paying, your product displays vanish.</p>
        </div>
        <div class="problem-card">
          <div class="problem-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
          </div>
          <h4>The PA-API Sunset</h4>
          <p>Amazon deprecated PA-API 5.0 in favor of their new Creators API (OAuth 2.0). Many plugins still haven't migrated. WorkmanLinks supports both.</p>
        </div>
        <div class="problem-card">
          <div class="problem-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
          </div>
          <h4>Amazon-Only Lock-in</h4>
          <p>Running Avantlink, Impact, ShareASale, or CJ alongside Amazon? Most plugins can't help. You end up duct-taping multiple solutions together.</p>
        </div>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       FEATURES — Bento grid layout
       ==================================================================== -->
  <section class="section section--gray" id="features">
    <div class="container">
      <div class="section-header">
        <span class="section-tag">Features</span>
        <h2>One Plugin. Every Network. AI-Powered.</h2>
        <p>Everything you need to display, automate, and manage affiliate products across your WordPress site.</p>
      </div>

      <div class="bento-grid">
        <!-- Large feature -->
        <div class="bento-card bento-wide">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
          </div>
          <h3>Amazon Creators API Ready</h3>
          <p>The only WordPress affiliate plugin with native support for Amazon's new OAuth 2.0 Creators API. Automatic token refresh, regional endpoints (NA/EU/FE), and full PA-API 5.0 fallback. Your product displays won't break when Amazon sunsets the old API.</p>
          <div class="bento-tag">Creators API + PA-API 5.0</div>
        </div>

        <!-- Regular features -->
        <div class="bento-card">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 21V9"/></svg>
          </div>
          <h3>Beautiful Product Displays</h3>
          <p>Drop <code>[wml_box]</code> into any post. Get responsive product cards with images, prices, features, and buy buttons. Light and dark themes included.</p>
        </div>

        <div class="bento-card">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>
          </div>
          <h3>AI Auto Mode</h3>
          <p>AI extracts keywords from your content and automatically inserts relevant products. Configure placement, frequency, and filtering. Set it and forget it.</p>
          <span class="feature-badge">Pro</span>
        </div>

        <div class="bento-card">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71"/></svg>
          </div>
          <h3>Auto-Linker</h3>
          <p>Turn keywords into affiliate links automatically. Priority mapping, frequency limits, and smart protection that skips headings and existing links.</p>
          <span class="feature-badge">Pro</span>
        </div>

        <div class="bento-card bento-wide">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg>
          </div>
          <h3>Multi-Network Product Manager</h3>
          <p>Not just Amazon. Manage products from Avantlink, Impact, ShareASale, CJ, Rakuten, AWIN, Partnerize, and Refersion &mdash; all in one unified dashboard. Use <code>[wml_product]</code> and <code>[wml_products]</code> shortcodes to display them anywhere.</p>
          <div class="bento-tag">Amazon + 9 Networks</div>
          <span class="feature-badge">Pro</span>
        </div>

        <div class="bento-card">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z"/></svg>
          </div>
          <h3>Shortcode Compatibility</h3>
          <p>Migrating from another plugin? WorkmanLinks can read common shortcode formats natively. Your existing content keeps working &mdash; zero downtime.</p>
          <span class="feature-badge">Agency</span>
        </div>

        <div class="bento-card">
          <div class="bento-icon">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
          </div>
          <h3>AI Product Validator</h3>
          <p>AI checks that auto-inserted products are actually relevant to your content. No more random kitchen gadgets in your fishing article.</p>
          <span class="feature-badge">Pro</span>
        </div>
      </div>

      <!-- Additional features checklist -->
      <div class="extras-bar">
        <h4>Also Included</h4>
        <div class="extras-list">
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            24hr smart caching
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            30-day backup cache
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            12 Amazon marketplaces
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            ZimmWriter compatible
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            Trending News Harvester
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            Click analytics
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            Full diagnostics
          </span>
          <span class="extra-item">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
            Amazon TOS compliant
          </span>
        </div>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       SHORTCODE SHOWCASE
       ==================================================================== -->
  <section class="section section--white" id="shortcodes">
    <div class="container">
      <div class="section-header">
        <span class="section-tag">Shortcodes</span>
        <h2>Drop In. Done.</h2>
        <p>Simple shortcodes that create beautiful product displays. Copy, paste, publish.</p>
      </div>

      <div class="shortcode-grid">
        <div class="shortcode-card">
          <div class="shortcode-header">
            <span class="shortcode-name">[wml]</span>
            <span class="shortcode-tier">Free</span>
          </div>
          <code class="shortcode-example">[wml asin="B08N5WRWNW"]</code>
          <p>Product image with affiliate link. Lazy-loaded, responsive, cached.</p>
        </div>

        <div class="shortcode-card">
          <div class="shortcode-header">
            <span class="shortcode-name">[wml_box]</span>
            <span class="shortcode-tier">Free</span>
          </div>
          <code class="shortcode-example">[wml_box asin="B08N5WRWNW" template="light"]</code>
          <p>Full product card with image, title, features, price, and buy button.</p>
        </div>

        <div class="shortcode-card">
          <div class="shortcode-header">
            <span class="shortcode-name">[wml_product]</span>
            <span class="shortcode-tier tier-pro">Pro</span>
          </div>
          <code class="shortcode-example">[wml_product slug="fishing-rod" style="box"]</code>
          <p>Display any product from the multi-network Product Manager.</p>
        </div>

        <div class="shortcode-card">
          <div class="shortcode-header">
            <span class="shortcode-name">[wml_products]</span>
            <span class="shortcode-tier tier-pro">Pro</span>
          </div>
          <code class="shortcode-example">[wml_products category="Fishing" count="4"]</code>
          <p>Auto-generate product grids filtered by category and network.</p>
        </div>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       HOW IT WORKS
       ==================================================================== -->
  <section class="section section--gray" id="how-it-works">
    <div class="container">
      <div class="section-header">
        <span class="section-tag">Setup</span>
        <h2>Three Steps. That's It.</h2>
        <p>No complicated onboarding wizards. Install, connect, earn.</p>
      </div>

      <div class="steps-row">
        <div class="step-card">
          <div class="step-num">01</div>
          <h4>Install &amp; Activate</h4>
          <p>Upload to WordPress. Head to <strong>Settings &rarr; WorkmanLinks</strong>.</p>
        </div>
        <div class="step-arrow">
          <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5l7 7-7 7"/></svg>
        </div>
        <div class="step-card">
          <div class="step-num">02</div>
          <h4>Connect APIs</h4>
          <p>Enter your Amazon Creators API or PA-API credentials. Hit "Test Connection."</p>
        </div>
        <div class="step-arrow">
          <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5l7 7-7 7"/></svg>
        </div>
        <div class="step-card">
          <div class="step-num">03</div>
          <h4>Add Products &amp; Earn</h4>
          <p>Use shortcodes, enable Auto Mode, or manage products from any network.</p>
        </div>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       PRICING
       ==================================================================== -->
  <section class="section section--white" id="pricing">
    <div class="container">
      <div class="section-header">
        <span class="section-tag">Pricing</span>
        <h2>Start Free. Scale When Ready.</h2>
        <p>No credit card required. Upgrade only when you need AI automation and multi-network support.</p>
      </div>

      <div class="pricing-row">
        <!-- Free Tier -->
        <div class="pricing-card">
          <div class="pricing-top">
            <h4>Starter</h4>
            <div class="pricing-amount">$0<span>/forever</span></div>
            <p class="pricing-desc">Core affiliate displays for Amazon.</p>
          </div>
          <ul class="pricing-list">
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              [wml] image shortcode
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              [wml_box] product cards
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              PA-API 5.0 + Creators API
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Smart caching system
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              1 Amazon marketplace
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              1 site
            </li>
          </ul>
          <button onclick="fsBuyFree()" class="btn btn-secondary" style="width: 100%;">Download Free</button>
        </div>

        <!-- Pro Tier -->
        <div class="pricing-card pricing-featured">
          <div class="pricing-popular">Most Popular</div>
          <div class="pricing-top">
            <h4>Pro</h4>
            <div class="card-toggle" style="display: flex; gap: 4px; margin: 12px auto 16px; background: #e0e7ff; border-radius: 6px; padding: 4px; max-width: 240px;">
              <button id="pro-toggle-1" class="card-toggle-btn active" onclick="setProLicense(1)" style="flex: 1; padding: 7px 16px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: #fff; color: #4338ca; box-shadow: 0 1px 2px rgba(0,0,0,0.1);">1 Site</button>
              <button id="pro-toggle-3" class="card-toggle-btn" onclick="setProLicense(3)" style="flex: 1; padding: 7px 16px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: transparent; color: #6366f1;">3 Sites</button>
            </div>
            <div class="pricing-amount" id="pro-price">$39<span>/year</span></div>
            <p class="pricing-desc">Full automation for serious affiliates.</p>
          </div>
          <ul class="pricing-list">
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Everything in Starter
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              AI Auto Mode
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Auto-Linker
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Multi-Network Product Manager
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              AI Product Validator
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Trending News Harvester
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              12 Amazon marketplaces
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              <span id="pro-sites">1 site + email support</span>
            </li>
          </ul>
          <button id="pro-btn" onclick="fsBuyPro()" class="btn btn-primary" style="width: 100%;">Get Pro &mdash; $39/yr</button>
        </div>

        <!-- Agency Tier -->
        <div class="pricing-card">
          <div class="pricing-top">
            <h4>Agency</h4>
            <div class="card-toggle" style="display: flex; gap: 4px; margin: 12px auto 16px; background: #f1f5f9; border-radius: 6px; padding: 4px; max-width: 260px;">
              <button id="agency-toggle-1" class="card-toggle-btn active" onclick="setAgencyLicense(1)" style="flex: 1; padding: 7px 16px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: #fff; color: #1e293b; box-shadow: 0 1px 2px rgba(0,0,0,0.1);">1 Site</button>
              <button id="agency-toggle-0" class="card-toggle-btn" onclick="setAgencyLicense(0)" style="flex: 1; padding: 7px 16px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: transparent; color: #64748b;">Unlimited</button>
            </div>
            <div class="pricing-amount" id="agency-price">$99<span>/year</span></div>
            <p class="pricing-desc">For teams managing multiple sites.</p>
          </div>
          <ul class="pricing-list">
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Everything in Pro
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              <span id="agency-sites">1 site</span>
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Priority support
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Shortcode migration tools
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              Early access to new features
            </li>
            <li>
              <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
              White-label option
            </li>
          </ul>
          <button id="agency-btn" onclick="fsBuyAgency()" class="btn btn-secondary" style="width: 100%;">Get Agency &mdash; $99/yr</button>
        </div>
      </div>

      <p class="pricing-guarantee">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
        30-day money-back guarantee &middot; Lifetime updates &middot; Cancel anytime
      </p>
    </div>
  </section>

  <!-- ====================================================================
       FINAL CTA
       ==================================================================== -->
  <section class="cta-section" id="cta">
    <div class="container text-center">
      <h2>Ready to Upgrade Your Affiliate Game?</h2>
      <p>Join affiliates who display smarter, link faster, and earn more.</p>
      <div class="cta-actions">
        <button onclick="fsBuyFree()" class="btn btn-primary btn-lg">Get Started Free</button>
        <a href="/cdn-cgi/l/email-protection#aedddbdedec1dcdaeed9c1dcc5c3cfc0c2c7c0c5dd80cdc1c3" class="btn btn-ghost-light btn-lg">Questions? Email Us</a>
      </div>
    </div>
  </section>

  <!-- ====================================================================
       FOOTER
       ==================================================================== -->
  <footer class="footer">
    <div class="container">
      <div class="footer-grid">
        <div class="footer-brand">
          <div class="logo">
            <img src="img/logo.jpg" alt="WorkmanLinks" width="32" height="32" style="border-radius:7px;margin-right:8px;vertical-align:middle;">
            <span class="logo-text">Workman<strong>Links</strong></span>
          </div>
          <p>Smart affiliate product displays for WordPress. Built by an affiliate marketer, for affiliate marketers.</p>
        </div>

        <div class="footer-column">
          <h4>Product</h4>
          <div class="footer-links">
            <a href="#features" class="footer-link">Features</a>
            <a href="#pricing" class="footer-link">Pricing</a>
            <a href="#shortcodes" class="footer-link">Shortcodes</a>
          </div>
        </div>

        <div class="footer-column">
          <h4>Resources</h4>
          <div class="footer-links">
            <a href="/docs/" class="footer-link">Documentation</a>
            <a href="/changelog/" class="footer-link">Changelog</a>
            <a href="/cdn-cgi/l/email-protection#d4a7a1a4a4bba6a094a3bba6bfb9b5bab8bdbabfa7fab7bbb9" class="footer-link">Support</a>
          </div>
        </div>
      </div>

      <div class="footer-bottom">
        <p class="footer-copyright">&copy; 2026 WorkmanLinks.</p>
        <div class="footer-legal">
          <a href="#" class="footer-link">Privacy</a>
          <a href="#" class="footer-link">Terms</a>
        </div>
      </div>
    </div>
  </footer>


  <!-- Freemius Checkout -->
  <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="https://checkout.freemius.com/js/v1/"></script>
  <script>
    var fsCheckout = new FS.Checkout({
      product_id: '25008',
      public_key:  'pk_a2a78743b048676fb466e5527e55b',
    });

    // Per-card pricing (matches Freemius exactly)
    var proLicense = 1;
    var agencyLicense = 1;

    var proTiers  = { 1: { annual: 39, licenses: 1, label: '1 site' }, 3: { annual: 59, licenses: 3, label: '3 sites' } };
    var agencyTiers = { 1: { annual: 99, licenses: 1, label: '1 site' }, 0: { annual: 149, licenses: null, label: 'Unlimited sites' } };

    function toggleBtn(id, active, colors) {
      var btn = document.getElementById(id);
      if (!btn) return;
      if (active) {
        btn.style.background = '#fff';
        btn.style.color = colors || '#1e293b';
        btn.style.boxShadow = '0 1px 2px rgba(0,0,0,0.1)';
      } else {
        btn.style.background = 'transparent';
        btn.style.color = colors === '#4338ca' ? '#6366f1' : '#64748b';
        btn.style.boxShadow = 'none';
      }
    }

    function setProLicense(n) {
      proLicense = n;
      var tier = proTiers[n];
      document.getElementById('pro-price').innerHTML = '$' + tier.annual + '<span>/year</span>';
      document.getElementById('pro-sites').textContent = tier.label + ' + email support';
      document.getElementById('pro-btn').innerHTML = 'Get Pro &mdash; $' + tier.annual + '/yr';
      toggleBtn('pro-toggle-1', n === 1, '#4338ca');
      toggleBtn('pro-toggle-3', n === 3, '#4338ca');
    }

    function setAgencyLicense(n) {
      agencyLicense = n;
      var tier = agencyTiers[n];
      document.getElementById('agency-price').innerHTML = '$' + tier.annual + '<span>/year</span>';
      document.getElementById('agency-sites').textContent = tier.label;
      document.getElementById('agency-btn').innerHTML = 'Get Agency &mdash; $' + tier.annual + '/yr';
      toggleBtn('agency-toggle-1', n === 1);
      toggleBtn('agency-toggle-0', n === 0);
    }

    function fsBuyFree() {
      fsCheckout.open({ plan_id: '41460', licenses: 1 });
    }

    function fsBuyPro() {
      var tier = proTiers[proLicense];
      fsCheckout.open({ plan_id: '41467', licenses: tier.licenses, billing_cycle: 'annual' });
    }

    function fsBuyAgency() {
      var tier = agencyTiers[agencyLicense];
      fsCheckout.open({ plan_id: '41468', licenses: tier.licenses, billing_cycle: 'annual' });
    }
  </script>
  <!-- Scripts -->
  <script src="js/app.js?v=2.0.1"></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/v4bc70e2c01a94c73b74392e4234840661791215815920" integrity="sha512-L0ha0OXavK/8okipN9F8BtP84dg9DUhPERbBXzwI6dgTA55d2+yweo3pn5CSFYs45/r8md2+xvUPtTdvTNRfjA==" data-cf-beacon='{"version":"2024.11.0","token":"9c031c4232f4419497a289b89e1d3e20","r":1,"spa":2}' crossorigin="anonymous"></script>
</body>
</html>

