<section data-block-override="editorial:pricing" class="py-16 md:py-24 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
  <div class="mx-auto max-w-6xl px-4">
    {% if heading %}<h2 class="editorial-caps text-center text-3xl text-foreground md:text-4xl" style="font-family:var(--font-heading, 'Playfair Display', Georgia, serif)">{{ heading }}</h2>{% endif %}
    {% if intro %}<p class="mx-auto mt-4 max-w-2xl text-center text-lg text-muted-foreground" style="font-family:var(--font-body, 'Source Serif 4', 'Source Serif Pro', Georgia, serif)">{{ intro }}</p>{% endif %}
    <div class="mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
      {% for tier in tiers %}
      <div class="relative flex flex-col p-6 {% if tier.highlighted %}editorial-panel border-[hsl(var(--accent))] bg-card text-card-foreground{% else %}rounded-none border border-[hsl(var(--border))] bg-card text-card-foreground{% endif %}">
        {% if tier.badge %}<span class="editorial-caps absolute -top-3 left-1/2 -translate-x-1/2 border border-[hsl(var(--accent))] bg-card px-3 py-1 text-xs text-[hsl(var(--accent))]">{{ tier.badge }}</span>{% endif %}
        <h3 class="editorial-caps text-center text-lg text-foreground" style="font-family:var(--font-heading, 'Playfair Display', Georgia, serif)">{{ tier.name }}</h3>
        <div class="mx-auto my-3 flex items-center justify-center"><span class="editorial-rule w-12"></span></div>
        <p class="flex items-baseline justify-center gap-1">
          <span class="text-4xl font-bold tracking-tight text-[hsl(var(--accent))]" style="font-family:var(--font-heading)">{% if currency %}{{ currency }}{% else %}${% endif %}{{ tier.price }}</span>
          {% if tier.period %}<span class="text-sm text-muted-foreground">{{ tier.period }}</span>{% endif %}
        </p>
        {% if tier.description %}<p class="mt-3 text-center text-sm text-muted-foreground" style="font-family:var(--font-body, 'Source Serif 4', 'Source Serif Pro', Georgia, serif)">{{ tier.description }}</p>{% endif %}
        {% if tier.features %}<ul class="mt-6 flex-1 space-y-3 text-sm">
          {% for feature in tier.features %}<li class="flex items-start gap-2"><svg class="mt-0.5 h-4 w-4 shrink-0 text-[hsl(var(--accent))]" width="16" height="16" aria-hidden="true"><use href="/icons/lucide.svg#check"></use></svg><span>{{ feature }}</span></li>{% endfor %}
        </ul>{% endif %}
        {% if tier.ctaUrl and tier.ctaLabel %}{% if tier.highlighted %}<a href="{{ tier.ctaUrl }}" class="editorial-button mt-8 inline-flex w-full items-center justify-center">{{ tier.ctaLabel }}</a>{% else %}<a href="{{ tier.ctaUrl }}" class="editorial-link mt-8 inline-flex w-full items-center justify-center">{{ tier.ctaLabel }}</a>{% endif %}{% endif %}
      </div>
      {% endfor %}
    </div>
    {% if billingNote %}<p class="mt-8 text-center text-sm text-muted-foreground">{{ billingNote }}</p>{% endif %}
  </div>
</section>
