=== WP Access Pilot ===
Contributors: greaterheightsweb
Tags: accessibility, a11y, wcag, accessibility toolbar, accessibility checker
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Stable tag: 0.10.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An accessibility toolbar for visitors plus an axe-core powered checker that helps improve accessibility and guides remediation.

== Description ==

WP Access Pilot has two pillars:

1. **Accessibility Toolbar** — a lightweight, keyboard- and screen-reader-friendly overlay that lets your visitors adjust text size, contrast, fonts, reading aids, text-to-speech and more. Visitor preferences are stored only in their own browser.

2. **Accessibility Checker** — an axe-core powered scanner that detects real WCAG issues in your content and code, explains them in plain language, and guides remediation with WordPress-specific fixes.

**Important:** an accessibility toolbar is an assistive overlay, not a substitute for an accessible site. WP Access Pilot helps improve accessibility and supports your WCAG, ADA, and EAA compliance journey — it does not, and cannot, guarantee legal compliance. Automated scanning catches only a portion of WCAG issues, so the checker always distinguishes automated findings from items that require human review.

== Privacy ==

The toolbar stores a visitor's chosen settings in their browser (localStorage) only. It collects no personal data and sends nothing to our servers. The checker stores scan results in your own database, tied to posts and URLs, not to people.

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/` directory, or install it from the Plugins screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Visit **Access Pilot** in the admin menu to configure the toolbar and run checks.

WP Access Pilot requires WordPress 6.4+ and PHP 8.1+. On an unsupported environment the plugin will not activate and will explain why.

== Changelog ==

= 0.10.0 =
* Pro and Agency settings (Pro toolbar modules, widget customization, languages, email digests, white-label branding) are now disabled in the admin until a license unlocks them, each clearly marked with a plan badge.
* Redesigned the settings screen with a cleaner, card-based, professional layout.

= 0.9.2 =
* Moved the license server to its permanent custom domain (accesspilot.ghws.xyz). The `WPAP_LICENSE_API` constant and `wpap_license_api_base` filter still override it.

= 0.9.1 =
* Changed the default license API base to the public production URL so customer sites can reach it without authentication. The `WPAP_LICENSE_API` constant override and `wpap_license_api_base` filter still work.
* Improved licensing error handling: non-JSON / proxy / auth-wall responses now report a connection problem instead of an invalid key.

= 0.9.0 =
* Added product-key licensing: activate, validate, and deactivate your license from Access Pilot → Settings. The plugin verifies every server response with an Ed25519 signature, re-validates daily, and keeps your features working through a short grace period if the license server is briefly unreachable. Replaces the old testing-only plan switcher.

= 0.8.0 =
* Added client/project grouping with per-client roll-ups (Agency) and white-label branding (name/logo/color) for reports, the client share page, and digests.

= 0.7.2 =
* Added report exports — CSV, print-ready PDF, and a VPAT-style summary (Pro) — plus a tokenized read-only client share link (Agency).

= 0.7.1 =
* Added burndown/trend charts (site-wide per run + per-page history) and scheduled email digests via WP-Cron (daily/weekly), with optional auto-queued site scans.

= 0.7.0 =
* Added site-wide scanning (Agency): a job queue + in-admin browser worker scans every published page with a live progress bar and a site rollup table. Pluggable engine via the wpap_scan_engine hook.

= 0.6.1 =
* Added the in-editor accessibility check: a Gutenberg sidebar that scans the current post before publishing, groups findings into three buckets, and deep-links each finding to its block.

= 0.6.0 =
* Added the Accessibility Checker: scan a page with the bundled axe-core engine (in a hidden same-origin iframe), with a findings model, three buckets (Errors / Warnings / Needs Manual Review incl. a guided checklist), per-issue status with audit trail, and an admin report with a clearly-labeled automated-check score.

= 0.5.0 =
* Added the Accessibility Statement Generator: admin form with live preview, output via the [wpap_accessibility_statement] shortcode and an optional toolbar link.
* Finalized the Free / Pro / Agency tier matrix; Pro modules now show a tier badge in the admin.

= 0.4.2 =
* Added translation packs for 10 more languages (German, Italian, Portuguese, Dutch, Polish, Russian, Japanese, Chinese, Arabic, Hindi) — the visitor switcher now offers 13 languages.
* Added right-to-left (RTL) layout support (e.g. Arabic).
* Moved the visitor language switcher into the panel header.

= 0.4.1 =
* Added a visitor-facing language switcher in the toolbar so each visitor can choose their own language (saved per browser, independent of the admin default).

= 0.4.0 =
* Added widget customization: trigger icon styles, button size, and editable per-module labels.
* Added a multilingual toolbar UI via JSON language packs (40+ locales scaffolded, English complete, Spanish and French included) with an admin language selector.

= 0.3.0 =
* Added 15 more toolbar modules (text magnifier, text alignment, bold text, light contrast, monochrome, saturation, reading guide, reading mask, text-to-speech, keyboard navigation, hide images, mute sounds, highlight titles, highlight content, skip to content).
* Added text-to-speech via the browser Web Speech API, with a graceful fallback when unsupported.
* Added five one-click profiles: Vision Impaired, Seizure Safe, ADHD Friendly, Blindness Mode, Epilepsy Safe.
* Added Free/Pro/Agency tier gating with an admin "Plan (testing)" switcher.

= 0.2.1 =
* Fixed: the toolbar no longer appears inside page-builder editors / previews (Bricks, Elementor, Beaver Builder, Oxygen); it loads on the front end only.
* Changed: redesigned the toolbar module UI (card tiles, modern gradient header, click-to-cycle level tiles with a segmented meter, visible "Reset All" button).

= 0.2.0 =
* Toolbar MVP: floating trigger with configurable corner and keyboard shortcut (Alt/⌘ + .).
* Accessible settings panel (focus trap, ESC to close, ARIA dialog, focus returned to trigger) rendered in an isolated shadow root.
* Ten modules: Text Size, Line Height, Letter Spacing, High Contrast, Dark Contrast, Readable Font, Dyslexia-Friendly Font, Highlight Links, Big Cursor, Stop Animations.
* Visitor preferences persist in localStorage and re-apply before paint (no flash). Reset and Hide (session / 24h / week) controls.
* Admin settings screen (enable, position, primary color, modules) backed by the wpap/v1 REST API.

= 0.1.0 =
* Initial scaffold: plugin bootstrap, environment guard, admin menu, and database schema.
