Risk Reversal 1
Risk reversal for sales letters: the money-back seal stands on a lit stage between what the visitor gets and
Use it in a prompt
Use offer/risk-reversal 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/risk-reversal.tsx. - Import it and pass your copy and images (Props tab):
import { RiskReversal } from "@/components/funneldna/offer/risk-reversal"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/risk-reversal/component.tsx 664 lines
// layout: product-stage
// Risk reversal for sales letters: the money-back seal stands on a lit stage between what the visitor gets and
// what it costs, the guarantee is written in the owner's voice and signed, and a ticked commitment sits on the action.
import * as React from "react";
import { AlertCircle, Check, Lock, ShieldCheck } from "lucide-react";
export type RiskReversalItem = {
name: string;
/** Stated value, e.g. "$49". */
value?: string;
/** Product photo (slot item-n). */
image?: string;
imageAlt?: string;
};
export type RiskReversalState = "default" | "hover" | "active" | "disabled" | "error";
export type RiskReversalProps = {
headline?: string;
/** Phrase inside the headline that gets one marker stroke. */
headlineMark?: string;
lead?: React.ReactNode;
/** Transparent money-back seal art (slot seal-guarantee). */
sealImage?: string;
sealAlt?: string;
/** Line under the seal naming the guarantee. */
sealCaption?: string;
items?: RiskReversalItem[];
/** Value line per item; {value} is replaced with the item's value. */
itemValueTemplate?: string;
totalValueLabel?: string;
totalValue?: string;
/** Line between the total value and today's price. */
reveal?: string;
todayLabel?: string;
price?: string;
priceNote?: string;
/** Guarantee terms in the owner's voice, one entry per paragraph. */
terms?: React.ReactNode[];
signerName?: string;
signerRole?: string;
/** Script text of the signature; defaults to signerName. */
signature?: string;
/** The commitment the visitor ticks above the button. */
commitLabel?: string;
/** Inline error when the button is pressed with the box unticked. */
commitError?: string;
actionLabel?: string;
/** One reassurance line under the button. */
actionNote?: string;
href?: string;
onAction?: () => void;
state?: RiskReversalState;
className?: string;
};
const DEFAULT_ITEMS: RiskReversalItem[] = [
{ name: "Funnel Planning Guide", value: "$49" },
{ name: "Page Copy Workbook", value: "$29" },
{ name: "Launch Checklist", value: "$19" },
];
const DEFAULT_TERMS: React.ReactNode[] = [
"I built this kit so you can plan your funnel, write your page copy and check every step before you launch. Use every page of it.",
<>
You have a full 30 days. <strong>If it isn’t right for you, you get every penny back.</strong> That’s my promise to you.
</>,
];
export function RiskReversal({
headline = "You either love it or you get every penny back.",
headlineMark = "every penny back",
lead = "Get The Funnel Starter Kit with our 30-day money-back guarantee.",
sealImage = "",
sealAlt = "30-day money-back guarantee seal",
sealCaption = "30-day money-back guarantee",
items = DEFAULT_ITEMS,
itemValueTemplate = "{value} value",
totalValueLabel = "Total value",
totalValue = "$97",
reveal = "But you won’t pay that.",
todayLabel = "Get the complete kit for",
price = "$47",
priceNote = "One payment · Lifetime access",
terms = DEFAULT_TERMS,
signerName = "",
signerRole = "",
signature,
commitLabel = "I understand I’m covered by the 30-day money-back guarantee.",
commitError = "Tick the box to confirm you’ve read the guarantee.",
actionLabel = "Try The Kit Risk-Free",
actionNote = "Secure checkout · Instant download",
href,
onAction,
state = "default",
className = "",
}: RiskReversalProps) {
const uid = React.useId();
const headId = `${uid}-head`;
const errId = `${uid}-error`;
const noteId = `${uid}-note`;
const boxRef = React.useRef<HTMLInputElement>(null);
const [checked, setChecked] = React.useState(state !== "error");
const [showError, setShowError] = React.useState(state === "error");
React.useEffect(() => {
setChecked(state !== "error");
setShowError(state === "error");
}, [state]);
const disabled = state === "disabled";
const hasKit = items.length > 0;
const hasPrice = Boolean(price || totalValue);
const layout = hasKit && hasPrice ? "full" : hasKit ? "kit" : hasPrice ? "price" : "solo";
const scriptText = signature ?? signerName;
const act = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault();
return;
}
if (!checked) {
event.preventDefault();
setShowError(true);
boxRef.current?.focus();
return;
}
onAction?.();
};
const btnClass = ["rr-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""]
.filter(Boolean)
.join(" ");
return (
<section className={`cf-risk-reversal ${className}`.trim()} aria-labelledby={headId}>
{scriptText ? (
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap" />
) : null}
<style>{CSS}</style>
<header className="rr-head">
<h2 id={headId} className="rr-headline">
<MarkedText text={headline} phrase={headlineMark} />
</h2>
{lead ? <p className="rr-lead">{lead}</p> : null}
</header>
<div className="rr-stage-row" data-layout={layout}>
{hasKit ? (
<div className="rr-note rr-kit">
<ul className="rr-items">
{items.map((item, i) => (
<li className="rr-item" key={`${item.name}-${i}`}>
{item.image ? (
<img
className="rr-thumb"
src={item.image}
alt={item.imageAlt ?? item.name}
width={56}
height={56}
loading="lazy"
decoding="async"
/>
) : null}
<span className="rr-item-text">
<span className="rr-item-name">{item.name}</span>
{item.value ? (
<span className="rr-item-value">{itemValueTemplate.replace("{value}", item.value)}</span>
) : null}
</span>
</li>
))}
</ul>
</div>
) : null}
<figure className="rr-stage">
<div className="rr-plinth-box">
<span className="rr-plinth" aria-hidden="true" />
<span className="rr-contact" aria-hidden="true" />
<div className="rr-seal-wrap">
{sealImage ? (
<img className="rr-seal" src={sealImage} alt={sealAlt} width={320} height={320} decoding="async" />
) : (
<span className="rr-seal rr-seal-fallback" role="img" aria-label={sealAlt}>
<ShieldCheck aria-hidden="true" strokeWidth={1.75} />
</span>
)}
</div>
</div>
{sealCaption ? <figcaption className="rr-caption">{sealCaption}</figcaption> : null}
</figure>
{hasPrice ? (
<div className="rr-note rr-price">
{totalValue ? (
<>
<p className="rr-value-label">{totalValueLabel}</p>
<p className="rr-value">{totalValue}</p>
{reveal ? <p className="rr-reveal">{reveal}</p> : null}
</>
) : null}
{price ? (
<div className="rr-today">
<p className="rr-today-label">{todayLabel}</p>
<p className="rr-today-price">{price}</p>
</div>
) : null}
{priceNote ? <p className="rr-price-note">{priceNote}</p> : null}
</div>
) : null}
</div>
<div className="rr-letter">
{terms.map((paragraph, i) => (
<p key={i} className="rr-term">
{paragraph}
</p>
))}
{scriptText ? (
<div className="rr-sign">
<p className="rr-script" aria-hidden="true">
{scriptText}
</p>
{signerName || signerRole ? (
<p className="rr-signer">
{signerName ? <strong>{signerName}</strong> : null}
{signerName && signerRole ? " · " : null}
{signerRole}
</p>
) : null}
</div>
) : null}
</div>
<div className="rr-action">
<label
className="rr-commit"
data-error={showError ? "true" : undefined}
data-disabled={disabled ? "true" : undefined}
>
<span className="rr-box">
<input
ref={boxRef}
type="checkbox"
checked={checked}
disabled={disabled}
aria-invalid={showError || undefined}
aria-describedby={showError ? errId : undefined}
onChange={(event) => {
const next = event.target.checked;
setChecked(next);
if (next) setShowError(false);
}}
/>
<Check className="rr-tick" aria-hidden="true" strokeWidth={3.5} />
</span>
<span className="rr-commit-text">{commitLabel}</span>
</label>
{showError ? (
<p id={errId} className="rr-error" role="alert">
<AlertCircle aria-hidden="true" size={18} strokeWidth={2.5} />
{commitError}
</p>
) : null}
{href ? (
<a
className={btnClass}
href={disabled ? undefined : href}
onClick={act}
aria-disabled={disabled || undefined}
data-disabled={disabled ? "true" : undefined}
aria-describedby={actionNote ? noteId : undefined}
>
{actionLabel}
</a>
) : (
<button
type="button"
className={btnClass}
onClick={act}
disabled={disabled}
aria-describedby={actionNote ? noteId : undefined}
>
{actionLabel}
</button>
)}
{actionNote ? (
<p id={noteId} className="rr-action-note">
<Lock aria-hidden="true" size={15} strokeWidth={2.25} />
{actionNote}
</p>
) : null}
</div>
</section>
);
}
export default RiskReversal;
function MarkedText({ text, phrase }: { text: string; phrase?: string }) {
const at = phrase ? text.indexOf(phrase) : -1;
if (!phrase || at < 0) return <>{text}</>;
return (
<>
{text.slice(0, at)}
<span className="rr-mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
// Signature face: the one integral face, read through --signature-font with a display-token fallback.
const CSS = `
.cf-risk-reversal {
--rr-ink: var(--ink, #101828);
--rr-muted: var(--muted, #475467);
--rr-card: var(--card, #ffffff);
--rr-accent: var(--accent, #1f5fbf);
--rr-shadow: var(--shadow, oklch(0.22 0.03 256));
--rr-cta: var(--button-bg, var(--cta, #d92d20));
--rr-quiet: color-mix(in oklch, var(--rr-ink) 4%, var(--rr-card));
--rr-hair: oklch(from var(--rr-ink) l c h / 0.14);
--rr-marker: var(--marker, #fae37c);
box-sizing: border-box;
position: relative;
width: 100%;
max-width: 72rem;
margin-inline: auto;
padding: clamp(1.75rem, 4.5vw, 3.75rem) clamp(1.25rem, 4.5vw, 4rem) clamp(1.75rem, 4.5vw, 3.5rem);
color: var(--rr-ink);
background: var(--card, #ffffff);
border: 1px solid var(--card-border, color-mix(in oklch, var(--rr-ink) 12%, transparent));
border-radius: var(--card-radius, calc(var(--radius, 12px) + 10px));
box-shadow: var(--card-shadow, inset 0 1px 0 oklch(from var(--rr-card) calc(l + 0.04) c h / 0.6), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 256 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 256 / 0.32)));
font-family: var(--font-body, Arial, sans-serif);
}
.cf-risk-reversal *, .cf-risk-reversal *::before, .cf-risk-reversal *::after { box-sizing: border-box; }
.cf-risk-reversal :is(h2, h3, p, figure, ul) { margin: 0; }
.cf-risk-reversal .rr-head { text-align: center; }
.cf-risk-reversal .rr-headline {
font-family: var(--font-display, Arial, sans-serif);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
line-height: 1.05;
color: var(--rr-ink);
text-wrap: balance;
}
.cf-risk-reversal .rr-mark {
padding: 0 0.08em;
margin: 0 -0.02em;
border-radius: 0.2em 0.35em 0.25em 0.3em;
background-image: linear-gradient(to bottom, transparent 52%, color-mix(in oklch, var(--rr-marker) 85%, transparent) 52%, color-mix(in oklch, var(--rr-marker) 85%, transparent) 94%, transparent 94%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-risk-reversal .rr-lead {
max-width: 40rem;
margin: 1.25rem auto 0;
font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
font-weight: 500;
line-height: 1.5;
color: var(--rr-muted);
text-wrap: pretty;
}
.cf-risk-reversal .rr-stage-row {
margin-top: clamp(2rem, 4vw, 3rem);
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.cf-risk-reversal .rr-note { width: min(100%, 30rem); text-align: center; }
.cf-risk-reversal .rr-items { list-style: none; padding: 0; display: grid; gap: 0.875rem; text-align: left; }
.cf-risk-reversal .rr-item { display: flex; align-items: flex-start; gap: 0.875rem; }
.cf-risk-reversal .rr-thumb {
flex: none;
width: 3.5rem;
height: 3.5rem;
border-radius: 10px;
object-fit: cover;
object-position: center;
filter: drop-shadow(0 1px 1.5px oklch(from var(--rr-shadow) l c h / 0.28)) drop-shadow(0 4px 6px oklch(from var(--rr-shadow) l c h / 0.16));
}
.cf-risk-reversal .rr-item-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; padding-top: 0.25rem; }
.cf-risk-reversal .rr-item-name { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--rr-ink); text-wrap: pretty; }
.cf-risk-reversal .rr-item-value { font-size: 0.9375rem; line-height: 1.35; color: var(--rr-muted); font-variant-numeric: tabular-nums; }
.cf-risk-reversal .rr-value-label { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--rr-muted); }
.cf-risk-reversal .rr-value {
margin-top: 0.25rem;
font-family: var(--font-display, Arial, sans-serif);
font-weight: var(--display-weight, 800);
font-size: clamp(2.25rem, 1.8rem + 1.6vw, 2.875rem);
line-height: 1.05;
letter-spacing: -0.02em;
color: var(--rr-ink);
font-variant-numeric: tabular-nums;
}
.cf-risk-reversal .rr-reveal { margin-top: 0.75rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--rr-ink); text-wrap: pretty; }
.cf-risk-reversal .rr-today {
display: inline-block;
margin-top: 0.875rem;
padding: 0.875rem 1.25rem 1rem;
border-radius: calc(var(--radius, 12px) + 4px);
background: color-mix(in oklch, var(--accent-fill,var(--rr-accent)) 10%, var(--rr-card));
border: 1px solid color-mix(in oklch, var(--accent-fill,var(--rr-accent)) 26%, transparent);
animation: rr-rise 0.45s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cf-risk-reversal .rr-today-label { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--rr-ink); }
.cf-risk-reversal .rr-today-price {
margin-top: 0.375rem;
font-family: var(--font-display, Arial, sans-serif);
font-weight: var(--display-weight, 800);
font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem);
line-height: 1;
letter-spacing: -0.03em;
color: var(--rr-ink);
font-variant-numeric: tabular-nums;
}
.cf-risk-reversal .rr-price-note { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.4; color: var(--rr-muted); }
.cf-risk-reversal .rr-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; order: -1; }
.cf-risk-reversal .rr-plinth-box { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1.04; }
.cf-risk-reversal .rr-plinth {
position: absolute;
left: 9%;
right: 9%;
bottom: 0;
height: 17%;
border-radius: 50%;
background: linear-gradient(color-mix(in oklch, var(--rr-ink) 5%, var(--rr-card)), color-mix(in oklch, var(--rr-ink) 9%, var(--rr-card)));
box-shadow: inset 0 -7px 0 color-mix(in oklch, var(--rr-ink) 16%, var(--rr-card)), inset 0 1px 0 oklch(from var(--rr-card) calc(l + 0.04) c h / 0.6), var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 256 / 0.18), 0 1px 3px oklch(0.22 0.03 256 / 0.14));
}
.cf-risk-reversal .rr-contact {
position: absolute;
left: 26%;
right: 26%;
bottom: 7%;
height: 7%;
border-radius: 50%;
background: radial-gradient(closest-side, oklch(from var(--rr-shadow) l c h / 0.38), oklch(from var(--rr-shadow) l c h / 0));
transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}
.cf-risk-reversal .rr-seal-wrap {
position: absolute;
left: 10%;
top: 3%;
width: 80%;
aspect-ratio: 1;
animation: rr-settle 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cf-risk-reversal .rr-seal {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 2px oklch(from var(--rr-shadow) l c h / 0.3)) drop-shadow(0 7px 9px oklch(from var(--rr-shadow) l c h / 0.2));
transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cf-risk-reversal .rr-seal-fallback { display: flex; align-items: center; justify-content: center; color: var(--rr-accent); }
.cf-risk-reversal .rr-seal-fallback svg { width: 62%; height: 62%; }
.cf-risk-reversal .rr-stage:hover .rr-seal { transform: translateY(-6px) rotate(-3deg); }
.cf-risk-reversal .rr-stage:hover .rr-contact { transform: scaleX(0.86); opacity: 0.75; }
.cf-risk-reversal .rr-caption { font-size: 1rem; font-weight: 800; line-height: 1.3; text-align: center; color: var(--rr-ink); text-wrap: balance; }
@media (min-width: 960px) {
.cf-risk-reversal .rr-stage-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) minmax(0, 1fr);
grid-template-areas: 'kit stage price';
align-items: start;
gap: clamp(1.75rem, 3vw, 3rem);
}
.cf-risk-reversal .rr-stage-row[data-layout='solo'] {
grid-template-columns: minmax(240px, 320px);
grid-template-areas: 'stage';
justify-content: center;
}
.cf-risk-reversal .rr-stage { grid-area: stage; order: 0; }
.cf-risk-reversal .rr-plinth-box { width: 100%; }
.cf-risk-reversal .rr-note { width: auto; padding-top: 3.25rem; }
.cf-risk-reversal .rr-kit { grid-area: kit; justify-self: end; text-align: right; }
.cf-risk-reversal .rr-kit .rr-items { text-align: right; }
.cf-risk-reversal .rr-kit .rr-item { flex-direction: row-reverse; }
.cf-risk-reversal .rr-kit .rr-item-text { align-items: flex-end; }
.cf-risk-reversal .rr-price { grid-area: price; justify-self: start; text-align: left; }
}
.cf-risk-reversal .rr-letter { max-width: 42rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: center; }
.cf-risk-reversal .rr-term { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--rr-ink); text-wrap: pretty; }
.cf-risk-reversal .rr-term + .rr-term { margin-top: 0.875rem; }
.cf-risk-reversal .rr-term strong { font-weight: 800; }
.cf-risk-reversal .rr-sign { margin-top: 1.5rem; }
.cf-risk-reversal .rr-script {
padding: 0 0.25em;
font-family: var(--signature-font, 'Mrs Saint Delafield', var(--font-display, cursive));
font-weight: 400;
font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
line-height: 1.15;
color: var(--signature-ink, var(--rr-ink));
}
.cf-risk-reversal .rr-signer { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.4; color: var(--rr-muted); text-wrap: pretty; }
.cf-risk-reversal .rr-signer strong { font-weight: 700; color: var(--rr-ink); }
.cf-risk-reversal .rr-action { margin-top: clamp(2rem, 4vw, 2.75rem); display: flex; flex-direction: column; align-items: center; gap: 0.875rem; }
.cf-risk-reversal .rr-commit {
display: inline-flex;
align-items: flex-start;
gap: 0.75rem;
max-width: 34rem;
padding: 0.875rem 1.125rem;
border: 1px solid var(--rr-hair);
border-radius: calc(var(--radius, 12px) + 2px);
background: var(--rr-quiet);
color: var(--rr-ink);
font-size: 1rem;
font-weight: 600;
line-height: 1.45;
text-align: left;
text-wrap: pretty;
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cf-risk-reversal .rr-commit:hover { background: color-mix(in oklch, var(--rr-ink) 7%, var(--rr-card)); }
.cf-risk-reversal .rr-commit[data-error] { background: var(--danger-soft, #fde8e4); border-color: var(--danger, #c4320a); }
.cf-risk-reversal .rr-commit[data-disabled] { cursor: not-allowed; }
.cf-risk-reversal .rr-commit-text { padding-top: 0.0625rem; }
.cf-risk-reversal .rr-box { position: relative; flex: none; width: 1.625rem; height: 1.625rem; }
.cf-risk-reversal .rr-box input {
appearance: none;
-webkit-appearance: none;
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
border: 2px solid var(--field-border, color-mix(in oklch, var(--rr-ink) 45%, transparent));
border-radius: calc(var(--field-radius, var(--radius, 12px)) * 0.5);
background: var(--field, #ffffff);
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cf-risk-reversal .rr-box input:checked { background: var(--success, #12814a); border-color: var(--success, #12814a); }
.cf-risk-reversal .rr-box input:focus-visible { outline: 3px solid var(--field-focus, var(--rr-accent)); outline-offset: 2px; }
.cf-risk-reversal .rr-box input:disabled { cursor: not-allowed; }
.cf-risk-reversal .rr-commit[data-error] .rr-box input { border-color: var(--danger, #c4320a); }
.cf-risk-reversal .rr-tick {
position: absolute;
inset: 0;
margin: auto;
width: 1.125rem;
height: 1.125rem;
color: var(--card, #ffffff);
opacity: 0;
transform: scale(0.6);
pointer-events: none;
transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.cf-risk-reversal .rr-box input:checked + .rr-tick { opacity: 1; transform: none; }
.cf-risk-reversal .rr-error {
display: inline-flex;
align-items: flex-start;
gap: 0.45rem;
max-width: 34rem;
font-size: 0.9375rem;
font-weight: 700;
line-height: 1.4;
color: var(--danger, #c4320a);
text-align: left;
text-wrap: pretty;
animation: rr-rise 0.25s ease both;
}
.cf-risk-reversal .rr-error svg { flex: none; margin-top: 0.0625rem; }
.cf-risk-reversal .rr-btn {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: min(100%, 28rem);
min-height: 4.125rem;
padding: 1rem 1.75rem;
border: 1px solid oklch(from var(--rr-cta) calc(l - 0.12) c h);
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--rr-cta) calc(l + 0.04) c h), oklch(from var(--rr-cta) calc(l - 0.05) c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display, Arial, sans-serif));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.4375rem);
line-height: 1.15;
letter-spacing: -0.005em;
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(--rr-cta) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--rr-cta) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--rr-shadow) l c h / 0.35), 0 6px 12px -4px oklch(from var(--rr-shadow) l c h / 0.4));
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-risk-reversal .rr-btn:hover, .cf-risk-reversal .rr-btn.is-hover {
transform: translateY(-1px);
background: linear-gradient(oklch(from var(--rr-cta) calc(l - 0.01) c h), oklch(from var(--rr-cta) calc(l - 0.1) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--rr-cta) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--rr-cta) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--rr-shadow) l c h / 0.38), 0 8px 14px -5px oklch(from var(--rr-shadow) l c h / 0.45));
}
.cf-risk-reversal .rr-btn:active, .cf-risk-reversal .rr-btn.is-active {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--rr-cta) calc(l - 0.08) c h), oklch(from var(--rr-cta) calc(l - 0.12) c h));
box-shadow: inset 0 2px 3px oklch(from var(--rr-shadow) l c h / 0.3), inset 0 -1px 0 oklch(from var(--rr-cta) calc(l - 0.18) c h), 0 1px 1px oklch(from var(--rr-shadow) l c h / 0.3);
}
.cf-risk-reversal .rr-btn:focus-visible { outline: 3px solid var(--field-focus, var(--rr-accent)); outline-offset: 3px; }
.cf-risk-reversal .rr-btn:disabled, .cf-risk-reversal .rr-btn[data-disabled] {
transform: none;
background: var(--button-2-bg, var(--secondary, #e4e7ec));
color: var(--button-2-ink, var(--secondary-ink, #101828));
border-color: transparent;
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
cursor: not-allowed;
}
.cf-risk-reversal .rr-action-note {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
font-size: 0.9375rem;
line-height: 1.4;
color: var(--rr-muted);
text-align: center;
}
.cf-risk-reversal .rr-action-note svg { flex: none; }
@media (max-width: 479px) {
.cf-risk-reversal .rr-commit { padding: 0.75rem 0.875rem; }
.cf-risk-reversal .rr-btn { padding: 1rem 1.25rem; }
}
@keyframes rr-settle {
from { opacity: 0.82; transform: translateY(-10px) scale(1.06) rotate(-8deg); }
to { opacity: 1; transform: none; }
}
@keyframes rr-rise {
from { opacity: 0.82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-risk-reversal .rr-seal-wrap, .cf-risk-reversal .rr-today, .cf-risk-reversal .rr-error { animation: none; }
.cf-risk-reversal .rr-seal, .cf-risk-reversal .rr-contact, .cf-risk-reversal .rr-btn, .cf-risk-reversal .rr-tick, .cf-risk-reversal .rr-box input, .cf-risk-reversal .rr-commit { transition: none; }
.cf-risk-reversal .rr-stage:hover .rr-seal, .cf-risk-reversal .rr-stage:hover .rr-contact { transform: none; opacity: 1; }
.cf-risk-reversal .rr-btn:hover, .cf-risk-reversal .rr-btn.is-hover, .cf-risk-reversal .rr-btn:active, .cf-risk-reversal .rr-btn.is-active { transform: none; }
}
`;
pieces/offer/risk-reversal/specimen.tsx 51 lines
import __studioImagebb9a4b11 from "../assets/c5307d0de3656992.webp";
import * as React from "react";
import RiskReversal, { type RiskReversalState } from "../risk-reversal";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function RiskReversalSpecimen({ state = "default" }: { state?: RiskReversalState }) {
const sample = defaults.sample;
const guarantee = sample.guarantee;
return (
<RiskReversal
state={state}
headline="You either love it or you get every penny back."
headlineMark="every penny back"
lead={`Get ${sample.name} with our ${guarantee}.`}
sealImage={slot(
"seal-guarantee",
__studioImagebb9a4b11
)}
sealAlt="30-day money-back guarantee seal"
sealCaption={guarantee.charAt(0).toUpperCase() + guarantee.slice(1)}
items={sample.items.map((item, i) => ({
name: item.name,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
totalValueLabel="Total value"
totalValue={sample.regularPrice}
reveal="But you won’t pay that."
todayLabel={sample.todayLabel}
price={sample.price}
priceNote={sample.note}
terms={[
`I built ${sample.name} so you can plan your funnel, write your page copy and check every step before you launch. Use every page of it.`,
<>
You have a full 30 days. <strong>If it isn’t right for you, you get every penny back.</strong> That’s my
promise to you.
</>,
]}
signerName="Jamie Ellis"
signerRole={`Creator, ${sample.name}`}
commitLabel={`I understand I’m covered by the ${guarantee}.`}
commitError="Tick the box to confirm you’ve read the guarantee."
actionLabel="Try The Kit Risk-Free"
actionNote={sample.sublabel}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalRiskReversal |
string |
Default "You either love it or you get every penny back."
|
headlineMark OptionalRiskReversal |
string |
Default "every penny back"
|
lead OptionalRiskReversal |
React.ReactNode |
Default "Get The Funnel Starter Kit with our 30-day money-back guarantee."
|
sealImage OptionalRiskReversal |
string |
Default ""
|
sealAlt OptionalRiskReversal |
string |
Default "30-day money-back guarantee seal"
|
sealCaption OptionalRiskReversal |
string |
Default "30-day money-back guarantee"
|
items OptionalRiskReversal |
RiskReversalItem[] |
Default DEFAULT_ITEMS
|
itemValueTemplate OptionalRiskReversal |
string |
Default "{value} value"
|
totalValueLabel OptionalRiskReversal |
string |
Default "Total value"
|
totalValue OptionalRiskReversal |
string |
Default "$97"
|
reveal OptionalRiskReversal |
string |
Default "But you won’t pay that."
|
todayLabel OptionalRiskReversal |
string |
Default "Get the complete kit for"
|
price OptionalRiskReversal |
string |
Default "$47"
|
priceNote OptionalRiskReversal |
string |
Default "One payment · Lifetime access"
|
terms OptionalRiskReversal |
React.ReactNode[] |
Default DEFAULT_TERMS
|
signerName OptionalRiskReversal |
string |
Default ""
|
signerRole OptionalRiskReversal |
string |
Default ""
|
signature OptionalRiskReversal |
string |
|
commitLabel OptionalRiskReversal |
string |
Default "I understand I’m covered by the 30-day money-back guarantee."
|
commitError OptionalRiskReversal |
string |
Default "Tick the box to confirm you’ve read the guarantee."
|
actionLabel OptionalRiskReversal |
string |
Default "Try The Kit Risk-Free"
|
actionNote OptionalRiskReversal |
string |
Default "Secure checkout · Instant download"
|
href OptionalRiskReversal |
string |
|
onAction OptionalRiskReversal |
() => void |
|
state OptionalRiskReversal |
RiskReversalState |
Default "default"
|
className OptionalRiskReversal |
string |
Default ""
|
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-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--button-2-shadow- 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--field-border--field-focus--field-radius- 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.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c5307d0de3656992.webp
image/webp · 271 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB