import { Steps } from '@astrojs/starlight/components';
import Figure from '@components/Figure.astro';

**Who this is for:** a new partner (Owner) who wants to resell Aymar Agents under their own brand —
before this walkthrough, your console works, but your customers see Aymar Agents's default brand instead
of yours.

**Requirements:** an active partner account with the **Owner** role — Brand, Domain, Plans and Team are
Owner-only actions ([Getting started](/docs/en/getting-started/)); a Member can follow the customer-onboarding
step, but not the brand, domain or plans steps.

## What you'll end up with

By the end, your customers log into **their** Platform under your domain (or the default domain while you
verify yours), with your logo, your colors and your default language — never the "Aymar Agents" name
visible. You'll have at least one plan of your own, with your own price, ready to assign. And your first
customer already exists: their administrator can log in and start configuring their agent.

## Steps in the console

<Steps>

1. **Log into your console** with your email and password — it's a separate application from your
   customers' Platform, with its own login. See **[Access and summary](/docs/en/getting-started/)**.

2. **Customize your brand**, under **Brand**: choose your **primary color** and **accent color**, enter
   your **product name** (what your customers see instead of "Aymar Agents"), your **default language**
   and, if you want to replace the Platform's default legal pages, your own **terms and conditions** and
   **privacy policy** URLs — leave them empty to keep the Platform's defaults. Upload your three images:
   **light-background logo**, **dark-background logo** and **favicon**. Tap **Save changes**.

   <Figure
     src="/captures/partner-marca-branding.png"
     alt="Brand page with the Primary color and Accent color pickers in purple, the Product name field set to &quot;Horizonte Inmobiliaria Digital&quot;, the Default language selector on ES, the empty Terms URL and Privacy policy URL fields with the note &quot;Leave it empty to use the Platform's default legal pages&quot;, the &quot;Changes saved&quot; notice, the Save changes button, and three blocks — Light-background logo, Dark-background logo and Favicon — each with an Upload button"
     caption="Colors, product name, language and legal pages — plus the three logos that replace the Platform's own brand everywhere your customer looks."
   />

3. **Register your own domain**, on the same Brand screen, under "Your own domain": type the full domain
   you want to use (for example `app.youragency.com`). The console gives you the **Name** and **Value** of
   the CNAME record you need to add with your domain provider — outside the Platform. Your domain stays in
   **"Pending verification"** status until the system detects the DNS record (it checks automatically every
   15 minutes; "Refresh status" only re-reads the latest result, it doesn't force a new check).

   <Figure
     src="/captures/partner-marca-dominio-dns.png"
     alt="Custom domain section with &quot;app.partnerdemo.es&quot; in Pending verification status, the text &quot;We haven't detected the DNS record yet — the system checks automatically every 15 minutes, use Refresh status to see the latest result on screen&quot;, and below it the start of the &quot;Set up this DNS record&quot; table"
     caption="While the DNS isn't verified yet, your customers keep logging in through the Platform's default URL — nothing breaks."
   />

4. **Create your first plan**, under **Plans**: tap **"Create plan"** and fill in the guided form — name,
   price, currency, core instances (channels, agents, flows…) and the integrations it includes. The editor
   itself deducts every capacity from **your own pool** with the Platform in real time, so you can never
   create a plan that exceeds what you have available. See **[Your plans and AI
   catalog](/docs/en/guides/planes-ia/)**.

   <Figure
     src="/captures/partner-planes-tabla.png"
     alt="Plans table with one row: Plan Esencial, plan-esencial, v1, 49 EUR, Active, 0 subscribers, with the New version and Archive buttons"
     caption="Your plan is published with its own price — ready to assign to a customer in the next step."
   />

5. **Onboard your first customer**, under **Customers**: tap **"New customer"**, enter the business name,
   the email and initial password for their administrator, choose the language and, if applicable, their
   vertical. See **[Customers](/docs/en/guides/clientes/)**.

   <Figure
     src="/captures/partner-cliente-alta-relleno.png"
     alt="Filled-in New client modal with Business name &quot;Inmobiliaria Prueba Partner&quot;, Slug &quot;inmobiliaria-prueba-partner&quot;, Administrator name &quot;Ana Prueba&quot;, Email &quot;ana@partnerprueba.dev&quot;, Initial password, Language ES and Vertical Real estate"
     caption="The same sign-up mechanism the public self-service registration uses — only triggered by you, as a partner."
   />

6. **Assign your plan to the new customer**, from the Plans table: tap **"Assign"** on the plan's row,
   confirm the target customer — their subscription changes instantly.

</Steps>

## What your customer sees

Their administrator logs into the Platform under **your** brand: your logo, your colors and your product
name on every screen, in every email they get and in the widget they install on their own site — never
"Aymar Agents". If you've already verified your own domain, they log in through your URL; if not, they
keep using the Platform's default URL without anything breaking. And if you have the documentation portal
enabled for your brand, their public documentation lives under your own docs subdomain, with the same
customization.

## What to configure

- **Brand**: colors, product name, default language, legal pages (optional) and the three logos.
- **Own domain**: optional but recommended — while it's not verified, your customers use the default URL
  with no issue at all.
- **At least one plan of your own**: with your price and the capacities it includes, within your pool.
- **The first customer**: business name, administrator and, if applicable, vertical.

## Limits and honesty

- Brand, Domain, Plans and Team are actions exclusive to the **Owner** role — a Member can see them but
  can't save changes to them.
- The **"Verified"** domain status only confirms your DNS points correctly — it's the necessary foundation,
  but hosting under your own domain is a later step; in the meantime your customers keep logging in through
  the Platform's default URL.
- Every capacity in a new plan is deducted from your own **pool** with the Platform — you can't offer more
  than what your provider assigned you. See **[Your plans and AI catalog](/docs/en/guides/planes-ia/)**, the
  "Your capacity pool" section.
- There's no bulk "delete" button for your brand or domain: every change is saved or undone one at a time,
  from the same screen.

## See also

- **[Access and summary](/docs/en/getting-started/)** — Owner/Member roles and what each one sees.
- **[Customers](/docs/en/guides/clientes/)** — the full onboarding, seats and custom plans procedure.
- **[Your plans and AI catalog](/docs/en/guides/planes-ia/)** — pricing, versions, capacity pool.
- **[Brand, team, announcements and activity](/docs/en/guides/marca-equipo/)** — everything else that
  customizes your console.