Gambit Trial activation integration
==================================

Build separately with -DGAMBIT_TRIAL_BUILD=ON. The paid build defaults OFF.
The trial's product name, bundle ID and VST3 class code are distinct so it can
coexist with paid installations. Activated trial projects continue to open
using Gambit Trial; replacing a trial instance with paid Gambit is not required.

Required production build configuration:
  GAMBIT_ACTIVATION_URL: HTTPS endpoint owned by Gambit
  GAMBIT_LICENSE_PUBLIC_KEY: JUCE RSA public key string
Never embed a Shopify Admin token or RSA private key in the plugin.

POST request (form-encoded, HTTPS only; no redirects):
  product=gambit
  email=<purchase email>
  serial=GMB-<order number>-<receipt line index>-<unit number>
  machine=<JUCE platform-specific machine IDs, comma separated>

Required service behavior before issuing a license:
- Rate limit attempts and use generic failure responses to avoid exposing orders.
- Look up the real Shopify order and match buyer email, Gambit product,
  paid status, non-cancellation, the receipt line/unit, and remaining
  non-refunded quantity. A syntactically valid serial is never sufficient.
- Bind each signed license to the submitted machine IDs. No device-count limit.
- Generate a JUCE KeyGeneration keyfile for product 'gambit', buyer email,
  license holder name, and the submitted machine IDs. Use a private RSA key
  held only by the service. Return the key inside the KEY child element
  expected by JUCE OnlineUnlockStatus (see bundled JUCE implementation).
- Return an XML error attribute for a rejected purchase.
- Bound payloads, timeouts and logs; don't log plaintext credentials.

The plugin verifies the key against the pinned public key, product and machine.
It saves the verified activation outside presets and DAW sessions, permitting
subsequent offline use. Refund revocation after offline activation is not
implemented; it would require a separate policy and periodic online checks.

The endpoint and public key are now configured. The build remains an internal
activation preview until historical-order access is available.
Do not upload it as the public trial or replace the paid Shopify downloads.

Offline trial persistence is per OS user and shared by all plugin instances.
The saved first-use date is independent of plugin state, presets and installer.
Large backward clock changes fail closed. This local trial isn't hardened
against deleting all local state, OS account changes or binary modification.
