carlos / platform Public

spec: domain registration rev 4, domains at the account level

Paul's UX pass 2026-11-03: an account-level Domains page (one card per
domain, bought here or registered elsewhere), a three-step buy (Name,
App, Details and pay) with saved account contacts, and a per-domain
page. Rulings R9-R12; builder check C1-C3 folded in. Mockups under
docs/superpowers/mockups/domains-account. Docs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from design-domains-account into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 0b3098cb83023471f4dcf47c6a484791e0e153a6 parent a1f0ae4
4 files changed, +446 −1
  • docs/superpowers/mockups/domains-account/buy-steps.html +82 −0
  • docs/superpowers/mockups/domains-account/domain-page.html +105 −0
  • docs/superpowers/mockups/domains-account/overview.html +83 −0
  • docs/superpowers/specs/2026-11-01-domain-registration-design.md +176 −1

CI passed — run details

diff --git a/docs/superpowers/mockups/domains-account/buy-steps.html b/docs/superpowers/mockups/domains-account/buy-steps.html
new file mode 100644
index 000000000..42b1735d6
--- /dev/null
+++ b/docs/superpowers/mockups/domains-account/buy-steps.html
@@ -0,0 +1,82 @@
+<style>
+ .cx { font: 14px/1.45 system-ui, sans-serif; color: #1d1b22; background: #faf9fb; }
+ .cx .hdr { display:flex; align-items:center; gap:1.4rem; padding:.7rem 1rem; border-bottom:1px solid #eae7f0; background:#fff; }
+ .cx .hdr .acct { font-weight:600; }
+ .cx .hdr a { color:#6b6676; font-size:13px; }
+ .cx .hdr a.on { color:#1d1b22; font-weight:600; border-bottom:2px solid #6d4aff; padding-bottom:2px; }
+ .cx .body { padding:1rem; }
+ .cx h4 { margin:0 0 .5rem; font-size:18px; }
+ .cx h5 { margin:0 0 .5rem; font-size:14px; }
+ .cx .meta { color:#6b6676; font-size:12px; }
+ .cx .card { background:#fff; border:1px solid #eae7f0; border-radius:8px; padding:.8rem; margin-bottom:.7rem; }
+ .cx .in { border:1px solid #d9d4e3; border-radius:6px; padding:.35rem .55rem; background:#fff; font-size:13px; display:block; }
+ .cx .in.focus { border-color:#6d4aff; box-shadow:0 0 0 3px #ece6ff; }
+ .cx .btn { background:#6d4aff; color:#fff; border-radius:6px; padding:.35rem .7rem; font-size:13px; font-weight:600; display:inline-block; }
+ .cx .btn2 { border:1px solid #d9d4e3; background:#fff; border-radius:6px; padding:.3rem .6rem; font-size:12px; display:inline-block; }
+ .cx .res { display:flex; justify-content:space-between; align-items:center; padding:.45rem .6rem; border:1px solid #eae7f0; border-radius:6px; margin-top:.4rem; font-size:13px; }
+ .cx .res.pick { border-color:#6d4aff; background:#f6f3ff; }
+ .cx .ok { color:#1f7a4d; }
+ .cx .steps { display:flex; gap:.4rem; margin-bottom:.8rem; font-size:12px; }
+ .cx .steps span { padding:.15rem .55rem; border-radius:99px; background:#f0eff2; color:#57525f; }
+ .cx .steps span.on { background:#6d4aff; color:#fff; }
+ .cx .steps span.done { background:#e6f4ec; color:#1f7a4d; }
+ .cx .menu { border:1px solid #d9d4e3; border-radius:6px; margin-top:.25rem; background:#fff; box-shadow:0 6px 18px rgba(30,20,60,.08); font-size:13px; }
+ .cx .menu div { padding:.45rem .6rem; border-top:1px solid #f3f1f6; }
+ .cx .menu div:first-child { border-top:0; }
+ .cx .menu .hl { background:#f6f3ff; }
+ .cx .menu .add { color:#4b2fd0; font-weight:600; }
+ .cx .sum { display:flex; justify-content:space-between; font-size:13px; padding:.25rem 0; }
+ .cx code { font-size:12.5px; }
+</style>
+
+<h2>Three steps, with saved contacts</h2>
+<p class="subtitle">Step 1 and step 3 (step 2 is the app picker you saw). The contact field searches the people this account has registered domains to before. Placeholder wording.</p>
+
+<div class="split">
+<div class="mockup">
+ <div class="mockup-header">Step 1 · Name</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a>Apps</a><a class="on">Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <h4>Buy a domain</h4>
+ <div class="steps"><span class="on">1 Name</span><span>2 App</span><span>3 Details and pay</span></div>
+ <div class="card">
+ <h5>Find a name</h5>
+ <span class="in focus">brightkettle</span>
+ <div class="res pick"><span><code>brightkettle.com</code> <span class="ok">Available</span></span><span>£12 a year</span></div>
+ <div class="res"><span><code>brightkettle.net</code> <span class="ok">Available</span></span><span>£15 a year</span></div>
+ </div>
+ <span class="btn">Next</span>
+ </div>
+ </div>
+</div>
+
+<div class="mockup">
+ <div class="mockup-header">Step 3 · Details and pay (contact list open)</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a>Apps</a><a class="on">Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <h4>Buy a domain</h4>
+ <div class="steps"><span class="done">✓ Name</span><span class="done">✓ App</span><span class="on">3 Details and pay</span></div>
+ <div class="card">
+ <h5>Registered to</h5>
+ <span class="in focus">jo</span>
+ <div class="menu">
+ <div class="hl"><b>Jo Rivera</b> · Northwind Ltd<br><span class="meta">jo@northwind.example · GB · used for 2 domains</span></div>
+ <div><b>Joanna Park</b><br><span class="meta">joanna@example.com · IE</span></div>
+ <div class="add">+ Add a new contact</div>
+ </div>
+ <p class="meta" style="margin:.5rem 0 0">The domain is legally theirs. Their country sets the currency.</p>
+ </div>
+ <div class="card">
+ <div class="sum"><span><code>brightkettle.com</code> for 1 year</span><span>£12</span></div>
+ <div class="sum"><span class="meta">Points at</span><span class="meta">shop</span></div>
+ <div class="sum"><span class="meta">Renews automatically</span><span class="meta">you can turn this off later</span></div>
+ </div>
+ <span class="btn2">Back</span> <span class="btn">Pay £12</span>
+ </div>
+ </div>
+</div>
+</div>
+
+<p class="subtitle" style="margin-top:1rem">"Add a new contact" opens the name, email, address and country fields in place, and saves the contact for next time.</p>
diff --git a/docs/superpowers/mockups/domains-account/domain-page.html b/docs/superpowers/mockups/domains-account/domain-page.html
new file mode 100644
index 000000000..2fd84c90f
--- /dev/null
+++ b/docs/superpowers/mockups/domains-account/domain-page.html
@@ -0,0 +1,105 @@
+<style>
+ .cx { font: 14px/1.45 system-ui, sans-serif; color: #1d1b22; background: #faf9fb; }
+ .cx .hdr { display:flex; align-items:center; gap:1.4rem; padding:.7rem 1rem; border-bottom:1px solid #eae7f0; background:#fff; }
+ .cx .hdr .acct { font-weight:600; }
+ .cx .hdr a { color:#6b6676; font-size:13px; }
+ .cx .hdr a.on { color:#1d1b22; font-weight:600; border-bottom:2px solid #6d4aff; padding-bottom:2px; }
+ .cx .body { padding:1rem; }
+ .cx h4 { margin:0; font-size:18px; font-family: ui-monospace, monospace; }
+ .cx h5 { margin:0 0 .45rem; font-size:14px; }
+ .cx .meta { color:#6b6676; font-size:12px; }
+ .cx .card { background:#fff; border:1px solid #eae7f0; border-radius:8px; padding:.75rem .8rem; margin-bottom:.65rem; }
+ .cx .btn { background:#6d4aff; color:#fff; border-radius:6px; padding:.3rem .65rem; font-size:12px; font-weight:600; display:inline-block; }
+ .cx .btn2 { border:1px solid #d9d4e3; background:#fff; border-radius:6px; padding:.25rem .55rem; font-size:12px; display:inline-block; }
+ .cx .row { display:flex; justify-content:space-between; align-items:center; padding:.35rem 0; font-size:13px; border-top:1px solid #f3f1f6; }
+ .cx .row:first-of-type { border-top:0; }
+ .cx .ok { color:#1f7a4d; } .cx .wait { color:#a15c00; }
+ .cx .pill { display:inline-block; font-size:11px; padding:.05rem .45rem; border-radius:99px; background:#f1edff; color:#4b2fd0; margin-left:.4rem; font-family:system-ui; }
+ .cx .toggle { display:inline-block; width:26px; height:14px; border-radius:99px; background:#6d4aff; position:relative; vertical-align:middle; }
+ .cx .toggle::after { content:""; position:absolute; right:2px; top:2px; width:10px; height:10px; border-radius:50%; background:#fff; }
+ .cx .crumb { font-size:12px; color:#6b6676; margin-bottom:.3rem; }
+ .cx table { width:100%; border-collapse:collapse; font-size:13px; }
+ .cx th { text-align:left; font-size:12px; color:#6b6676; font-weight:600; padding:.35rem .4rem; border-bottom:1px solid #eae7f0; }
+ .cx td { padding:.4rem .4rem; border-bottom:1px solid #f3f1f6; }
+ .cx code { font-size:12.5px; }
+ .cx .apptabs { display:flex; gap:1rem; font-size:13px; border-bottom:1px solid #eae7f0; margin-bottom:.8rem; padding-bottom:.4rem; color:#6b6676; }
+ .cx .apptabs .on { color:#1d1b22; font-weight:600; }
+ .cx .side { display:flex; gap:.9rem; }
+ .cx .side .nav { font-size:13px; color:#6b6676; display:flex; flex-direction:column; gap:.3rem; min-width:6.5rem; }
+ .cx .side .nav .on { color:#1d1b22; font-weight:600; background:#f1edff; border-radius:5px; padding:.1rem .4rem; margin-left:-.4rem; }
+</style>
+
+<h2>A domain's own page, and the app's Domains settings</h2>
+<p class="subtitle">Left: what you see after clicking a domain bought here. Right: the app's Settings → Domains after the change. Placeholder wording.</p>
+
+<div class="split">
+<div class="mockup">
+ <div class="mockup-header">Account → Domains → brightkettle.com</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a>Apps</a><a class="on">Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <div class="crumb">Domains /</div>
+ <div style="display:flex;align-items:center;margin-bottom:.8rem"><h4>brightkettle.com</h4><span class="pill">Bought here</span></div>
+
+ <div class="card">
+ <h5>Addresses</h5>
+ <div class="row"><code>brightkettle.com</code><span>→ <b>shop</b> &nbsp;<span class="ok">● Live</span></span></div>
+ <div class="row"><code>www.brightkettle.com</code><span>→ <b>shop</b> &nbsp;<span class="ok">● Live</span></span></div>
+ <div class="row"><span class="meta">Point another address, like docs.brightkettle.com, at an app</span><span class="btn2">Add address</span></div>
+ </div>
+
+ <div class="card">
+ <h5>Renewal</h5>
+ <div class="row"><span>Renews 4 Nov 2027 for £12</span><span><span class="toggle"></span> Auto-renew</span></div>
+ <div class="row"><span class="meta">Charged to Visa ending 4242</span><span class="btn2">Change card</span></div>
+ </div>
+
+ <div class="card">
+ <h5>Registered to</h5>
+ <div class="row"><span><b>Jo Rivera</b> · Northwind Ltd <span class="meta">· GB</span></span><span class="btn2">Change owner</span></div>
+ <p class="meta" style="margin:.3rem 0 0">Changing the owner emails them to confirm and locks transfers for 60 days.</p>
+ </div>
+
+ <div class="card">
+ <h5>DNS records</h5>
+ <table>
+ <tr><th>Name</th><th>Type</th><th>Value</th></tr>
+ <tr><td>@</td><td>MX</td><td>10 mail.example.net</td></tr>
+ <tr><td>@</td><td>TXT</td><td>v=spf1 include:example.net -all</td></tr>
+ </table>
+ <p class="meta" style="margin:.4rem 0 0">Your app's addresses are managed for you and aren't listed here. <span class="btn2">Add record</span></p>
+ </div>
+
+ <div class="card">
+ <h5>Moving it elsewhere</h5>
+ <div class="row"><span class="meta">Get a transfer code to move it to another registrar. We recommend DNSimple.</span><span class="btn2">Transfer out</span></div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<div class="mockup">
+ <div class="mockup-header">Apps → shop → Settings → Domains</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a class="on">Apps</a><a>Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <div class="apptabs"><span>Overview</span><span>Deploys</span><span>Logs</span><span class="on">Settings</span></div>
+ <div class="side">
+ <div class="nav"><span>General</span><span class="on">Domains</span><span>Email</span><span>Secrets</span></div>
+ <div style="flex:1">
+ <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem"><h5 style="margin:0">Domains for shop</h5><span class="meta">All of Northwind's domains →</span></div>
+ <div class="card" style="padding:.3rem .8rem">
+ <div class="row"><code>brightkettle.com</code><span class="ok">● Live</span></div>
+ <div class="row"><code>www.brightkettle.com</code><span class="ok">● Live</span></div>
+ <div class="row"><code>shop.(platform domain)</code><span class="meta">platform address</span></div>
+ </div>
+ <span class="btn">Buy a domain</span> <span class="btn2">Attach a domain you own</span>
+ <p class="meta" style="margin:.6rem 0 0">Buying here points the new domain at shop for you.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+</div>
+
+<p class="subtitle" style="margin-top:1rem">A domain registered elsewhere gets the same page without Renewal, Registered to and Transfer out. In their place it shows the DNS records to set at your registrar.</p>
diff --git a/docs/superpowers/mockups/domains-account/overview.html b/docs/superpowers/mockups/domains-account/overview.html
new file mode 100644
index 000000000..357266607
--- /dev/null
+++ b/docs/superpowers/mockups/domains-account/overview.html
@@ -0,0 +1,83 @@
+<style>
+ .cx { font: 14px/1.45 system-ui, sans-serif; color: #1d1b22; background: #faf9fb; padding: 0; }
+ .cx .hdr { display:flex; align-items:center; gap:1.4rem; padding:.7rem 1rem; border-bottom:1px solid #eae7f0; background:#fff; }
+ .cx .hdr .acct { font-weight:600; }
+ .cx .hdr a { color:#6b6676; text-decoration:none; font-size:13px; }
+ .cx .hdr a.on { color:#1d1b22; font-weight:600; border-bottom:2px solid #6d4aff; padding-bottom:2px; }
+ .cx .body { padding:1rem; }
+ .cx .top { display:flex; justify-content:space-between; align-items:center; margin-bottom:.8rem; }
+ .cx h4 { margin:0; font-size:18px; }
+ .cx .btn { background:#6d4aff; color:#fff; border-radius:6px; padding:.35rem .7rem; font-size:13px; font-weight:600; }
+ .cx .btn2 { border:1px solid #d9d4e3; background:#fff; border-radius:6px; padding:.3rem .6rem; font-size:12px; color:#1d1b22; }
+ .cx .card { background:#fff; border:1px solid #eae7f0; border-radius:8px; margin-bottom:.7rem; }
+ .cx .card .ch { display:flex; justify-content:space-between; align-items:center; padding:.65rem .8rem; border-bottom:1px solid #f0edf4; }
+ .cx .name { font-weight:600; font-family: ui-monospace, monospace; font-size:13.5px; }
+ .cx .meta { color:#6b6676; font-size:12px; }
+ .cx .pill { display:inline-block; font-size:11px; padding:.05rem .45rem; border-radius:99px; background:#f1edff; color:#4b2fd0; margin-left:.4rem; font-family:system-ui; font-weight:500; }
+ .cx .pill.ext { background:#f0eff2; color:#57525f; }
+ .cx .row { display:flex; justify-content:space-between; padding:.45rem .8rem; font-size:13px; border-top:1px solid #f6f4f8; }
+ .cx .row:first-of-type { border-top:0; }
+ .cx .ok { color:#1f7a4d; } .cx .wait { color:#a15c00; }
+ .cx table { width:100%; border-collapse:collapse; font-size:13px; background:#fff; border:1px solid #eae7f0; border-radius:8px; }
+ .cx th { text-align:left; font-weight:600; font-size:12px; color:#6b6676; padding:.5rem .7rem; background:#f6f4f9; border-bottom:1px solid #eae7f0; }
+ .cx td { padding:.5rem .7rem; border-bottom:1px solid #f0edf4; vertical-align:top; }
+ .cx code { font-size:12.5px; }
+ .cx .toggle { display:inline-block; width:26px; height:14px; border-radius:99px; background:#6d4aff; position:relative; vertical-align:middle; }
+ .cx .toggle::after { content:""; position:absolute; right:2px; top:2px; width:10px; height:10px; border-radius:50%; background:#fff; }
+</style>
+
+<h2>Account → Domains: how should the overview read?</h2>
+<p class="subtitle">Same four domains both ways: two bought here, one brought from elsewhere with two addresses on different apps. Wording is placeholder; it goes through copy review before anything is built.</p>
+
+<div class="split">
+<div class="mockup" data-choice="a" onclick="toggleSelect(this)">
+ <div class="mockup-header">A · One card per domain, its addresses inside</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a>Apps</a><a class="on">Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <div class="top"><h4>Domains</h4><span style="display:flex;gap:.5rem"><span class="btn2">Add a domain you own</span><span class="btn">Buy a domain</span></span></div>
+
+ <div class="card">
+ <div class="ch"><span><span class="name">brightkettle.com</span><span class="pill">Bought here</span></span>
+ <span class="meta">Renews 4 Nov 2027 · £12 &nbsp;<span class="toggle"></span> Auto-renew</span></div>
+ <div class="row"><span><code>brightkettle.com</code></span><span>→ <b>shop</b> &nbsp;<span class="ok">● Live</span></span></div>
+ <div class="row"><span><code>www.brightkettle.com</code></span><span>→ <b>shop</b> &nbsp;<span class="ok">● Live</span></span></div>
+ </div>
+
+ <div class="card">
+ <div class="ch"><span><span class="name">kettle-club.net</span><span class="pill">Bought here</span></span>
+ <span class="meta">Renews 4 Nov 2027 · £15 &nbsp;<span class="toggle"></span> Auto-renew</span></div>
+ <div class="row"><span class="meta">Not pointed at an app yet</span><span class="btn2">Point at an app</span></div>
+ </div>
+
+ <div class="card">
+ <div class="ch"><span><span class="name">example.org</span><span class="pill ext">Registered elsewhere</span></span>
+ <span class="meta">DNS managed at your registrar</span></div>
+ <div class="row"><span><code>www.example.org</code></span><span>→ <b>blog</b> &nbsp;<span class="ok">● Live</span></span></div>
+ <div class="row"><span><code>docs.example.org</code></span><span>→ <b>docs</b> &nbsp;<span class="wait">● Waiting for DNS</span></span></div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<div class="mockup" data-choice="b" onclick="toggleSelect(this)">
+ <div class="mockup-header">B · One table of addresses, ownership as a column</div>
+ <div class="mockup-body cx">
+ <div class="hdr"><span class="acct">Northwind</span><a>Apps</a><a class="on">Domains</a><a>Fleet</a><a>Team</a><a>Billing</a><a>Settings</a></div>
+ <div class="body">
+ <div class="top"><h4>Domains</h4><span style="display:flex;gap:.5rem"><span class="btn2">Add a domain you own</span><span class="btn">Buy a domain</span></span></div>
+ <table>
+ <tr><th>Address</th><th>App</th><th>Status</th><th>Registration</th></tr>
+ <tr><td><code>brightkettle.com</code></td><td>shop</td><td class="ok">● Live</td><td>Bought here · renews 4 Nov 2027</td></tr>
+ <tr><td><code>www.brightkettle.com</code></td><td>shop</td><td class="ok">● Live</td><td>Bought here · renews 4 Nov 2027</td></tr>
+ <tr><td><code>kettle-club.net</code></td><td class="meta">None</td><td class="meta">Not in use</td><td>Bought here · renews 4 Nov 2027</td></tr>
+ <tr><td><code>www.example.org</code></td><td>blog</td><td class="ok">● Live</td><td class="meta">Elsewhere</td></tr>
+ <tr><td><code>docs.example.org</code></td><td>docs</td><td class="wait">● Waiting for DNS</td><td class="meta">Elsewhere</td></tr>
+ </table>
+ <p class="meta" style="margin-top:.6rem">Renewal and transfer live on each bought domain's own page.</p>
+ </div>
+ </div>
+</div>
+</div>
+
+<p class="subtitle" style="margin-top:1rem">Both put Domains in the account's top nav, between Apps and Fleet. My lean is A: it keeps the thing you pay for (the domain) separate from where it points (the addresses), and renewal sits on the card.</p>
diff --git a/docs/superpowers/specs/2026-11-01-domain-registration-design.md b/docs/superpowers/specs/2026-11-01-domain-registration-design.md
index 3db3c9131..0387e211f 100644
--- a/docs/superpowers/specs/2026-11-01-domain-registration-design.md
+++ b/docs/superpowers/specs/2026-11-01-domain-registration-design.md
@@ -1,6 +1,10 @@
# Domain registration: buy a domain and have it just work
-Status: revision 3, APPROVED by Paul 2026-11-01 ("Go"). Builder check round 1 folded in (§10); R8 added. Branch `design-domain-registration`.
+Status: revision 4, APPROVED by Paul 2026-11-03 ("go ahead"): domains
+move to the account level (§11, R9-R12). Revision 3 was APPROVED by Paul 2026-11-01
+("Go"); Plan 1 built on it (20c867c). Where §11 and an earlier section
+disagree, §11 wins. Builder check round 1 folded in (§10); R8 added.
+Branch `design-domains-account`.
Review budget: at most three cross-model rounds (AGENTS.md stopping rules);
the builder check below is round 1.
@@ -448,3 +452,174 @@ Four questions, all settled as my calls without changing what gets built:
- B4. Transfer out cannot carry steering. Settled in §4.3: the export
uses the existing own-DNS guidance shape; the domain becomes an
ordinary custom domain.
+
+## 11. Revision 4: domains belong to the account (2026-11-03)
+
+### 11.1 Why
+
+Paul, 2026-11-03, before the first real flagship purchase: "Wouldn't
+domains be better at the account level?" A bought domain is billed to the
+account, renewed every year, registered to a person and transferred out by
+an owner. Apps come and go; a domain should outlive one and move between
+them. Plan 1 keeps each purchase record in its app's own database
+(`internal/console/domainbuy.go`, `withAutoAppSQL`), so renewals (Plan 3),
+the daily reconcile and transfer out would each have to sweep every app,
+and a domain cannot be bought before an app exists or left parked.
+
+Mockups Paul approved in the UX pass, wording placeholder:
+`docs/superpowers/mockups/domains-account/` (`overview.html` option A,
+`buy-steps.html`, `domain-page.html`). They are layout, not copy.
+
+### 11.2 Rulings (Paul, 2026-11-03)
+
+R9. Domains live at the account level. A new account nav item,
+ **Domains**, between Apps and Fleet.
+R10. The Domains page is an overview of every domain the account uses:
+ ones bought here and ones registered elsewhere and attached to its
+ apps. One card per domain, its addresses inside (mockup option A).
+R11. Buying is three short steps, one at a time: Name, App, Details and
+ pay. Not one long page.
+R12. "Registered to" is a searchable list of the account's saved contacts,
+ ending with "Add a new contact". Editing a saved contact changes
+ future purchases only, never a domain already registered.
+
+### 11.3 The Domains page (R9, R10)
+
+- **One card per registrable domain** (the public-suffix rule the code
+ already uses, `golang.org/x/net/publicsuffix`). Card header: the name and
+ where it is registered, "Bought here" or "Registered elsewhere".
+- **Bought here:** the card also shows the renewal date, the renewal price
+ and the auto-renew switch.
+- **Inside each card:** every address under that domain attached to any of
+ the account's apps (apex, `www`, `docs.` and so on), the app it points at,
+ and the existing attach status (live, waiting for DNS, and so on). A
+ bought domain with no addresses says so and offers "Point at an app".
+- **Registered elsewhere** cards are derived from the apps' existing attach
+ records, grouped by registrable domain. Nothing new is stored for them.
+ Platform-domain addresses (the app's own `*.<apps-domain>` names) are not
+ listed here.
+- **Page actions:** "Buy a domain" (§11.4) and "Add a domain you own",
+ which asks which app and then runs the existing attach.
+- **Clicking a card** opens the domain's own page (§11.6).
+- **The app's Settings → Domains** keeps its current attach and detach,
+ lists only that app's addresses, links to the account's Domains page, and
+ keeps "Buy a domain", which starts §11.4 with that app chosen.
+
+### 11.4 Buying (R11, R12)
+
+Step 1, **Name**: type a name; the catalog's TLDs come back with
+availability and the yearly price. Pick one. Refusals (taken, premium,
+TLD not offered, claimed elsewhere) show here, as Plan 1 already words them.
+
+Step 2, **App**: the account's apps, plus "Not yet". Coming from an app's
+settings, that app is already chosen and can still be changed (my call).
+
+Step 3, **Details and pay**: "Registered to" (§11.5), then a summary
+(domain, price, app or "not pointed at an app yet", auto-renew on), then
+Pay. Currency is unchanged from Plan 1: the account's billing currency
+once it has one; the contact's country only sets it on the account's
+first charge (my call, builder check C1). Pay goes to the existing
+payment page and then the purchase card (0c2ab2e).
+
+"Not yet" changes §5.1 step 5: the purchase captures and records the
+registration but attaches nothing. The zone holds SOA, NS and any customer
+records, with no apex or `www` records until the domain is pointed at an
+app (my call: no parked page in v1). Pointing it later runs the same attach
+as step 5, for the apex and `www`.
+
+The paid-plan rule (§4.1) and the daily cap (§6.4) apply to the account,
+whether or not an app is chosen.
+
+### 11.5 Saved contacts (R12)
+
+- Contacts belong to the account. The list shows the ones used before and
+ any added by hand; "Add a new contact" opens the contact fields in place
+ and saves the contact for next time.
+- Only owners see and use the list, since it is personal data and only
+ owners buy (my call).
+- **Editing a saved contact never changes a registration.** Each
+ registration keeps the registrant it was bought with. At the registrar,
+ an edit therefore makes a new registrant handle; it never modifies a
+ handle a registration already uses (my call: the simplest way to make R12
+ hold).
+- Removing a saved contact removes it from the list only.
+- Plan 1's "reuse the last contact" behaviour becomes "the most recently
+ used saved contact is preselected" (my call).
+- A management view (list, edit, remove) lives on the Domains page (my
+ call; the builder places it).
+
+### 11.6 A domain's own page
+
+For a domain bought here, cards in this order (mockup `domain-page.html`):
+1. **Addresses:** each address, its app and status; "Add address" points
+ another name under the domain (for example `docs.`) at an app.
+2. **Renewal:** date, price, auto-renew switch, the card it will be
+ charged to and "Change card" (the billing page's existing Add a card).
+3. **Registered to:** the registrant, and "Change owner". Changing the
+ owner is a change of registrant at the registry: the owner confirms by
+ email and transfers lock for 60 days. The page says so before the
+ change. **Change owner ships with transfer out (Plan 4)**, not before;
+ until then the card shows the registrant only (my call).
+4. **DNS records:** the customer records of §5.3a (R8). Managed records are
+ not listed; a line says the app's addresses are managed.
+5. **Moving it elsewhere:** transfer out (§4.3).
+
+For a domain registered elsewhere: Addresses, plus the DNS records to set
+at the other registrar (the attach guidance already shown today). No
+Renewal, Registered to or Transfer out.
+
+### 11.7 What changes underneath
+
+- **Registration records move to the account.** The purchase record and
+ the registration it becomes are stored per account, not in an app's
+ database, so renewals, the reconcile and transfer out read one list. The
+ storage mechanism is the builder's.
+- **Migration:** every existing purchase record (dev witnesses, and any
+ flagship purchase made before this ships) moves to the account store
+ once, idempotently, keeping its ID and state. The purchase card URLs keep
+ working (a redirect is enough).
+- **Deleting an app** never deletes a bought domain. Its addresses follow
+ the existing Trash rules: while the app is in Trash they stay with it
+ (the card shows the app as in Trash) and restoring the app keeps them;
+ when the app is purged they detach and the domain shows as not pointed
+ at an app (my call, builder check C2). Deleting the account is still
+ refused while it holds registrations (§4.3).
+- **The chosen app goes away mid-purchase:** payment and registration are
+ never held up by an app's lifecycle. The purchase finishes as a "Not
+ yet" purchase: captured and recorded, nothing attached, and the purchase
+ card says the domain is ready to point at an app (my call, builder check
+ C3).
+- **Purchases in flight** keep their app if one was chosen; the state
+ machine (Plan 1) is unchanged apart from the "Not yet" case above.
+- **CLI** (verbs and flags the builder's, within `carlos domains`): buy
+ with `--app` optional and a saved contact or a contact file; an
+ account-wide list grouped by domain; point a bought domain at an app;
+ list, add, edit and remove saved contacts.
+- **Permissions:** everyone on the account sees the Domains page;
+ buying, auto-renew, contacts, change owner and transfer out are owners
+ only, as buying is today.
+
+### 11.8 Plan order
+
+Revision 4 is folded into Plan 2, ahead of Plan 2's reconcile and apex
+reconverge, because both read the account-level list. Plan 3 (renewals)
+and Plan 4 (customer records, change owner, transfer out) build on it.
+Copy for every new string goes through copy review before it ships (§7.3);
+the mockups' wording is not approved copy.
+
+### 11.9 Left to the builder
+
+- The account-level storage and the migration mechanism.
+- How "Registered elsewhere" cards are assembled from attach records, and
+ how they behave when one domain's addresses sit on several apps.
+- Where the saved-contacts management view sits on the Domains page.
+- Exact CLI verbs and flags.
+
+### 11.10 Builder check (Astra, revision 4)
+
+Astra read §11 as the builder. Three questions, all settled as my calls
+without changing what Paul approved:
+- C1. Currency: Plan 1 keeps the account's established currency; §11.4
+ now says so (the first draft wrongly said the contact's country decides).
+- C2. App Trash and purge: addresses follow the app until purge (§11.7).
+- C3. App deleted mid-purchase: the purchase finishes unpointed (§11.7).