{
  "key": "domain_registrar_access",
  "title": "Give us access to your domain registrar",
  "variables": {},
  "start": "which",
  "steps": [
    {
      "id": "which",
      "owner": "client",
      "instruction": "We need registrar access to launch the site. Also: we recommend Cloudflare for managing your DNS — unless you object, we'll set it up for you.",
      "fields": [
        {
          "key": "registrar",
          "type": "text",
          "label": "Who is your domain registrar? (GoDaddy, Namecheap, ...)",
          "required": true
        },
        {
          "key": "cloudflare",
          "type": "select",
          "label": "Cloudflare for DNS",
          "options": [
            "Fine — set it up",
            "No — leave DNS where it is"
          ],
          "required": true
        }
      ],
      "primary": {
        "label": "Submitted",
        "to": "grant"
      },
      "alternatives": [
        {
          "key": "unknown_registrar",
          "label": "I don't know who our registrar is",
          "kind": "flag",
          "tone": "attention"
        },
        {
          "key": "later",
          "label": "I'll do it later",
          "kind": "flag",
          "tone": "ack"
        }
      ],
      "tutorial": {
        "title": "Finding out who your registrar is",
        "intro": "Your registrar is the company you pay for the domain name each year. If you're not sure, a public lookup will tell you.",
        "steps": [
          {
            "text": "Go to [lookup.icann.org](https://lookup.icann.org) and enter your domain name."
          },
          {
            "text": "Look for the **Registrar** line in the results — that's the company holding your domain.",
            "note": "Common ones: GoDaddy, Namecheap, Squarespace/Google Domains, Network Solutions, Wix, Shopify.",
            "image": "asset://reg-01-icann-lookup.png"
          },
          {
            "text": "Still stuck? Search your email inbox for \"domain renewal\" — the annual invoice names the registrar.",
            "note": "If nothing turns up, tell us in a comment and we'll look it up with you."
          }
        ]
      }
    },
    {
      "id": "grant",
      "owner": "client",
      "instruction": "If it's **GoDaddy**: invite **rian@rian.ca** as a delegate (Account Settings > Delegate Access). Any other registrar: add rian@plusroi.com as a user, or tell us in a comment how you'd like to share it.",
      "primary": {
        "label": "Granted",
        "to": "verify"
      },
      "alternatives": [
        {
          "key": "trouble",
          "label": "Having trouble",
          "kind": "flag",
          "tone": "attention"
        }
      ],
      "tutorial": {
        "title": "Giving us registrar access",
        "intro": "Every registrar words this differently — here's the most common one, plus what to look for anywhere else.",
        "steps": [
          {
            "text": "**GoDaddy:** open **Account Settings** > **Delegate Access**, click **Invite to Access**, and invite us with the **Products & Domains** permission.",
            "image": "asset://reg-02-godaddy-delegate.png"
          },
          {
            "text": "**Anywhere else:** look in your account settings for a section called **Users**, **Team**, **Delegate access**, or **Sharing** — and invite us there.",
            "note": "Some registrars have no way to share access at all. If yours doesn't, don't send us your password — press \"Having trouble\" and we'll walk through the alternatives with you."
          },
          {
            "text": "Once the invite is sent, press **Access granted**.",
            "note": "We only touch DNS records — never billing, and never the domain's ownership."
          }
        ]
      }
    },
    {
      "id": "verify",
      "owner": "team",
      "instruction": "Confirm we can reach the DNS settings.",
      "primary": {
        "label": "We're in",
        "to": "$done"
      },
      "alternatives": [
        {
          "key": "not_in",
          "label": "Can't get in — back to the client",
          "kind": "jump",
          "to": "grant"
        }
      ]
    }
  ]
}
