Invisible Offer 1
Invisible offer, the trial calendar: risk reversal made visible. Every day of the free trial runs in one strip (free start, reminder email, exact charge), and the path ends at the start button with the plain terms beside it.
Use it in a prompt
Use offer/invisible-offer 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.tsx. - Import it and pass your copy and images (Props tab):
import { InvisibleOffer } from "@/components/funneldna/offer/invisible-offer"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/invisible-offer/component.tsx 509 lines
// layout: path-to-action
// Invisible offer, the trial calendar: risk reversal made visible. Every day of the free trial runs in one strip (free start, reminder email, exact charge), and the path ends at the start button with the plain terms beside it.
import * as React from "react";
import { CalendarCheck, CreditCard, Mail, ShieldCheck } from "lucide-react";
import { FX_HOST, Pattern } from "../fx/fx";
export type InvisibleOfferDay = "start" | "reminder" | "charge";
export type InvisibleOfferTerm = {
/** Bold lead-in of the numbered reason; strings may use the placeholders below. */
title: React.ReactNode;
text?: React.ReactNode;
};
/**
* Text props may use these placeholders: {trialDays} {reminderDay} {chargeDay} {amount} {period}
* {product} {startDate} {reminderDate} {chargeDate} {daysLeft}. Dates fall back to "Day N" when no
* startDate is given. Day tags also take {day} and {date}; span notes take {from} and {to}.
*/
export type InvisibleOfferProps = {
/** Length of the free trial in days. */
trialDays?: number;
/** Day the reminder email goes out (null hides it). Defaults to two days before the trial ends. */
reminderDay?: number | null;
/** Day the first charge happens. Defaults to the day after the trial. */
chargeDay?: number;
/** Exact amount charged on the charge day, e.g. "$12". */
amount?: string;
/** Billing period written after the amount, e.g. "/month". */
period?: string;
/** Day 1 as an ISO date (YYYY-MM-DD); turns day numbers into real dates. */
startDate?: string;
/** Locale for weekday and month names. */
locale?: string;
productName?: string;
headline?: string;
/** Phrase inside the headline set in the accent colour. */
headlineEmphasis?: string;
lead?: string;
/** Product cut-out beside the headline (slot: product). */
productImage?: string;
productImageAlt?: string;
stripTitle?: string;
legendFree?: string;
legendCharge?: string;
/** Accessible name of the calendar strip. */
calendarLabel?: string;
todayTag?: string;
todayTagDated?: string;
dayTag?: string;
dayTagDated?: string;
startTitle?: string;
reminderTitle?: string;
/** Charge day title; {amount} is set as a big numeral. */
chargeTitle?: string;
/** What happens on each marked day, shown in the line under the strip. */
startDetail?: string;
reminderDetail?: string;
chargeDetail?: string;
/** Phone list: the free days between two marked days. */
spanNote?: string;
spanNoteOne?: string;
termsHeading?: string;
terms?: InvisibleOfferTerm[];
label?: string;
/** Second button line; carries the price. */
sublabel?: string;
/** One short reassurance line under the button. */
note?: string;
/** Big numeral beside the button: what is paid today (empty hides the row). */
todayPrice?: string;
todayPriceLabel?: string;
todayPriceNote?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
/** Marked day shown first in the line under the strip. */
defaultDay?: InvisibleOfferDay;
className?: string;
};
type KeyDay = { kind: InvisibleOfferDay; day: number };
const ICONS = { start: CalendarCheck, reminder: Mail, charge: CreditCard };
const DEFAULT_TERMS: InvisibleOfferTerm[] = [
{ title: "Nothing to pay today.", text: "Your full access starts the moment you begin." },
{ title: "{amount}{period} from {chargeDate}.", text: "Only if you stay. We email you on {reminderDate}, before any charge." },
{ title: "Cancel before {chargeDate}.", text: "You pay nothing at all." },
];
export function InvisibleOffer(props: InvisibleOfferProps) {
const {
trialDays = 14,
reminderDay,
chargeDay,
amount = "$29",
period = "/month",
startDate,
locale = "en-US",
productName = "",
headline = "Nothing hidden. Here's every day of your free trial.",
headlineEmphasis = "every day",
lead = "Free access starts today. We email you on {reminderDate}, before anything is charged. Cancel before {chargeDate} and you pay nothing.",
productImage,
productImageAlt = "",
stripTitle = "{trialDays} days free, then you decide",
legendFree = "Free days",
legendCharge = "First charge",
calendarLabel = "Your {trialDays}-day free trial, day by day",
todayTag = "Today",
todayTagDated = "Today · {date}",
dayTag = "Day {day}",
dayTagDated = "Day {day} · {date}",
startTitle = "Free access starts",
reminderTitle = "We email you",
chargeTitle = "{amount} charged",
startDetail = "Your full access opens. Nothing is charged today.",
reminderDetail = "We email you a reminder. You have {daysLeft} days left to cancel or keep going.",
chargeDetail = "{amount}{period} is charged, only if you kept your trial.",
spanNote = "Days {from}–{to}: full access, nothing charged",
spanNoteOne = "Day {from}: full access, nothing charged",
termsHeading = "Three reasons there are no surprises",
terms = DEFAULT_TERMS,
label = "Yes! Start my free trial",
sublabel = "Free today · then {amount}{period} from {chargeDate}",
note = "",
todayPrice = "$0",
todayPriceLabel = "Due today",
todayPriceNote = "Then {amount}{period} from {chargeDate}, only if you stay.",
href,
onAction,
disabled = false,
state = "default",
defaultDay = "start",
className,
} = props;
const uid = React.useId().replace(/:/g, "");
const headId = `cf-io-h-${uid}`;
const detailId = `cf-io-d-${uid}`;
const td = Math.max(1, Math.round(trialDays));
const cDay = Math.max(2, Math.round(chargeDay ?? td + 1));
const rRaw = reminderDay === undefined ? td - 2 : reminderDay;
const rDay = rRaw != null && rRaw > 1 && rRaw < cDay ? Math.round(rRaw) : null;
const dense = cDay > 21;
const base = parseIso(startDate);
const dateOf = (day: number) => (base == null ? null : new Date(base + (day - 1) * 86400000));
const fmt = (d: Date, opts: Intl.DateTimeFormatOptions) => safeFormat(locale, { ...opts, timeZone: "UTC" }, d);
const dateText = (day: number) => {
const d = dateOf(day);
return d ? fmt(d, { month: "short", day: "numeric" }) : null;
};
const dayLabel = (day: number) => dateText(day) ?? fill(dayTag, { day });
const vars: Record<string, string | number> = {
trialDays: td,
reminderDay: rDay ?? "",
chargeDay: cDay,
amount,
period,
product: productName,
startDate: dateText(1) ?? todayTag,
reminderDate: rDay ? dayLabel(rDay) : "",
chargeDate: dayLabel(cDay),
daysLeft: rDay ? cDay - rDay : "",
};
const f = (t: string, extra?: Record<string, string | number>) => fill(t, extra ? { ...vars, ...extra } : vars);
const fn = (n: React.ReactNode) => (typeof n === "string" ? f(n) : n);
const keys: KeyDay[] = [{ kind: "start", day: 1 }];
if (rDay) keys.push({ kind: "reminder", day: rDay });
keys.push({ kind: "charge", day: cDay });
const [active, setActive] = React.useState<InvisibleOfferDay>(defaultDay);
const current = keys.find((k) => k.kind === active) ?? keys[0];
const refs = React.useRef<Array<HTMLButtonElement | null>>([]);
const tagFor = (k: KeyDay) => {
const d = dateText(k.day);
if (k.kind === "start") return d ? f(todayTagDated, { date: d }) : f(todayTag);
return d ? f(dayTagDated, { day: k.day, date: d }) : f(dayTag, { day: k.day });
};
const titleFor = (k: KeyDay): React.ReactNode =>
k.kind === "start" ? f(startTitle) : k.kind === "reminder" ? f(reminderTitle) : withAmount(chargeTitle, amount, vars);
const detailFor = (k: KeyDay) =>
k.kind === "start" ? f(startDetail) : k.kind === "reminder" ? f(reminderDetail) : f(chargeDetail);
const onKey = (idx: number) => (e: React.KeyboardEvent<HTMLButtonElement>) => {
const dir = e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 0;
if (!dir) return;
e.preventDefault();
refs.current[(idx + dir + keys.length) % keys.length]?.focus();
};
const cells: React.ReactNode[] = [];
let prevKey = 0;
for (let day = 1; day <= cDay; day++) {
const idx = keys.findIndex((k) => k.day === day);
const seg = <span className={`cf-io__seg${day >= cDay ? " cf-io__seg--charge" : ""}`} aria-hidden="true" />;
const delay = { "--i": day - 1 } as React.CSSProperties;
if (idx >= 0) {
const k = keys[idx];
if (prevKey && day - prevKey > 1) {
const from = prevKey + 1;
const to = day - 1;
cells.push(
<li key={`span-${day}`} className="cf-io__span">
{f(from === to ? spanNoteOne : spanNote, { from, to })}
</li>,
);
}
prevKey = day;
const Icon = ICONS[k.kind];
const on = current.kind === k.kind;
cells.push(
<li key={day} className={`cf-io__day cf-io__day--key cf-io__day--${k.kind}`} style={delay}>
<button
type="button"
ref={(el) => {
refs.current[idx] = el;
}}
className="cf-io__key"
aria-pressed={on}
aria-controls={detailId}
onClick={() => setActive(k.kind)}
onFocus={() => setActive(k.kind)}
onKeyDown={onKey(idx)}
>
<span className={`cf-io__disc cf-io__disc--${k.kind}`} aria-hidden="true">
<Icon size={18} strokeWidth={2.5} />
</span>
<span className="cf-io__ktext">
<span className="cf-io__tag">{tagFor(k)}</span>
<span className="cf-io__ktitle">{titleFor(k)}</span>
</span>
</button>
{seg}
</li>,
);
} else {
const d = dateOf(day);
cells.push(
<li key={day} className="cf-io__day cf-io__day--plain" aria-hidden="true" style={delay}>
<span className="cf-io__cell">
{d ? (
<span className="cf-io__wd">
<span className="cf-io__wd-s">{fmt(d, { weekday: "short" })}</span>
<span className="cf-io__wd-n">{fmt(d, { weekday: "narrow" })}</span>
</span>
) : null}
<span className="cf-io__num">{d ? d.getUTCDate() : day}</span>
</span>
{seg}
</li>,
);
}
}
const isDisabled = disabled || state === "disabled";
const ctaClass = `cf-io__cta${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`;
const ctaInner = (
<>
<span className="cf-io__cta-l">{f(label)}</span>
{sublabel ? <span className="cf-io__cta-s">{f(sublabel)}</span> : null}
</>
);
const DetailIcon = ICONS[current.kind];
return (
<section
className={`cf-io${dense ? " cf-io--dense" : ""}${className ? ` ${className}` : ""}`}
style={FX_HOST}
aria-labelledby={headId}
>
<style>{STYLES}</style>
<Pattern name="grid" fade="edges" />
<div className="cf-io__wrap">
<header className={`cf-io__head cf-io__rise${productImage ? " cf-io__head--img" : ""}`}>
<div>
<h2 id={headId} className="cf-io__h">
{renderEmphasis(f(headline), headlineEmphasis ? f(headlineEmphasis) : "")}
</h2>
{lead ? <p className="cf-io__lead">{f(lead)}</p> : null}
</div>
{productImage ? (
<img className="cf-io__product" src={productImage} alt={productImageAlt} width={560} height={560} />
) : null}
</header>
<div className="cf-io__card cf-io__rise" style={{ "--d": ".07s" } as React.CSSProperties}>
<div className="cf-io__bar">
<h3 className="cf-io__h3">{f(stripTitle)}</h3>
<ul className="cf-io__legend">
<li className="cf-io__chip">
<span className="cf-io__dot" aria-hidden="true" />
{f(legendFree)}
</li>
<li className="cf-io__chip">
<span className="cf-io__dot cf-io__dot--charge" aria-hidden="true" />
{f(legendCharge)}
</li>
</ul>
</div>
<ol className="cf-io__days" aria-label={f(calendarLabel)}>
{cells}
</ol>
<p id={detailId} className="cf-io__detail" aria-live="polite">
<span key={current.kind} className="cf-io__swap">
<DetailIcon className="cf-io__dicon" size={18} strokeWidth={2.5} aria-hidden="true" />
<strong>{tagFor(current)}:</strong> {detailFor(current)}
</span>
</p>
</div>
<div className="cf-io__close cf-io__rise" style={{ "--d": ".14s" } as React.CSSProperties}>
<div className="cf-io__terms">
<h3 className="cf-io__h3">{f(termsHeading)}</h3>
<ol className="cf-io__tlist">
{terms.map((t, i) => (
<li key={i} className="cf-io__titem">
<span className="cf-io__tn" aria-hidden="true">
{i + 1}
</span>
<p className="cf-io__tt">
<strong>{fn(t.title)}</strong>
{t.text ? <> {fn(t.text)}</> : null}
</p>
</li>
))}
</ol>
</div>
<div className="cf-io__act">
{todayPrice ? (
<div className="cf-io__due">
<span className="cf-io__due-n">{f(todayPrice)}</span>
<span className="cf-io__due-t">
<span className="cf-io__due-l">{f(todayPriceLabel)}</span>
{todayPriceNote ? <span className="cf-io__due-s">{f(todayPriceNote)}</span> : null}
</span>
</div>
) : null}
{href && !isDisabled ? (
<a className={ctaClass} href={href} onClick={onAction}>
{ctaInner}
</a>
) : (
<button type="button" className={ctaClass} onClick={onAction} disabled={isDisabled}>
{ctaInner}
</button>
)}
{note ? (
<p className="cf-io__note">
<ShieldCheck className="cf-io__nicon" size={16} strokeWidth={2.5} aria-hidden="true" />
{f(note)}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default InvisibleOffer;
function fill(template: string, values: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in values ? String(values[key]) : match));
}
function withAmount(template: string, amount: string, values: Record<string, string | number>) {
const parts = template.split("{amount}");
return parts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 ? <span className="cf-io__amt">{amount}</span> : null}
{fill(part, values)}
</React.Fragment>
));
}
function renderEmphasis(text: string, phrase: string): React.ReactNode {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className="cf-io__em">{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
function parseIso(value?: string) {
if (!value) return null;
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value.trim());
if (!m) return null;
return Date.UTC(Number(m[1]), Number(m[2]) - 1, Number(m[3]));
}
function safeFormat(locale: string, opts: Intl.DateTimeFormatOptions, d: Date) {
try {
return new Intl.DateTimeFormat(locale, opts).format(d);
} catch {
return new Intl.DateTimeFormat("en-US", opts).format(d);
}
}
const STYLES = `
.cf-io{--cf-io-gap:6px;--cf-io-key:156px;--cf-io-sh:var(--shadow,oklch(0.22 0.03 260));--cf-io-btn:var(--button-bg,var(--cta));--cf-io-btn2:var(--button-bg-2,var(--cta-2));--cf-io-glyph:var(--badge-glyph,#fff);position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-io *,.cf-io *::before,.cf-io *::after{box-sizing:border-box}
.cf-io__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-io__head{display:grid;gap:clamp(24px,4vw,56px);align-items:start}
.cf-io__head--img{grid-template-columns:minmax(0,1fr) auto}
.cf-io__h{margin:0 0 16px;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-io__em{color:var(--accent)}
.cf-io__lead{margin:0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-io__product{display:block;width:clamp(200px,22vw,280px);height:auto;aspect-ratio:1;object-fit:contain;margin-top:-8px;border-radius:0;background:none;filter:drop-shadow(0 2px 3px oklch(from var(--cf-io-sh) l c h / .28)) drop-shadow(0 14px 16px oklch(from var(--cf-io-sh) l c h / .18))}
.cf-io__card{margin-top:clamp(32px,4vw,48px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--cf-io-sh) l c h / .22),0 4px 10px -2px oklch(from var(--cf-io-sh) l c h / .2)));padding:clamp(20px,3vw,32px)}
.cf-io__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.cf-io__h3{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-io__legend{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cf-io__chip{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-io__dot{width:10px;height:10px;border-radius:999px;background:var(--success);flex:none}
.cf-io__dot--charge{background:var(--ink)}
.cf-io__days{display:flex;gap:var(--cf-io-gap);margin:24px 0 0;padding:0;list-style:none}
.cf-io__day{position:relative;display:flex;flex:1 1 0;min-width:0;padding-bottom:18px}
.cf-io__day--key{flex:0 0 var(--cf-io-key)}
.cf-io__span{display:none}
.cf-io__cell{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:124px;padding:8px 2px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink)}
.cf-io__wd{font-size:.875rem;font-weight:700;line-height:1.2;color:var(--muted)}
.cf-io__wd-n{display:none}
.cf-io__num{font-family:var(--font-display);font-size:1.0625rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.cf-io__seg{position:absolute;left:0;right:calc(-1 * var(--cf-io-gap));bottom:0;height:6px;background:var(--success);transform-origin:left center;animation:cf-io-draw .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 18ms)}
.cf-io__day:first-child .cf-io__seg{border-radius:3px 0 0 3px}
.cf-io__day:last-child .cf-io__seg{right:0;border-radius:0 3px 3px 0}
.cf-io__seg--charge{background:var(--ink)}
.cf-io__key{appearance:none;flex:1;width:100%;margin:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;min-height:124px;padding:14px;border-radius:10px;border:1px solid oklch(from var(--ink) l c h / .14);background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
.cf-io__key:hover{border-color:oklch(from var(--accent) l c h / .55);transform:translateY(-1px)}
.cf-io__key:active{transform:translateY(0) scale(.99)}
.cf-io__key[aria-pressed=true]{background:color-mix(in oklch,var(--accent) 10%,var(--card));border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),var(--shadow-sm,0 1px 1px oklch(from var(--cf-io-sh) l c h / .18),0 1px 3px oklch(from var(--cf-io-sh) l c h / .14))}
.cf-io__key:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-io__disc{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;flex:none}
.cf-io__disc--start{background:var(--success);color:var(--cf-io-glyph)}
.cf-io__disc--reminder{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-io__disc--charge{background:var(--ink);color:var(--card)}
.cf-io__ktext{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-io__tag{font-size:.875rem;font-weight:700;line-height:1.2;color:var(--muted)}
.cf-io__key[aria-pressed=true] .cf-io__tag{color:var(--ink)}
.cf-io__ktitle{font-family:var(--font-display);font-size:1rem;font-weight:800;line-height:1.2;text-wrap:balance}
.cf-io__amt{font-size:1.625rem;letter-spacing:-0.02em;line-height:1;font-variant-numeric:tabular-nums}
.cf-io__detail{margin:20px 0 0;min-height:56px;padding:14px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-io__detail strong{font-weight:800}
.cf-io__swap{display:block;animation:cf-io-swap .3s cubic-bezier(.2,.7,.2,1) both}
.cf-io__dicon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;color:var(--accent)}
.cf-io__close{margin-top:clamp(24px,3vw,32px);display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(24px,3vw,40px);align-items:start}
.cf-io__terms{padding:clamp(20px,3vw,32px);border-radius:var(--card-radius,var(--radius,14px));background:color-mix(in oklch,var(--ink) 5%,var(--surface));color:var(--ink)}
.cf-io__tlist{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:14px}
.cf-io__titem{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:baseline}
.cf-io__tn{font-family:var(--font-display);font-size:1.625rem;font-weight:800;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-io__tt{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-io__tt strong{font-weight:800}
.cf-io__act{display:flex;flex-direction:column;gap:16px}
.cf-io__due{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;padding:4px 4px 8px}
.cf-io__due-n{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:var(--display-weight,800);letter-spacing:-0.03em;line-height:1;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-io__due-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-io__due-l{font-family:var(--font-display);font-size:1.0625rem;font-weight:800;line-height:1.2;color:var(--ink)}
.cf-io__due-s{font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-io__cta{appearance:none;border:0;margin:0;cursor:pointer;text-decoration:none;width:100%;min-height:72px;padding:12px 28px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));text-transform:var(--button-case,none);color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--cf-io-btn) calc(l + .04) c h),oklch(from var(--cf-io-btn2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cf-io-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--cf-io-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--cf-io-sh) l c h / .3),0 8px 16px -6px oklch(from var(--cf-io-sh) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-io__cta:hover:not(:disabled),.cf-io__cta.is-hover{background:linear-gradient(oklch(from var(--cf-io-btn) calc(l - .01) c h),oklch(from var(--cf-io-btn2) calc(l - .07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cf-io-btn) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--cf-io-btn) calc(l - .2) c h),0 1px 2px oklch(from var(--cf-io-sh) l c h / .34),0 12px 20px -8px oklch(from var(--cf-io-sh) l c h / .5))}
.cf-io__cta:active:not(:disabled),.cf-io__cta.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--cf-io-btn) calc(l - .05) c h),oklch(from var(--cf-io-btn2) calc(l - .09) c h));box-shadow:inset 0 2px 4px oklch(from var(--cf-io-btn) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--cf-io-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--cf-io-sh) l c h / .3)}
.cf-io__cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-io__cta:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:none;transform:none}
.cf-io__cta-l{font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-wrap:balance}
.cf-io__cta-s{font-family:var(--font-body);font-size:.9375rem;font-weight:600;line-height:1.3;text-transform:none;text-wrap:pretty}
.cf-io__note{margin:0;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-io__nicon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;color:var(--success)}
.cf-io__rise{animation:cf-io-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
.cf-io--dense .cf-io__wd,.cf-io--dense .cf-io__num{display:none}
@keyframes cf-io-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-io-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cf-io-swap{from{opacity:.82;transform:translateY(4px)}}
@media (max-width:1100px){.cf-io{--cf-io-gap:4px;--cf-io-key:132px}.cf-io__wd-s{display:none}.cf-io__wd-n{display:inline}}
@media (max-width:900px){
.cf-io__close{grid-template-columns:minmax(0,1fr)}
.cf-io__days{position:relative;flex-direction:column;gap:12px}
.cf-io__days::before{content:"";position:absolute;left:33px;top:36px;bottom:36px;width:4px;border-radius:2px;background:var(--success)}
.cf-io__day{position:relative;z-index:1;flex:none;padding-bottom:0}
.cf-io__day--plain,.cf-io__seg{display:none}
.cf-io__span{display:block;position:relative;z-index:1;padding:2px 0 2px 64px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-io__key{flex-direction:row;align-items:center;gap:14px;min-height:72px;padding:12px 14px}
.cf-io__key:hover{transform:none}
.cf-io__disc{width:40px;height:40px}
.cf-io__disc svg{width:20px;height:20px}
}
@media (max-width:640px){
.cf-io__head--img{grid-template-columns:minmax(0,1fr)}
.cf-io__product{width:200px;margin:0 auto}
.cf-io__cta{padding:12px 18px}
}
@media (prefers-reduced-motion:reduce){
.cf-io__rise,.cf-io__seg,.cf-io__swap{animation:none}
.cf-io__key,.cf-io__cta{transition:none}
.cf-io__key:hover,.cf-io__key:active,.cf-io__cta:hover:not(:disabled),.cf-io__cta.is-hover,.cf-io__cta:active:not(:disabled),.cf-io__cta.is-active{transform:none}
}
`;
pieces/offer/invisible-offer/specimen.tsx 46 lines
import __studioImage75a57cfb from "../assets/494deeb322438e50.webp";
import { InvisibleOffer } from "../invisible-offer";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function InvisibleOfferSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<InvisibleOffer
state={state}
productName="Taskloom"
trialDays={14}
reminderDay={12}
chargeDay={15}
amount="$12"
period="/month"
startDate="2026-11-21"
headline="Nothing hidden. Here's every day of your free Taskloom trial."
headlineEmphasis="every day"
lead="Your planner opens today for $0. We email you on Dec 2, three days before anything is charged. Cancel before Dec 5 and you pay nothing."
productImage={slot(
"product",
__studioImage75a57cfb,
)}
productImageAlt="Taskloom planner open on a tablet"
stripTitle="14 days free, then you decide"
startDetail="Your whole Taskloom workspace opens: every board, template and calendar sync. $0 charged."
reminderDetail="We email you a plain reminder. You still have 3 days to cancel or keep going."
chargeDetail="$12 is charged for your first month, only if you kept your trial. Then $12 each month."
termsHeading="Three reasons there are no surprises"
terms={[
{ title: "$0 today.", text: "Your full Taskloom workspace opens the minute you start." },
{ title: "$12/month from Dec 5.", text: "Only if you stay. Your reminder email lands Dec 2, before any charge." },
{ title: "Cancel in two clicks.", text: "Open Settings, choose Billing, tap Cancel trial. Do it before Dec 5 and you pay nothing." },
]}
label="Yes! Start my free Taskloom trial"
sublabel="Full access today · No charge until Dec 5"
todayPrice="$0"
todayPriceLabel="Due today"
todayPriceNote="Then $12/month from Dec 5, only if you stay."
note="Takes 30 seconds · Cancel anytime in Settings"
/>
);
}
| Name | Type | Details |
|---|---|---|
trialDays OptionalInvisibleOffer |
number |
|
reminderDay OptionalInvisibleOffer |
number | null |
|
chargeDay OptionalInvisibleOffer |
number |
|
amount OptionalInvisibleOffer |
string |
|
period OptionalInvisibleOffer |
string |
|
startDate OptionalInvisibleOffer |
string |
|
locale OptionalInvisibleOffer |
string |
|
productName OptionalInvisibleOffer |
string |
|
headline OptionalInvisibleOffer |
string |
|
headlineEmphasis OptionalInvisibleOffer |
string |
|
lead OptionalInvisibleOffer |
string |
|
productImage OptionalInvisibleOffer |
string |
|
productImageAlt OptionalInvisibleOffer |
string |
|
stripTitle OptionalInvisibleOffer |
string |
|
legendFree OptionalInvisibleOffer |
string |
|
legendCharge OptionalInvisibleOffer |
string |
|
calendarLabel OptionalInvisibleOffer |
string |
|
todayTag OptionalInvisibleOffer |
string |
|
todayTagDated OptionalInvisibleOffer |
string |
|
dayTag OptionalInvisibleOffer |
string |
|
dayTagDated OptionalInvisibleOffer |
string |
|
startTitle OptionalInvisibleOffer |
string |
|
reminderTitle OptionalInvisibleOffer |
string |
|
chargeTitle OptionalInvisibleOffer |
string |
|
startDetail OptionalInvisibleOffer |
string |
|
reminderDetail OptionalInvisibleOffer |
string |
|
chargeDetail OptionalInvisibleOffer |
string |
|
spanNote OptionalInvisibleOffer |
string |
|
spanNoteOne OptionalInvisibleOffer |
string |
|
termsHeading OptionalInvisibleOffer |
string |
|
terms OptionalInvisibleOffer |
InvisibleOfferTerm[] |
|
label OptionalInvisibleOffer |
string |
|
sublabel OptionalInvisibleOffer |
string |
|
note OptionalInvisibleOffer |
string |
|
todayPrice OptionalInvisibleOffer |
string |
|
todayPriceLabel OptionalInvisibleOffer |
string |
|
todayPriceNote OptionalInvisibleOffer |
string |
|
href OptionalInvisibleOffer |
string |
|
onAction OptionalInvisibleOffer |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalInvisibleOffer |
boolean |
|
state OptionalInvisibleOffer |
"default" | "hover" | "active" | "disabled" |
|
defaultDay OptionalInvisibleOffer |
InvisibleOfferDay |
|
className OptionalInvisibleOffer |
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.
--button-2-bg--button-2-ink- Secondary button.
--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-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
494deeb322438e50.webp
image/webp · 28.7 KB