Letter Checkout Rail 1
Letter checkout rail: a signed sales letter (bold lead-ins, selling subheads, fascination bullets, a sealed promise, a P.S.) with a sticky buy rail beside it. On phones the rail follows the letter and a slim bar keeps the one action in reach.
Use it in a prompt
Use offer/letter-checkout-rail 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/letter-checkout-rail.tsx. - Import it and pass your copy and images (Props tab):
import { LetterCheckoutRail } from "@/components/funneldna/offer/letter-checkout-rail"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/letter-checkout-rail/component.tsx 415 lines
// layout: certificate-document
// Letter checkout rail: a signed sales letter (bold lead-ins, selling subheads, fascination bullets, a sealed promise, a P.S.) with a sticky buy rail beside it. On phones the rail follows the letter and a slim bar keeps the one action in reach.
import * as React from 'react';
import { Check, ShieldCheck } from 'lucide-react';
import { Mesh, FX_HOST } from '../fx/fx';
export type LetterBlock =
| { kind: 'paragraph'; lead?: React.ReactNode; text: React.ReactNode }
| { kind: 'heading'; text: React.ReactNode }
| { kind: 'bullets'; items: React.ReactNode[] };
export type LetterCheckoutRailProps = {
headline?: string;
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string;
lead?: string;
/** presenter slot: the letter writer's portrait. */
authorImage?: string;
authorImageAlt?: string;
fromLabel?: string;
authorName?: string;
/** Place or date line under the writer's name. */
dateline?: string;
salutation?: string;
/** The letter body: paragraphs with bold lead-ins, selling subheads and bullet runs. */
blocks?: LetterBlock[];
promiseHeading?: string;
promiseText?: React.ReactNode;
/** seal-guarantee slot: transparent money-back seal. */
sealImage?: string;
sealImageAlt?: string;
signOff?: string;
/** Text written in the signature face. */
signature?: string;
signerName?: string;
signerRole?: string;
psLabel?: string;
ps?: React.ReactNode;
/** product slot: transparent product shot. */
productImage?: string;
productImageAlt?: string;
productName?: string;
/** Two-line what-it-is under the product name. */
productSummary?: string;
/** Small line on the price tag above the prices. */
priceLabel?: string;
price?: string;
regularPrice?: string;
/** Screen-reader text read before the struck price. */
regularPriceLabel?: string;
/** Screen-reader text read before today's price. */
priceSrLabel?: string;
terms?: string;
label?: string;
/** Shorter label for the phone bar button. */
barLabel?: string;
/** Quiet line under the rail button. */
secondaryLine?: string;
guarantee?: string;
guaranteeNote?: string;
/** Accessible name of the rail. */
railLabel?: string;
href?: string;
onAction?: () => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_BLOCKS: LetterBlock[] = [
{ kind: 'paragraph', lead: 'If your funnel keeps stalling,', text: 'it’s rarely the idea. It’s that nothing tells you which page comes next, what goes on it, or when it’s ready.' },
{ kind: 'heading', text: 'Map the whole funnel before you build a page' },
{ kind: 'paragraph', lead: 'The kit flips the order.', text: 'You plan the offer and the pages first, write the copy second, and check every step last.' },
{
kind: 'bullets',
items: [
'The one question to answer before you pick a single template',
'How to draft your headline, offer and call to action in one sitting',
'The pre-launch checks that catch broken links and forms before a visitor does',
],
},
];
export function LetterCheckoutRail(props: LetterCheckoutRailProps) {
const {
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
lead = 'If your first funnel keeps stalling, this short letter shows why, and the one-download kit that gets it planned, written and checked.',
authorImage = '',
authorImageAlt = '',
fromLabel = 'From the desk of',
authorName = '',
dateline = '',
salutation = 'Dear friend,',
blocks = DEFAULT_BLOCKS,
promiseHeading = 'Plan your funnel for 30 days, risk free',
promiseText = 'If the kit doesn’t give you a clear plan for your first funnel, ask within 30 days and you get every cent back.',
sealImage = '',
sealImageAlt = '30-day money-back guarantee seal',
signOff = 'To your first launch,',
signature = '',
signerName = '',
signerRole = '',
psLabel = 'P.S.',
ps = 'The complete kit is one payment, and it’s covered by a 30-day money-back guarantee. Your plan is one download away.',
productImage = '',
productImageAlt = '',
productName = 'The Funnel Starter Kit',
productSummary = 'A planning guide, a page copy workbook and a launch checklist in one download.',
priceLabel = 'Your price',
price = '$47',
regularPrice = '$97',
regularPriceLabel = 'Regular price',
priceSrLabel = 'Today’s price',
terms = 'One payment · Lifetime access',
label = 'Get The Kit For $47',
barLabel = 'Get The Kit',
secondaryLine = 'or keep reading to see what’s inside',
guarantee = '30-day money-back guarantee',
guaranteeNote = 'Instant digital access.',
railLabel = 'Order summary',
href,
onAction,
state = 'default',
className = '',
} = props;
const headId = React.useId();
const disabled = state === 'disabled';
const stateClass = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : '';
const renderAction = (text: string, extra: string) =>
href && !disabled ? (
<a className={'cf-lcr__btn' + extra + stateClass} href={href} onClick={onAction}>
{text}
</a>
) : (
<button type='button' className={'cf-lcr__btn' + extra + stateClass} onClick={onAction} disabled={disabled}>
{text}
</button>
);
return (
<section className={('cf-lcr ' + className).trim()} aria-labelledby={headId}>
<style>{CSS}</style>
{signature ? <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap' /> : null}
<div className='cf-lcr__stage' style={FX_HOST}>
<Mesh variant='dark' />
<div className='cf-lcr__head'>
<h2 id={headId} className='cf-lcr__title'>
{withMark(headline, highlight)}
</h2>
{lead ? <p className='cf-lcr__lead'>{lead}</p> : null}
</div>
</div>
<div className='cf-lcr__body'>
<div className='cf-lcr__letter'>
<article className='cf-lcr__doc'>
{authorName || authorImage ? (
<header className='cf-lcr__from'>
{authorImage ? <img src={authorImage} alt={authorImageAlt} width={72} height={72} loading='lazy' /> : null}
<div>
{authorName ? (
<p className='cf-lcr__from-name'>
<span>{fromLabel}</span> {authorName}
</p>
) : null}
{dateline ? <p className='cf-lcr__from-line'>{dateline}</p> : null}
</div>
</header>
) : null}
{salutation ? <p className='cf-lcr__salute'>{salutation}</p> : null}
{blocks.map((b, i) => {
if (b.kind === 'heading') {
return (
<h3 key={i} className='cf-lcr__sub'>
{b.text}
</h3>
);
}
if (b.kind === 'bullets') {
return (
<ul key={i} className='cf-lcr__bullets'>
{b.items.map((item, j) => (
<li key={j}>
<Check className='cf-lcr__tick' size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{item}</span>
</li>
))}
</ul>
);
}
return (
<p key={i} className='cf-lcr__p'>
{b.lead ? <strong>{b.lead}</strong> : null}
{b.lead ? ' ' : null}
{b.text}
</p>
);
})}
{promiseHeading || promiseText ? (
<div className={'cf-lcr__promise' + (sealImage ? '' : ' is-plain')}>
{sealImage ? <img className='cf-lcr__seal' src={sealImage} alt={sealImageAlt} width={104} height={104} loading='lazy' /> : null}
<div>
{promiseHeading ? <h3 className='cf-lcr__promise-title'>{promiseHeading}</h3> : null}
{promiseText ? <p className='cf-lcr__promise-text'>{promiseText}</p> : null}
</div>
</div>
) : null}
{signature || signerName ? (
<div className='cf-lcr__sign'>
{signOff ? <p className='cf-lcr__signoff'>{signOff}</p> : null}
{signature ? (
<p className='cf-lcr__signature' aria-hidden={signerName ? true : undefined}>
{signature}
</p>
) : null}
{signerName ? <p className='cf-lcr__signer'>{signerName}</p> : null}
{signerRole ? <p className='cf-lcr__role'>{signerRole}</p> : null}
</div>
) : null}
{ps ? (
<p className='cf-lcr__ps'>
<strong>{psLabel}</strong> {ps}
</p>
) : null}
</article>
<div className='cf-lcr__bar'>
{productImage ? <img className='cf-lcr__bar-img' src={productImage} alt='' width={44} height={44} loading='lazy' /> : null}
<div className='cf-lcr__bar-text'>
<p className='cf-lcr__bar-name'>{productName}</p>
{price ? (
<p className='cf-lcr__bar-price'>
<span className='cf-lcr__sr'>{priceSrLabel} </span>
<strong>{price}</strong>
{regularPrice ? (
<>
{' '}
<span className='cf-lcr__sr'>{regularPriceLabel} </span>
<s>{regularPrice}</s>
</>
) : null}
</p>
) : null}
</div>
{renderAction(barLabel, ' cf-lcr__btn--bar')}
</div>
</div>
<aside className='cf-lcr__rail' aria-label={railLabel}>
<div className='cf-lcr__rcard'>
<div className={'cf-lcr__media' + (productImage ? '' : ' is-solo')}>
{productImage ? <img className='cf-lcr__product' src={productImage} alt={productImageAlt} width={320} height={320} /> : null}
{price ? (
<div className='cf-lcr__tagwrap'>
<div className='cf-lcr__tag'>
<div className='cf-lcr__tag-body'>
{priceLabel ? (
<p className='cf-lcr__tag-label' aria-hidden='true'>
{priceLabel}
</p>
) : null}
{regularPrice ? (
<p className='cf-lcr__tag-was'>
<span className='cf-lcr__sr'>{regularPriceLabel} </span>
<s>{regularPrice}</s>
</p>
) : null}
<p className='cf-lcr__tag-price'>
<span className='cf-lcr__sr'>{priceSrLabel} </span>
{price}
</p>
</div>
</div>
<span className='cf-lcr__string' aria-hidden='true' />
</div>
) : null}
</div>
<h3 className='cf-lcr__name'>{productName}</h3>
{productSummary ? <p className='cf-lcr__summary'>{productSummary}</p> : null}
{terms ? <p className='cf-lcr__terms'>{terms}</p> : null}
{renderAction(label, '')}
{secondaryLine ? <p className='cf-lcr__or'>{secondaryLine}</p> : null}
{guarantee ? (
<p className='cf-lcr__guarantee'>
<ShieldCheck className='cf-lcr__gicon' size={18} strokeWidth={2.5} aria-hidden='true' />
<strong>{guarantee}.</strong> {guaranteeNote}
</p>
) : null}
</div>
</aside>
</div>
</section>
);
}
export default LetterCheckoutRail;
function withMark(text: string, phrase?: string) {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className='cf-lcr__mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
const CSS = `
.cf-lcr{--lcr-gutter:clamp(16px,5vw,48px);--lcr-overlap:clamp(72px,10vw,152px);--lcr-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-bottom:clamp(64px,8.5vw,120px);overflow-x:clip}
.cf-lcr *,.cf-lcr *::before,.cf-lcr *::after{box-sizing:border-box}
.cf-lcr__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-lcr__stage{position:relative;overflow:hidden;background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) var(--lcr-gutter) calc(var(--lcr-overlap) + clamp(40px,5vw,64px))}
.cf-lcr__head{position:relative;z-index:1;max-width:58rem;margin:0 auto;text-align:center}
.cf-lcr__title{margin:0 0 clamp(14px,1.8vw,24px);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(2.5rem,5.4vw,4.875rem);line-height:1.04;text-wrap:balance;color:var(--band-ink)}
.cf-lcr__mark{--lcr-mark:oklch(from var(--marker,#fae37c) max(l,0.88) c h / 1);color:oklch(from var(--lcr-mark) 0.22 calc(c * 0.5) h);background:var(--lcr-mark);padding:0 .14em;margin:0 -.04em;border-radius:.12em .3em .16em .26em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-lcr__lead{margin:0 auto;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-lcr__body{position:relative;z-index:1;max-width:calc(1120px + 2 * var(--lcr-gutter));margin:calc(-1 * var(--lcr-overlap)) auto 0;padding:0 var(--lcr-gutter);display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.cf-lcr__letter{min-width:0}
.cf-lcr__doc{position:relative;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(--lcr-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--lcr-shadow) l c h / .2)));padding:clamp(24px,4.6vw,64px) clamp(20px,4.6vw,64px)}
.cf-lcr__from{display:flex;align-items:center;gap:16px;margin:0 0 clamp(24px,3vw,32px)}
.cf-lcr__from img{flex:none;display:block;width:72px;height:72px;border-radius:12px;object-fit:cover;object-position:50% 25%}
.cf-lcr__from-name{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-lcr__from-name span{font-weight:500;color:var(--muted)}
.cf-lcr__from-line{margin:6px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-lcr__salute{margin:0 0 16px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:700}
.cf-lcr__p{margin:0 0 1.1em;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.62;text-wrap:pretty}
.cf-lcr__p strong{font-weight:800}
.cf-lcr__sub{margin:clamp(32px,4vw,44px) 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-lcr__bullets{list-style:none;margin:4px 0 1.4em;padding:0;display:grid;gap:12px}
.cf-lcr__bullets li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:600;text-wrap:pretty}
.cf-lcr__tick{display:block;margin-top:.2em;color:var(--success)}
.cf-lcr__promise{display:grid;grid-template-columns:clamp(72px,9vw,104px) minmax(0,1fr);gap:clamp(16px,2.4vw,24px);align-items:center;margin:clamp(28px,3.6vw,40px) 0 0;padding:clamp(18px,2.4vw,24px);border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-lcr__promise.is-plain{grid-template-columns:minmax(0,1fr)}
.cf-lcr__seal{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--lcr-shadow) l c h / .3)) drop-shadow(0 8px 12px oklch(from var(--lcr-shadow) l c h / .2))}
.cf-lcr__promise-title{margin:0 0 8px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-lcr__promise-text{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-lcr__sign{margin-top:clamp(28px,3.6vw,40px)}
.cf-lcr__signoff{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
.cf-lcr__signature{--signature-font:var(--signature-face,'Mrs Saint Delafield');margin:6px 0 2px;font-family:var(--signature-font),var(--font-display),cursive;font-size:clamp(2.75rem,5vw,3.5rem);line-height:1.1;font-weight:400;color:var(--signature-ink,var(--accent));overflow-wrap:anywhere}
.cf-lcr__signer{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:800}
.cf-lcr__role{margin:2px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-lcr__ps{margin:clamp(28px,3.6vw,40px) 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.6;text-wrap:pretty}
.cf-lcr__ps strong{font-weight:800}
.cf-lcr__bar{position:sticky;bottom:12px;z-index:4;display:flex;align-items:center;gap:12px;margin-top:16px;padding:10px 10px 10px 12px;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(--shadow-lg,0 2px 4px oklch(from var(--lcr-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--lcr-shadow) l c h / .32))}
.cf-lcr__bar-img{flex:none;display:block;width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 1px 2px oklch(from var(--lcr-shadow) l c h / .3))}
.cf-lcr__bar-text{flex:1 1 auto;min-width:0}
.cf-lcr__bar-name{margin:0;font-size:.9375rem;line-height:1.2;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-lcr__bar-price{margin:2px 0 0;font-size:.875rem;line-height:1.2;font-weight:600;color:var(--muted);white-space:nowrap}
.cf-lcr__bar-price strong{font-family:var(--font-display);font-size:1.125rem;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;margin-right:2px}
.cf-lcr__rail{min-width:0;width:100%;max-width:520px;justify-self:center}
.cf-lcr__rcard{--rpad:clamp(20px,2.4vw,28px);position:relative;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 30%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--lcr-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--lcr-shadow) l c h / .32));padding:var(--rpad)}
.cf-lcr__media{position:relative;display:flex;align-items:center;min-height:200px;margin:0 0 20px}
.cf-lcr__media.is-solo{min-height:0;justify-content:center}
.cf-lcr__product{display:block;width:calc(100% - 112px);max-height:220px;height:auto;object-fit:contain;object-position:left center;filter:drop-shadow(0 2px 3px oklch(from var(--lcr-shadow) l c h / .28)) drop-shadow(0 12px 16px oklch(from var(--lcr-shadow) l c h / .22))}
.cf-lcr__tagwrap{position:absolute;top:10px;right:0;min-width:124px;max-width:160px}
.cf-lcr__media.is-solo .cf-lcr__tagwrap{position:relative;top:auto;margin-top:10px}
.cf-lcr__string{position:absolute;left:50%;top:calc(-1 * (var(--rpad) + 11px));width:2px;height:calc(var(--rpad) + 26px);margin-left:-1px;border-radius:1px;background:oklch(from var(--ink) l c h / .45);z-index:1}
.cf-lcr__tag{position:relative;transform:rotate(-4deg);transform-origin:50% 15px;filter:drop-shadow(0 1px 2px oklch(from var(--lcr-shadow) l c h / .32)) drop-shadow(0 8px 10px oklch(from var(--lcr-shadow) l c h / .22))}
.cf-lcr__tag-body{position:relative;clip-path:polygon(22px 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%,0 22px);border-radius:0 0 10px 10px;padding:32px 16px 16px;text-align:center;background:linear-gradient(oklch(from var(--accent-fill,var(--accent)) calc(l + .04) c h),oklch(from var(--accent-fill,var(--accent)) calc(l - .04) c h));color:var(--accent-fill-ink,var(--card))}
.cf-lcr__tag-body::before{content:'';position:absolute;top:9px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--card);box-shadow:inset 0 1px 2px oklch(from var(--lcr-shadow) l c h / .5);outline:2px solid oklch(from var(--accent-fill,var(--accent)) calc(l + .14) c h)}
.cf-lcr__tag-label{margin:0 0 6px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cf-lcr__tag-was{margin:0;font-family:var(--font-display);font-size:1.125rem;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}
.cf-lcr__tag-was s{text-decoration-thickness:.16em;text-decoration-color:oklch(from var(--accent-fill-ink,var(--card)) l c h / .9)}
.cf-lcr__tag-price{margin:2px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,3.4vw,3rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-lcr__name{margin:0 0 8px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-lcr__summary{margin:0 0 16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-lcr__terms{margin:0 0 14px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--ink)}
.cf-lcr__or{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-lcr__guarantee{margin:18px 0 0;padding:14px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-size:.9375rem;line-height:1.45;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-lcr__guarantee strong{font-weight:800}
.cf-lcr__gicon{display:inline-block;vertical-align:-0.2em;margin-inline-end:.4em;color:var(--success)}
.cf-lcr__btn{appearance:none;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:12px 20px;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:1.25rem;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(--lcr-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--lcr-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-lcr__btn:hover:not(:disabled),.cf-lcr__btn.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);box-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 - .2) c h),0 1px 2px oklch(from var(--lcr-shadow) l c h / .32),0 12px 20px -6px oklch(from var(--lcr-shadow) l c h / .5)}
.cf-lcr__btn:active:not(:disabled),.cf-lcr__btn.is-active{transform:translateY(1px);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 - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .24) 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(--lcr-shadow) l c h / .3)}
.cf-lcr__btn:focus-visible{outline:3px solid oklch(from var(--button-bg,var(--cta)) l c h / .5);outline-offset:3px}
.cf-lcr__btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:none;transform:none}
.cf-lcr__btn--bar{flex:none;width:auto;min-height:48px;padding:0 18px;font-size:1.0625rem;white-space:nowrap;text-wrap:nowrap}
@media (min-width:640px){.cf-lcr__doc::before{content:'';position:absolute;inset:12px;border:1px solid oklch(from var(--ink) l c h / .1);border-radius:calc(var(--card-radius,var(--radius,14px)) - 6px);pointer-events:none}}
@media (min-width:960px){
.cf-lcr__body{grid-template-columns:minmax(0,1fr) 360px;gap:clamp(32px,4vw,56px);align-items:start}
.cf-lcr__rail{position:sticky;top:var(--lcr-sticky-top,24px);max-width:none}
.cf-lcr__bar{display:none}
}
@keyframes cf-lcr-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-lcr__title,.cf-lcr__lead,.cf-lcr__doc,.cf-lcr__rcard{animation:cf-lcr-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-lcr__lead{animation-delay:.07s}
.cf-lcr__doc{animation-delay:.14s}
.cf-lcr__rcard{animation-delay:.21s}
@media (prefers-reduced-motion:reduce){
.cf-lcr__title,.cf-lcr__lead,.cf-lcr__doc,.cf-lcr__rcard{animation:none}
.cf-lcr__btn{transition:none}
.cf-lcr__btn:hover:not(:disabled),.cf-lcr__btn.is-hover,.cf-lcr__btn:active:not(:disabled),.cf-lcr__btn.is-active{transform:none}
}
`;
pieces/offer/letter-checkout-rail/specimen.tsx 69 lines
import __studioImage3cc60097 from "../assets/db2284e59d5a8344.webp";
import __studioImage69fac480 from "../assets/f763225bbdc86321.webp";
import __studioImage0d1b4412 from "../assets/5d3025c991523fb8.webp";
import { LetterCheckoutRail } from '../letter-checkout-rail';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function LetterCheckoutRailDemo({ state = 'default' }: { state?: SpecimenState }) {
const s = defaults.sample;
return (
<LetterCheckoutRail
state={state}
headline={s.headline}
highlight='a clear plan'
lead='If your first funnel keeps stalling, this short letter shows why, and the one-download kit that gets it planned, written and checked.'
authorImage={slot('presenter', __studioImage3cc60097)}
authorImageAlt='Maya Lindqvist, creator of The Funnel Starter Kit'
fromLabel='From the desk of'
authorName='Maya Lindqvist'
dateline='Portland, Oregon · Monday evening'
salutation='Dear friend,'
blocks={[
{ kind: 'paragraph', lead: 'If your funnel keeps stalling,', text: 'it’s rarely the idea. It’s that nothing tells you which page comes next, what goes on it, or when it’s ready.' },
{ kind: 'paragraph', lead: 'Most of us build backwards.', text: 'We open the editor, pick a template and hope the offer gets clearer as we go. It rarely does.' },
{ kind: 'heading', text: 'Map the whole funnel before you build a page' },
{ kind: 'paragraph', lead: 'The Funnel Starter Kit flips the order.', text: 'You plan the offer and the pages first, write the copy second, and check every step last. Each step has its own tool.' },
{
kind: 'bullets',
items: [
'The one question to answer before you pick a single template',
'How to draft your headline, offer and call to action in one sitting',
'Which pages your first funnel needs now, and which can wait',
'The pre-launch checks that catch broken links and forms before a visitor does',
],
},
{ kind: 'heading', text: 'Everything you need arrives in one download' },
{ kind: 'paragraph', lead: 'Three tools that work together:', text: `the ${s.items[0].name}, the ${s.items[1].name} and the ${s.items[2].name}. One payment, and they’re yours to keep.` },
{ kind: 'paragraph', lead: 'Use it on your own funnel first.', text: 'Work through the plan, write your pages, run the checklist. Then decide if it was worth it.' },
]}
promiseHeading='Plan your funnel for 30 days, risk free'
promiseText='If the kit doesn’t give you a clear plan for your first funnel, ask within 30 days and you get every cent back.'
sealImage={slot('seal-guarantee', __studioImage69fac480)}
sealImageAlt='30-day money-back guarantee seal'
signOff='To your first launch,'
signature='Maya Lindqvist'
signerName='Maya Lindqvist'
signerRole={`Creator, ${s.name}`}
psLabel='P.S.'
ps={`The complete kit is ${s.price} today, down from ${s.regularPrice}, and it’s covered by a ${s.guarantee}. Your plan is one download away.`}
productImage={slot('product', __studioImage0d1b4412)}
productImageAlt='The Funnel Starter Kit: planning guide, copy workbook and launch checklist'
productName={s.name}
productSummary='A planning guide, a page copy workbook and a launch checklist in one download.'
priceLabel='Your price'
price={s.price}
regularPrice={s.regularPrice}
terms={s.note}
label={`Get The Kit For ${s.price}`}
barLabel='Get The Kit'
secondaryLine='or keep reading to see what’s inside'
guarantee={s.guarantee}
guaranteeNote={`${s.reassurance[0]}.`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalLetterCheckoutRail |
string |
|
highlight OptionalLetterCheckoutRail |
string |
|
lead OptionalLetterCheckoutRail |
string |
|
authorImage OptionalLetterCheckoutRail |
string |
|
authorImageAlt OptionalLetterCheckoutRail |
string |
|
fromLabel OptionalLetterCheckoutRail |
string |
|
authorName OptionalLetterCheckoutRail |
string |
|
dateline OptionalLetterCheckoutRail |
string |
|
salutation OptionalLetterCheckoutRail |
string |
|
blocks OptionalLetterCheckoutRail |
LetterBlock[] |
|
promiseHeading OptionalLetterCheckoutRail |
string |
|
promiseText OptionalLetterCheckoutRail |
React.ReactNode |
|
sealImage OptionalLetterCheckoutRail |
string |
|
sealImageAlt OptionalLetterCheckoutRail |
string |
|
signOff OptionalLetterCheckoutRail |
string |
|
signature OptionalLetterCheckoutRail |
string |
|
signerName OptionalLetterCheckoutRail |
string |
|
signerRole OptionalLetterCheckoutRail |
string |
|
psLabel OptionalLetterCheckoutRail |
string |
|
ps OptionalLetterCheckoutRail |
React.ReactNode |
|
productImage OptionalLetterCheckoutRail |
string |
|
productImageAlt OptionalLetterCheckoutRail |
string |
|
productName OptionalLetterCheckoutRail |
string |
|
productSummary OptionalLetterCheckoutRail |
string |
|
priceLabel OptionalLetterCheckoutRail |
string |
|
price OptionalLetterCheckoutRail |
string |
|
regularPrice OptionalLetterCheckoutRail |
string |
|
regularPriceLabel OptionalLetterCheckoutRail |
string |
|
priceSrLabel OptionalLetterCheckoutRail |
string |
|
terms OptionalLetterCheckoutRail |
string |
|
label OptionalLetterCheckoutRail |
string |
|
barLabel OptionalLetterCheckoutRail |
string |
|
secondaryLine OptionalLetterCheckoutRail |
string |
|
guarantee OptionalLetterCheckoutRail |
string |
|
guaranteeNote OptionalLetterCheckoutRail |
string |
|
railLabel OptionalLetterCheckoutRail |
string |
|
href OptionalLetterCheckoutRail |
string |
|
onAction OptionalLetterCheckoutRail |
() => void |
|
state OptionalLetterCheckoutRail |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalLetterCheckoutRail |
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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
product- The main product shot or cover (ebook, kit, bottle).
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
5d3025c991523fb8.webp
image/webp · 174 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
db2284e59d5a8344.webp
image/webp · 42.1 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f763225bbdc86321.webp
image/webp · 286 KB