// Tobeads — platform flags (sync, no React dependency)
// Used to apply iOS WebKit workarounds before the first paint.

(function () {
  if (typeof navigator === 'undefined') return;
  const ua = navigator.userAgent || '';
  const ios =
    /iPad|iPhone|iPod/.test(ua) ||
    (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
  window.isIOSWebKit = ios;
  if (ios) document.documentElement.classList.add('ios-webkit');
})();
