Objection Handler 1
Objection crusher for sales letters: the reader taps the doubt holding them back, hears a straight spoken answer that ends on a bold reframe, then meets the guarantee and the add-to-cart close.
Use it in a prompt
Use content/objection-handler 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/content/objection-handler.tsx. - Import it and pass your copy and images (Props tab):
import { ObjectionHandler } from "@/components/funneldna/content/objection-handler"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/objection-handler/component.tsx 769 lines
// layout: diagonal-split
// Objection crusher for sales letters: the reader taps the doubt holding them back, hears a straight spoken answer that ends on a bold reframe, then meets the guarantee and the add-to-cart close.
import * as React from 'react';
import { Check, Lock, ShieldCheck, ShoppingCart } from 'lucide-react';
import { motion, useReducedMotion } from 'motion/react';
export type Objection = {
/** The doubt in the reader's own words, e.g. 'What if I’m not a writer?' */
question: string;
/** Two or three honest sentences, said the way a salesperson would answer out loud. */
answer: React.ReactNode;
/** The bold reframe line that closes the answer. */
reframe: string;
/** A phrase inside `reframe` swiped with the marker highlight. */
highlight?: string;
};
export type ObjectionHandlerCopy = {
/** Accessible name of the objection tab list. */
listLabel: string;
/** Screen-reader suffix on an objection the reader has opened. */
answered: string;
/** Visible label beside the struck regular price. */
regularLabel: string;
/** Screen-reader prefix for the struck regular price. */
regularAria: string;
/** Screen-reader prefix for today's price. */
todayAria: string;
/** Accessible button name when a product is named; placeholders {product} and {price}. */
cartAria: string;
/** Accessible button name without a product; placeholders {label} and {price}. */
cartPlainAria: string;
/** The answer's heading around the question; placeholder {question}. */
ask: string;
next: string;
restart: string;
/** Placeholders {current} and {total}. */
count: string;
};
export type ObjectionHandlerProps = {
headline?: React.ReactNode;
lead?: React.ReactNode;
/** Three to five objections, each answered in its own voice. */
objections?: Objection[];
/** Index of the objection answered first. */
defaultIndex?: number;
guaranteeHeadline?: React.ReactNode;
guaranteeText?: React.ReactNode;
/** seal-guarantee slot: transparent seal art; a shield icon shows when absent. */
guaranteeImage?: string;
guaranteeImageAlt?: string;
/** Used in the button's accessible name. */
productName?: string;
/** Today's price; empty hides the price block. */
price?: string;
/** Struck regular price; empty hides it. */
regularPrice?: string;
/** Visible button text. */
label?: string;
/** One reassurance line under the button. */
note?: React.ReactNode;
/** Navigation destination for the add-to-cart button. */
href?: string;
/** Called when the add-to-cart button is clicked. */
onAction?: () => void;
/** Called with the index whenever the reader picks an objection. */
onSelect?: (index: number) => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
/** Generated labels, accessible names and templates. */
copy?: Partial<ObjectionHandlerCopy>;
className?: string;
};
export function ObjectionHandler(props: ObjectionHandlerProps) {
const {
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
objections = DEFAULT_OBJECTIONS,
defaultIndex = 0,
guaranteeHeadline = DEFAULT_GUARANTEE_HEADLINE,
guaranteeText = DEFAULT_GUARANTEE_TEXT,
guaranteeImage,
guaranteeImageAlt = '30-day money-back guarantee seal',
productName = '',
price = '$47',
regularPrice = '$97',
label = 'Add To Cart',
note = 'One payment · Lifetime access',
href,
onAction,
onSelect,
state = 'default',
copy: copyIn,
className,
} = props;
const copy: ObjectionHandlerCopy = { ...DEFAULT_COPY, ...copyIn };
const uid = React.useId();
const reduce = useReducedMotion();
const total = objections.length;
const start = Math.min(Math.max(defaultIndex, 0), Math.max(total - 1, 0));
const [active, setActive] = React.useState(start);
const [seen, setSeen] = React.useState<boolean[]>(() => objections.map((_, i) => i === start));
const [moved, setMoved] = React.useState(false);
const tabs = React.useRef<Array<HTMLButtonElement | null>>([]);
const current = Math.min(active, Math.max(total - 1, 0));
const disabled = state === 'disabled';
const tabId = (i: number) => uid + '-q-' + i;
const panelId = (i: number) => uid + '-a-' + i;
const choose = (i: number) => {
setActive(i);
setMoved(true);
setSeen((prev) => {
const next = objections.map((_, k) => Boolean(prev[k]));
next[i] = true;
return next;
});
onSelect?.(i);
};
const onKey = (e: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
let next = -1;
if (e.key === 'ArrowDown' || e.key === 'ArrowRight') next = (i + 1) % total;
else if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') next = (i - 1 + total) % total;
else if (e.key === 'Home') next = 0;
else if (e.key === 'End') next = total - 1;
if (next < 0) return;
e.preventDefault();
choose(next);
tabs.current[next]?.focus();
};
const cartName = productName
? fill(copy.cartAria, { product: productName, price })
: price
? fill(copy.cartPlainAria, { label, price })
: label;
const buttonInner = (
<>
<ShoppingCart className='oh-btn-icon' aria-hidden='true' size={20} strokeWidth={2.5} />
<span>{label}</span>
</>
);
const action =
href && !disabled ? (
<a className='oh-btn' href={href} aria-label={cartName} onClick={() => onAction?.()}>
{buttonInner}
</a>
) : (
<button type='button' className='oh-btn' aria-label={cartName} disabled={disabled} onClick={() => onAction?.()}>
{buttonInner}
</button>
);
return (
<section
className={['cf-objection-handler', className].filter(Boolean).join(' ')}
data-state={state}
aria-labelledby={uid + '-title'}
>
<style>{CSS}</style>
<div className='oh-inner'>
<div className='oh-side'>
<div className='oh-side-inner'>
<h2 id={uid + '-title'} className='oh-title'>
{headline}
</h2>
{lead ? <p className='oh-lead'>{lead}</p> : null}
{total > 0 ? (
<div className='oh-list' role='tablist' aria-orientation='vertical' aria-label={copy.listLabel}>
{objections.map((o, i) => {
const on = i === current;
const done = Boolean(seen[i]);
return (
<button
key={i}
ref={(el) => {
tabs.current[i] = el;
}}
type='button'
role='tab'
id={tabId(i)}
aria-selected={on}
aria-controls={panelId(i)}
tabIndex={on ? 0 : -1}
className='oh-q'
onClick={() => choose(i)}
onKeyDown={(e) => onKey(e, i)}
>
<span className='oh-dot' data-done={done ? 'true' : 'false'} aria-hidden='true'>
{done ? <Check size={14} strokeWidth={3} /> : null}
</span>
<span className='oh-q-text'>
{o.question}
{done ? <span className='oh-sr'> {copy.answered}</span> : null}
</span>
</button>
);
})}
</div>
) : null}
</div>
</div>
<div className='oh-main'>
{total > 0 ? (
<>
<div className='oh-answers'>
{objections.map((o, i) => {
const on = i === current;
return (
<div
key={i}
role='tabpanel'
id={panelId(i)}
aria-labelledby={tabId(i)}
aria-hidden={on ? undefined : true}
tabIndex={on ? 0 : -1}
className='oh-panel'
data-on={on ? 'true' : 'false'}
>
<motion.div
key={on ? 'on' : 'off'}
initial={on && moved && !reduce ? { opacity: 0.82, y: 8 } : false}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.45, ease: [0.2, 0.7, 0.2, 1] }}
>
<h3 className='oh-ask'>{fill(copy.ask, { question: o.question })}</h3>
<p className='oh-say'>{o.answer}</p>
<p className='oh-turn'>{marked(o.reframe, o.highlight)}</p>
</motion.div>
</div>
);
})}
</div>
{total > 1 ? (
<div className='oh-step'>
<button type='button' className='oh-next' onClick={() => choose((current + 1) % total)}>
{current === total - 1 ? copy.restart : copy.next}
</button>
<span className='oh-count' aria-live='polite'>
{fill(copy.count, { current: String(current + 1), total: String(total) })}
</span>
</div>
) : null}
</>
) : null}
<div className='oh-close'>
<div className='oh-g'>
{guaranteeImage ? (
<img
className='oh-seal'
src={guaranteeImage}
alt={guaranteeImageAlt}
width={88}
height={88}
loading='lazy'
decoding='async'
/>
) : (
<span className='oh-seal-icon' aria-hidden='true'>
<ShieldCheck size={20} strokeWidth={2.5} />
</span>
)}
<div className='oh-g-copy'>
<h3 className='oh-g-title'>{guaranteeHeadline}</h3>
{guaranteeText ? <p className='oh-g-text'>{guaranteeText}</p> : null}
</div>
</div>
<div className='oh-buy'>
{price ? <PriceBlock price={price} regularPrice={regularPrice} copy={copy} /> : null}
{action}
</div>
{note ? (
<p className='oh-note'>
<Lock aria-hidden='true' size={16} strokeWidth={2.5} />
{note}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default ObjectionHandler;
function PriceBlock({ price, regularPrice, copy }: { price: string; regularPrice?: string; copy: ObjectionHandlerCopy }) {
return (
<div className='oh-price'>
{regularPrice ? (
<span className='oh-was'>
<span aria-hidden='true'>{copy.regularLabel}</span>
<s>
<span className='oh-sr'>{copy.regularAria} </span>
{regularPrice}
</s>
</span>
) : null}
<span className='oh-now'>
<span className='oh-sr'>{copy.todayAria} </span>
{price}
</span>
</div>
);
}
/** Wraps the first occurrence of `phrase` in the marker highlight. */
function marked(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<mark className='oh-mark'>{phrase}</mark>
{text.slice(at + phrase.length)}
</>
);
}
/** Replaces each {name} placeholder in a copy template with its value, as text. */
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(vars[key]), template);
}
const DEFAULT_HEADLINE = 'Still thinking “But what if…”? Let’s answer it straight.';
const DEFAULT_LEAD = 'Tap the worry that’s holding you back. I’ll answer it the way I would if we were sitting across the table.';
const DEFAULT_GUARANTEE_HEADLINE = 'Still not sure? Try it for 30 days, risk free.';
const DEFAULT_GUARANTEE_TEXT = 'If it isn’t right for you, ask for your money back. You’re covered by our 30-day money-back guarantee.';
const DEFAULT_OBJECTIONS: Objection[] = [
{
question: 'What if I’ve tried something like this before and it didn’t work?',
answer: 'Then you already know the hard part isn’t effort. It’s knowing what to do first and what to skip. This gives you that order, step by step, so you’re not guessing again.',
reframe: 'You didn’t fail. You were missing the plan.',
highlight: 'missing the plan',
},
{
question: 'What if I’m not a natural writer?',
answer: 'You don’t need to be. You answer simple prompts about your customer and your offer, and the words come from what you already know.',
reframe: 'You’re not writing from scratch. You’re answering questions.',
highlight: 'answering questions',
},
{
question: 'What if I don’t have time right now?',
answer: 'This isn’t a course you sit through for weeks. Open it tonight, work at your own pace and keep it for whenever you need it.',
reframe: 'Busy is exactly why you need a plan before you build.',
highlight: 'a plan before you build',
},
{
question: 'What if it’s just not for me?',
answer: 'Then you shouldn’t pay for it. Get it, use it, and if it isn’t right for you, ask for your money back within 30 days.',
reframe: 'You decide after you’ve seen it, not before.',
highlight: 'after you’ve seen it',
},
];
const DEFAULT_COPY: ObjectionHandlerCopy = {
listLabel: 'Common worries',
answered: '(answered)',
regularLabel: 'Regular',
regularAria: 'Regular price',
todayAria: 'Today’s price',
cartAria: 'Add {product} to cart, {price}',
cartPlainAria: '{label}, {price}',
ask: '“{question}”',
next: 'Next worry',
restart: 'Back to the first worry',
count: '{current} of {total}',
};
const CSS = `
.cf-objection-handler {
--oh-pt: clamp(56px, 8vw, 112px);
--oh-pb: clamp(64px, 8.5vw, 120px);
--oh-gutter: clamp(16px, 5vw, 48px);
--oh-gap: clamp(48px, 7vw, 104px);
--oh-bleed: 100vw;
--oh-shadow: var(--shadow, oklch(0.22 0.03 256));
--oh-marker: var(--marker, #fae37c);
position: relative;
isolation: isolate;
box-sizing: border-box;
width: 100%;
padding: var(--oh-pt) var(--oh-gutter) var(--oh-pb);
background: var(--surface, #ffffff);
color: var(--ink, #141b2d);
font-family: var(--font-body, system-ui, sans-serif);
overflow: hidden;
overflow: clip;
}
.cf-objection-handler *, .cf-objection-handler *::before, .cf-objection-handler *::after { box-sizing: border-box; }
.cf-objection-handler .oh-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-objection-handler .oh-inner {
position: relative;
max-width: 1120px;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
column-gap: var(--oh-gap);
align-items: start;
}
/* The angled band field: the reader's doubts live on the dark side, the answers on the light side.
The band is the column's own background (bled out with margin + padding), so its text always sits on --band. */
.cf-objection-handler .oh-side {
position: relative;
align-self: stretch;
margin: calc(var(--oh-pt) * -1) calc(var(--oh-gap) * -0.78) calc(var(--oh-pb) * -1) calc(var(--oh-bleed) * -1);
padding: var(--oh-pt) calc(var(--oh-gap) * 0.78) var(--oh-pb) var(--oh-bleed);
background: var(--band, #1b2a4a);
color: var(--band-ink, #ffffff);
clip-path: polygon(0 0, 100% 0, calc(100% - var(--oh-gap) * 0.56) 100%, 0 100%);
}
.cf-objection-handler .oh-side-inner { position: sticky; top: 32px; }
.cf-objection-handler .oh-title {
margin: 0 0 16px;
font-family: var(--font-display, system-ui, sans-serif);
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;
text-wrap: balance;
color: var(--band-ink, #ffffff);
}
.cf-objection-handler .oh-lead {
margin: 0 0 32px;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
font-weight: 500;
line-height: 1.4;
text-wrap: pretty;
color: var(--band-ink, #ffffff);
}
.cf-objection-handler .oh-list { display: flex; flex-direction: column; gap: 12px; }
/* Objection tabs are option tiles on the band: their colours follow --band-ink, their corners follow the button role. */
.cf-objection-handler .oh-q {
appearance: none;
display: flex;
align-items: flex-start;
gap: 12px;
width: 100%;
min-height: 60px;
margin: 0;
padding: 16px 18px;
text-align: left;
border-radius: var(--button-radius, var(--radius, 12px));
border: 1px solid oklch(from var(--band-ink, #ffffff) l c h / 0.18);
background: oklch(from var(--band-ink, #ffffff) l c h / 0.08);
color: var(--band-ink, #ffffff);
font-family: var(--font-body, system-ui, sans-serif);
font-size: 1.0625rem;
font-weight: 700;
line-height: 1.35;
text-wrap: pretty;
cursor: pointer;
transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.cf-objection-handler .oh-q:hover { background: oklch(from var(--band-ink, #ffffff) l c h / 0.14); }
.cf-objection-handler .oh-q:active { transform: translateY(1px); }
.cf-objection-handler .oh-q:focus-visible {
outline: 3px solid oklch(from var(--band-ink, #ffffff) l c h / 0.8);
outline-offset: 3px;
}
.cf-objection-handler .oh-q[aria-selected='true'] {
background: var(--card, #ffffff);
color: var(--ink, #141b2d);
border-color: transparent;
box-shadow: var(--shadow-md, 0 1px 2px oklch(0.22 0.03 256 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 256 / 0.2));
}
.cf-objection-handler .oh-q-text { min-width: 0; }
.cf-objection-handler .oh-dot {
flex: none;
display: inline-grid;
place-items: center;
width: 22px;
height: 22px;
margin-top: 1px;
border-radius: 999px;
border: 2px solid oklch(from var(--band-ink, #ffffff) l c h / 0.5);
}
.cf-objection-handler .oh-q[aria-selected='true'] .oh-dot { border-color: oklch(from var(--ink, #141b2d) l c h / 0.3); }
/* Solid status badge: --success fill with a white glyph (status-badge rule; white stays the fallback). */
.cf-objection-handler .oh-dot[data-done='true'] {
border: 0;
background: var(--success, #1f7a3d);
color: var(--oh-tick-ink, #ffffff);
}
/* The spoken answer */
.cf-objection-handler .oh-main { min-width: 0; }
.cf-objection-handler .oh-answers { display: grid; }
.cf-objection-handler .oh-panel { grid-area: 1 / 1; min-width: 0; border-radius: 8px; }
.cf-objection-handler .oh-panel[data-on='false'] { visibility: hidden; }
.cf-objection-handler .oh-panel:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent, #2b62c9)) l c h / 0.45);
outline-offset: 6px;
}
.cf-objection-handler .oh-ask {
margin: 0 0 12px;
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
text-wrap: balance;
color: var(--ink, #141b2d);
}
.cf-objection-handler .oh-say {
margin: 0;
max-width: 62ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.6;
text-wrap: pretty;
color: var(--ink, #141b2d);
}
.cf-objection-handler .oh-turn {
margin: 24px 0 0;
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.3;
text-wrap: balance;
color: var(--ink, #141b2d);
}
/* One marker stroke behind the key phrase; the bar stays light and the words stay dark on every theme. */
.cf-objection-handler .oh-mark {
color: oklch(from var(--oh-marker) 0.22 0.04 h);
background: linear-gradient(transparent 6%, oklch(from var(--oh-marker) max(l, 0.88) c h / 0.92) 6% 97%, transparent 97%);
padding: 0 0.14em;
margin: 0 -0.04em;
border-radius: 0.16em 0.32em 0.22em 0.34em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-objection-handler .oh-step {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px 16px;
margin-top: 28px;
}
.cf-objection-handler .oh-next {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 56px;
padding: 0 24px;
border: 1px solid var(--button-2-border, transparent);
border-radius: var(--button-radius, var(--radius, 12px));
background: var(--button-2-bg, var(--secondary, #e8ecf3));
color: var(--button-2-ink, var(--secondary-ink, #141b2d));
font-family: var(--button-font, var(--font-display, system-ui, sans-serif));
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;
white-space: nowrap;
cursor: pointer;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.cf-objection-handler .oh-next:hover { background: oklch(from var(--button-2-bg, var(--secondary, #e8ecf3)) calc(l - 0.04) c h); }
.cf-objection-handler .oh-next:active { transform: translateY(1px); }
.cf-objection-handler .oh-next:focus-visible {
outline: 3px solid var(--field-focus, var(--accent, #2b62c9));
outline-offset: 3px;
}
.cf-objection-handler .oh-count {
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--muted, #4a5568);
font-variant-numeric: tabular-nums;
}
/* The close: guarantee line, price and add to cart */
.cf-objection-handler .oh-close { margin-top: 56px; }
.cf-objection-handler .oh-g { display: flex; align-items: flex-start; gap: 16px 20px; }
.cf-objection-handler .oh-seal {
flex: none;
display: block;
width: 88px;
height: 88px;
object-fit: contain;
filter: drop-shadow(0 2px 3px oklch(from var(--oh-shadow) l c h / 0.28)) drop-shadow(0 8px 12px oklch(from var(--oh-shadow) l c h / 0.18));
}
.cf-objection-handler .oh-seal-icon {
flex: none;
display: inline-grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: 999px;
background: var(--accent-fill, var(--accent, #2b62c9));
color: var(--accent-fill-ink, var(--card, #ffffff));
}
.cf-objection-handler .oh-g-copy { min-width: 0; }
.cf-objection-handler .oh-g-title {
margin: 0 0 8px;
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: -0.01em;
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
text-wrap: balance;
color: var(--ink, #141b2d);
}
.cf-objection-handler .oh-g-text {
margin: 0;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.45;
text-wrap: pretty;
color: var(--muted, #4a5568);
}
.cf-objection-handler .oh-buy {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px 24px;
margin-top: 32px;
}
.cf-objection-handler .oh-price {
flex: none;
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 0;
}
.cf-objection-handler .oh-was {
display: flex;
align-items: baseline;
gap: 8px;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.2;
color: var(--muted, #4a5568);
}
.cf-objection-handler .oh-was s {
font-size: 1.0625rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
color: var(--muted, #4a5568);
text-decoration-line: line-through;
text-decoration-color: var(--danger, #b42318);
text-decoration-thickness: 2px;
}
.cf-objection-handler .oh-now {
display: block;
margin-top: 12px;
font-family: var(--font-display, system-ui, sans-serif);
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, #141b2d);
}
.cf-objection-handler .oh-btn {
--oh-bb: var(--button-bg, var(--cta, #d6402b));
--oh-bb2: var(--button-bg-2, var(--cta-2, #b8321f));
flex: 1 1 260px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 72px;
padding: 0 28px;
margin: 0;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--oh-bb) calc(l + 0.04) c h), oklch(from var(--oh-bb2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display, system-ui, sans-serif));
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;
white-space: nowrap;
text-decoration: none;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--oh-bb) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--oh-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--oh-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--oh-shadow) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-objection-handler .oh-btn-icon { flex: none; }
.cf-objection-handler .oh-btn:hover,
.cf-objection-handler[data-state='hover'] .oh-btn {
background: linear-gradient(oklch(from var(--oh-bb) calc(l - 0.01) c h), oklch(from var(--oh-bb2) calc(l - 0.07) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--oh-bb) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--oh-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--oh-shadow) l c h / 0.32), 0 10px 20px -6px oklch(from var(--oh-shadow) l c h / 0.52));
}
.cf-objection-handler .oh-btn:active,
.cf-objection-handler[data-state='active'] .oh-btn {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--oh-bb) calc(l - 0.04) c h), oklch(from var(--oh-bb2) calc(l - 0.08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--oh-bb) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--oh-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--oh-shadow) l c h / 0.3);
}
.cf-objection-handler .oh-btn:focus-visible {
outline: 3px solid var(--field-focus, var(--accent, #2b62c9));
outline-offset: 3px;
}
.cf-objection-handler .oh-btn:disabled,
.cf-objection-handler[data-state='disabled'] .oh-btn {
background: var(--secondary, #e8ecf3);
color: var(--secondary-ink, #141b2d);
text-shadow: none;
cursor: not-allowed;
transform: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-objection-handler .oh-note {
margin: 14px 0 0;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
text-wrap: pretty;
color: var(--muted, #4a5568);
}
.cf-objection-handler .oh-note svg {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
}
/* Phone: the band field becomes the top half with an angled lower edge. */
@media (max-width: 899px) {
.cf-objection-handler .oh-inner { grid-template-columns: minmax(0, 1fr); }
.cf-objection-handler .oh-side {
margin: calc(var(--oh-pt) * -1) calc(var(--oh-bleed) * -1) 0;
padding: var(--oh-pt) var(--oh-bleed) 80px;
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.cf-objection-handler .oh-side-inner { position: static; }
.cf-objection-handler .oh-main { margin-top: 48px; }
.cf-objection-handler .oh-close { margin-top: 48px; }
.cf-objection-handler .oh-seal { width: 72px; height: 72px; }
.cf-objection-handler .oh-buy { margin-top: 24px; }
}
@media (max-width: 420px) {
.cf-objection-handler .oh-q { padding: 14px 16px; }
.cf-objection-handler .oh-btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-objection-handler .oh-q,
.cf-objection-handler .oh-next,
.cf-objection-handler .oh-btn { transition: none; }
.cf-objection-handler .oh-q:active,
.cf-objection-handler .oh-next:active,
.cf-objection-handler .oh-btn:active,
.cf-objection-handler[data-state='active'] .oh-btn { transform: none; }
}
`;
pieces/content/objection-handler/specimen.tsx 54 lines
import __studioImage2cb1432a from "../assets/73bf7719cbbe812d.webp";
// Specimen: the objection crusher closing The Funnel Starter Kit sales letter.
import ObjectionHandler from '../objection-handler';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
const sample = defaults.sample;
const [guide, workbook, checklist] = sample.items;
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function ObjectionHandlerSpecimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<ObjectionHandler
state={state}
productName={sample.name}
price={sample.price}
regularPrice={sample.regularPrice}
note={sample.note}
guaranteeHeadline='Still not sure? Try the kit for 30 days.'
guaranteeText={'Use it on your own funnel. If it isn’t right for you, ask for your money back. You’re covered by our ' + sample.guarantee + '.'}
guaranteeImage={slot('seal-guarantee', __studioImage2cb1432a)}
guaranteeImageAlt='30-day money-back guarantee seal'
objections={[
{
question: 'What if I’ve tried building a funnel before and it flopped?',
answer: 'Then you already know the hard part isn’t the software. It’s knowing which pages you need and what goes on each one. The ' + guide.name + ' maps that out before you build a thing.',
reframe: 'You didn’t fail at funnels. You were missing the plan.',
highlight: 'missing the plan',
},
{
question: 'What if I’m not a writer?',
answer: 'You don’t need to be. The ' + workbook.name + ' walks you through your headline, your offer and your call to action, one prompt at a time.',
reframe: 'You’re not writing from scratch. You’re answering questions.',
highlight: 'answering questions',
},
{
question: 'What if I don’t have time right now?',
answer: 'This isn’t a course you sit through for weeks. Open the guide tonight, work at your own pace, and the ' + checklist.name + ' checks every step before you go live.',
reframe: 'Busy is exactly why you need a plan before you build.',
highlight: 'a plan before you build',
},
{
question: 'What if it’s just not for me?',
answer: 'Then you shouldn’t pay for it. Get the kit, use it, and if it isn’t right for you, ask for your money back within 30 days.',
reframe: 'You decide after you’ve seen it, not before.',
highlight: 'after you’ve seen it',
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalObjectionHandler |
React.ReactNode |
|
lead OptionalObjectionHandler |
React.ReactNode |
|
objections OptionalObjectionHandler |
Objection[] |
|
defaultIndex OptionalObjectionHandler |
number |
|
guaranteeHeadline OptionalObjectionHandler |
React.ReactNode |
|
guaranteeText OptionalObjectionHandler |
React.ReactNode |
|
guaranteeImage OptionalObjectionHandler |
string |
|
guaranteeImageAlt OptionalObjectionHandler |
string |
|
productName OptionalObjectionHandler |
string |
|
price OptionalObjectionHandler |
string |
|
regularPrice OptionalObjectionHandler |
string |
|
label OptionalObjectionHandler |
string |
|
note OptionalObjectionHandler |
React.ReactNode |
|
href OptionalObjectionHandler |
string |
|
onAction OptionalObjectionHandler |
() => void |
|
onSelect OptionalObjectionHandler |
(index: number) => void |
|
state OptionalObjectionHandler |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalObjectionHandler |
Partial<ObjectionHandlerCopy> |
|
className OptionalObjectionHandler |
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-border--button-2-ink--button-2-shadow- Secondary button.
--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.
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
73bf7719cbbe812d.webp
image/webp · 292 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB