Console pricing
A dark-room hardware pricing configurator: three sculpted workload faders with LED bargraphs on the left mechanically wired into high-contrast plan slabs on the right.
Used forAI inference & GPU cloud platformsObservability & log pipelinesUsage-based developer APIsEnterprise hardware & edge SaaS
Install with the shadcn CLI
$ npxnpx shadcn@latest add @hairline/console-pricingOlder shadcn CLI, or a network that blocks ui.shadcn.com? Install by URL: shadcn add https://hairlineui.com/r/console-pricing.json. More
Templates
Need the whole page?
64 Next.js landing pages, each designed from scratch. Try any of them live; one is $39, all of them $159, and 8 are free.
Where it’s used
AI inference & GPU cloud platforms
Lets teams dial seats, monthly tokens and trace retention to see which dedicated cluster fits.
Observability & log pipelines
Combines ingest volume, host count and retention window into live metered slab totals.
Usage-based developer APIs
Shows exact per-axis allocation inside the dark-glass meter while matching the optimal commitment tier.
Enterprise hardware & edge SaaS
Brings an industrial obsidian-and-brass palette (--cp-*) that looks custom-built for technical buyers.
What it handles for you
Multi-axis SaaS pricing usually turns into an overwhelming spreadsheet or a plain form of range inputs that never connects visually to the plans.
- 01
Three sculpted hardware fader tracks
Each axis renders a recessed trough, 18-segment phosphor bargraph and milled metal cap with pointer capture and keyboard arrow keys.
- 02
Recessed live breakdown meter
Itemizes each fader’s metered contribution and updates the live delta as you scrub.
- 03
Mechanically wired plan slabs
High-contrast monolithic slabs illuminate their brass left-edge bus terminal automatically when workload crosses into their envelope.
- 04
Own --cp-* obsidian and graphite tones
Ships with obsidian and graphite hardware palettes that never inherit default theme blues or purples.
- 05
Inline async cluster allocation
Passes planId, billing, fader values and estimated monthly spend straight to your onCommitPlan handler.
- 06
Zero libraries, container responsive
Stacks cleanly from single-column phones to the 12-column hardware bench using CSS container queries.
Overview
Infrastructure and AI products price along multiple axes at once: seats, monthly compute and retention. Console pricing puts an anodized obsidian and brass hardware deck on the left with three tactile fader tracks and 18-segment phosphor LED bargraphs. Dragging any fader updates the recessed dark-glass allocation meter in real time and lights up the matching brass bus terminal on the monolithic plan slabs beside it, recalculating each tier’s live metered rate without a single floating card or generic slider.
States
- fader scrub
- Dragging any sculpted fader lights up the 18-segment phosphor bargraph, updates the recessed breakdown meter and eases every slab total.
- bus match
- When total metered spend crosses a tier ceiling, the brass left-edge bus bar and Matched bus plate switch to the next monolithic slab.
- billing interval
- Toggling Monthly and Annual recalculates every metered slab immediately with the configured discount.
- plan commit
- Clicking a slab action runs onCommitPlan with Allocating… and Allocated check feedback in place.
- reduced motion
- Updates slab totals immediately without numeric easing travel.
Usage
import { ConsolePricing } from "@/components/console-pricing";<ConsolePricing onCommitPlan={async ({ planId, billing, faders, estimatedMonthly }) => { await fetch("/api/provision", { method: "POST", body: JSON.stringify({ planId, billing, faders, estimatedMonthly }), }); }}/>Depends on lucide-react, installed for you by the CLI along with the keyframes it needs.
Multi-axis AI or observability pricing with Space Grotesk
Pass your own fader axes and plan slabs; override --cp-display or any --cp-* colour variable on the root.
import { Space_Grotesk } from "next/font/google";import { ConsolePricing } from "@/components/console-pricing";const display = Space_Grotesk({ subsets: ["latin"] });export function PricingDesk() { return ( <ConsolePricing tone="obsidian" style={{ "--cp-display": display.style.fontFamily } as React.CSSProperties} annualDiscountPct={18} onCommitPlan={async (selection) => { console.log("Selected cluster:", selection); }} /> );}Props
| Prop | Type | Description |
|---|---|---|
| tone | 'obsidian' | 'graphite'= 'obsidian' | Obsidian-and-brass or graphite-and-copper darkroom finish. |
| eyebrow / heading / subheading | string | Top header strip copy. |
| annualDiscountPct | number= 18 | Percentage discount applied to metered slab totals when Annual is selected. |
| faders | ConsoleFaderConfig[] | Workload fader axes: id, label, unit, min, max, step, defaultValue, ratePerUnit. |
| plans | ConsolePlanSlab[] | Monolithic plan slabs with basePrice, meteredFactor and maxMeteredThreshold. |
| onCommitPlan | (selection: ConsoleSelection) => Promise<unknown> | void | Async callback receiving the selected plan, billing cycle, fader map and estimated total. |
- tone= 'obsidian'
- 'obsidian' | 'graphite'
- Obsidian-and-brass or graphite-and-copper darkroom finish.
- eyebrow / heading / subheading
- string
- Top header strip copy.
- annualDiscountPct= 18
- number
- Percentage discount applied to metered slab totals when Annual is selected.
- faders
- ConsoleFaderConfig[]
- Workload fader axes: id, label, unit, min, max, step, defaultValue, ratePerUnit.
- plans
- ConsolePlanSlab[]
- Monolithic plan slabs with basePrice, meteredFactor and maxMeteredThreshold.
- onCommitPlan
- (selection: ConsoleSelection) => Promise<unknown> | void
- Async callback receiving the selected plan, billing cycle, fader map and estimated total.
Accessibility and motion
- Self-contained with zero animation libraries and zero external registry dependencies.
- Every fader exposes role="slider" with aria-valuetext and Arrow/Home/End keyboard controls.
- All colours ship as --cp-* CSS variables so buyers can tune brass, room or chassis tones cleanly.
Requirements
React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.
Source
"use client";import * as React from "react";import { ArrowRight, Check } from "lucide-react";/* ───────────────────────────────────────────────────────── * CONSOLE PRICING — dark-room hardware configurator * * panel lit obsidian/brass instrument deck on the left with * 3 tactile sculpted workload faders (seats, usage, * retention), 16-segment LED bargraphs and a recessed * phosphor cost breakdown screen * slabs 3 monolithic high-contrast plan slabs on the right * mechanically wired via brass bus terminals that * illuminate whichever envelope matches the workload * ───────────────────────────────────────────────────────── */export type ConsoleBilling = "monthly" | "annual";export type ConsoleTone = "obsidian" | "graphite";export interface ConsoleFaderConfig { id: string; label: string; unit: string; min: number; max: number; step: number; defaultValue: number; /** Dollars added per unit above min in live metered calculation */ ratePerUnit: number; /** Optional display formatter */ formatValue?: (value: number) => string;}export interface ConsolePlanSlab { id: string; name: string; summary: string; /** Base monthly price before metered workload add-ons; null = Custom */ basePrice: number | null; /** Multiplier applied to metered workload on this slab (e.g. volume efficiency) */ meteredFactor?: number; /** Recommended when live raw metered cost sits below this ceiling (null = top tier) */ maxMeteredThreshold: number | null; specs: string[]; ctaLabel: string;}export interface ConsoleSelection { planId: string; billing: ConsoleBilling; faders: Record<string, number>; estimatedMonthly: number | null;}export interface ConsolePricingProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> { eyebrow?: string; heading?: string; subheading?: string; tone?: ConsoleTone; annualDiscountPct?: number; faders?: ConsoleFaderConfig[]; plans?: ConsolePlanSlab[]; onCommitPlan?: (selection: ConsoleSelection) => Promise<unknown> | void;}const TONES: Record<ConsoleTone, Record<string, string>> = { obsidian: { "--cp-room": "#090a0c", "--cp-chassis": "#121418", "--cp-slab": "#15171c", "--cp-slab-active": "#1b1e24", "--cp-trough": "#07080a", "--cp-glass": "#0b0d10", "--cp-ink": "#f3f1ea", "--cp-ink-2": "#9ca0aa", "--cp-ink-3": "#636873", "--cp-edge": "rgba(243, 241, 234, 0.1)", "--cp-edge-strong": "rgba(243, 241, 234, 0.22)", "--cp-brass": "#e3aa3c", "--cp-brass-hot": "#f7c966", "--cp-brass-dim": "rgba(227, 170, 60, 0.22)", "--cp-on-brass": "#0b0c0e", "--cp-cap-top": "#383c45", "--cp-cap-bot": "#1f2228", }, graphite: { "--cp-room": "#131518", "--cp-chassis": "#1b1e23", "--cp-slab": "#1e2127", "--cp-slab-active": "#262a32", "--cp-trough": "#0d0f12", "--cp-glass": "#101216", "--cp-ink": "#f5f4ef", "--cp-ink-2": "#a6abb5", "--cp-ink-3": "#6f7580", "--cp-edge": "rgba(245, 244, 239, 0.11)", "--cp-edge-strong": "rgba(245, 244, 239, 0.24)", "--cp-brass": "#ea943c", "--cp-brass-hot": "#ffb261", "--cp-brass-dim": "rgba(234, 148, 60, 0.22)", "--cp-on-brass": "#0f1012", "--cp-cap-top": "#454a54", "--cp-cap-bot": "#282c34", },};const DEFAULT_FADERS: ConsoleFaderConfig[] = [ { id: "seats", label: "Operator seats", unit: "seats", min: 5, max: 100, step: 5, defaultValue: 20, ratePerUnit: 8, }, { id: "compute", label: "Monthly inference", unit: "M tokens", min: 10, max: 500, step: 10, defaultValue: 120, ratePerUnit: 1.4, }, { id: "retention", label: "Trace retention", unit: "days", min: 14, max: 365, step: 15, defaultValue: 90, ratePerUnit: 0.65, },];const DEFAULT_PLANS: ConsolePlanSlab[] = [ { id: "core", name: "Core Rack", summary: "Shared inference pool with automatic failover and standard trace archive.", basePrice: 120, meteredFactor: 1.0, maxMeteredThreshold: 340, specs: ["Up to 25 seats", "Multi-region edge routing", "90-day trace lookup"], ctaLabel: "Provision Core", }, { id: "dedicated", name: "Dedicated Bus", summary: "Reserved GPU slices, private peering and zero cold starts under load.", basePrice: 390, meteredFactor: 0.78, maxMeteredThreshold: 760, specs: ["Up to 100 seats", "Guaranteed throughput floor", "SOC 2 + SAML SSO"], ctaLabel: "Provision Dedicated", }, { id: "sovereign", name: "Sovereign Cluster", summary: "Single-tenant bare metal in your cloud region with custom retention SLA.", basePrice: null, meteredFactor: 0.6, maxMeteredThreshold: null, specs: ["Unlimited seats", "BYOC / VPC peering", "15-minute pager response"], ctaLabel: "Configure cluster", },];const REDUCED_QUERY = "(prefers-reduced-motion: reduce)";const subscribeReduced = (cb: () => void) => { if (typeof window === "undefined") return () => {}; const mq = window.matchMedia(REDUCED_QUERY); mq.addEventListener("change", cb); return () => mq.removeEventListener("change", cb);};const useReducedMotion = () => React.useSyncExternalStore( subscribeReduced, () => (typeof window !== "undefined" ? window.matchMedia(REDUCED_QUERY).matches : false), () => false, );function clamp(v: number, lo: number, hi: number) { return Math.max(lo, Math.min(hi, v));}function EasedNumber({ value, reduced }: { value: number; reduced: boolean }) { const [shown, setShown] = React.useState(value); const curRef = React.useRef(value); const rafRef = React.useRef<number | null>(null); React.useEffect(() => { if (reduced) { curRef.current = value; return; } const from = curRef.current; if (from === value) return; const t0 = performance.now(); const dur = 260; const tick = (now: number) => { const p = Math.min(1, (now - t0) / dur); const e = 1 - Math.pow(1 - p, 3); const next = Math.round(from + (value - from) * e); curRef.current = next; setShown(next); if (p < 1) rafRef.current = requestAnimationFrame(tick); }; rafRef.current = requestAnimationFrame(tick); return () => { if (rafRef.current !== null) cancelAnimationFrame(rafRef.current); }; }, [value, reduced]); const rendered = reduced ? value : shown; return <span className="tabular-nums">${rendered.toLocaleString("en-US")}</span>;}const SEGMENTS = 18;/** Individual milled hardware fader channel with 18-segment phosphor LED bargraph. */function HardwareFader({ config, value, onChange,}: { config: ConsoleFaderConfig; value: number; onChange: (next: number) => void;}) { const trackRef = React.useRef<HTMLDivElement>(null); const [active, setActive] = React.useState(false); const ratio = clamp((value - config.min) / Math.max(1, config.max - config.min), 0, 1); const litCount = Math.max(1, Math.round(ratio * SEGMENTS)); const setFromClientX = (clientX: number) => { const el = trackRef.current; if (!el) return; const rect = el.getBoundingClientRect(); const r = clamp((clientX - rect.left) / Math.max(1, rect.width), 0, 1); const raw = config.min + r * (config.max - config.min); const snapped = Math.round((raw - config.min) / config.step) * config.step + config.min; onChange(clamp(snapped, config.min, config.max)); }; const handlePointerDown = (e: React.PointerEvent<HTMLDivElement>) => { if (e.button !== 0 && e.pointerType === "mouse") return; e.currentTarget.setPointerCapture(e.pointerId); setActive(true); setFromClientX(e.clientX); }; const handlePointerMove = (e: React.PointerEvent<HTMLDivElement>) => { if (!active) return; setFromClientX(e.clientX); }; const handlePointerUp = () => { setActive(false); }; const handleKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => { if (e.key === "ArrowRight" || e.key === "ArrowUp") { e.preventDefault(); onChange(clamp(value + config.step, config.min, config.max)); } else if (e.key === "ArrowLeft" || e.key === "ArrowDown") { e.preventDefault(); onChange(clamp(value - config.step, config.min, config.max)); } else if (e.key === "Home") { e.preventDefault(); onChange(config.min); } else if (e.key === "End") { e.preventDefault(); onChange(config.max); } }; const formatted = config.formatValue ? config.formatValue(value) : `${value.toLocaleString("en-US")} ${config.unit}`; return ( <div className="py-4 first:pt-0 last:pb-0"> <div className="mb-2.5 flex items-baseline justify-between gap-3"> <span className="text-[12.5px] font-medium tracking-[0.02em]" style={{ color: "var(--cp-ink)" }}> {config.label} </span> <span className="text-[13.5px] font-semibold tabular-nums" style={{ color: "var(--cp-brass-hot)" }} > {formatted} </span> </div> {/* Recessed physical fader trough + 18-segment LED bargraph */} <div ref={trackRef} role="slider" tabIndex={0} aria-label={config.label} aria-valuemin={config.min} aria-valuemax={config.max} aria-valuenow={value} aria-valuetext={formatted} onKeyDown={handleKeyDown} onPointerDown={handlePointerDown} onPointerMove={handlePointerMove} onPointerUp={handlePointerUp} onPointerCancel={handlePointerUp} className={`relative flex h-11 w-full items-center border px-2 select-none focus-visible:outline-2 focus-visible:outline-offset-2 ${ active ? "cursor-grabbing" : "cursor-grab" }`} style={{ touchAction: "none", background: "var(--cp-trough)", borderColor: active ? "var(--cp-brass)" : "var(--cp-edge)", boxShadow: "inset 0 2px 6px rgba(0,0,0,0.75)", outlineColor: "var(--cp-brass)", }} > {/* Center machined rail groove */} <span aria-hidden="true" className="pointer-events-none absolute right-3 left-3 h-[2px]" style={{ background: "rgba(255,255,255,0.08)" }} /> {/* 18-segment phosphor LED bargraph */} <div aria-hidden="true" className="pointer-events-none relative z-[1] flex w-full items-center justify-between gap-1"> {Array.from({ length: SEGMENTS }, (_, idx) => { const lit = idx < litCount; const hot = lit && idx >= SEGMENTS - 3; return ( <span key={idx} className="h-3.5 flex-1 transition-opacity duration-100" style={{ background: lit ? (hot ? "var(--cp-brass-hot)" : "var(--cp-brass)") : "rgba(255,255,255,0.06)", opacity: lit ? 0.85 : 1, }} /> ); })} </div> {/* Sculpted machined metal fader cap */} <div aria-hidden="true" className="pointer-events-none absolute top-[3px] bottom-[3px] z-10 flex w-7 -translate-x-1/2 items-center justify-center border" style={{ left: `calc(${ratio * 100}% + ${(0.5 - ratio) * 28}px)`, background: "linear-gradient(180deg, var(--cp-cap-top) 0%, var(--cp-cap-bot) 100%)", borderColor: active ? "var(--cp-brass-hot)" : "var(--cp-edge-strong)", boxShadow: "0 2px 8px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.22)", }} > {/* Center brass detent line */} <span className="h-5 w-[2px]" style={{ background: "var(--cp-brass-hot)" }} /> </div> </div> <div className="mt-1.5 flex justify-between text-[10.5px] tabular-nums" style={{ color: "var(--cp-ink-3)" }}> <span> {config.min} {config.unit} </span> <span> {config.max} {config.unit} </span> </div> </div> );}export function ConsolePricing({ eyebrow = "Capacity configurator", heading = "Dial your workload. Watch the rack price itself.", subheading = "Configure seats, monthly compute and retention on the left deck. The matching cluster slab locks in live with your metered rate.", tone = "obsidian", annualDiscountPct = 18, faders = DEFAULT_FADERS, plans = DEFAULT_PLANS, onCommitPlan, className = "", style, ...rest}: ConsolePricingProps) { const reduced = useReducedMotion(); const [billing, setBilling] = React.useState<ConsoleBilling>("annual"); const [values, setValues] = React.useState<Record<string, number>>(() => Object.fromEntries(faders.map((f) => [f.id, f.defaultValue])), ); const [busyPlan, setBusyPlan] = React.useState<string | null>(null); const [donePlan, setDonePlan] = React.useState<string | null>(null); const [errMsg, setErrMsg] = React.useState<string | null>(null); // Sync if faders prop changes shape const safeValue = (f: ConsoleFaderConfig) => values[f.id] ?? f.defaultValue; const lineBreakdown = faders.map((f) => { const v = safeValue(f); const delta = Math.max(0, v - f.min); return { id: f.id, label: f.label, cost: Math.round(delta * f.ratePerUnit), }; }); const rawMetered = lineBreakdown.reduce((sum, item) => sum + item.cost, 0); // Determine active matched slab based on metered threshold const matchedPlanId = plans.find((p) => p.maxMeteredThreshold === null || rawMetered <= p.maxMeteredThreshold)?.id ?? plans[plans.length - 1]?.id ?? ""; const computeSlabMonthly = (plan: ConsolePlanSlab): number | null => { if (plan.basePrice === null) return null; const metered = rawMetered * (plan.meteredFactor ?? 1); const subtotal = plan.basePrice + metered; return billing === "annual" ? Math.round(subtotal * (1 - annualDiscountPct / 100)) : Math.round(subtotal); }; const handleCommit = async (plan: ConsolePlanSlab) => { setErrMsg(null); setBusyPlan(plan.id); const estimatedMonthly = computeSlabMonthly(plan); try { if (onCommitPlan) { await onCommitPlan({ planId: plan.id, billing, faders: Object.fromEntries(faders.map((f) => [f.id, safeValue(f)])), estimatedMonthly, }); } else { await new Promise((r) => setTimeout(r, 420)); } setDonePlan(plan.id); } catch (e) { setErrMsg(e instanceof Error ? e.message : "Could not allocate plan right now."); } finally { setBusyPlan(null); } }; const rootStyle = React.useMemo(() => ({ ...TONES[tone], ...style }) as React.CSSProperties, [tone, style]); return ( <section data-natural-width style={rootStyle} className={`@container relative w-full overflow-x-clip antialiased [font-family:var(--cp-text,inherit)] ${className}`} {...rest} > {/* Lit darkroom hardware stage */} <div className="relative w-full" style={{ background: "var(--cp-room)", color: "var(--cp-ink)", backgroundImage: "radial-gradient(64% 50% at 24% 18%, rgba(227, 170, 60, 0.08), transparent 72%)", }} > <div className="mx-auto w-full max-w-[1360px] px-4 py-10 @[40rem]:px-8 @[56rem]:px-12 @[56rem]:py-14"> {/* ── Top Hardware Header Strip ────────────────────────── */} <div className="mb-8 flex flex-col justify-between gap-6 pb-7 @[52rem]:flex-row @[52rem]:items-end" style={{ borderBottom: "1px solid var(--cp-edge)" }} > <div className="max-w-2xl"> <p className="mb-2.5 text-[11px] font-semibold tracking-[0.14em] uppercase" style={{ color: "var(--cp-brass)" }} > {eyebrow} </p> <h2 className="text-[28px] leading-[1.06] font-semibold tracking-[-0.03em] text-balance @[36rem]:text-[38px] @[56rem]:text-[46px]" style={{ fontFamily: "var(--cp-display, inherit)" }} > {heading} </h2> <p className="mt-3 max-w-[54ch] text-[14px] leading-[1.58]" style={{ color: "var(--cp-ink-2)" }}> {subheading} </p> </div> {/* Machined metallic billing toggle */} <div role="radiogroup" aria-label="Billing interval" className="inline-grid shrink-0 grid-cols-2 border p-1" style={{ borderColor: "var(--cp-edge-strong)", background: "var(--cp-trough)", }} > {( [ { id: "monthly" as const, label: "Monthly" }, { id: "annual" as const, label: `Annual −${annualDiscountPct}%` }, ] as const ).map((opt) => { const on = billing === opt.id; return ( <button key={opt.id} type="button" role="radio" aria-checked={on} onClick={() => setBilling(opt.id)} className="cursor-pointer px-4 py-2 text-[12px] font-semibold transition-colors duration-150 focus-visible:outline-2 focus-visible:outline-offset-2" style={{ touchAction: "manipulation", background: on ? "var(--cp-brass)" : "transparent", color: on ? "var(--cp-on-brass)" : "var(--cp-ink-2)", outlineColor: "var(--cp-brass)", }} > {opt.label} </button> ); })} </div> </div> {/* ── Asymmetric 12-Col Hardware Bench ─────────────────── */} <div className="grid grid-cols-1 gap-5 @[56rem]:grid-cols-12 @[56rem]:items-stretch"> {/* LEFT (5 cols): Lit Obsidian/Brass Instrument Panel */} <div className="relative flex flex-col justify-between border p-5 @[40rem]:p-7 @[56rem]:col-span-5" style={{ background: "var(--cp-chassis)", borderColor: "var(--cp-edge-strong)", boxShadow: "inset 0 1px 0 rgba(255,255,255,0.06)", }} > <div> <div className="mb-5 flex items-center justify-between pb-3.5" style={{ borderBottom: "1px solid var(--cp-edge)" }} > <span className="text-[11px] font-semibold tracking-[0.12em] uppercase" style={{ color: "var(--cp-ink-2)" }}> Workload bus </span> <span className="inline-flex items-center gap-2 text-[11px] font-medium" style={{ color: "var(--cp-brass)" }}> <span className="size-1.5 rounded-full" style={{ background: "var(--cp-brass-hot)" }} /> Live metering </span> </div> {/* 3 tactile sculpted fader tracks */} <div className="divide-y" style={{ borderColor: "var(--cp-edge)" }}> {faders.map((f) => ( <div key={f.id} style={{ borderColor: "var(--cp-edge)" }}> <HardwareFader config={f} value={safeValue(f)} onChange={(next) => setValues((prev) => ({ ...prev, [f.id]: next }))} /> </div> ))} </div> </div> {/* Recessed dark-glass phosphor breakdown window */} <div className="mt-6 border p-4" style={{ background: "var(--cp-glass)", borderColor: "var(--cp-edge)", boxShadow: "inset 0 2px 8px rgba(0,0,0,0.7)", }} > <div className="mb-3 flex items-center justify-between text-[10.5px] font-semibold tracking-[0.1em] uppercase" style={{ color: "var(--cp-ink-3)" }}> <span>Metered allocation</span> <span>Est. / month</span> </div> <div className="space-y-2 text-[12.5px]"> {lineBreakdown.map((row) => ( <div key={row.id} className="flex items-center justify-between"> <span style={{ color: "var(--cp-ink-2)" }}>{row.label}</span> <span className="font-medium tabular-nums" style={{ color: "var(--cp-ink)" }}> +${row.cost.toLocaleString("en-US")} </span> </div> ))} </div> <div className="mt-3.5 flex items-baseline justify-between pt-3" style={{ borderTop: "1px solid var(--cp-edge)" }} > <span className="text-[12px] font-medium" style={{ color: "var(--cp-ink-2)" }}> Metered delta </span> <span className="text-[20px] font-semibold tracking-[-0.02em]" style={{ color: "var(--cp-brass-hot)" }}> +<EasedNumber value={rawMetered} reduced={reduced} /> </span> </div> </div> </div> {/* RIGHT (7 cols): 3 Monolithic High-Contrast Plan Slabs */} <div className="flex flex-col gap-3 @[56rem]:col-span-7"> {plans.map((plan, index) => { const isMatched = plan.id === matchedPlanId; const estMonthly = computeSlabMonthly(plan); const isBusy = busyPlan === plan.id; const isDone = donePlan === plan.id; return ( <article key={plan.id} className="relative flex flex-1 flex-col justify-between border p-5 transition-colors duration-200 @[40rem]:p-6" style={{ background: isMatched ? "var(--cp-slab-active)" : "var(--cp-slab)", borderColor: isMatched ? "var(--cp-brass)" : "var(--cp-edge)", boxShadow: isMatched ? "inset 0 1px 0 rgba(247, 201, 102, 0.25)" : "inset 0 1px 0 rgba(255,255,255,0.04)", }} > {/* Physical brass bus terminal bar along left edge */} <span aria-hidden="true" className="pointer-events-none absolute top-0 bottom-0 left-0 w-[4px] transition-colors duration-200" style={{ background: isMatched ? "var(--cp-brass-hot)" : "transparent", }} /> <div className="grid grid-cols-1 gap-4 @[38rem]:grid-cols-12 @[38rem]:items-start"> {/* Slab identity & summary */} <div className="@[38rem]:col-span-7"> <div className="flex items-center gap-2.5"> <span className="text-[11px] font-semibold tabular-nums" style={{ color: isMatched ? "var(--cp-brass-hot)" : "var(--cp-ink-3)" }} > 0{index + 1} </span> <h3 className="text-[20px] font-semibold tracking-[-0.02em]" style={{ fontFamily: "var(--cp-display, inherit)" }} > {plan.name} </h3> {isMatched && ( <span className="px-2 py-0.5 text-[10px] font-bold tracking-[0.09em] uppercase" style={{ background: "var(--cp-brass)", color: "var(--cp-on-brass)", }} > Matched bus </span> )} </div> <p className="mt-2 text-[13.5px] leading-[1.52]" style={{ color: "var(--cp-ink-2)" }}> {plan.summary} </p> {/* Dense horizontal spec strip */} <div className="mt-4 flex flex-wrap gap-x-4 gap-y-1.5 text-[12px]" style={{ color: "var(--cp-ink-2)" }}> {plan.specs.map((spec) => ( <span key={spec} className="inline-flex items-center gap-1.5"> <span aria-hidden="true" className="size-1.5" style={{ background: isMatched ? "var(--cp-brass)" : "var(--cp-ink-3)" }} /> {spec} </span> ))} </div> </div> {/* Right price & mechanical action block */} <div className="flex flex-col justify-between gap-4 @[38rem]:col-span-5 @[38rem]:items-end"> <div className="@[38rem]:text-right"> <div className="text-[34px] leading-none font-semibold tracking-[-0.035em] @[48rem]:text-[40px]" style={{ fontFamily: "var(--cp-display, inherit)", color: isMatched ? "var(--cp-brass-hot)" : "var(--cp-ink)", }} > {estMonthly !== null ? <EasedNumber value={estMonthly} reduced={reduced} /> : "Custom"} </div> <span className="mt-1 block text-[11.5px] tabular-nums" style={{ color: "var(--cp-ink-3)" }}> {estMonthly !== null ? billing === "annual" ? `per month · billed annually` : `per month · metered` : "Dedicated cluster quote"} </span> </div> <button type="button" disabled={isBusy} onClick={() => handleCommit(plan)} className="group inline-flex h-10 w-full cursor-pointer items-center justify-between gap-3 border px-4 text-[12.5px] font-semibold transition-colors duration-150 focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-70 @[38rem]:w-auto @[38rem]:min-w-[172px]" style={{ touchAction: "manipulation", borderColor: isMatched ? "var(--cp-brass)" : "var(--cp-edge-strong)", background: isMatched ? "var(--cp-brass)" : "transparent", color: isMatched ? "var(--cp-on-brass)" : "var(--cp-ink)", outlineColor: "var(--cp-brass)", }} > <span>{isBusy ? "Allocating…" : isDone ? "Allocated" : plan.ctaLabel}</span> {isDone ? ( <Check className="size-3.5" aria-hidden="true" /> ) : ( <ArrowRight className="size-3.5 transition-transform duration-200 group-hover:translate-x-1" aria-hidden="true" /> )} </button> </div> </div> </article> ); })} {errMsg && ( <div role="alert" className="border px-4 py-2.5 text-[12.5px] font-medium" style={{ borderColor: "var(--cp-brass)", color: "var(--cp-brass-hot)", background: "var(--cp-trough)", }} > {errMsg} </div> )} </div> </div> </div> </div> </section> );}Registry item: /r/console-pricing.json


