# Pilot page: "Your page" (a signed-in pilot's own account and home)

**Status:** this is a design mock with demo data. It isn't live, merged or wired to anything. 12 Nov 2026.

Open `index.html`. These query options switch the demo:

| Query | Shows |
|---|---|
| `?t=pearl\|midnight\|amethyst\|champagne` | theme |
| `?plan=trial` *(default)* | trial: 9 days left, ends Sat 21 Nov 2026 |
| `?plan=founding` | Founding Member, seat No. 39, renews 3 Dec 2026 |
| `?plan=pro` / `?plan=free` / `?plan=finish` | Pro / Free / payment not finished |
| `&dfe=pending` | DFE claim waiting for review |
| `&sheet=edit\|peek\|passkey\|password\|cancel\|delete` | opens that sheet |
| `&capture=1` | hides the demo switch for screenshots |

The demo user is **Alex Morgan** (@alex.morgan): CPL with Night, Instrument and Instructor, saving FACT (home), FASH and FAGG.

## Sections and where the data comes from
These come from the read-only repo clones. I checked them on 12 Nov. The Cloudflare account has no D1 databases, so the schema comes from `migrations-v2`.

| Section | Data |
|---|---|
| **Pass card** (FACT material, runway line, glare) | `accounts.display_name`, `username`, `describes`, `created_at`; `qualifications` with `qualification_catalogue`; computed badges (Founding compass `#1D9BF0`, DFE tick); number of reviews; home aerodrome |
| **Plan** | `entitlements` (trial, pro, founding, premium); `planSummary` in `getPilotPage` (`trial_ends`, `renews_on`, `price_cents`, `access_until`, `can_cancel`, `finish_payment`); `founding_seats.seat_no`, shown only to the owner; seats left out of 50 |
| **Allowance** | `getMe().limits`: `reviews_quota` and `reviews_left`, votes, `resets`. Comes from `usage_cycle` and `config` (`REVIEW_QUOTA` is 5 on Free and 20 otherwise; `VOTE_QUOTA` is 100 on Free) |
| **Licences and ratings** | `qualifications` (self-declared, grey until verified); `dfe_claim` |
| **Reviews you wrote** | `getPilotPage().reviews`, including `deleted_by_you`, plus anonymous reviews that only the owner sees |
| **Saved aerodromes** (3 of 5) | Live, these are stored **per device**. There's no server table. |
| **Sign-in and security** | `accounts.email`; Google (`google_sub`); `user_credentials` (password, changed with an emailed code); `member_credentials` (passkeys: label, created_at, last_used_at); `sessions` with `listMySessions`, `signOutSession` and `signOutEverywhere` |
| **Theme** | `accounts.theme`, in the four themes |
| **Privacy and your data** | What other members see: name, licences and named reviews. Never shown: email, sign-in, plan, seat number, anonymous reviews. Plus a download of your data. |
| **Delete account** | Gated by typing the phrase "delete my account". Cancels any saved card first. Stars stay in the ratings. |

The copy follows DECISIONS-MASTER:
- Founding cancel warning: "Cancelling ends your R299 lifetime price. It cannot be restored."
- Prices exclude VAT. Billing is monthly only.
- Paying drops any unused trial days.
- The no-refund line.
- Anonymous reviews need Pro or Founding.

Parts that don't exist yet are tagged **PROPOSAL**. Parts that use made-up demo rows are tagged **SAMPLE**.

## Layout
- **Phone:** one column.
- **720–1023 px:** one column, at most 640 px wide.
- **1024 px and up:** a sticky left rail (pass card and section index) next to the content.
- **iPad and touch tablets:** swipe sideways to move between pages (`../ipad-swipe/`).

Screenshots are in `shots/`.

— Designer
