{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-block-four",
  "type": "registry:block",
  "title": "Features Block Four",
  "description": "A Features Block Four component for displaying features.",
  "files": [
    {
      "path": "src/registry/blocks/features-block-four.tsx",
      "type": "registry:block",
      "content": "import { useId, type ComponentProps } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport type FeatureStat = {\n  /** The figure itself, e.g. \"9s\". Set in tabular numerals. */\n  value: string;\n  label: string;\n  /** One or two sentences of context under the figure. */\n  note: string;\n  /** Footnote text; numbered automatically. */\n  footnote?: string;\n};\n\nexport type FeaturesBlockFourProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  stats?: FeatureStat[];\n  /** Small line above the footnotes, e.g. when the numbers were measured. */\n  measuredAt?: string;\n} & ComponentProps<\"section\">;\n\nconst DEFAULT_STATS: FeatureStat[] = [\n  {\n    value: \"9s\",\n    label: \"Median build\",\n    note: \"Down from 41 seconds before the shared cache. Most rebuilds only touch the files that changed.\",\n    footnote: \"Median across 1.2M builds on the Team plan, July–September 2026.\",\n  },\n  {\n    value: \"14\",\n    label: \"Edge regions\",\n    note: \"Deploys go out to every region at once. Rolling back takes the same single click.\",\n  },\n  {\n    value: \"99.98%\",\n    label: \"Uptime, last 12 months\",\n    note: \"Two incidents, both under 20 minutes, both written up publicly the same week.\",\n    footnote: \"Measured by an external probe every 30 seconds from six locations.\",\n  },\n  {\n    value: \"3.1M\",\n    label: \"Deploys a month\",\n    note: \"From weekend side projects to teams shipping forty times a day.\",\n  },\n];\n\nconst DEFAULTS = {\n  eyebrow: \"(By the numbers)\",\n  title: \"Fast enough that you stop noticing the deploy.\",\n  description:\n    \"We publish these every quarter, including the ones that got worse. This is where Tern stands today.\",\n  measuredAt: \"Last updated 1 Oct 2026\",\n};\n\nexport default function FeaturesBlockFour({\n  eyebrow = DEFAULTS.eyebrow,\n  title = DEFAULTS.title,\n  description = DEFAULTS.description,\n  stats = DEFAULT_STATS,\n  measuredAt = DEFAULTS.measuredAt,\n  className,\n  ...props\n}: FeaturesBlockFourProps) {\n  const headingId = useId();\n  // Footnote numbers follow the order the stats appear in.\n  let footnoteCount = 0;\n  const numbered = stats.map((stat) => ({\n    ...stat,\n    footnoteNumber: stat.footnote ? ++footnoteCount : undefined,\n  }));\n\n  return (\n    <section\n      data-slot=\"features-block-four\"\n      aria-labelledby={headingId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 md:py-28\">\n        <div className=\"grid gap-6 md:grid-cols-12 md:gap-10\">\n          <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground md:col-span-4\">\n            {eyebrow}\n          </p>\n          <div className=\"md:col-span-8\">\n            <h2\n              id={headingId}\n              className=\"text-3xl font-semibold tracking-[-0.03em] text-balance sm:text-4xl md:text-5xl\"\n            >\n              {title}\n            </h2>\n            <p className=\"mt-5 max-w-xl text-base leading-relaxed text-muted-foreground\">\n              {description}\n            </p>\n          </div>\n        </div>\n\n        <dl className=\"mt-16 grid border-t sm:grid-cols-2 lg:grid-cols-4\">\n          {numbered.map((stat, i) => (\n            <div\n              key={stat.label}\n              className={cn(\n                \"flex flex-col border-b py-8 sm:px-6 lg:border-b-0\",\n                i % 2 === 1 && \"sm:border-l\",\n                i > 0 && \"lg:border-l\",\n                \"sm:first:pl-0\"\n              )}\n            >\n              <dt className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n                {stat.label}\n              </dt>\n              <dd className=\"mt-6 text-5xl font-semibold tracking-[-0.04em] tabular-nums md:text-6xl\">\n                {stat.value}\n                {stat.footnoteNumber && (\n                  <sup className=\"ml-1 align-super font-mono text-xs font-normal tracking-normal text-muted-foreground\">\n                    <a href={`#${headingId}-note-${stat.footnoteNumber}`}>\n                      {stat.footnoteNumber}\n                    </a>\n                  </sup>\n                )}\n              </dd>\n              <dd className=\"mt-4 max-w-[28ch] text-sm leading-relaxed text-muted-foreground\">\n                {stat.note}\n              </dd>\n            </div>\n          ))}\n        </dl>\n\n        {(footnoteCount > 0 || measuredAt) && (\n          <footer className=\"mt-12 grid gap-6 border-t pt-4 md:grid-cols-12 md:gap-10\">\n            {measuredAt && (\n              <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground md:col-span-4\">\n                {measuredAt}\n              </p>\n            )}\n            <ol className=\"space-y-1.5 text-xs leading-relaxed text-muted-foreground md:col-span-8\">\n              {numbered\n                .filter((stat) => stat.footnoteNumber)\n                .map((stat) => (\n                  <li\n                    key={stat.label}\n                    id={`${headingId}-note-${stat.footnoteNumber}`}\n                    className=\"flex gap-3\"\n                  >\n                    <span className=\"font-mono tabular-nums\">{stat.footnoteNumber}</span>\n                    {stat.footnote}\n                  </li>\n                ))}\n            </ol>\n          </footer>\n        )}\n      </div>\n    </section>\n  );\n}\n\nexport { FeaturesBlockFour };\n"
    }
  ]
}
