{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "template-core",
  "title": "Template core",
  "description": "The structure every Eased template shares, styled only by the template's tokens and classes: links that follow the mount, a legal page with contents, a not-found shell, a contact form, an email capture, a FAQ, a pricing table, a footer, a proof strip and a closing band.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json",
    "https://eased.dev/r/eased-motion.json",
    "https://eased.dev/r/accordion.json",
    "https://eased.dev/r/button.json",
    "https://eased.dev/r/field.json",
    "https://eased.dev/r/input.json",
    "https://eased.dev/r/number-roll.json",
    "https://eased.dev/r/segmented.json",
    "https://eased.dev/r/select.json",
    "https://eased.dev/r/textarea.json",
    "https://eased.dev/r/toast.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/templates/_shared/base.tsx",
      "content": "\"use client\";\n\nimport { createContext, useCallback, useContext, useEffect, useState, type ComponentProps, type ReactNode } from \"react\";\nimport { Toaster } from \"../../toast/toast\";\n\n/**\n * The template's root plumbing. Links: a template's content writes every page link from the\n * site's root (\"/pricing\", \"/#faq\", \"/?plan=team\"), `BaseProvider` says where the template is\n * mounted (\"\" in your app, the preview's path on eased.dev) and `useHref` puts it in front.\n * Overlays: popups and toasts portal into a layer inside the provider, so they sit inside the\n * template's token scope instead of under <body>, where they would lose its colours and radii.\n */\n\nconst Base = createContext(\"\");\n/** undefined: no BaseProvider above, portal to <body>. null: the layer is not mounted yet, wait. */\nconst Layer = createContext<HTMLElement | null | undefined>(undefined);\n\n/**\n * `href` with `base` in front when it names one of the template's pages. Anything else (a full\n * URL, \"mailto:\", \"#faq\") passes through, as does every href when `base` is \"\". The home page\n * is `base` itself, and its section or query (\"/#faq\", \"/?plan=team\") joins it with no slash.\n */\nexport function withBase(base: string, href: string) {\n  if (!base || !href.startsWith(\"/\")) return href;\n  if (href === \"/\") return base;\n  return /^\\/[#?]/.test(href) ? `${base}${href.slice(1)}` : `${base}${href}`;\n}\n\n/**\n * Wrap each page in it, inside the element that carries the template's tokens. It gives every\n * link the mount, mounts the page's one toast stack, and renders the portal layer that the toast\n * stack, template-core's select and any overlay given `container={usePortalContainer()}` open in.\n */\nexport function BaseProvider({\n  base,\n  notificationsLabel = \"Notifications\",\n  children,\n}: {\n  base: string;\n  /** The toast region's accessible name, in the template's language. Default \"Notifications\". */\n  notificationsLabel?: string;\n  children: ReactNode;\n}) {\n  const [layer, setLayer] = useState<HTMLElement | null>(null);\n  const nested = useContext(Layer) !== undefined;\n  useEffect(() => {\n    if (process.env.NODE_ENV === \"production\") return;\n    if (nested) console.warn(\"template-core: BaseProvider inside another BaseProvider mounts a second toast stack. Keep one per page.\");\n    else if (document.querySelectorAll('[role=\"region\"][aria-live]').length > 1 && layer?.querySelector('[role=\"region\"][aria-live]')) {\n      console.warn(\"template-core: more than one toast stack on the page. BaseProvider mounts one; call useToast() instead of adding a Toaster.\");\n    }\n  }, [nested, layer]);\n  return (\n    <Base.Provider value={base}>\n      <Layer.Provider value={layer}>\n        <Toaster container={layer} label={notificationsLabel}>\n          {children}\n        </Toaster>\n        {/* Fixed over the viewport so the toast stack anchors to it; only the overlays take clicks. */}\n        <div ref={setLayer} data-template-portals=\"\" className=\"pointer-events-none fixed inset-0 z-50 *:pointer-events-auto\" />\n      </Layer.Provider>\n    </Base.Provider>\n  );\n}\n\n/** Turns a content href into a link for this mount (`withBase`). Stable while the base is. */\nexport function useHref() {\n  const base = useContext(Base);\n  return useCallback((href: string) => withBase(base, href), [base]);\n}\n\n/**\n * The portal layer, for an overlay's `container` prop (Popover, Dialog, Sheet, DropdownMenu,\n * Combobox, HoverCard, Select…), so it opens inside the template's tokens. Undefined outside a\n * BaseProvider, which those components read as \"portal to <body>\".\n */\nexport function usePortalContainer() {\n  return useContext(Layer);\n}\n\n/**\n * An `<a>` whose href goes through `useHref`, so a server component can link between the\n * template's pages. Every other prop reaches the anchor; style it with `className`.\n */\nexport function BaseLink({ href, ...props }: ComponentProps<\"a\"> & { href: string }) {\n  const to = useHref();\n  return <a {...props} href={to(href)} />;\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/base.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/heading.ts",
      "content": "/** The heading level a piece renders its headings at, so they fit the page's outline. Every piece that renders a heading takes one. */\nexport type HeadingLevel = 2 | 3 | 4 | 5 | 6;\n",
      "type": "registry:lib",
      "target": "@components/eased/templates/_shared/heading.ts"
    },
    {
      "path": "src/registry/eased/templates/_shared/send.ts",
      "content": "\"use client\";\n\nimport { useRef, useState } from \"react\";\nimport { useToast } from \"../../toast/toast\";\n\n/** Where a form's values go. Throw (or reject) to keep the form and report `failed` in a toast. */\nexport type SubmitHandler<V> = (values: V) => void | Promise<void>;\n\n/** The demo send: nothing leaves the page, it just takes as long as a real request. */\nexport const demoSubmit = () => new Promise<void>((resolve) => window.setTimeout(resolve, 900));\n\n/** The email pattern every template checks with: something@something.tld, no spaces. */\nexport const EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n/**\n * The send of a form that is already valid: \"pending\" while `onSubmit` runs (a second submit is\n * ignored), then \"sent\", or back to \"idle\" with an error toast when it throws. Needs a Toaster\n * above it; `BaseProvider` mounts one.\n */\nexport function useSend<V>(onSubmit: SubmitHandler<V> = demoSubmit, failed: string) {\n  const toast = useToast();\n  const [state, setState] = useState<\"idle\" | \"pending\" | \"sent\">(\"idle\");\n  // A ref, not the state: two submits in one frame both read the same stale state.\n  const busy = useRef(false);\n\n  const send = async (values: V) => {\n    if (busy.current) return;\n    busy.current = true;\n    setState(\"pending\");\n    try {\n      await onSubmit(values);\n      setState(\"sent\");\n    } catch {\n      setState(\"idle\");\n      toast.error(failed);\n    } finally {\n      busy.current = false;\n    }\n  };\n\n  return { state, send, reset: () => setState(\"idle\") };\n}\n",
      "type": "registry:lib",
      "target": "@components/eased/templates/_shared/send.ts"
    },
    {
      "path": "src/registry/eased/templates/_shared/legal.tsx",
      "content": "import { useId, type ReactNode } from \"react\";\n\n/**\n * A legal page (privacy, terms, imprint) from one typed document: the title, when it last\n * changed and an intro, then a contents list beside the sections, which stays in view from lg.\n * Plain prose that nothing animates: people read these to find one answer. It is a whole page,\n * so its title is the h1 and its sections are h2s.\n */\n\n/** A paragraph, or a list of short items (`ordered` numbers them). */\nexport type LegalBlock = string | { list: readonly string[]; ordered?: boolean };\n\nexport type LegalSection = {\n  /** The anchor the contents list links to. Default: the title as a slug (\"Your rights\" → \"your-rights\"). */\n  id?: string;\n  title: string;\n  body: readonly LegalBlock[];\n};\n\nexport type LegalDoc = {\n  title: string;\n  /** The day it last changed, as an ISO date: \"2026-10-01\". */\n  updated: string;\n  intro?: string;\n  sections: readonly LegalSection[];\n};\n\nexport type LegalPageProps = {\n  doc: LegalDoc;\n  /** The words around the document: \"Last updated\", \"On this page\". */\n  labels: { updated: string; contents: string };\n  /** Above the title: the note that the text is a sample to replace, in the template's own dress. */\n  note?: ReactNode;\n  /** The locale `updated` is written in. Default \"en-US\" (\"Oct 1, 2026\"). */\n  locale?: string;\n  /** On the `<article>`: its column and padding. */\n  className?: string;\n  /** On the h1: the template's face and size. Default: display 4xl, medium. */\n  titleClassName?: string;\n  /** On the grid of contents and sections: contents beside the text from lg. `lg:grid-cols-1` stacks them in one column. */\n  bodyClassName?: string;\n  /** On the contents list's `<nav>`: hide it (`hidden`) for a short document, or unstick it (`lg:static`). */\n  contentsClassName?: string;\n};\n\nconst slug = (title: string) =>\n  title\n    .toLowerCase()\n    .normalize(\"NFKD\")\n    .replace(/[^a-z0-9]+/g, \"-\")\n    .replace(/^-|-$/g, \"\");\n\n/** Each section's anchor: its own id, its title's slug, or its place when the title has no letters to slug. */\nconst anchors = (sections: readonly LegalSection[]) => sections.map((s, i) => s.id ?? (slug(s.title) || `section-${i + 1}`));\n\nexport function LegalPage({ doc, labels, note, locale = \"en-US\", className = \"\", titleClassName = \"\", bodyClassName = \"\", contentsClassName = \"\" }: LegalPageProps) {\n  const id = useId();\n  const ids = anchors(doc.sections);\n  // Read as a UTC day, so the server and every visitor print the same date.\n  const updated = new Intl.DateTimeFormat(locale, { day: \"numeric\", month: \"short\", year: \"numeric\", timeZone: \"UTC\" }).format(new Date(`${doc.updated}T00:00:00Z`));\n  return (\n    <article aria-labelledby={`${id}-title`} className={`flex flex-col [:where(&)]:gap-group ${className}`}>\n      <header className=\"flex max-w-2xl flex-col items-start gap-pad-base\">\n        {note}\n        <h1\n          id={`${id}-title`}\n          className={`text-balance text-text [:where(&)]:font-display [:where(&)]:text-display-4xl [:where(&)]:font-medium [:where(&)]:tracking-display ${titleClassName}`}\n        >\n          {doc.title}\n        </h1>\n        {doc.intro && <p className=\"text-ui-md text-pretty text-text-secondary\">{doc.intro}</p>}\n        <p className=\"text-ui-sm text-text-muted\">\n          {labels.updated} <time dateTime={doc.updated}>{updated}</time>\n        </p>\n      </header>\n      <div className={`grid [:where(&)]:gap-group lg:[:where(&)]:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:[:where(&)]:gap-group-lg ${bodyClassName}`}>\n        <nav aria-labelledby={`${id}-contents`} className={`flex flex-col gap-in lg:self-start lg:[:where(&)]:sticky lg:[:where(&)]:top-pad-lg ${contentsClassName}`}>\n          <h2 id={`${id}-contents`} className=\"text-ui-sm font-medium text-text-muted\">\n            {labels.contents}\n          </h2>\n          <ol className=\"flex flex-col gap-1.5 text-ui text-text-secondary\">\n            {doc.sections.map((s, i) => (\n              <li key={ids[i]}>\n                <a href={`#${ids[i]}`} className=\"focus-ring rounded-control-xs transition-colors duration-(--eased-duration-fast) ease-standard hover-fine:text-text\">\n                  {s.title}\n                </a>\n              </li>\n            ))}\n          </ol>\n        </nav>\n        <div className=\"flex min-w-0 max-w-2xl flex-col gap-group\">\n          {doc.sections.map((s, i) => (\n            <section key={ids[i]} id={ids[i]} aria-labelledby={`${ids[i]}-title`} className=\"flex flex-col gap-pad-sm\">\n              <h2 id={`${ids[i]}-title`} className=\"text-ui-lg font-medium text-balance text-text\">\n                {s.title}\n              </h2>\n              {s.body.map((block, j) => (\n                <Block key={j} block={block} />\n              ))}\n            </section>\n          ))}\n        </div>\n      </div>\n    </article>\n  );\n}\n\nfunction Block({ block }: { block: LegalBlock }) {\n  if (typeof block === \"string\") return <p className=\"text-ui-md/relaxed text-pretty text-text-secondary\">{block}</p>;\n  const List = block.ordered ? \"ol\" : \"ul\";\n  return (\n    <List className={`flex flex-col gap-2 ps-5 text-ui-md/relaxed text-pretty text-text-secondary marker:text-text-muted ${block.ordered ? \"list-decimal marker:tabular-nums\" : \"list-disc\"}`}>\n      {block.list.map((item) => (\n        <li key={item}>{item}</li>\n      ))}\n    </List>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/legal.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/not-found.tsx",
      "content": "import { useId, type ReactNode } from \"react\";\n\n/**\n * The bones of a not-found page: the template's artwork, the headline as the page's h1, a line\n * on what happened and the pages people usually want. Everything you see is the template's:\n * this only orders it, names it and keeps the artwork out of the accessibility tree.\n */\n\nexport type NotFoundPageProps = {\n  /** The template's own artwork: a drawing, its mark with a piece missing, the code set large. Hidden from screen readers. */\n  art?: ReactNode;\n  /** The headline, the page's h1: \"This page has moved on.\" */\n  title: ReactNode;\n  /** One line on what happened and what to do. */\n  body?: ReactNode;\n  /** The way out: the template's own links, in a `<nav>` named by `linksLabel`. */\n  links?: ReactNode;\n  /** The links' accessible name: \"Pages people look for\". */\n  linksLabel: string;\n  /** On the root, a one-column grid with the art first: your column and padding, or columns that put the art beside the text. */\n  className?: string;\n  /** On the h1: the template's face and size. Default: display 4xl, 5xl from sm. */\n  titleClassName?: string;\n};\n\nexport function NotFoundPage({ art, title, body, links, linksLabel, className = \"\", titleClassName = \"\" }: NotFoundPageProps) {\n  const id = useId();\n  return (\n    <section aria-labelledby={id} className={`grid [:where(&)]:gap-pad-lg ${className}`}>\n      {art && <div aria-hidden>{art}</div>}\n      <div className=\"flex min-w-0 flex-col items-start gap-pad-lg\">\n        <div className=\"flex max-w-2xl flex-col gap-pad-base\">\n          <h1\n            id={id}\n            className={`text-balance text-text [:where(&)]:font-display [:where(&)]:text-display-4xl [:where(&)]:font-medium [:where(&)]:tracking-display sm:[:where(&)]:text-display-5xl ${titleClassName}`}\n          >\n            {title}\n          </h1>\n          {body && <p className=\"text-ui-md text-pretty text-text-secondary sm:text-ui-lg\">{body}</p>}\n        </div>\n        {links && <nav aria-label={linksLabel}>{links}</nav>}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/not-found.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/contact-form.tsx",
      "content": "\"use client\";\n\nimport { AnimatePresence, motion } from \"motion/react\";\nimport { useEffect, useId, useRef, useState, type FormEvent, type ReactNode } from \"react\";\nimport { Button } from \"../../button/button\";\nimport { Field } from \"../../field/field\";\nimport { Input } from \"../../input/input\";\nimport { enter, exitFast, reducedFade, useSafeReducedMotion } from \"../../lib/motion\";\nimport { Select } from \"../../select/select\";\nimport { Textarea } from \"../../textarea/textarea\";\nimport { usePortalContainer } from \"./base\";\nimport { EMAIL, useSend, type SubmitHandler } from \"./send\";\n\n/**\n * A contact or enquiry form from a list of fields. It checks itself on submit (rule 72): each\n * error sits under its field and the first one takes focus. Then the button spins while\n * `onSubmit` runs, and the form gives way to a thank-you that takes focus, with a way back.\n * A send that throws keeps every value and says so in a toast.\n */\n\ntype FieldBase = {\n  /** The key in the submitted values. */\n  name: string;\n  label: string;\n  placeholder?: string;\n  /** Helper text under the control; an error takes its place while there is one. */\n  description?: string;\n  /** The error when it is left empty. Leave it out and the field is optional. */\n  required?: string;\n  /** Appended to the field's wrapper, for its place in your grid: \"sm:col-span-2\". */\n  className?: string;\n};\n\nexport type ContactField =\n  | (FieldBase & { type: \"text\" | \"tel\"; autoComplete?: string })\n  /** `invalid`: the error for an address with no \"@\" or no domain. */\n  | (FieldBase & { type: \"email\"; autoComplete?: string; invalid: string })\n  /** `rows`: its starting height. `min`: the fewest characters, and the error under them. */\n  | (FieldBase & { type: \"textarea\"; rows?: number; min?: { length: number; message: string } })\n  /** `options`: plain strings, or `{ value, label }` when what is submitted differs from what is shown. */\n  | (FieldBase & { type: \"select\"; options: readonly (string | { value: string; label: string })[] });\n\n/** What `onSubmit` receives: every field's trimmed value by name, \"\" when left empty. */\nexport type ContactValues = Record<string, string>;\n\n/** Every word of a contact form, for a template's content file. */\nexport type ContactFormContent = {\n  /** The form's accessible name: \"Project enquiry\". */\n  label: string;\n  fields: readonly ContactField[];\n  /** The submit button's label. */\n  submit: string;\n  /** The thank-you that replaces the form, and the label of the button back to it. */\n  sent: { title: ReactNode; body?: ReactNode; again?: string };\n  /** The toast's title when `onSubmit` throws: \"Couldn't send. Try again, or email hello@…\". */\n  failed: string;\n};\n\nexport type ContactFormProps = ContactFormContent & {\n  /** Where the values go. Default: a 900ms demo that always succeeds. */\n  onSubmit?: SubmitHandler<ContactValues>;\n  /** Beside the submit button: a reply time, a privacy line. */\n  note?: ReactNode;\n  /** On the form, a one-column grid with a 20px gap: your columns and gaps win (\"sm:grid-cols-2 gap-pad-lg\"). */\n  className?: string;\n  /** On the thank-you panel: its surface and padding. */\n  sentClassName?: string;\n};\n\nconst blank = (fields: readonly ContactField[]): ContactValues => Object.fromEntries(fields.map((f) => [f.name, \"\"]));\n\n/** The field's error for this value, or undefined. */\nfunction check(field: ContactField, raw: string) {\n  const value = raw.trim();\n  if (!value) return field.required;\n  if (field.type === \"email\" && !EMAIL.test(value)) return field.invalid;\n  if (field.type === \"textarea\" && field.min && value.length < field.min.length) return field.min.message;\n  return undefined;\n}\n\n/** The control a field's label and errors point at: its input, textarea or select trigger. */\nconst CONTROL = \":is(input:not([type=hidden]), textarea, button, [role=combobox])\";\nconst focusField = (form: HTMLFormElement | null, name: string) =>\n  form?.querySelector<HTMLElement>(`[data-field=\"${CSS.escape(name)}\"] ${CONTROL}`)?.focus();\n\nexport function ContactForm({ label, fields, submit, sent, failed, onSubmit, note, className = \"\", sentClassName = \"\" }: ContactFormProps) {\n  const reduced = useSafeReducedMotion();\n  const form = useRef<HTMLFormElement | null>(null);\n  const returning = useRef(false);\n  const [values, setValues] = useState(() => blank(fields));\n  const [errors, setErrors] = useState<Record<string, string | undefined>>({});\n  const { state, send, reset } = useSend(onSubmit, failed);\n\n  const set = (name: string, value: string) => {\n    setValues((v) => ({ ...v, [name]: value }));\n    setErrors((e) => (e[name] ? { ...e, [name]: undefined } : e));\n  };\n\n  const handleSubmit = (e: FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    const found = Object.fromEntries(fields.map((f) => [f.name, check(f, values[f.name] ?? \"\")]));\n    setErrors(found);\n    const first = fields.find((f) => found[f.name]);\n    if (first) {\n      focusField(form.current, first.name);\n      return;\n    }\n    void send(Object.fromEntries(fields.map((f) => [f.name, (values[f.name] ?? \"\").trim()])));\n  };\n\n  const again = () => {\n    setValues(blank(fields));\n    setErrors({});\n    returning.current = true;\n    reset();\n  };\n\n  // Back from the thank-you, focus lands on the first field of the new form, not on <body>.\n  const formRef = (el: HTMLFormElement | null) => {\n    form.current = el;\n    if (el && returning.current && fields[0]) {\n      returning.current = false;\n      focusField(el, fields[0].name);\n    }\n  };\n\n  return (\n    <AnimatePresence mode=\"wait\" initial={false}>\n      {state === \"sent\" ? (\n        <Sent key=\"sent\" sent={sent} onAgain={again} reduced={reduced} className={sentClassName} />\n      ) : (\n        <motion.form\n          key=\"form\"\n          ref={formRef}\n          noValidate\n          aria-label={label}\n          onSubmit={handleSubmit}\n          className={`grid [:where(&)]:gap-pad-md ${className}`}\n          exit={{ opacity: 0, transition: exitFast }}\n        >\n          {fields.map((field) => (\n            <div key={field.name} data-field={field.name} className={`min-w-0 ${field.className ?? \"\"}`}>\n              <Field label={field.label} description={field.description} error={errors[field.name]}>\n                <Control field={field} value={values[field.name] ?? \"\"} onChange={(v) => set(field.name, v)} />\n              </Field>\n            </div>\n          ))}\n          <div className=\"col-span-full flex flex-wrap items-center gap-x-pad-md gap-y-in\">\n            <Button type=\"submit\" variant=\"primary\" size=\"lg\" loading={state === \"pending\"}>\n              {submit}\n            </Button>\n            {note && <p className=\"text-ui-sm text-pretty text-text-muted\">{note}</p>}\n          </div>\n        </motion.form>\n      )}\n    </AnimatePresence>\n  );\n}\n\nfunction Control({ field, value, onChange }: { field: ContactField; value: string; onChange: (value: string) => void }) {\n  const container = usePortalContainer();\n  const common = { name: field.name, placeholder: field.placeholder, required: field.required !== undefined };\n  if (field.type === \"textarea\") return <Textarea {...common} minRows={field.rows ?? 5} value={value} onValueChange={onChange} />;\n  if (field.type === \"select\") {\n    return (\n      <Select<string>\n        items={field.options.map((o) => (typeof o === \"string\" ? { value: o, label: o } : o))}\n        placeholder={field.placeholder}\n        required={common.required}\n        container={container}\n        value={value || null}\n        onValueChange={(v) => onChange(v ?? \"\")}\n      />\n    );\n  }\n  return <Input {...common} type={field.type} autoComplete={field.autoComplete} value={value} onChange={(e) => onChange(e.target.value)} />;\n}\n\n/** The thank-you: it takes focus as it arrives, so a screen reader reads it and Tab carries on from it. */\nfunction Sent({ sent, onAgain, reduced, className }: { sent: ContactFormContent[\"sent\"]; onAgain: () => void; reduced: boolean; className: string }) {\n  const ref = useRef<HTMLDivElement>(null);\n  const id = useId();\n  useEffect(() => ref.current?.focus(), []);\n  return (\n    <motion.div\n      ref={ref}\n      tabIndex={-1}\n      role=\"group\"\n      aria-labelledby={`${id}-title`}\n      aria-describedby={sent.body ? `${id}-body` : undefined}\n      // Focused by script only, never by Tab or click: no ring to draw.\n      className={`flex flex-col items-start outline-none [:where(&)]:gap-pad-base ${className}`}\n      initial={{ opacity: 0, y: reduced ? 0 : 8 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={reduced ? reducedFade : enter}\n    >\n      <p id={`${id}-title`} className=\"text-ui-lg font-medium text-balance text-text\">\n        {sent.title}\n      </p>\n      {sent.body && <p id={`${id}-body`} className=\"max-w-lg text-ui-md text-pretty text-text-secondary\">{sent.body}</p>}\n      {sent.again && (\n        <Button className=\"mt-in\" onClick={onAgain}>\n          {sent.again}\n        </Button>\n      )}\n    </motion.div>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/contact-form.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/email-capture.tsx",
      "content": "\"use client\";\n\nimport { AnimatePresence, motion } from \"motion/react\";\nimport { useEffect, useRef, useState, type FormEvent, type ReactNode } from \"react\";\nimport { Button } from \"../../button/button\";\nimport { Field } from \"../../field/field\";\nimport { Input } from \"../../input/input\";\nimport { enter, exitFast, reducedFade, useSafeReducedMotion } from \"../../lib/motion\";\nimport { EMAIL, useSend, type SubmitHandler } from \"./send\";\n\n/**\n * One email field and its button, for a newsletter or a waitlist: checked on submit (rule 72),\n * the error inline under the field, the button spinning while `onSubmit` runs, then one line\n * of thanks in its place. A send that throws keeps the address and says so in a toast.\n */\n\n/** Every word of an email capture, for a template's content file. */\nexport type EmailCaptureContent = {\n  /** The field's accessible name (\"Work email\"); the field shows `placeholder` instead. */\n  label: string;\n  placeholder?: string;\n  /** The button's label. */\n  submit: string;\n  /** The error when it is empty, and when it is not an address. */\n  required: string;\n  invalid: string;\n  /** The line of thanks that replaces the form. */\n  sent: ReactNode;\n  /** The toast's title when `onSubmit` throws. */\n  failed: string;\n};\n\nexport type EmailCaptureProps = EmailCaptureContent & {\n  /** Where the address goes. Default: a 900ms demo that always succeeds. */\n  onSubmit?: SubmitHandler<string>;\n  /** The field's and the button's height: md 36px, lg 40px. Default \"md\". */\n  size?: \"md\" | \"lg\";\n  /** On the form and on the thanks that replaces it, so both keep one width: \"max-w-md\". */\n  className?: string;\n};\n\nexport function EmailCapture({ label, placeholder, submit, required, invalid, sent, failed, onSubmit, size = \"md\", className = \"\" }: EmailCaptureProps) {\n  const reduced = useSafeReducedMotion();\n  const input = useRef<HTMLInputElement>(null);\n  const [value, setValue] = useState(\"\");\n  const [error, setError] = useState<string>();\n  const { state, send } = useSend(onSubmit, failed);\n\n  const handleSubmit = (e: FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    const email = value.trim();\n    const found = !email ? required : EMAIL.test(email) ? undefined : invalid;\n    setError(found);\n    if (found) {\n      input.current?.focus();\n      return;\n    }\n    void send(email);\n  };\n\n  return (\n    <AnimatePresence mode=\"wait\" initial={false}>\n      {state === \"sent\" ? (\n        <Thanks key=\"sent\" reduced={reduced} size={size} className={className}>\n          {sent}\n        </Thanks>\n      ) : (\n        <motion.form\n          key=\"form\"\n          noValidate\n          aria-label={label}\n          onSubmit={handleSubmit}\n          className={`flex items-start [:where(&)]:gap-2 ${className}`}\n          exit={{ opacity: 0, transition: exitFast }}\n        >\n          <Field error={error} className=\"min-w-0 flex-1\">\n            <Input\n              ref={input}\n              name=\"email\"\n              type=\"email\"\n              autoComplete=\"email\"\n              required\n              size={size}\n              aria-label={label}\n              placeholder={placeholder}\n              value={value}\n              onChange={(e) => {\n                setValue(e.target.value);\n                setError(undefined);\n              }}\n            />\n          </Field>\n          <Button type=\"submit\" variant=\"primary\" size={size} loading={state === \"pending\"}>\n            {submit}\n          </Button>\n        </motion.form>\n      )}\n    </AnimatePresence>\n  );\n}\n\n/** The thanks takes focus as it arrives, so a screen reader reads it and Tab carries on from it. */\nfunction Thanks({ reduced, size, className, children }: { reduced: boolean; size: \"md\" | \"lg\"; className: string; children: ReactNode }) {\n  const ref = useRef<HTMLParagraphElement>(null);\n  useEffect(() => ref.current?.focus(), []);\n  return (\n    <motion.p\n      ref={ref}\n      tabIndex={-1}\n      // Focused by script only, never by Tab or click: no ring to draw.\n      // As tall as the row it replaces, so nothing under it moves.\n      className={`flex items-center text-pretty outline-none [:where(&)]:text-ui-md [:where(&)]:text-text ${size === \"lg\" ? \"min-h-control-lg\" : \"min-h-control-md\"} ${className}`}\n      initial={{ opacity: 0, y: reduced ? 0 : 4 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={reduced ? reducedFade : enter}\n    >\n      {children}\n    </motion.p>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/email-capture.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/faq.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { Accordion, AccordionItem } from \"../../accordion/accordion\";\nimport type { HeadingLevel } from \"./heading\";\n\n/**\n * Questions and answers on the registry's Accordion: each question a button in a heading, its\n * answer springing open under it. Tab moves from question to question; Enter or Space opens\n * one. The section around it (its heading, its column) is the template's.\n */\n\nexport type FaqItem = { question: string; answer: ReactNode };\n\nexport type FaqProps = {\n  items: readonly FaqItem[];\n  /** The questions' heading level, one under the section's heading. Default 3. */\n  headingLevel?: HeadingLevel;\n  /** Let more than one answer stay open. Default false: opening one closes the last. */\n  multiple?: boolean;\n  /** On the list. */\n  className?: string;\n  /** On each question and answer: the template's type (\"[&_button]:text-ui-md\"). */\n  itemClassName?: string;\n};\n\nexport function Faq({ items, headingLevel = 3, multiple = false, className = \"\", itemClassName = \"\" }: FaqProps) {\n  return (\n    <Accordion multiple={multiple} className={className}>\n      {items.map((item, i) => (\n        <AccordionItem key={item.question} value={`faq-${i}`} title={item.question} headingLevel={headingLevel} className={itemClassName}>\n          {item.answer}\n        </AccordionItem>\n      ))}\n    </Accordion>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/faq.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/pricing.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useId, useRef, useState, type CSSProperties } from \"react\";\nimport { Button } from \"../../button/button\";\nimport { NumberRoll } from \"../../number-roll/number-roll\";\nimport { Segmented } from \"../../segmented/segmented\";\nimport { BaseLink } from \"./base\";\nimport type { HeadingLevel } from \"./heading\";\n\n/**\n * Plans from typed content, with an optional monthly/annual switch that rolls every price to\n * its new value (rule 96), one featured plan whose action is the one primary button, and an\n * optional comparison table. Layout only: by default the plans sit side by side and share rows\n * through subgrid, so names, prices, features and actions line up across cards whatever their\n * length; `plansClassName` and `planClassName` can lay them out any other way. Surfaces, borders\n * and type come from the className slots, and the featured plan carries `data-featured` for\n * them (`data-featured:bg-surface-raised`).\n */\n\nexport type Billing = \"monthly\" | \"annual\";\n\nexport type PricingPlan = {\n  id: string;\n  name: string;\n  description?: string;\n  /** A number for every period, one number per period, or words (\"Custom\", \"Talk to us\"). */\n  price: number | string | Record<Billing, number>;\n  /** After the price: \"per seat a month\", or one per period (\"a month\", \"a month, billed yearly\"). */\n  unit?: string | Record<Billing, string>;\n  features: readonly string[];\n  action: { label: string; href: string };\n  /** The recommended plan: its action is the primary button, and it carries `data-featured`. */\n  featured?: boolean;\n  /** A word beside the plan's name: \"Most popular\". */\n  badge?: string;\n};\n\nexport type PricingComparison = {\n  /** The table's caption, its accessible name too: \"Compare plans\". */\n  caption: string;\n  /** One row per feature; `values` by plan id: true, false, or words (\"5 seats\", \"30 days\"). */\n  rows: readonly { label: string; values: Readonly<Record<string, boolean | string>> }[];\n  /** What a screen reader hears for a tick and for a dash: \"Included\", \"Not included\". */\n  included: string;\n  excluded: string;\n};\n\n/** Every word and number of a pricing table, for a template's content file. */\nexport type PricingContent = {\n  plans: readonly PricingPlan[];\n  /** The switch: its accessible name, its two labels, a note beside it (\"Two months free\"), and where it starts (default \"monthly\"). */\n  billing?: { label: string; monthly: string; annual: string; note?: string; initial?: Billing };\n  comparison?: PricingComparison;\n};\n\nexport type PricingTableProps = PricingContent & {\n  /** Locale for the prices. Default \"en-US\". */\n  locale?: string;\n  /** `Intl.NumberFormat` options for the prices. Default whole US dollars. */\n  format?: Intl.NumberFormatOptions;\n  /** The plans' heading level. Default 3. */\n  headingLevel?: HeadingLevel;\n  /** On the root, a column: its gaps. */\n  className?: string;\n  /** On the plans' list, a grid: one column, two from md, one per plan from lg. Set your own columns here. */\n  plansClassName?: string;\n  /** On every plan, a subgrid four rows tall (three when no plan lists features): its surface, border, radius, padding; or `grid-rows-none row-span-1` and columns, for a row. */\n  planClassName?: string;\n  /** On the badge: \"rounded-pill bg-brand-subtle px-2 text-ui-xs text-brand-text\". */\n  badgeClassName?: string;\n  /** On the price: the template's face and size. Default: display 5xl, semibold. */\n  priceClassName?: string;\n  /** On the comparison's scroll box. Set `[--comparison-bg:…]` to the surface under it, for the sticky first column. */\n  comparisonClassName?: string;\n};\n\nconst USD: Intl.NumberFormatOptions = { style: \"currency\", currency: \"USD\", maximumFractionDigits: 0 };\n\nexport function PricingTable({\n  plans,\n  billing,\n  comparison,\n  locale = \"en-US\",\n  format = USD,\n  headingLevel = 3,\n  className = \"\",\n  plansClassName = \"\",\n  planClassName = \"\",\n  badgeClassName = \"\",\n  priceClassName = \"\",\n  comparisonClassName = \"\",\n}: PricingTableProps) {\n  const [period, setPeriod] = useState<Billing>(billing?.initial ?? \"monthly\");\n  const id = useId();\n  const listed = plans.some((p) => p.features.length > 0);\n  return (\n    <div className={`flex min-w-0 flex-col [:where(&)]:gap-group ${className}`}>\n      {billing && (\n        <div className=\"flex flex-wrap items-center gap-x-pad-sm gap-y-in\">\n          <Segmented<Billing>\n            aria-label={billing.label}\n            options={[\n              { value: \"monthly\", label: billing.monthly },\n              { value: \"annual\", label: billing.annual },\n            ]}\n            value={period}\n            onValueChange={setPeriod}\n          />\n          {billing.note && <p className=\"text-ui-sm text-text-muted\">{billing.note}</p>}\n        </div>\n      )}\n      <ul\n        // A plan is four rows (head, price, features, action), three when no plan lists features.\n        style={{ \"--plans\": plans.length, \"--plan-rows\": listed ? 4 : 3 } as CSSProperties}\n        className={`grid [:where(&)]:gap-tiles md:[:where(&)]:grid-cols-2 lg:[:where(&)]:grid-cols-[repeat(var(--plans),minmax(0,1fr))] ${plansClassName}`}\n      >\n        {plans.map((plan) => (\n          <Plan\n            key={plan.id}\n            plan={plan}\n            period={period}\n            titleId={`${id}-${plan.id}`}\n            heading={headingLevel}\n            price={{ locale, format, className: priceClassName }}\n            className={planClassName}\n            badgeClassName={badgeClassName}\n            listed={listed}\n          />\n        ))}\n      </ul>\n      {comparison && <Comparison comparison={comparison} plans={plans} className={comparisonClassName} />}\n    </div>\n  );\n}\n\ntype PlanProps = {\n  plan: PricingPlan;\n  period: Billing;\n  titleId: string;\n  heading: HeadingLevel;\n  price: { locale: string; format: Intl.NumberFormatOptions; className: string };\n  className: string;\n  badgeClassName: string;\n  /** Whether any plan lists features, so every plan keeps a features row. */\n  listed: boolean;\n};\n\n/** One plan: by default four rows of the list's grid (subgrid), three without features, so every card's rows line up with its neighbours'. */\nfunction Plan({ plan, period, titleId, heading, price, className, badgeClassName, listed }: PlanProps) {\n  const H = `h${heading}` as const;\n  const amount = typeof plan.price === \"object\" ? plan.price[period] : plan.price;\n  const unit = typeof plan.unit === \"object\" ? plan.unit[period] : plan.unit;\n  return (\n    <li\n      data-featured={plan.featured || undefined}\n      className={`grid min-w-0 [:where(&)]:row-span-(--plan-rows) [:where(&)]:grid-rows-subgrid [:where(&)]:gap-pad-md ${className}`}\n    >\n      <div className=\"flex flex-col gap-1.5\">\n        <div className=\"flex min-h-6 flex-wrap items-center gap-x-2 gap-y-1\">\n          <H id={titleId} className=\"text-ui-md font-medium text-text\">\n            {plan.name}\n          </H>\n          {plan.badge && <span className={badgeClassName}>{plan.badge}</span>}\n        </div>\n        {plan.description && <p className=\"text-ui text-pretty text-text-secondary\">{plan.description}</p>}\n      </div>\n      <p className=\"flex flex-wrap items-baseline gap-x-2\">\n        <span\n          className={`text-text tabular-nums [:where(&)]:font-display [:where(&)]:text-display-5xl [:where(&)]:font-semibold [:where(&)]:tracking-display ${price.className}`}\n        >\n          {typeof amount === \"number\" ? <NumberRoll value={amount} locale={price.locale} format={price.format} /> : amount}\n        </span>\n        {unit && <span className=\"text-ui text-text-muted\">{unit}</span>}\n      </p>\n      {/* Kept, empty, while another plan lists features, so the actions stay on one row. */}\n      {listed && (\n        <ul className=\"flex flex-col gap-2.5\">\n          {plan.features.map((feature) => (\n            <li key={feature} className=\"flex items-start gap-2 text-ui text-text-secondary\">\n              <Tick className=\"mt-0.5 text-text\" />\n              {feature}\n            </li>\n          ))}\n        </ul>\n      )}\n      <Button\n        variant={plan.featured ? \"primary\" : \"secondary\"}\n        size=\"lg\"\n        nativeButton={false}\n        render={<BaseLink href={plan.action.href} />}\n        aria-describedby={titleId}\n        className=\"w-full self-end\"\n      >\n        {plan.action.label}\n      </Button>\n    </li>\n  );\n}\n\nfunction Tick({ className = \"\" }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" className={`size-4 shrink-0 ${className}`} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <path d=\"M3.5 8.5l3 3 6-7\" />\n    </svg>\n  );\n}\n\n/** Whether the box scrolls sideways, and whether more is hidden past its right edge. */\nfunction useOverflow() {\n  const ref = useRef<HTMLDivElement>(null);\n  const [state, setState] = useState({ scrolls: false, more: false });\n  useEffect(() => {\n    const el = ref.current;\n    if (!el) return;\n    const measure = () => {\n      const scrolls = el.scrollWidth > el.clientWidth + 1;\n      const more = scrolls && el.scrollLeft + el.clientWidth < el.scrollWidth - 1;\n      setState((s) => (s.scrolls === scrolls && s.more === more ? s : { scrolls, more }));\n    };\n    const observer = new ResizeObserver(measure);\n    observer.observe(el);\n    el.addEventListener(\"scroll\", measure, { passive: true });\n    return () => {\n      observer.disconnect();\n      el.removeEventListener(\"scroll\", measure);\n    };\n  }, []);\n  return { ref, ...state };\n}\n\n/** The first column stays put while the plans scroll under it, on the surface the table sits on. */\nconst STICKY = \"sticky left-0 z-1 bg-(--comparison-bg)\";\n\n/**\n * The comparison: a real table, plans across and features down, each feature a row header.\n * Narrower than its content it scrolls sideways under a sticky first column, fades at the right\n * edge while more is hidden there, and only then is it a tab stop, so a keyboard can scroll it.\n */\nfunction Comparison({ comparison, plans, className }: { comparison: PricingComparison; plans: readonly PricingPlan[]; className: string }) {\n  const { ref, scrolls, more } = useOverflow();\n  const caption = useId();\n  return (\n    <div\n      ref={ref}\n      role=\"region\"\n      aria-labelledby={caption}\n      tabIndex={scrolls ? 0 : undefined}\n      // `relative` keeps the cells' sr-only text (position: absolute) inside the scroll box, or it widens the page.\n      className={`relative min-w-0 overflow-x-auto focus-ring [:where(&)]:[--comparison-bg:var(--eased-bg)] ${\n        more ? \"[mask-image:linear-gradient(to_right,#000_calc(100%-3rem),transparent)]\" : \"\"\n      } ${className}`}\n    >\n      <table className=\"w-full min-w-[36rem] border-collapse text-ui\">\n        <caption id={caption} className=\"pb-pad-sm text-start text-ui-md font-medium text-text\">\n          {comparison.caption}\n        </caption>\n        <thead>\n          <tr className=\"border-b border-line\">\n            <td className={STICKY} />\n            {plans.map((plan) => (\n              <th key={plan.id} scope=\"col\" className=\"py-in ps-pad-sm text-start font-medium text-text\">\n                {plan.name}\n              </th>\n            ))}\n          </tr>\n        </thead>\n        <tbody>\n          {comparison.rows.map((row) => (\n            <tr key={row.label} className=\"border-b border-line-subtle\">\n              <th scope=\"row\" className={`${STICKY} py-in pe-pad-sm text-start font-normal text-text-secondary`}>\n                {row.label}\n              </th>\n              {plans.map((plan) => (\n                <td key={plan.id} className=\"py-in ps-pad-sm text-text tabular-nums\">\n                  <Cell value={row.values[plan.id]} comparison={comparison} />\n                </td>\n              ))}\n            </tr>\n          ))}\n        </tbody>\n      </table>\n    </div>\n  );\n}\n\nfunction Cell({ value, comparison }: { value: boolean | string | undefined; comparison: PricingComparison }) {\n  if (typeof value === \"string\") return value;\n  return (\n    <>\n      {value ? <Tick className=\"text-text\" /> : <span aria-hidden className=\"block h-px w-3 bg-line-strong\" />}\n      <span className=\"sr-only\">{value ? comparison.included : comparison.excluded}</span>\n    </>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/pricing.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/footer.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { BaseLink } from \"./base\";\nimport type { HeadingLevel } from \"./heading\";\n\n/**\n * A site footer from typed content: the template's brand lockup and newsletter field on one\n * side, the link columns on the other, then a ruled line with the legal line, the legal links\n * and the social links. Page links go through `BaseLink`, so they follow the mount.\n */\n\nexport type FooterLink = { label: string; href: string };\n\n/** A social profile. With an `icon`, the label is read out but not shown. */\nexport type SocialLink = FooterLink & { icon?: ReactNode };\n\n/** Every word and link of a footer, for a template's content file. */\nexport type FooterContent = {\n  /** Each column is a `<nav>` named by its title. */\n  columns: readonly { title: string; links: readonly FooterLink[] }[];\n  /** The bottom line (\"© 2026 Larch, Inc.\"), and the legal pages beside it in a nav named by `label` (\"Legal\"). */\n  legal: { line: ReactNode; label: string; links?: readonly FooterLink[] };\n  /** The profiles, in a nav named by `label` (\"Elsewhere\"). */\n  social?: { label: string; links: readonly SocialLink[] };\n};\n\nexport type FooterProps = FooterContent & {\n  /** The template's wordmark or lockup, top of the leading side. */\n  brand?: ReactNode;\n  /** The template's newsletter field (`EmailCapture`, with its own line above it), under the brand. */\n  newsletter?: ReactNode;\n  /** The column titles' level. Default 2. */\n  headingLevel?: HeadingLevel;\n  /** On the `<footer>`: its column, padding and gaps. */\n  className?: string;\n  /** On the columns' grid: two columns, then as many as fit 9rem from sm. Yours win: \"sm:grid-cols-3\". */\n  columnsClassName?: string;\n  /** On every link: the template's type and hover. */\n  linkClassName?: string;\n};\n\nconst LINK = \"focus-ring rounded-control-xs transition-colors duration-(--eased-duration-fast) ease-standard hover-fine:text-text\";\n\n/** Links are keyed by label and href together: two columns may share an href, never both. */\nconst key = (l: FooterLink) => `${l.label} ${l.href}`;\n\nexport function Footer({ columns, legal, social, brand, newsletter, headingLevel = 2, className = \"\", columnsClassName = \"\", linkClassName = \"\" }: FooterProps) {\n  const link = `${LINK} ${linkClassName}`;\n  const lead = brand || newsletter;\n  const H = `h${headingLevel}` as const;\n  return (\n    <footer className={`flex flex-col [:where(&)]:gap-group ${className}`}>\n      <div className={`grid gap-group ${lead ? \"lg:grid-cols-[minmax(0,5fr)_minmax(0,7fr)] lg:gap-group-lg\" : \"\"}`}>\n        {lead && (\n          <div className=\"flex min-w-0 flex-col items-start gap-pad-lg\">\n            {brand}\n            {newsletter}\n          </div>\n        )}\n        <div\n          className={`grid [:where(&)]:grid-cols-2 [:where(&)]:gap-pad-lg sm:[:where(&)]:grid-cols-[repeat(auto-fit,minmax(9rem,1fr))] ${columnsClassName}`}\n        >\n          {columns.map((column) => (\n            <nav key={column.title} aria-label={column.title} className=\"flex min-w-0 flex-col gap-in\">\n              <H className=\"text-ui-sm font-medium text-text-muted\">{column.title}</H>\n              <ul className=\"flex flex-col gap-2 text-ui text-text-secondary\">\n                {column.links.map((l) => (\n                  <li key={key(l)}>\n                    <BaseLink href={l.href} className={link}>\n                      {l.label}\n                    </BaseLink>\n                  </li>\n                ))}\n              </ul>\n            </nav>\n          ))}\n        </div>\n      </div>\n      <div className=\"flex flex-wrap items-center justify-between gap-x-pad-md gap-y-in border-t border-line-subtle pt-pad-md text-ui-sm text-text-muted\">\n        <p className=\"tabular-nums\">{legal.line}</p>\n        <div className=\"flex flex-wrap items-center gap-x-pad-md gap-y-in\">\n          {legal.links && legal.links.length > 0 && (\n            <nav aria-label={legal.label}>\n              <ul className=\"flex flex-wrap gap-x-pad-md gap-y-in\">\n                {legal.links.map((l) => (\n                  <li key={key(l)}>\n                    <BaseLink href={l.href} className={link}>\n                      {l.label}\n                    </BaseLink>\n                  </li>\n                ))}\n              </ul>\n            </nav>\n          )}\n          {social && <Social {...social} className={link} />}\n        </div>\n      </div>\n    </footer>\n  );\n}\n\nfunction Social({ label, links, className }: NonNullable<FooterContent[\"social\"]> & { className: string }) {\n  return (\n    <nav aria-label={label}>\n      <ul className=\"flex flex-wrap items-center gap-x-pad-sm gap-y-in\">\n        {links.map((l) => (\n          <li key={key(l)} className=\"flex\">\n            <BaseLink href={l.href} className={`${className} ${l.icon ? \"inline-flex size-6 items-center justify-center [&_svg]:size-4 [&_svg]:shrink-0\" : \"\"}`}>\n              {l.icon ? (\n                <>\n                  <span aria-hidden className=\"contents\">\n                    {l.icon}\n                  </span>\n                  <span className=\"sr-only\">{l.label}</span>\n                </>\n              ) : (\n                l.label\n              )}\n            </BaseLink>\n          </li>\n        ))}\n      </ul>\n    </nav>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/footer.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/proof-strip.tsx",
      "content": "import type { CSSProperties, ReactNode } from \"react\";\nimport { ProofNumbers, type ProofNumber } from \"./proof-numbers\";\n\nexport type { ProofNumber };\n\n/**\n * Who already trusts the business: client or partner wordmarks in a ruled grid, each cell\n * drawing its right and bottom rule against the list's top and left, so the rules meet at\n * every count. An optional row of numbers under it rolls up once, the first time it is seen.\n * The words around it, and how each mark is set, are the template's.\n */\n\n/** A client or partner. With a `mark` (its logo, or its name set in the template's type), the name is read out but not shown. */\nexport type ProofMark = { name: string; mark?: ReactNode };\n\nexport type ProofStripProps = {\n  /** The marks' accessible name: \"Clients\", \"Backed by\". */\n  label: string;\n  marks: readonly ProofMark[];\n  numbers?: readonly ProofNumber[];\n  /** Columns of marks from md up; two below. Default 4. */\n  columns?: number;\n  /** Locale for the numbers. Default \"en-US\". */\n  locale?: string;\n  /** On the root, a column with the marks first: its gaps, or `[&>dl]:-order-1` to lead with the numbers. */\n  className?: string;\n  /** On the marks' list, the ruled grid: `border-0` drops the rules, `flex flex-wrap` makes a row. */\n  marksClassName?: string;\n  /** On every cell: its height, padding and type (\"h-32 text-display-xl\"). */\n  cellClassName?: string;\n  /** On each number: the template's face and size. Default: display 5xl, medium. */\n  numberClassName?: string;\n};\n\nexport function ProofStrip({\n  label,\n  marks,\n  numbers,\n  columns = 4,\n  locale = \"en-US\",\n  className = \"\",\n  marksClassName = \"\",\n  cellClassName = \"\",\n  numberClassName = \"\",\n}: ProofStripProps) {\n  return (\n    <div className={`flex min-w-0 flex-col [:where(&)]:gap-group ${className}`}>\n      <ul\n        aria-label={label}\n        style={{ \"--proof-columns\": columns } as CSSProperties}\n        className={`[:where(&)]:grid [:where(&)]:border-line-subtle [:where(&)]:grid-cols-2 [:where(&)]:border-t [:where(&)]:border-l md:[:where(&)]:grid-cols-[repeat(var(--proof-columns),minmax(0,1fr))] ${marksClassName}`}\n      >\n        {marks.map((m) => (\n          <li\n            key={m.name}\n            className={`flex min-w-0 items-center justify-center text-center [:where(&)]:border-line-subtle [:where(&)]:min-h-24 [:where(&)]:border-r [:where(&)]:border-b [:where(&)]:p-pad-base [:where(&)]:text-text-secondary ${cellClassName}`}\n          >\n            {m.mark ? (\n              <>\n                <span aria-hidden className=\"contents\">\n                  {m.mark}\n                </span>\n                <span className=\"sr-only\">{m.name}</span>\n              </>\n            ) : (\n              m.name\n            )}\n          </li>\n        ))}\n      </ul>\n      {numbers && numbers.length > 0 && <ProofNumbers numbers={numbers} locale={locale} valueClassName={numberClassName} />}\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/proof-strip.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/proof-numbers.tsx",
      "content": "\"use client\";\n\nimport { useInView } from \"motion/react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { NumberRoll } from \"../../number-roll/number-roll\";\n\nexport type ProofNumber = {\n  value: number;\n  /** What it counts: \"Teams on Larch\", \"Paid out last year\". */\n  label: string;\n  /** `Intl.NumberFormat` options: `{ notation: \"compact\" }` for \"4.2B\", `{ style: \"percent\" }` for 0.99. */\n  format?: Intl.NumberFormatOptions;\n  /** After the number, not rolled: \"+\". */\n  suffix?: string;\n};\n\nconst below = (el: Element) => el.getBoundingClientRect().top >= window.innerHeight;\n\n/**\n * The numbers under a proof strip. The server renders them in full, so they read right without\n * script and to crawlers. Hydrated below the fold, they drop to 0 out of sight and roll up the\n * first time half of them is in view (rule 115); already in view, or under reduced motion, they\n * stay as they are.\n */\nexport function ProofNumbers({ numbers, locale, valueClassName }: { numbers: readonly ProofNumber[]; locale: string; valueClassName: string }) {\n  const ref = useRef<HTMLDListElement>(null);\n  const seen = useInView(ref, { once: true, amount: 0.5 });\n  const [armed, setArmed] = useState(false);\n  useEffect(() => {\n    if (ref.current && below(ref.current) && !window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) setArmed(true);\n  }, []);\n  return (\n    <dl ref={ref} className=\"grid gap-pad-lg sm:grid-cols-[repeat(auto-fit,minmax(12rem,1fr))]\">\n      {numbers.map((n) => (\n        <div key={n.label} className=\"flex min-w-0 flex-col gap-1\">\n          <dt className=\"text-ui text-pretty text-text-secondary\">{n.label}</dt>\n          {/* The number reads first; the term stays first in the markup, as a dl needs. */}\n          <dd\n            className={`order-first text-text tabular-nums [:where(&)]:font-display [:where(&)]:text-display-5xl [:where(&)]:font-medium [:where(&)]:tracking-display ${valueClassName}`}\n          >\n            <NumberRoll value={armed && !seen ? 0 : n.value} animated={seen} locale={locale} format={n.format} />\n            {n.suffix}\n          </dd>\n        </div>\n      ))}\n    </dl>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/proof-numbers.tsx"
    },
    {
      "path": "src/registry/eased/templates/_shared/closing-band.tsx",
      "content": "import { useId, type ReactNode } from \"react\";\nimport { Button } from \"../../button/button\";\nimport { BaseLink } from \"./base\";\nimport { EmailCapture, type EmailCaptureProps } from \"./email-capture\";\nimport type { HeadingLevel } from \"./heading\";\n\n/**\n * The last ask before the footer: the template's own artwork full-bleed behind a display-size\n * line and exactly one primary action, either a link or an email field whose button is the\n * action (the type allows one or the other, never both). The artwork is decoration: it is\n * hidden from screen readers and takes no clicks.\n */\n\ntype Ask =\n  /** A link: \"Open an account\" → \"/signup\". */\n  | { action: { label: string; href: string }; email?: never }\n  /** An email field and its button, for a waitlist or a newsletter. */\n  | { email: EmailCaptureProps; action?: never };\n\nexport type ClosingBandProps = Ask & {\n  /** The template's artwork, stretched to the band. Keep the text on it at 4.5:1 or better. */\n  art?: ReactNode;\n  /** The ask: \"Close the month in a day.\" */\n  title: ReactNode;\n  body?: ReactNode;\n  /** The ask's heading level. Default 2. */\n  headingLevel?: HeadingLevel;\n  /** On the band: its height, surface and the padding around the content. */\n  className?: string;\n  /** On the content over the art, a left-aligned column: its width and inset, or `items-center text-center`. */\n  contentClassName?: string;\n  /** On the heading: the template's face and size. Default: display 5xl, 6xl from sm. */\n  titleClassName?: string;\n};\n\nexport function ClosingBand({ art, title, body, action, email, headingLevel = 2, className = \"\", contentClassName = \"\", titleClassName = \"\" }: ClosingBandProps) {\n  const id = useId();\n  const H = `h${headingLevel}` as const;\n  return (\n    <section aria-labelledby={id} className={`relative isolate overflow-hidden ${className}`}>\n      {art && (\n        <div aria-hidden className=\"pointer-events-none absolute inset-0 -z-10 select-none\">\n          {art}\n        </div>\n      )}\n      <div className={`flex flex-col [:where(&)]:items-start [:where(&)]:gap-pad-lg ${contentClassName}`}>\n        <div className=\"flex flex-col gap-pad-base\">\n          <H\n            id={id}\n            className={`text-balance text-text [:where(&)]:max-w-3xl [:where(&)]:font-display [:where(&)]:text-display-5xl [:where(&)]:font-medium [:where(&)]:tracking-display sm:[:where(&)]:text-display-6xl ${titleClassName}`}\n          >\n            {title}\n          </H>\n          {body && <p className=\"max-w-xl text-ui-md text-pretty text-text-secondary sm:text-ui-lg\">{body}</p>}\n        </div>\n        {action && (\n          <Button variant=\"primary\" size=\"lg\" nativeButton={false} render={<BaseLink href={action.href} />}>\n            {action.label}\n          </Button>\n        )}\n        {email && <EmailCapture size=\"lg\" className=\"w-full max-w-md\" {...email} />}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/_shared/closing-band.tsx"
    }
  ],
  "meta": {
    "kind": "template-lib",
    "releaseAt": "2026-11-26"
  },
  "type": "registry:lib"
}