Audience Paths 3
The value ladder made explicit: every offer rises as a step on a dark stage, from the free first rung to the top programme, so each visitor sees the way in and the way up.
Use it in a prompt
Use content/audience-paths-3 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/audience-paths-3.tsx. - Import it and pass your copy and images (Props tab):
import { AudiencePaths3 } from "@/components/funneldna/content/audience-paths-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/audience-paths-3/component.tsx 575 lines
// layout: price-staircase
// The value ladder made explicit: every offer rises as a step on a dark stage, from the free first rung to the top programme, so each visitor sees the way in and the way up.
"use client"
import * as React from "react"
import { AlertCircle, Check, Loader2, Pointer } from "lucide-react"
import { FX_HOST, Pattern, Spot, Spotlight } from "../fx/fx"
export type LadderRung = {
/** Offer name, shown on the step and in the "{name} is best if you…" heading. */
name: React.ReactNode
/** Who the step is for, one short line. */
forWho?: React.ReactNode
/** Price exactly as supplied, e.g. "Free", "$97". */
price: React.ReactNode
/** Small line under the price, e.g. "Per month". */
priceNote?: React.ReactNode
/** Supplied value, revealed before the price in the detail panel. Leave empty when none is supplied. */
value?: React.ReactNode
/** Lines that finish "best if you…". */
bestIf?: React.ReactNode[]
/** fx Spot illustration asset (import from ../fx/spots/*). */
spot?: string
/** Button label. The start rung shows it on its step; the others show it in the detail panel. */
actionLabel?: React.ReactNode
/** One reassurance line under the button. */
actionNote?: React.ReactNode
href?: string
/** Guarantee phrase; when set, a ticked commit line sits above this step's button. */
guarantee?: React.ReactNode
disabled?: boolean
}
export type AudiencePaths3State = "default" | "hover" | "active" | "disabled" | "error"
export type AudiencePaths3Copy = {
/** Flag on the free first rung. */
startFlag?: string
/** Screen-reader prefix on each step; {n} is the step number. */
step?: string
/** Detail heading; {name} is the rung name. */
bestIf?: string
valueLine?: string
butLine?: string
todayLabel?: string
/** Commit line; {guarantee} is the rung's guarantee phrase. */
commit?: string
commitError?: string
hint?: string
ladderLabel?: string
/** Screen-reader text while an action is pending. */
loading?: string
}
export type AudiencePaths3Props = {
title?: React.ReactNode
/** One sentence per line. */
lead?: React.ReactNode[]
/** The single-word line for emphasis. */
punch?: React.ReactNode
/** Two to five offers, from the free first rung to the top programme. */
rungs: LadderRung[]
/** Index of the free "start here" rung. */
start?: number
/** Rung whose details show first (defaults to the start rung). */
defaultSelected?: number
/** Called when a visitor taps a step. */
onSelect?: (rung: LadderRung, index: number) => void
/** Called by every action button. A returned promise shows the spinner. */
onAction?: (rung: LadderRung, index: number) => void | Promise<void>
copy?: AudiencePaths3Copy
state?: AudiencePaths3State
className?: string
id?: string
}
export function AudiencePaths3({
title = "Your way in is free. Your way up is mapped.",
lead = ["Start on the free first step.", "Climb only when the last step has paid for itself."],
punch = "Simple.",
rungs,
start = 0,
defaultSelected,
onSelect,
onAction,
copy,
state = "default",
className,
id,
}: AudiencePaths3Props) {
const c = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const headingId = uid + "-h"
const panelId = uid + "-panel"
const errId = uid + "-err"
const list = rungs.slice(0, 5)
const n = list.length
const startIdx = Math.min(Math.max(start, 0), Math.max(n - 1, 0))
const errorIdx = list.findIndex((r) => !!r.guarantee && !!r.actionLabel)
const forcedError = state === "error" && errorIdx >= 0
const [selected, setSelected] = React.useState<number>(() =>
forcedError ? errorIdx : defaultSelected ?? startIdx,
)
const [checked, setChecked] = React.useState<Record<number, boolean>>(() =>
forcedError ? { [errorIdx]: false } : {},
)
const [errorFor, setErrorFor] = React.useState<number | null>(forcedError ? errorIdx : null)
const [pending, setPending] = React.useState<number | null>(null)
const mounted = React.useRef(true)
const checkRef = React.useRef<HTMLInputElement>(null)
const narrow = useNarrow()
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
if (forcedError) {
setSelected(errorIdx)
setChecked({ [errorIdx]: false })
setErrorFor(errorIdx)
} else {
setChecked({})
setErrorFor(null)
}
}, [forcedError, errorIdx])
if (n === 0) return null
const sel = Math.min(Math.max(selected, 0), n - 1)
const allDisabled = state === "disabled"
const preview = state === "hover" || state === "active" ? state : undefined
const isChecked = (i: number) => checked[i] ?? true
function choose(i: number) {
setSelected(i)
setErrorFor(null)
if (onSelect) onSelect(list[i], i)
}
function act(e: React.MouseEvent<HTMLElement>, i: number) {
const rung = list[i]
if (allDisabled || rung.disabled || pending !== null) {
e.preventDefault()
return
}
if (rung.guarantee && !isChecked(i)) {
e.preventDefault()
setErrorFor(i)
if (checkRef.current) checkRef.current.focus()
return
}
if (!onAction) return
if (rung.href && (e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey)) return
e.preventDefault()
const result: unknown = onAction(rung, i)
if (isThenable(result)) {
setPending(i)
const done = () => {
if (mounted.current) setPending(null)
}
result.then(done, done)
}
}
const r = list[sel]
const showAction = !!r.actionLabel && sel !== startIdx
const err = errorFor === sel && !!r.guarantee && !isChecked(sel)
const cols = list.map((_, i) => (i === startIdx ? "minmax(0,1.3fr)" : "minmax(0,1fr)")).join(" ")
const panel = (
<div className="vl-panel" id={panelId} role="region" aria-live="polite" aria-labelledby={panelId + "-h"}>
<div key={sel} className="vl-panel-in" data-cols={showAction ? "3" : "2"}>
<div className="vl-fit">
<h3 id={panelId + "-h"} className="vl-fit-h">
{fill(c.bestIf, { name: r.name })}
</h3>
{r.bestIf && r.bestIf.length ? (
<ul className="vl-fit-list">
{r.bestIf.map((b, k) => (
<li key={k}>
<span className="vl-badge" aria-hidden="true">
<Check strokeWidth={3} />
</span>
<span>{b}</span>
</li>
))}
</ul>
) : null}
</div>
<div className="vl-well vl-reveal">
{r.value ? (
<p className="vl-was">
<s className="vl-val">{r.value}</s>
<span className="vl-valnote">{c.valueLine}</span>
</p>
) : null}
{r.value ? <p className="vl-but">{c.butLine}</p> : null}
<p className="vl-today-l">{c.todayLabel}</p>
<p className="vl-todayrow">
<span className="vl-today">{r.price}</span>
{r.priceNote ? <span className="vl-today-n">{r.priceNote}</span> : null}
</p>
</div>
{showAction ? (
<div className="vl-act">
{r.guarantee ? (
<>
<label className="vl-commit" data-error={err ? "" : undefined}>
<input
ref={checkRef}
type="checkbox"
className="vl-commit-in"
checked={isChecked(sel)}
aria-invalid={err || undefined}
aria-describedby={err ? errId : undefined}
onChange={(e) => {
const on = e.currentTarget.checked
setChecked((p) => ({ ...p, [sel]: on }))
if (on) setErrorFor(null)
}}
/>
<span className="vl-box" aria-hidden="true">
<Check strokeWidth={3} />
</span>
<span>{fill(c.commit, { guarantee: r.guarantee })}</span>
</label>
{err ? (
<p id={errId} className="vl-err" role="alert">
<AlertCircle aria-hidden="true" strokeWidth={2.5} />
{c.commitError}
</p>
) : null}
</>
) : null}
<ActionButton
label={r.actionLabel}
href={r.href}
large
disabled={allDisabled || !!r.disabled}
loading={pending === sel}
loadingLabel={c.loading}
force={preview}
onClick={(e) => act(e, sel)}
/>
{r.actionNote ? <p className="vl-note">{r.actionNote}</p> : null}
</div>
) : null}
</div>
</div>
)
return (
<section
id={id}
aria-labelledby={headingId}
className={["cf-audience-paths-3", className].filter(Boolean).join(" ")}
style={FX_HOST}
>
<style>{CSS}</style>
<Pattern name="grid" fade="corner" />
<Spotlight />
<div className="vl-inner">
<header className="vl-head">
<h2 id={headingId} className="vl-h">
{title}
</h2>
<div className="vl-lead">
{lead.map((l, k) => (
<p key={k}>{l}</p>
))}
{punch ? <p className="vl-punch">{punch}</p> : null}
</div>
</header>
{n > 1 ? (
<p className="vl-hint">
<Pointer aria-hidden="true" strokeWidth={2.5} />
{c.hint}
</p>
) : null}
<ul
className="vl-stairs"
aria-label={c.ladderLabel}
style={{ "--vl-n1": n - 1, "--vl-cols": cols } as React.CSSProperties}
>
{list.map((rung, i) => {
const isSel = i === sel
const isStart = i === startIdx
const forId = uid + "-for" + i
const priceId = uid + "-price" + i
const flagId = uid + "-flag" + i
const describedBy = [isStart && c.startFlag ? flagId : "", rung.forWho ? forId : "", priceId]
.filter(Boolean)
.join(" ")
return (
<li
key={i}
className="vl-step"
data-selected={isSel ? "" : undefined}
style={{ "--i": i, "--delay": Math.min(i * 0.07, 0.28) + "s" } as React.CSSProperties}
>
<article className="vl-card" data-selected={isSel ? "" : undefined}>
<div className="vl-top">
<span className="vl-num" aria-hidden="true">
{i + 1}
</span>
{isStart && c.startFlag ? (
<span id={flagId} className="vl-flag">
{c.startFlag}
</span>
) : null}
{rung.spot ? (
<span className="vl-spot">
<Spot src={rung.spot} size={48} shade="ink" light="card" />
</span>
) : null}
</div>
<h3 className="vl-name">
<button
type="button"
className="vl-sel"
aria-pressed={isSel}
aria-controls={panelId}
aria-describedby={describedBy}
onClick={() => choose(i)}
>
<span className="vl-sr">{fill(c.step, { n: i + 1 })}</span>
{rung.name}
</button>
</h3>
{rung.forWho ? (
<p id={forId} className="vl-for">
{rung.forWho}
</p>
) : null}
<p id={priceId} className="vl-price">
<span className="vl-amt">{rung.price}</span>
{rung.priceNote ? <span className="vl-pnote">{rung.priceNote}</span> : null}
</p>
{isStart && rung.actionLabel ? (
<div className="vl-cta">
<ActionButton
label={rung.actionLabel}
href={rung.href}
disabled={allDisabled || !!rung.disabled}
loading={pending === i}
loadingLabel={c.loading}
force={preview}
onClick={(e) => act(e, i)}
/>
{rung.actionNote ? <p className="vl-cta-note">{rung.actionNote}</p> : null}
</div>
) : null}
</article>
<span className="vl-riser" aria-hidden="true" />
{narrow && isSel ? panel : null}
</li>
)
})}
</ul>
{!narrow ? panel : null}
</div>
</section>
)
}
export default AudiencePaths3
function ActionButton({
label,
href,
large,
disabled,
loading,
loadingLabel,
force,
onClick,
}: {
label: React.ReactNode
href?: string
large?: boolean
disabled?: boolean
loading?: boolean
loadingLabel: string
force?: string
onClick: (e: React.MouseEvent<HTMLElement>) => void
}) {
const cls = large ? "vl-btn vl-btn-lg" : "vl-btn"
const inner = (
<>
{loading ? <Loader2 className="vl-spin" aria-hidden="true" strokeWidth={2.5} /> : null}
<span>{label}</span>
{loading ? <span className="vl-sr">{loadingLabel}</span> : null}
</>
)
if (href && !disabled) {
return (
<a className={cls} href={href} data-state={force} aria-busy={loading || undefined} onClick={onClick}>
{inner}
</a>
)
}
return (
<button
type="button"
className={cls}
disabled={disabled}
data-state={disabled ? undefined : force}
aria-busy={loading || undefined}
onClick={onClick}
>
{inner}
</button>
)
}
function fill(template: string, map: Record<string, React.ReactNode>): React.ReactNode[] {
let parts: React.ReactNode[] = [template]
for (const key of Object.keys(map)) {
const token = "{" + key + "}"
parts = parts.flatMap((p) => {
if (typeof p !== "string" || !p.includes(token)) return [p]
const out: React.ReactNode[] = []
p.split(token).forEach((b, k) => {
if (k > 0) out.push(map[key])
if (b) out.push(b)
})
return out
})
}
return parts.map((p, k) => <React.Fragment key={k}>{p}</React.Fragment>)
}
function isThenable(v: unknown): v is PromiseLike<void> {
return !!v && typeof (v as PromiseLike<void>).then === "function"
}
const NARROW = "(max-width: 999.98px)"
function subscribeNarrow(cb: () => void) {
if (typeof window === "undefined" || !window.matchMedia) return () => {}
const m = window.matchMedia(NARROW)
m.addEventListener("change", cb)
return () => m.removeEventListener("change", cb)
}
function getNarrow() {
return typeof window !== "undefined" && !!window.matchMedia && window.matchMedia(NARROW).matches
}
function useNarrow() {
return React.useSyncExternalStore(subscribeNarrow, getNarrow, () => false)
}
const DEFAULT_COPY: Required<AudiencePaths3Copy> = {
startFlag: "Start here",
step: "Step {n}: ",
bestIf: "{name} is best if you…",
valueLine: "That's what it's worth.",
butLine: "But you won't pay that.",
todayLabel: "Your price today",
commit: "I understand I'm covered by the {guarantee}.",
commitError: "Tick the box to confirm you've read the guarantee.",
hint: "Tap any step to see who it's best for.",
ladderLabel: "Offer steps, from the free first step to the top",
loading: "Working…",
}
const CSS = `
.cf-audience-paths-3{--vl-rise:clamp(52px,5vw,72px);--vl-base:28px;--vl-btn:var(--button-bg,var(--cta));--vl-btn-2:var(--button-bg-2,var(--cta-2));--vl-sh:var(--shadow,oklch(0.22 0.03 256));--vl-soft:color-mix(in oklch,var(--band-ink) 84%,var(--band));--vl-glyph:var(--badge-glyph,#fff);position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body,inherit);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-audience-paths-3,.cf-audience-paths-3 *{box-sizing:border-box}
.cf-audience-paths-3 p,.cf-audience-paths-3 h2,.cf-audience-paths-3 h3,.cf-audience-paths-3 ul{margin:0}
.cf-audience-paths-3 .vl-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-audience-paths-3 .vl-head{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,5vw,72px);align-items:start}
.cf-audience-paths-3 .vl-h{font-family:var(--font-display,inherit);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)}
.cf-audience-paths-3 .vl-lead{display:grid;gap:8px;padding-top:4px}
.cf-audience-paths-3 .vl-lead p{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--vl-soft);text-wrap:pretty}
.cf-audience-paths-3 .vl-lead .vl-punch{margin-top:4px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--band-ink)}
.cf-audience-paths-3 .vl-hint{margin-top:clamp(32px,4vw,48px);font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--vl-soft);text-wrap:pretty}
.cf-audience-paths-3 .vl-hint svg{display:inline-block;width:18px;height:18px;vertical-align:-.2em;margin-inline-end:.4em}
.cf-audience-paths-3 .vl-stairs{list-style:none;padding:0;margin-top:24px;display:grid;grid-template-columns:var(--vl-cols);grid-template-rows:auto calc(var(--vl-base) + var(--vl-n1) * var(--vl-rise));column-gap:16px;position:relative}
.cf-audience-paths-3 .vl-stairs::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:oklch(from var(--band-ink) l c h / .24)}
.cf-audience-paths-3 .vl-step{--vl-d:calc((var(--vl-n1) - var(--i)) * var(--vl-rise));position:relative;grid-row:span 2;display:grid;grid-template-rows:subgrid;min-width:0;animation:vl-rise .45s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:var(--delay,0s)}
.cf-audience-paths-3 .vl-card{position:relative;top:var(--vl-d);z-index:1;display:flex;flex-direction:column;gap:12px;min-width:0;padding:clamp(20px,1.8vw,24px);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(from var(--vl-sh) l c h / .22),0 4px 10px -2px oklch(from var(--vl-sh) l c h / .2)));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.cf-audience-paths-3 .vl-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--vl-sh) l c h / .22),0 12px 24px -8px oklch(from var(--vl-sh) l c h / .32))}
.cf-audience-paths-3 .vl-card[data-selected]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),var(--shadow-lg,0 2px 4px oklch(from var(--vl-sh) l c h / .22),0 12px 24px -8px oklch(from var(--vl-sh) l c h / .32))}
.cf-audience-paths-3 .vl-riser{grid-row:2;position:relative;z-index:0;margin-top:calc(var(--vl-d) - 18px);border-radius:6px 6px 0 0;background:oklch(from var(--band-ink) l c h / calc(.06 + var(--i) * .025));box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .16);transition:background .2s ease}
.cf-audience-paths-3 .vl-step[data-selected] .vl-riser{background:oklch(from var(--accent-fill,var(--accent)) l c h / .55)}
.cf-audience-paths-3 .vl-top{display:flex;align-items:center;gap:12px;min-height:48px}
.cf-audience-paths-3 .vl-num{font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-audience-paths-3 .vl-flag{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;animation:vl-pop .3s ease .35s backwards}
.cf-audience-paths-3 .vl-spot{margin-inline-start:auto;flex:none;line-height:0}
.cf-audience-paths-3 .vl-name{font-family:var(--font-display,inherit);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)}
.cf-audience-paths-3 .vl-sel{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:start;cursor:pointer}
.cf-audience-paths-3 .vl-sel::after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--card-radius,var(--radius,14px))}
.cf-audience-paths-3 .vl-sel:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px;border-radius:4px}
@supports selector(:has(*)){.cf-audience-paths-3 .vl-sel:focus-visible{outline:none}.cf-audience-paths-3 .vl-card:has(.vl-sel:focus-visible){outline:3px solid var(--band-ink);outline-offset:4px}}
.cf-audience-paths-3 .vl-for{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-audience-paths-3 .vl-price{margin-top:auto;padding-top:8px;display:grid;gap:16px}
.cf-audience-paths-3 .vl-amt{display:block;font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(2rem,3.6vw,3.25rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-audience-paths-3 .vl-pnote{display:block;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-audience-paths-3 .vl-cta{position:relative;z-index:2;display:grid;gap:8px;margin-top:4px}
.cf-audience-paths-3 .vl-cta-note{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-audience-paths-3 .vl-btn{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;padding:8px 16px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.125rem;line-height:1.15;letter-spacing:0;text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--vl-btn) calc(l + .04) c h),oklch(from var(--vl-btn-2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--vl-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--vl-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--vl-sh) l c h / .3),0 8px 16px -6px oklch(from var(--vl-sh) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
.cf-audience-paths-3 .vl-btn-lg{min-height:64px;padding:8px 24px;font-size:clamp(1.125rem,1.55vw,1.375rem)}
.cf-audience-paths-3 .vl-btn:hover:not(:disabled),.cf-audience-paths-3 .vl-btn[data-state=hover]{transform:translateY(-1px);background:linear-gradient(oklch(from var(--vl-btn) calc(l - .01) c h),oklch(from var(--vl-btn-2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--vl-btn) calc(l + .12) c h / .6),inset 0 -3px 0 oklch(from var(--vl-btn) calc(l - .2) c h),0 1px 2px oklch(from var(--vl-sh) l c h / .32),0 10px 20px -6px oklch(from var(--vl-sh) l c h / .55)}
.cf-audience-paths-3 .vl-btn:active:not(:disabled),.cf-audience-paths-3 .vl-btn[data-state=active]{transform:translateY(1px);background:linear-gradient(oklch(from var(--vl-btn) calc(l - .04) c h),oklch(from var(--vl-btn-2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--vl-btn) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--vl-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--vl-sh) l c h / .3)}
.cf-audience-paths-3 .vl-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-audience-paths-3 .vl-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;transform:none}
.cf-audience-paths-3 .vl-btn[aria-busy=true]{cursor:progress}
.cf-audience-paths-3 .vl-spin{flex:none;width:20px;height:20px;animation:vl-spin .8s linear infinite}
.cf-audience-paths-3 .vl-panel{margin-top:24px;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(from var(--vl-sh) l c h / .22),0 4px 10px -2px oklch(from var(--vl-sh) l c h / .2)));padding:clamp(20px,3vw,32px)}
.cf-audience-paths-3 .vl-panel-in{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,3vw,40px);align-items:start;animation:vl-rise .45s cubic-bezier(.2,.7,.2,1) backwards}
.cf-audience-paths-3 .vl-panel-in[data-cols="3"]{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr) minmax(0,1.1fr)}
.cf-audience-paths-3 .vl-fit-h{font-family:var(--font-display,inherit);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)}
.cf-audience-paths-3 .vl-fit-list{list-style:none;padding:0;margin-top:16px;display:grid;gap:12px}
.cf-audience-paths-3 .vl-fit-list li{display:flex;gap:12px;align-items:flex-start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-audience-paths-3 .vl-badge{flex:none;display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:999px;background:var(--success);color:var(--vl-glyph)}
.cf-audience-paths-3 .vl-badge svg{width:14px;height:14px}
.cf-audience-paths-3 .vl-well{background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:10px;padding:clamp(20px,2.4vw,28px)}
.cf-audience-paths-3 .vl-was{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:4px}
.cf-audience-paths-3 .vl-val{font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--ink);text-decoration:line-through;text-decoration-color:var(--danger);text-decoration-thickness:3px}
.cf-audience-paths-3 .vl-todayrow{margin-top:8px;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:18px}
.cf-audience-paths-3 .vl-today{display:block;font-family:var(--font-display,inherit);font-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(--accent)}
.cf-audience-paths-3 .vl-valnote,.cf-audience-paths-3 .vl-today-l,.cf-audience-paths-3 .vl-today-n{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-audience-paths-3 .vl-but{margin-top:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:800;color:var(--ink)}
.cf-audience-paths-3 .vl-today-l{margin-top:16px}
.cf-audience-paths-3 .vl-well > .vl-today-l:first-child{margin-top:0}
.cf-audience-paths-3 .vl-reveal > *{animation:vl-rise .45s cubic-bezier(.2,.7,.2,1) backwards}
.cf-audience-paths-3 .vl-reveal > :nth-child(2){animation-delay:.07s}
.cf-audience-paths-3 .vl-reveal > :nth-child(3){animation-delay:.14s}
.cf-audience-paths-3 .vl-reveal > :nth-child(4){animation-delay:.21s}
.cf-audience-paths-3 .vl-reveal > :nth-child(n+5){animation-delay:.28s}
.cf-audience-paths-3 .vl-act{display:grid;gap:16px}
.cf-audience-paths-3 .vl-commit{position:relative;display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-size:1.0625rem;line-height:1.45;font-weight:600;color:var(--ink);text-wrap:pretty}
.cf-audience-paths-3 .vl-commit-in{position:absolute;left:0;top:1px;width:24px;height:24px;margin:0;opacity:0;cursor:pointer}
.cf-audience-paths-3 .vl-box{flex:none;display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:6px;border:2px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));background:var(--field);color:transparent;transition:background .16s ease,border-color .16s ease}
.cf-audience-paths-3 .vl-box svg{width:14px;height:14px}
.cf-audience-paths-3 .vl-commit-in:checked + .vl-box{background:var(--accent-fill,var(--accent));border-color:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-audience-paths-3 .vl-commit-in:focus-visible + .vl-box{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-audience-paths-3 .vl-commit[data-error] .vl-box{border-color:var(--danger)}
.cf-audience-paths-3 .vl-err{margin-top:-8px;color:var(--danger);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-audience-paths-3 .vl-err svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-audience-paths-3 .vl-note{margin-top:-4px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-audience-paths-3 .vl-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes vl-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes vl-pop{from{transform:scale(.9)}}
@keyframes vl-spin{to{transform:rotate(360deg)}}
@media (max-width:999.98px){
.cf-audience-paths-3 .vl-head{grid-template-columns:minmax(0,1fr);gap:16px}
.cf-audience-paths-3 .vl-hint{margin-top:32px}
.cf-audience-paths-3 .vl-stairs{display:flex;flex-direction:column-reverse;gap:16px;padding-inline-start:32px;margin-top:20px}
.cf-audience-paths-3 .vl-stairs::after{display:none}
.cf-audience-paths-3 .vl-stairs::before{content:"";position:absolute;left:8px;top:12px;bottom:12px;width:4px;border-radius:4px;background:oklch(from var(--band-ink) l c h / .22)}
.cf-audience-paths-3 .vl-step{display:block}
.cf-audience-paths-3 .vl-step::before{content:"";position:absolute;left:-24px;top:42px;width:24px;height:4px;border-radius:4px;background:oklch(from var(--band-ink) l c h / .22)}
.cf-audience-paths-3 .vl-step[data-selected]::before{background:var(--accent-fill,var(--accent))}
.cf-audience-paths-3 .vl-card{top:0}
.cf-audience-paths-3 .vl-riser{display:none}
.cf-audience-paths-3 .vl-panel{margin-top:12px}
.cf-audience-paths-3 .vl-panel-in,.cf-audience-paths-3 .vl-panel-in[data-cols="3"]{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media (prefers-reduced-motion:reduce){
.cf-audience-paths-3 .vl-step,.cf-audience-paths-3 .vl-panel-in,.cf-audience-paths-3 .vl-reveal > *,.cf-audience-paths-3 .vl-flag,.cf-audience-paths-3 .vl-spin{animation:none}
.cf-audience-paths-3 .vl-card,.cf-audience-paths-3 .vl-btn,.cf-audience-paths-3 .vl-riser,.cf-audience-paths-3 .vl-box{transition:none}
.cf-audience-paths-3 .vl-card:hover,.cf-audience-paths-3 .vl-btn:hover:not(:disabled),.cf-audience-paths-3 .vl-btn[data-state]{transform:none}
}
`
pieces/content/audience-paths-3/specimen.tsx 91 lines
import * as React from "react"
import { AudiencePaths3, type AudiencePaths3State, type LadderRung } from "../audience-paths-3"
import defaults from "../../studio-defaults.json"
import checklist from "../../fx/spots/checklist"
import book from "../../fx/spots/book"
import rocket from "../../fx/spots/rocket"
import chart from "../../fx/spots/chart"
export const states = ["default", "hover", "active", "disabled", "error", "three-rung"]
export default function AudiencePaths3Specimen({ state = "default" }: { state?: string }) {
const rungs: LadderRung[] = [
{
name: "Ops Clarity Audit",
forWho: "For founders who still sign off every task themselves.",
price: "Free",
priceNote: "30-minute call",
value: "$450",
bestIf: [
"run a team of 3 to 15 and every decision still lands on you",
"can't say which process breaks first when you're away",
"want one clear fix before you spend a cent",
],
spot: checklist,
actionLabel: "Book My Free Audit",
actionNote: "No card. No pitch. Just your map.",
},
{
name: "Process Playbook",
forWho: "For teams ready to write down how the work gets done.",
price: "$97",
priceNote: "One payment",
value: "$297",
bestIf: [
"know the fix and need templates to roll it out",
"have a team lead who can own the rollout",
"want SOPs your people will actually open",
],
spot: book,
guarantee: defaults.sample.guarantee,
actionLabel: "Get the Playbook",
actionNote: "Instant download · Yours to keep",
},
{
name: "Ops Sprint",
forWho: "For owners who want one broken process fixed with them.",
price: "$1,500",
priceNote: "Two-week sprint",
value: "$4,500",
bestIf: [
"have one process costing you hours every week",
"want it rebuilt in two weeks, side by side",
"need your team trained before the sprint ends",
],
spot: rocket,
actionLabel: "Book a Sprint Call",
actionNote: "Pick a start date that suits you",
},
{
name: "Ops Partner",
forWho: "For growing companies that need a fractional COO.",
price: "$3,000",
priceNote: "Per month",
bestIf: [
"are past 15 people and still running ops by gut",
"want a senior operator in your weekly meetings",
"need someone to own the systems while you sell",
],
spot: chart,
actionLabel: "Apply for Ops Partner",
actionNote: "Month to month",
},
]
const three = state === "three-rung"
const shown = three ? [rungs[0], rungs[2], rungs[3]] : rungs
const pieceState = (three ? "default" : state) as AudiencePaths3State
return (
<AudiencePaths3
title="Your way in is free. Your way up is mapped."
lead={[
"Nobody hires a fractional COO on day one.",
"You start with a free audit, then climb when the last step pays for itself.",
]}
punch="Simple."
rungs={shown}
state={pieceState}
/>
)
}
| Name | Type | Details |
|---|---|---|
title OptionalAudiencePaths3 |
React.ReactNode |
Default "Your way in is free. Your way up is mapped."
|
lead OptionalAudiencePaths3 |
React.ReactNode[] |
Default ["Start on the free first step.", "Climb only when the last step has paid for itself."]
|
punch OptionalAudiencePaths3 |
React.ReactNode |
Default "Simple."
|
rungs RequiredAudiencePaths3 |
LadderRung[] |
|
start OptionalAudiencePaths3 |
number |
Default 0
|
defaultSelected OptionalAudiencePaths3 |
number |
|
onSelect OptionalAudiencePaths3 |
(rung: LadderRung, index: number) => void |
|
onAction OptionalAudiencePaths3 |
(rung: LadderRung, index: number) => void | Promise<void> |
|
copy OptionalAudiencePaths3 |
AudiencePaths3Copy |
|
state OptionalAudiencePaths3 |
AudiencePaths3State |
Default "default"
|
className OptionalAudiencePaths3 |
string |
|
id OptionalAudiencePaths3 |
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- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 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