Invisible Offer 3
Invisible offer, the what-if toggle. One switch shows both endings of a free trial side by side: stay and pay the stated amount on the stated date, or cancel in the listed steps and pay nothing. That leaves "free trials are a trap" nowhere to hide, and one start button holds under both.
Use it in a prompt
Use offer/invisible-offer-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { InvisibleOffer3 } from "@/components/funneldna/offer/invisible-offer-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/invisible-offer-3/component.tsx 636 lines
// layout: split-contrast
// Invisible offer, the what-if toggle. One switch shows both endings of a free trial side by side: stay and pay the stated amount on the stated date, or cancel in the listed steps and pay nothing. That leaves "free trials are a trap" nowhere to hide, and one start button holds under both.
import * as React from "react";
import { Check, DoorOpen, Heart, ShieldCheck } from "lucide-react";
import { FX_HOST, Pattern, Spot } from "../fx/fx";
import calendar from "../fx/spots/calendar";
import shield from "../fx/spots/shield";
export type InvisibleOffer3Choice = "love" | "leave";
/**
* String text props may use these placeholders: {date} (chargeDate), {amount} (chargeCurrency + chargeFigure)
* and {product} (productName).
*/
export type InvisibleOffer3Props = {
productName?: string;
/** Wrap the one key phrase in <mark> for the marker stroke. */
headline?: React.ReactNode;
lead?: React.ReactNode;
/** Accessible name of the toggle. */
toggleLabel?: string;
loveLabel?: string;
leaveLabel?: string;
/** Small disc on the seam between the two halves. */
orLabel?: string;
/** Day or date of the first charge, e.g. "December 21". */
chargeDate?: string;
/** Superscript currency mark of the big figure. */
chargeCurrency?: string;
/** Number of the first charge, set as the big figure, e.g. "47". */
chargeFigure?: string;
/** Line under the charge figure. */
chargeNote?: string;
loveTitle?: React.ReactNode;
keepTitle?: React.ReactNode;
/** What keeps coming once they stay. */
keepItems?: React.ReactNode[];
/** scene slot: a photo of the member living the result. Falls back to a calendar illustration. */
sceneImage?: string;
sceneAlt?: string;
leaveTitle?: React.ReactNode;
/** Figure paid when they cancel in time. */
leaveFigure?: string;
leaveNote?: string;
stepsTitle?: React.ReactNode;
/** The supplied cancellation steps (two or three lines). */
cancelSteps?: React.ReactNode[];
leaveConfirm?: React.ReactNode;
/** Plain instruction above the button. */
instruction?: React.ReactNode;
label?: string;
/** One reassurance line under the button. */
reassurance?: React.ReactNode;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
/** Ending shown first. */
defaultChoice?: InvisibleOffer3Choice;
/** Fires when the visitor flips the toggle. */
onChoiceChange?: (choice: InvisibleOffer3Choice) => void;
state?: "default" | "hover" | "active" | "focus" | "toggle-focus" | "not-for-me" | "disabled";
className?: string;
};
export function InvisibleOffer3({
productName = "",
headline = (
<>
Free to start. <mark>See both endings first.</mark>
</>
),
lead = "Flip the switch to see both endings of your free trial. No small print, nothing to find out later.",
toggleLabel = "What happens after your free trial?",
loveLabel = "I love it",
leaveLabel = "It's not for me",
orLabel = "or",
chargeDate = "day 31",
chargeCurrency = "$",
chargeFigure = "47",
chargeNote = "charged on {date}, then monthly",
loveTitle = "Love it? Stay in. There's nothing to do.",
keepTitle = "What you keep getting every month",
keepItems = ["Your full access stays on", "Every new month's material", "Nothing to renew or re-enter"],
sceneImage,
sceneAlt = "",
leaveTitle = "Not for you? Cancel and pay nothing.",
leaveFigure = "0",
leaveNote = "if you cancel before {date}",
stepsTitle = "Cancel any time before {date}:",
cancelSteps = [
"Open your account settings.",
"Choose Billing, then Cancel.",
"Look for the email confirming you won't be charged.",
],
leaveConfirm = "Your card is never charged.",
instruction = "Click the button below to start your free trial.",
label = "Start my free trial",
reassurance = "Nothing to pay today. Cancel any time before {date}.",
href,
onAction,
disabled = false,
defaultChoice = "love",
onChoiceChange,
state = "default",
className,
}: InvisibleOffer3Props) {
const uid = React.useId().replace(/:/g, "");
const titleId = `io3-t-${uid}`;
const loveId = `io3-love-${uid}`;
const leaveId = `io3-leave-${uid}`;
const loveHeadId = `io3-lh-${uid}`;
const leaveHeadId = `io3-vh-${uid}`;
const forced: InvisibleOffer3Choice | undefined = state === "not-for-me" ? "leave" : undefined;
const [choice, setChoice] = React.useState<InvisibleOffer3Choice>(forced ?? defaultChoice);
React.useEffect(() => {
if (forced) setChoice(forced);
}, [forced]);
const pick = (next: InvisibleOffer3Choice) => {
setChoice(next);
onChoiceChange?.(next);
};
const amountText = `${chargeCurrency}${chargeFigure}`;
const fill = (s: string) =>
s.split("{date}").join(chargeDate).split("{amount}").join(amountText).split("{product}").join(productName);
const rich = (n: React.ReactNode) => (typeof n === "string" ? fill(n) : n);
const isDisabled = disabled || state === "disabled";
const force = state === "hover" || state === "active" || state === "focus" ? state : undefined;
const btnClass = cx("io3-btn", force && `is-${force}`);
const loveOn = choice === "love";
const options: { value: InvisibleOffer3Choice; text: string; icon: React.ReactNode; controls: string }[] = [
{ value: "love", text: loveLabel, icon: <Heart size={18} strokeWidth={2.5} aria-hidden="true" />, controls: loveId },
{ value: "leave", text: leaveLabel, icon: <DoorOpen size={18} strokeWidth={2.5} aria-hidden="true" />, controls: leaveId },
];
return (
<section
className={cx("cf-invisible-offer-3", className)}
style={{ ...FX_HOST, overflow: "clip" }}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<div className="io3-bg" aria-hidden="true">
<Pattern name="grid" fade="edges" />
</div>
<div className="io3-wrap">
<header className="io3-header">
<h2 id={titleId} className="io3-title">
{rich(headline)}
</h2>
{lead ? <p className="io3-lead">{rich(lead)}</p> : null}
<fieldset className="io3-toggle">
<legend className="io3-sr">{toggleLabel}</legend>
<div className="io3-track" data-choice={choice}>
<span className="io3-thumb" aria-hidden="true" />
{options.map((o) => {
const on = choice === o.value;
return (
<label key={o.value} className={cx("io3-opt", on && "is-on", on && state === "toggle-focus" && "is-focus")}>
<input
type="radio"
name={`io3-${uid}`}
value={o.value}
checked={on}
onChange={() => pick(o.value)}
aria-controls={o.controls}
/>
<span className="io3-opt-in">
{o.icon}
{o.text}
</span>
</label>
);
})}
</div>
</fieldset>
</header>
<div className="io3-split">
<div id={loveId} role="region" aria-labelledby={loveHeadId} className={cx("io3-half", "is-love", loveOn && "is-on")}>
{sceneImage ? (
<div className="io3-photo-frame">
<img className="io3-photo" src={sceneImage} alt={sceneAlt} width={640} height={336} loading="lazy" />
</div>
) : (
<div className="io3-spot">
<Spot src={calendar} size={96} />
</div>
)}
<div className="io3-body">
<h3 id={loveHeadId} className="io3-h3">
{rich(loveTitle)}
</h3>
<p className="io3-figure">
<span className="io3-sr">{amountText}</span>
<span className="io3-fig" aria-hidden="true">
<sup>{chargeCurrency}</sup>
{chargeFigure}
</span>
</p>
<p className="io3-figure-note">{fill(chargeNote)}</p>
{keepItems.length > 0 && (
<>
{keepTitle ? <p className="io3-sub">{rich(keepTitle)}</p> : null}
<ol className="io3-list">
{keepItems.map((item, i) => (
<li key={i}>
<span className="io3-num" aria-hidden="true">{i + 1}</span>
<span>{rich(item)}</span>
</li>
))}
</ol>
</>
)}
</div>
<span className="io3-or" aria-hidden="true">
{orLabel}
</span>
</div>
<div id={leaveId} role="region" aria-labelledby={leaveHeadId} className={cx("io3-half", "is-leave", !loveOn && "is-on")}>
<div className="io3-spot">
<Spot src={shield} size={96} />
</div>
<div className="io3-body">
<h3 id={leaveHeadId} className="io3-h3">
{rich(leaveTitle)}
</h3>
<p className="io3-figure">
<span className="io3-sr">{`${chargeCurrency}${leaveFigure}`}</span>
<span className="io3-fig" aria-hidden="true">
<sup>{chargeCurrency}</sup>
{leaveFigure}
</span>
</p>
<p className="io3-figure-note">{fill(leaveNote)}</p>
{cancelSteps.length > 0 && (
<>
{stepsTitle ? <p className="io3-sub">{rich(stepsTitle)}</p> : null}
<ol className="io3-list">
{cancelSteps.map((step, i) => (
<li key={i}>
<span className="io3-num" aria-hidden="true">{i + 1}</span>
<span>{rich(step)}</span>
</li>
))}
</ol>
</>
)}
{leaveConfirm ? (
<p className="io3-confirm">
<span className="io3-badge" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span>{rich(leaveConfirm)}</span>
</p>
) : null}
</div>
</div>
</div>
<div className="io3-close">
{instruction ? <p className="io3-instruction">{rich(instruction)}</p> : null}
<div className="io3-cta">
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type="button" className={btnClass} onClick={onAction} disabled={isDisabled}>
{label}
</button>
)}
{reassurance ? (
<p className="io3-note">
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden="true" />
{rich(reassurance)}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default InvisibleOffer3;
function cx(...parts: (string | false | null | undefined)[]) {
return parts.filter(Boolean).join(" ");
}
const CSS = `
.cf-invisible-offer-3{
--io3-gut: clamp(16px, 5vw, 48px);
--io3-pad: clamp(20px, 3vw, 32px);
--io3-lift: 16px;
--io3-r: var(--card-radius, var(--radius, 14px));
--io3-ease: cubic-bezier(.2,.7,.2,1);
--io3-shadow: var(--shadow, oklch(0.22 0.03 260));
--io3-marker: oklch(from var(--marker, #fae37c) l c h / 1);
--io3-marker-ink: oklch(from var(--marker, #fae37c) 0.22 0.03 h);
position: relative;
background: var(--surface, #fff);
color: var(--ink, #1a2233);
font-family: var(--font-body, system-ui, sans-serif);
padding: clamp(56px, 8vw, 112px) var(--io3-gut) clamp(64px, 8.5vw, 120px);
}
.cf-invisible-offer-3 .io3-bg{
position: absolute;
inset: 0 0 auto 0;
height: clamp(360px, 46%, 580px);
z-index: 0;
pointer-events: none;
-webkit-mask-image: linear-gradient(to bottom, currentColor 30%, transparent);
mask-image: linear-gradient(to bottom, currentColor 30%, transparent);
}
.cf-invisible-offer-3 .io3-wrap{ position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.cf-invisible-offer-3 .io3-sr{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cf-invisible-offer-3 .io3-header{ max-width: 46rem; margin: 0 auto; text-align: center; }
.cf-invisible-offer-3 .io3-title{
margin: 0 0 16px;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.06;
color: var(--ink, #1a2233);
text-wrap: balance;
}
.cf-invisible-offer-3 .io3-title mark{
color: var(--io3-marker-ink);
background: linear-gradient(to bottom, transparent 16%, var(--io3-marker) 16%, var(--io3-marker) 96%, transparent 96%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 .1em;
border-radius: .2em .32em .24em .36em;
}
.cf-invisible-offer-3 .io3-lead{
margin: 0 auto;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--muted, #4a5568);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-toggle{ margin: 32px auto 0; padding: 0; border: 0; min-width: 0; max-width: 30rem; }
.cf-invisible-offer-3 .io3-track{
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
padding: 4px;
border-radius: calc(var(--button-radius, var(--radius, 12px)) + 4px);
background: color-mix(in oklch, var(--ink, #1a2233) 6%, var(--card, #fff));
box-shadow: inset 0 1px 2px oklch(from var(--io3-shadow) l c h / .18), inset 0 0 0 1px oklch(from var(--ink, #1a2233) l c h / .08);
}
.cf-invisible-offer-3 .io3-thumb{
position: absolute;
top: 4px; bottom: 4px; left: 4px;
width: calc(50% - 4px);
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--band, #1d2b4a) calc(l + .05) c h), var(--band, #1d2b4a));
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent-fill, var(--accent, #2563eb)) 40%, var(--band, #1d2b4a)), inset 0 1px 0 oklch(from var(--band, #1d2b4a) calc(l + .14) c h / .6), 0 1px 2px oklch(from var(--io3-shadow) l c h / .3), 0 4px 10px -2px oklch(from var(--io3-shadow) l c h / .28);
transition: transform .32s var(--io3-ease);
}
.cf-invisible-offer-3 .io3-track[data-choice="leave"] .io3-thumb{ transform: translateX(100%); }
.cf-invisible-offer-3 .io3-opt{
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 56px;
padding: 0 16px;
border-radius: var(--button-radius, var(--radius, 12px));
font-family: var(--font-display, inherit);
font-weight: var(--button-weight, 800);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.15;
white-space: nowrap;
color: var(--ink, #1a2233);
cursor: pointer;
transition: background-color .16s ease, color .25s ease;
}
.cf-invisible-offer-3 .io3-opt.is-on{ color: var(--band-ink, #fff); }
.cf-invisible-offer-3 .io3-opt:not(.is-on):hover{ background: oklch(from var(--ink, #1a2233) l c h / .07); }
.cf-invisible-offer-3 .io3-opt input{ position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; appearance: none; border-radius: inherit; }
.cf-invisible-offer-3 .io3-opt-in{ display: inline-flex; align-items: center; gap: 8px; pointer-events: none; transition: transform .16s ease; }
.cf-invisible-offer-3 .io3-opt:active .io3-opt-in{ transform: scale(.96); }
.cf-invisible-offer-3 .io3-opt:has(input:focus-visible),
.cf-invisible-offer-3 .io3-opt.is-focus{ outline: 3px solid var(--field-focus, var(--accent, #2563eb)); outline-offset: 3px; }
.cf-invisible-offer-3 .io3-split{ display: flex; align-items: stretch; margin-top: clamp(40px, 5vw, 56px); }
.cf-invisible-offer-3 .io3-half{
--h-bg: color-mix(in oklch, var(--ink, #1a2233) 4%, var(--card, #fff));
--h-ink: var(--ink, #1a2233);
--h-soft: var(--muted, #4a5568);
--h-num: var(--accent, #2563eb);
position: relative;
flex: 1 1 0;
min-width: 0;
padding: var(--io3-pad);
background: var(--h-bg);
color: var(--h-ink);
border: 1px solid oklch(from var(--ink, #1a2233) l c h / .1);
transition: flex-grow .45s var(--io3-ease), margin .45s var(--io3-ease), padding .45s var(--io3-ease), background-color .3s ease, color .3s ease, box-shadow .3s ease, border-radius .3s ease;
}
.cf-invisible-offer-3 .io3-half.is-love{ border-radius: var(--io3-r) 0 0 var(--io3-r); border-right-width: 0; }
.cf-invisible-offer-3 .io3-half.is-leave{ border-radius: 0 var(--io3-r) var(--io3-r) 0; border-left-width: 0; }
.cf-invisible-offer-3 .io3-half.is-on{
--h-bg: var(--band, #1d2b4a);
--h-ink: var(--band-ink, #fff);
--h-soft: color-mix(in oklch, var(--band-ink, #fff) 84%, var(--band, #1d2b4a));
--h-num: var(--band-ink, #fff);
z-index: 1;
flex-grow: 1.32;
margin-block: calc(var(--io3-lift) * -1);
padding-block: calc(var(--io3-pad) + var(--io3-lift));
border: 1px solid color-mix(in oklab, var(--accent-fill, var(--accent, #2563eb)) 50%, var(--band, #1d2b4a));
border-radius: var(--io3-r);
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--io3-shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--io3-shadow) l c h / .32));
}
.cf-invisible-offer-3 .io3-photo-frame{ height: 168px; margin-bottom: 24px; }
.cf-invisible-offer-3 .io3-photo{
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 35%;
border-radius: 12px;
transition: filter .3s ease;
}
.cf-invisible-offer-3 .io3-half:not(.is-on) .io3-photo{ filter: saturate(.55); }
.cf-invisible-offer-3 .io3-spot{ display: block; margin-bottom: 16px; line-height: 0; }
.cf-invisible-offer-3 .io3-half.is-on .io3-body{ animation: io3-rise .45s var(--io3-ease) both; }
@keyframes io3-rise{ from{ opacity: .82; transform: translateY(8px); } }
.cf-invisible-offer-3 .io3-h3{
margin: 0 0 16px;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
letter-spacing: -0.01em;
color: var(--h-ink);
text-wrap: balance;
}
.cf-invisible-offer-3 .io3-figure{
margin: 0 0 12px;
font-family: var(--font-display, inherit);
font-weight: 800;
font-size: clamp(3rem, 5.4vw, 4.875rem);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
color: var(--h-ink);
transform-origin: left bottom;
transition: transform .45s var(--io3-ease);
}
.cf-invisible-offer-3 .io3-half:not(.is-on) .io3-figure{ transform: scale(.82); }
.cf-invisible-offer-3 .io3-fig{ display: flex; align-items: flex-start; }
.cf-invisible-offer-3 .io3-fig sup{ position: static; font-size: .42em; line-height: 1; margin: .14em .06em 0 0; vertical-align: top; }
.cf-invisible-offer-3 .io3-figure-note{
margin: 0 0 24px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.4;
font-weight: 600;
color: var(--h-soft);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-sub{
margin: 0 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.4;
font-weight: 800;
color: var(--h-ink);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cf-invisible-offer-3 .io3-list li{
display: grid;
grid-template-columns: 2rem 1fr;
gap: 8px;
align-items: baseline;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--h-ink);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-num{
font-family: var(--font-display, inherit);
font-weight: 800;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1;
font-variant-numeric: tabular-nums;
color: var(--h-num);
}
.cf-invisible-offer-3 .io3-confirm{
display: flex;
align-items: center;
gap: 12px;
margin: 24px 0 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.4;
font-weight: 800;
color: var(--h-ink);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-badge{
flex: none;
display: grid;
place-items: center;
width: 28px;
height: 28px;
border-radius: 999px;
background: var(--success, #1f7a3d);
color: oklch(from var(--success, #1f7a3d) 0.995 0 h);
}
.cf-invisible-offer-3 .io3-or{
position: absolute;
z-index: 2;
top: 50%;
right: -22px;
transform: translateY(-50%);
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: 999px;
background: var(--card, #fff);
color: var(--ink, #1a2233);
border: 1px solid oklch(from var(--ink, #1a2233) l c h / .12);
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--io3-shadow) l c h / .22), 0 4px 10px -2px oklch(from var(--io3-shadow) l c h / .2));
font-family: var(--font-display, inherit);
font-weight: 800;
font-size: 15px;
line-height: 1;
}
.cf-invisible-offer-3 .io3-close{ margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.cf-invisible-offer-3 .io3-instruction{
margin: 0 0 16px;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--ink, #1a2233);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-cta{ display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cf-invisible-offer-3 .io3-btn{
--io3-bg: var(--button-bg, var(--cta, #c8322a));
--io3-bg2: var(--button-bg-2, var(--cta-2, #a82a23));
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 72px;
min-width: min(100%, 20rem);
padding: 0 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
font-family: var(--button-font, var(--font-display, inherit));
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;
color: var(--button-ink, var(--cta-ink, #fff));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--io3-bg) calc(l + .04) c h), oklch(from var(--io3-bg2) calc(l - .02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--io3-bg) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--io3-bg) calc(l - .16) c h), 0 1px 2px oklch(from var(--io3-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--io3-shadow) l c h / .4));
cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-invisible-offer-3 .io3-btn:hover:not(:disabled),
.cf-invisible-offer-3 .io3-btn.is-hover:not(:disabled){
background: linear-gradient(oklch(from var(--io3-bg) calc(l - .01) c h), oklch(from var(--io3-bg2) calc(l - .07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--io3-bg) calc(l + .12) c h / .6), inset 0 -3px 0 oklch(from var(--io3-bg) calc(l - .2) c h), 0 1px 2px oklch(from var(--io3-shadow) l c h / .34), 0 12px 20px -8px oklch(from var(--io3-shadow) l c h / .48);
}
.cf-invisible-offer-3 .io3-btn:active:not(:disabled),
.cf-invisible-offer-3 .io3-btn.is-active:not(:disabled){
transform: translateY(1px);
background: linear-gradient(oklch(from var(--io3-bg) calc(l - .04) c h), oklch(from var(--io3-bg2) calc(l - .08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--io3-bg) calc(l - .22) c h / .55), inset 0 -2px 0 oklch(from var(--io3-bg) calc(l - .18) c h), 0 1px 1px oklch(from var(--io3-shadow) l c h / .3);
}
.cf-invisible-offer-3 .io3-btn:focus-visible,
.cf-invisible-offer-3 .io3-btn.is-focus{ outline: 3px solid var(--field-focus, var(--accent, #2563eb)); outline-offset: 3px; }
.cf-invisible-offer-3 .io3-btn:disabled{
background: var(--button-2-bg, var(--secondary, #e5e7eb));
color: var(--button-2-ink, var(--secondary-ink, #1f2937));
text-shadow: none;
box-shadow: none;
transform: none;
cursor: not-allowed;
}
.cf-invisible-offer-3 .io3-note{
margin: 0;
max-width: 46ch;
font-size: .9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--muted, #4a5568);
text-wrap: pretty;
}
.cf-invisible-offer-3 .io3-note svg{ display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; color: var(--success, #1f7a3d); }
@media (max-width: 720px){
.cf-invisible-offer-3 .io3-toggle{ max-width: none; margin-top: 24px; }
.cf-invisible-offer-3 .io3-opt{ padding: 0 10px; font-size: 16px; }
.cf-invisible-offer-3 .io3-opt svg{ display: none; }
.cf-invisible-offer-3 .io3-split{ display: block; margin-top: 24px; }
.cf-invisible-offer-3 .io3-half,
.cf-invisible-offer-3 .io3-half.is-on{ margin: 0; padding: var(--io3-pad); border-radius: var(--io3-r); }
.cf-invisible-offer-3 .io3-half:not(.is-on){ display: none; }
.cf-invisible-offer-3 .io3-or{ display: none; }
.cf-invisible-offer-3 .io3-photo-frame{ height: 148px; margin-bottom: 20px; }
.cf-invisible-offer-3 .io3-close{ margin-top: 32px; }
.cf-invisible-offer-3 .io3-instruction{ font-size: 1.0625rem; margin-bottom: 12px; }
.cf-invisible-offer-3 .io3-cta{ gap: 12px; }
.cf-invisible-offer-3 .io3-btn{ width: 100%; min-height: 64px; }
}
@media (prefers-reduced-motion: reduce){
.cf-invisible-offer-3 *,
.cf-invisible-offer-3 *::before,
.cf-invisible-offer-3 *::after{ transition: none !important; animation: none !important; }
}
`;
pieces/offer/invisible-offer-3/specimen.tsx 52 lines
import __studioImage7cdbe2a7 from "../assets/f8c18b32c36d7f42.webp";
import * as React from "react";
import { InvisibleOffer3 } from "../invisible-offer-3";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "focus", "toggle-focus", "not-for-me", "disabled"] as const;
export default function InvisibleOffer3Specimen({ state = "default" }: { state?: (typeof states)[number] }) {
const figure = defaults.sample.price.replace(/[^0-9.]/g, "") || "47";
return (
<InvisibleOffer3
state={state}
productName="Brightline"
headline={
<>
Love it? Stay. Not for you? <mark>You pay $0.</mark>
</>
}
lead="Your first month in the {product} coaching group is free. Flip the switch and see exactly what happens on {date}, before you start."
toggleLabel="What happens after your free month?"
chargeDate="December 21"
chargeCurrency="$"
chargeFigure={figure}
chargeNote="charged on {date}, then once a month"
loveTitle="Love it? Stay in. There's nothing to do."
keepTitle="Three things that keep coming every month"
keepItems={[
"A live group coaching call every Tuesday",
"A fresh weekly game plan in your inbox",
"Your questions answered in the members' room",
]}
sceneImage={slot(
"scene",
__studioImage7cdbe2a7
)}
sceneAlt="A member taking notes during a live Brightline group coaching call"
leaveTitle="Not for you? Cancel and pay nothing."
leaveNote="if you cancel before {date}"
stepsTitle="Cancel any time before {date}:"
cancelSteps={[
"Open Account in your Brightline dashboard.",
"Click Membership, then Cancel free month.",
"Watch for the email that confirms it.",
]}
leaveConfirm="Your card is never charged."
instruction="Click the button below to start your free month."
label="Start my free month"
reassurance="$0 today. Cancel any time before {date}."
/>
);
}
| Name | Type | Details |
|---|---|---|
productName OptionalInvisibleOffer3 |
string |
Default ""
|
headline OptionalInvisibleOffer3 |
React.ReactNode |
Default (
<>
Free to start. <mark>See both endings first.</mark>
</>
)
|
lead OptionalInvisibleOffer3 |
React.ReactNode |
Default "Flip the switch to see both endings of your free trial. No small print, nothing to find out later."
|
toggleLabel OptionalInvisibleOffer3 |
string |
Default "What happens after your free trial?"
|
loveLabel OptionalInvisibleOffer3 |
string |
Default "I love it"
|
leaveLabel OptionalInvisibleOffer3 |
string |
Default "It's not for me"
|
orLabel OptionalInvisibleOffer3 |
string |
Default "or"
|
chargeDate OptionalInvisibleOffer3 |
string |
Default "day 31"
|
chargeCurrency OptionalInvisibleOffer3 |
string |
Default "$"
|
chargeFigure OptionalInvisibleOffer3 |
string |
Default "47"
|
chargeNote OptionalInvisibleOffer3 |
string |
Default "charged on {date}, then monthly"
|
loveTitle OptionalInvisibleOffer3 |
React.ReactNode |
Default "Love it? Stay in. There's nothing to do."
|
keepTitle OptionalInvisibleOffer3 |
React.ReactNode |
Default "What you keep getting every month"
|
keepItems OptionalInvisibleOffer3 |
React.ReactNode[] |
Default ["Your full access stays on", "Every new month's material", "Nothing to renew or re-enter"]
|
sceneImage OptionalInvisibleOffer3 |
string |
|
sceneAlt OptionalInvisibleOffer3 |
string |
Default ""
|
leaveTitle OptionalInvisibleOffer3 |
React.ReactNode |
Default "Not for you? Cancel and pay nothing."
|
leaveFigure OptionalInvisibleOffer3 |
string |
Default "0"
|
leaveNote OptionalInvisibleOffer3 |
string |
Default "if you cancel before {date}"
|
stepsTitle OptionalInvisibleOffer3 |
React.ReactNode |
Default "Cancel any time before {date}:"
|
cancelSteps OptionalInvisibleOffer3 |
React.ReactNode[] |
Default [
"Open your account settings.",
"Choose Billing, then Cancel.",
"Look for the email confirming you won't be charged.",
]
|
leaveConfirm OptionalInvisibleOffer3 |
React.ReactNode |
Default "Your card is never charged."
|
instruction OptionalInvisibleOffer3 |
React.ReactNode |
Default "Click the button below to start your free trial."
|
label OptionalInvisibleOffer3 |
string |
Default "Start my free trial"
|
reassurance OptionalInvisibleOffer3 |
React.ReactNode |
Default "Nothing to pay today. Cancel any time before {date}."
|
href OptionalInvisibleOffer3 |
string |
|
onAction OptionalInvisibleOffer3 |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalInvisibleOffer3 |
boolean |
Default false
|
defaultChoice OptionalInvisibleOffer3 |
InvisibleOffer3Choice |
Default "love"
|
onChoiceChange OptionalInvisibleOffer3 |
(choice: InvisibleOffer3Choice) => void |
|
state OptionalInvisibleOffer3 |
"default" | "hover" | "active" | "focus" | "toggle-focus" | "not-for-me" | "disabled" |
Default "default"
|
className OptionalInvisibleOffer3 |
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-radius- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
7d6f1c81c93d8f71.webp
image/webp · 18.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f8c18b32c36d7f42.webp
image/webp · 46.2 KB