""" LedgerLaunchCo multi-channel CTA renderer for Subscription Audit Space. Funnel priority (different from Exit Velocity because LedgerLaunchCo lacks media side): - Primary: Email capture (build owned audience via newsletter) - Secondary: Etsy spreadsheet products (direct revenue) - Tertiary: Pinterest follow + Etsy shop follow """ from __future__ import annotations # LedgerLaunchCo channels โ€” Etsy-first, Pinterest secondary CHANNELS = { "etsy_shop": "https://ledgerlaunch.etsy.com", "etsy_monthly_budget": "https://ledgerlaunch.etsy.com/listing/MONTHLY_BUDGET", # placeholder, update with actual listing IDs "etsy_subscription_tracker": "https://ledgerlaunch.etsy.com/listing/SUBSCRIPTION", "etsy_debt_payoff": "https://ledgerlaunch.etsy.com/listing/DEBT_PAYOFF", "pinterest": "https://pinterest.com/ledgerlaunchco", "newsletter_signup": "https://ledgerlaunch.co/newsletter", # to be wired to MailerLite form "website": "https://ledgerlaunch.co", } UTM_BASE = "?utm_source=hf-space&utm_medium=subscription-auditor&utm_campaign=ai-ecosystem" def url(channel: str, extra: str = "") -> str: base = CHANNELS.get(channel, "") if not base: return "" sep = "&" if "?" in base else "?" base_utm = UTM_BASE.lstrip("?") if extra: return f"{base}{sep}{base_utm}&{extra}" return f"{base}{sep}{base_utm}" def render_top_cta(annual_spend: float | None = None, num_subs: int | None = None) -> str: """Hero CTA โ€” newsletter signup with personalized hook.""" if annual_spend and annual_spend > 1500: hook = ( f"๐Ÿ’ก **${annual_spend:,.0f}/year in subscriptions.** That's real money. " "Want our weekly Subscription Cleanse tips โ€” what to cancel, what to renegotiate, what's worth it?" ) elif num_subs and num_subs > 8: hook = ( f"๐Ÿ’ก You've got **{num_subs} active subscriptions**. " "We send weekly cleanse tips so you can keep that number where you want it." ) else: hook = ( "๐Ÿ’ก **Get the free 7-day Subscription Cleanse.** " "Daily emails that walk you through canceling, renegotiating, and replacing subscriptions you don't need." ) return f""" {hook} ### ๐Ÿ“ง [Get the free 7-day Subscription Cleanse]({url("newsletter_signup")}) *Daily tips. Real cancellation scripts. No spam.* """ def render_product_cta(annual_spend: float | None = None) -> str: """Etsy spreadsheet products โ€” secondary CTA after high-intent tool completion.""" return f""" --- ### ๐Ÿ“Š Track this ongoing You audited subscriptions once. Now keep them tracked โ€” auto-totals, annual cost projections, renewal alerts: [**Subscription Tracker Spreadsheet โ€” $12.99**]({url("etsy_subscription_tracker")}) Or the full toolkit for budget + debt + subscriptions: - [Monthly Budget Tracker โ€” $12.99]({url("etsy_monthly_budget")}) - [Debt Payoff Planner โ€” $14.99]({url("etsy_debt_payoff")}) - [Full shop on Etsy โ†’]({url("etsy_shop")}) *Built by LedgerLaunchCo โ€” spreadsheets for people who actually use spreadsheets.* """ def render_pinterest_cta() -> str: """Pinterest follow โ€” soft CTA for visual learners.""" return f""" --- ### ๐Ÿ“Œ Visual learner? Follow [LedgerLaunchCo on Pinterest]({url("pinterest")}) for weekly subscription-saving infographics. """ def render_social_footer() -> str: return f""" --- #### LedgerLaunchCo โ€” spreadsheets that save you money [Etsy shop]({url("etsy_shop")}) ยท [Pinterest]({url("pinterest")}) ยท [Website]({url("website")}) --- *Built by LedgerLaunchCo. This audit tool is free and your transaction data never leaves Hugging Face's compute โ€” we don't see it, log it, or store it. Only your email (if you submit one) is stored.* """ def render_full_cta_stack(annual_spend: float = 0.0, num_subs: int = 0) -> str: """All CTAs concatenated for results page.""" return "\n".join([ render_top_cta(annual_spend=annual_spend, num_subs=num_subs), render_product_cta(annual_spend=annual_spend), render_pinterest_cta(), render_social_footer(), ]) def render_empty_state_cta() -> str: return f""" --- #### While you're here: [**๐Ÿ“ง Get the free 7-day Subscription Cleanse**]({url("newsletter_signup")}) โ€” daily emails with cancellation scripts. [**๐Ÿ“Š Browse LedgerLaunchCo on Etsy**]({url("etsy_shop")}) โ€” spreadsheets for tracking what you keep. *Spreadsheets that save you money.* """