Delayed Offer Reveal 5
Russell’s two-choices close, timed to the presentation: a calm note while it plays, then a split panel with the cost of staying put on the quiet side and the programme, its investment and the apply button on the dark side.
Use it in a prompt
Use offer/delayed-offer-reveal-5 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/delayed-offer-reveal-5.tsx. - Import it and pass your copy and images (Props tab):
import { DelayedOfferReveal5 } from "@/components/funneldna/offer/delayed-offer-reveal-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/delayed-offer-reveal-5/component.tsx 577 lines
// layout: split-contrast
// Russell’s two-choices close, timed to the presentation: a calm note while it plays, then a split panel with the cost of staying put on the quiet side and the programme, its investment and the apply button on the dark side.
"use client"
import * as React from "react"
import { AlertCircle, Check, Loader2, LockKeyhole, X } from "lucide-react"
import { FX_HOST, Glow, Spot, Texture } from "../fx/fx"
import topo from "../fx/textures/topo"
import clock from "../fx/spots/clock"
export type DelayedOfferReveal5State = "default" | "before" | "hover" | "active" | "disabled" | "error"
export type DelayedOfferReveal5Line = {
name: string
/** Supplied value for the line, e.g. "$9,000". */
value?: string
}
export type DelayedOfferReveal5Price = {
/** Toggle label, e.g. "Pay in full". */
label: string
/** The investment line, e.g. "$12,000" or "12 × $1,100". */
price: string
/** One short line under the price. */
note?: string
}
export type DelayedOfferReveal5Props = {
/** Force the choices open (true) or closed (false). Leave undefined to open by video time. */
revealed?: boolean
/** Reveal moment in seconds from the start of the presentation (video-relative, never a deadline). */
revealAt?: number
/** Current playback position in seconds, from your player’s time updates. */
currentTime?: number
/** id of an HTML5 video element on the page; the block follows its playback when currentTime is not given. */
videoId?: string
/** Called once, when the choices first open. */
onReveal?: () => void
waitingTitle?: string
waitingNote?: string
/** {time} is replaced with the reveal time (m:ss). Shown only when revealAt is set. */
waitingTimeLabel?: string
availableAnnouncement?: string
headline?: string
/** One continuous phrase inside the headline, set in the accent colour. */
highlight?: string
lead?: string
oneNumber?: string
oneTitle?: string
oneLead?: string
/** What staying put costs, one plain supplied line each. */
costs?: string[]
costsAria?: string
/** "Before" photo for choice one (scene slot): life if nothing changes. Hidden when it matches sceneImage. */
oneImage?: string
oneImageAlt?: string
/** Closing line at the foot of choice one. */
oneClose?: string
twoNumber?: string
twoTitle?: string
twoLead?: string
/** After-state photo for choice two (scene slot). */
sceneImage?: string
sceneImageAlt?: string
/** What the programme includes, with supplied values. */
items?: DelayedOfferReveal5Line[]
ledgerAria?: string
totalLabel?: string
/** Total value. If left out, the item values are added up. */
totalValue?: string
investmentLabel?: string
/** The pay-in-full investment. */
payInFull?: DelayedOfferReveal5Price
/** A payment plan. The toggle appears only when both payInFull and paymentPlan are supplied. */
paymentPlan?: DelayedOfferReveal5Price
defaultPayment?: "full" | "plan"
toggleLabel?: string
/** Italic aside in the author’s voice under the investment. */
aside?: string
/** Commitment line above the button; when set, it must be ticked before the action runs. */
commitLabel?: string
commitError?: string
label?: string
/** Destination, used as a plain link when no onAction is given. */
href?: string
/** Action handler. While its promise is pending the button shows loadingText; a rejection shows errorText. */
onAction?: () => void | Promise<void>
loadingText?: string
errorText?: string
reassurance?: string
disabled?: boolean
state?: DelayedOfferReveal5State
className?: string
}
const useIsoLayoutEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect
export function DelayedOfferReveal5({
revealed,
revealAt,
currentTime,
videoId,
onReveal,
waitingTitle = "Keep watching. Your two choices appear right here.",
waitingNote = "There’s nothing to decide yet. When the presentation gets to it, this space opens on its own.",
waitingTimeLabel = "Opens at {time} in the presentation",
availableAnnouncement = "Your two choices are now open below the presentation.",
headline = "From here, you have two choices.",
highlight = "two choices",
lead = "Both are fair. Only one changes what next year looks like.",
oneNumber = "Choice one:",
oneTitle = "keep going alone",
oneLead = "Close this page and carry on exactly as you are.",
costs = [],
costsAria = "What staying put costs",
oneClose = "",
oneImage,
oneImageAlt = "",
twoNumber = "Choice two:",
twoTitle = "get the plan and the people",
twoLead = "",
sceneImage,
sceneImageAlt = "",
items = [],
ledgerAria = "What the programme includes",
totalLabel = "Total value",
totalValue,
investmentLabel = "Your investment",
payInFull,
paymentPlan,
defaultPayment = "full",
toggleLabel = "Choose how you’d pay",
aside = "",
commitLabel = "",
commitError = "Tick the box to confirm before you continue.",
label = "Apply now",
href = "#apply",
onAction,
loadingText = "Opening your application…",
errorText = "That didn’t open. Please tap the button again.",
reassurance = "",
disabled = false,
state = "default",
className,
}: DelayedOfferReveal5Props) {
const uid = React.useId()
const headingId = `${uid}-h`
const commitId = `${uid}-commit`
const commitErrId = `${uid}-cerr`
const actionErrId = `${uid}-aerr`
const [videoTime, setVideoTime] = React.useState<number | undefined>(undefined)
React.useEffect(() => {
setVideoTime(undefined)
if (!videoId) return
const video = document.getElementById(videoId)
if (!(video instanceof HTMLVideoElement)) return
const sync = () => setVideoTime(video.currentTime)
sync()
const events = ["timeupdate", "seeked", "loadedmetadata"] as const
events.forEach((name) => video.addEventListener(name, sync))
return () => events.forEach((name) => video.removeEventListener(name, sync))
}, [videoId])
const threshold = revealAt !== undefined && Number.isFinite(revealAt) ? Math.max(0, revealAt) : undefined
const time = currentTime ?? videoTime
const reached = threshold === undefined || (time !== undefined && Number.isFinite(time) && time >= threshold)
const wants = revealed ?? reached
const [latched, setLatched] = React.useState(wants)
React.useEffect(() => {
if (wants) setLatched(true)
}, [wants])
const shown = state === "before" ? false : revealed ?? (latched || wants)
const wasShown = React.useRef(shown)
const notified = React.useRef(false)
const [entering, setEntering] = React.useState(false)
const [announcement, setAnnouncement] = React.useState("")
useIsoLayoutEffect(() => {
if (shown && !wasShown.current) {
setEntering(true)
setAnnouncement(availableAnnouncement)
}
if (!shown) setEntering(false)
wasShown.current = shown
if (shown && !notified.current) {
notified.current = true
onReveal?.()
}
}, [shown, availableAnnouncement, onReveal])
const hasPlan = Boolean(payInFull && paymentPlan)
const [mode, setMode] = React.useState<"full" | "plan">(defaultPayment === "plan" && paymentPlan ? "plan" : "full")
const [swapped, setSwapped] = React.useState(false)
const current = mode === "plan" && paymentPlan ? paymentPlan : payInFull ?? paymentPlan
const initialError = state === "error" ? (commitLabel ? "commit" : "action") : null
const [error, setError] = React.useState<"commit" | "action" | null>(initialError)
React.useEffect(() => {
setError(state === "error" ? (commitLabel ? "commit" : "action") : null)
}, [state, commitLabel])
const [committed, setCommitted] = React.useState(false)
const [loading, setLoading] = React.useState(false)
const commitRef = React.useRef<HTMLInputElement>(null)
const busy = React.useRef(false)
const mounted = React.useRef(false)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const blocked = disabled || state === "disabled"
const total = totalValue ?? sumValues(items.map((item) => item.value))
async function handle(event: React.MouseEvent<HTMLElement>) {
if (blocked || busy.current) {
event.preventDefault()
return
}
if (commitLabel && !committed) {
event.preventDefault()
setError("commit")
commitRef.current?.focus()
return
}
if (!onAction) return
event.preventDefault()
busy.current = true
setError(null)
setLoading(true)
try {
await onAction()
} catch {
if (mounted.current) setError("action")
} finally {
busy.current = false
if (mounted.current) setLoading(false)
}
}
const btnClass = [
"cf-dor5__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
loading ? "is-loading" : "",
].filter(Boolean).join(" ")
const describedBy = error === "commit" ? commitErrId : error === "action" ? actionErrId : undefined
const inner = loading ? (
<>
<Loader2 className="cf-dor5__spin" size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{loadingText}</span>
</>
) : (
<span>{label}</span>
)
const action =
onAction || !href || blocked ? (
<button type="button" className={btnClass} onClick={handle} disabled={blocked} aria-busy={loading || undefined} aria-describedby={describedBy}>
{inner}
</button>
) : (
<a className={btnClass} href={href} onClick={handle} aria-describedby={describedBy}>
{inner}
</a>
)
const rootClass = ["cf-dor5", shown ? "" : "is-waiting", entering ? "is-entering" : "", className ?? ""].filter(Boolean).join(" ")
return (
<section className={rootClass} aria-labelledby={headingId} style={FX_HOST}>
<style>{CSS}</style>
<Texture src={topo} tone="ink" />
<div className="cf-dor5__wrap">
{shown ? (
<>
<header className="cf-dor5__head">
<h2 id={headingId} className="cf-dor5__h2">{emphasise(headline, highlight)}</h2>
{lead ? <p className="cf-dor5__lead">{lead}</p> : null}
</header>
<div className="cf-dor5__split">
<div className="cf-dor5__one">
<h3 className="cf-dor5__h3">
<span className="cf-dor5__num">{oneNumber}</span> {oneTitle}
</h3>
{oneLead ? <p className="cf-dor5__p">{oneLead}</p> : null}
{costs.length > 0 ? (
<ul className="cf-dor5__costs" aria-label={costsAria}>
{costs.map((cost, index) => (
<li key={`${cost}-${index}`}>
<span className="cf-dor5__x" aria-hidden="true">
<X size={14} strokeWidth={3} />
</span>
<span>{cost}</span>
</li>
))}
</ul>
) : null}
{oneImage && oneImage !== sceneImage ? (
<div className="cf-dor5__oneframe">
<img src={oneImage} alt={oneImageAlt} width={900} height={1100} loading="lazy" decoding="async" />
</div>
) : null}
{oneClose ? <p className="cf-dor5__oneclose">{oneClose}</p> : null}
</div>
<div className="cf-dor5__two" style={FX_HOST}>
<Glow />
<div className="cf-dor5__twoin">
{sceneImage ? (
<img className="cf-dor5__scene" src={sceneImage} alt={sceneImageAlt} width={1280} height={560} loading="lazy" decoding="async" />
) : null}
<h3 className="cf-dor5__h3">
<span className="cf-dor5__num">{twoNumber}</span> {twoTitle}
</h3>
{twoLead ? <p className="cf-dor5__p">{twoLead}</p> : null}
{items.length > 0 ? (
<ul className="cf-dor5__ledger" aria-label={ledgerAria}>
{items.map((item, index) => (
<li key={`${item.name}-${index}`}>
<span className="cf-dor5__lname">{item.name}</span>
{item.value ? (
<>
<span className="cf-dor5__leader" aria-hidden="true" />
<span className="cf-dor5__lval">{item.value}</span>
</>
) : null}
</li>
))}
</ul>
) : null}
{total ? (
<div className="cf-dor5__total">
<span>{totalLabel}</span>
<span className="cf-dor5__tv">{total}</span>
</div>
) : null}
{current ? (
<div className="cf-dor5__invest">
<div className="cf-dor5__investrow">
<p className="cf-dor5__investlabel">{investmentLabel}</p>
{hasPlan && payInFull && paymentPlan ? (
<fieldset className="cf-dor5__toggle">
<legend className="cf-dor5__sr">{toggleLabel}</legend>
{(["full", "plan"] as const).map((value) => {
const option = value === "full" ? payInFull : paymentPlan
return (
<label key={value} className={mode === value ? "is-on" : undefined}>
<input
type="radio"
className="cf-dor5__sr"
name={`${uid}-pay`}
value={value}
checked={mode === value}
onChange={() => {
setMode(value)
setSwapped(true)
}}
/>
<span>{option.label}</span>
</label>
)
})}
</fieldset>
) : null}
</div>
<div aria-live="polite">
<p key={`${mode}-p`} className={`cf-dor5__price${swapped ? " is-swap" : ""}`}>{current.price}</p>
{current.note ? <p key={`${mode}-n`} className={`cf-dor5__note${swapped ? " is-swap" : ""}`}>{current.note}</p> : null}
</div>
</div>
) : null}
{aside ? <p className="cf-dor5__aside">{aside}</p> : null}
{commitLabel ? (
<label className="cf-dor5__commit" htmlFor={commitId}>
<input
ref={commitRef}
id={commitId}
type="checkbox"
className="cf-dor5__sr"
checked={committed}
disabled={blocked}
aria-invalid={error === "commit" || undefined}
aria-describedby={error === "commit" ? commitErrId : undefined}
onChange={(event) => {
setCommitted(event.target.checked)
if (event.target.checked && error === "commit") setError(null)
}}
/>
<span className="cf-dor5__box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span>{commitLabel}</span>
</label>
) : null}
{error === "commit" ? (
<p id={commitErrId} className="cf-dor5__err" role="alert">
<AlertCircle className="cf-dor5__inl" size={16} strokeWidth={2.5} aria-hidden="true" />
{commitError}
</p>
) : null}
<div className="cf-dor5__action">{action}</div>
{error === "action" ? (
<p id={actionErrId} className="cf-dor5__err" role="alert">
<AlertCircle className="cf-dor5__inl" size={16} strokeWidth={2.5} aria-hidden="true" />
{errorText}
</p>
) : null}
{reassurance ? (
<p className="cf-dor5__reassure">
<LockKeyhole className="cf-dor5__inl" size={16} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
</>
) : (
<div className="cf-dor5__wait">
<Spot src={clock} size={56} />
<div>
<h2 id={headingId} className="cf-dor5__waittitle">{waitingTitle}</h2>
{waitingNote ? <p className="cf-dor5__waitnote">{waitingNote}</p> : null}
{threshold !== undefined && waitingTimeLabel ? (
<p className="cf-dor5__waittime">{waitingTimeLabel.replace("{time}", () => formatTime(threshold))}</p>
) : null}
</div>
</div>
)}
</div>
<div className="cf-dor5__sr" aria-live="polite">{announcement}</div>
</section>
)
}
export default DelayedOfferReveal5
function emphasise(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)}
<span className="cf-dor5__em">{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
function formatTime(seconds: number) {
const s = Math.max(0, Math.floor(seconds))
const h = Math.floor(s / 3600)
const m = Math.floor((s % 3600) / 60)
const r = String(s % 60).padStart(2, "0")
return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${r}` : `${m}:${r}`
}
function sumValues(values: (string | undefined)[]) {
let symbol = ""
let total = 0
let count = 0
for (const value of values) {
if (!value) continue
const match = value.trim().match(/^([^0-9]*)([0-9,]+(?:[.][0-9]+)?)/)
if (!match) return undefined
if (!symbol) symbol = match[1].trim()
total += parseFloat(match[2].replace(/,/g, ""))
count += 1
}
if (!count) return undefined
return symbol + total.toLocaleString("en-US", { maximumFractionDigits: 2 })
}
const CSS = `
.cf-dor5{--dor5-soft:color-mix(in oklab,var(--band-ink) 84%,var(--band));--dor5-chip:oklch(from var(--band-ink) l c h / .12);--dor5-line:oklch(from var(--band-ink) l c h / .26);position:relative;isolation:isolate;overflow:hidden;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-dor5.is-waiting{padding-block:clamp(32px,5vw,64px)}
.cf-dor5 *,.cf-dor5 *::before,.cf-dor5 *::after{box-sizing:border-box}
.cf-dor5 :where(h2,h3,p,ul,fieldset,legend){margin:0}
.cf-dor5 img{max-width:100%}
.cf-dor5__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-dor5__head{max-width:46rem;margin:0 auto clamp(32px,4vw,48px);text-align:center}
.cf-dor5__h2{font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-dor5__em{color:var(--accent)}
.cf-dor5__lead{margin-top:16px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-dor5__split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:stretch;background:var(--card);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-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)));overflow:hidden}
.cf-dor5__one{display:flex;flex-direction:column;padding:clamp(24px,3.4vw,44px);background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink)}
.cf-dor5__two{position:relative;isolation:isolate;padding:clamp(24px,3.4vw,44px);background:var(--band);color:var(--band-ink)}
.cf-dor5__twoin{position:relative;z-index:1}
.cf-dor5__h3{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance}
.cf-dor5__num{color:var(--muted)}
.cf-dor5__two .cf-dor5__num{color:var(--dor5-soft)}
.cf-dor5__p{margin-top:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-dor5__two .cf-dor5__p{color:var(--dor5-soft)}
.cf-dor5__costs{list-style:none;padding:0;margin-top:24px;display:grid;gap:16px}
.cf-dor5__costs li{display:flex;gap:12px;align-items:flex-start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;color:var(--ink);text-wrap:pretty}
.cf-dor5__x{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:999px;background:oklch(from var(--danger) min(l,0.55) c h);color:var(--status-glyph,#fff)}
.cf-dor5__oneframe{position:relative;flex:1 1 240px;min-height:240px;margin-top:32px;border-radius:12px;overflow:hidden;background:color-mix(in oklch,var(--ink) 8%,var(--card))}
.cf-dor5__oneframe img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%;filter:saturate(.72)}
.cf-dor5__oneclose{margin-top:24px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-dor5__scene{display:block;width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;object-position:50% 35%;border-radius:12px;margin-bottom:24px}
.cf-dor5__ledger{list-style:none;padding:0;margin-top:24px;display:grid;gap:12px}
.cf-dor5__ledger li{display:flex;align-items:flex-end;gap:10px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4}
.cf-dor5__lname{flex:0 1 auto;min-width:0;text-wrap:pretty}
.cf-dor5__leader{flex:1 1 24px;min-width:24px;border-bottom:1px solid var(--dor5-line);margin-bottom:.4em}
.cf-dor5__lval{flex:none;font-weight:800;font-variant-numeric:tabular-nums}
.cf-dor5__total{margin-top:16px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 16px;border-radius:10px;background:var(--dor5-chip);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800}
.cf-dor5__tv{font-variant-numeric:tabular-nums}
.cf-dor5__invest{margin-top:24px}
.cf-dor5__investrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cf-dor5__investlabel{font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--dor5-soft)}
.cf-dor5__toggle{border:0;padding:4px;min-inline-size:0;display:inline-flex;gap:4px;border-radius:999px;background:var(--dor5-chip)}
.cf-dor5__toggle label{position:relative;display:flex}
.cf-dor5__toggle span{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:999px;font-size:.9375rem;font-weight:800;line-height:1.2;white-space:nowrap;color:var(--band-ink);cursor:pointer}
.cf-dor5__toggle label:not(.is-on) span:hover{background:oklch(from var(--band-ink) l c h / .1)}
.cf-dor5__toggle label.is-on span{background:var(--band-ink);color:var(--band);box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / .25))}
.cf-dor5__toggle input:focus-visible + span{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-dor5__price{margin-top:12px;font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-dor5__note{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--dor5-soft);text-wrap:pretty}
.cf-dor5__aside{margin-top:20px;font-style:italic;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--dor5-soft);text-wrap:pretty}
.cf-dor5__commit{margin-top:24px;display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:1rem;line-height:1.4;font-weight:600;color:var(--band-ink);text-wrap:pretty;position:relative}
.cf-dor5__box{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:6px;border:2px solid var(--band-ink);color:var(--band)}
.cf-dor5__box svg{opacity:0}
.cf-dor5__commit:hover .cf-dor5__box{background:oklch(from var(--band-ink) l c h / .14)}
.cf-dor5__commit input:checked + .cf-dor5__box{background:var(--band-ink)}
.cf-dor5__commit input:checked + .cf-dor5__box svg{opacity:1}
.cf-dor5__commit input:focus-visible + .cf-dor5__box{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-dor5__commit input:disabled + .cf-dor5__box{cursor:not-allowed}
.cf-dor5__err{margin-top:12px;padding:8px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-dor5__inl{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-dor5__action{margin-top:20px}
.cf-dor5__btn{appearance:none;border:0;cursor:pointer;display:flex;width:100%;min-height:72px;padding:0 28px;align-items:center;justify-content:center;gap:10px;text-align:center;text-decoration:none;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;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 / .4),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .55))}
.cf-dor5__btn span{text-wrap:balance}
.cf-dor5__btn:hover:not(:disabled),.cf-dor5__btn.is-hover{transform:translateY(-1px);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));box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .12) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45),0 12px 20px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .65)}
.cf-dor5__btn:active:not(:disabled),.cf-dor5__btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .16) c h / .6),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 / .4)}
.cf-dor5__btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-dor5__btn.is-loading{cursor:progress}
.cf-dor5__btn: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:var(--button-2-shadow,var(--shadow-sm))}
.cf-dor5__reassure{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--dor5-soft);text-wrap:pretty}
.cf-dor5__wait{max-width:44rem;margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start;padding:clamp(20px,3vw,32px);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)))}
.cf-dor5__waittitle{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-dor5__waitnote{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-dor5__waittime{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-dor5__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media (prefers-reduced-motion:no-preference){
.cf-dor5__btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-dor5__toggle span,.cf-dor5__box{transition:background .16s ease,color .16s ease}
.cf-dor5.is-entering .cf-dor5__head{animation:cf-dor5-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-dor5.is-entering .cf-dor5__one{animation:cf-dor5-rise .45s cubic-bezier(.2,.7,.2,1) .07s both}
.cf-dor5.is-entering .cf-dor5__two{animation:cf-dor5-rise .45s cubic-bezier(.2,.7,.2,1) .14s both}
.cf-dor5.is-entering .cf-dor5__action{animation:cf-dor5-rise .45s cubic-bezier(.2,.7,.2,1) .28s both}
.cf-dor5__price.is-swap,.cf-dor5__note.is-swap{animation:cf-dor5-swap .3s cubic-bezier(.2,.7,.2,1) both}
.cf-dor5__spin{animation:cf-dor5-spin .8s linear infinite}
}
@keyframes cf-dor5-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-dor5-swap{from{opacity:.6;transform:translateY(6px)}}
@keyframes cf-dor5-spin{to{transform:rotate(360deg)}}
@media (max-width:760px){
.cf-dor5__split{grid-template-columns:minmax(0,1fr)}
.cf-dor5__scene{aspect-ratio:16/9}
.cf-dor5__investrow{flex-direction:column;align-items:stretch}
.cf-dor5__toggle{display:flex}
.cf-dor5__toggle label{flex:1 1 0;min-width:0}
.cf-dor5__toggle span{width:100%;padding:0 12px}
.cf-dor5__one,.cf-dor5__two{padding:28px 20px}
.cf-dor5__oneframe{flex:none;min-height:0;aspect-ratio:16/9;margin-top:24px}
.cf-dor5__ledger{gap:0}
.cf-dor5__ledger li{align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0}
.cf-dor5__ledger li+li{border-top:1px solid var(--dor5-line)}
.cf-dor5__lname{flex:1 1 auto}
.cf-dor5__leader{display:none}
.cf-dor5__total{margin-top:8px}
.cf-dor5__btn{padding:0 16px}
}
`
pieces/offer/delayed-offer-reveal-5/specimen.tsx 63 lines
import __studioImage0e925cf8 from "../assets/7261f84231727552.webp";
import __studioImage4db4f355 from "../assets/3575d67648dc5bc3.webp";
// Specimen: the two-choices close for a fictional high-ticket programme, opened under the presentation.
import * as React from "react"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import { DelayedOfferReveal5, type DelayedOfferReveal5State } from "../delayed-offer-reveal-5"
export const states = ["default", "before", "hover", "active", "disabled", "error"]
export default function DelayedOfferReveal5Specimen({ state = "default" }: { state?: DelayedOfferReveal5State }) {
return (
<DelayedOfferReveal5
state={state}
revealAt={2520}
currentTime={state === "before" ? 1480 : 2540}
waitingTitle="Keep watching. Your two choices appear right here."
waitingNote="There’s nothing to decide yet. When the presentation gets to it, this space opens on its own."
headline="From here, every clinic owner has two choices."
highlight="two choices"
lead="You’ve seen the Practice Ascent method. Here’s what each path looks like from tomorrow morning."
oneNumber="Choice one:"
oneTitle="keep going alone"
oneLead="Close this page and run the clinic the way you do now."
costs={[
"Evenings spent on rotas, recalls and the books",
"New enquiries nobody follows up, so the diary stays patchy",
"Every growth decision made on your own, by guesswork",
"Another year at the same revenue, working longer hours",
]}
oneImage={slot(
"scene",
__studioImage0e925cf8,
)}
oneImageAlt="A clinic owner still at the front desk late in the evening, surrounded by paperwork"
oneClose="It costs nothing today. It keeps costing every month you wait."
twoNumber="Choice two:"
twoTitle="join the Clinic Growth Mastermind"
twoLead="Twelve months of coaching, systems and a room of clinic owners, built around the Practice Ascent method."
sceneImage={slot(
"scene",
__studioImage4db4f355,
)}
sceneImageAlt="A clinic owner relaxed at the front desk of her busy clinic"
items={[
{ name: "12 monthly strategy days with the group", value: "$9,000" },
{ name: "Weekly implementation calls", value: "$4,800" },
{ name: "The Practice Ascent playbook and templates", value: "$2,400" },
{ name: "Private peer group of clinic owners", value: "$1,800" },
]}
totalLabel="Total value"
totalValue="$18,000"
investmentLabel="Your investment"
payInFull={{ label: "Pay in full", price: "$12,000", note: "One payment, only if you’re accepted" }}
paymentPlan={{ label: "Payment plan", price: "12 × $1,100", note: "Twelve monthly payments, only if you’re accepted" }}
aside="(I know. It’s a serious number. That’s exactly why it starts with a call, not a card.)"
commitLabel={`I understand I’m covered by the ${defaults.sample.guarantee}.`}
label="Apply for the Mastermind"
href="#apply"
reassurance="Short application · A call before any payment"
/>
)
}
| Name | Type | Details |
|---|---|---|
revealed OptionalDelayedOfferReveal5 |
boolean |
|
revealAt OptionalDelayedOfferReveal5 |
number |
|
currentTime OptionalDelayedOfferReveal5 |
number |
|
videoId OptionalDelayedOfferReveal5 |
string |
|
onReveal OptionalDelayedOfferReveal5 |
() => void |
|
waitingTitle OptionalDelayedOfferReveal5 |
string |
Default "Keep watching. Your two choices appear right here."
|
waitingNote OptionalDelayedOfferReveal5 |
string |
Default "There’s nothing to decide yet. When the presentation gets to it, this space opens on its own."
|
waitingTimeLabel OptionalDelayedOfferReveal5 |
string |
Default "Opens at {time} in the presentation"
|
availableAnnouncement OptionalDelayedOfferReveal5 |
string |
Default "Your two choices are now open below the presentation."
|
headline OptionalDelayedOfferReveal5 |
string |
Default "From here, you have two choices."
|
highlight OptionalDelayedOfferReveal5 |
string |
Default "two choices"
|
lead OptionalDelayedOfferReveal5 |
string |
Default "Both are fair. Only one changes what next year looks like."
|
oneNumber OptionalDelayedOfferReveal5 |
string |
Default "Choice one:"
|
oneTitle OptionalDelayedOfferReveal5 |
string |
Default "keep going alone"
|
oneLead OptionalDelayedOfferReveal5 |
string |
Default "Close this page and carry on exactly as you are."
|
costs OptionalDelayedOfferReveal5 |
string[] |
Default []
|
costsAria OptionalDelayedOfferReveal5 |
string |
Default "What staying put costs"
|
oneImage OptionalDelayedOfferReveal5 |
string |
|
oneImageAlt OptionalDelayedOfferReveal5 |
string |
Default ""
|
oneClose OptionalDelayedOfferReveal5 |
string |
Default ""
|
twoNumber OptionalDelayedOfferReveal5 |
string |
Default "Choice two:"
|
twoTitle OptionalDelayedOfferReveal5 |
string |
Default "get the plan and the people"
|
twoLead OptionalDelayedOfferReveal5 |
string |
Default ""
|
sceneImage OptionalDelayedOfferReveal5 |
string |
|
sceneImageAlt OptionalDelayedOfferReveal5 |
string |
Default ""
|
items OptionalDelayedOfferReveal5 |
DelayedOfferReveal5Line[] |
Default []
|
ledgerAria OptionalDelayedOfferReveal5 |
string |
Default "What the programme includes"
|
totalLabel OptionalDelayedOfferReveal5 |
string |
Default "Total value"
|
totalValue OptionalDelayedOfferReveal5 |
string |
|
investmentLabel OptionalDelayedOfferReveal5 |
string |
Default "Your investment"
|
payInFull OptionalDelayedOfferReveal5 |
DelayedOfferReveal5Price |
|
paymentPlan OptionalDelayedOfferReveal5 |
DelayedOfferReveal5Price |
|
defaultPayment OptionalDelayedOfferReveal5 |
"full" | "plan" |
Default "full"
|
toggleLabel OptionalDelayedOfferReveal5 |
string |
Default "Choose how you’d pay"
|
aside OptionalDelayedOfferReveal5 |
string |
Default ""
|
commitLabel OptionalDelayedOfferReveal5 |
string |
Default ""
|
commitError OptionalDelayedOfferReveal5 |
string |
Default "Tick the box to confirm before you continue."
|
label OptionalDelayedOfferReveal5 |
string |
Default "Apply now"
|
href OptionalDelayedOfferReveal5 |
string |
Default "#apply"
|
onAction OptionalDelayedOfferReveal5 |
() => void | Promise<void> |
|
loadingText OptionalDelayedOfferReveal5 |
string |
Default "Opening your application…"
|
errorText OptionalDelayedOfferReveal5 |
string |
Default "That didn’t open. Please tap the button again."
|
reassurance OptionalDelayedOfferReveal5 |
string |
Default ""
|
disabled OptionalDelayedOfferReveal5 |
boolean |
Default false
|
state OptionalDelayedOfferReveal5 |
DelayedOfferReveal5State |
Default "default"
|
className OptionalDelayedOfferReveal5 |
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--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
3575d67648dc5bc3.webp
image/webp · 50.7 KB
-
7261f84231727552.webp
image/webp · 32.4 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
a57ca5c86a05001f.webp
image/webp · 108 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB