Assessment Report 1
Assessment report for quiz and survey results: the report is the sales argument. A sticky route rail walks the
Use it in a prompt
Use content/assessment-report 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/assessment-report.tsx. - Import it and pass your copy and images (Props tab):
import { AssessmentReport } from "@/components/funneldna/content/assessment-report"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/assessment-report/component.tsx 647 lines
// layout: route-map
// Assessment report for quiz and survey results: the report is the sales argument. A sticky route rail walks the
// reader from where they landed, through why it happens and what it means, to a three-step plan that ends at the offer.
import * as React from "react";
import { Check, Flag, ShieldCheck } from "lucide-react";
import { Divider, FX_HOST, Spot } from "../fx/fx";
import pin from "../fx/spots/pin";
import chart from "../fx/spots/chart";
import checklist from "../fx/spots/checklist";
import rocket from "../fx/spots/rocket";
import gift from "../fx/spots/gift";
export type AssessmentReportMeta = { label: string; value: string };
export type AssessmentReportGauge = {
/** 0-100: where the needle points */
value: number;
/** the named result, e.g. "Planning stage" */
result: string;
/** optional big numeral beside the gauge */
score?: string;
/** what the score is out of, e.g. "/ 100" */
scoreOf?: string;
caption?: string;
/** start, middle and end of the scale */
labels?: string[];
};
export type AssessmentReportPart = {
/** short label on the route rail */
route: string;
title: React.ReactNode;
lead?: React.ReactNode;
bullets?: React.ReactNode[];
/** optional cause-and-effect chain shown as linked wells */
chain?: { title: string; body?: string }[];
body?: React.ReactNode[];
/** an imported fx spot (import pin from "../fx/spots/pin") */
spot?: string;
};
export type AssessmentReportStep = { title: string; body?: string; image?: string; imageAlt?: string };
export type AssessmentReportCopy = {
/** accessible name of the route rail */
routeLabel?: string;
/** phone progress count; {current} and {total} are replaced */
progress?: string;
/** read before the struck price by screen readers */
regularPrice?: string;
/** gauge description; {result}, {start} and {end} are replaced */
gaugeLabel?: string;
};
export type AssessmentReportProps = {
title?: React.ReactNode;
/** h1 when the report opens the results page, h2 when a hero sits above it */
titleTag?: "h1" | "h2";
lead?: React.ReactNode;
/** respondent details: name, date, assessment, result */
meta?: AssessmentReportMeta[];
presenterImage?: string;
presenterAlt?: string;
presenterName?: string;
presenterRole?: string;
presenterNote?: React.ReactNode;
/** shown in the first part; null hides it */
gauge?: AssessmentReportGauge | null;
parts?: AssessmentReportPart[];
planRoute?: string;
planTitle?: React.ReactNode;
planLead?: React.ReactNode;
planSpot?: string;
steps?: AssessmentReportStep[];
closeRoute?: string;
closeTitle?: React.ReactNode;
closeSpot?: string;
reasonsTitle?: React.ReactNode;
/** short reasons, shown as a numbered list under reasonsTitle */
reasons?: React.ReactNode[];
regularPrice?: string;
price?: string;
/** word after today's price */
priceLabel?: string;
priceNote?: string;
label?: string;
/** one short reassurance line under the button */
note?: string;
href?: string;
onAction?: () => void;
state?: "default" | "hover" | "active" | "disabled";
/** curved hand-off edge into the next section */
edge?: boolean;
/** the next section's background token, taken by the curved edge */
edgeTone?: "band" | "surface" | "card";
copy?: AssessmentReportCopy;
className?: string;
};
const DEFAULT_GAUGE: AssessmentReportGauge = {
value: 50,
result: "Right in the middle",
labels: ["Just starting", "Getting there", "Ready"],
};
const DEFAULT_PARTS: AssessmentReportPart[] = [
{
route: "Where you are now",
title: "Here's where you landed",
lead: "Your answers place you on the scale below. It's a starting point, not a verdict.",
spot: pin,
},
{
route: "Why it happens",
title: "Why you're stuck at this stage",
lead: "One missing piece is holding the rest back. Fix it first and every next step gets easier.",
spot: chart,
},
{
route: "What it means",
title: "What your answers suggest",
lead: "You don't need to start over. You need the right next move, in the right order.",
spot: checklist,
},
];
const DEFAULT_STEPS: AssessmentReportStep[] = [
{ title: "Start with the step your result points to", body: "One clear move beats five half-finished ones." },
{ title: "Give it one focused week", body: "Keep everything else steady so you can see what changed." },
{ title: "Review, then take the next step", body: "Use what you learned to choose what comes next." },
];
const COPY: Required<AssessmentReportCopy> = {
routeLabel: "Your report, step by step",
progress: "{current} of {total}",
regularPrice: "Regular price",
gaugeLabel: "Your result: {result}, on a scale from {start} to {end}.",
};
/** height of the curved hand-off edge; it sits inside the section's bottom padding */
const EDGE_HEIGHT = 40;
export function AssessmentReport(props: AssessmentReportProps) {
const {
title = "Here's what your answers reveal",
titleTag = "h1",
lead = "Your results in plain words: where you are now, why it's happening and the next step that fits.",
meta = [],
presenterImage,
presenterAlt = "",
presenterName,
presenterRole,
presenterNote,
gauge = DEFAULT_GAUGE,
parts = DEFAULT_PARTS,
planRoute = "Your next steps",
planTitle = "Here's what to do next",
planLead = "Three steps, in order. Each one makes the next one easier.",
planSpot = rocket,
steps = DEFAULT_STEPS,
closeRoute = "Your plan, ready today",
closeTitle = "Get the plan your result calls for",
closeSpot = gift,
reasonsTitle = "Three reasons to start today",
reasons = [],
regularPrice,
price,
priceLabel = "today",
priceNote,
label = "Yes! I want my plan",
note,
href,
onAction,
state = "default",
edge = true,
edgeTone = "band",
copy,
className,
} = props;
const c = { ...COPY, ...copy };
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
const rootRef = React.useRef<HTMLElement>(null);
const [active, setActive] = React.useState(0);
const stops = [...parts.map((p) => p.route), planRoute, closeRoute];
const total = stops.length;
const planIndex = parts.length;
const closeIndex = parts.length + 1;
const sid = (i: number) => `${uid}-stop-${i}`;
const hid = (i: number) => `${uid}-head-${i}`;
const Title = titleTag;
const hasGuide = Boolean(presenterImage || presenterName);
const current = Math.min(active, total - 1);
const progress = c.progress.replace("{current}", String(current + 1)).replace("{total}", String(total));
const disabled = state === "disabled";
const ctaClass = `cf-ar-cta${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`;
React.useEffect(() => {
const root = rootRef.current;
if (!root || typeof IntersectionObserver === "undefined") return;
const els = Array.from(root.querySelectorAll<HTMLElement>("[data-ar-stop]"));
const io = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) setActive(Number((entry.target as HTMLElement).dataset.arStop) || 0);
}
},
{ rootMargin: "-30% 0px -60% 0px" },
);
els.forEach((el) => io.observe(el));
return () => io.disconnect();
}, [total]);
const go = (event: React.MouseEvent<HTMLAnchorElement>, i: number) => {
const target = rootRef.current?.querySelector<HTMLElement>(`[data-ar-stop="${i}"]`);
if (!target) return;
event.preventDefault();
const reduce = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
target.scrollIntoView({ behavior: reduce ? "auto" : "smooth", block: "start" });
target.focus({ preventScroll: true });
setActive(i);
};
return (
<section
ref={rootRef}
className={`cf-assessment-report${edge ? "" : " no-edge"}${className ? ` ${className}` : ""}`}
style={{ ...FX_HOST, overflow: "clip" }}
aria-labelledby={`${uid}-title`}
>
{edge && <Divider shape="curve" tone={edgeTone} height={EDGE_HEIGHT} />}
<div className="cf-ar-wrap">
<aside className={`cf-ar-rail${hasGuide ? " has-guide" : ""}`}>
<div className="cf-ar-rail-in">
{hasGuide && (
<div className={`cf-ar-guide cf-ar-rise${presenterImage ? "" : " no-img"}`}>
{presenterImage && <img src={presenterImage} alt={presenterAlt} width={144} height={144} />}
<div>
{presenterName && <p className="cf-ar-guide-name">{presenterName}</p>}
{presenterRole && <p className="cf-ar-guide-role">{presenterRole}</p>}
</div>
{presenterNote && <p className="cf-ar-guide-note">{presenterNote}</p>}
</div>
)}
<nav className="cf-ar-route" aria-label={c.routeLabel}>
<ol>
{stops.map((stop, i) => {
const finish = i === total - 1;
const status = i < current ? "is-done" : i === current ? "is-current" : "is-next";
return (
<li key={i} className={`${status}${finish ? " cf-ar-finish" : ""}`}>
<a href={`#${sid(i)}`} onClick={(e) => go(e, i)} aria-current={i === current ? "step" : undefined}>
<span className="cf-ar-dot" aria-hidden="true">
{finish ? <Flag strokeWidth={2.5} /> : i < current ? <Check strokeWidth={3} /> : null}
</span>
<span className="cf-ar-step-label">{stop}</span>
</a>
</li>
);
})}
</ol>
</nav>
</div>
</aside>
<div className="cf-ar-main">
<div className="cf-ar-strip" aria-hidden="true">
<span className="cf-ar-bars">
{stops.map((_, i) => (
<span key={i} className={i <= current ? "is-on" : undefined} />
))}
</span>
<span className="cf-ar-strip-label">{stops[current]}</span>
<span className="cf-ar-strip-count">{progress}</span>
</div>
<article className="cf-ar-doc">
<header className="cf-ar-rise" style={{ "--d": ".07s" } as React.CSSProperties}>
<Title id={`${uid}-title`} className="cf-ar-title">
{title}
</Title>
{lead && <p className="cf-ar-lead">{lead}</p>}
{meta.length > 0 && (
<dl className="cf-ar-meta">
{meta.map((m) => (
<div key={m.label}>
<dt>{m.label}</dt>
<dd>{m.value}</dd>
</div>
))}
</dl>
)}
</header>
{parts.map((p, i) => (
<section
key={i}
className={`cf-ar-part${i === 0 ? " is-first" : ""}`}
data-ar-stop={i}
id={sid(i)}
tabIndex={-1}
aria-labelledby={hid(i)}
>
<div className="cf-ar-part-head">
{p.spot && (
<span className="cf-ar-spot">
<Spot src={p.spot} size={56} />
</span>
)}
<h2 id={hid(i)} className="cf-ar-h">
{p.title}
</h2>
</div>
{p.lead && <p className="cf-ar-part-lead">{p.lead}</p>}
{i === 0 && gauge && <ReportGauge gauge={gauge} label={c.gaugeLabel} />}
{p.bullets && p.bullets.length > 0 && (
<ul className="cf-ar-bullets">
{p.bullets.map((b, j) => (
<li key={j}>{b}</li>
))}
</ul>
)}
{p.chain && p.chain.length > 0 && (
<ol className="cf-ar-chain" style={{ "--n": p.chain.length } as React.CSSProperties}>
{p.chain.map((link, j) => (
<li key={link.title}>
<span className="cf-ar-chain-n" aria-hidden="true">
{j + 1}
</span>
<strong>{link.title}</strong>
{link.body && <small>{link.body}</small>}
</li>
))}
</ol>
)}
{p.body && p.body.length > 0 && (
<div className="cf-ar-body">
{p.body.map((b, j) => (
<p key={j}>{b}</p>
))}
</div>
)}
</section>
))}
<section
className={`cf-ar-part${parts.length === 0 ? " is-first" : ""}`}
data-ar-stop={planIndex}
id={sid(planIndex)}
tabIndex={-1}
aria-labelledby={hid(planIndex)}
>
<div className="cf-ar-part-head">
{planSpot && (
<span className="cf-ar-spot">
<Spot src={planSpot} size={56} />
</span>
)}
<h2 id={hid(planIndex)} className="cf-ar-h">
{planTitle}
</h2>
</div>
{planLead && <p className="cf-ar-part-lead">{planLead}</p>}
{steps.length > 0 && (
<ol className="cf-ar-steps">
{steps.map((s, j) => (
<li key={s.title} className={s.image ? undefined : "no-img"}>
<span className="cf-ar-step-n" aria-hidden="true">
{j + 1}
</span>
<div>
<h3 className="cf-ar-step-title">{s.title}</h3>
{s.body && <p className="cf-ar-step-body">{s.body}</p>}
</div>
{s.image && (
<img className="cf-ar-step-img" src={s.image} alt={s.imageAlt ?? ""} width={192} height={192} loading="lazy" />
)}
</li>
))}
</ol>
)}
</section>
<section
className="cf-ar-close"
data-ar-stop={closeIndex}
id={sid(closeIndex)}
tabIndex={-1}
aria-labelledby={hid(closeIndex)}
>
<div className="cf-ar-part-head">
{closeSpot && (
<span className="cf-ar-spot">
<Spot src={closeSpot} size={64} />
</span>
)}
<h2 id={hid(closeIndex)} className="cf-ar-close-title">
{closeTitle}
</h2>
</div>
{reasons.length > 0 && (
<>
{reasonsTitle && <h3 className="cf-ar-reasons-title">{reasonsTitle}</h3>}
<ol className="cf-ar-reasons" role="list">
{reasons.map((r, j) => (
<li key={j}>
<span className="cf-ar-n" aria-hidden="true">
{j + 1}
</span>
<span>{r}</span>
</li>
))}
</ol>
</>
)}
{price && (
<div className="cf-ar-price">
{regularPrice && (
<span className="cf-ar-was">
<span className="cf-ar-sr">{c.regularPrice} </span>
<s>{regularPrice}</s>
</span>
)}
<span className="cf-ar-now">{price}</span>
{priceLabel && <span className="cf-ar-now-label">{priceLabel}</span>}
{priceNote && <p className="cf-ar-price-note">{priceNote}</p>}
</div>
)}
<div className="cf-ar-act">
{href && !disabled ? (
<a className={ctaClass} href={href} onClick={onAction ? () => onAction() : undefined}>
{label}
</a>
) : (
<button type="button" className={ctaClass} disabled={disabled} onClick={onAction}>
{label}
</button>
)}
{note && (
<p className="cf-ar-note">
<ShieldCheck aria-hidden="true" strokeWidth={2.5} />
{note}
</p>
)}
</div>
</section>
</article>
</div>
</div>
<style>{`
.cf-assessment-report{position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) max(clamp(48px,7vw,96px),72px)}
.cf-assessment-report.no-edge{padding-bottom:clamp(48px,7vw,96px)}
.cf-assessment-report *{box-sizing:border-box}
.cf-assessment-report .cf-ar-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-assessment-report .cf-ar-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:272px minmax(0,1fr);gap:clamp(32px,4vw,56px)}
.cf-assessment-report .cf-ar-main{min-width:0}
.cf-assessment-report .cf-ar-rail-in{position:sticky;top:24px;display:grid;gap:32px}
.cf-assessment-report .cf-ar-guide{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center}
.cf-assessment-report .cf-ar-guide.no-img{grid-template-columns:minmax(0,1fr)}
.cf-assessment-report .cf-ar-guide img{display:block;width:72px;height:72px;border-radius:12px;object-fit:cover;object-position:50% 25%}
.cf-assessment-report .cf-ar-guide-name{margin:0;font-family:var(--font-display);font-size:1.0625rem;font-weight:800;line-height:1.3}
.cf-assessment-report .cf-ar-guide-role{margin:4px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-assessment-report .cf-ar-guide-note{grid-column:1/-1;margin:0;font-size:.9375rem;font-weight:500;line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-assessment-report .cf-ar-route ol{list-style:none;margin:0;padding:0}
.cf-assessment-report .cf-ar-route li{position:relative;padding-bottom:20px}
.cf-assessment-report .cf-ar-route li:last-child{padding-bottom:0}
.cf-assessment-report .cf-ar-route li:not(:last-child)::after{content:"";position:absolute;left:12.5px;top:32px;bottom:4px;width:3px;border-radius:3px;background:oklch(from var(--ink) l c h / .14);transition:background .3s ease}
.cf-assessment-report .cf-ar-route li.is-done::after{background:var(--accent-fill,var(--accent))}
.cf-assessment-report .cf-ar-route a{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:start;min-height:32px;color:inherit;text-decoration:none;border-radius:8px}
.cf-assessment-report .cf-ar-route a:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:4px}
.cf-assessment-report .cf-ar-dot{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--card);border:2px solid oklch(from var(--ink) l c h / .22);color:var(--accent-fill-ink,var(--card));transition:background .2s ease,border-color .2s ease}
.cf-assessment-report .cf-ar-dot svg{width:16px;height:16px}
.cf-assessment-report .is-done .cf-ar-dot{background:var(--accent-fill,var(--accent));border-color:var(--accent-fill,var(--accent))}
.cf-assessment-report .is-current .cf-ar-dot{border:3px solid var(--accent-fill,var(--accent))}
.cf-assessment-report .is-current .cf-ar-dot::before{content:"";width:10px;height:10px;border-radius:999px;background:var(--accent-fill,var(--accent))}
.cf-assessment-report .cf-ar-finish .cf-ar-dot{color:var(--muted)}
.cf-assessment-report .cf-ar-finish.is-current .cf-ar-dot{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-assessment-report .cf-ar-finish.is-current .cf-ar-dot::before{display:none}
.cf-assessment-report .cf-ar-step-label{padding-top:3px;font-size:1.0625rem;font-weight:600;line-height:1.3;color:var(--muted);text-wrap:balance;transition:color .2s ease}
.cf-assessment-report .is-done .cf-ar-step-label{color:var(--ink);font-weight:700}
.cf-assessment-report .is-current .cf-ar-step-label{color:var(--ink);font-weight:800}
.cf-assessment-report .cf-ar-route a:hover .cf-ar-step-label{color:var(--ink)}
.cf-assessment-report .cf-ar-route a:hover .cf-ar-dot{border-color:var(--accent-fill,var(--accent))}
.cf-assessment-report .cf-ar-strip{display:none}
.cf-assessment-report .cf-ar-bars{display:flex;gap:4px;flex:0 0 auto;width:88px}
.cf-assessment-report .cf-ar-bars span{flex:1;height:6px;border-radius:3px;background:oklch(from var(--ink) l c h / .14);transition:background .3s ease}
.cf-assessment-report .cf-ar-bars span.is-on{background:var(--accent-fill,var(--accent))}
.cf-assessment-report .cf-ar-strip-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem;font-weight:700}
.cf-assessment-report .cf-ar-strip-count{flex:0 0 auto;font-size:.875rem;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-doc{background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2)));padding:clamp(20px,4vw,56px)}
.cf-assessment-report .cf-ar-title{margin:0;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;text-wrap:balance}
.cf-assessment-report .cf-ar-lead{margin:16px 0 0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-assessment-report .cf-ar-meta{margin:32px 0 0;padding:16px 0;border-block:1px solid oklch(from var(--ink) l c h / .12);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:16px 24px}
.cf-assessment-report .cf-ar-meta dt{margin:0 0 4px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cf-assessment-report .cf-ar-meta dd{margin:0;font-size:1.0625rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.cf-assessment-report .cf-ar-part{margin-top:clamp(32px,4vw,48px);padding-top:clamp(32px,4vw,48px);border-top:1px solid oklch(from var(--ink) l c h / .12);scroll-margin-top:24px}
.cf-assessment-report .cf-ar-part.is-first{border-top:0;padding-top:0;margin-top:40px}
.cf-assessment-report .cf-ar-part:focus,.cf-assessment-report .cf-ar-close:focus{outline:none}
.cf-assessment-report .cf-ar-part-head{display:flex;align-items:center;gap:16px}
.cf-assessment-report .cf-ar-spot{flex:0 0 auto;display:block;line-height:0}
.cf-assessment-report .cf-ar-h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
.cf-assessment-report .cf-ar-part-lead{margin:16px 0 0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-assessment-report .cf-ar-bullets{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px}
.cf-assessment-report .cf-ar-bullets li{position:relative;padding-left:24px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-assessment-report .cf-ar-bullets li::before{content:"";position:absolute;left:2px;top:.6em;width:9px;height:9px;border-radius:3px;background:var(--accent-fill,var(--accent))}
.cf-assessment-report .cf-ar-body p{margin:16px 0 0;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.6;text-wrap:pretty}
.cf-assessment-report .cf-ar-gauge{margin:24px 0 0;padding:clamp(20px,3vw,32px);border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:20px 32px;align-items:center}
.cf-assessment-report .cf-ar-dial{margin:0}
.cf-assessment-report .cf-ar-dial svg{display:block;width:100%;height:auto}
.cf-assessment-report .cf-ar-scale{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font-size:.875rem;font-weight:800;line-height:1.2;color:var(--muted)}
.cf-assessment-report .cf-ar-score{display:flex;align-items:baseline;gap:8px;margin:0 0 20px;font-family:var(--font-display);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-score b{font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:800;line-height:1;letter-spacing:-0.03em;color:var(--accent)}
.cf-assessment-report .cf-ar-score span{font-size:.9375rem;font-weight:700;color:var(--muted)}
.cf-assessment-report .cf-ar-result{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);line-height:1.15;text-wrap:balance}
.cf-assessment-report .cf-ar-caption{margin:8px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-assessment-report .cf-ar-chain{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:16px}
.cf-assessment-report .cf-ar-chain li{position:relative;padding:20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-assessment-report .cf-ar-chain li:not(:last-child)::after{content:"";position:absolute;top:50%;right:-16px;width:16px;height:3px;margin-top:-1.5px;background:oklch(from var(--ink) l c h / .2)}
.cf-assessment-report .cf-ar-chain-n{display:block;margin-bottom:12px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-chain strong{display:block;font-size:1.0625rem;font-weight:800;line-height:1.3;text-wrap:balance}
.cf-assessment-report .cf-ar-chain small{display:block;margin-top:6px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-assessment-report .cf-ar-steps{list-style:none;margin:24px 0 0;padding:0}
.cf-assessment-report .cf-ar-steps li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px 20px;align-items:start;padding:20px 0;border-top:1px solid oklch(from var(--ink) l c h / .1)}
.cf-assessment-report .cf-ar-steps li:first-child{border-top:0;padding-top:0}
.cf-assessment-report .cf-ar-steps li.no-img{grid-template-columns:48px minmax(0,1fr)}
.cf-assessment-report .cf-ar-step-n{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:800;line-height:1;letter-spacing:-0.03em;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-step-title{margin:6px 0 0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-assessment-report .cf-ar-step-body{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-assessment-report .cf-ar-step-img{display:block;width:96px;height:96px;border-radius:8px;object-fit:cover}
.cf-assessment-report .cf-ar-close{margin-top:clamp(32px,4vw,48px);padding:clamp(20px,4vw,40px);border-radius:14px;background:color-mix(in oklch,var(--accent) 7%,var(--card));scroll-margin-top:24px}
.cf-assessment-report .cf-ar-close-title{margin:0;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;text-wrap:balance}
.cf-assessment-report .cf-ar-reasons-title{margin:28px 0 0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-assessment-report .cf-ar-reasons{list-style:none;margin:16px 0 0;padding:0;max-width:64ch;display:grid;gap:12px}
.cf-assessment-report .cf-ar-reasons li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:baseline;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-assessment-report .cf-ar-n{font-family:var(--font-display);font-size:1.375rem;font-weight:800;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:32px 0 0}
.cf-assessment-report .cf-ar-was{position:relative;display:inline-block;padding:0 4px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1.15;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-was s{text-decoration:none}
.cf-assessment-report .cf-ar-was::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:4px;margin-top:-2px;border-radius:4px;background:var(--danger);transform:rotate(-16deg)}
.cf-assessment-report .cf-ar-now{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:800;line-height:1;letter-spacing:-0.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.cf-assessment-report .cf-ar-now-label{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;color:var(--ink)}
.cf-assessment-report .cf-ar-price-note{flex-basis:100%;margin:12px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-assessment-report .cf-ar-act{display:grid;justify-items:stretch;gap:12px;margin-top:28px}
.cf-assessment-report .cf-ar-cta{display:flex;align-items:center;justify-content:center;width:100%;margin-inline:auto;min-height:72px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));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-wrap:balance;text-decoration:none;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-assessment-report .cf-ar-cta:hover,.cf-assessment-report .cf-ar-cta.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));transform:translateY(-1px)}
.cf-assessment-report .cf-ar-cta:active,.cf-assessment-report .cf-ar-cta.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-assessment-report .cf-ar-cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-assessment-report .cf-ar-cta:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:none}
.cf-assessment-report .cf-ar-note{margin:0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-assessment-report .cf-ar-note svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
@keyframes cf-ar-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-assessment-report .cf-ar-rise{animation:cf-ar-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
@media (max-width:959px){
.cf-assessment-report .cf-ar-wrap{grid-template-columns:minmax(0,1fr);gap:20px}
.cf-assessment-report .cf-ar-rail{display:none}
.cf-assessment-report .cf-ar-rail.has-guide{display:block}
.cf-assessment-report .cf-ar-rail-in{position:static}
.cf-assessment-report .cf-ar-route{display:none}
.cf-assessment-report .cf-ar-strip{position:sticky;top:8px;z-index:3;display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:10px 16px;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--radius,12px);box-shadow:var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2))}
.cf-assessment-report .cf-ar-part,.cf-assessment-report .cf-ar-close{scroll-margin-top:88px}
}
@media (max-width:640px){
.cf-assessment-report .cf-ar-gauge{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
.cf-assessment-report .cf-ar-dial{width:100%;max-width:300px}
.cf-assessment-report .cf-ar-score{justify-content:center}
.cf-assessment-report .cf-ar-chain{grid-template-columns:minmax(0,1fr)}
.cf-assessment-report .cf-ar-chain li:not(:last-child)::after{top:auto;bottom:-16px;right:auto;left:30px;width:3px;height:16px;margin-top:0}
.cf-assessment-report .cf-ar-steps li{grid-template-columns:36px minmax(0,1fr) auto;gap:8px 14px}
.cf-assessment-report .cf-ar-steps li.no-img{grid-template-columns:36px minmax(0,1fr)}
.cf-assessment-report .cf-ar-step-img{width:64px;height:64px}
.cf-assessment-report .cf-ar-part-head{gap:12px}
.cf-assessment-report .cf-ar-close .cf-ar-part-head{flex-direction:column;align-items:flex-start;gap:8px}
.cf-assessment-report .cf-ar-cta{padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){
.cf-assessment-report .cf-ar-rise{animation:none}
.cf-assessment-report *{transition:none!important}
}
`}</style>
</section>
);
}
export default AssessmentReport;
const CX = 120;
const CY = 124;
const R = 96;
function point(deg: number, r = R): [number, number] {
const a = (deg * Math.PI) / 180;
return [CX + r * Math.cos(a), CY - r * Math.sin(a)];
}
function arc(from: number, to: number) {
const [x1, y1] = point(from);
const [x2, y2] = point(to);
return `M ${x1.toFixed(2)} ${y1.toFixed(2)} A ${R} ${R} 0 0 1 ${x2.toFixed(2)} ${y2.toFixed(2)}`;
}
function segColor(i: number, landed: number) {
if (i > landed) return "color-mix(in oklch, var(--ink) 16%, var(--card))";
if (i === landed) return "var(--accent-fill, var(--accent))";
return `oklch(from var(--accent-fill, var(--accent)) l c h / ${(0.3 + i * 0.15).toFixed(2)})`;
}
function ReportGauge({ gauge, label }: { gauge: AssessmentReportGauge; label: string }) {
const v = Math.max(0, Math.min(100, Number.isFinite(gauge.value) ? gauge.value : 0));
const landed = Math.min(4, Math.floor(v / 20));
const [nx, ny] = point(180 - v * 1.8, 72);
const labels = gauge.labels ?? [];
const desc = label
.replace("{result}", gauge.result)
.replace("{start}", labels[0] ?? "")
.replace("{end}", labels[labels.length - 1] ?? "");
return (
<div className="cf-ar-gauge">
<figure className="cf-ar-dial">
<svg viewBox="0 0 240 140" role="img" aria-label={desc}>
{[0, 1, 2, 3, 4].map((i) => (
<path key={i} d={arc(180 - 36 * i - 1, 180 - 36 * (i + 1) + 1)} fill="none" strokeWidth={22} style={{ stroke: segColor(i, landed) }} />
))}
<line x1={CX} y1={CY} x2={nx} y2={ny} strokeWidth={5} strokeLinecap="round" style={{ stroke: "var(--ink)" }} />
<circle cx={CX} cy={CY} r={10} style={{ fill: "var(--ink)" }} />
<circle cx={CX} cy={CY} r={3.5} style={{ fill: "var(--card)" }} />
</svg>
{labels.length > 0 && (
<figcaption className="cf-ar-scale" aria-hidden="true">
{labels.map((l) => (
<span key={l}>{l}</span>
))}
</figcaption>
)}
</figure>
<div className="cf-ar-readout">
{gauge.score && (
<p className="cf-ar-score">
<b>{gauge.score}</b>
{gauge.scoreOf && <span>{gauge.scoreOf}</span>}
</p>
)}
<p className="cf-ar-result">{gauge.result}</p>
{gauge.caption && <p className="cf-ar-caption">{gauge.caption}</p>}
</div>
</div>
);
}
pieces/content/assessment-report/specimen.tsx 96 lines
import __studioImage5d71fb6c from "../assets/c4a98a3de5a4e0db.webp";
// Specimen: a Funnel Readiness Quiz result that turns into the case for the Funnel Starter Kit.
import * as React from "react";
import { AssessmentReport } from "../assessment-report";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function AssessmentReportSpecimen({ state = "default" }: { state?: "default" | "hover" | "active" | "disabled" }) {
const sample = defaults.sample;
const [guide, workbook, launch] = sample.items;
return (
<AssessmentReport
state={state}
title="Maya, your first funnel is one plan away"
lead="You answered 12 questions about your offer, your pages and your launch. Here's where you landed and exactly what to do next."
meta={[
{ label: "Prepared for", value: "Maya Torres" },
{ label: "Completed", value: "November 22, 2026" },
{ label: "Assessment", value: "Funnel Readiness Quiz" },
{ label: "Your result", value: "Planning stage" },
]}
presenterImage={slot(
"presenter",
__studioImage5d71fb6c,
)}
presenterAlt="Jordan Ellis, Funnel Starter coach"
presenterName="Jordan Ellis"
presenterRole="Funnel Starter coach"
presenterNote="Read it top to bottom. Each part answers one question about your funnel, and the last one hands you the plan."
gauge={{
value: 42,
score: "42",
scoreOf: "/ 100",
result: "Planning stage",
caption: "You have the offer. You don't have the page plan yet.",
labels: ["Idea", "Planning", "Launch-ready"],
}}
parts={[
{
route: "Where you are now",
title: "You're in the planning stage",
lead: "You have an offer worth selling. What's missing is the map of pages that sells it.",
bullets: [
"You know exactly who you want to help",
"Your offer is clear in your head, not yet on a page",
"You're not sure which page to build first",
],
},
{
route: "Why it stalls here",
title: "Why funnels stall at this stage",
lead: "Without a page plan, every step waits on the one before it.",
chain: [
{ title: "No page plan", body: "So every page starts blank" },
{ title: "Copy from scratch", body: "So one headline takes a week" },
{ title: "Launch keeps slipping", body: "So your offer never meets a buyer" },
],
body: ["It isn't a motivation problem. It's an order problem, and it's the easiest one to fix."],
},
{
route: "What it means for you",
title: "Your fastest win is a written plan",
lead: "Your answers point to one move: decide the pages, write them, then check them.",
bullets: [
"Plan first, so you only build the pages you need",
"Write from prompts, so the headline and offer take an afternoon",
"Check before launch, so no link or form breaks on day one",
],
},
]}
planRoute="Your 3-step plan"
planTitle="Your 3-step plan from here"
planLead="Follow these in order. Each one fits in an evening."
steps={[
{ title: "Map your offer and your pages", body: guide.detail, image: slot("item-1", guide.image), imageAlt: guide.imageAlt },
{ title: "Write your headline and call to action", body: workbook.detail, image: slot("item-2", workbook.image), imageAlt: workbook.imageAlt },
{ title: "Check every step, then launch", body: launch.detail, image: slot("item-3", launch.image), imageAlt: launch.imageAlt },
]}
closeRoute="Your plan, ready today"
closeTitle={`Start your plan tonight with ${sample.name}`}
reasonsTitle={`Three reasons this is ${sample.price} today`}
reasons={[
"It's the exact 3-step plan from this report, ready to use tonight.",
"The guide, workbook and checklist arrive in one download.",
"You pay once, keep it forever, and you're covered by a 30-day money-back guarantee.",
]}
regularPrice={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
label={`Yes! I want ${sample.name}`}
note={`${sample.guarantee} · Instant download`}
/>
);
}
| Name | Type | Details |
|---|---|---|
title OptionalAssessmentReport |
React.ReactNode |
|
titleTag OptionalAssessmentReport |
"h1" | "h2" |
|
lead OptionalAssessmentReport |
React.ReactNode |
|
meta OptionalAssessmentReport |
AssessmentReportMeta[] |
|
presenterImage OptionalAssessmentReport |
string |
|
presenterAlt OptionalAssessmentReport |
string |
|
presenterName OptionalAssessmentReport |
string |
|
presenterRole OptionalAssessmentReport |
string |
|
presenterNote OptionalAssessmentReport |
React.ReactNode |
|
gauge OptionalAssessmentReport |
AssessmentReportGauge | null |
|
parts OptionalAssessmentReport |
AssessmentReportPart[] |
|
planRoute OptionalAssessmentReport |
string |
|
planTitle OptionalAssessmentReport |
React.ReactNode |
|
planLead OptionalAssessmentReport |
React.ReactNode |
|
planSpot OptionalAssessmentReport |
string |
|
steps OptionalAssessmentReport |
AssessmentReportStep[] |
|
closeRoute OptionalAssessmentReport |
string |
|
closeTitle OptionalAssessmentReport |
React.ReactNode |
|
closeSpot OptionalAssessmentReport |
string |
|
reasonsTitle OptionalAssessmentReport |
React.ReactNode |
|
reasons OptionalAssessmentReport |
React.ReactNode[] |
|
regularPrice OptionalAssessmentReport |
string |
|
price OptionalAssessmentReport |
string |
|
priceLabel OptionalAssessmentReport |
string |
|
priceNote OptionalAssessmentReport |
string |
|
label OptionalAssessmentReport |
string |
|
note OptionalAssessmentReport |
string |
|
href OptionalAssessmentReport |
string |
|
onAction OptionalAssessmentReport |
() => void |
|
state OptionalAssessmentReport |
"default" | "hover" | "active" | "disabled" |
|
edge OptionalAssessmentReport |
boolean |
|
edgeTone OptionalAssessmentReport |
"band" | "surface" | "card" |
|
copy OptionalAssessmentReport |
AssessmentReportCopy |
|
className OptionalAssessmentReport |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
presenter- A photo of the host, coach or founder.
-
0d114386aa55e8d2.webp
image/webp · 15.6 KB
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
-
63571cb07acc4626.webp
image/webp · 17.3 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c4a98a3de5a4e0db.webp
image/webp · 69.2 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d7814fce240ddf0e.webp
image/webp · 17.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB