{# The site-wide popup: the maintenance notice (app.MAINTENANCE_NOTICE, off when "") and, for the demo accounts only,
the sign-up notice with its link (owner, 2026-10-11: demo visitors still see it). The signed-out landing page has no
popup since the landing rebuild (owner, 2026-10-08); it carries the sign-up link instead. #}
{% set npath = request.url.path if request else '' %}
{% set signup_cta = signup_on() and is_demo(user) and npath != '/signup' %}
{% if maintenance_notice() or signup_cta %}
{% endif %}
{# The follow-a-strategy popup (owner, 2026-10-21, replacing the add-email popup): a compact /strategy/pick for a
registered account that follows nothing yet (app.follow_prompt), once per browser session, so a new player can be
following a style in about 30 seconds. It posts to /strategy/pick at standard sizing; Kelly and the tweak drawer
stay on the full page. #}
{% set fp = follow_prompt(user, npath) if not (maintenance_notice() or signup_cta) and request else None %}
{% if fp %}
{% endif %}