{# Popular badge/ribbon #}
{% if c.popular %}
{{ c.popular_text|default('Most Popular')|escape }}
{% endif %}
{# Card header with pricing #}
{{ c.plan_name|escape }}
{{ c.price_value|escape }}
{% if c.price_suffix %}
{{ c.price_suffix|escape }}
{% endif %}
{% if c.description %}
{{ c.description|sanitize_html }}
{% endif %}
{# Features list #}
{% if c.features|length %}
{% for f in c.features %}
{% if s.feature_style != 'hide' or f.included %}
-
{% if s.feature_icon != 'none' %}
{% endif %}
{{ f.feature_label|escape }}
{% if not f.included %}
(not included)
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{# CTA buttons with proper touch targets #}
{% if c.cta_primary_text and c.cta_primary_url %}
{% set target_attrs = c.new_tab ? 'target="_blank" rel="noopener noreferrer"' : '' %}
{% set aria_label = c.cta_primary_aria|default(c.cta_primary_text ~ ' for ' ~ c.plan_name) %}
{{ c.cta_primary_text|escape }}
{% endif %}
{% if c.cta_secondary_text and c.cta_secondary_url %}
{% set target_attrs = c.new_tab ? 'target="_blank" rel="noopener noreferrer"' : '' %}
{% set aria_label = c.cta_secondary_aria|default(c.cta_secondary_text ~ ' for ' ~ c.plan_name) %}
{{ c.cta_secondary_text|escape }}
{% endif %}
{# Disclaimer/fine print #}
{% if c.disclaimer %}
{{ c.disclaimer|escape }}
{% endif %}
{# Structured data for SEO if enabled #}
{% if a.structured_data %}
{% endif %}
{# Critical inline CSS for above-fold - mobile-first #}
{# Non-critical CSS loaded async #}
{% require_css %}
{% end_require_css %}
{# Dark mode handled automatically via theme's semantic color variables (--color-bg, --color-text, --color-primary) #}