import { Card, CardGrid, LinkButton, LinkCard } from '@astrojs/starlight/components';
import Faq from '@components/Faq.astro';

The **partner console** is your panel to resell Aymar Agents under your own brand: manage your portfolio of
tenants, charge your customers (or pay a seat fee), customize the look your customers see, and track your
referral commissions.

<div class="dp2-hero-actions">
  <LinkButton href="https://app.aymaragents.com" icon="right-arrow">Go to the console</LinkButton>
  <LinkButton href="/docs/en/getting-started/" variant="secondary" icon="rocket">Get started as a partner</LinkButton>
</div>

## Start here

<CardGrid>
  <LinkCard title="Access and overview" href="/docs/en/getting-started/" description="What the partner console is, and the Owner/Member roles." />
  <LinkCard title="Customers" href="/docs/en/guides/clientes/" description="Sign up a tenant, open their panel and connect their WhatsApp." />
  <LinkCard title="Billing and referrals" href="/docs/en/cobros-referidos/" description="How you charge your customers and how your referrals settle." />
  <LinkCard title="Use cases" href="/docs/en/use-cases/" description="Full white-label branding and your first customer, and the referral program." />
</CardGrid>

## Explore the console

<CardGrid>
  <Card title="Console" icon="rocket">
    - [Get started](/docs/en/getting-started/)
    - [Customers](/docs/en/guides/clientes/)
    - [Brand and team](/docs/en/guides/marca-equipo/)
    - [Account and support](/docs/en/guides/cuenta-soporte/)
  </Card>
  <Card title="Billing and referrals" icon="seti:shell">
    - [How you get paid and how referrals settle](/docs/en/cobros-referidos/)
    - [Billing](/docs/en/guides/facturacion-partner/)
  </Card>
  <Card title="Models and pricing" icon="seti:config">
    - [Models to use and pricing](/docs/en/modelos/)
    - [Plans and AI](/docs/en/guides/planes-ia/)
  </Card>
</CardGrid>

## Tools for your customers

<LinkCard title="API and MCP" href="/docs/en/api-mcp/" description="What your customers and you get: public API and MCP server." />

## Resources

<CardGrid>
  <LinkCard title="Changelog" href="/docs/en/changelog/" description="What's new in the integration surface." />
</CardGrid>

## Frequently asked questions

<Faq items={[
  { question: "What's the difference between Owner and Member?", answer: 'Owner has full access, including financial actions (Wallet, manual charging, own plans, Brand and Domain, Team). Member has the same console but read-only on those actions, though they can do day-to-day operational work: signing up tenants, impersonating, connecting WhatsApp and managing tickets.' },
  { question: 'Where does the partner console live?', answer: "At /partner/* inside the same Admin app, with its own login and its own visual identity — distinct from your customers' Platform and the internal staff panel." },
  { question: 'When do I see "Referrals" in the menu?', answer: "If your account is in White label mode and you haven't had a referral yet, the menu doesn't show it — it reappears as soon as you have your first active one. In Referral mode it's always shown." },
  { question: 'What API and MCP can I offer my customers?', answer: 'See <a href="/docs/en/api-mcp/">API and MCP</a>: the same surface each tenant brand\'s site documents, under your customer\'s own brand.' },
]} />

## Up next

<LinkCard title="Customers" href="/docs/en/guides/clientes/" description="Sign up your first tenant and open their panel." />