Free Audit 1
Free audit / strategy session offer. The visitor sees the audit as an itemised ledger, marks their biggest leak and
Use it in a prompt
Use offer/free-audit 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/free-audit.tsx. - Import it and pass your copy and images (Props tab):
import { FreeAudit } from "@/components/funneldna/offer/free-audit"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/free-audit/component.tsx 527 lines
// layout: ledger-receipt
// Free audit / strategy session offer. The visitor sees the audit as an itemised ledger, marks their biggest leak and
// sees it total to today's price. A short apply form closes it, so the free call feels concrete, valuable and risk-free.
import * as React from "react";
import { AlertCircle, CalendarCheck, Check, ListOrdered, MousePointerClick, PenLine, ShieldCheck, Target, X } from "lucide-react";
import { FX_HOST, Pattern } from "../fx/fx";
export type FreeAuditItem = {
title: string;
/** One short line under the title */
detail?: string;
/** Right-hand ledger figure, e.g. "15 min"; copy.included shows when empty */
meta?: string;
};
export type FreeAuditValues = {
name: string;
email: string;
website: string;
/** Title of the ledger line the visitor marked as their biggest leak */
focus?: string;
};
export type FreeAuditCopy = {
formLabel: string;
nameLabel: string;
namePlaceholder: string;
emailLabel: string;
emailPlaceholder: string;
siteLabel: string;
sitePlaceholder: string;
nameError: string;
emailError: string;
siteError: string;
/** Flag on the line the visitor marks */
flag: string;
/** Shown once a line is marked; {focus} is replaced by its title */
focusLine: string;
/** Shown while no line is marked */
focusNone: string;
/** Ledger figure for lines without a meta */
included: string;
/** Prefix of the default discount amount */
minus: string;
};
export type FreeAuditProps = {
headline?: string;
/** Phrase inside the headline that gets the marker swipe */
highlight?: string;
lead?: string;
ledgerTitle?: string;
ledgerHint?: string;
/** What the audit covers, 3 to 5 lines */
items?: FreeAuditItem[];
/** Index of the line pre-marked as the visitor's biggest leak */
defaultFocus?: number;
/** Supplied value of the audit, e.g. "$97"; the subtotal and discount lines hide when empty */
value?: string;
valueLabel?: string;
discountLabel?: string;
/** Discount amount; defaults to copy.minus + value */
discount?: string;
totalLabel?: string;
total?: string;
/** Bold risk reversal that leads into the form */
riskLead?: string;
riskText?: string;
label?: string;
/** One short line under the button */
note?: string;
giveTitle?: string;
/** What they walk away with */
give?: string[];
/** Deliverable cut-out (slot "product"), transparent background */
reportImage?: string;
reportImageAlt?: string;
fitTitle?: string;
fit?: string[];
notFitTitle?: string;
notFit?: string[];
copy?: Partial<FreeAuditCopy>;
/** Called with validated values; the page wires what happens next */
onSubmit?: (values: FreeAuditValues) => void;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
type FieldKey = "name" | "email" | "website";
type Fields = Record<FieldKey, string>;
const DEFAULT_COPY: FreeAuditCopy = {
formLabel: "Apply for your free audit",
nameLabel: "Your name",
namePlaceholder: "Jane Smith",
emailLabel: "Best email",
emailPlaceholder: "you@example.com",
siteLabel: "Website or funnel link",
sitePlaceholder: "yourfunnel.com",
nameError: "Enter your name.",
emailError: "Enter a valid email, like you@example.com.",
siteError: "Add your website or funnel link.",
flag: "Start here",
focusLine: "Your call starts with {focus}.",
focusNone: "Not sure which? Leave it and we’ll find it together.",
included: "Included",
minus: "−",
};
const DEFAULT_ITEMS: FreeAuditItem[] = [
{ title: "Offer and price", detail: "Is your offer clear enough to say yes to?" },
{ title: "Page copy", detail: "Headline, hook and call to action, line by line." },
{ title: "Funnel steps", detail: "Every click from first page to checkout, mapped." },
{ title: "Follow-up", detail: "What happens after someone opts in or buys." },
];
const DEFAULT_GIVE = [
"Your biggest leaks, ranked by what they cost you",
"A sharper headline for your main page",
"A fix list in the order to do it",
];
const DEFAULT_FIT = ["Have a funnel live, or one ready to launch", "Want a straight answer on what to fix first"];
const DEFAULT_NOT_FIT = ["Are still deciding what to sell", "Want someone to build it all for you"];
const GIVE_ICONS = [ListOrdered, PenLine, CalendarCheck];
const EMPTY: Fields = { name: "", email: "", website: "" };
export function FreeAudit(props: FreeAuditProps) {
const {
headline = "Get a free funnel audit and leave with a fix list you can run this week",
highlight = "a fix list you can run this week",
lead = "Show us your funnel. In one focused call you see where visitors drop off, and which fix to make first.",
ledgerTitle = "Everything we check on your call",
ledgerHint = "Mark the one that’s costing you most.",
items = DEFAULT_ITEMS,
defaultFocus,
value,
valueLabel = "Audit value",
discountLabel = "Free strategy session",
discount,
totalLabel = "Due today",
total = "$0",
riskLead = "Keep the fix list either way.",
riskText = "No pitch, no pressure, no obligation.",
label = "Book my free audit · $0",
note = "Takes 30 seconds to apply.",
giveTitle = "Walk away with a plan, not a pitch",
give = DEFAULT_GIVE,
reportImage,
reportImageAlt = "Printed funnel audit with a ranked fix list",
fitTitle = "This is for you if you…",
fit = DEFAULT_FIT,
notFitTitle = "Skip it if you…",
notFit = DEFAULT_NOT_FIT,
copy: copyProp,
onSubmit,
state = "default",
className,
} = props;
const copy: FreeAuditCopy = { ...DEFAULT_COPY, ...copyProp };
const uid = React.useId();
const disabled = state === "disabled";
const [focus, setFocus] = React.useState<number | null>(defaultFocus ?? null);
const [values, setValues] = React.useState<Fields>(EMPTY);
const [submitted, setSubmitted] = React.useState(state === "error");
React.useEffect(() => {
setSubmitted(state === "error");
}, [state]);
const errors = validate(values, copy);
const marked = focus !== null ? items[focus] : undefined;
const discountText = discount ?? (value ? `${copy.minus}${value}` : "");
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (disabled) return;
setSubmitted(true);
const first = FIELD_ORDER.find((key) => errors[key]);
if (first) {
const el = event.currentTarget.elements.namedItem(first);
if (el instanceof HTMLInputElement) el.focus();
return;
}
onSubmit?.({
name: values.name.trim(),
email: values.email.trim(),
website: values.website.trim(),
focus: marked?.title,
});
};
const field = (key: FieldKey, type: string, autoComplete: string, fieldLabel: string, placeholder: string, wide = false) => {
const id = `${uid}-${key}`;
const error = submitted ? errors[key] : undefined;
return (
<div className={`cf-free-audit__field${wide ? " is-wide" : ""}`}>
<label htmlFor={id}>{fieldLabel}</label>
<input
id={id}
name={key}
type={type}
autoComplete={autoComplete}
placeholder={placeholder}
value={values[key]}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={error ? `${id}-error` : undefined}
onChange={(event) => {
const next = event.target.value;
setValues((current) => ({ ...current, [key]: next }));
}}
/>
{error ? (
<p id={`${id}-error`} className="cf-free-audit__err">
<AlertCircle className="cf-free-audit__ic" strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
) : null}
</div>
);
};
const btnClass = ["cf-free-audit__btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""]
.filter(Boolean)
.join(" ");
return (
<section className={["cf-free-audit", className].filter(Boolean).join(" ")} style={FX_HOST} aria-labelledby={`${uid}-h`}>
<Pattern name="grid" fade="corner" />
<style>{CSS}</style>
<div className="cf-free-audit__wrap">
<div className="cf-free-audit__side">
<header className="cf-free-audit__head">
<h2 id={`${uid}-h`} className="cf-free-audit__h">
{withMarker(headline, highlight)}
</h2>
{lead ? <p className="cf-free-audit__lead">{lead}</p> : null}
</header>
{give.length ? (
<section className="cf-free-audit__give" aria-labelledby={`${uid}-give`}>
<h3 id={`${uid}-give`} className="cf-free-audit__sub">
{giveTitle}
</h3>
<div className={`cf-free-audit__givebody${reportImage ? " has-img" : ""}`}>
{reportImage ? (
<img
className="cf-free-audit__report"
src={reportImage}
alt={reportImageAlt}
width={480}
height={480}
loading="lazy"
decoding="async"
/>
) : null}
<ul className="cf-free-audit__list">
{give.map((line, i) => {
const Icon = GIVE_ICONS[i % GIVE_ICONS.length];
return (
<li key={`${line}-${i}`}>
<Icon className="cf-free-audit__giveic" size={24} strokeWidth={2.5} aria-hidden="true" />
<span>{line}</span>
</li>
);
})}
</ul>
</div>
</section>
) : null}
{fit.length || notFit.length ? (
<div className="cf-free-audit__fit">
{fit.length ? <FitList title={fitTitle} lines={fit} yes /> : null}
{notFit.length ? <FitList title={notFitTitle} lines={notFit} yes={false} /> : null}
</div>
) : null}
</div>
<form
className={`cf-free-audit__card${disabled ? " is-disabled" : ""}`}
noValidate
onSubmit={handleSubmit}
aria-label={copy.formLabel}
>
<h3 id={`${uid}-title`} className="cf-free-audit__title">
{ledgerTitle}
</h3>
{ledgerHint ? (
<p id={`${uid}-hint`} className="cf-free-audit__hint">
<MousePointerClick className="cf-free-audit__ic" strokeWidth={2.5} aria-hidden="true" />
{ledgerHint}
</p>
) : null}
<div
className="cf-free-audit__rows"
role="radiogroup"
aria-labelledby={`${uid}-title`}
aria-describedby={ledgerHint ? `${uid}-hint` : undefined}
>
{items.map((item, i) => {
const on = focus === i;
return (
<label
key={`${item.title}-${i}`}
className={`cf-free-audit__row${on ? " is-on" : ""}`}
style={{ animationDelay: `${Math.min(i * 0.07, 0.28)}s` }}
>
<input
type="radio"
className="cf-free-audit__radio"
name={`${uid}-focus`}
value={item.title}
checked={on}
disabled={disabled}
onChange={() => setFocus(i)}
/>
{on ? <span className="cf-free-audit__flag">{copy.flag}</span> : null}
<span className="cf-free-audit__num" aria-hidden="true">
{String(i + 1).padStart(2, "0")}
</span>
<span className="cf-free-audit__rowbody">
<span className="cf-free-audit__line">
<span className="cf-free-audit__rowtitle">{item.title}</span>
<span className="cf-free-audit__leader" aria-hidden="true" />
<span className="cf-free-audit__meta">{item.meta || copy.included}</span>
</span>
{item.detail ? <span className="cf-free-audit__detail">{item.detail}</span> : null}
</span>
</label>
);
})}
</div>
<div className="cf-free-audit__sum">
{value ? (
<>
<p className="cf-free-audit__sumrow">
<span className="cf-free-audit__sumlabel">{valueLabel}</span>
<span className="cf-free-audit__leader" aria-hidden="true" />
<span className="cf-free-audit__amt">{value}</span>
</p>
<p className="cf-free-audit__sumrow">
<span className="cf-free-audit__sumlabel">{discountLabel}</span>
<span className="cf-free-audit__leader" aria-hidden="true" />
<span className="cf-free-audit__amt">{discountText}</span>
</p>
</>
) : null}
<p className="cf-free-audit__total">
<span className="cf-free-audit__sumlabel">{totalLabel}</span>
<span className="cf-free-audit__leader" aria-hidden="true" />
<span className="cf-free-audit__price">{total}</span>
</p>
</div>
{riskLead || riskText ? (
<p className="cf-free-audit__risk">
<ShieldCheck className="cf-free-audit__ic" strokeWidth={2.5} aria-hidden="true" />
{riskLead ? <strong>{riskLead}</strong> : null}
{riskLead && riskText ? " " : null}
{riskText}
</p>
) : null}
<div className="cf-free-audit__fields">
{field("name", "text", "name", copy.nameLabel, copy.namePlaceholder)}
{field("email", "email", "email", copy.emailLabel, copy.emailPlaceholder)}
{field("website", "url", "url", copy.siteLabel, copy.sitePlaceholder, true)}
</div>
<p className="cf-free-audit__focus" aria-live="polite">
<Target className="cf-free-audit__ic" strokeWidth={2.5} aria-hidden="true" />
{marked ? fill(copy.focusLine, "{focus}", <strong>{marked.title}</strong>) : copy.focusNone}
</p>
<button type="submit" className={btnClass} disabled={disabled}>
{label}
</button>
{note ? <p className="cf-free-audit__note">{note}</p> : null}
</form>
</div>
</section>
);
}
export default FreeAudit;
const FIELD_ORDER: FieldKey[] = ["name", "email", "website"];
function validate(v: Fields, copy: FreeAuditCopy): Partial<Record<FieldKey, string>> {
return {
name: v.name.trim() ? undefined : copy.nameError,
email: /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v.email.trim()) ? undefined : copy.emailError,
website: /\S+\.\S+/.test(v.website.trim()) ? undefined : copy.siteError,
};
}
function withMarker(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="cf-free-audit__mark">{phrase}</mark>
{text.slice(at + phrase.length)}
</>
);
}
function fill(template: string, token: string, node: React.ReactNode): React.ReactNode {
const at = template.indexOf(token);
if (at < 0) return template;
return (
<>
{template.slice(0, at)}
{node}
{template.slice(at + token.length)}
</>
);
}
function FitList({ title, lines, yes }: { title: string; lines: string[]; yes: boolean }) {
const Glyph = yes ? Check : X;
return (
<div>
<h3 className="cf-free-audit__fith">{title}</h3>
<ul className="cf-free-audit__list is-tight">
{lines.map((line, i) => (
<li key={`${line}-${i}`}>
<span className={`cf-free-audit__badge ${yes ? "is-yes" : "is-no"}`} aria-hidden="true">
<Glyph size={14} strokeWidth={3} />
</span>
<span>{line}</span>
</li>
))}
</ul>
</div>
);
}
const CSS = `
.cf-free-audit{--cffa-marker:var(--marker,#fae37c);--cffa-shade:var(--shadow,oklch(0.22 0.03 260));--cffa-focus:var(--field-focus,var(--accent));--cffa-on:var(--status-glyph,#fff);position:relative;isolation:isolate;overflow:clip;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-free-audit *,.cf-free-audit *::before,.cf-free-audit *::after{box-sizing:border-box}
.cf-free-audit__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "ledger" "give" "fit";row-gap:40px;align-items:start}
.cf-free-audit__side{display:contents}
@media (min-width:960px){.cf-free-audit__wrap{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);grid-template-areas:"side ledger";column-gap:clamp(32px,5vw,72px)}.cf-free-audit__side{grid-area:side;display:flex;flex-direction:column;gap:48px;min-width:0;position:sticky;top:32px;align-self:start}}
.cf-free-audit__head{grid-area:head;animation:cffa-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-free-audit__h{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--ink);text-wrap:balance}
.cf-free-audit__mark{color:inherit;background:linear-gradient(transparent 44%,color-mix(in oklch,var(--cffa-marker) 82%,transparent) 44%,color-mix(in oklch,var(--cffa-marker) 82%,transparent) 94%,transparent 94%);padding:0 .1em;margin:0 -.04em;border-radius:.18em .4em .3em .2em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-free-audit__lead{margin:0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit__ic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;margin-inline-end:.4em}
.cf-free-audit__card{grid-area:ledger;align-self:start;margin:0;background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklab,var(--accent) 22%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));padding:clamp(20px,3vw,32px);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + .04) c h / .6),var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--cffa-shade) l c h / .22),0 12px 24px -8px oklch(from var(--cffa-shade) l c h / .32)));animation:cffa-rise .45s cubic-bezier(.2,.7,.2,1) .07s both}
.cf-free-audit__title{margin:0 0 8px;font-family:var(--font-display);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(--ink);text-wrap:balance}
.cf-free-audit__hint{margin:0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit__rows{margin-top:20px;display:grid;gap:6px}
.cf-free-audit__row{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:baseline;padding:18px 16px 14px;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:background-color .16s ease,border-color .16s ease;animation:cffa-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-free-audit__card:not(.is-disabled) .cf-free-audit__row:not(.is-on):hover{background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-free-audit__row.is-on{background:color-mix(in oklab,var(--accent) 10%,var(--card));border-color:color-mix(in oklab,var(--accent) 45%,var(--card))}
.cf-free-audit__row.is-on .cf-free-audit__meta,.cf-free-audit__row.is-on .cf-free-audit__detail{color:var(--ink)}
.cf-free-audit__row:has(.cf-free-audit__radio:focus-visible){outline:3px solid oklch(from var(--cffa-focus) l c h / .5);outline-offset:2px}
.cf-free-audit__card.is-disabled .cf-free-audit__row{cursor:not-allowed}
.cf-free-audit__radio{position:absolute;top:0;left:0;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.cf-free-audit__flag{position:absolute;top:0;right:14px;display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;line-height:1.2;font-weight:800;white-space:nowrap;box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--cffa-shade) l c h / .25));transform:translateY(-50%);animation:cffa-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-free-audit__num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--accent);font-variant-numeric:lining-nums tabular-nums}
.cf-free-audit__rowbody{display:block;min-width:0}
.cf-free-audit__line{display:flex;align-items:flex-end;align-items:last baseline;gap:10px}
.cf-free-audit__rowtitle{flex:0 1 auto;min-width:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:800;color:var(--ink);text-wrap:pretty}
.cf-free-audit__leader{position:relative;top:-.28em;flex:1 1 12px;min-width:12px;height:1px;background:oklch(from var(--ink) l c h / .22)}
.cf-free-audit__meta{flex:none;white-space:nowrap;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--muted);font-variant-numeric:lining-nums tabular-nums}
.cf-free-audit__detail{display:block;margin-top:4px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit__sum{margin-top:20px;padding:16px 20px 18px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-free-audit__sumrow{margin:0;display:flex;align-items:baseline;gap:10px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:600;color:var(--ink)}
.cf-free-audit__sumrow + .cf-free-audit__sumrow{margin-top:6px}
.cf-free-audit__sumlabel{flex:0 1 auto;min-width:0}
.cf-free-audit__amt{flex:none;font-weight:800;font-variant-numeric:lining-nums tabular-nums}
.cf-free-audit__total{margin:12px 0 0;display:flex;align-items:baseline;gap:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:800;color:var(--ink)}
.cf-free-audit__total:first-child{margin-top:0}
.cf-free-audit__price{flex:none;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:lining-nums tabular-nums}
.cf-free-audit__risk{margin:20px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-free-audit__risk strong{font-weight:800}
.cf-free-audit__risk .cf-free-audit__ic{color:var(--success)}
.cf-free-audit__fields{margin-top:20px;display:grid;gap:16px}
@media (min-width:560px){.cf-free-audit__fields{grid-template-columns:1fr 1fr}.cf-free-audit__field.is-wide{grid-column:1 / -1}}
.cf-free-audit__field{display:grid;gap:8px;min-width:0;align-content:start}
.cf-free-audit__field label{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink))}
.cf-free-audit__field input{width:100%;min-height:56px;margin:0;padding:0 16px;font:inherit;font-size:clamp(1.0625rem,1.25vw,1.125rem);color:var(--field-ink);background:var(--field);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));-webkit-appearance:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}
.cf-free-audit__field input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-free-audit__field input:hover:not(:disabled):not(:focus){border-color:color-mix(in oklch,var(--field-ink) 45%,var(--field))}
.cf-free-audit__field input:focus{outline:none;border-color:var(--cffa-focus);box-shadow:0 0 0 3px oklch(from var(--cffa-focus) l c h / .35)}
.cf-free-audit__field input[aria-invalid="true"]{border-color:var(--danger)}
.cf-free-audit__field input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-free-audit__field input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 6%,var(--field))}
.cf-free-audit__err{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-free-audit__focus{margin:18px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit__focus strong{font-weight:800;color:var(--ink)}
.cf-free-audit__focus .cf-free-audit__ic{color:var(--accent)}
.cf-free-audit__btn{--cffa-b:var(--button-bg,var(--cta));--cffa-b2:var(--button-bg-2,var(--cta-2));display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin:12px 0 0;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--cffa-b) calc(l + .04) c h),oklch(from var(--cffa-b2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-transform:var(--button-case,none);text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cffa-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--cffa-b) calc(l - .16) c h),0 1px 2px oklch(from var(--cffa-shade) l c h / .3),0 8px 16px -6px oklch(from var(--cffa-shade) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-free-audit__btn:hover:not(:disabled),.cf-free-audit__btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--cffa-b) calc(l - .01) c h),oklch(from var(--cffa-b2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--cffa-b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--cffa-b) calc(l - .2) c h),0 1px 2px oklch(from var(--cffa-shade) l c h / .32),0 10px 18px -6px oklch(from var(--cffa-shade) l c h / .52)}
.cf-free-audit__btn:active:not(:disabled),.cf-free-audit__btn.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--cffa-b) calc(l - .06) c h),oklch(from var(--cffa-b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--cffa-b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--cffa-b) calc(l - .16) c h),0 1px 2px oklch(from var(--cffa-shade) l c h / .3)}
.cf-free-audit__btn:focus-visible{outline:3px solid oklch(from var(--cffa-focus) l c h / .55);outline-offset:3px}
.cf-free-audit__btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:none;text-shadow:none;cursor:not-allowed}
.cf-free-audit__note{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-free-audit__give{grid-area:give;min-width:0}
.cf-free-audit__sub{margin:0 0 16px;font-family:var(--font-display);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(--ink);text-wrap:balance}
.cf-free-audit__givebody.has-img{display:grid;grid-template-columns:clamp(104px,24vw,150px) minmax(0,1fr);gap:clamp(16px,2.5vw,24px);align-items:start}
.cf-free-audit__report{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--cffa-shade) l c h / .28)) drop-shadow(0 12px 14px oklch(from var(--cffa-shade) l c h / .2))}
.cf-free-audit__list{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.cf-free-audit__list.is-tight{gap:12px}
.cf-free-audit__list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-free-audit__giveic{color:var(--accent);margin-top:1px}
.cf-free-audit__fit{grid-area:fit;display:grid;gap:24px;min-width:0}
@media (min-width:640px){.cf-free-audit__fit{grid-template-columns:1fr 1fr;gap:32px}}
.cf-free-audit__fith{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;color:var(--ink);text-wrap:balance}
.cf-free-audit__badge{display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:999px;color:var(--cffa-on)}
.cf-free-audit__badge.is-yes{background:oklch(from var(--success) min(l,.56) c h)}
.cf-free-audit__badge.is-no{background:oklch(from var(--danger) min(l,.56) c h)}
@media (max-width:480px){.cf-free-audit__row{padding:18px 12px 14px;column-gap:12px}.cf-free-audit__flag{right:10px}.cf-free-audit__sum{padding:14px 16px 16px}.cf-free-audit__sumlabel{text-wrap:balance}.cf-free-audit__btn{padding:12px 16px}}
@media (max-width:420px){.cf-free-audit__btn{font-size:1.0625rem;letter-spacing:-0.005em}}
@keyframes cffa-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cffa-pop{from{transform:translateY(-50%) scale(.9)}to{transform:translateY(-50%) scale(1)}}
@media (prefers-reduced-motion:reduce){.cf-free-audit__head,.cf-free-audit__card,.cf-free-audit__row,.cf-free-audit__flag{animation:none}.cf-free-audit__row,.cf-free-audit__btn,.cf-free-audit__field input{transition:none}.cf-free-audit__btn:active:not(:disabled),.cf-free-audit__btn.is-active:not(:disabled){transform:none}}
`;
pieces/offer/free-audit/specimen.tsx 50 lines
import __studioImage981c65f2 from "../assets/0686f66bdf01e854.webp";
import FreeAudit, { type FreeAuditProps } from "../free-audit";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function FreeAuditSpecimen({ state }: { state?: FreeAuditProps["state"] }) {
const sample = defaults.sample;
return (
<FreeAudit
state={state}
headline="Get a free funnel audit and leave with a fix list you can run this week"
highlight="a fix list you can run this week"
lead="Show us your funnel. In one focused call you see where visitors drop off, and which fix to make first."
ledgerTitle="Everything we check on your 45-minute call"
ledgerHint="Mark the one that’s costing you most."
items={[
{ title: "Offer and price", detail: "Is your offer clear enough to say yes to?", meta: "10 min" },
{ title: "Page copy", detail: "Headline, hook and call to action, line by line.", meta: "15 min" },
{ title: "Funnel steps", detail: "Every click from first page to checkout, mapped.", meta: "10 min" },
{ title: "Follow-up", detail: "What happens after someone opts in or buys.", meta: "10 min" },
]}
defaultFocus={1}
value={sample.regularPrice}
valueLabel="Audit value"
discountLabel="Free strategy session"
total="$0"
riskLead="Keep the fix list either way."
riskText="No pitch, no pressure, no obligation."
label="Book my free audit · $0"
note="Takes 30 seconds to apply."
giveTitle="Walk away with a plan, not a pitch"
give={[
"Your 3 biggest leaks, ranked by what they cost you",
"A rewritten headline for your main page",
"A 30-day fix list in the order to do it",
]}
reportImage={slot(
"product",
__studioImage981c65f2
)}
reportImageAlt="Printed funnel audit report with a ranked fix list and sticky tabs"
fitTitle="This is for you if you…"
fit={["Have a funnel live, or one ready to launch", "Want a straight answer on what to fix first"]}
notFitTitle="Skip it if you…"
notFit={["Are still deciding what to sell", "Want someone to build it all for you"]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalFreeAudit |
string |
|
highlight OptionalFreeAudit |
string |
|
lead OptionalFreeAudit |
string |
|
ledgerTitle OptionalFreeAudit |
string |
|
ledgerHint OptionalFreeAudit |
string |
|
items OptionalFreeAudit |
FreeAuditItem[] |
|
defaultFocus OptionalFreeAudit |
number |
|
value OptionalFreeAudit |
string |
|
valueLabel OptionalFreeAudit |
string |
|
discountLabel OptionalFreeAudit |
string |
|
discount OptionalFreeAudit |
string |
|
totalLabel OptionalFreeAudit |
string |
|
total OptionalFreeAudit |
string |
|
riskLead OptionalFreeAudit |
string |
|
riskText OptionalFreeAudit |
string |
|
label OptionalFreeAudit |
string |
|
note OptionalFreeAudit |
string |
|
giveTitle OptionalFreeAudit |
string |
|
give OptionalFreeAudit |
string[] |
|
reportImage OptionalFreeAudit |
string |
|
reportImageAlt OptionalFreeAudit |
string |
|
fitTitle OptionalFreeAudit |
string |
|
fit OptionalFreeAudit |
string[] |
|
notFitTitle OptionalFreeAudit |
string |
|
notFit OptionalFreeAudit |
string[] |
|
copy OptionalFreeAudit |
Partial<FreeAuditCopy> |
|
onSubmit OptionalFreeAudit |
(values: FreeAuditValues) => void |
|
state OptionalFreeAudit |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalFreeAudit |
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--field-border--field-focus--field-ink--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.
product- The main product shot or cover (ebook, kit, bottle).
-
0686f66bdf01e854.webp
image/webp · 156 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB