{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"comparison-table","type":"registry:block","title":"Comparison table","description":"An us versus them table with a sticky header, a highlighted column, and a stacked phone view.","categories":["blocks"],"dependencies":["lucide-react","motion"],"registryDependencies":["https://uiarc.dev/r/arc-motion-tokens.json"],"files":[{"path":"registry/blocks/comparison-table/comparison-table.tsx","type":"registry:component","target":"@components/arc/blocks/comparison-table/comparison-table.tsx","content":"\"use client\";\n\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport type { CSSProperties } from \"react\";\nimport { AnimatePresence, LayoutGroup, motion, useReducedMotion } from \"motion/react\";\nimport { Check, Minus } from \"lucide-react\";\nimport { motionTokens } from \"../../lib/motion-tokens\";\nimport { comparisonColumns, comparisonSections } from \"./comparison-table-data\";\nimport type { ComparisonColumn, ComparisonSection, ComparisonValue } from \"./comparison-table-data\";\nimport styles from \"./comparison-table.module.css\";\n\nexport type { ComparisonColumn, ComparisonRow, ComparisonSection, ComparisonValue } from \"./comparison-table-data\";\n\nexport interface ComparisonTableProps {\n  title?: string;\n  description?: string;\n  columns?: ComparisonColumn[];\n  sections?: ComparisonSection[];\n  /** Hide rows where every visible column has the same value (controlled). */\n  differencesOnly?: boolean;\n  defaultDifferencesOnly?: boolean;\n  onDifferencesOnlyChange?: (value: boolean) => void;\n  /** Competitor shown beside yours in the stacked phone layout (controlled). */\n  compareWith?: string;\n  onCompareWithChange?: (id: string) => void;\n  /** Call to action in your column. */\n  cta?: { label: string; href?: string; onClick?: () => void; doneLabel?: string };\n  /** Offset for the sticky header, such as the height of a fixed site header. Defaults to 0. */\n  stickyTop?: number;\n  /** Caps the table height and scrolls it inside the block, with the header sticking to its top. */\n  maxHeight?: number | string;\n  /** Width below which the table stacks into a two column comparison. Defaults to 640. */\n  stackBelow?: number;\n  className?: string;\n}\n\nconst snappy = motionTokens.spring.snappy;\nconst smooth = motionTokens.spring.smooth;\nconst morph = motionTokens.spring.morph;\n\nfunction useControllable<T>(value: T | undefined, initial: T, onChange?: (next: T) => void) {\n  const [inner, setInner] = useState(initial);\n  const current = value !== undefined ? value : inner;\n  const set = (next: T) => { if (value === undefined) setInner(next); onChange?.(next); };\n  return [current, set] as const;\n}\n\nfunction normalize(value: ComparisonValue | undefined) {\n  if (value === undefined) return { value: false as const, note: undefined };\n  if (typeof value === \"object\") return value;\n  return { value, note: undefined };\n}\nconst keyOf = (value: ComparisonValue | undefined) => { const item = normalize(value); return `${item.value}`; };\n\nfunction Mark({ value, own, index, reduced }: { value: ComparisonValue | undefined; own: boolean; index: number; reduced: boolean }) {\n  const { value: v, note } = normalize(value);\n  if (typeof v === \"string\" && v !== \"partial\") return <span className={styles.text}>{v}</span>;\n  if (v === true) return <span className={styles.markWrap}>\n    <svg className={styles.check} data-own={own || undefined} width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" aria-hidden=\"true\">\n      <circle cx=\"11\" cy=\"11\" r=\"10\" />\n      <motion.path d=\"M6.6 11.3l3 3 5.9-6.4\" initial={reduced ? false : { pathLength: 0 }} whileInView={{ pathLength: 1 }} viewport={{ once: true, amount: 1 }} transition={{ duration: motionTokens.duration.considered, ease: [...motionTokens.ease.enter], delay: own ? .06 + Math.min(index, 12) * .035 : 0 }} />\n    </svg>\n    <span className={styles.srOnly}>Included</span>\n  </span>;\n  if (v === \"partial\") return <span className={styles.markWrap}>\n    <svg className={styles.partial} width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"9.25\" /><path d=\"M11 1.75a9.25 9.25 0 0 1 0 18.5z\" /></svg>\n    <span className={styles.srOnly}>Partial</span>\n    {note && <span className={styles.note}>{note}</span>}\n  </span>;\n  return <span className={styles.markWrap}><Minus className={styles.cross} size={18} strokeWidth={1.75} aria-hidden=\"true\" /><span className={styles.srOnly}>Not included</span></span>;\n}\n\nexport function ComparisonTable({\n  title = \"How Relay compares\",\n  description = \"Everything a growing team needs, without the enterprise price or the spreadsheet sprawl.\",\n  columns = comparisonColumns,\n  sections = comparisonSections,\n  differencesOnly: differencesProp,\n  defaultDifferencesOnly = false,\n  onDifferencesOnlyChange,\n  compareWith: compareProp,\n  onCompareWithChange,\n  cta,\n  stickyTop = 0,\n  maxHeight,\n  stackBelow = 640,\n  className,\n}: ComparisonTableProps) {\n  const reduced = Boolean(useReducedMotion());\n  const uid = useId();\n  const rootRef = useRef<HTMLElement>(null);\n  const [narrow, setNarrow] = useState(false);\n  const [differencesOnly, setDifferencesOnly] = useControllable(differencesProp, defaultDifferencesOnly, onDifferencesOnlyChange);\n  const own = columns.find(column => column.highlight) ?? columns[0]!;\n  const others = columns.filter(column => column !== own);\n  const [compareWith, setCompareWith] = useControllable(compareProp, others[0]?.id ?? own.id, onCompareWithChange);\n  const [ctaDone, setCtaDone] = useState(false);\n\n  useEffect(() => {\n    const node = rootRef.current;\n    if (!node) return;\n    const observer = new ResizeObserver(([entry]) => { if (entry) setNarrow(entry.contentRect.width < stackBelow); });\n    observer.observe(node);\n    return () => observer.disconnect();\n  }, [stackBelow]);\n\n  const visible = narrow ? columns.filter(column => column === own || column.id === compareWith) : columns;\n  const differs = (values: Record<string, ComparisonValue>) => new Set(visible.map(column => keyOf(values[column.id]))).size > 1;\n  const gridStyle = { \"--columns\": visible.length, \"--sticky-top\": `${stickyTop}px` } as CSSProperties;\n  let rowIndex = 0;\n\n  const header = <div role=\"row\" className={styles.headRow}>\n    <div role=\"columnheader\" className={styles.headFeature}><span className={styles.srOnly}>Feature</span></div>\n    {visible.map(column => <div key={column === own ? \"own\" : narrow ? \"other\" : column.id} role=\"columnheader\" className={styles.headCell} data-own={column === own || undefined}>\n      <AnimatePresence mode=\"popLayout\" initial={false}>\n        <motion.span key={column.id} className={styles.headText} initial={reduced ? { opacity: 0 } : { opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={reduced ? { opacity: 0 } : { opacity: 0, y: -8 }} transition={smooth}>\n          <span className={styles.headName}>{column.name}</span>\n          {column.caption && <span className={styles.headCaption}>{column.caption}</span>}\n        </motion.span>\n      </AnimatePresence>\n    </div>)}\n  </div>;\n\n  return <section ref={rootRef} className={[styles.root, className].filter(Boolean).join(\" \")} aria-labelledby={`${uid}-title`} data-narrow={narrow || undefined}>\n    <div className={styles.inner}>\n      <header className={styles.header}>\n        <div className={styles.intro}>\n          <h2 id={`${uid}-title`} className={styles.title}>{title}</h2>\n          {description && <p className={styles.description}>{description}</p>}\n        </div>\n        <label className={styles.toggle}>\n          <span>Only differences</span>\n          <input type=\"checkbox\" role=\"switch\" checked={differencesOnly} onChange={event => setDifferencesOnly(event.target.checked)} />\n          <span className={styles.switch} aria-hidden=\"true\"><span className={styles.thumb} /></span>\n        </label>\n      </header>\n\n      {narrow && others.length > 1 && <div className={styles.picker} role=\"group\" aria-label={`Compare ${own.name} with`}>\n        <LayoutGroup id={`${uid}-picker`}>\n          {others.map(column => <button key={column.id} type=\"button\" className={styles.pick} aria-pressed={column.id === compareWith} onClick={() => setCompareWith(column.id)}>\n            {column.id === compareWith && <motion.span layoutId=\"pick\" className={styles.pickHighlight} transition={reduced ? { duration: 0 } : morph} />}\n            <span>{column.name}</span>\n          </button>)}\n        </LayoutGroup>\n      </div>}\n\n      <div className={styles.scroller} style={maxHeight !== undefined ? { maxHeight, overflowY: \"auto\" } : undefined} tabIndex={maxHeight !== undefined ? 0 : undefined} aria-label={maxHeight !== undefined ? title : undefined} role={maxHeight !== undefined ? \"region\" : undefined}>\n        <div role=\"table\" aria-labelledby={`${uid}-title`} className={styles.table} style={gridStyle}>\n          <div role=\"rowgroup\" className={styles.head}>{header}</div>\n          {sections.map(section => {\n            const rows = differencesOnly ? section.rows.filter(row => differs(row.values)) : section.rows;\n            return <div role=\"rowgroup\" key={section.id} className={styles.section}>\n              <AnimatePresence initial={false}>\n                {rows.length > 0 && <motion.div key=\"title\" role=\"row\" className={styles.sectionRow} initial={{ height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={{ height: 0, opacity: 0 }} transition={reduced ? { duration: 0 } : smooth}>\n                  <div role=\"rowheader\" className={styles.sectionTitle}>{section.title}</div>\n                  {visible.map(column => <div key={column.id} role=\"cell\" className={styles.band} data-own={column === own || undefined} />)}\n                </motion.div>}\n                {rows.map(row => {\n                  const index = rowIndex++;\n                  return <motion.div key={row.id} role=\"row\" className={styles.row} initial={{ height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={{ height: 0, opacity: 0 }} transition={reduced ? { duration: 0 } : smooth}>\n                    <div role=\"rowheader\" className={styles.feature}>\n                      <span>{row.feature}</span>\n                      {row.hint && <span className={styles.hint}>{row.hint}</span>}\n                    </div>\n                    {visible.map(column => <div key={column === own ? \"own\" : narrow ? \"other\" : column.id} role=\"cell\" className={styles.cell} data-own={column === own || undefined}>\n                      <AnimatePresence mode=\"popLayout\" initial={false}>\n                        <motion.span key={`${column.id}`} className={styles.cellInner} initial={reduced ? { opacity: 0 } : { opacity: 0, scale: .8 }} animate={{ opacity: 1, scale: 1 }} exit={reduced ? { opacity: 0 } : { opacity: 0, scale: .8 }} transition={snappy}>\n                          <Mark value={row.values[column.id]} own={column === own} index={index} reduced={reduced} />\n                        </motion.span>\n                      </AnimatePresence>\n                    </div>)}\n                  </motion.div>;\n                })}\n              </AnimatePresence>\n            </div>;\n          })}\n          <div role=\"rowgroup\">\n            <div role=\"row\" className={styles.footRow}>\n              <div role=\"cell\" className={styles.legend}>\n                <span><svg className={styles.check} width=\"16\" height=\"16\" viewBox=\"0 0 22 22\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"10\" /><path d=\"M6.6 11.3l3 3 5.9-6.4\" /></svg>Included</span>\n                <span><svg className={styles.partial} width=\"16\" height=\"16\" viewBox=\"0 0 22 22\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"9.25\" /><path d=\"M11 1.75a9.25 9.25 0 0 1 0 18.5z\" /></svg>Partial</span>\n                <span><Minus className={styles.cross} size={14} strokeWidth={1.75} aria-hidden=\"true\" />Not included</span>\n              </div>\n              {visible.map(column => <div key={column.id} role=\"cell\" className={styles.footCell} data-own={column === own || undefined}>\n                {column === own && cta && (cta.href && !cta.onClick\n                  ? <a className={styles.cta} href={cta.href}>{cta.label}</a>\n                  : <motion.button type=\"button\" layout={!reduced} className={styles.cta} style={{ borderRadius: 9999 }} data-done={ctaDone || undefined} whileTap={reduced ? undefined : { scale: .97 }} transition={morph} onClick={() => { cta.onClick?.(); if (cta.doneLabel) setCtaDone(true); }}>\n                    <AnimatePresence mode=\"popLayout\" initial={false}>\n                      <motion.span key={ctaDone ? \"done\" : \"idle\"} layout={reduced ? false : \"position\"} className={styles.ctaLabel} initial={reduced ? { opacity: 0 } : { opacity: 0, y: 8, filter: \"blur(2px)\" }} animate={{ opacity: 1, y: 0, filter: \"blur(0px)\" }} exit={reduced ? { opacity: 0 } : { opacity: 0, y: -8, filter: \"blur(2px)\" }} transition={{ duration: motionTokens.duration.standard, ease: [...motionTokens.ease.standard] }}>\n                        {ctaDone ? <><Check size={14} strokeWidth={2} aria-hidden=\"true\" />{cta.doneLabel}</> : cta.label}\n                      </motion.span>\n                    </AnimatePresence>\n                  </motion.button>)}\n              </div>)}\n            </div>\n          </div>\n        </div>\n      </div>\n      <p className={styles.srOnly} aria-live=\"polite\">{differencesOnly ? \"Showing only rows that differ\" : \"Showing all rows\"}</p>\n    </div>\n  </section>;\n}\n\n/** Preview: the comparison inside a capped height so the sticky header shows. */\nexport function ComparisonTableBlock() {\n  return <ComparisonTable maxHeight=\"min(760px, 82vh)\" cta={{ label: \"Start free trial\", doneLabel: \"Trial started\" }} />;\n}\n\nexport default ComparisonTableBlock;\n"},{"path":"registry/blocks/comparison-table/comparison-table-data.ts","type":"registry:component","target":"@components/arc/blocks/comparison-table/comparison-table-data.ts","content":"/** Sample comparison for the comparison table. Competitor names are generic categories, not real products. */\n\n/** true is included, false is not, \"partial\" is limited, and a string prints as text (a limit, a price). */\nexport type ComparisonValue = boolean | \"partial\" | string | { value: boolean | \"partial\" | string; note?: string };\n\nexport type ComparisonColumn = {\n  id: string;\n  name: string;\n  /** A short line under the name, such as a price. */\n  caption?: string;\n  /** Your product. It gets the tinted band and stays visible on phones. */\n  highlight?: boolean;\n};\n\nexport type ComparisonRow = {\n  id: string;\n  feature: string;\n  /** Secondary text under the feature name. */\n  hint?: string;\n  values: Record<string, ComparisonValue>;\n};\n\nexport type ComparisonSection = { id: string; title: string; rows: ComparisonRow[] };\n\nexport const comparisonColumns: ComparisonColumn[] = [\n  { id: \"relay\", name: \"Relay\", caption: \"$10 per seat\", highlight: true },\n  { id: \"suite\", name: \"Legacy suite\", caption: \"$24 per seat\" },\n  { id: \"sheets\", name: \"Spreadsheets\", caption: \"Free\" },\n  { id: \"point\", name: \"Point tools\", caption: \"$16 per seat\" },\n];\n\nexport const comparisonSections: ComparisonSection[] = [\n  {\n    id: \"planning\", title: \"Planning\", rows: [\n      { id: \"projects\", feature: \"Projects\", values: { relay: \"Unlimited\", suite: \"Up to 50\", sheets: \"Unlimited\", point: \"Up to 10\" } },\n      { id: \"roadmaps\", feature: \"Timelines and roadmaps\", values: { relay: true, suite: true, sheets: false, point: { value: \"partial\", note: \"Timeline only\" } } },\n      { id: \"dependencies\", feature: \"Dependencies\", hint: \"Blocked work moves when its blocker does\", values: { relay: true, suite: true, sheets: false, point: false } },\n      { id: \"templates\", feature: \"Templates\", values: { relay: true, suite: true, sheets: { value: \"partial\", note: \"Manual copies\" }, point: true } },\n    ],\n  },\n  {\n    id: \"collaboration\", title: \"Collaboration\", rows: [\n      { id: \"realtime\", feature: \"Real time editing\", values: { relay: true, suite: false, sheets: true, point: true } },\n      { id: \"guests\", feature: \"Free guest access\", values: { relay: true, suite: false, sheets: true, point: { value: \"partial\", note: \"Five guests\" } } },\n      { id: \"comments\", feature: \"Comments and mentions\", values: { relay: true, suite: true, sheets: true, point: true } },\n      { id: \"offline\", feature: \"Offline mode\", hint: \"Edits sync when you reconnect\", values: { relay: true, suite: false, sheets: { value: \"partial\", note: \"Desktop app only\" }, point: false } },\n    ],\n  },\n  {\n    id: \"automation\", title: \"Automation\", rows: [\n      { id: \"rules\", feature: \"Rules and triggers\", values: { relay: true, suite: true, sheets: false, point: { value: \"partial\", note: \"Paid add on\" } } },\n      { id: \"ai\", feature: \"AI summaries\", values: { relay: true, suite: false, sheets: false, point: false } },\n      { id: \"api\", feature: \"Public API\", values: { relay: true, suite: true, sheets: true, point: true } },\n    ],\n  },\n  {\n    id: \"security\", title: \"Security\", rows: [\n      { id: \"sso\", feature: \"SAML single sign on\", values: { relay: true, suite: true, sheets: { value: \"partial\", note: \"Enterprise plan\" }, point: false } },\n      { id: \"audit\", feature: \"Audit log\", values: { relay: true, suite: true, sheets: false, point: false } },\n      { id: \"residency\", feature: \"EU data residency\", values: { relay: true, suite: { value: \"partial\", note: \"Enterprise plan\" }, sheets: true, point: false } },\n    ],\n  },\n];\n"},{"path":"registry/blocks/comparison-table/comparison-table.module.css","type":"registry:component","target":"@components/arc/blocks/comparison-table/comparison-table.module.css","content":".root { width: 100%; min-width: 0; container: compare / inline-size; background: var(--background); color: var(--foreground); font-family: var(--font-body); letter-spacing: var(--tracking-body); }\n.inner { display: grid; gap: var(--space-8); max-width: 1080px; margin: 0 auto; padding: var(--space-16) var(--space-6); }\n.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n.header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }\n.intro { display: grid; gap: var(--space-3); max-width: 560px; }\n.title { margin: 0; font-family: var(--font-display); font-size: clamp(var(--text-2xl), 1rem + 3cqi, 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-base); line-height: var(--leading-body); text-wrap: pretty; }\n\n.toggle { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }\n.toggle input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }\n.switch { position: relative; width: 38px; height: 22px; flex: none; border-radius: var(--radius-pill); background: var(--control-track); transition: background-color var(--duration-fast) var(--ease-standard); }\n.thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--control-thumb); box-shadow: var(--control-thumb-shadow); transition: transform var(--duration-spring) var(--ease-spring), background-color var(--duration-fast) var(--ease-standard); }\n.toggle input:checked + .switch { background: var(--control-on); }\n.toggle input:checked + .switch .thumb { background: var(--control-thumb-on); transform: translateX(16px); }\n.toggle:has(input:checked) { color: var(--foreground); }\n@media (hover: hover) and (pointer: fine) { .toggle:hover input:not(:checked) + .switch { background: var(--control-track-hover); } }\n\n.picker { display: flex; gap: 2px; margin: 0 calc(var(--space-4) * -1); overflow-x: auto; padding: 0 var(--space-4); scrollbar-width: none; }\n.picker::-webkit-scrollbar { display: none; }\n.pick { position: relative; isolation: isolate; flex: none; height: 36px; border: 0; border-radius: var(--radius-pill); padding: 0 var(--space-4); background: none; color: var(--text-secondary); font: inherit; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--duration-fast) var(--ease-standard); }\n.pick[aria-pressed=\"true\"] { color: var(--foreground); }\n.pickHighlight { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--surface-muted); }\n\n.scroller { position: relative; overscroll-behavior: contain; scrollbar-width: thin; }\n.table { --band: color-mix(in oklab, var(--accent) 6%, var(--surface)); --grid: minmax(0, 1.7fr) repeat(var(--columns), minmax(0, 1fr)); display: grid; }\n.head { position: sticky; z-index: 3; top: var(--sticky-top, 0); background: color-mix(in oklab, var(--background) 94%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }\n.headRow, .row, .sectionRow, .footRow { display: grid; grid-template-columns: var(--grid); }\n.headRow { border-bottom: 1px solid var(--border); }\n.headFeature { min-height: 84px; }\n.headCell { position: relative; display: grid; min-height: 84px; align-items: end; justify-items: center; overflow: hidden; padding: var(--space-4) var(--space-2) var(--space-4); text-align: center; }\n.headCell[data-own] { border-radius: 20px 20px 0 0; background: var(--band); }\n.headText { display: grid; gap: 2px; }\n.headName { font-size: var(--text-base); font-weight: 500; line-height: var(--leading-body); }\n.headCell[data-own] .headName { color: var(--accent-strong); }\n:global([data-theme=\"dark\"]) .headCell[data-own] .headName { color: var(--foreground); }\n.headCaption { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); font-variant-numeric: tabular-nums; }\n\n.section { display: contents; }\n.sectionRow { overflow: hidden; }\n.sectionTitle { padding: var(--space-8) var(--space-2) var(--space-2) 0; color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; }\n.band[data-own] { background: var(--band); }\n.row { overflow: hidden; }\n.row > * { border-bottom: 1px solid var(--border-subtle); transition: background-color var(--duration-fast) var(--ease-standard); }\n.feature { display: grid; align-content: center; gap: 2px; min-height: 56px; padding: var(--space-3) var(--space-4) var(--space-3) 0; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); }\n.hint { color: var(--text-muted); font-size: var(--text-xs); font-weight: 400; }\n.cell { position: relative; display: grid; place-items: center; padding: var(--space-2); text-align: center; }\n.cell[data-own] { background: var(--band); }\n.cellInner { display: grid; place-items: center; }\n@media (hover: hover) and (pointer: fine) {\n  .row:hover > * { background: color-mix(in oklab, var(--foreground) 2.5%, transparent); }\n  .row:hover > .cell[data-own] { background: color-mix(in oklab, var(--accent) 9%, var(--surface)); }\n}\n\n.markWrap { display: inline-grid; justify-items: center; gap: 2px; }\n.check circle { fill: color-mix(in oklab, var(--foreground) 8%, transparent); }\n.check path { fill: none; stroke: var(--foreground); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }\n.check[data-own] circle { fill: var(--control-on); }\n.check[data-own] path { stroke: var(--control-glyph); }\n.partial circle { fill: none; stroke: var(--text-muted); stroke-width: 1.5; }\n.partial path { fill: var(--text-muted); }\n.cross { color: var(--text-muted); opacity: .7; }\n.note { max-width: 12ch; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }\n.text { font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }\n.cell:not([data-own]) .text { color: var(--text-secondary); font-weight: 400; }\n\n.footRow > * { padding-top: var(--space-5); }\n.footCell { display: grid; place-items: center; padding-bottom: var(--space-5); }\n.footCell[data-own] { border-radius: 0 0 20px 20px; background: var(--band); }\n.legend { display: flex; flex-wrap: wrap; align-content: start; gap: var(--space-2) var(--space-4); padding-right: var(--space-4); color: var(--text-muted); font-size: var(--text-xs); }\n.legend span { display: inline-flex; align-items: center; gap: 6px; }\n.legend .check path { stroke-width: 2.2; }\n.cta { display: inline-flex; height: var(--control-height-sm); max-width: calc(100% - var(--space-2)); align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: var(--radius-pill); padding: 0 var(--space-4); background: var(--foreground); color: var(--background); font: inherit; font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard); }\na.cta { transition: transform var(--duration-instant) var(--ease-standard); }\na.cta:active { transform: scale(.97); }\n.cta[data-done] { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }\n.ctaLabel { display: inline-flex; align-items: center; gap: 6px; }\n\n@container compare (max-width: 820px) {\n  .table { --grid: minmax(0, 1.4fr) repeat(var(--columns), minmax(0, 1fr)); }\n}\n@container compare (max-width: 640px) {\n  .inner { gap: var(--space-6); padding: var(--space-12) var(--space-4); }\n  .table { --grid: minmax(0, 1.3fr) repeat(var(--columns), minmax(0, .9fr)); }\n  .headFeature, .headCell { min-height: 72px; }\n  .legend { flex-direction: column; }\n  .feature { padding-right: var(--space-3); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .thumb { transition: none; }\n}\n"}],"docs":"Use this on a pricing or alternatives page. Describe your columns and feature rows in comparison-table-data.ts, mark your product with highlight, and point the cta at signup; stickyTop offsets the header under a fixed site header.","meta":{"tier":"free","kind":"block","builtFrom":["Switch","Button"],"docs":"https://uiarc.dev/components/blocks/comparison-table"}}