Invisible Offer 4
Invisible offer, the receipt of today: “Today: $0” set huge with the exact later charge beneath it, and a fanned hand of day cards the visitor scrubs through to see what they will have done by each day, ending on the charge day. One start button closes it.
Use it in a prompt
Use offer/invisible-offer-4 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/offer/invisible-offer-4.tsx. - Import it and pass your copy and images (Props tab):
import { InvisibleOffer4 } from "@/components/funneldna/offer/invisible-offer-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/invisible-offer-4/component.tsx 590 lines
// layout: card-fan
// Invisible offer, the receipt of today: “Today: $0” set huge with the exact later charge beneath it, and a fanned hand of day cards the visitor scrubs through to see what they will have done by each day, ending on the charge day. One start button closes it.
import * as React from 'react';
import { CalendarClock, ShieldCheck } from 'lucide-react';
import { Divider, FX_HOST, Glow, Spot } from '../fx/fx';
import torn from '../fx/dividers/torn';
export type InvisibleOffer4Milestone = {
/** Trial day this card stands for (day 1 = the day they start). */
day: number;
/** Supplied calendar date for that day, e.g. 'Nov 28'. */
date?: string;
/** Overrides the day chip text. */
tag?: string;
/** What they will have done by this day. */
title: React.ReactNode;
detail?: React.ReactNode;
/** Imported fx Spot illustration, e.g. import chart from '../fx/spots/chart'. */
spot?: string;
};
export type InvisibleOffer4State = 'default' | 'hover' | 'active' | 'focus' | 'disabled' | 'charge-day';
/**
* String props may use {amount} {date} {cancelBy} {product} {chargeDay} {trialDays} {today};
* readout and value lines also take {day} and {daysLeft}; chips take {day}.
*/
export type InvisibleOffer4Props = {
productName?: string;
/** Wrap the one key phrase in <mark>; it is set brighter than the rest of the line. */
headline?: React.ReactNode;
lead?: React.ReactNode;
todayLabel?: string;
/** Superscript currency mark of the today figure. */
todayCurrency?: string;
todayFigure?: string;
todayNote?: React.ReactNode;
/** The later charge, e.g. '$29'. */
chargeAmount?: string;
/** Supplied date of the first charge. */
chargeDate?: string;
/** Trial day of the first charge; the scrubber ends here. */
chargeDay?: number;
/** Second statement line; {amount} and {date} are set bold. */
chargeLine?: string;
chargeNote?: React.ReactNode;
includedTitle?: React.ReactNode;
/** What they get the moment they start. */
included?: React.ReactNode[];
/** Last moment to cancel and pay nothing. Empty hides the cancel line. */
cancelBy?: string;
/** {cancelBy} is set bold. */
cancelLine?: string;
/** How to cancel, in plain steps. */
cancelHow?: React.ReactNode;
/** Day cards for the fan; empty hides the fan and scrubber. */
milestones?: InvisibleOffer4Milestone[];
dayTag?: string;
firstDayTag?: string;
chargeTag?: string;
/** Text on the charge-day card under the amount. */
chargeText?: React.ReactNode;
scrubLabel?: string;
readoutDay?: string;
readoutLeft?: string;
readoutLeftOne?: string;
readoutCharge?: string;
/** Screen-reader value of the scrubber. */
valueText?: string;
valueTextCharge?: string;
/** Trial day the scrubber starts on. */
defaultDay?: number;
onDayChange?: (day: number) => void;
/** Outcome-verb button label. */
label?: string;
/** One reassurance line under the button. */
note?: React.ReactNode;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
/** Torn paper edge into the next (surface) section. */
edge?: boolean;
state?: InvisibleOffer4State;
className?: string;
};
const DEFAULT_INCLUDED: React.ReactNode[] = [
'Full access to everything inside',
'Every update while you try it',
'Help whenever you need it',
];
const DEFAULT_MILESTONES: InvisibleOffer4Milestone[] = [
{ day: 1, title: 'You’re in and set up', detail: 'Everything opens the moment you start.' },
{ day: 7, title: 'A full week of real use', detail: 'Enough time to see how it fits your days.' },
{ day: 14, title: 'Your call: keep it or cancel', detail: 'Cancel now and nothing is ever charged.' },
];
type FanCard = { key: string; day: number; charge: boolean; m?: InvisibleOffer4Milestone };
export function InvisibleOffer4(props: InvisibleOffer4Props) {
const {
productName = '',
headline = (
<>
Start free today. <mark>Decide before you pay.</mark>
</>
),
lead = 'Use everything from day one. Here’s what you’ll have done by each day, and exactly when you’d pay.',
todayLabel = 'Today',
todayCurrency = '$',
todayFigure = '0',
todayNote = 'Nothing is charged when you start.',
chargeAmount = '$29',
chargeDate = 'day 15',
chargeDay = 15,
chargeLine = 'Then {amount} on {date}.',
chargeNote = 'Only if you keep going.',
includedTitle = 'Yours the minute you start',
included = DEFAULT_INCLUDED,
cancelBy = 'the end of day 14',
cancelLine = 'Cancel by {cancelBy} and you pay nothing.',
cancelHow = 'Open Settings, choose Billing, then Cancel trial.',
milestones = DEFAULT_MILESTONES,
dayTag = 'Day {day}',
firstDayTag = 'Today',
chargeTag = 'Day {day}',
chargeText = 'Charged only if you keep going. Cancel by {cancelBy} and this never happens.',
scrubLabel = 'Drag through your {trialDays} free days',
readoutDay = 'Day {day}',
readoutLeft = '{daysLeft} days left to decide',
readoutLeftOne = '1 day left to decide',
readoutCharge = 'First charge, only if you stayed',
valueText = 'Day {day} of {chargeDay}',
valueTextCharge = 'Day {day}: first charge of {amount}',
defaultDay,
onDayChange,
label = 'Start using it free today',
note = '{today} today · cancel by {cancelBy}',
href,
onAction,
disabled = false,
edge = true,
state = 'default',
className,
} = props;
const uid = React.useId().replace(/:/g, '');
const titleId = `io4-t-${uid}`;
const rangeId = `io4-r-${uid}`;
const cDay = Math.max(2, Math.round(chargeDay));
const stops = milestones
.filter((m) => Number.isFinite(m.day) && Math.round(m.day) >= 1 && Math.round(m.day) < cDay)
.map((m) => ({ ...m, day: Math.round(m.day) }))
.sort((a, b) => a.day - b.day);
const hasFan = stops.length > 0;
const clampDay = (d: number) => Math.min(cDay, Math.max(1, Math.round(d)));
const forcedCharge = state === 'charge-day';
const [day, setDayState] = React.useState(() =>
clampDay(forcedCharge ? cDay : (defaultDay ?? stops[0]?.day ?? 1)),
);
React.useEffect(() => {
if (forcedCharge) setDayState(cDay);
}, [forcedCharge, cDay]);
const setDay = (next: number) => {
const d = clampDay(next);
setDayState(d);
onDayChange?.(d);
};
const atCharge = day >= cDay;
let active = 0;
stops.forEach((m, i) => {
if (m.day <= day) active = i;
});
if (atCharge) active = stops.length;
const daysLeft = cDay - day;
const vars: Record<string, string> = {
amount: chargeAmount,
date: chargeDate,
cancelBy,
product: productName,
chargeDay: String(cDay),
trialDays: String(cDay - 1),
today: `${todayCurrency}${todayFigure}`,
};
const fill = (s: string, extra: Record<string, string | number> = {}) =>
s.replace(/[{]([a-zA-Z]+)[}]/g, (match: string, key: string) =>
key in extra ? String(extra[key]) : key in vars ? vars[key] : match,
);
const rich = (n: React.ReactNode) => (typeof n === 'string' ? fill(n) : n);
const emph = (s: string) =>
s.split(/([{](?:amount|date|cancelBy)[}])/).map((part, i) =>
/^[{](?:amount|date|cancelBy)[}]$/.test(part) ? (
<strong key={i}>{fill(part)}</strong>
) : (
<React.Fragment key={i}>{fill(part)}</React.Fragment>
),
);
const cards: FanCard[] = [
...stops.map((m, i) => ({ key: `d${i}-${m.day}`, day: m.day, charge: false, m })),
{ key: 'charge', day: cDay, charge: true },
];
const span = cDay - 1;
const pos = (d: number) => ((d - 1) / span) * 100;
const tagOf = (c: FanCard) =>
c.charge
? fill(chargeTag, { day: c.day })
: c.m?.tag
? fill(c.m.tag, { day: c.day })
: c.day === 1
? fill(firstDayTag, { day: 1 })
: fill(dayTag, { day: c.day });
const chargeDateShown =
chargeDate && chargeDate.toLowerCase() !== fill(chargeTag, { day: cDay }).toLowerCase() ? chargeDate : '';
let lastShown = -100;
const showNum = cards.map((c) => {
if (c.charge) return true;
const p = pos(c.day);
const ok = p - lastShown >= 6 && 100 - p >= 6;
if (ok) lastShown = p;
return ok;
});
const activeCard = cards[active];
const isDisabled = disabled || state === 'disabled';
const force = state === 'hover' || state === 'active' || state === 'focus' ? state : undefined;
const btnClass = cx('io4-btn', force && `is-${force}`);
const showIncluded = included.length > 0;
const showCancel = Boolean(cancelBy && cancelLine);
return (
<section
className={cx('cf-invisible-offer-4', edge && 'has-edge', className)}
style={FX_HOST}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<div className='io4-wrap'>
<div className={cx('io4-grid', !hasFan && 'is-solo')}>
<header className='io4-head io4-rise'>
<h2 id={titleId} className='io4-title'>
{rich(headline)}
</h2>
{lead ? <p className='io4-lead'>{rich(lead)}</p> : null}
</header>
<div className='io4-stmt io4-rise io4-d1'>
<div className='io4-stmt-glow' aria-hidden='true'>
<Glow />
</div>
<p className='io4-today'>
<span className='io4-today-label'>{todayLabel}</span>
<span className='io4-fig'>
<span className='io4-cur'>{todayCurrency}</span>
{todayFigure}
</span>
</p>
{todayNote ? <p className='io4-today-note'>{rich(todayNote)}</p> : null}
{chargeAmount && chargeLine ? <p className='io4-then'>{emph(chargeLine)}</p> : null}
{chargeNote ? <p className='io4-then-note'>{rich(chargeNote)}</p> : null}
</div>
{hasFan ? (
<div className='io4-stage'>
<div className='io4-fan'>
<div className='io4-fan-glow' aria-hidden='true'>
<Glow />
</div>
{cards.map((c, i) => {
const o = i - active;
const ao = Math.abs(o);
const isActive = o === 0;
const hidden = ao > 2;
const style = { '--o': o, '--ao': ao, zIndex: 10 - ao * 2 + (o < 0 ? 1 : 0) } as React.CSSProperties;
const date = c.charge ? chargeDateShown : c.m?.date;
return (
<div
key={c.key}
className={cx(
'io4-card',
isActive && 'is-active',
!isActive && !hidden && 'is-back',
c.charge && 'is-charge',
hidden && 'is-hidden',
)}
style={style}
aria-hidden='true'
onClick={!isActive && !hidden ? () => setDay(c.day) : undefined}
>
<div className='io4-card-top'>
<div>
<span className='io4-chip'>{tagOf(c)}</span>
{date ? <span className='io4-card-date'>{date}</span> : null}
</div>
{c.m?.spot ? (
<span className='io4-card-spot'>
<Spot src={c.m.spot} size={52} />
</span>
) : null}
</div>
{c.charge ? (
<>
<p className='io4-card-amount'>{chargeAmount}</p>
{chargeText ? <p className='io4-card-detail'>{rich(chargeText)}</p> : null}
</>
) : (
<>
<p className='io4-card-title'>{rich(c.m?.title)}</p>
{c.m?.detail ? <p className='io4-card-detail'>{rich(c.m.detail)}</p> : null}
</>
)}
</div>
);
})}
</div>
<div className='io4-scrubber'>
<label htmlFor={rangeId} className='io4-scrub-label'>
{fill(scrubLabel)}
</label>
<div className='io4-readout' aria-hidden='true'>
<span className='io4-readout-day'>{fill(readoutDay, { day, daysLeft })}</span>
<span className='io4-readout-left'>
{atCharge
? fill(readoutCharge, { day, daysLeft })
: daysLeft === 1
? fill(readoutLeftOne, { day, daysLeft })
: fill(readoutLeft, { day, daysLeft })}
</span>
</div>
<div className='io4-scrub' style={{ '--p': pos(day) } as React.CSSProperties}>
<div className='io4-track' aria-hidden='true'>
<div className='io4-rail'>
<div className='io4-fill' />
</div>
{cards.map((c) => (
<span
key={c.key}
className={cx('io4-tick', c.day <= day && 'is-on', c.charge && 'is-charge')}
style={{ left: `${pos(c.day)}%` }}
/>
))}
</div>
<input
id={rangeId}
className='io4-range'
type='range'
min={1}
max={cDay}
step={1}
value={day}
onChange={(e) => setDay(Number(e.target.value))}
aria-valuetext={atCharge ? fill(valueTextCharge, { day, daysLeft }) : fill(valueText, { day, daysLeft })}
/>
</div>
<div className='io4-nums' aria-hidden='true'>
{cards.map((c, i) =>
showNum[i] ? (
<span
key={c.key}
className={cx(c.day <= day && 'is-on', c.charge && 'is-charge')}
style={{ left: `${pos(c.day)}%` }}
>
{c.day}
</span>
) : null,
)}
</div>
<p className='io4-sr' aria-live='polite'>
{tagOf(activeCard)}
{activeCard.charge ? (
<>
: {chargeAmount}. {rich(chargeText)}
</>
) : (
<>
: {rich(activeCard.m?.title)}. {rich(activeCard.m?.detail)}
</>
)}
</p>
</div>
</div>
) : null}
{showIncluded || showCancel ? (
<div className='io4-incl io4-rise io4-d2'>
{showIncluded ? (
<>
{includedTitle ? <h3 className='io4-incl-title'>{rich(includedTitle)}</h3> : null}
<ol className='io4-list'>
{included.map((item, i) => (
<li key={i}>
<span className='io4-num' aria-hidden='true'>
{i + 1}
</span>
<span>{rich(item)}</span>
</li>
))}
</ol>
</>
) : null}
{showCancel ? (
<p className='io4-cancel'>
<CalendarClock className='io4-ico' size={18} strokeWidth={2.5} aria-hidden='true' />
{emph(cancelLine)}
{cancelHow ? <> {rich(cancelHow)}</> : null}
</p>
) : null}
</div>
) : null}
<div className='io4-act io4-rise io4-d3'>
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button
type='button'
className={btnClass}
disabled={isDisabled}
onClick={isDisabled ? undefined : onAction}
>
{label}
</button>
)}
{note ? (
<p className='io4-note'>
<ShieldCheck className='io4-ico' size={18} strokeWidth={2.5} aria-hidden='true' />
{rich(note)}
</p>
) : null}
</div>
</div>
</div>
{edge ? (
<div className='io4-edge' aria-hidden='true'>
<Divider shape='torn' src={torn} tone='surface' height={56} />
</div>
) : null}
</section>
);
}
export default InvisibleOffer4;
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(' ');
}
const CSS = `
.cf-invisible-offer-4{
--io4-soft: color-mix(in oklab, var(--band-ink) 78%, var(--band));
--io4-dim: color-mix(in oklab, var(--band-ink) 64%, var(--band));
--io4-fill: oklch(from var(--accent-fill, var(--accent)) max(l, 0.74) c h);
--io4-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative; overflow: clip; isolation: isolate;
background: var(--band); color: var(--band-ink); font-family: var(--font-body);
padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8.5vw, 120px);
}
.cf-invisible-offer-4.has-edge{ padding-bottom: calc(clamp(64px, 8.5vw, 120px) + 56px); }
.cf-invisible-offer-4 *{ box-sizing: border-box; }
.cf-invisible-offer-4 :where(h2, h3, p, ol, li){ margin: 0; padding: 0; }
.cf-invisible-offer-4 .io4-wrap{ position: relative; z-index: 2; width: min(1120px, calc(100% - 2 * clamp(16px, 5vw, 48px))); margin-inline: auto; }
.cf-invisible-offer-4 .io4-grid{ display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'stmt' 'stage' 'incl' 'act'; }
.cf-invisible-offer-4 .io4-grid.is-solo{ grid-template-areas: 'head' 'stmt' 'incl' 'act'; max-width: 46rem; margin-inline: auto; }
.cf-invisible-offer-4 .io4-head{ grid-area: head; }
.cf-invisible-offer-4 .io4-stmt{ grid-area: stmt; position: relative; margin-top: 32px; }
.cf-invisible-offer-4 .io4-stage{ grid-area: stage; margin-top: 44px; min-width: 0; }
.cf-invisible-offer-4 .io4-incl{ grid-area: incl; margin-top: 40px; }
.cf-invisible-offer-4 .io4-act{ grid-area: act; margin-top: 32px; align-self: start; text-align: center; min-width: 0; }
.cf-invisible-offer-4 .io4-title{ font-family: var(--font-display); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; color: var(--io4-dim); text-wrap: balance; }
.cf-invisible-offer-4 .io4-title mark{ background: none; color: var(--band-ink); }
.cf-invisible-offer-4 .io4-lead{ margin-top: 22px; max-width: 60ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--io4-soft); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-stmt-glow{ position: absolute; left: -12%; top: -35%; width: 72%; height: 170%; z-index: -1; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, currentColor 25%, transparent 100%); mask-image: radial-gradient(closest-side, currentColor 25%, transparent 100%); }
.cf-invisible-offer-4 .io4-today{ display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: clamp(12px, 2vw, 20px); row-gap: 4px; font-family: var(--font-display); font-weight: var(--display-weight, 800); color: var(--band-ink); }
.cf-invisible-offer-4 .io4-today-label{ font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: var(--display-tracking, -0.025em); padding-bottom: 0.12em; }
.cf-invisible-offer-4 .io4-fig{ display: inline-flex; align-items: flex-start; font-size: clamp(4.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cf-invisible-offer-4 .io4-cur{ font-size: 0.4em; line-height: 1; margin-top: 0.1em; margin-right: 0.06em; letter-spacing: 0; color: var(--io4-soft); }
.cf-invisible-offer-4 .io4-today-note{ margin-top: 16px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--io4-soft); }
.cf-invisible-offer-4 .io4-then{ margin-top: 24px; font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.25; font-weight: 600; color: var(--io4-soft); text-wrap: balance; }
.cf-invisible-offer-4 .io4-then strong{ font-weight: 800; color: var(--band-ink); white-space: nowrap; }
.cf-invisible-offer-4 .io4-then-note{ margin-top: 6px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--io4-soft); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-incl-title{ margin-bottom: 16px; font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--band-ink); text-wrap: balance; }
.cf-invisible-offer-4 .io4-list{ list-style: none; display: grid; gap: 12px; }
.cf-invisible-offer-4 .io4-list li{ display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--band-ink); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-num{ font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--band-ink); }
.cf-invisible-offer-4 .io4-cancel{ margin-top: 24px; padding: 16px 20px; border-radius: var(--radius, 12px); background: oklch(from var(--band-ink) l c h / 0.09); font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--band-ink); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-incl > .io4-cancel:first-child{ margin-top: 0; }
.cf-invisible-offer-4 .io4-cancel strong{ font-weight: 800; }
.cf-invisible-offer-4 .io4-ico{ display: inline-block; vertical-align: -0.2em; margin-inline-end: 0.45em; }
.cf-invisible-offer-4 .io4-btn{ display: flex; align-items: center; justify-content: center; width: 100%; max-width: 34rem; margin-inline: auto; min-height: 72px; padding: 12px 28px; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h)); color: var(--button-ink, var(--cta-ink)); font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); text-transform: var(--button-case, none); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.15; text-align: center; text-decoration: none; text-wrap: balance; text-shadow: var(--button-text-shadow, none); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--io4-shadow) calc(l - 0.06) c h / 0.55), 0 8px 16px -6px oklch(from var(--io4-shadow) l c h / 0.6)); cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; -webkit-tap-highlight-color: transparent; }
.cf-invisible-offer-4 .io4-btn.is-hover{ background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h)); transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--io4-shadow) calc(l - 0.06) c h / 0.6), 0 10px 18px -6px oklch(from var(--io4-shadow) l c h / 0.7); }
@media (hover: hover){
.cf-invisible-offer-4 .io4-btn:hover:not(:disabled){ background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h)); transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--io4-shadow) calc(l - 0.06) c h / 0.6), 0 10px 18px -6px oklch(from var(--io4-shadow) l c h / 0.7); }
}
.cf-invisible-offer-4 .io4-btn:active:not(:disabled),
.cf-invisible-offer-4 .io4-btn.is-active{ transform: translateY(1px); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.09) c h)); box-shadow: inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - 0.22) c h / 0.5), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--io4-shadow) l c h / 0.5); }
.cf-invisible-offer-4 .io4-btn:focus{ outline: none; }
.cf-invisible-offer-4 .io4-btn:focus-visible,
.cf-invisible-offer-4 .io4-btn.is-focus{ outline: 3px solid var(--band-ink); outline-offset: 3px; }
.cf-invisible-offer-4 .io4-btn:disabled{ background: oklch(from var(--band-ink) l c h / 0.14); color: color-mix(in oklab, var(--band-ink) 74%, var(--band)); text-shadow: none; box-shadow: none; cursor: not-allowed; transform: none; }
.cf-invisible-offer-4 .io4-note{ margin-top: 12px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--io4-soft); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-fan{ position: relative; display: grid; justify-items: center; container-type: inline-size; padding: 8px 0 48px; }
.cf-invisible-offer-4 .io4-fan-glow{ position: absolute; inset: -6% 6% 4%; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, currentColor 25%, transparent 100%); mask-image: radial-gradient(closest-side, currentColor 25%, transparent 100%); }
.cf-invisible-offer-4 .io4-card{ --sx: clamp(14px, 5.5cqi, 40px); --sr: 4deg; grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; width: min(320px, 66cqi); min-height: 18rem; padding: clamp(20px, 3vw, 28px); border-radius: var(--card-radius, var(--radius, 14px)); border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12)); background: var(--card); color: var(--ink); box-shadow: var(--card-shadow, 0 2px 3px oklch(from var(--band) calc(l - 0.12) c h / 0.5), 0 12px 22px -10px oklch(from var(--band) calc(l - 0.14) c h / 0.7)); transform-origin: 50% 100%; transform: translateX(calc(var(--o) * var(--sx))) translateY(calc(var(--ao) * 14px)) rotate(calc(var(--o) * var(--sr))) scale(calc(1 - var(--ao) * 0.04)); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, box-shadow 0.2s ease, border-color 0.2s ease; user-select: none; -webkit-tap-highlight-color: transparent; }
.cf-invisible-offer-4 .io4-card.is-active{ border-color: color-mix(in oklch, var(--accent) 40%, var(--card)); box-shadow: 0 2px 4px oklch(from var(--band) calc(l - 0.14) c h / 0.55), 0 18px 30px -12px oklch(from var(--band) calc(l - 0.16) c h / 0.8); }
.cf-invisible-offer-4 .io4-card.is-back{ cursor: pointer; }
.cf-invisible-offer-4 .io4-card.is-hidden{ opacity: 0; visibility: hidden; }
@media (hover: hover){
.cf-invisible-offer-4 .io4-card.is-back:hover{ border-color: color-mix(in oklch, var(--accent) 30%, var(--card)); }
}
.cf-invisible-offer-4 .io4-card-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cf-invisible-offer-4 .io4-chip{ display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: color-mix(in oklch, var(--ink) 6%, var(--card)); color: var(--ink); font-size: 0.875rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.cf-invisible-offer-4 .io4-card.is-charge .io4-chip{ background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--card)); }
.cf-invisible-offer-4 .io4-card-date{ display: block; margin-top: 8px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.cf-invisible-offer-4 .io4-card-spot{ flex: none; line-height: 0; margin: -6px -6px 0 0; }
.cf-invisible-offer-4 .io4-card-title{ margin-top: auto; padding-top: 28px; font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.cf-invisible-offer-4 .io4-card-amount{ margin-top: auto; padding-top: 24px; font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cf-invisible-offer-4 .io4-card-detail{ margin-top: 12px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cf-invisible-offer-4 .io4-scrubber{ position: relative; }
.cf-invisible-offer-4 .io4-scrub-label{ display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.4; color: var(--io4-soft); }
.cf-invisible-offer-4 .io4-readout{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 8px; }
.cf-invisible-offer-4 .io4-readout-day{ font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--band-ink); }
.cf-invisible-offer-4 .io4-readout-left{ font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--io4-soft); }
.cf-invisible-offer-4 .io4-scrub{ position: relative; height: 44px; margin-top: 8px; }
.cf-invisible-offer-4 .io4-track{ position: absolute; top: 0; bottom: 0; left: 14px; right: 14px; pointer-events: none; }
.cf-invisible-offer-4 .io4-rail{ position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; overflow: hidden; background: oklch(from var(--band-ink) l c h / 0.2); }
.cf-invisible-offer-4 .io4-fill{ height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: var(--io4-fill); }
.cf-invisible-offer-4 .io4-tick{ position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: oklch(from var(--band-ink) l c h / 0.5); }
.cf-invisible-offer-4 .io4-tick.is-on{ background: var(--band); }
.cf-invisible-offer-4 .io4-tick.is-charge{ width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--band); box-shadow: 0 0 0 3px oklch(from var(--band-ink) l c h / 0.5); }
.cf-invisible-offer-4 .io4-tick.is-charge.is-on{ box-shadow: 0 0 0 3px var(--io4-fill); }
.cf-invisible-offer-4 .io4-range{ -webkit-appearance: none; appearance: none; position: absolute; inset: 0; z-index: 2; width: 100%; height: 44px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.cf-invisible-offer-4 .io4-range:active{ cursor: grabbing; }
.cf-invisible-offer-4 .io4-range:focus{ outline: none; }
.cf-invisible-offer-4 .io4-range::-webkit-slider-runnable-track{ height: 44px; background: transparent; border: 0; }
.cf-invisible-offer-4 .io4-range::-moz-range-track{ height: 44px; background: transparent; border: 0; }
.cf-invisible-offer-4 .io4-range::-webkit-slider-thumb{ -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: 8px; border-radius: 50%; background: var(--field, var(--card)); border: 4px solid var(--io4-fill); box-shadow: 0 1px 2px oklch(from var(--band) calc(l - 0.14) c h / 0.6), 0 6px 12px -4px oklch(from var(--band) calc(l - 0.14) c h / 0.7); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.cf-invisible-offer-4 .io4-range::-moz-range-thumb{ box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--field, var(--card)); border: 4px solid var(--io4-fill); box-shadow: 0 1px 2px oklch(from var(--band) calc(l - 0.14) c h / 0.6), 0 6px 12px -4px oklch(from var(--band) calc(l - 0.14) c h / 0.7); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.cf-invisible-offer-4 .io4-range:hover::-webkit-slider-thumb{ transform: scale(1.08); }
.cf-invisible-offer-4 .io4-range:hover::-moz-range-thumb{ transform: scale(1.08); }
.cf-invisible-offer-4 .io4-range:active::-webkit-slider-thumb{ transform: scale(1.14); }
.cf-invisible-offer-4 .io4-range:active::-moz-range-thumb{ transform: scale(1.14); }
.cf-invisible-offer-4 .io4-range:focus-visible::-webkit-slider-thumb{ box-shadow: 0 0 0 4px oklch(from var(--band-ink) l c h / 0.6), 0 1px 2px oklch(from var(--band) calc(l - 0.14) c h / 0.6); }
.cf-invisible-offer-4 .io4-range:focus-visible::-moz-range-thumb{ box-shadow: 0 0 0 4px oklch(from var(--band-ink) l c h / 0.6), 0 1px 2px oklch(from var(--band) calc(l - 0.14) c h / 0.6); }
.cf-invisible-offer-4 .io4-nums{ position: relative; height: 20px; margin: 6px 14px 0; }
.cf-invisible-offer-4 .io4-nums span{ position: absolute; top: 0; transform: translateX(-50%); font-size: 0.875rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--io4-dim); }
.cf-invisible-offer-4 .io4-nums span.is-on{ color: var(--band-ink); }
.cf-invisible-offer-4 .io4-sr{ position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-invisible-offer-4 .io4-edge{ position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 1; pointer-events: none; }
@keyframes io4-rise{ from{ opacity: 0.82; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
.cf-invisible-offer-4 .io4-rise{ animation: io4-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cf-invisible-offer-4 .io4-d1{ animation-delay: 0.07s; }
.cf-invisible-offer-4 .io4-d2{ animation-delay: 0.14s; }
.cf-invisible-offer-4 .io4-d3{ animation-delay: 0.21s; }
@media (max-width: 639px){
.cf-invisible-offer-4 .io4-card{ --sr: 3deg; }
}
@media (min-width: 960px){
.cf-invisible-offer-4 .io4-grid:not(.is-solo){ grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: 'head head' 'stmt stage' 'incl stage' 'act stage'; grid-template-rows: auto auto auto 1fr; column-gap: clamp(32px, 5vw, 72px); }
.cf-invisible-offer-4 .io4-grid:not(.is-solo) .io4-stage{ margin-top: 32px; position: sticky; top: 24px; align-self: start; }
}
@media (prefers-reduced-motion: reduce){
.cf-invisible-offer-4 .io4-rise{ animation: none; }
.cf-invisible-offer-4 .io4-card, .cf-invisible-offer-4 .io4-btn{ transition: none; }
.cf-invisible-offer-4 .io4-btn:hover:not(:disabled), .cf-invisible-offer-4 .io4-btn.is-hover{ transform: none; }
}
@media (prefers-reduced-motion: reduce){
.cf-invisible-offer-4 .io4-range::-webkit-slider-thumb{ transition: none; }
}
@media (prefers-reduced-motion: reduce){
.cf-invisible-offer-4 .io4-range::-moz-range-thumb{ transition: none; }
}
`;
pieces/offer/invisible-offer-4/specimen.tsx 61 lines
// Specimen: Tallywise, a fictional money app, starting a 30-day free trial of Tallywise Plus.
import * as React from 'react';
import { InvisibleOffer4, type InvisibleOffer4Milestone, type InvisibleOffer4State } from '../invisible-offer-4';
import phone from '../../fx/spots/phone';
import checklist from '../../fx/spots/checklist';
import chart from '../../fx/spots/chart';
import calendar from '../../fx/spots/calendar';
import savings from '../../fx/spots/savings';
export const states = ['default', 'hover', 'active', 'focus', 'disabled', 'charge-day', 'minimal'];
const MILESTONES: InvisibleOffer4Milestone[] = [
{ day: 1, date: 'Nov 22', title: 'Every account on one screen', detail: 'Link your banks and cards and see your real balance.', spot: phone },
{ day: 3, date: 'Nov 24', title: 'Every purchase sorted', detail: 'Tallywise tags each one so you know where it went.', spot: checklist },
{ day: 7, date: 'Nov 28', title: 'Your first budget, built', detail: 'Set limits for groceries, eating out and fun money.', spot: chart },
{ day: 14, date: 'Dec 5', title: 'Bills that never sneak up', detail: 'Reminders land a few days before each bill is due.', spot: calendar },
{ day: 21, date: 'Dec 12', title: 'Money moved to a goal', detail: 'Send what’s left over to the goal you named.', spot: savings },
];
const INCLUDED = [
'Every bank and card account in one view',
'Budgets that sort each purchase for you',
'Bill reminders before anything is due',
];
export default function InvisibleOffer4Specimen({ state = 'default' }: { state?: string }) {
const minimal = state === 'minimal';
const pieceState = (minimal ? 'default' : state) as InvisibleOffer4State;
return (
<InvisibleOffer4
productName='Tallywise Plus'
headline={
<>
Know where every dollar goes. <mark>Today costs you nothing.</mark>
</>
}
lead={minimal ? '' : 'Tallywise Plus is free for 30 days. Drag through the days to see what you’ll have done before you ever pay.'}
todayLabel='Today'
todayCurrency='$'
todayFigure='0'
todayNote='Nothing is charged when you start.'
chargeAmount='$59.99'
chargeDate='December 22, 2026'
chargeDay={31}
chargeLine='Then {amount} on {date}.'
chargeNote='For a full year of Tallywise Plus, only if you keep it.'
includedTitle='Yours the minute you start'
included={minimal ? [] : INCLUDED}
cancelBy='December 21, 2026'
cancelLine='Cancel by {cancelBy} and you pay nothing.'
cancelHow='In the app: Settings, then Plan, then Cancel trial.'
milestones={minimal ? [] : MILESTONES}
chargeText='Charged only if you keep {product}. Cancel by {cancelBy} and this never happens.'
scrubLabel='Drag through your {trialDays} free days'
label='Start sorting my money'
note='{today} today · cancel by {cancelBy}'
href='#start'
state={pieceState}
/>
);
}
| Name | Type | Details |
|---|---|---|
productName OptionalInvisibleOffer4 |
string |
|
headline OptionalInvisibleOffer4 |
React.ReactNode |
|
lead OptionalInvisibleOffer4 |
React.ReactNode |
|
todayLabel OptionalInvisibleOffer4 |
string |
|
todayCurrency OptionalInvisibleOffer4 |
string |
|
todayFigure OptionalInvisibleOffer4 |
string |
|
todayNote OptionalInvisibleOffer4 |
React.ReactNode |
|
chargeAmount OptionalInvisibleOffer4 |
string |
|
chargeDate OptionalInvisibleOffer4 |
string |
|
chargeDay OptionalInvisibleOffer4 |
number |
|
chargeLine OptionalInvisibleOffer4 |
string |
|
chargeNote OptionalInvisibleOffer4 |
React.ReactNode |
|
includedTitle OptionalInvisibleOffer4 |
React.ReactNode |
|
included OptionalInvisibleOffer4 |
React.ReactNode[] |
|
cancelBy OptionalInvisibleOffer4 |
string |
|
cancelLine OptionalInvisibleOffer4 |
string |
|
cancelHow OptionalInvisibleOffer4 |
React.ReactNode |
|
milestones OptionalInvisibleOffer4 |
InvisibleOffer4Milestone[] |
|
dayTag OptionalInvisibleOffer4 |
string |
|
firstDayTag OptionalInvisibleOffer4 |
string |
|
chargeTag OptionalInvisibleOffer4 |
string |
|
chargeText OptionalInvisibleOffer4 |
React.ReactNode |
|
scrubLabel OptionalInvisibleOffer4 |
string |
|
readoutDay OptionalInvisibleOffer4 |
string |
|
readoutLeft OptionalInvisibleOffer4 |
string |
|
readoutLeftOne OptionalInvisibleOffer4 |
string |
|
readoutCharge OptionalInvisibleOffer4 |
string |
|
valueText OptionalInvisibleOffer4 |
string |
|
valueTextCharge OptionalInvisibleOffer4 |
string |
|
defaultDay OptionalInvisibleOffer4 |
number |
|
onDayChange OptionalInvisibleOffer4 |
(day: number) => void |
|
label OptionalInvisibleOffer4 |
string |
|
note OptionalInvisibleOffer4 |
React.ReactNode |
|
href OptionalInvisibleOffer4 |
string |
|
onAction OptionalInvisibleOffer4 |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalInvisibleOffer4 |
boolean |
|
edge OptionalInvisibleOffer4 |
boolean |
|
state OptionalInvisibleOffer4 |
InvisibleOffer4State |
|
className OptionalInvisibleOffer4 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
09bc3d4486616844.webp
image/webp · 23.2 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
-
87170e25e6a4d825.webp
image/webp · 18.7 KB
-
9a2ebdab5ff4fcc4.webp
image/webp · 3.64 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB