{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-showcase",
  "title": "Bento Showcase",
  "author": "AlgorizeTech",
  "description": "A six-card marketing bento on black: a hero with a live chat, a case-studies laptop, a headline, figures that scroll up, the plans on a phone, and a team strip that scrolls left. Use it as the showcase section of an agency or services landing page.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://avaraui.com/r/button.json",
    "https://avaraui.com/r/chat-bubble.json",
    "https://avaraui.com/r/half-stars.json",
    "https://avaraui.com/r/marquee.json",
    "https://avaraui.com/r/mobile-mockup.json",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/BentoShowcaseBlock.tsx",
      "content": "\"use client\";\n\nimport React from \"react\";\nimport { MessageCircle, Phone, X } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport Button from \"./Button\";\nimport { ChatAvatar, ChatBubble, ChatMessage } from \"./ChatBubbleBlock\";\nimport { HalfStars } from \"./HalfStarsBlock\";\nimport { MarqueeBlock } from \"./MarqueeBlock\";\nimport { Iphone17ProMaxMockup } from \"./MobileMockupBlock\";\n\n// ==========================================\n// BENTO SHOWCASE\n// A six-card marketing bento: a hero with a live chat, a case-studies\n// laptop, a headline, numbers that scroll up, a phone with the plans, and a\n// team strip that scrolls left. Every card is a named part of\n// `BentoShowcase`, so a page can drop one, reorder them, or add its own with\n// `BentoShowcase.Card`. The section follows the site theme: pastels on the\n// theme background in light mode, the same hues deepened in dark mode.\n// ==========================================\n\nexport type BentoTone = \"cream\" | \"ice\" | \"lilac\" | \"sky\" | \"butter\" | \"ink\";\n\n// Flat tones, no border or shadow — colour is the only thing separating a\n// card from the ground and from its neighbours. Each pastel has a deep\n// counterpart for dark mode; `ink` is the contrast card and flips (dark on\n// light, light on dark, from the theme ink); `butter` is the accent and stays\n// yellow on both.\n// Secondary text inside a card uses `text-current/…` so it follows the tone.\nconst TONES: Record<BentoTone, string> = {\n  cream: \"bg-[#f2eee3] text-[#141414] dark:bg-[#1f1c17] dark:text-white\",\n  ice: \"bg-[#e6e8ed] text-[#141414] dark:bg-[#1c1e24] dark:text-white\",\n  lilac: \"bg-[#e9e5f5] text-[#141414] dark:bg-[#221d31] dark:text-white\",\n  sky: \"bg-[#d6e6f6] text-[#141414] dark:bg-[#172336] dark:text-white\",\n  butter: \"bg-[#fbe9a6] text-[#141414]\",\n  ink: \"bg-foreground text-background\",\n};\n\n// ------------------------------------------\n// Root\n// ------------------------------------------\nexport interface BentoShowcaseProps extends React.HTMLAttributes<HTMLElement> {\n  children: React.ReactNode;\n}\n\nexport function BentoShowcase({ className, children, ...props }: BentoShowcaseProps) {\n  return (\n    <section className={cn(\"w-full bg-background p-3\", className)} {...props}>\n      {/* Three rows of 15rem at lg; the tall cards span two of them. At md the\n          layout folds to two columns and four rows; on phones every card\n          stacks and sizes itself. */}\n      <div className=\"grid grid-cols-1 gap-4 md:auto-rows-[15rem] md:grid-cols-2 lg:grid-cols-[3fr_2fr_3fr]\">\n        {children}\n      </div>\n    </section>\n  );\n}\n\n// ------------------------------------------\n// Card\n// ------------------------------------------\nexport interface BentoCardProps extends React.HTMLAttributes<HTMLDivElement> {\n  tone?: BentoTone;\n  /** Small caption in the top-right corner, e.g. the service the card is about. */\n  label?: React.ReactNode;\n}\n\nfunction Card({ tone = \"cream\", label, className, children, ...props }: BentoCardProps) {\n  return (\n    <div\n      className={cn(\"relative overflow-hidden rounded-[24px]\", TONES[tone], className)}\n      {...props}\n    >\n      {label && (\n        <span className=\"absolute right-7 top-6 z-10 max-w-[7rem] text-right text-[9.5px] font-semibold uppercase leading-[1.35] tracking-[0.1em] text-current/60\">\n          {label}\n        </span>\n      )}\n      {children}\n    </div>\n  );\n}\n\n// ------------------------------------------\n// Hero — portrait, live chat, headline\n// ------------------------------------------\nexport interface BentoChat {\n  /** The customer's message, with who sent it. */\n  from: string;\n  fromRole?: string;\n  message: string;\n  /** The assistant's reply, and the name it replies as. */\n  as: string;\n  reply: string;\n  /** Optional avatar for the customer. */\n  avatar?: string;\n}\n\nexport interface BentoHeroProps extends React.HTMLAttributes<HTMLDivElement> {\n  label?: React.ReactNode;\n  photo: string;\n  photoAlt?: string;\n  chat: BentoChat;\n  /** Yellow chip under the chat — what the reply came from. */\n  chip?: string;\n  /** The headline; wrap the display phrase in <em> for the serif italic. */\n  children: React.ReactNode;\n  /** Small avatars that sit under the headline as social proof. */\n  avatars?: string[];\n}\n\nfunction Hero({\n  label = \"Managed call centre\",\n  photo,\n  photoAlt = \"\",\n  chat,\n  chip = \"Virtual agent\",\n  avatars = [],\n  className,\n  children,\n  ...props\n}: BentoHeroProps) {\n  return (\n    <Card\n      tone=\"cream\"\n      className={cn(\n        \"min-h-[31rem] md:col-start-1 md:row-start-1 md:row-span-2 lg:col-start-1\",\n        className,\n      )}\n      {...props}\n    >\n      {label && (\n        <span className=\"absolute inset-x-0 top-6 z-10 mx-auto max-w-[6.5rem] text-center text-[9.5px] font-semibold uppercase leading-[1.35] tracking-[0.1em] text-current/60\">\n          {label}\n        </span>\n      )}\n      {/* Portrait in an arch, headroom above for the call bar, room below for the headline. */}\n      <div className=\"absolute inset-x-[22%] top-[6.5rem] bottom-[7.5rem] overflow-hidden rounded-t-[999px]\">\n        <img src={photo} alt={photoAlt} className=\"h-full w-full object-cover object-top\" />\n        {/* Fade the crop into the card so the portrait reads as a cutout. */}\n        <span className=\"absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-[#f2eee3] to-transparent dark:from-[#1f1c17]\" aria-hidden />\n      </div>\n\n      {/* Call bar: two actions, the status, and a close. */}\n      <div className=\"absolute left-[22%] right-[16%] top-[5.25rem] flex items-center gap-2\">\n        <span className=\"grid h-8 w-8 place-items-center rounded-full bg-primary/15 text-primary\">\n          <Phone size={14} strokeWidth={2.25} aria-hidden />\n        </span>\n        <span className=\"grid h-8 w-8 place-items-center rounded-full bg-primary/15 text-primary\">\n          <MessageCircle size={14} strokeWidth={2.25} aria-hidden />\n        </span>\n        <span className=\"ml-3 inline-flex items-center gap-1.5 rounded-full bg-card px-2.5 py-1 text-[10px] font-semibold text-card-foreground\">\n          <span className=\"h-1.5 w-1.5 rounded-full bg-emerald-500\" aria-hidden />\n          Online\n        </span>\n        <span className=\"ml-auto grid h-8 w-8 place-items-center rounded-full bg-card text-muted-foreground\">\n          <X size={14} aria-hidden />\n        </span>\n      </div>\n\n      {/* The customer, on the left. */}\n      <div className=\"absolute left-[9%] top-[8.5rem] w-[52%]\">\n        <ChatBubble variant=\"received\">\n          <ChatMessage className=\"border-0 bg-card px-3 py-2 text-[10px] leading-[1.3] text-card-foreground shadow-sm\">\n            <span className=\"mb-1 flex items-center gap-1.5\">\n              <ChatAvatar\n                {...(chat.avatar ? { src: chat.avatar } : {})}\n                fallback={chat.from.slice(0, 1)}\n                className=\"order-none mt-0 h-4 w-4 bg-muted text-[8px]\"\n              />\n              <span className=\"text-[8.5px] font-semibold leading-none\">{chat.from}</span>\n              {chat.fromRole && <span className=\"text-[7.5px] leading-none text-current/45\">{chat.fromRole}</span>}\n            </span>\n            {chat.message}\n          </ChatMessage>\n        </ChatBubble>\n      </div>\n\n      {/* The assistant, on the right, with the chip that says what answered. */}\n      <div className=\"absolute right-[4%] top-[17.5rem] w-[50%]\">\n        <ChatBubble variant=\"sent\">\n          <ChatMessage color=\"primary\" className=\"px-3 py-2 text-[10px] leading-[1.3]\">\n            <span className=\"mb-1 flex items-center gap-1 text-[8.5px] font-semibold leading-none opacity-80\">\n              {chat.as}\n              <svg viewBox=\"0 0 12 12\" className=\"h-2.5 w-2.5\" fill=\"currentColor\" aria-hidden>\n                <path d=\"M6 0l1.4 1.9 2.3-.5.3 2.3 2 1.3-1.5 1.8.6 2.3-2.3.6-1 2.2L6 12l-1.8-1.1-2.3-.6.6-2.3L1 6.2 3 4.9l.3-2.3 2.3.5z\" />\n                <path d=\"M4 6l1.4 1.4L8.2 4.6\" stroke=\"var(--primary)\" strokeWidth=\"1.2\" fill=\"none\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            </span>\n            {chat.reply}\n          </ChatMessage>\n        </ChatBubble>\n      </div>\n      <span className=\"absolute left-[22%] top-[21.75rem] rounded-full bg-[#f5c518] px-3 py-1 text-[9.5px] font-semibold text-[#3a2e00]\">\n        {chip}\n      </span>\n      {/* A hand-drawn stroke, so the card doesn't read as a screenshot. */}\n      <svg\n        className=\"absolute left-[8%] top-[15.5rem] h-9 w-16 text-[#f0a3c8]\"\n        viewBox=\"0 0 80 40\"\n        fill=\"none\"\n        aria-hidden\n      >\n        <path\n          d=\"M4 30 C 18 6, 26 8, 30 20 S 44 34, 52 18 S 66 10, 76 22\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2.5\"\n          strokeLinecap=\"round\"\n        />\n      </svg>\n\n      {/* Headline. */}\n      <div className=\"absolute inset-x-5 bottom-7 text-center\">\n        <h3 className=\"mx-auto max-w-[17rem] font-sans text-[1.3rem] lg:text-[1.55rem] font-semibold leading-[1.02] tracking-[-0.02em] [&_em]:font-serif [&_em]:font-normal [&_em]:italic\">\n          {children}\n        </h3>\n        {avatars.length > 0 && (\n          <div className=\"mt-3 flex justify-center -space-x-2\">\n            {avatars.map((src) => (\n              <img\n                key={src}\n                src={src}\n                alt=\"\"\n                className=\"h-6 w-6 rounded-full border-2 border-[#f2eee3] object-cover dark:border-[#1f1c17]\"\n              />\n            ))}\n          </div>\n        )}\n      </div>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Case studies — a laptop with three results, rated\n// ------------------------------------------\nexport interface BentoCaseStudy {\n  quote: string;\n  /** Two figures under the quote, e.g. +64% and $230K. */\n  metrics: { value: string; label?: string }[];\n}\n\nexport interface BentoCaseStudiesProps extends React.HTMLAttributes<HTMLDivElement> {\n  title?: string;\n  rating?: number;\n  reviews?: number;\n  /** Mark before the stars — a disc in the theme ink by default. */\n  logo?: React.ReactNode;\n  items: BentoCaseStudy[];\n}\n\nfunction DefaultLogo() {\n  return (\n    <span className=\"grid h-5 w-5 place-items-center rounded-full bg-foreground text-background\" aria-hidden>\n      <svg viewBox=\"0 0 12 12\" className=\"h-3 w-3\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\">\n        <path d=\"M9 3.5A3.6 3.6 0 1 0 9 8.5\" />\n      </svg>\n    </span>\n  );\n}\n\nfunction CaseStudies({\n  title = \"Client wins\",\n  rating = 5,\n  reviews,\n  logo = <DefaultLogo />,\n  items,\n  className,\n  ...props\n}: BentoCaseStudiesProps) {\n  return (\n    <Card\n      tone=\"ice\"\n      className={cn(\"min-h-[15rem] md:col-start-2 md:row-start-1 lg:col-start-2\", className)}\n      {...props}\n    >\n      <div className=\"absolute right-6 top-4 z-10 flex flex-col items-end\">\n        <div className=\"flex items-center gap-1.5\">\n          {logo}\n          <HalfStars\n            rating={rating}\n            size={13}\n            showText={false}\n            activeColor=\"text-[#f5c518]\"\n            inactiveColor=\"text-black/10 dark:text-white/15\"\n            className=\"gap-0\"\n            role=\"img\"\n            aria-label={`${rating} out of 5`}\n          />\n        </div>\n        {reviews !== undefined && (\n          <p className=\"mt-0.5 text-[10px] font-medium text-current/70\">{reviews} reviews</p>\n        )}\n      </div>\n\n      {/* The laptop, seen from below and to the left, running off the card's\n          left and bottom edges. The screen leans back on Y so its far edge is\n          shorter; the deck is the same slab laid nearly flat. */}\n      <div className=\"absolute -left-3 bottom-1 w-[19rem] [perspective:640px]\">\n        <div className=\"origin-left [transform-style:preserve-3d] [transform:rotateY(30deg)]\">\n          <div className=\"origin-bottom overflow-hidden rounded-[10px] border-[5px] border-[#1c1c1e] bg-[#111113] pb-3 pl-6 pr-3.5 pt-2.5 text-white [transform:rotateX(7deg)]\">\n            <span className=\"mx-auto block h-1 w-1 rounded-full bg-white/35\" aria-hidden />\n            <p className=\"mt-2 max-w-[4rem] font-serif text-[15px] italic leading-[1.05]\">{title}</p>\n            <div className=\"mt-3 grid grid-cols-3 gap-1.5\">\n              {items.slice(0, 3).map((item) => (\n                <div key={item.quote} className=\"rounded-[5px] bg-white p-1.5 text-[#141414]\">\n                  <p className=\"line-clamp-4 text-[6px] leading-[1.3] text-black/70\">{item.quote}</p>\n                  <div className=\"mt-2 flex items-end gap-1.5\">\n                    {item.metrics.slice(0, 2).map((m) => (\n                      <div key={m.value} className=\"min-w-0\">\n                        <p className=\"text-[9.5px] font-semibold leading-none\">{m.value}</p>\n                        {m.label && <p className=\"mt-0.5 truncate text-[4.5px] uppercase tracking-wider text-black/45\">{m.label}</p>}\n                      </div>\n                    ))}\n                  </div>\n                </div>\n              ))}\n            </div>\n          </div>\n          {/* The deck: a lit top surface over a darker front edge, laid back so it foreshortens. */}\n          <div\n            className=\"-mx-2 -mt-px h-8 origin-top rounded-b-[10px] bg-gradient-to-b from-[#f1f3f6] from-0% via-[#d3d7dd] via-55% to-[#8f959f] to-100% [transform:rotateX(-28deg)]\"\n            aria-hidden\n          >\n            <span className=\"mx-auto mt-1 block h-[3px] w-16 rounded-full bg-black/10\" />\n          </div>\n        </div>\n      </div>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Headline — a photo and one line that says what you do\n// ------------------------------------------\nexport interface BentoHeadlineProps extends React.HTMLAttributes<HTMLDivElement> {\n  label?: React.ReactNode;\n  photo: string;\n  photoAlt?: string;\n  /** The line. Wrap the display phrase in <em>: it takes the serif italic on a line of its own, with a scribble under it. */\n  children: React.ReactNode;\n}\n\nfunction Headline({\n  label = \"Call handling\",\n  photo,\n  photoAlt = \"\",\n  className,\n  children,\n  ...props\n}: BentoHeadlineProps) {\n  return (\n    <Card\n      tone=\"ice\"\n      label={label}\n      className={cn(\"min-h-[15rem] md:col-start-1 md:row-start-3 lg:col-start-3 lg:row-start-1\", className)}\n      {...props}\n    >\n      <div className=\"absolute left-6 top-4 h-[4.25rem] w-[8.5rem] overflow-hidden rounded-full\">\n        <img src={photo} alt={photoAlt} className=\"h-full w-full object-cover\" />\n      </div>\n      <h3 className=\"absolute inset-x-6 bottom-5 font-sans text-[1.85rem] lg:text-[2.3rem] font-medium leading-[0.98] tracking-[-0.03em] [&_em]:relative [&_em]:block [&_em]:font-serif [&_em]:text-[1.8rem] lg:[&_em]:text-[2rem] [&_em]:font-normal [&_em]:italic [&_em]:tracking-normal\">\n        {children}\n      </h3>\n      {/* A looping stroke under the serif line. */}\n      <svg\n        className=\"pointer-events-none absolute bottom-[0.6rem] left-[5.25rem] h-5 w-[6.5rem] text-[#b7abf1]\"\n        viewBox=\"0 0 104 24\"\n        fill=\"none\"\n        aria-hidden\n      >\n        <path\n          d=\"M2 16c10-8 22-12 24-6s-8 12-8 6 16-10 30-12 26 0 30 6-6 12-10 8 10-12 34-10\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n        />\n      </svg>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Stats — figures that scroll up\n// ------------------------------------------\nexport type BentoOrnament = \"spheres\" | \"ring\" | \"drops\";\n\nexport interface BentoStat {\n  value: string;\n  caption: string;\n  tone?: BentoTone;\n  /** A small CSS-drawn object beside the figure. */\n  ornament?: BentoOrnament;\n}\n\nexport interface BentoStatsProps extends React.HTMLAttributes<HTMLDivElement> {\n  items: BentoStat[];\n  /** Seconds per loop. */\n  speed?: number;\n}\n\nfunction Ornament({ kind }: { kind: BentoOrnament }) {\n  if (kind === \"ring\") {\n    return (\n      <span className=\"relative block h-12 w-12\" aria-hidden>\n        <span className=\"absolute inset-0 rounded-full border-[9px] border-[#4f8cf7] [box-shadow:inset_2px_2px_4px_rgba(255,255,255,.55),2px_3px_6px_rgba(30,64,175,.25)]\" />\n        <span className=\"absolute right-0 top-0 h-3 w-3 rounded-full bg-white [box-shadow:inset_-1px_-1px_2px_rgba(0,0,0,.15)]\" />\n      </span>\n    );\n  }\n  if (kind === \"drops\") {\n    return (\n      <span className=\"relative block h-12 w-14\" aria-hidden>\n        <span className=\"absolute bottom-0 left-0 h-9 w-9 rounded-full [background:radial-gradient(circle_at_30%_30%,#ffd6a8,#f97316_55%,#c2410c)]\" />\n        <span className=\"absolute right-0 top-0 h-6 w-6 rounded-full [background:radial-gradient(circle_at_30%_30%,#ffe4c4,#fb923c_55%,#ea580c)]\" />\n        <span className=\"absolute bottom-1 right-2 h-3 w-3 rounded-full bg-white/90\" />\n      </span>\n    );\n  }\n  return (\n    <span className=\"relative block h-12 w-14\" aria-hidden>\n      {[\n        \"left-0 top-1 h-6 w-6\",\n        \"left-5 top-0 h-5 w-5\",\n        \"left-3 top-5 h-7 w-7\",\n        \"left-9 top-4 h-5 w-5\",\n        \"left-8 bottom-0 h-4 w-4\",\n      ].map((pos, i) => (\n        <span\n          key={pos}\n          className={cn(\n            \"absolute rounded-full\",\n            pos,\n            i % 2 === 0\n              ? \"[background:radial-gradient(circle_at_30%_30%,#f3ffd0,#a3e635_55%,#4d7c0f)]\"\n              : \"[background:radial-gradient(circle_at_30%_30%,#ffffff,#d4d4d8_60%,#71717a)]\",\n          )}\n        />\n      ))}\n    </span>\n  );\n}\n\nfunction Stats({ items, speed = 16, className, ...props }: BentoStatsProps) {\n  return (\n    <Card\n      tone=\"lilac\"\n      className={cn(\"h-[18rem] md:h-auto md:col-start-2 md:row-start-2 lg:col-start-2 lg:row-start-2\", className)}\n      {...props}\n    >\n      <MarqueeBlock\n        direction=\"up\"\n        speed={speed}\n        gap=\"0.625rem\"\n        pauseOnHover\n        className=\"absolute inset-x-3 inset-y-0 py-3\"\n      >\n        {items.map((item) => (\n          <div\n            key={item.value}\n            className={cn(\n              \"flex w-full shrink-0 items-center justify-between gap-3 rounded-[20px] px-4 py-3.5\",\n              TONES[item.tone ?? \"cream\"],\n            )}\n          >\n            <div className=\"min-w-0\">\n              <p className=\"text-[1.45rem] font-semibold leading-none tracking-[-0.02em]\">{item.value}</p>\n              <p className=\"mt-1.5 text-[9px] leading-tight text-current/60\">\n                {item.caption}\n              </p>\n            </div>\n            {item.ornament && <Ornament kind={item.ornament} />}\n          </div>\n        ))}\n      </MarqueeBlock>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Phone — the plans, on a device\n// ------------------------------------------\nexport interface BentoPlan {\n  /** e.g. \"#2\" */\n  rank: string;\n  name: string;\n  price?: string;\n  note?: string;\n  /** Picture behind the tier name. */\n  image: string;\n  benefits?: string[];\n  action?: string;\n}\n\nexport interface BentoPhoneProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** The first plan is shown in full; the second peeks in below it. */\n  plans: [BentoPlan, BentoPlan?];\n  onAction?: () => void;\n}\n\nfunction PlanTile({ plan, className }: { plan: BentoPlan; className?: string }) {\n  return (\n    <div className={cn(\"relative h-28 overflow-hidden rounded-[22px]\", className)}>\n      <img src={plan.image} alt=\"\" className=\"absolute inset-0 h-full w-full object-cover\" />\n      <span className=\"absolute left-4 top-3 font-serif text-lg italic text-white/90\">{plan.rank}</span>\n      <span className=\"absolute bottom-3 left-4 font-serif text-[2rem] italic leading-none text-white [text-shadow:0_1px_12px_rgba(0,0,0,.25)]\">\n        {plan.name}\n      </span>\n    </div>\n  );\n}\n\nfunction PhoneCard({ plans, onAction, className, ...props }: BentoPhoneProps) {\n  const [main, next] = plans;\n  return (\n    <Card\n      tone=\"sky\"\n      className={cn(\n        \"h-[28rem] md:h-auto md:col-start-2 md:row-start-3 md:row-span-2 lg:col-start-3 lg:row-start-2\",\n        className,\n      )}\n      {...props}\n    >\n      <svg className=\"absolute left-5 top-7 h-9 w-[4.5rem] text-white\" viewBox=\"0 0 56 28\" fill=\"currentColor\" aria-hidden>\n        <path d=\"M2 2h9l11 12-11 12H2l11-12z\" />\n        <path d=\"M18 2h9l11 12-11 12h-9l11-12z\" />\n        <path d=\"M34 2h9l11 12-11 12h-9l11-12z\" />\n      </svg>\n\n      {/* The mockup is a fixed 340px device, scaled and tilted into the card so it\n          reads as held, and let run off the bottom edge. */}\n      <div className=\"absolute left-1/2 top-10 w-[340px] origin-top -translate-x-[40%] rotate-[12deg] scale-[0.76] sm:scale-[0.8] lg:scale-[0.82]\">\n        <Iphone17ProMaxMockup>\n          <div className=\"h-full w-full bg-gradient-to-b from-[#ebe7f7] to-[#dfe9f6] px-3 pt-14 text-[#141414] dark:from-[#1c1826] dark:to-[#141c2a] dark:text-white\">\n            <PlanTile plan={main} />\n            <div className=\"mt-5 text-center\">\n              {main.price && <p className=\"text-[2rem] font-semibold leading-none tracking-tight\">{main.price}</p>}\n              {main.note && <p className=\"mx-auto mt-2 max-w-[16rem] text-[12px] text-current/60\">{main.note}</p>}\n              <Button variant=\"default\" size=\"sm\" className=\"mt-4 h-9 rounded-full px-5 text-[11px]\" onClick={onAction}>\n                {main.action ?? \"Get started\"}\n              </Button>\n            </div>\n            {main.benefits && main.benefits.length > 0 && (\n              <div className=\"mt-6 text-center\">\n                <p className=\"font-serif text-xl italic leading-none\">What you get</p>\n                <ul className=\"mt-2 space-y-0.5 text-[12px] text-current/65\">\n                  {main.benefits.map((b) => (\n                    <li key={b}>{b}</li>\n                  ))}\n                </ul>\n              </div>\n            )}\n            {next && <PlanTile plan={next} className=\"mt-6\" />}\n          </div>\n        </Iphone17ProMaxMockup>\n      </div>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Team — a strip that scrolls left\n// ------------------------------------------\nexport interface BentoTeamProps extends React.HTMLAttributes<HTMLDivElement> {\n  photos: { src: string; alt?: string }[];\n  /** A figure repeated between the photos. */\n  stat?: { value: string; caption: string };\n  /** Seconds per loop. */\n  speed?: number;\n}\n\nfunction Team({ photos, stat, speed = 36, className, ...props }: BentoTeamProps) {\n  // Photo, figure, photo — then again. Every cell is an ellipse and the cells\n  // alternate high and low, so keep the count even for a seamless loop.\n  const cells: React.ReactNode[] = [];\n  let discs = 0;\n  photos.forEach((p, i) => {\n    cells.push(\n      <div key={p.src} className=\"h-[10rem] w-[6.25rem] shrink-0 overflow-hidden rounded-full\">\n        <img src={p.src} alt={p.alt ?? \"\"} className=\"h-full w-full object-cover\" />\n      </div>,\n    );\n    if (stat && i % 2 === 0) {\n      cells.push(\n        <div\n          key={`stat-${i}`}\n          className={cn(\n            \"grid h-[9.25rem] w-[5.75rem] shrink-0 place-items-center rounded-full text-center text-[#141414]\",\n            discs++ % 2 === 0 ? \"bg-[#fbe9a6]\" : \"bg-[#fdf7e6]\",\n          )}\n        >\n          <div className=\"max-w-[4.75rem]\">\n            <p className=\"text-[8.5px] font-semibold leading-[1.3] text-current/75\">{stat.caption}</p>\n            <p className=\"mt-1.5 text-[1.6rem] font-semibold leading-none tracking-[-0.02em]\">{stat.value}</p>\n          </div>\n        </div>,\n      );\n    }\n  });\n\n  return (\n    <Card\n      tone=\"cream\"\n      className={cn(\n        \"h-[15rem] md:h-auto md:col-start-1 md:row-start-4 lg:col-start-1 lg:col-span-2 lg:row-start-3\",\n        className,\n      )}\n      {...props}\n    >\n      <MarqueeBlock\n        direction=\"left\"\n        speed={speed}\n        gap=\"0.875rem\"\n        pauseOnHover\n        className=\"absolute inset-x-0 bottom-5 top-7 [&>div>*:nth-child(odd)]:self-end [&>div>*:nth-child(even)]:self-start\"\n      >\n        {cells}\n      </MarqueeBlock>\n    </Card>\n  );\n}\n\n// ------------------------------------------\n// Export\n// ------------------------------------------\nBentoShowcase.Card = Card;\nBentoShowcase.Hero = Hero;\nBentoShowcase.CaseStudies = CaseStudies;\nBentoShowcase.Headline = Headline;\nBentoShowcase.Stats = Stats;\nBentoShowcase.Phone = PhoneCard;\nBentoShowcase.Team = Team;\n\nexport default BentoShowcase;\n",
      "type": "registry:component",
      "target": "components/custom/blocks/BentoShowcaseBlock.tsx"
    }
  ],
  "docs": "Named export: BentoShowcase, with parts Card, Hero, CaseStudies, Headline, Stats, Phone and Team. Composed from the marquee, chat-bubble, half-stars, mobile-mockup and button items, which install alongside it. Headlines are children — wrap the display phrase in <em> for the serif italic; `Card` takes a `tone` and grid placement via className.",
  "categories": [
    "marketing",
    "layout"
  ],
  "type": "registry:component"
}
