# ATO page: account for an ATO on the ATO plan (R3,999 / month excl. VAT)

**Status:** this is a design mock with demo data. It isn't live, merged or wired to anything. 12 Nov 2026.
**The Team (sub-accounts) section is a PROPOSAL.** No table, route or rule exists for it yet, and it goes against DECISIONS-MASTER §6. See `SUB-ACCOUNTS-PROPOSAL.md`.

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

| Query | Shows |
|---|---|
| `?t=pearl\|midnight\|amethyst\|champagne` | theme |
| `?state=paying` *(default)* | ATO plan active, renews 2 Dec 2026 |
| `?state=new` | paying, day 18 of 30 (page extras still locked) |
| `?state=ending` | renewal cancelled; the page goes private on 2 Dec 2026, with lists of what it loses and keeps |
| `?state=lapsed` | Premium ended |
| `?state=pending` | claim sent, Go Around is checking it |
| `?state=unpaid` | claim approved, plan not started |
| `&sheet=invite\|member\|roles\|cancel` `&m=<index>` | opens that sheet |
| `&tab=all\|Admin\|Instructor\|Student\|invites` | team filter |

The demo ATO is **Demo ATO** (`demoato.official`, gold tick):
- Rating 4.6 from 38 ratings, 31 of them written; 33 rated 4.0 or higher.
- Certificates DEMO/0001/ATO (FACT, current) and DEMO/0002/ATO (FAGG, no expiry date on the public list).
- Team: 10 of 25 seats used (9 active and 1 invite), plus one expired invite.

## Sections and where the data comes from

| Section | Data |
|---|---|
| **Hero** | `schools` (name, kind, status, handle); `school_rating` (n, sums, n_written, n_hi); `certificates` (bases); gold ATO tick (computed); plan, renewal, seats |
| **ATO plan** | `schoolPremiumStatus` (paying, renews_on, ending, private_from, in_grace, will_go_private, keeps); `mySchool` (claim, approved, handle, official, paid_until); `SCHOOL_PREMIUM_LOSES`, `EXTRAS` and `KEEPS` give the loses and keeps lists; page extras unlock after 30 paid days |
| **Team** (PROPOSAL) | None of this exists yet. See the proposal. |
| **Reviews** | One pool for the whole ATO. Shows recent reviews with no official reply yet. Replies appear as `<handle>.official`. The ATO login can vote but can't write star reviews. |
| **Page extras** | `school_posts`: modules for announcements, prices, jobs, fleet, intakes and links; each is pending or approved; MT reviews every change. |
| **Certificates and details** | `certificates` (number, expiry, so Current, Expired or Unknown; aerodrome_code; base); `school_courses`; phone, email and website from `schools`; about text written by Go Around; "Request a change" leads to `data_requests` |
| **ATO login** | The one school login: a code sent to the email (`/api/school/login/start`), passkeys, sessions, sign out everywhere |

## Layout
- **Phone:** one column. The member's role shows in the subtitle, and invite emails wrap at the `@`.
- **760 px and up:** the team list becomes a table (member, role, status, since).
- **1024 px and up:** a sticky rail with the hero and section index.
- **iPad:** swipe back to "Your page" (`../ipad-swipe/`).

Screenshots are in `shots/`.

— Designer
