{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"cta-section","type":"registry:block","title":"CTA section","description":"A call to action as a centered closing section, a split beside a setup card that completes itself, or a dismissible banner.","categories":["blocks"],"dependencies":["lucide-react","motion"],"registryDependencies":["https://uiarc.dev/r/arc-motion-tokens.json","https://uiarc.dev/r/button.json","https://uiarc.dev/r/segmented-control.json"],"files":[{"path":"registry/blocks/cta-section/cta-section.tsx","type":"registry:component","target":"@components/arc/blocks/cta-section/cta-section.tsx","content":"\"use client\";\n\nimport { forwardRef, useEffect, useId, useLayoutEffect, useRef, useState } from \"react\";\nimport type { ReactNode } from \"react\";\nimport { AnimatePresence, animate, motion, useInView, useMotionValue, useReducedMotion } from \"motion/react\";\nimport { ArrowRight, Check, X } from \"lucide-react\";\nimport { Button } from \"../../button/button\";\nimport SegmentedControl from \"../../segmented-control/segmented-control\";\nimport { motionTokens } from \"../../lib/motion-tokens\";\nimport { ctaCopy, ctaFaces, ctaSetup, type CtaAction } from \"./cta-section-data\";\nimport styles from \"./cta-section.module.css\";\n\nexport type { CtaAction } from \"./cta-section-data\";\nexport type CtaVariant = \"centered\" | \"split\" | \"banner\";\n\nexport interface CtaSectionProps {\n  /** `centered` is a closing section, `split` sits beside a product visual, `banner` is one dismissible line. */\n  variant?: CtaVariant;\n  title?: string;\n  description?: string;\n  primaryAction?: CtaAction;\n  /** Not shown in the banner variant. Pass null to hide it. */\n  secondaryAction?: CtaAction | null;\n  /** Small print under the actions in the centered variant, such as \"No credit card required\". */\n  note?: string;\n  /** Faces beside the note in the centered variant. Pass an empty array to hide them. */\n  faces?: string[];\n  /** Short benefit lines in the split variant. */\n  points?: string[];\n  /** Replaces the split variant's setup card. */\n  visual?: ReactNode;\n  /** Banner only: shows a dismiss button and calls this after it closes. */\n  onDismiss?: () => void;\n  className?: string;\n}\n\ntype Bezier = [number, number, number, number];\nconst enter = [...motionTokens.ease.enter] as Bezier;\nconst standard = [...motionTokens.ease.standard] as Bezier;\n\n/** A link, a callback, or (with neither) a button that confirms in place, so previews always answer a click. */\nfunction Action({ action, variant, size = \"lg\", arrow }: { action: CtaAction; variant: \"primary\" | \"secondary\"; size?: \"sm\" | \"md\" | \"lg\"; arrow?: boolean }) {\n  const [confirmed, setConfirmed] = useState(false);\n  if (action.href) {\n    return <a className={styles.linkAction} data-variant={variant} data-size={size} href={action.href}>\n      {action.label}{arrow && <ArrowRight className={styles.arrow} size={16} strokeWidth={2} aria-hidden=\"true\" />}\n    </a>;\n  }\n  const simulated = !action.onClick;\n  return <Button\n    className={styles.action}\n    variant={variant}\n    size={size}\n    aria-live={simulated ? \"polite\" : undefined}\n    onClick={() => { if (action.onClick) action.onClick(); else setConfirmed(value => !value); }}\n  >\n    {confirmed\n      ? <><Check size={16} strokeWidth={2.25} aria-hidden=\"true\" />{action.confirmedLabel ?? action.label}</>\n      : <>{action.label}{arrow && <ArrowRight className={styles.arrow} size={16} strokeWidth={2} aria-hidden=\"true\" />}</>}\n  </Button>;\n}\n\n/** A setup card that ticks through its steps once it scrolls into view. */\nfunction SetupVisual({ reduced }: { reduced: boolean }) {\n  const ref = useRef<HTMLDivElement>(null);\n  const inView = useInView(ref, { once: true, amount: .5 });\n  const total = ctaSetup.steps.length;\n  const [step, setStep] = useState(0);\n  const shown = reduced ? total : step;\n\n  useEffect(() => {\n    if (!inView || reduced) return;\n    const timers = ctaSetup.steps.map((_, index) => window.setTimeout(() => setStep(index + 1), 520 + index * 620));\n    return () => timers.forEach(window.clearTimeout);\n  }, [inView, reduced]);\n\n  return <div ref={ref} className={styles.setup} aria-hidden=\"true\" data-done={shown === total ? \"\" : undefined}>\n    <div className={styles.setupHead}>\n      <span className={styles.workspaceMark}>{ctaSetup.workspace.charAt(0)}</span>\n      <span className={styles.setupTitle}>{ctaSetup.workspace}</span>\n      <span className={styles.setupStatus}>\n        <span data-shown={shown < total ? \"\" : undefined}>Setting up</span>\n        <span data-shown={shown === total ? \"\" : undefined}>Ready</span>\n      </span>\n    </div>\n    <div className={styles.progress}><span style={{ transform: `scaleX(${shown / total})` }} /></div>\n    <ol className={styles.steps}>\n      {ctaSetup.steps.map((label, index) => {\n        const done = index < shown;\n        return <li key={label} className={styles.step} data-done={done ? \"\" : undefined} data-active={index === shown ? \"\" : undefined}>\n          <span className={styles.stepMark}><Check size={12} strokeWidth={2.75} /></span>\n          <span className={styles.stepLabel}>{label}</span>\n          {index === total - 1 && <span className={styles.stepFaces}>\n            {/* eslint-disable-next-line @next/next/no-img-element */}\n            {ctaSetup.faces.map((src, face) => <img key={src} src={src} alt=\"\" width={22} height={22} style={{ transitionDelay: `${face * 60}ms` }} />)}\n          </span>}\n        </li>;\n      })}\n    </ol>\n  </div>;\n}\n\nfunction Faces({ faces }: { faces: string[] }) {\n  if (!faces.length) return null;\n  return <span className={styles.faces} aria-hidden=\"true\">\n    {/* eslint-disable-next-line @next/next/no-img-element */}\n    {faces.slice(0, 4).map(src => <img key={src} src={src} alt=\"\" width={26} height={26} />)}\n  </span>;\n}\n\n/**\n * A call to action in three shapes: a centered closing section, a split layout beside a setup card that completes\n * itself in view, and a compact banner that closes its gap when dismissed.\n */\nexport const CtaSection = forwardRef<HTMLElement, CtaSectionProps>(function CtaSection({\n  variant = \"centered\",\n  title,\n  description,\n  primaryAction,\n  secondaryAction,\n  note,\n  faces = ctaFaces,\n  points,\n  visual,\n  onDismiss,\n  className,\n}, ref) {\n  const id = useId();\n  const reduced = !!useReducedMotion();\n  const [open, setOpen] = useState(true);\n  const copy = ctaCopy[variant];\n  const heading = title ?? copy.title;\n  const text = description ?? copy.description;\n  const primary = primaryAction ?? copy.primary;\n  const secondary = secondaryAction === null ? null : secondaryAction ?? (\"secondary\" in copy ? copy.secondary : undefined);\n  const classes = [styles.cta, className].filter(Boolean).join(\" \");\n\n  if (variant === \"banner\") {\n    return <section ref={ref} className={classes} data-variant=\"banner\" aria-labelledby={`${id}-title`}>\n      <AnimatePresence initial={false} onExitComplete={onDismiss}>\n        {open && <motion.div\n          key=\"banner\"\n          className={styles.bannerWrap}\n          exit={reduced ? { opacity: 0, transition: { duration: motionTokens.duration.instant } } : { opacity: 0, height: 0, transition: { height: motionTokens.spring.smooth, opacity: { duration: motionTokens.duration.fast, ease: standard } } }}\n        >\n          <div className={styles.bannerPad}><div className={styles.banner}>\n            <p className={styles.bannerText}>\n              <strong id={`${id}-title`}>{heading}</strong>\n              <span>{text}</span>\n            </p>\n            <div className={styles.bannerActions}>\n              <Action action={primary} variant=\"primary\" size=\"sm\" arrow />\n              {onDismiss !== undefined && <button type=\"button\" className={styles.dismiss} aria-label=\"Dismiss\" onClick={() => setOpen(false)}>\n                <X size={16} strokeWidth={1.75} aria-hidden=\"true\" />\n              </button>}\n            </div>\n          </div></div>\n        </motion.div>}\n      </AnimatePresence>\n    </section>;\n  }\n\n  if (variant === \"split\") {\n    const list = points ?? ctaCopy.split.points;\n    return <section ref={ref} className={classes} data-variant=\"split\" aria-labelledby={`${id}-title`}>\n      <div className={styles.split}>\n        <div className={styles.splitCopy}>\n          <h2 id={`${id}-title`} className={styles.title}>{heading}</h2>\n          <p className={styles.description}>{text}</p>\n          {list.length > 0 && <ul className={styles.points}>\n            {list.map(point => <li key={point}><Check size={16} strokeWidth={2} aria-hidden=\"true\" />{point}</li>)}\n          </ul>}\n          <div className={styles.actions}>\n            <Action action={primary} variant=\"primary\" arrow />\n            {secondary && <Action action={secondary} variant=\"secondary\" />}\n          </div>\n        </div>\n        <motion.div\n          className={styles.stage}\n          initial={reduced ? false : { opacity: 0, y: 24 }}\n          whileInView={{ opacity: 1, y: 0 }}\n          viewport={{ once: true, amount: .35 }}\n          transition={{ duration: motionTokens.duration.considered, ease: enter }}\n        >\n          {visual ?? <SetupVisual reduced={reduced} />}\n        </motion.div>\n      </div>\n    </section>;\n  }\n\n  const small = note ?? ctaCopy.centered.note;\n  return <section ref={ref} className={classes} data-variant=\"centered\" aria-labelledby={`${id}-title`}>\n    <div className={styles.centeredWrap}>\n      <div className={styles.centered}>\n        <h2 id={`${id}-title`} className={styles.title}>{heading}</h2>\n        <p className={styles.description}>{text}</p>\n        <div className={styles.actions}>\n          <Action action={primary} variant=\"primary\" arrow />\n          {secondary && <Action action={secondary} variant=\"secondary\" />}\n        </div>\n        {(small || faces.length > 0) && <p className={styles.note}><Faces faces={faces} />{small}</p>}\n      </div>\n    </div>\n  </section>;\n});\n\nCtaSection.displayName = \"CtaSection\";\n\nconst variantOptions = [{ value: \"centered\", label: \"Centered\" }, { value: \"split\", label: \"Split\" }, { value: \"banner\", label: \"Banner\" }];\n\n/** Springs the frame to its content's height after a discrete change (a new layout, a dismissed banner), so the preview never snaps.\n *  Other resizes, such as the banner's own collapse or a parent reflow, follow at once so nothing lags. */\nfunction useFrameHeight(key: string, reduced: boolean) {\n  const content = useRef<HTMLDivElement>(null);\n  const height = useMotionValue<number | \"auto\">(\"auto\");\n  const lastKey = useRef(key), armedUntil = useRef(0);\n  useLayoutEffect(() => {\n    if (lastKey.current === key) return;\n    lastKey.current = key;\n    armedUntil.current = performance.now() + 700;\n  }, [key]);\n  useEffect(() => {\n    const node = content.current;\n    if (!node || typeof ResizeObserver === \"undefined\") return;\n    let measured = false;\n    const observer = new ResizeObserver(() => {\n      const next = node.offsetHeight;\n      if (!measured || reduced || performance.now() > armedUntil.current) { measured = next > 0; height.jump(next || \"auto\"); return; }\n      animate(height, next, motionTokens.spring.smooth);\n    });\n    observer.observe(node);\n    return () => observer.disconnect();\n  }, [height, reduced]);\n  return { content, height };\n}\n\n/** Preview: all three shapes. Buttons confirm in place; nothing is sent. */\nexport function CtaSectionBlock() {\n  const reduced = !!useReducedMotion();\n  const [variant, setVariant] = useState<CtaVariant>(\"centered\");\n  const [dismissed, setDismissed] = useState(false);\n  const showRestore = variant === \"banner\" && dismissed;\n  const view = showRestore ? \"restore\" : variant;\n  const { content, height } = useFrameHeight(view, reduced);\n  // The first layout appears as is; later layouts fade in while the frame springs to their height.\n  const [changed, setChanged] = useState(false);\n  return <div className={styles.preview}>\n    <SegmentedControl label=\"Call to action layout\" options={variantOptions} value={variant} onValueChange={next => { setChanged(true); setVariant(next as CtaVariant); setDismissed(false); }} />\n    <motion.div className={styles.frame} style={{ height }}>\n      <div ref={content}>\n        <motion.div key={view} initial={reduced || !changed ? false : { opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: motionTokens.duration.standard, ease: standard }}>\n          {showRestore\n            ? <div className={styles.restore}><Button variant=\"secondary\" size=\"sm\" onClick={() => setDismissed(false)}>Show the banner again</Button></div>\n            : <CtaSection variant={variant} onDismiss={variant === \"banner\" ? () => { setChanged(true); setDismissed(true); } : undefined} />}\n        </motion.div>\n      </div>\n    </motion.div>\n  </div>;\n}\n\nexport default CtaSectionBlock;\n"},{"path":"registry/blocks/cta-section/cta-section-data.ts","type":"registry:component","target":"@components/arc/blocks/cta-section/cta-section-data.ts","content":"import { avatar, type PersonId } from \"../../lib/media\";\n\nexport interface CtaAction {\n  label: string;\n  /** Renders a link. */\n  href?: string;\n  onClick?: () => void;\n  /** With no href or onClick, the button confirms in place with this label, which suits previews. */\n  confirmedLabel?: string;\n}\n\nexport const ctaCopy = {\n  centered: {\n    title: \"Start building in minutes\",\n    description: \"Set up a workspace, invite your team, and ship the first project this week. Free for 14 days.\",\n    primary: { label: \"Start free trial\", confirmedLabel: \"Trial started\" },\n    secondary: { label: \"Talk to sales\", confirmedLabel: \"We'll email you\" },\n    note: \"No credit card required\",\n  },\n  split: {\n    title: \"Your team, set up before lunch\",\n    description: \"Import your projects, bring everyone in, and keep working the way you already do.\",\n    primary: { label: \"Create a workspace\", confirmedLabel: \"Workspace created\" },\n    secondary: { label: \"Book a demo\", confirmedLabel: \"Demo requested\" },\n    points: [\"Import from any tracker in one step\", \"Single sign-on and audit logs included\", \"Cancel anytime from settings\"],\n  },\n  banner: {\n    title: \"Workflows are here\",\n    description: \"Automate handoffs between teams with no code.\",\n    primary: { label: \"See how it works\", confirmedLabel: \"Opened\" },\n  },\n} satisfies Record<string, { title: string; description: string; primary: CtaAction; secondary?: CtaAction; note?: string; points?: string[] }>;\n\n/** Faces for the social proof line in the centered variant. */\nexport const ctaFaces = ([\"sofia-ramirez\", \"nathan-cole\", \"chloe-nguyen\", \"tyler-hayes\"] as PersonId[]).map(id => avatar(id));\n\n/** Sample content for the split variant's setup card. */\nexport const ctaSetup = {\n  workspace: \"Northwind\",\n  steps: [\"Create workspace\", \"Import 214 issues\", \"Invite 4 teammates\"],\n  faces: ([\"emma-collins\", \"marcus-johnson\", \"jasmine-brooks\", \"daniel-kim\"] as PersonId[]).map(id => avatar(id)),\n};\n"},{"path":"lib/media.ts","type":"registry:lib","target":"@components/arc/lib/media.ts","content":"/**\n * Shared demo media. Files live in `public/media/`, credits in `public/media/CREDITS.md`.\n * People are seeded gradient avatars from `npm run avatars` (400 px squares);\n * photos are 1600 px on the long side.\n */\n\nexport interface MediaPerson {\n  id: string;\n  name: string;\n  role?: string;\n  src: string;\n}\n\nexport interface MediaPhoto {\n  id: string;\n  alt: string;\n  src: string;\n  width: number;\n  height: number;\n}\n\nexport const people = [\n  { id: \"emma-collins\", name: \"Emma Collins\", role: \"Product designer\", src: \"/media/people/emma-collins.svg\" },\n  { id: \"marcus-johnson\", name: \"Marcus Johnson\", role: \"Frontend engineer\", src: \"/media/people/marcus-johnson.svg\" },\n  { id: \"jasmine-brooks\", name: \"Jasmine Brooks\", role: \"Design lead\", src: \"/media/people/jasmine-brooks.svg\" },\n  { id: \"olivia-bennett\", name: \"Olivia Bennett\", role: \"Platform engineer\", src: \"/media/people/olivia-bennett.svg\" },\n  { id: \"sofia-ramirez\", name: \"Sofia Ramirez\", role: \"Operations lead\", src: \"/media/people/sofia-ramirez.svg\" },\n  { id: \"ryan-sullivan\", name: \"Ryan Sullivan\", role: \"Account executive\", src: \"/media/people/ryan-sullivan.svg\" },\n  { id: \"hannah-walsh\", name: \"Hannah Walsh\", role: \"Customer success\", src: \"/media/people/hannah-walsh.svg\" },\n  { id: \"chloe-nguyen\", name: \"Chloe Nguyen\", role: \"Data analyst\", src: \"/media/people/chloe-nguyen.svg\" },\n  { id: \"ava-mitchell\", name: \"Ava Mitchell\", role: \"Marketing manager\", src: \"/media/people/ava-mitchell.svg\" },\n  { id: \"daniel-kim\", name: \"Daniel Kim\", role: \"Backend engineer\", src: \"/media/people/daniel-kim.svg\" },\n  { id: \"jordan-reyes\", name: \"Jordan Reyes\", role: \"Support specialist\", src: \"/media/people/jordan-reyes.svg\" },\n  { id: \"mateo-alvarez\", name: \"Mateo Alvarez\", role: \"Mobile engineer\", src: \"/media/people/mateo-alvarez.svg\" },\n  { id: \"tyler-hayes\", name: \"Tyler Hayes\", role: \"Sales lead\", src: \"/media/people/tyler-hayes.svg\" },\n  { id: \"andre-williams\", name: \"Andre Williams\", role: \"Finance partner\", src: \"/media/people/andre-williams.svg\" },\n  { id: \"nathan-cole\", name: \"Nathan Cole\", role: \"Engineering manager\", src: \"/media/people/nathan-cole.svg\" },\n  { id: \"diane-foster\", name: \"Diane Foster\", role: \"Chief operating officer\", src: \"/media/people/diane-foster.svg\" },\n] as const satisfies readonly MediaPerson[];\n\nexport const photos = [\n  { id: \"lounge-chair\", alt: \"A woven oak lounge chair with a sheepskin and linen cushion on a concrete floor\", src: \"/media/photos/lounge-chair.jpg\", width: 1280, height: 1600 },\n  { id: \"table-lamp\", alt: \"A white mushroom table lamp glowing beside books and a small vase\", src: \"/media/photos/table-lamp.jpg\", width: 1600, height: 900 },\n  { id: \"linen-throw\", alt: \"Folded natural linen throws with fringed edges in soft window light\", src: \"/media/photos/linen-throw.jpg\", width: 1067, height: 1600 },\n  { id: \"glass-carafe\", alt: \"A hand pouring water from a ribbed glass carafe into tumblers\", src: \"/media/photos/glass-carafe.jpg\", width: 1280, height: 1600 },\n  { id: \"stoneware-cups\", alt: \"Two speckled stoneware cups with a lid on a pale table\", src: \"/media/photos/stoneware-cups.jpg\", width: 1067, height: 1600 },\n  { id: \"stacked-bowls\", alt: \"Two stacked speckled ceramic bowls against a dark wall\", src: \"/media/photos/stacked-bowls.jpg\", width: 1600, height: 1067 },\n  { id: \"ceramic-lamp\", alt: \"A sculptural ceramic lamp with a linen shade on a walnut sideboard\", src: \"/media/photos/ceramic-lamp.jpg\", width: 1067, height: 1600 },\n  { id: \"living-room\", alt: \"A bright living room with timber beams, arched windows, and cream sofas\", src: \"/media/photos/living-room.jpg\", width: 1200, height: 1600 },\n  { id: \"sunroom\", alt: \"A sunroom with a round dining table, plants, and windows on three sides\", src: \"/media/photos/sunroom.jpg\", width: 1600, height: 1067 },\n  { id: \"home-office\", alt: \"A home office with a wooden desk and deep green walls\", src: \"/media/photos/home-office.jpg\", width: 1600, height: 1200 },\n  { id: \"reading-chair\", alt: \"A grey armchair and ottoman with a knit throw in a dark green room\", src: \"/media/photos/reading-chair.jpg\", width: 1600, height: 900 },\n  { id: \"bedroom\", alt: \"A made bed with striped linen pillows against an oak headboard\", src: \"/media/photos/bedroom.jpg\", width: 1067, height: 1600 },\n  { id: \"restaurant\", alt: \"A warm restaurant dining room with woven pendant lights and a tree\", src: \"/media/photos/restaurant.jpg\", width: 1067, height: 1600 },\n  { id: \"wine-bar\", alt: \"A glass carafe of red wine on a bar table in low evening light\", src: \"/media/photos/wine-bar.jpg\", width: 1600, height: 1067 },\n  { id: \"concert-hall\", alt: \"Curved stainless steel panels of the Walt Disney Concert Hall against a blue sky\", src: \"/media/photos/concert-hall.jpg\", width: 1600, height: 1143 },\n  { id: \"curved-facade\", alt: \"A white tiled building facade with curved balconies\", src: \"/media/photos/curved-facade.jpg\", width: 1600, height: 1067 },\n  { id: \"pool-house\", alt: \"A modern glass house beside a long pool under a clear sky\", src: \"/media/photos/pool-house.jpg\", width: 1600, height: 900 },\n  { id: \"terracotta-waves\", alt: \"Wavy terracotta walls rising toward a blue sky\", src: \"/media/photos/terracotta-waves.jpg\", width: 1067, height: 1600 },\n  { id: \"mountain-ridges\", alt: \"Layered mountain ridges under a warm evening sky\", src: \"/media/photos/mountain-ridges.jpg\", width: 1600, height: 1068 },\n  { id: \"alpine-lake\", alt: \"A calm alpine lake reflecting a rocky peak at golden hour\", src: \"/media/photos/alpine-lake.jpg\", width: 1067, height: 1600 },\n  { id: \"coastline\", alt: \"A long coastline with waves rolling onto a beach below green cliffs\", src: \"/media/photos/coastline.jpg\", width: 1200, height: 1600 },\n  { id: \"sea-at-dusk\", alt: \"A calm sea at dusk with a low island on the horizon\", src: \"/media/photos/sea-at-dusk.jpg\", width: 1067, height: 1600 },\n  { id: \"lisbon-tram\", alt: \"A yellow tram on a street lined with historic buildings in Lisbon\", src: \"/media/photos/lisbon-tram.jpg\", width: 1600, height: 1064 },\n  { id: \"lisbon-bridge\", alt: \"The 25 de Abril Bridge crossing the Tagus in Lisbon\", src: \"/media/photos/lisbon-bridge.jpg\", width: 1600, height: 1166 },\n  { id: \"lisbon-rooftops\", alt: \"Terracotta rooftops of Lisbon running down to the river\", src: \"/media/photos/lisbon-rooftops.jpg\", width: 1280, height: 1600 },\n  { id: \"salmon-dinner\", alt: \"Seared salmon with a bright herb salsa and a glass of red wine\", src: \"/media/photos/salmon-dinner.jpg\", width: 1067, height: 1600 },\n  { id: \"chef-plating\", alt: \"A chef spooning sauce onto a plated dish in a dark kitchen\", src: \"/media/photos/chef-plating.jpg\", width: 1600, height: 1600 },\n] as const satisfies readonly MediaPhoto[];\n\nexport type PersonId = (typeof people)[number][\"id\"];\nexport type PhotoId = (typeof photos)[number][\"id\"];\n\n/** Looks up a person by id. */\nexport function person(id: PersonId): MediaPerson {\n  return people.find(entry => entry.id === id)!;\n}\n\n/** Looks up a photo by id. */\nexport function photo(id: PhotoId): MediaPhoto {\n  return photos.find(entry => entry.id === id)!;\n}\n\n/** Square 400 px avatar path for a person id, for `src` props. */\nexport const avatar = (id: PersonId) => person(id).src;\n\n/** 800 × 1000 portrait of the same avatar, for image-led layouts. */\nexport const portrait = (id: PersonId) => `/media/people/portrait/${id}.svg`;\n\n/** The first `count` people, for avatar stacks and lists. */\nexport const peopleSample = (count: number) => people.slice(0, count);\n"},{"path":"registry/blocks/cta-section/cta-section.module.css","type":"registry:component","target":"@components/arc/blocks/cta-section/cta-section.module.css","content":".cta { container: cta / inline-size; background: var(--background); color: var(--foreground); font-family: var(--font-body); letter-spacing: var(--tracking-body); }\n.cta *, .cta *::before, .cta *::after { box-sizing: border-box; }\n\n.title { margin: 0; font-family: var(--font-display); font-size: clamp(1.875rem, 1rem + 3.4cqi, var(--text-4xl)); font-weight: 500; letter-spacing: var(--tracking-display); line-height: var(--leading-display); text-wrap: balance; }\n.description { margin: 0; color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-body); text-wrap: pretty; }\n.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }\n\n/* Actions: the arrow leans forward on hover; links match the button shapes. */\n.arrow { transition: transform var(--duration-fast) var(--ease-standard); }\n@media (hover: hover) and (pointer: fine) { .action:hover .arrow, .linkAction:hover .arrow { transform: translateX(3px); } }\n.linkAction { display: inline-flex; height: var(--control-height-lg); align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-control); padding: 0 20px; font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }\n.linkAction[data-size=\"sm\"] { height: var(--control-height-sm); padding: 0 14px; }\n.linkAction[data-variant=\"primary\"] { background: var(--foreground); color: var(--background); }\n.linkAction[data-variant=\"secondary\"] { border-color: var(--border); background: var(--surface); color: var(--foreground); }\n.linkAction:active { transform: scale(.97); }\n\n/* Centered: a closing section on one quiet surface. */\n.centeredWrap { max-width: 1120px; margin: 0 auto; padding: var(--space-16) var(--space-8); }\n.centered { display: grid; justify-items: center; gap: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-surface); padding: var(--space-24) var(--space-8); background: color-mix(in oklab, var(--surface-muted) 45%, var(--surface)); text-align: center; }\n.centered .title { max-width: 18ch; }\n.centered .description { max-width: 34rem; }\n.centered .actions { justify-content: center; margin-top: var(--space-4); }\n.note { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--text-sm); }\n.faces { display: flex; padding-left: 6px; }\n.faces img { display: block; width: 26px; height: 26px; margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%; object-fit: cover; }\n\n/* Split: copy beside a setup card that completes itself. */\n.split { display: grid; max-width: 1120px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-16); margin: 0 auto; padding: var(--space-24) var(--space-8); }\n.splitCopy { display: grid; justify-items: start; gap: var(--space-4); }\n.splitCopy .actions { margin-top: var(--space-4); }\n.points { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }\n.points li { display: flex; align-items: center; gap: var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); }\n.points svg { flex: none; color: var(--success); }\n.stage { display: grid; min-height: 380px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-surface); padding: var(--space-8); background: color-mix(in oklab, var(--surface-muted) 55%, var(--surface)); }\n\n.setup { width: min(100%, 360px); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-raised); box-shadow: var(--shadow-raised); overflow: hidden; }\n.setupHead { display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px; }\n.workspaceMark { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 8px; background: var(--foreground); color: var(--background); font-size: var(--text-sm); font-weight: 500; }\n.setupTitle { font-size: var(--text-sm); font-weight: 500; }\n.setupStatus { display: inline-grid; margin-left: auto; color: var(--text-muted); font-size: var(--text-xs); justify-items: end; }\n.setupStatus > span { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); filter: blur(2px); transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-standard) var(--ease-enter), filter var(--duration-fast) var(--ease-standard); }\n.setupStatus > span[data-shown] { opacity: 1; transform: none; filter: blur(0); }\n.setup[data-done] .setupStatus > span:last-child { color: var(--success); font-weight: 500; }\n.progress { height: 2px; margin: 0 18px; border-radius: 1px; background: var(--border); overflow: hidden; }\n.progress > span { display: block; height: 100%; background: var(--success); transform-origin: left; transition: transform var(--duration-considered) var(--ease-in-out); }\n.steps { display: grid; gap: 2px; margin: 0; padding: 10px 8px 12px; list-style: none; }\n.step { display: flex; min-height: 44px; align-items: center; gap: 12px; border-radius: 14px; padding: 0 10px; color: var(--text-muted); font-size: var(--text-sm); transition: color var(--duration-standard) var(--ease-standard), background-color var(--duration-standard) var(--ease-standard); }\n.step[data-active] { background: var(--surface-muted); color: var(--foreground); }\n.step[data-done] { color: var(--foreground); }\n.stepMark { position: relative; display: grid; width: 20px; height: 20px; flex: none; place-items: center; border: 1.5px dashed var(--border-strong); border-radius: 50%; color: transparent; transition: border-color var(--duration-standard) var(--ease-standard), background-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard); }\n.stepMark svg { transform: scale(.5); opacity: 0; transition: transform var(--duration-spring) var(--ease-spring), opacity var(--duration-fast) var(--ease-standard); }\n.step[data-active] .stepMark { border-style: solid; border-color: var(--text-muted); }\n.step[data-done] .stepMark { border-style: solid; border-color: var(--success); background: var(--success); color: var(--background); }\n.step[data-done] .stepMark svg { transform: scale(1); opacity: 1; }\n.stepLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.stepFaces { display: flex; margin-left: auto; padding-left: 6px; }\n.stepFaces img { display: block; width: 22px; height: 22px; margin-left: -6px; border: 2px solid var(--surface-raised); border-radius: 50%; object-fit: cover; opacity: 0; transform: translateX(-6px) scale(.9); transition: opacity var(--duration-standard) var(--ease-standard), transform var(--duration-spring) var(--ease-spring); }\n.step[data-done] .stepFaces img, .step[data-active] .stepFaces img { opacity: 1; transform: none; }\n\n/* Banner: one line that closes its gap when dismissed. */\n.bannerWrap { overflow: hidden; }\n.bannerPad { max-width: calc(1120px + 2 * var(--space-8)); margin: 0 auto; padding: var(--space-6) var(--space-8); }\n.banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border: 1px solid var(--border); border-radius: 20px; padding: 10px 10px 10px 20px; background: var(--surface); }\n.bannerText { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); }\n.bannerText strong { font-weight: 500; }\n.bannerText span { color: var(--text-secondary); }\n.bannerActions { display: flex; flex: none; align-items: center; gap: var(--space-1); }\n.dismiss { display: grid; width: var(--control-height-sm); height: var(--control-height-sm); place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }\n@media (hover: hover) and (pointer: fine) { .dismiss:hover { background: var(--surface-muted); color: var(--foreground); } }\n.dismiss:active { transform: scale(.94); }\n\n@container cta (max-width: 860px) {\n  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); padding: var(--space-16) var(--space-8); }\n  .stage { min-height: 320px; }\n}\n@container cta (max-width: 560px) {\n  .centeredWrap { padding: var(--space-10) var(--space-4); }\n  .centered { padding: var(--space-16) var(--space-5); border-radius: 28px; }\n  .split { padding: var(--space-12) var(--space-4); }\n  .stage { padding: var(--space-5); border-radius: 28px; }\n  .description { font-size: var(--text-base); }\n  .actions { width: 100%; flex-direction: column; }\n  .actions > * { width: 100%; }\n  .bannerPad { padding: var(--space-4); }\n  .banner { align-items: flex-start; flex-direction: column; padding: 16px; }\n  .bannerActions { width: 100%; justify-content: space-between; }\n}\n\n.preview { display: grid; width: 100%; justify-items: center; gap: var(--space-4); }\n.frame { width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--background); }\n.restore { display: grid; min-height: 104px; place-items: center; padding: var(--space-6); }\n\n@media (prefers-reduced-motion: reduce) {\n  .arrow, .setupStatus > span, .progress > span, .step, .stepMark, .stepMark svg, .stepFaces img { transition: none; }\n}\n"}],"docs":"Use this to ask for a trial, demo or signup. Pass href or onClick to each action; edit sample copy in cta-section-data.ts. Buttons in the preview confirm in place.","meta":{"tier":"free","kind":"block","builtFrom":["Button","Segmented control"],"docs":"https://uiarc.dev/components/blocks/cta-section"}}