Marketing Sections
Pricing Stack
A membership pricing card: a segmented monthly/annual switch whose pill thumb slides, a price that rolls between £5 a month and £50 a year (with 'two months free' fading in on annual), four features whose accent check marks redraw on every plan change, one accent button and a mono fine-print line. The plan flips itself every few seconds; a click or keyboard toggle takes over.
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
When to use it
Pricing sections and upgrade prompts for subscription products; single-plan offers with a billing-period choice.
When not to
Multi-tier comparison tables, or products without a billing-period choice.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Edit the two prices in the .ps08-roll spans and the per-period labels in set(), the feats array, the button label and fine print; change the demo cadence FLIP=3600 or remove the clock in a product. Re-theme to light by setting --pro-bg:#fafaf8; --pro-surface:#f4f4f0; --pro-border:rgba(0,0,0,.08); --pro-text:#1a1a18; --pro-muted:#6b6b66 (keep --pro-accent, or use #1a7a50 for warm paper), and update the catalog bg field to match. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- theme tokens (:root --pro-bg, --pro-surface, --pro-border, --pro-text, --pro-muted, --pro-accent)
- prices (.ps08-roll spans) and period labels in set()
- feats array (feature list) and the note text
- demo cadence (FLIP) and the roll/draw durations (.5s roll, .4s checks)
- button + fine-print copy
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- :root --pro-* token block (renaming breaks the shared pro theming API)
- role=switch + aria-checked on the segmented control (keyboard: space / enter)
- IIFE wrapper
- list built from the feats array
- prefers-reduced-motion guard (monthly card, checks drawn, switch still works)
- visibilitychange pause
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Light re-theme via the --pro-* block; catalog bg/accent describe the dark default
- Prices are static copy — no currency formatting or tax logic
- The demo flip is for the wall; set demo=false in a product
More Marketing Sections components
- Logo Wall MarqueeA 'Trusted by teams at' social-proof section: two rows of invented, purely geometric company marks on chips, marqueeing in opposite directions on a…
- CTA BannerA centered call-to-action band on a slowly shifting amber-to-tan gradient, with a rotating eyebrow tag, a bold headline, a subline, a white primary button…
- Hairline CTAA calm call-to-action card: a hairline frame traced by one slow running dash, a mono eyebrow with a heartbeat dot cycling quiet facts, a lowercase…
- Agent Handoff CTAA two-register call to action: the human side carries a lowercase headline, a subline and one accent button; the machine side is a mono bundle (id,…
- Founding OfferA founding-member offer card: '£399, once', a short subline, a seat meter (hairline track, accent fill with a slow travelling highlight, ten ticks, a…
- Availability SignalA parchment card stating availability plainly: a display figure of free slots (Pompeii when scarce), six engraved slot marks, a lede and an 'Ask about a…