{# newsletter-signup (terminal override) — the {% signup_form %} tag carries the #}
{# untouchable subscribe wiring (/api/lists/subscribe HTMX post + honeypot); #}
{# this template supplies only the terminal chrome around it. #}
<section class="py-12 bg-background text-foreground md:py-16{% if class %} {{ class }}{% endif %}">
<div class="mx-auto max-w-3xl px-4">
<div class="tty-corners rounded-md {% if layout == "inline" %}bg-primary px-6 py-10 text-primary-foreground tty-frame md:px-12{% else %}border border-dashed border-primary/40 bg-card px-6 py-10 text-card-foreground tty-frame md:px-10{% endif %} text-center">
{% if title %}<h2 class="terminal-heading text-2xl font-semibold tracking-tight md:text-3xl" data-text="{{ title }}">{{ title }}</h2>{% endif %}
{% if description %}<p class="terminal-page mx-auto mt-3 max-w-xl {% if layout == "inline" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}">{{ description }}</p>{% endif %}
<div class="mx-auto mt-6 max-w-md">{% signup_form list=listSlug source=source submit=submitText success_message=successMessage placeholder=placeholder %}</div>
</div>
</div>
</section>
