{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "round",
  "title": "Round landing page",
  "description": "A landing page people can operate. It loads by splitting a bill, the hero is a ring you divide by dragging, the scroll settles the debts on a screen-wide odometer, and one switch re-prices every figure on the page.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "@keyframery/motion",
    "@keyframery/toggle",
    "@keyframery/button",
    "@keyframery/accordion",
    "@keyframery/segmented-control",
    "@keyframery/slider"
  ],
  "files": [
    {
      "path": "registry/templates/round/claim.tsx",
      "content": "\"use client\"\n\n/* Chapter two. A statement that inks in as it is scrolled through, then a bill where tapping a face\n   moves an item on or off that person. Four bills to try it on. */\n\nimport { AnimatePresence, motion, useSpring } from \"motion/react\"\nimport * as React from \"react\"\n\nimport { Toggle } from \"@/components/keyframery/primitives/toggle\"\n\nimport { bills, person, type PersonId } from \"./data\"\nimport { Face, Money, useScrollProgress } from \"./parts\"\n\n/* The statement, in pieces. A string is plain words; a person is a chip with their face. */\nconst statement: (string | PersonId)[] = [\n  \"maya\",\n  \"had the branzino.\",\n  \"jo\",\n  \"and\",\n  \"sam\",\n  \"had the negronis. You had one fork of tiramisu. Splitting it four ways is quick. It is also how tables fall out.\",\n]\n\nfunction Statement() {\n  const ref = React.useRef<HTMLParagraphElement>(null)\n  // From the moment the first line clears the bottom of the screen until the last one reaches the middle.\n  const scrolled = useScrollProgress(() => {\n    const box = ref.current?.getBoundingClientRect()\n    if (!box) return 1\n    return (window.innerHeight * 0.92 - box.top) / (box.height + window.innerHeight * 0.4)\n  })\n  const progress = useSpring(scrolled, { stiffness: 140, damping: 26, mass: 0.4 })\n\n  const pieces = statement.flatMap((piece) => (piece in peopleById ? [piece as PersonId] : (piece as string).split(\" \")))\n  return (\n    <motion.p ref={ref} className=\"rnd-say\" style={{ \"--p\": progress } as unknown as React.CSSProperties}>\n      {pieces.map((piece, index) => {\n        const at = { \"--w\": ((index / pieces.length) * 0.88).toFixed(3) } as React.CSSProperties\n        const who = peopleById[piece]\n        return (\n          <React.Fragment key={index}>\n            {who ? (\n              <span data-w style={at}>\n                <span className=\"rnd-say-chip\" style={{ \"--chip\": who.chip, \"--chip-ink\": who.chipInk } as React.CSSProperties}>\n                  <Face who={who} />\n                  {who.name}\n                </span>\n              </span>\n            ) : (\n              <span data-w style={at}>\n                {piece}\n              </span>\n            )}{\" \"}\n          </React.Fragment>\n        )\n      })}\n    </motion.p>\n  )\n}\n\nconst peopleById: Record<string, ReturnType<typeof person>> = Object.fromEntries(([\"maya\", \"jo\", \"sam\"] as PersonId[]).map((id) => [id, person(id)]))\n\nexport function Claim() {\n  const [billId, setBillId] = React.useState(bills[0].id)\n  /* Who shares each item, per bill, so a bill keeps its changes while you look at another. */\n  const [claims, setClaims] = React.useState(() => Object.fromEntries(bills.map((bill) => [bill.id, bill.items.map((item) => item.who)])))\n  const bill = bills.find((candidate) => candidate.id === billId)!\n  const shared = claims[bill.id]\n  const total = bill.items.reduce((sum, item) => sum + item.price, 0)\n  const owes = bill.table.map((id) => ({\n    who: person(id),\n    amount: bill.items.reduce((sum, item, index) => (shared[index].includes(id) ? sum + item.price / shared[index].length : sum), 0),\n  }))\n\n  const tap = (index: number, id: PersonId) =>\n    setClaims((now) => {\n      const sharers = now[bill.id][index]\n      // Somebody has to pay for it.\n      const next = sharers.includes(id) ? (sharers.length > 1 ? sharers.filter((other) => other !== id) : sharers) : bill.table.filter((other) => other === id || sharers.includes(other))\n      return { ...now, [bill.id]: now[bill.id].map((entry, at) => (at === index ? next : entry)) }\n    })\n\n  return (\n    <section className=\"rnd-sheet\" data-tone=\"paper\">\n      <div className=\"rnd-sheet-in\">\n        <div className=\"rnd-wrap\">\n          <div className=\"rnd-claim-top\">\n            <p className=\"rnd-kicker\" data-reveal>\n              <b>02</b> Claim\n            </p>\n            <Statement />\n          </div>\n\n          <div className=\"rnd-claim\">\n            <div className=\"rnd-claim-side\">\n              <h2 className=\"rnd-claim-title\" data-reveal=\"lines\">\n                <span className=\"rnd-line\">\n                  <span>Tap who had what.</span>\n                </span>\n                <span className=\"rnd-line rnd-soft\" style={{ \"--i\": 1 } as React.CSSProperties}>\n                  <span>The maths follows.</span>\n                </span>\n              </h2>\n              <div className=\"rnd-tabs\" role=\"group\" aria-label=\"Pick a bill\" data-reveal>\n                {bills.map((candidate) => (\n                  <Toggle key={candidate.id} className=\"rnd-tab\" pressed={candidate.id === bill.id} onPressedChange={() => setBillId(candidate.id)}>\n                    <img src={candidate.thumb} alt=\"\" loading=\"lazy\" decoding=\"async\" />\n                    <span className=\"rnd-tab-name\">{candidate.tab}</span>\n                    <Money usd={candidate.items.reduce((sum, item) => sum + item.price, 0)} whole className=\"rnd-tab-total\" />\n                  </Toggle>\n                ))}\n              </div>\n              <p className=\"rnd-claim-tip\" data-reveal>\n                Tap a face on any line to add or drop that person. Everyone&apos;s share updates as you go.\n              </p>\n            </div>\n\n            <div data-reveal>\n              <AnimatePresence mode=\"wait\" initial={false}>\n                <motion.div\n                  key={bill.id}\n                  className=\"rnd-bill\"\n                  initial={{ opacity: 0, x: 40, filter: \"blur(8px)\" }}\n                  animate={{ opacity: 1, x: 0, filter: \"blur(0px)\" }}\n                  exit={{ opacity: 0, x: -28, filter: \"blur(6px)\", transition: { duration: 0.16, ease: \"easeIn\" } }}\n                  transition={{ type: \"spring\", duration: 0.62, bounce: 0.18 }}\n                >\n                  <div className=\"rnd-bill-head\">\n                    <div>\n                      <div className=\"rnd-bill-title\">{bill.title}</div>\n                      <div className=\"rnd-bill-when\">{bill.when}</div>\n                    </div>\n                    <Money usd={total} className=\"rnd-bill-total\" />\n                  </div>\n                  {bill.items.map((item, index) => (\n                    <div key={item.name} className=\"rnd-item\" style={{ \"--i\": index } as React.CSSProperties}>\n                      <span className=\"rnd-item-name\">{item.name}</span>\n                      <span className=\"rnd-item-who\" role=\"group\" aria-label={`Who shared ${item.name}`}>\n                        {bill.table.map((id) => {\n                          const who = person(id)\n                          return (\n                            <Toggle\n                              key={id}\n                              className=\"rnd-chip\"\n                              style={{ \"--who\": who.chip } as React.CSSProperties}\n                              pressed={shared[index].includes(id)}\n                              aria-label={who.name}\n                              title={who.name}\n                              onPressedChange={() => tap(index, id)}\n                            >\n                              <Face who={who} />\n                            </Toggle>\n                          )\n                        })}\n                      </span>\n                      <Money usd={item.price} className=\"rnd-item-price\" />\n                    </div>\n                  ))}\n                  <div className=\"rnd-bill-foot\">\n                    <div className=\"rnd-bar\" aria-hidden>\n                      {owes.map(({ who, amount }) => (\n                        <span key={who.id} style={{ flexGrow: amount, \"--who\": who.chip } as React.CSSProperties} />\n                      ))}\n                    </div>\n                    <div className=\"rnd-owes\">\n                      {owes.map(({ who, amount }) => (\n                        <div key={who.id} className=\"rnd-owe\">\n                          <Face who={who} />\n                          <span>{who.id === \"you\" ? \"You pay\" : `${who.name} pays`}</span>\n                          <b>\n                            <Money usd={amount} />\n                          </b>\n                        </div>\n                      ))}\n                    </div>\n                  </div>\n                </motion.div>\n              </AnimatePresence>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/round/claim.tsx"
    },
    {
      "path": "registry/templates/round/data.ts",
      "content": "/* Everything the Round landing page says and shows. Change the copy, people, bills and prices here;\n   the sections read from this file and nothing else. Amounts are in US dollars and converted on screen. */\n\nexport type PersonId = \"you\" | \"maya\" | \"jo\" | \"sam\" | \"alex\" | \"noor\"\n\nexport type Person = {\n  id: PersonId\n  name: string\n  /** The slice colour on the blue hero ring, and the text that sits on it. */\n  tone: string\n  ink: string\n  /** The same person on a light card, where a white slice would vanish, and the text that sits on that. */\n  chip: string\n  chipInk: string\n  face?: string\n}\n\nexport const people: Person[] = [\n  { id: \"you\", name: \"You\", tone: \"#ffffff\", ink: \"#0d0f1f\", chip: \"#2431e0\", chipInk: \"#ffffff\" },\n  { id: \"maya\", name: \"Maya\", tone: \"#ff4d24\", ink: \"#ffffff\", chip: \"#ff4d24\", chipInk: \"#ffffff\", face: \"https://keyframery.com/demo/face-2.jpg\" },\n  { id: \"jo\", name: \"Jo\", tone: \"#ffb9d5\", ink: \"#0d0f1f\", chip: \"#ff8fbc\", chipInk: \"#0d0f1f\", face: \"https://keyframery.com/demo/face-3.jpg\" },\n  { id: \"sam\", name: \"Sam\", tone: \"#a8d4ff\", ink: \"#0d0f1f\", chip: \"#7dbcff\", chipInk: \"#0d0f1f\", face: \"https://keyframery.com/demo/face-4.jpg\" },\n  { id: \"alex\", name: \"Alex\", tone: \"#0d0f1f\", ink: \"#ffffff\", chip: \"#0d0f1f\", chipInk: \"#ffffff\", face: \"https://keyframery.com/demo/face-1.jpg\" },\n  { id: \"noor\", name: \"Noor\", tone: \"#ffc7a1\", ink: \"#0d0f1f\", chip: \"#ffab73\", chipInk: \"#0d0f1f\" },\n]\n\nexport const person = (id: PersonId) => people.find((p) => p.id === id)!\n\nexport type CurrencyId = \"usd\" | \"eur\" | \"gbp\" | \"inr\"\n\nexport const currencies: Record<CurrencyId, { symbol: string; label: string; rate: number; digits: number }> = {\n  usd: { symbol: \"$\", label: \"US dollars\", rate: 1, digits: 2 },\n  eur: { symbol: \"€\", label: \"Euros\", rate: 0.92, digits: 2 },\n  gbp: { symbol: \"£\", label: \"Pounds\", rate: 0.79, digits: 2 },\n  inr: { symbol: \"₹\", label: \"Rupees\", rate: 84, digits: 0 },\n}\n\n/** The bill on the hero ring. */\nexport const heroBill = {\n  title: \"Dinner at Lupa\",\n  subtotal: 156,\n  tip: 18,\n  table: [\"you\", \"maya\", \"jo\", \"sam\"] as PersonId[],\n  /** Uneven on purpose, so the ring reads as \"someone had the branzino\". */\n  shares: { you: 0.24, maya: 0.33, jo: 0.25, sam: 0.18 } as Partial<Record<PersonId, number>>,\n}\n\nexport type Bill = {\n  id: string\n  tab: string\n  title: string\n  when: string\n  thumb: string\n  table: PersonId[]\n  items: { name: string; price: number; who: PersonId[] }[]\n}\n\nexport const bills: Bill[] = [\n  {\n    id: \"dinner\",\n    tab: \"Dinner out\",\n    title: \"Dinner at Lupa\",\n    when: \"Friday, table for four\",\n    thumb: \"https://keyframery.com/demo/food-1.jpg\",\n    table: [\"you\", \"maya\", \"jo\", \"sam\"],\n    items: [\n      { name: \"Burrata for the table\", price: 16, who: [\"you\", \"maya\", \"jo\", \"sam\"] },\n      { name: \"Cacio e pepe\", price: 21, who: [\"you\"] },\n      { name: \"Wood-fired branzino\", price: 34, who: [\"maya\"] },\n      { name: \"Two negronis\", price: 28, who: [\"jo\", \"sam\"] },\n      { name: \"Tiramisu, two spoons\", price: 12, who: [\"you\", \"jo\"] },\n    ],\n  },\n  {\n    id: \"trip\",\n    tab: \"Weekend away\",\n    title: \"Three nights in Amalfi\",\n    when: \"May, four of you\",\n    thumb: \"https://keyframery.com/demo/coast-1.jpg\",\n    table: [\"you\", \"maya\", \"alex\", \"noor\"],\n    items: [\n      { name: \"Villa, three nights\", price: 720, who: [\"you\", \"maya\", \"alex\", \"noor\"] },\n      { name: \"Car hire\", price: 186, who: [\"you\", \"alex\"] },\n      { name: \"Boat day\", price: 240, who: [\"maya\", \"alex\", \"noor\"] },\n      { name: \"Groceries\", price: 96, who: [\"you\", \"maya\", \"alex\", \"noor\"] },\n    ],\n  },\n  {\n    id: \"flat\",\n    tab: \"The flat\",\n    title: \"42 Canal Street\",\n    when: \"March, two of you\",\n    thumb: \"https://keyframery.com/demo/canal.jpg\",\n    table: [\"you\", \"sam\"],\n    items: [\n      { name: \"Rent\", price: 1850, who: [\"you\", \"sam\"] },\n      { name: \"Electricity\", price: 88, who: [\"you\", \"sam\"] },\n      { name: \"Internet\", price: 45, who: [\"you\", \"sam\"] },\n      { name: \"Cleaner, Sam's idea\", price: 60, who: [\"sam\"] },\n    ],\n  },\n  {\n    id: \"gig\",\n    tab: \"Gig night\",\n    title: \"Tickets and a taxi\",\n    when: \"Saturday, three of you\",\n    thumb: \"https://keyframery.com/demo/gig.jpg\",\n    table: [\"you\", \"jo\", \"alex\"],\n    items: [\n      { name: \"Three tickets\", price: 135, who: [\"you\", \"jo\", \"alex\"] },\n      { name: \"Taxi home\", price: 32, who: [\"you\", \"jo\"] },\n      { name: \"Tour shirt\", price: 40, who: [\"alex\"] },\n    ],\n  },\n]\n\n/** Who owes you after dinner. Settling clears them one by one. */\nexport const debts: { from: PersonId; amount: number; note: string }[] = [\n  { from: \"maya\", amount: 46.15, note: \"Branzino, burrata\" },\n  { from: \"jo\", amount: 31.4, note: \"Negroni, half a tiramisu\" },\n  { from: \"sam\", amount: 24.7, note: \"Negroni, burrata\" },\n]\n\nexport const stats = [\n  { from: \"0.0M\", to: \"2.4M\", label: \"bills split since launch\" },\n  { from: \"00\", to: \"38\", unit: \"sec\", label: \"from photo of the bill to settled\" },\n  { from: \"00\", to: \"61\", unit: \"countries\", label: \"where a table has gone round\" },\n]\n\nexport const quotes = [\n  { by: \"maya\" as PersonId, name: \"Maya R.\", role: \"hosts a supper club\", text: \"We used to argue about the wine. Now we only argue about dessert.\" },\n  { by: \"jo\" as PersonId, name: \"Jo L.\", role: \"plans the group trips\", text: \"I split a villa four ways on the ferry over. It took less time than the safety briefing.\" },\n  { by: \"sam\" as PersonId, name: \"Sam K.\", role: \"shares a flat\", text: \"My flatmate and I have not opened the spreadsheet since March. Nobody misses it.\" },\n]\n\nexport const plans = [\n  {\n    id: \"free\",\n    name: \"Round\",\n    line: \"Everything a table needs.\",\n    monthly: 0,\n    yearly: 0,\n    cta: \"Get the app\",\n    features: [\"Unlimited bills\", \"Up to eight people a bill\", \"Split by slice, item or evenly\", \"Pay links for friends without the app\"],\n  },\n  {\n    id: \"plus\",\n    name: \"Round Plus\",\n    line: \"For the one who always organises.\",\n    monthly: 4,\n    yearly: 36,\n    cta: \"Try Plus free for a month\",\n    features: [\"Everything in Round\", \"Photograph a bill and it itemises itself\", \"Rent and other bills that repeat\", \"Trips in more than one currency\", \"Export to a spreadsheet, if you must\"],\n  },\n]\n\nexport const faqs = [\n  {\n    q: \"Does everyone at the table need the app?\",\n    a: \"No. One of you splits the bill and the rest get a link. They can see their share, argue with it and pay it from the browser.\",\n  },\n  {\n    q: \"How does the money actually move?\",\n    a: \"Round works out who owes what and hands the payment to the bank or wallet you already use. We never hold your money, so there is nothing to top up and nothing to withdraw.\",\n  },\n  {\n    q: \"Can we split unevenly?\",\n    a: \"Three ways. Drag a slice until it looks fair, tap who shared each item, or set exact amounts. You can mix them on the same bill.\",\n  },\n  {\n    q: \"What happens to tip and tax?\",\n    a: \"They follow what each person ordered, so the one with the branzino tips on the branzino. Flip one switch if your table would rather share them evenly.\",\n  },\n  {\n    q: \"Which currencies does it handle?\",\n    a: \"Thirty-four of them. On a trip, each person settles in their own currency at the day's rate, and Round shows the rate it used.\",\n  },\n]\n\nexport const nav = [\n  { href: \"#split\", label: \"Split\" },\n  { href: \"#claim\", label: \"Claim\" },\n  { href: \"#settle\", label: \"Settle\" },\n  { href: \"#pricing\", label: \"Pricing\" },\n  { href: \"#faq\", label: \"Questions\" },\n]\n",
      "type": "registry:component",
      "target": "components/round/data.ts"
    },
    {
      "path": "registry/templates/round/parts.tsx",
      "content": "\"use client\"\n\n/* Small shared pieces of the Round landing page: money that rolls, a face, and the three page\n   behaviours (reveal on scroll, sheets that stack, things that start when they come into view). */\n\nimport { motion, useMotionValue, useSpring } from \"motion/react\"\nimport * as React from \"react\"\n\nimport { currencies, type CurrencyId, type Person } from \"./data\"\n\n/* ---------------------------------------------------------------- currency */\n\nconst CurrencyContext = React.createContext<CurrencyId>(\"usd\")\nexport const CurrencyProvider = CurrencyContext.Provider\nexport const useCurrency = () => React.useContext(CurrencyContext)\n\n/** A dollar amount in the chosen currency. Formatted by hand so the server and the browser always agree. */\nexport function formatMoney(usd: number, id: CurrencyId, whole = false) {\n  const { symbol, rate, digits } = currencies[id]\n  const [int, fraction] = Math.max(0, usd * rate).toFixed(whole ? 0 : digits).split(\".\")\n  return symbol + int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\") + (fraction ? `.${fraction}` : \"\")\n}\n\n/* ---------------------------------------------------------------- rolling figures */\n\nconst DIGITS = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"]\n\n/** Text whose digits roll to their new value. Columns are keyed from the right, so the units stay the units when a figure grows. */\nexport function Roll({ value, className }: { value: string; className?: string }) {\n  const chars = [...value]\n  return (\n    <span className={className ? `rnd-roll ${className}` : \"rnd-roll\"}>\n      <span className=\"rnd-sr\">{value}</span>\n      <span aria-hidden className=\"rnd-roll-row\">\n        {chars.map((char, index) => {\n          const place = chars.length - index\n          return /\\d/.test(char) ? (\n            <span key={`d${place}`} className=\"rnd-roll-digit\" style={{ \"--d\": char } as React.CSSProperties}>\n              <span className=\"rnd-roll-strip\">\n                {DIGITS.map((digit) => (\n                  <span key={digit}>{digit}</span>\n                ))}\n              </span>\n            </span>\n          ) : (\n            <span key={`c${place}${char}`} className=\"rnd-roll-char\">\n              {char}\n            </span>\n          )\n        })}\n      </span>\n    </span>\n  )\n}\n\n/** An amount in the visitor's currency, rolling when it changes. */\nexport function Money({ usd, whole, className }: { usd: number; whole?: boolean; className?: string }) {\n  return <Roll value={formatMoney(usd, useCurrency(), whole)} className={className} />\n}\n\n/* ---------------------------------------------------------------- faces */\n\n/** A person's photo, or their initial on their own colour. `onSlice` is for a face sitting on that person's own slice, where the colours swap. */\nexport function Face({ who, size, onSlice }: { who: Person; size?: number; onSlice?: boolean }) {\n  const style = { \"--face\": onSlice ? who.ink : who.chip, \"--face-ink\": onSlice ? who.tone : who.chipInk, ...(size ? { \"--face-size\": `${size}px` } : null) } as React.CSSProperties\n  return (\n    <span className=\"rnd-face\" style={style} aria-hidden>\n      {who.face ? <img src={who.face} alt=\"\" loading=\"lazy\" decoding=\"async\" draggable={false} /> : <span>{who.name[0]}</span>}\n    </span>\n  )\n}\n\n/* ---------------------------------------------------------------- motion */\n\n/** A button that leans toward the pointer and springs back when it leaves. Mouse only. */\nexport function Magnetic({ children, pull = 0.3 }: { children: React.ReactNode; pull?: number }) {\n  const x = useMotionValue(0)\n  const y = useMotionValue(0)\n  const spring = { stiffness: 260, damping: 14, mass: 0.5 }\n  const left = useSpring(x, spring)\n  const top = useSpring(y, spring)\n  return (\n    <motion.span\n      style={{ display: \"inline-flex\", x: left, y: top }}\n      onPointerMove={(event) => {\n        if (event.pointerType !== \"mouse\") return\n        const box = event.currentTarget.getBoundingClientRect()\n        x.set((event.clientX - box.left - box.width / 2) * pull)\n        y.set((event.clientY - box.top - box.height / 2) * pull)\n      }}\n      onPointerLeave={() => {\n        x.set(0)\n        y.set(0)\n      }}\n    >\n      {children}\n    </motion.span>\n  )\n}\n\n/**\n * How far the page has scrolled through something, from 0 to 1, as a motion value.\n * `measure` reads the screen each frame the page moves; put a spring on the result to make it glide.\n */\nexport function useScrollProgress(measure: () => number) {\n  const progress = useMotionValue(0)\n  const read = React.useRef(measure)\n  read.current = measure\n  React.useEffect(() => {\n    let frame = 0\n    const update = () => {\n      frame = 0\n      progress.set(Math.min(1, Math.max(0, read.current())))\n    }\n    const queue = () => (frame ||= requestAnimationFrame(update))\n    update()\n    window.addEventListener(\"scroll\", queue, { passive: true })\n    window.addEventListener(\"resize\", queue)\n    return () => {\n      window.removeEventListener(\"scroll\", queue)\n      window.removeEventListener(\"resize\", queue)\n      cancelAnimationFrame(frame)\n    }\n  }, [progress])\n  return progress\n}\n\n/* ---------------------------------------------------------------- page behaviours */\n\n/** True once the element has come into view. It stays true. */\nexport function useSeen<T extends Element>(threshold = 0.4) {\n  const ref = React.useRef<T>(null)\n  const [seen, setSeen] = React.useState(false)\n  React.useEffect(() => {\n    const element = ref.current\n    if (!element || seen) return\n    const observer = new IntersectionObserver(([entry]) => entry.isIntersecting && setSeen(true), { threshold })\n    observer.observe(element)\n    return () => observer.disconnect()\n  }, [seen, threshold])\n  return [ref, seen] as const\n}\n\n/** The motion style's speed (Calm 1.35, Snappy 0.6…), so timers keep pace with the CSS. */\nexport function motionSpeed(element: Element | null) {\n  if (!element) return 1\n  return parseFloat(getComputedStyle(element).getPropertyValue(\"--kf-speed\")) || 1\n}\n\nexport const prefersReducedMotion = () => typeof window !== \"undefined\" && window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n\n/**\n * Two things for the whole page, on one root element:\n * - anything marked data-reveal arrives when it scrolls into view;\n * - each .rnd-sheet sticks while the next one slides over it, and --cover (0 to 1) says how far that has gone.\n * Content is fully visible until this runs, so nothing depends on it to be readable.\n */\nexport function usePage(root: React.RefObject<HTMLElement | null>) {\n  React.useEffect(() => {\n    const page = root.current\n    if (!page) return\n    page.dataset.ready = \"\"\n\n    const seen = new IntersectionObserver(\n      (entries) => {\n        for (const entry of entries) {\n          if (!entry.isIntersecting) continue\n          ;(entry.target as HTMLElement).dataset.in = \"\"\n          seen.unobserve(entry.target)\n        }\n      },\n      { rootMargin: \"0px 0px -12% 0px\", threshold: 0.08 },\n    )\n    page.querySelectorAll(\"[data-reveal]\").forEach((element) => seen.observe(element))\n\n    const sheets = [...page.querySelectorAll<HTMLElement>(\".rnd-sheet\")]\n    let frame = 0\n    const measure = () => {\n      frame = 0\n      const height = window.innerHeight\n      sheets.forEach((sheet, index) => {\n        // A sheet taller than the screen sticks once its last line is on screen.\n        sheet.style.setProperty(\"--stick\", `${Math.min(0, height - sheet.offsetHeight)}px`)\n        const next = sheets[index + 1]\n        const cover = next ? Math.min(1, Math.max(0, 1 - next.getBoundingClientRect().top / height)) : 0\n        sheet.style.setProperty(\"--cover\", cover.toFixed(3))\n        sheet.toggleAttribute(\"data-under\", cover > 0)\n      })\n    }\n    const queue = () => (frame ||= requestAnimationFrame(measure))\n    measure()\n    window.addEventListener(\"scroll\", queue, { passive: true })\n    window.addEventListener(\"resize\", queue)\n    const resized = new ResizeObserver(queue)\n    sheets.forEach((sheet) => resized.observe(sheet))\n\n    return () => {\n      seen.disconnect()\n      resized.disconnect()\n      window.removeEventListener(\"scroll\", queue)\n      window.removeEventListener(\"resize\", queue)\n      cancelAnimationFrame(frame)\n      delete page.dataset.ready\n    }\n  }, [root])\n}\n",
      "type": "registry:component",
      "target": "components/round/parts.tsx"
    },
    {
      "path": "registry/templates/round/rest.tsx",
      "content": "\"use client\"\n\n/* The second half of the page: table talk, pricing with the questions, and the last call with the footer. */\n\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/keyframery/primitives/button\"\nimport { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionTrigger } from \"@/components/keyframery/accordion\"\nimport { SegmentedControl, SegmentedControlItem } from \"@/components/keyframery/segmented-control\"\n\nimport { faqs, person, plans, quotes, stats } from \"./data\"\nimport { Face, Magnetic, Money, Roll, useSeen } from \"./parts\"\n\nconst i = (index: number) => ({ \"--i\": index }) as React.CSSProperties\n\nfunction Arrow() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <path d=\"M3 8h10M9 4l4 4-4 4\" />\n    </svg>\n  )\n}\n\nfunction Check() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <path d=\"m3.5 8.5 3 3 6-7\" />\n    </svg>\n  )\n}\n\n/* ---------------------------------------------------------------- table talk */\n\nfunction Stat({ from, to, unit, label, index }: (typeof stats)[number] & { index: number }) {\n  const [ref, seen] = useSeen<HTMLDivElement>(0.6)\n  return (\n    <div ref={ref} className=\"rnd-stat\" data-reveal style={i(index)}>\n      <span className=\"rnd-stat-figure\">\n        <Roll value={seen ? to : from} />\n        {unit && <small>{unit}</small>}\n      </span>\n      {label}\n    </div>\n  )\n}\n\nexport function Talk() {\n  return (\n    <section className=\"rnd-sheet\" data-tone=\"pink\">\n      <div className=\"rnd-sheet-in\">\n        <div className=\"rnd-wrap rnd-talk\">\n          <div className=\"rnd-stats\">\n            {stats.map((stat, index) => (\n              <Stat key={stat.label} {...stat} index={index} />\n            ))}\n          </div>\n          <div className=\"rnd-quotes\">\n            {quotes.map((quote) => (\n              <figure key={quote.name} className=\"rnd-quote\" data-reveal>\n                <blockquote className=\"rnd-quote-text\">{quote.text}</blockquote>\n                <figcaption className=\"rnd-quote-by\">\n                  <Face who={person(quote.by)} />\n                  <span>\n                    <b>{quote.name}</b>\n                    {quote.role}\n                  </span>\n                </figcaption>\n              </figure>\n            ))}\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n\n/* ---------------------------------------------------------------- pricing and questions */\n\nexport function Pricing() {\n  const [billing, setBilling] = React.useState<\"monthly\" | \"yearly\">(\"yearly\")\n  return (\n    <section className=\"rnd-sheet\" data-tone=\"paper\">\n      <div className=\"rnd-sheet-in\">\n        <div className=\"rnd-wrap\">\n          <div className=\"rnd-pricing\">\n            <div className=\"rnd-pricing-head\">\n              <h2 className=\"rnd-h2\" data-reveal=\"lines\">\n                <span className=\"rnd-line\">\n                  <span>Free for the table.</span>\n                </span>\n                <span className=\"rnd-line rnd-soft\" style={i(1)}>\n                  <span>A little for the organiser.</span>\n                </span>\n              </h2>\n              <SegmentedControl className=\"rnd-billing\" aria-label=\"Billing\" value={billing} onValueChange={(next) => next && setBilling(next as typeof billing)} data-reveal>\n                <SegmentedControlItem value=\"monthly\">Monthly</SegmentedControlItem>\n                <SegmentedControlItem value=\"yearly\">Yearly, a quarter off</SegmentedControlItem>\n              </SegmentedControl>\n            </div>\n\n            <div className=\"rnd-plans\">\n              {plans.map((plan, index) => {\n                const paid = plan.monthly > 0\n                return (\n                  <div key={plan.id} className=\"rnd-plan\" data-tone={paid ? \"ink\" : \"paper\"} data-reveal style={i(index)}>\n                    <p className=\"rnd-plan-name\">\n                      <b>{plan.name}</b>\n                      {plan.line}\n                    </p>\n                    <div>\n                      <p className=\"rnd-plan-price\">\n                        <Money usd={billing === \"yearly\" ? plan.yearly / 12 : plan.monthly} whole />\n                        <small>{paid ? \"a month\" : \"always\"}</small>\n                      </p>\n                      <p className=\"rnd-plan-note\">\n                        {paid && billing === \"yearly\" && (\n                          <>\n                            <Money usd={plan.yearly} whole /> once a year\n                          </>\n                        )}\n                        {paid && billing === \"monthly\" && \"Cancel whenever the trip is over\"}\n                        {!paid && \"No card, no trial, no catch\"}\n                      </p>\n                    </div>\n                    <ul className=\"rnd-plan-list\">\n                      {plan.features.map((feature) => (\n                        <li key={feature}>\n                          <Check />\n                          {feature}\n                        </li>\n                      ))}\n                    </ul>\n                    <Magnetic>\n                      <Button className=\"rnd-btn\" data-kind={paid ? \"hot\" : undefined} render={<a href=\"#get\" />}>\n                        {plan.cta}\n                        <Arrow />\n                      </Button>\n                    </Magnetic>\n                  </div>\n                )\n              })}\n            </div>\n          </div>\n\n          <span id=\"faq\" className=\"rnd-anchor\" />\n          <div className=\"rnd-faq\">\n            <h2 className=\"rnd-claim-title\" data-reveal=\"lines\">\n              <span className=\"rnd-line\">\n                <span>Fair questions.</span>\n              </span>\n              <span className=\"rnd-line rnd-soft\" style={i(1)}>\n                <span>Straight answers.</span>\n              </span>\n            </h2>\n            <Accordion defaultValue={[faqs[0].q]} data-reveal>\n              {faqs.map((faq) => (\n                <AccordionItem key={faq.q} value={faq.q}>\n                  <AccordionHeader>\n                    <AccordionTrigger>{faq.q}</AccordionTrigger>\n                  </AccordionHeader>\n                  <AccordionPanel>{faq.a}</AccordionPanel>\n                </AccordionItem>\n              ))}\n            </Accordion>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n\n/* ---------------------------------------------------------------- last call and footer */\n\nconst footer = [\n  { title: \"Product\", links: [\"How it splits\", \"Round Plus\", \"Pay links\", \"What changed\"] },\n  { title: \"Company\", links: [\"About\", \"Careers\", \"Press\"] },\n  { title: \"Help\", links: [\"Questions\", \"Contact\", \"Privacy\", \"Terms\"] },\n]\n\nexport function Last() {\n  return (\n    <section className=\"rnd-sheet\" data-tone=\"hot\">\n      <div className=\"rnd-sheet-in\">\n        <div className=\"rnd-wrap\">\n          <div className=\"rnd-last\">\n            <h2 className=\"rnd-display\" data-reveal=\"lines\">\n              <span className=\"rnd-line\">\n                <span>Next round is</span>\n              </span>\n              <span className=\"rnd-line rnd-soft\" style={i(1)}>\n                <span>on everyone.</span>\n              </span>\n            </h2>\n            <p className=\"rnd-lede\" data-reveal>\n              Put Round on one phone at the table. It takes it from there.\n            </p>\n            <div className=\"rnd-hero-actions\" data-reveal>\n              <Magnetic>\n                <Button className=\"rnd-btn\" render={<a href=\"#top\" />}>\n                  Get the app\n                  <Arrow />\n                </Button>\n              </Magnetic>\n              <Button className=\"rnd-btn\" data-kind=\"line\" render={<a href=\"#top\" />}>\n                Send it to your table\n              </Button>\n            </div>\n          </div>\n\n          <footer>\n            <div className=\"rnd-foot\">\n              <div className=\"rnd-foot-brand\">\n                <span className=\"rnd-wordmark\">round</span>\n                Bills split the way the table ate.\n              </div>\n              {footer.map((column) => (\n                <nav key={column.title} aria-label={column.title}>\n                  <h3>{column.title}</h3>\n                  <ul>\n                    {column.links.map((link) => (\n                      <li key={link}>\n                        <a href=\"#top\">{link}</a>\n                      </li>\n                    ))}\n                  </ul>\n                </nav>\n              ))}\n            </div>\n            <div className=\"rnd-legal\">\n              <span>© 2026 Round. A made-up company on a real template.</span>\n              <span>\n                Template by <a href=\"https://keyframery.com\">Keyframery</a>\n              </span>\n            </div>\n          </footer>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { Arrow }\n",
      "type": "registry:component",
      "target": "components/round/rest.tsx"
    },
    {
      "path": "registry/templates/round/ring.tsx",
      "content": "\"use client\"\n\n/* The hero: one bill drawn as a ring. Drag a handle to move the line between two people, tap a face to\n   add or drop someone, change the tip. Every figure follows. Until someone touches it, one handle\n   moves by itself now and then to show that it can. */\n\nimport * as React from \"react\"\n\nimport { Button } from \"@/components/keyframery/primitives/button\"\nimport { Toggle } from \"@/components/keyframery/primitives/toggle\"\nimport { Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack } from \"@/components/keyframery/slider\"\n\nimport { heroBill, people, type PersonId } from \"./data\"\nimport { Face, formatMoney, Money, motionSpeed, prefersReducedMotion, Roll, useCurrency } from \"./parts\"\n\n/** The smallest slice anyone can be dragged down to. */\nconst MIN = 0.08\nconst RADIUS = 330\nconst CIRCLE = 2 * Math.PI * RADIUS\n/** The blue line between two slices, in the ring's own units. */\nconst GAP = 10\nconst GAP_DEG = (GAP / CIRCLE) * 360\n/** Where the first slice starts. 0 is three o'clock and angles run clockwise. */\nconst START = -150\n\ntype Split = { table: PersonId[]; shares: Record<PersonId, number>; start: number }\n\nconst initial: Split = {\n  table: heroBill.table,\n  shares: Object.fromEntries(people.map((p) => [p.id, heroBill.shares[p.id] ?? 0])) as Record<PersonId, number>,\n  start: START,\n}\n\nconst even = (split: Split): Split => ({\n  ...split,\n  shares: Object.fromEntries(people.map((p) => [p.id, split.table.includes(p.id) ? 1 / split.table.length : 0])) as Record<PersonId, number>,\n})\n\n/** Move the line that starts `id`'s slice by `turn` (a fraction of the ring): the person before gains what `id` gives up. */\nfunction shift(split: Split, id: PersonId, turn: number): Split {\n  const index = split.table.indexOf(id)\n  const before = split.table[(index - 1 + split.table.length) % split.table.length]\n  const by = Math.min(split.shares[id] - MIN, Math.max(MIN - split.shares[before], turn))\n  if (!by) return split\n  return {\n    table: split.table,\n    shares: { ...split.shares, [before]: split.shares[before] + by, [id]: split.shares[id] - by },\n    start: index === 0 ? split.start + by * 360 : split.start,\n  }\n}\n\nfunction toggle(split: Split, id: PersonId): Split {\n  const shares = { ...split.shares }\n  if (split.table.includes(id)) {\n    if (id === \"you\" || split.table.length <= 2) return split\n    const rest = split.table.filter((other) => other !== id)\n    const kept = rest.reduce((sum, other) => sum + shares[other], 0)\n    for (const other of rest) shares[other] += (shares[id] * shares[other]) / kept\n    shares[id] = 0\n    return { ...split, table: rest, shares }\n  }\n  const take = 1 / (split.table.length + 1)\n  for (const other of split.table) shares[other] *= 1 - take\n  shares[id] = take\n  return { ...split, table: people.map((p) => p.id).filter((other) => other === id || split.table.includes(other)), shares }\n}\n\nconst point = (degrees: number, reach: number) => {\n  const angle = (degrees * Math.PI) / 180\n  return { left: `${50 + Math.cos(angle) * reach}%`, top: `${50 + Math.sin(angle) * reach}%` }\n}\n\nexport function SplitRing() {\n  const [split, setSplit] = React.useState(initial)\n  const [tip, setTip] = React.useState(heroBill.tip)\n  const [dragging, setDragging] = React.useState<PersonId | null>(null)\n  const [touched, setTouched] = React.useState(false)\n  const [hovered, setHovered] = React.useState(false)\n  const ring = React.useRef<HTMLDivElement>(null)\n  const total = heroBill.subtotal * (1 + tip / 100)\n\n  /* The bill adds up while the page loads: the total starts as zeros and rolls to its figure. */\n  const [counted, setCounted] = React.useState(false)\n  const totalText = formatMoney(total, useCurrency())\n  React.useEffect(() => {\n    const wait = window.setTimeout(() => setCounted(true), prefersReducedMotion() ? 0 : 420 * motionSpeed(ring.current))\n    return () => window.clearTimeout(wait)\n  }, [])\n\n  /* Where every slice starts. People who are not at the table keep a place of zero width, so a slice\n     grows out of the line it joins at and closes back into it. */\n  let angle = split.start\n  const slices = people.map((who) => {\n    const share = split.shares[who.id]\n    const slice = { who, share, from: angle, mid: angle + share * 180, on: split.table.includes(who.id) }\n    angle += share * 360\n    return slice\n  })\n  const isEven = split.table.every((id) => Math.abs(split.shares[id] - 1 / split.table.length) < 0.004)\n\n  /* The hint: the second line on the ring (top right, clear of the controls on every screen) swings out and back. */\n  const hintId = split.table[1]\n  React.useEffect(() => {\n    if (touched || hovered || prefersReducedMotion()) return\n    const pace = motionSpeed(ring.current)\n    let back = 0\n    const swing = () => {\n      setSplit((now) => shift(now, hintId, 0.07))\n      back = window.setTimeout(() => setSplit((now) => shift(now, hintId, -0.07)), 1100 * pace)\n    }\n    // The first swing waits for the loading sequence to finish.\n    const first = window.setTimeout(swing, 5400 * pace)\n    const loop = window.setInterval(swing, 6400 * pace)\n    return () => {\n      window.clearTimeout(first)\n      window.clearTimeout(back)\n      window.clearInterval(loop)\n    }\n  }, [touched, hovered, hintId])\n\n  const dragTo = (id: PersonId, event: React.PointerEvent) => {\n    const box = ring.current?.getBoundingClientRect()\n    if (!box) return\n    const pointer = (Math.atan2(event.clientY - (box.top + box.height / 2), event.clientX - (box.left + box.width / 2)) * 180) / Math.PI\n    setSplit((now) => {\n      let from = now.start\n      for (const other of now.table) {\n        if (other === id) break\n        from += now.shares[other] * 360\n      }\n      // The shortest way round from where the line is to where the pointer is.\n      const turn = ((((pointer - from) % 360) + 540) % 360) - 180\n      return shift(now, id, turn / 360)\n    })\n  }\n\n  return (\n    <div className=\"rnd-split\" onPointerEnter={() => setHovered(true)} onPointerLeave={() => setHovered(false)}>\n      <div className=\"rnd-ring-slot\">\n      <div ref={ring} className=\"rnd-ring\" data-dragging={dragging ? \"\" : undefined}>\n        <svg className=\"rnd-ring-art\" viewBox=\"-500 -500 1000 1000\" aria-hidden>\n          {slices.map(({ who, share, from }, index) => (\n            <circle\n              key={who.id}\n              className=\"rnd-ring-slice\"\n              r={RADIUS}\n              style={\n                {\n                  \"--i\": index,\n                  stroke: who.tone,\n                  strokeDasharray: `${Math.max(0, share * CIRCLE - GAP)} ${CIRCLE}`,\n                  rotate: `${from + GAP_DEG / 2}deg`,\n                } as React.CSSProperties\n              }\n            />\n          ))}\n          {/* The loading sequence: one white ring over the slices, drawn in and then peeled away. */}\n          <circle className=\"rnd-ring-cover\" r={RADIUS} pathLength={1} />\n        </svg>\n\n        <div className=\"rnd-ring-hub\">\n          <span className=\"rnd-ring-hub-label\">{heroBill.title}</span>\n          <Roll value={counted ? totalText : totalText.replace(/\\d/g, \"0\")} className=\"rnd-ring-hub-total\" />\n          <span className=\"rnd-ring-hub-note\">with {tip}% tip</span>\n        </div>\n\n        {slices.map(({ who, share, mid, on }, index) => (\n          <div\n            key={who.id}\n            className=\"rnd-ring-label\"\n            data-on={on ? \"\" : undefined}\n            data-small={share < 0.13 ? \"\" : undefined}\n            style={{ ...point(mid, 33), color: who.ink, \"--i\": index } as React.CSSProperties}\n          >\n            {who.id !== \"you\" && <Face who={who} onSlice />}\n            <span className=\"rnd-ring-label-name\">{who.name}</span>\n            <Money usd={share * total} className=\"rnd-ring-label-amount\" />\n          </div>\n        ))}\n\n        {split.table.map((id, index) => {\n          const slice = slices.find(({ who }) => who.id === id)!\n          const before = slices.find(({ who }) => who.id === split.table[(index - 1 + split.table.length) % split.table.length])!\n          const percent = Math.round(before.share * 100)\n          return (\n            <button\n              key={id}\n              type=\"button\"\n              className=\"rnd-ring-handle\"\n              role=\"slider\"\n              aria-label={`Line between ${before.who.name} and ${slice.who.name}`}\n              aria-valuemin={Math.round(MIN * 100)}\n              aria-valuemax={Math.round((before.share + slice.share - MIN) * 100)}\n              aria-valuenow={percent}\n              aria-valuetext={`${before.who.name} ${percent}%, ${slice.who.name} ${Math.round(slice.share * 100)}%`}\n              data-active={dragging === id ? \"\" : undefined}\n              style={point(slice.from, 48)}\n              onPointerDown={(event) => {\n                event.currentTarget.setPointerCapture(event.pointerId)\n                setTouched(true)\n                setDragging(id)\n              }}\n              onPointerMove={(event) => dragging === id && dragTo(id, event)}\n              onPointerUp={() => setDragging(null)}\n              onPointerCancel={() => setDragging(null)}\n              onKeyDown={(event) => {\n                const step = event.key === \"ArrowRight\" || event.key === \"ArrowDown\" ? 0.02 : event.key === \"ArrowLeft\" || event.key === \"ArrowUp\" ? -0.02 : 0\n                if (!step) return\n                event.preventDefault()\n                setTouched(true)\n                setSplit((now) => shift(now, id, step))\n              }}\n            />\n          )\n        })}\n\n        {!touched && hintId && (\n          <span className=\"rnd-ring-hint\" style={point(slices.find(({ who }) => who.id === hintId)!.from, 58)} aria-hidden>\n            Drag me\n          </span>\n        )}\n      </div>\n      </div>\n\n      <div className=\"rnd-controls\" data-tone=\"paper\">\n        <div className=\"rnd-controls-tip\">\n          <span id=\"rnd-tip\" className=\"rnd-controls-name\">\n            Tip\n          </span>\n          <Slider\n            className=\"rnd-controls-slider\"\n            value={tip}\n            min={0}\n            max={30}\n            step={1}\n            onValueChange={(value) => {\n              setTouched(true)\n              setTip(Array.isArray(value) ? value[0] : (value as number))\n            }}\n          >\n            <SliderControl>\n              <SliderTrack>\n                <SliderIndicator />\n                <SliderThumb aria-labelledby=\"rnd-tip\" />\n              </SliderTrack>\n            </SliderControl>\n          </Slider>\n          <span className=\"rnd-controls-value\">{tip}%</span>\n        </div>\n        <div className=\"rnd-controls-table\" role=\"group\" aria-label=\"Who is at the table\">\n          {people.map((who) => {\n            const on = split.table.includes(who.id)\n            const locked = who.id === \"you\" || (on && split.table.length <= 2)\n            return (\n              <Toggle\n                key={who.id}\n                className=\"rnd-seat\"\n                pressed={on}\n                aria-label={who.name}\n                title={locked ? `${who.name} stays at the table` : on ? `Take ${who.name} off the bill` : `Add ${who.name} to the bill`}\n                onPressedChange={(_, details) => {\n                  // The ring owns who is at the table; you, and the last two people, stay on it.\n                  if (locked) return details.cancel()\n                  setTouched(true)\n                  setSplit((now) => toggle(now, who.id))\n                }}\n              >\n                <Face who={who} />\n              </Toggle>\n            )\n          })}\n        </div>\n        <Button\n          className=\"rnd-controls-even\"\n          disabled={isEven}\n          onClick={() => {\n            setTouched(true)\n            setSplit(even)\n          }}\n        >\n          Split evenly\n        </Button>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/round/ring.tsx"
    },
    {
      "path": "registry/templates/round/round.css",
      "content": "/* Round: a landing page you can operate. Plain CSS, scoped to .rnd.\n   Colours: change the six --rnd-* values. Every section then picks a tone (data-tone) that maps them\n   onto the shadcn tokens, so the UI SDK controls inside each section follow along.\n   Motion: every duration is multiplied by --kf-speed and every easing reads Keyframery's three curves,\n   so the four motion styles (Calm, Springy, Snappy, Playful) change the whole page. */\n\n.rnd {\n  --rnd-blue: #2431e0;\n  --rnd-ink: #0d0f1f;\n  --rnd-paper: #f2f2f5;\n  --rnd-hot: #ff4d24;\n  --rnd-pink: #ffb9d5;\n  --rnd-sky: #a8d4ff;\n\n  --rnd-t: var(--kf-speed, 1);\n  --rnd-house: var(--ease-house, cubic-bezier(0.22, 1, 0.36, 1));\n  --rnd-spring: var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));\n  --rnd-pop: var(--ease-pop, cubic-bezier(0.34, 1.56, 0.64, 1));\n  --rnd-gutter: clamp(20px, 4vw, 56px);\n  --rnd-round: clamp(26px, 3.2vw, 46px);\n\n  position: relative;\n  isolation: isolate;\n  width: 100%;\n  flex: 1;\n  background: var(--rnd-ink);\n  color: var(--foreground);\n  font-family: var(--rnd-font, \"Inter Variable\", \"Inter\", ui-sans-serif, system-ui, sans-serif);\n  font-size: 17px;\n  line-height: 1.45;\n  font-feature-settings: \"ss01\", \"cv11\";\n  font-optical-sizing: auto;\n  -webkit-font-smoothing: antialiased;\n  text-rendering: optimizeLegibility;\n\n  & *,\n  & *::before,\n  & *::after {\n    box-sizing: border-box;\n  }\n  /* This file is not in a cascade layer, so its rules outrank Tailwind's utilities. The resets below\n     therefore name the page's own elements and leave the UI SDK controls inside it alone. */\n  & :where(h1, h2, h3, p, ul, ol, figure, blockquote) {\n    margin: 0;\n  }\n  & :where(ul, ol) {\n    padding: 0;\n    list-style: none;\n  }\n  & :where(a) {\n    color: inherit;\n    text-decoration: none;\n  }\n  & :where(.rnd-btn, .rnd-tab, .rnd-seat, .rnd-chip, .rnd-ring-handle, .rnd-controls-even) {\n    font: inherit;\n    color: inherit;\n    background: none;\n    border: 0;\n    padding: 0;\n  }\n  & :where(img) {\n    display: block;\n    max-width: 100%;\n  }\n  & :where(a, .rnd-btn, .rnd-tab, .rnd-seat, .rnd-chip, .rnd-ring-handle, .rnd-controls-even):focus-visible {\n    outline: 2.5px solid var(--ring);\n    outline-offset: 3px;\n  }\n\n  /* ------------------------------------------------------------ tones */\n\n  & [data-tone] {\n    background: var(--background);\n    color: var(--foreground);\n  }\n  & [data-tone=\"blue\"] {\n    --background: var(--rnd-blue);\n    --foreground: #fff;\n    --muted: rgb(255 255 255 / 0.14);\n    --muted-foreground: rgb(255 255 255 / 0.74);\n    --border: rgb(255 255 255 / 0.26);\n    --primary: #fff;\n    --primary-foreground: var(--rnd-blue);\n    --ring: #fff;\n    --rnd-soft: var(--rnd-pink);\n  }\n  & [data-tone=\"paper\"] {\n    --background: var(--rnd-paper);\n    --foreground: var(--rnd-ink);\n    --card: #fff;\n    --muted: #e3e4ea;\n    --muted-foreground: #5a5d70;\n    --accent: #e9eaef;\n    --border: rgb(13 15 31 / 0.13);\n    --primary: var(--rnd-ink);\n    --primary-foreground: #fff;\n    --ring: var(--rnd-blue);\n    --rnd-soft: #a2a4b3;\n  }\n  & [data-tone=\"ink\"] {\n    --background: var(--rnd-ink);\n    --foreground: #fff;\n    --muted: rgb(255 255 255 / 0.1);\n    --muted-foreground: rgb(255 255 255 / 0.62);\n    --border: rgb(255 255 255 / 0.16);\n    --primary: #fff;\n    --primary-foreground: var(--rnd-ink);\n    --ring: #fff;\n    --rnd-soft: rgb(255 255 255 / 0.38);\n  }\n  & [data-tone=\"pink\"] {\n    --background: var(--rnd-pink);\n    --foreground: var(--rnd-ink);\n    --muted: rgb(13 15 31 / 0.08);\n    --muted-foreground: rgb(13 15 31 / 0.68);\n    --border: rgb(13 15 31 / 0.18);\n    --primary: var(--rnd-ink);\n    --primary-foreground: #fff;\n    --ring: var(--rnd-ink);\n    --rnd-soft: rgb(13 15 31 / 0.42);\n  }\n  & [data-tone=\"hot\"] {\n    --background: var(--rnd-hot);\n    --foreground: var(--rnd-ink);\n    --muted: rgb(13 15 31 / 0.1);\n    --muted-foreground: rgb(13 15 31 / 0.72);\n    --border: rgb(13 15 31 / 0.22);\n    --primary: var(--rnd-ink);\n    --primary-foreground: #fff;\n    --ring: var(--rnd-ink);\n    --rnd-soft: #fff;\n  }\n\n  /* ------------------------------------------------------------ type */\n\n  & .rnd-display {\n    font-size: clamp(3.3rem, 10.4vw, 10.25rem);\n    line-height: 0.88;\n    letter-spacing: -0.055em;\n    font-weight: 640;\n  }\n  & .rnd-h2 {\n    font-size: clamp(2.6rem, 7.2vw, 6.75rem);\n    line-height: 0.92;\n    letter-spacing: -0.05em;\n    font-weight: 640;\n    text-wrap: balance;\n  }\n  & .rnd-soft {\n    color: var(--rnd-soft);\n  }\n  & .rnd-kicker {\n    display: flex;\n    align-items: baseline;\n    gap: 0.75em;\n    font-size: 15px;\n    font-weight: 560;\n    letter-spacing: -0.01em;\n\n    & b {\n      font-weight: 560;\n      font-variant-numeric: tabular-nums;\n      color: var(--muted-foreground);\n    }\n  }\n  & .rnd-lede {\n    max-width: 34ch;\n    font-size: clamp(1.06rem, 1.45vw, 1.31rem);\n    line-height: 1.4;\n    letter-spacing: -0.012em;\n    color: var(--muted-foreground);\n    text-wrap: pretty;\n  }\n  & .rnd-sr {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    overflow: hidden;\n    clip-path: inset(50%);\n    white-space: nowrap;\n  }\n  /* A headline line that rises out of its own baseline. */\n  & .rnd-line {\n    display: block;\n    overflow: clip;\n    overflow-clip-margin: 0.14em;\n    padding-bottom: 0.06em;\n\n    & > span {\n      display: block;\n      transition:\n        translate calc(900ms * var(--rnd-t)) var(--rnd-spring),\n        opacity calc(500ms * var(--rnd-t)) var(--rnd-house);\n      transition-delay: calc(var(--i, 0) * 90ms * var(--rnd-t));\n    }\n  }\n\n  /* ------------------------------------------------------------ rolling figures and faces */\n\n  & .rnd-roll {\n    position: relative;\n    display: inline-block;\n    font-variant-numeric: tabular-nums;\n    white-space: nowrap;\n  }\n  & .rnd-roll-row {\n    display: inline-flex;\n    line-height: 1;\n  }\n  & .rnd-roll-digit {\n    display: inline-block;\n    height: 1em;\n    overflow: clip;\n  }\n  & .rnd-roll-strip {\n    display: flex;\n    flex-direction: column;\n    translate: 0 calc(var(--d) * -10%);\n    transition: translate calc(620ms * var(--rnd-t)) var(--rnd-spring);\n\n    & > span {\n      height: 1em;\n    }\n  }\n  & .rnd-face {\n    display: inline-grid;\n    place-items: center;\n    flex: none;\n    width: var(--face-size, 32px);\n    height: var(--face-size, 32px);\n    overflow: hidden;\n    border-radius: 50%;\n    background: var(--face);\n    color: var(--face-ink);\n    font-size: calc(var(--face-size, 32px) * 0.42);\n    font-weight: 640;\n    line-height: 1;\n\n    & img {\n      width: 100%;\n      height: 100%;\n      object-fit: cover;\n    }\n  }\n\n  /* ------------------------------------------------------------ buttons */\n\n  & .rnd-btn {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 0.55em;\n    height: 54px;\n    padding: 0 28px;\n    border-radius: 999px;\n    background: var(--primary);\n    color: var(--primary-foreground);\n    font-size: 16px;\n    font-weight: 600;\n    letter-spacing: -0.012em;\n    line-height: 1;\n    white-space: nowrap;\n    cursor: pointer;\n    transition:\n      scale calc(260ms * var(--rnd-t)) var(--rnd-pop),\n      background-color calc(160ms * var(--rnd-t));\n\n    &:hover {\n      background: color-mix(in oklab, var(--primary), var(--background) 12%);\n    }\n    &:active {\n      scale: 0.96;\n    }\n    & svg {\n      width: 1.05em;\n      height: 1.05em;\n      transition: translate calc(320ms * var(--rnd-t)) var(--rnd-spring);\n    }\n    &:hover svg {\n      translate: 3px 0;\n    }\n  }\n  & .rnd-btn[data-size=\"sm\"] {\n    height: 38px;\n    padding: 0 16px;\n    font-size: 14px;\n  }\n  & .rnd-btn[data-kind=\"line\"] {\n    background: transparent;\n    color: var(--foreground);\n    box-shadow: inset 0 0 0 1.5px var(--border);\n\n    &:hover {\n      background: var(--muted);\n    }\n  }\n  & .rnd-btn[data-kind=\"hot\"] {\n    background: var(--rnd-hot);\n    color: var(--rnd-ink);\n\n    &:hover {\n      background: color-mix(in oklab, var(--rnd-hot), #fff 14%);\n    }\n  }\n\n  /* ------------------------------------------------------------ nav */\n\n  & .rnd-nav {\n    position: fixed;\n    z-index: 50;\n    top: 14px;\n    left: 50%;\n    display: flex;\n    align-items: center;\n    gap: 6px;\n    width: min(calc(100% - 28px), 1080px);\n    height: 58px;\n    padding: 0 10px 0 22px;\n    translate: -50% 0;\n    border-radius: 999px;\n    background: #fff;\n    color: var(--rnd-ink);\n    box-shadow:\n      0 0 0 1px rgb(13 15 31 / 0.06),\n      0 14px 34px -16px rgb(13 15 31 / 0.4);\n    transition:\n      translate calc(800ms * var(--rnd-t)) var(--rnd-spring),\n      opacity calc(400ms * var(--rnd-t)) var(--rnd-house);\n\n    --background: #fff;\n    --foreground: var(--rnd-ink);\n    --muted: #eeeff3;\n    --muted-foreground: #5a5d70;\n    --primary: var(--rnd-ink);\n    --primary-foreground: #fff;\n    --ring: var(--rnd-blue);\n    --segmented-control-height: 30px;\n    --segmented-control-radius: 999px;\n    --segmented-control-key-radius: 999px;\n  }\n  & .rnd-wordmark {\n    margin-right: auto;\n    font-size: 23px;\n    font-weight: 700;\n    letter-spacing: -0.06em;\n    line-height: 1;\n  }\n  & .rnd-nav-links {\n    display: flex;\n    gap: 2px;\n    margin-right: 8px;\n\n    & a {\n      padding: 9px 13px;\n      border-radius: 999px;\n      font-size: 14.5px;\n      font-weight: 520;\n      letter-spacing: -0.012em;\n      transition: background-color calc(160ms * var(--rnd-t));\n\n      &:hover {\n        background: var(--muted);\n      }\n    }\n  }\n\n  /* ------------------------------------------------------------ sheets: each one sticks while the next slides over it */\n\n  & .rnd-anchor {\n    display: block;\n    height: 0;\n    scroll-margin-top: 0;\n  }\n  & .rnd-sheet {\n    position: sticky;\n    top: var(--stick, 0px);\n\n    &:not(:first-of-type) {\n      border-radius: var(--rnd-round) var(--rnd-round) 0 0;\n    }\n    /* The light going out on the sheet underneath. */\n    &::after {\n      content: \"\";\n      position: absolute;\n      inset: 0;\n      border-radius: inherit;\n      background: #05060f;\n      opacity: calc(var(--cover, 0) * 0.5);\n      pointer-events: none;\n    }\n  }\n  & .rnd-sheet-in {\n    border-radius: inherit;\n    transform-origin: 50% calc(100% - 50svh);\n  }\n  & .rnd-sheet[data-under] > .rnd-sheet-in {\n    scale: calc(1 - var(--cover, 0) * 0.07);\n    will-change: scale;\n  }\n  & .rnd-wrap {\n    width: min(100%, 1440px);\n    margin-inline: auto;\n    padding-inline: var(--rnd-gutter);\n  }\n\n  /* Anything marked data-reveal arrives when it scrolls into view (after the page script has started). */\n  &[data-ready] [data-reveal] {\n    transition:\n      opacity calc(700ms * var(--rnd-t)) var(--rnd-house),\n      translate calc(900ms * var(--rnd-t)) var(--rnd-spring),\n      filter calc(700ms * var(--rnd-t)) var(--rnd-house);\n    transition-delay: calc(var(--i, 0) * 80ms * var(--rnd-t));\n  }\n  &[data-ready] [data-reveal]:not([data-in]) {\n    opacity: 0;\n    translate: 0 34px;\n    filter: blur(8px);\n  }\n  &[data-ready] [data-reveal]:not([data-in]) .rnd-line > span {\n    translate: 0 130%;\n  }\n  &[data-ready] [data-reveal=\"lines\"]:not([data-in]) {\n    opacity: 1;\n    translate: none;\n    filter: none;\n  }\n\n  /* ------------------------------------------------------------ hero */\n\n  & .rnd-hero {\n    display: grid;\n    grid-template-columns: minmax(0, 1fr) minmax(0, min(45vw, 620px));\n    grid-template-rows: 1fr auto;\n    column-gap: clamp(24px, 4vw, 80px);\n    align-items: center;\n    min-height: 100svh;\n    padding-top: 104px;\n  }\n  & .rnd-hero-copy {\n    display: grid;\n    gap: clamp(20px, 2.4vw, 34px);\n    justify-items: start;\n    padding-block: 12px 28px;\n  }\n  & .rnd-hero-actions {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 10px 14px;\n  }\n  & .rnd-hero-notes {\n    grid-column: 1 / -1;\n    display: grid;\n    grid-template-columns: repeat(3, minmax(0, 1fr));\n    gap: 24px;\n    padding-block: 18px 22px;\n    border-top: 1px solid var(--border);\n    font-size: 14.5px;\n    letter-spacing: -0.008em;\n    color: var(--muted-foreground);\n\n    & b {\n      display: block;\n      color: var(--foreground);\n      font-weight: 600;\n    }\n  }\n\n  /* ------------------------------------------------------------ the ring */\n\n  & .rnd-split {\n    display: grid;\n    justify-items: center;\n    gap: clamp(14px, 1.6vw, 22px);\n    padding-bottom: 20px;\n  }\n  & .rnd-ring-slot {\n    position: relative;\n    width: min(100%, max(280px, calc(100svh - 318px)));\n    aspect-ratio: 1;\n  }\n  & .rnd-ring {\n    position: absolute;\n    inset: 0;\n    container-type: inline-size;\n    touch-action: pan-y;\n    user-select: none;\n    -webkit-user-select: none;\n  }\n  & .rnd-ring-art {\n    display: block;\n    width: 100%;\n    height: 100%;\n    overflow: visible;\n  }\n  & .rnd-ring-slice,\n  & .rnd-ring-cover {\n    fill: none;\n    stroke-width: 300;\n  }\n  & .rnd-ring-slice {\n    transition:\n      stroke-dasharray calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      rotate calc(680ms * var(--rnd-t)) var(--rnd-spring);\n  }\n  /* The white ring of the loading sequence. Hidden once the page has opened. */\n  & .rnd-ring-cover {\n    stroke: #fff;\n    stroke-dasharray: 1 1;\n    stroke-dashoffset: -1;\n    rotate: -150deg;\n    pointer-events: none;\n  }\n  & .rnd-ring-hub {\n    position: absolute;\n    inset: 33%;\n    display: grid;\n    place-content: center;\n    justify-items: center;\n    gap: 1.1cqw;\n    text-align: center;\n    color: #fff;\n    pointer-events: none;\n  }\n  & .rnd-ring-hub-label,\n  & .rnd-ring-hub-note {\n    font-size: clamp(11px, 2.45cqw, 15px);\n    font-weight: 520;\n    letter-spacing: -0.01em;\n    line-height: 1.2;\n    color: rgb(255 255 255 / 0.76);\n  }\n  & .rnd-ring-hub-total {\n    font-size: clamp(22px, 7.4cqw, 46px);\n    font-weight: 640;\n    letter-spacing: -0.045em;\n  }\n  & .rnd-ring-label {\n    position: absolute;\n    display: grid;\n    justify-items: center;\n    gap: 0.9cqw;\n    translate: -50% -50%;\n    text-align: center;\n    pointer-events: none;\n    opacity: 0;\n    scale: 0.6;\n    transition:\n      left calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      top calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      opacity calc(220ms * var(--rnd-t)) var(--rnd-house),\n      scale calc(520ms * var(--rnd-t)) var(--rnd-pop);\n\n    --face-size: clamp(24px, 7.6cqw, 46px);\n\n    &[data-on] {\n      opacity: 1;\n      scale: 1;\n    }\n    &[data-small] .rnd-ring-label-name {\n      display: none;\n    }\n  }\n  & .rnd-ring-label-name {\n    font-size: clamp(11px, 2.5cqw, 15px);\n    font-weight: 560;\n    letter-spacing: -0.01em;\n    line-height: 1;\n  }\n  & .rnd-ring-label-amount {\n    font-size: clamp(13px, 3.7cqw, 23px);\n    font-weight: 640;\n    letter-spacing: -0.035em;\n  }\n  & .rnd-ring-handle {\n    position: absolute;\n    width: 30px;\n    height: 30px;\n    margin: -15px;\n    border-radius: 50%;\n    background: #fff;\n    box-shadow:\n      0 0 0 5px var(--rnd-blue),\n      0 8px 18px 2px rgb(5 8 60 / 0.45);\n    cursor: grab;\n    touch-action: none;\n    transition:\n      left calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      top calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      scale calc(300ms * var(--rnd-t)) var(--rnd-pop),\n      opacity calc(240ms * var(--rnd-t)) var(--rnd-house);\n\n    /* A comfortable target for a thumb. */\n    &::before {\n      content: \"\";\n      position: absolute;\n      inset: -10px;\n      border-radius: 50%;\n    }\n    &::after {\n      content: \"\";\n      position: absolute;\n      inset: 10px;\n      border-radius: 50%;\n      background: var(--rnd-blue);\n    }\n    &:hover {\n      scale: 1.14;\n    }\n    &[data-active] {\n      scale: 1.28;\n      cursor: grabbing;\n    }\n    &:focus-visible {\n      outline-color: #fff;\n      outline-offset: 7px;\n    }\n  }\n  /* While a handle is held, the ring follows the hand exactly. Figures keep rolling. */\n  & .rnd-ring[data-dragging] :is(.rnd-ring-slice, .rnd-ring-label, .rnd-ring-handle) {\n    transition-duration: 0s, 0s, calc(300ms * var(--rnd-t)), calc(240ms * var(--rnd-t));\n  }\n  & .rnd-ring-hint {\n    position: absolute;\n    padding: 8px 13px;\n    translate: -50% -50%;\n    border-radius: 999px;\n    background: #fff;\n    color: var(--rnd-blue);\n    font-size: 13.5px;\n    font-weight: 620;\n    letter-spacing: -0.01em;\n    line-height: 1;\n    white-space: nowrap;\n    pointer-events: none;\n    box-shadow: 0 8px 18px -6px rgb(5 8 60 / 0.5);\n    transition:\n      left calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      top calc(680ms * var(--rnd-t)) var(--rnd-spring),\n      opacity calc(300ms * var(--rnd-t)) var(--rnd-house),\n      scale calc(460ms * var(--rnd-t)) var(--rnd-pop);\n  }\n\n  & .rnd-controls {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: center;\n    gap: 10px 16px;\n    max-width: 100%;\n    padding: 8px 8px 8px 20px;\n    border-radius: 32px;\n    box-shadow: 0 22px 44px -22px rgb(5 8 60 / 0.7);\n    background: #fff;\n\n    --background: #fff;\n    --primary: var(--rnd-blue);\n    --slider-fill: var(--rnd-blue);\n    --slider-track: #e3e4ea;\n    --slider-thumb-size: 20px;\n    --slider-thickness: 6px;\n  }\n  & .rnd-controls-tip {\n    display: flex;\n    align-items: center;\n    gap: 10px;\n    font-size: 14.5px;\n    font-weight: 560;\n    letter-spacing: -0.01em;\n  }\n  & .rnd-controls-slider {\n    width: 92px;\n  }\n  & .rnd-controls-value {\n    width: 2.3em;\n    font-variant-numeric: tabular-nums;\n    color: var(--muted-foreground);\n  }\n  & .rnd-controls-table {\n    display: flex;\n    gap: 4px;\n  }\n  & .rnd-seat {\n    display: grid;\n    place-items: center;\n    width: 34px;\n    height: 34px;\n    border-radius: 50%;\n    cursor: pointer;\n    --face-size: 26px;\n\n    &::before {\n      background: transparent;\n      box-shadow: inset 0 0 0 2px var(--rnd-ink);\n    }\n    & .rnd-face {\n      transition:\n        filter calc(300ms * var(--rnd-t)),\n        opacity calc(300ms * var(--rnd-t)),\n        scale calc(420ms * var(--rnd-t)) var(--rnd-pop);\n    }\n    &:not([data-pressed]) .rnd-face {\n      filter: grayscale(1);\n      opacity: 0.42;\n      scale: 0.86;\n    }\n    &:not([data-pressed]):hover .rnd-face {\n      opacity: 0.8;\n    }\n  }\n  & .rnd-controls-even {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    height: 36px;\n    padding: 0 15px;\n    border-radius: 999px;\n    background: var(--rnd-ink);\n    color: #fff;\n    font-size: 14px;\n    font-weight: 600;\n    letter-spacing: -0.01em;\n    line-height: 1;\n    white-space: nowrap;\n    cursor: pointer;\n    transition:\n      opacity calc(200ms * var(--rnd-t)),\n      scale calc(260ms * var(--rnd-t)) var(--rnd-pop);\n\n    &[data-disabled] {\n      opacity: 0.32;\n      cursor: default;\n    }\n  }\n\n  /* ------------------------------------------------------------ claim */\n\n  & .rnd-claim-top {\n    display: grid;\n    gap: clamp(28px, 4vw, 56px);\n    padding-block: clamp(84px, 11vw, 168px) clamp(56px, 7vw, 104px);\n  }\n  /* The statement inks in, word by word, as it is scrolled through. */\n  & .rnd-say {\n    max-width: 22ch;\n    font-size: clamp(2.05rem, 5.5vw, 5.1rem);\n    line-height: 1.02;\n    letter-spacing: -0.045em;\n    font-weight: 620;\n\n    & [data-w] {\n      --on: clamp(0, (var(--p, 1) - var(--w)) * 9, 1);\n      color: color-mix(in oklab, var(--foreground) calc(var(--on) * 100%), rgb(13 15 31 / 0.14));\n    }\n  }\n  & .rnd-say-chip {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.16em;\n    padding: 0.05em 0.36em 0.05em 0.07em;\n    translate: 0 -0.05em;\n    border-radius: 999px;\n    background: var(--chip);\n    color: var(--chip-ink, #fff);\n    font-size: 0.8em;\n    letter-spacing: -0.035em;\n    line-height: 1.06;\n    vertical-align: middle;\n    white-space: nowrap;\n    opacity: calc(0.22 + var(--on) * 0.78);\n    --face-size: 0.92em;\n  }\n  & .rnd-claim {\n    display: grid;\n    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);\n    gap: clamp(28px, 5vw, 88px);\n    align-items: start;\n    padding-bottom: clamp(88px, 11vw, 170px);\n  }\n  & .rnd-claim-side {\n    display: grid;\n    gap: clamp(22px, 2.6vw, 36px);\n  }\n  & .rnd-claim-title {\n    font-size: clamp(1.9rem, 3.5vw, 3.1rem);\n    line-height: 0.98;\n    letter-spacing: -0.045em;\n    font-weight: 640;\n  }\n  & .rnd-tabs {\n    display: grid;\n    border-top: 1px solid var(--border);\n  }\n  & .rnd-tab {\n    display: grid;\n    grid-template-columns: auto 1fr auto;\n    align-items: center;\n    gap: 16px;\n    width: 100%;\n    padding: 14px 4px;\n    border-bottom: 1px solid var(--border);\n    text-align: left;\n    cursor: pointer;\n    color: var(--muted-foreground);\n    transition:\n      color calc(200ms * var(--rnd-t)),\n      padding calc(520ms * var(--rnd-t)) var(--rnd-spring);\n    --face-size: 46px;\n\n    &::before {\n      background: transparent;\n    }\n    & img {\n      width: 46px;\n      height: 46px;\n      border-radius: 50%;\n      object-fit: cover;\n      filter: grayscale(1);\n      opacity: 0.7;\n      transition:\n        filter calc(300ms * var(--rnd-t)),\n        opacity calc(300ms * var(--rnd-t)),\n        scale calc(520ms * var(--rnd-t)) var(--rnd-pop);\n    }\n    &:hover {\n      color: var(--foreground);\n    }\n    &[aria-pressed=\"true\"] {\n      padding-left: 14px;\n      color: var(--foreground);\n\n      & img {\n        filter: none;\n        opacity: 1;\n        scale: 1.12;\n      }\n    }\n  }\n  & .rnd-tab-name {\n    font-size: clamp(1.2rem, 1.9vw, 1.65rem);\n    font-weight: 620;\n    letter-spacing: -0.035em;\n    line-height: 1.1;\n  }\n  & .rnd-tab-total {\n    font-size: 15px;\n    font-weight: 560;\n    font-variant-numeric: tabular-nums;\n  }\n\n  & .rnd-bill {\n    display: grid;\n    border-radius: clamp(22px, 2.4vw, 34px);\n    background: #fff;\n    box-shadow:\n      0 0 0 1px rgb(13 15 31 / 0.05),\n      0 2px 4px rgb(13 15 31 / 0.04),\n      0 40px 70px -40px rgb(13 15 31 / 0.35);\n  }\n  & .rnd-bill-head {\n    display: flex;\n    align-items: end;\n    justify-content: space-between;\n    gap: 16px;\n    padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(16px, 1.8vw, 22px);\n  }\n  & .rnd-bill-title {\n    font-size: clamp(1.25rem, 1.9vw, 1.6rem);\n    font-weight: 640;\n    letter-spacing: -0.035em;\n    line-height: 1.1;\n  }\n  & .rnd-bill-when {\n    margin-top: 5px;\n    font-size: 14.5px;\n    color: var(--muted-foreground);\n  }\n  & .rnd-bill-total {\n    font-size: clamp(1.7rem, 3vw, 2.6rem);\n    font-weight: 640;\n    letter-spacing: -0.05em;\n  }\n  & .rnd-item {\n    display: grid;\n    grid-template-columns: 1fr auto 5.2em;\n    align-items: center;\n    gap: 14px;\n    min-height: 58px;\n    margin-inline: clamp(20px, 2.4vw, 32px);\n    border-top: 1px solid var(--border);\n    font-size: 16px;\n    letter-spacing: -0.012em;\n    animation: rnd-row-in calc(560ms * var(--rnd-t)) var(--rnd-spring) backwards;\n    animation-delay: calc((var(--i) * 45ms + 90ms) * var(--rnd-t));\n  }\n  & .rnd-item-name {\n    font-weight: 540;\n  }\n  & .rnd-item-who {\n    display: flex;\n    gap: 3px;\n  }\n  & .rnd-chip {\n    display: grid;\n    place-items: center;\n    width: 34px;\n    height: 34px;\n    border-radius: 50%;\n    cursor: pointer;\n    --face-size: 26px;\n\n    &::before {\n      background: transparent;\n      box-shadow: inset 0 0 0 2px var(--who);\n    }\n    & .rnd-face {\n      transition:\n        filter calc(260ms * var(--rnd-t)),\n        opacity calc(260ms * var(--rnd-t)),\n        scale calc(420ms * var(--rnd-t)) var(--rnd-pop);\n    }\n    &:not([data-pressed]) .rnd-face {\n      filter: grayscale(1);\n      opacity: 0.32;\n      scale: 0.84;\n    }\n    &:not([data-pressed]):hover .rnd-face {\n      opacity: 0.75;\n    }\n  }\n  & .rnd-item-price {\n    justify-self: end;\n    font-weight: 600;\n    font-variant-numeric: tabular-nums;\n  }\n  & .rnd-bill-foot {\n    display: grid;\n    gap: 16px;\n    margin-top: 6px;\n    padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 30px);\n    border-radius: 0 0 clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px);\n    background: #f7f7f9;\n  }\n  & .rnd-bar {\n    display: flex;\n    gap: 3px;\n    height: 14px;\n\n    & span {\n      flex: 0 1 0px;\n      min-width: 6px;\n      border-radius: 999px;\n      background: var(--who);\n      transition: flex-grow calc(680ms * var(--rnd-t)) var(--rnd-spring);\n    }\n  }\n  & .rnd-owes {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 12px 26px;\n  }\n  & .rnd-owe {\n    display: flex;\n    align-items: center;\n    gap: 9px;\n    font-size: 15px;\n    --face-size: 26px;\n\n    & b {\n      font-weight: 640;\n      letter-spacing: -0.02em;\n    }\n  }\n  & .rnd-claim-tip {\n    font-size: 14.5px;\n    color: var(--muted-foreground);\n  }\n\n  /* ------------------------------------------------------------ settle: a pinned screen, driven by the scroll */\n\n  & .rnd-settle {\n    height: 290svh;\n\n    & > .rnd-sheet-in {\n      height: 100%;\n    }\n  }\n  & .rnd-pin {\n    position: sticky;\n    top: 0;\n    display: grid;\n    grid-template-rows: auto 1fr auto;\n    height: 100svh;\n    padding-block: 108px clamp(26px, 4vh, 48px);\n    overflow: clip;\n  }\n  & .rnd-settle-head {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: baseline;\n    justify-content: space-between;\n    gap: 12px 32px;\n  }\n  & .rnd-settle-title {\n    display: grid;\n    font-size: clamp(1.7rem, 3.4vw, 3rem);\n    line-height: 1;\n    letter-spacing: -0.045em;\n    font-weight: 640;\n\n    & > span {\n      grid-area: 1 / 1;\n      transition:\n        opacity calc(360ms * var(--rnd-t)) var(--rnd-house),\n        translate calc(620ms * var(--rnd-t)) var(--rnd-spring),\n        filter calc(360ms * var(--rnd-t)) var(--rnd-house);\n    }\n    & > span:last-child {\n      color: var(--rnd-hot);\n    }\n  }\n  & .rnd-settle:not([data-done]) .rnd-settle-title > span:last-child,\n  & .rnd-settle[data-done] .rnd-settle-title > span:first-child {\n    opacity: 0;\n    translate: 0 0.5em;\n    filter: blur(6px);\n  }\n  & .rnd-meter {\n    display: grid;\n    place-content: center;\n    justify-items: center;\n    gap: clamp(8px, 1.6vh, 18px);\n  }\n  & .rnd-odo {\n    display: flex;\n    font-size: min(21.5vw, 46svh);\n    font-weight: 680;\n    letter-spacing: -0.065em;\n    line-height: 1;\n    font-variant-numeric: tabular-nums;\n    transition: color calc(500ms * var(--rnd-t)) var(--rnd-house);\n  }\n  & .rnd-settle[data-done] .rnd-odo {\n    color: var(--rnd-hot);\n  }\n  & .rnd-odo-digit {\n    display: block;\n    height: 1em;\n    overflow: clip;\n    transition:\n      max-width calc(520ms * var(--rnd-t)) var(--rnd-spring),\n      opacity calc(300ms * var(--rnd-t)) var(--rnd-house);\n    max-width: 1em;\n\n    &[data-ghost] {\n      max-width: 0;\n      opacity: 0;\n    }\n    & > span {\n      display: flex;\n      flex-direction: column;\n      translate: 0 calc(var(--d, 0) * -100% / 11);\n      will-change: translate;\n\n      & > span {\n        height: 1em;\n      }\n    }\n  }\n  & .rnd-meter-note {\n    font-size: clamp(15px, 1.5vw, 19px);\n    font-weight: 520;\n    letter-spacing: -0.012em;\n    color: var(--muted-foreground);\n  }\n  & .rnd-debts {\n    display: grid;\n    grid-template-columns: repeat(3, minmax(0, 1fr));\n    border-top: 1px solid var(--border);\n  }\n  & .rnd-debt {\n    display: grid;\n    grid-template-columns: auto 1fr auto;\n    align-items: center;\n    gap: 14px;\n    padding: 18px clamp(12px, 2vw, 28px) 0;\n    --face-size: 44px;\n\n    &:first-child {\n      padding-left: 0;\n    }\n    &:last-child {\n      padding-right: 0;\n    }\n    & + & {\n      border-left: 1px solid var(--border);\n    }\n    & .rnd-face,\n    & .rnd-debt-text {\n      transition: opacity calc(400ms * var(--rnd-t)) var(--rnd-house);\n    }\n    &[data-paid] .rnd-face,\n    &[data-paid] .rnd-debt-text {\n      opacity: 0.45;\n    }\n  }\n  & .rnd-debt-text {\n    display: grid;\n    gap: 3px;\n    min-width: 0;\n    font-size: 15px;\n    line-height: 1.25;\n    color: var(--muted-foreground);\n\n    & b {\n      color: var(--foreground);\n      font-size: 17px;\n      font-weight: 620;\n      letter-spacing: -0.02em;\n    }\n  }\n  & .rnd-debt-note {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n  & .rnd-debt-state {\n    display: grid;\n    place-items: center;\n    width: 34px;\n    height: 34px;\n    border-radius: 50%;\n    box-shadow: inset 0 0 0 1.5px var(--border);\n    transition:\n      background-color calc(260ms * var(--rnd-t)),\n      box-shadow calc(260ms * var(--rnd-t)),\n      scale calc(460ms * var(--rnd-t)) var(--rnd-pop);\n\n    & path {\n      stroke-dasharray: 20;\n      stroke-dashoffset: 20;\n      transition: stroke-dashoffset calc(320ms * var(--rnd-t)) var(--rnd-house) calc(120ms * var(--rnd-t));\n    }\n  }\n  & .rnd-debt[data-paid] .rnd-debt-state {\n    background: var(--rnd-hot);\n    color: var(--rnd-ink);\n    box-shadow: inset 0 0 0 1.5px var(--rnd-hot);\n    scale: 1.08;\n\n    & path {\n      stroke-dashoffset: 0;\n    }\n  }\n\n  /* ------------------------------------------------------------ table talk */\n\n  & .rnd-talk {\n    display: grid;\n    gap: clamp(56px, 8vw, 120px);\n    padding-block: clamp(84px, 11vw, 168px);\n  }\n  & .rnd-stats {\n    display: grid;\n    grid-template-columns: repeat(3, minmax(0, 1fr));\n    gap: clamp(20px, 3vw, 48px);\n  }\n  & .rnd-stat {\n    display: grid;\n    gap: 10px;\n    padding-top: 16px;\n    border-top: 1.5px solid var(--foreground);\n    font-size: 16px;\n    letter-spacing: -0.012em;\n    color: var(--muted-foreground);\n  }\n  & .rnd-stat-figure {\n    display: flex;\n    align-items: baseline;\n    gap: 0.12em;\n    color: var(--foreground);\n    font-size: clamp(3rem, 8vw, 7.4rem);\n    font-weight: 660;\n    letter-spacing: -0.06em;\n    line-height: 0.92;\n\n    & small {\n      font-size: 0.26em;\n      font-weight: 600;\n      letter-spacing: -0.03em;\n    }\n  }\n  & .rnd-quotes {\n    display: grid;\n  }\n  & .rnd-quote {\n    display: grid;\n    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.3fr);\n    gap: 20px clamp(24px, 5vw, 80px);\n    align-items: start;\n    padding-block: clamp(22px, 3vw, 40px);\n    border-top: 1px solid var(--border);\n  }\n  & .rnd-quote-text {\n    font-size: clamp(1.5rem, 3.3vw, 3rem);\n    line-height: 1.05;\n    letter-spacing: -0.042em;\n    font-weight: 600;\n    text-wrap: balance;\n  }\n  & .rnd-quote-by {\n    display: flex;\n    align-items: center;\n    gap: 12px;\n    padding-top: 6px;\n    font-size: 15px;\n    line-height: 1.3;\n    color: var(--muted-foreground);\n    --face-size: 44px;\n\n    & b {\n      display: block;\n      color: var(--foreground);\n      font-weight: 620;\n    }\n  }\n\n  /* ------------------------------------------------------------ pricing and questions */\n\n  & .rnd-pricing {\n    display: grid;\n    gap: clamp(36px, 5vw, 72px);\n    padding-block: clamp(84px, 11vw, 168px) clamp(64px, 8vw, 120px);\n  }\n  & .rnd-pricing-head {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: end;\n    justify-content: space-between;\n    gap: 24px 40px;\n\n    --segmented-control-height: 38px;\n    --segmented-control-radius: 999px;\n    --segmented-control-key-radius: 999px;\n    --segmented-control-track: #e3e4ea;\n  }\n  & .rnd-billing {\n    zoom: 1.18;\n  }\n  & .rnd-plans {\n    display: grid;\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n    gap: clamp(14px, 1.6vw, 22px);\n  }\n  & .rnd-plan {\n    display: grid;\n    grid-template-rows: auto auto 1fr auto;\n    gap: clamp(20px, 2.4vw, 32px);\n    padding: clamp(24px, 3vw, 44px);\n    border-radius: clamp(24px, 2.6vw, 38px);\n\n    &[data-tone=\"paper\"] {\n      background: #fff;\n      box-shadow: 0 0 0 1px rgb(13 15 31 / 0.06);\n    }\n  }\n  & .rnd-plan-name {\n    display: grid;\n    gap: 6px;\n    font-size: 16px;\n    color: var(--muted-foreground);\n\n    & b {\n      color: var(--foreground);\n      font-size: clamp(1.4rem, 2vw, 1.75rem);\n      font-weight: 640;\n      letter-spacing: -0.035em;\n      line-height: 1.1;\n    }\n  }\n  & .rnd-plan-price {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: baseline;\n    gap: 0 0.16em;\n    font-size: clamp(3.6rem, 8.6vw, 8rem);\n    font-weight: 660;\n    letter-spacing: -0.065em;\n    line-height: 0.9;\n\n    & small {\n      font-size: 0.2em;\n      font-weight: 560;\n      letter-spacing: -0.02em;\n      color: var(--muted-foreground);\n    }\n  }\n  & .rnd-plan-note {\n    min-height: 1.45em;\n    margin-top: 12px;\n    font-size: 15px;\n    color: var(--muted-foreground);\n  }\n  & .rnd-plan-list {\n    display: grid;\n    align-content: start;\n\n    & li {\n      display: flex;\n      gap: 12px;\n      padding-block: 13px;\n      border-top: 1px solid var(--border);\n      font-size: 16.5px;\n      letter-spacing: -0.012em;\n    }\n    & svg {\n      flex: none;\n      width: 18px;\n      height: 18px;\n      margin-top: 3px;\n    }\n  }\n  & .rnd-plan .rnd-btn {\n    justify-self: start;\n  }\n  & .rnd-faq {\n    display: grid;\n    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);\n    gap: clamp(28px, 5vw, 88px);\n    padding-block: clamp(56px, 7vw, 104px) clamp(96px, 12vw, 180px);\n    border-top: 1px solid var(--border);\n\n    --accordion-padding: 22px;\n    --accordion-radius: 12px;\n\n    & [data-slot=\"accordion-trigger\"] {\n      font-size: clamp(1.12rem, 1.7vw, 1.45rem);\n      line-height: 1.2;\n      font-weight: 620;\n      letter-spacing: -0.03em;\n    }\n    & [data-slot=\"accordion-panel\"] {\n      max-width: 60ch;\n      font-size: 16.5px;\n      line-height: 1.5;\n    }\n  }\n\n  /* ------------------------------------------------------------ last call and footer */\n\n  & .rnd-last {\n    display: grid;\n    gap: clamp(28px, 3.4vw, 48px);\n    justify-items: start;\n    padding-block: clamp(96px, 13vw, 200px) clamp(72px, 9vw, 130px);\n  }\n  & .rnd-foot {\n    display: grid;\n    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));\n    gap: 32px;\n    padding-block: 34px;\n    border-top: 1.5px solid var(--rnd-ink);\n    font-size: 15.5px;\n    letter-spacing: -0.01em;\n\n    & h3 {\n      margin-bottom: 12px;\n      font-size: 15.5px;\n      font-weight: 640;\n    }\n    & li + li {\n      margin-top: 7px;\n    }\n    & a {\n      color: var(--muted-foreground);\n      transition: color calc(160ms * var(--rnd-t));\n\n      &:hover {\n        color: var(--foreground);\n      }\n    }\n  }\n  & .rnd-foot-brand {\n    display: grid;\n    align-content: start;\n    gap: 10px;\n    max-width: 30ch;\n    color: var(--muted-foreground);\n\n    & .rnd-wordmark {\n      color: var(--foreground);\n      font-size: 30px;\n    }\n  }\n  & .rnd-legal {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n    gap: 8px 24px;\n    padding-block: 18px 26px;\n    border-top: 1px solid var(--border);\n    font-size: 14px;\n    color: var(--muted-foreground);\n\n    & a {\n      text-decoration: underline;\n      text-decoration-thickness: 1px;\n      text-underline-offset: 3px;\n    }\n  }\n\n  /* ------------------------------------------------------------ tablet and phone */\n\n  @media (max-width: 960px) {\n    & .rnd-nav-links {\n      display: none;\n    }\n    & .rnd-hero {\n      grid-template-columns: minmax(0, 1fr);\n      grid-template-rows: auto;\n      row-gap: 28px;\n      padding-top: 112px;\n    }\n    & .rnd-ring-slot {\n      width: min(100%, 520px);\n    }\n    & .rnd-claim,\n    & .rnd-faq {\n      grid-template-columns: minmax(0, 1fr);\n    }\n    & .rnd-foot {\n      grid-template-columns: repeat(3, minmax(0, 1fr));\n    }\n    & .rnd-foot-brand {\n      grid-column: 1 / -1;\n    }\n  }\n  @media (max-width: 640px) {\n    font-size: 16px;\n\n    & .rnd-nav {\n      height: 54px;\n      padding-left: 18px;\n    }\n    & .rnd-nav .rnd-btn {\n      display: none;\n    }\n    & .rnd-hero-notes {\n      grid-template-columns: minmax(0, 1fr);\n      gap: 10px;\n    }\n    & .rnd-controls {\n      padding: 14px 14px 12px;\n      border-radius: 26px;\n    }\n    & .rnd-controls-slider {\n      width: 132px;\n    }\n    & .rnd-item {\n      grid-template-columns: 1fr auto;\n      gap: 6px 12px;\n      padding-block: 12px;\n    }\n    & .rnd-item-who {\n      grid-column: 1 / -1;\n      grid-row: 2;\n    }\n    & .rnd-stats,\n    & .rnd-plans,\n    & .rnd-quote {\n      grid-template-columns: minmax(0, 1fr);\n    }\n    & .rnd-debts {\n      grid-template-columns: minmax(0, 1fr);\n      border-top: 0;\n    }\n    & .rnd-debt {\n      padding: 10px 0;\n      border-top: 1px solid var(--border);\n\n      & + & {\n        border-left: 0;\n      }\n      --face-size: 34px;\n    }\n    & .rnd-debt-note {\n      display: none;\n    }\n    & .rnd-btn:not([data-size=\"sm\"]) {\n      height: 50px;\n      padding: 0 22px;\n      font-size: 15.5px;\n    }\n    & .rnd-foot {\n      grid-template-columns: repeat(2, minmax(0, 1fr));\n    }\n  }\n}\n\n/* The page under the template: the colour seen when the scroll bounces at either end. */\n:root:has(.rnd) {\n  background: #2431e0;\n  scroll-behavior: smooth;\n}\n\n/* ---------------------------------------------------------------- the loading sequence\n   A white ring draws itself in the middle of a blue screen while the bill adds up. Then it flies to its\n   place in the hero and the white peels away, leaving one slice per person. The page script moves it\n   (round.tsx); these rules say what each step looks like. Skipped entirely with reduced motion. */\n@media (prefers-reduced-motion: no-preference) {\n  .rnd[data-intro=\"load\"] {\n    & .rnd-ring {\n      position: fixed;\n      z-index: 60;\n      inset: auto;\n      top: 50%;\n      left: 50%;\n      width: min(54vmin, 430px);\n      height: min(54vmin, 430px);\n      translate: -50% -50%;\n    }\n    & .rnd-ring-slice {\n      opacity: 0;\n    }\n    & .rnd-ring-cover {\n      stroke-dashoffset: 0;\n      animation: rnd-ring-draw calc(1250ms * var(--rnd-t)) var(--rnd-house) backwards;\n    }\n    & .rnd-ring-hub {\n      animation: rnd-rise calc(700ms * var(--rnd-t)) var(--rnd-spring) calc(350ms * var(--rnd-t)) backwards;\n    }\n    & .rnd-nav {\n      translate: -50% -140%;\n      opacity: 0;\n    }\n  }\n  .rnd[data-intro=\"place\"] .rnd-ring-cover {\n    stroke-dashoffset: 0;\n  }\n  /* While the white is still on the ring: nothing else has arrived yet. */\n  .rnd[data-intro] {\n    & .rnd-hero .rnd-line > span {\n      translate: 0 130%;\n    }\n    & :is(.rnd-hero-copy > :not(h1), .rnd-hero-notes, .rnd-controls) {\n      opacity: 0;\n      translate: 0 26px;\n    }\n    & :is(.rnd-ring-label, .rnd-ring-label[data-on]) {\n      opacity: 0;\n      scale: 0.5;\n    }\n    & :is(.rnd-ring-handle, .rnd-ring-hint) {\n      opacity: 0;\n      scale: 0.3;\n    }\n  }\n  /* Arrivals, in order, once the ring has landed. */\n  .rnd {\n    & .rnd-ring-cover {\n      transition: stroke-dashoffset calc(1050ms * var(--rnd-t)) var(--rnd-house) calc(380ms * var(--rnd-t));\n    }\n    & :is(.rnd-hero-copy > :not(h1), .rnd-hero-notes, .rnd-controls) {\n      transition:\n        opacity calc(700ms * var(--rnd-t)) var(--rnd-house),\n        translate calc(900ms * var(--rnd-t)) var(--rnd-spring);\n      transition-delay: calc((var(--i, 0) * 90ms + 420ms) * var(--rnd-t));\n    }\n    & .rnd-hero .rnd-line > span {\n      transition-delay: calc((var(--i, 0) * 110ms + 160ms) * var(--rnd-t));\n    }\n    &:not([data-intro]) .rnd-ring-label {\n      transition-delay: 0s, 0s, calc((var(--i, 0) * 160ms + 520ms) * var(--rnd-t)), calc((var(--i, 0) * 160ms + 520ms) * var(--rnd-t));\n    }\n    /* Handles and the hint come last, once the white has peeled away. */\n    &:not([data-intro]) .rnd-ring-handle {\n      transition-delay: 0s, 0s, calc(1250ms * var(--rnd-t)), calc(1250ms * var(--rnd-t));\n    }\n    &:not([data-intro]) .rnd-ring-hint {\n      transition-delay: 0s, 0s, calc(1700ms * var(--rnd-t)), calc(1700ms * var(--rnd-t));\n    }\n    &[data-settled] :is(.rnd-ring-handle, .rnd-ring-hint),\n    &[data-settled] .rnd-ring-label,\n    &[data-settled] :is(.rnd-hero-copy > :not(h1), .rnd-hero-notes, .rnd-controls),\n    &[data-settled] .rnd-hero .rnd-line > span {\n      transition-delay: 0s;\n    }\n  }\n}\n\n@keyframes rnd-ring-draw {\n  from {\n    stroke-dashoffset: 1;\n  }\n}\n@keyframes rnd-rise {\n  from {\n    opacity: 0;\n    translate: 0 14px;\n  }\n}\n@keyframes rnd-bill-in {\n  from {\n    opacity: 0;\n    translate: 28px 0;\n    filter: blur(6px);\n  }\n}\n@keyframes rnd-row-in {\n  from {\n    opacity: 0;\n    translate: 0 10px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .rnd *,\n  .rnd *::before,\n  .rnd *::after {\n    animation: none !important;\n    transition: none !important;\n  }\n  .rnd .rnd-sheet[data-under] > .rnd-sheet-in {\n    scale: none;\n  }\n  :root:has(.rnd) {\n    scroll-behavior: auto;\n  }\n}\n",
      "type": "registry:component",
      "target": "components/round/round.css"
    },
    {
      "path": "registry/templates/round/round.tsx",
      "content": "\"use client\"\n\n/* Round: a landing page for a made-up bill-splitting app, built to be operated.\n   - The page loads by splitting a bill: a white ring draws, flies into the hero and becomes four slices.\n   - The hero ring is live: drag a line, tap a face, change the tip.\n   - The scroll stacks full-colour sheets, inks in a statement and drives a screen-wide odometer.\n   - One switch in the bar re-prices every figure on the page.\n   Controls come from Keyframery's UI SDK components; springs and scroll-linked motion come from Motion.\n   Copy, people, bills and prices live in data.ts; colours are the six --rnd-* values in round.css. */\n\nimport { animate, MotionConfig } from \"motion/react\"\nimport * as React from \"react\"\nimport { flushSync } from \"react-dom\"\n\nimport { Button } from \"@/components/keyframery/primitives/button\"\nimport { SegmentedControl, SegmentedControlItem } from \"@/components/keyframery/segmented-control\"\n\nimport { Claim } from \"./claim\"\nimport { currencies, nav, type CurrencyId } from \"./data\"\nimport { CurrencyProvider, Magnetic, motionSpeed, prefersReducedMotion, usePage } from \"./parts\"\nimport { Arrow, Last, Pricing, Talk } from \"./rest\"\nimport { SplitRing } from \"./ring\"\nimport { Settle } from \"./settle\"\n\nimport \"./round.css\"\n\nconst i = (index: number) => ({ \"--i\": index }) as React.CSSProperties\n\n/** load: the white ring in the middle of the screen. place: it flies to the hero. done: the page is open. */\ntype Intro = \"load\" | \"place\" | \"done\"\n\nexport function RoundLanding() {\n  const page = React.useRef<HTMLDivElement>(null)\n  const [currency, setCurrency] = React.useState<CurrencyId>(\"usd\")\n  const [intro, setIntro] = React.useState<Intro>(\"load\")\n  const [settled, setSettled] = React.useState(false)\n  usePage(page)\n\n  React.useEffect(() => {\n    const root = page.current\n    // No loading sequence with reduced motion, or when the page reopens part-way down.\n    if (!root || prefersReducedMotion() || window.scrollY > 40) {\n      setIntro(\"done\")\n      setSettled(true)\n      return\n    }\n    const pace = motionSpeed(root)\n    const html = document.documentElement\n    html.style.overflow = \"hidden\"\n    const timers = [\n      window.setTimeout(() => {\n        const ring = root.querySelector<HTMLElement>(\".rnd-ring\")\n        const from = ring?.getBoundingClientRect()\n        // The ring goes back to its place in the hero in one step, then is animated from where it was.\n        flushSync(() => setIntro(\"place\"))\n        const to = ring?.getBoundingClientRect()\n        if (ring && from && to) {\n          animate(\n            ring,\n            {\n              x: [from.left + from.width / 2 - (to.left + to.width / 2), 0],\n              y: [from.top + from.height / 2 - (to.top + to.height / 2), 0],\n              scale: [from.width / to.width, 1],\n            },\n            { type: \"spring\", duration: 1.2 * pace, bounce: 0.24 },\n          )\n        }\n        html.style.overflow = \"\"\n      }, 1750 * pace),\n      window.setTimeout(() => setIntro(\"done\"), 1950 * pace),\n      // The staggered arrivals are over: later changes should not wait their turn.\n      window.setTimeout(() => setSettled(true), 4400 * pace),\n    ]\n    return () => {\n      timers.forEach(window.clearTimeout)\n      html.style.overflow = \"\"\n    }\n  }, [])\n\n  return (\n    <MotionConfig reducedMotion=\"user\">\n      <CurrencyProvider value={currency}>\n        <div ref={page} className=\"rnd\" data-intro={intro === \"done\" ? undefined : intro} data-settled={settled ? \"\" : undefined}>\n          <header className=\"rnd-nav\">\n            <a className=\"rnd-wordmark\" href=\"#top\" aria-label=\"Round, back to the top\">\n              round\n            </a>\n            <nav className=\"rnd-nav-links\" aria-label=\"Sections\">\n              {nav.map((link) => (\n                <a key={link.href} href={link.href}>\n                  {link.label}\n                </a>\n              ))}\n            </nav>\n            <SegmentedControl className=\"rnd-nav-money\" aria-label=\"Show prices in\" value={currency} onValueChange={(next) => next && setCurrency(next as CurrencyId)}>\n              {(Object.keys(currencies) as CurrencyId[]).map((id) => (\n                <SegmentedControlItem key={id} value={id} aria-label={currencies[id].label}>\n                  {currencies[id].symbol}\n                </SegmentedControlItem>\n              ))}\n            </SegmentedControl>\n            <Button className=\"rnd-btn\" data-size=\"sm\" render={<a href=\"#pricing\" />}>\n              Get the app\n            </Button>\n          </header>\n\n          <span id=\"top\" className=\"rnd-anchor\" />\n          <span id=\"split\" className=\"rnd-anchor\" />\n          <section className=\"rnd-sheet\" data-tone=\"blue\">\n            <div className=\"rnd-sheet-in\">\n              <div className=\"rnd-wrap rnd-hero\">\n                <div className=\"rnd-hero-copy\">\n                  <h1 className=\"rnd-display\">\n                    <span className=\"rnd-line\">\n                      <span>Split it.</span>\n                    </span>\n                    <span className=\"rnd-line rnd-soft\" style={i(1)}>\n                      <span>Stay</span>\n                    </span>\n                    <span className=\"rnd-line rnd-soft\" style={i(2)}>\n                      <span>friends.</span>\n                    </span>\n                  </h1>\n                  <p className=\"rnd-lede\" style={i(2)}>\n                    Round divides any bill the way your table actually ate. Drag a slice, tap a friend, and it is settled before the plates are cleared.\n                  </p>\n                  <div className=\"rnd-hero-actions\" style={i(3)}>\n                    <Magnetic>\n                      <Button className=\"rnd-btn\" render={<a href=\"#pricing\" />}>\n                        Get the app\n                        <Arrow />\n                      </Button>\n                    </Magnetic>\n                    <Button className=\"rnd-btn\" data-kind=\"line\" render={<a href=\"#claim\" />}>\n                      See how it splits\n                    </Button>\n                  </div>\n                </div>\n\n                <SplitRing />\n\n                <div className=\"rnd-hero-notes\" style={i(5)}>\n                  <p>\n                    <b>Free for the whole table</b>\n                    Only the organiser ever pays\n                  </p>\n                  <p>\n                    <b>iPhone, Android and the browser</b>\n                    Friends pay from a link\n                  </p>\n                  <p>\n                    <b>4.9 from 61,000 ratings</b>\n                    Mostly from people who hate maths\n                  </p>\n                </div>\n              </div>\n            </div>\n          </section>\n\n          <span id=\"claim\" className=\"rnd-anchor\" />\n          <Claim />\n          <Settle />\n          <Talk />\n          <span id=\"pricing\" className=\"rnd-anchor\" />\n          <Pricing />\n          <Last />\n        </div>\n      </CurrencyProvider>\n    </MotionConfig>\n  )\n}\n\nexport default RoundLanding\n",
      "type": "registry:component",
      "target": "components/round/round.tsx"
    },
    {
      "path": "registry/templates/round/settle.tsx",
      "content": "\"use client\"\n\n/* Chapter three: one pinned screen. The scroll drives a screen-wide odometer from nothing to everything\n   your table owes you, and each debt is ticked off as the figure passes it. */\n\nimport { useMotionValueEvent, useSpring } from \"motion/react\"\nimport * as React from \"react\"\n\nimport { currencies, debts, person } from \"./data\"\nimport { Face, formatMoney, Money, useCurrency, useScrollProgress } from \"./parts\"\n\nconst DIGITS = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"]\nconst owed = debts.reduce((sum, debt) => sum + debt.amount, 0)\n/** How far through the pinned scroll the count reaches the full amount. */\nconst HOLD = 0.9\n\nexport function Settle() {\n  const currency = useCurrency()\n  const sheet = React.useRef<HTMLElement>(null)\n  const anchor = React.useRef<HTMLSpanElement>(null)\n\n  /* The sheet sticks at the end of its scroll, so its own box stops moving. The anchor in front of it never sticks. */\n  const scrolled = useScrollProgress(() => {\n    const top = anchor.current?.getBoundingClientRect().top\n    const height = sheet.current?.offsetHeight\n    if (top === undefined || !height) return 0\n    return -top / (height - window.innerHeight)\n  })\n  const progress = useSpring(scrolled, { stiffness: 110, damping: 24, mass: 0.45 })\n\n  /* The final figure as its characters, each digit knowing its place: 0 is the smallest unit shown. */\n  const { rate, digits } = currencies[currency]\n  const final = Math.round(owed * rate * 10 ** digits)\n  let place = String(final).length\n  const chars = [...formatMoney(owed, currency)].map((char) => (/\\d/.test(char) ? { char, place: --place } : { char, place: place - 1 }))\n\n  const paint = React.useCallback(\n    (at: number) => {\n      const root = sheet.current\n      if (!root) return\n      // The count finishes a little before the pin lets go, so the last figure holds on screen.\n      const done = at >= HOLD\n      const amount = final * Math.min(1, Math.max(0, at / HOLD))\n      for (const column of root.querySelectorAll<HTMLElement>(\"[data-place]\")) {\n        const power = 10 ** Number(column.dataset.place)\n        // Leading zeros stay folded away until the figure grows into them; the whole units always show.\n        column.toggleAttribute(\"data-ghost\", amount < power && Number(column.dataset.place) > digits)\n        if (!column.hasAttribute(\"data-digit\")) continue\n        const turns = amount / power\n        const whole = Math.floor(turns)\n        // The smallest digit spins freely. Each one above it only turns as the digit below passes nine.\n        const turn = power === 1 ? turns % 10 : (whole % 10) + Math.max(0, (turns - whole - 0.9) / 0.1)\n        column.style.setProperty(\"--d\", turn.toFixed(3))\n      }\n      let paid = 0\n      root.querySelectorAll<HTMLElement>(\"[data-debt]\").forEach((row, index) => {\n        paid += Math.round(debts[index].amount * rate * 10 ** digits)\n        row.toggleAttribute(\"data-paid\", done || amount >= paid)\n      })\n      root.toggleAttribute(\"data-done\", done)\n    },\n    [final, rate, digits],\n  )\n  useMotionValueEvent(progress, \"change\", paint)\n  React.useEffect(() => paint(progress.get()), [paint, progress])\n\n  return (\n    <>\n      <span ref={anchor} id=\"settle\" className=\"rnd-anchor\" />\n      <section ref={sheet} className=\"rnd-sheet rnd-settle\" data-tone=\"ink\">\n        <div className=\"rnd-sheet-in\">\n          <div className=\"rnd-wrap rnd-pin\">\n            <div className=\"rnd-settle-head\">\n              <p className=\"rnd-kicker\">\n                <b>03</b> Settle\n              </p>\n              <h2 className=\"rnd-settle-title\">\n                <span>Keep scrolling. That is the whole flow.</span>\n                <span aria-hidden>All square. Nobody had to ask.</span>\n              </h2>\n            </div>\n\n            <div className=\"rnd-meter\">\n              <div className=\"rnd-odo\">\n                <span className=\"rnd-sr\">{formatMoney(owed, currency)} settled</span>\n                {chars.map(({ char, place: at }, index) =>\n                  /\\d/.test(char) ? (\n                    <span key={`${currency}${index}`} aria-hidden className=\"rnd-odo-digit\" data-place={at} data-digit=\"\">\n                      <span>\n                        {[...DIGITS, \"0\"].map((digit, row) => (\n                          <span key={row}>{digit}</span>\n                        ))}\n                      </span>\n                    </span>\n                  ) : (\n                    // A comma belongs to the digit on its left and hides with it. The symbol and the point always show.\n                    <span key={`${currency}${index}`} aria-hidden className=\"rnd-odo-digit\" data-place={char === \",\" ? at + 1 : undefined}>\n                      {char}\n                    </span>\n                  ),\n                )}\n              </div>\n              <p className=\"rnd-meter-note\">back in your account, out of the {formatMoney(owed, currency)} you covered</p>\n            </div>\n\n            <div className=\"rnd-debts\">\n              {debts.map((debt) => {\n                const who = person(debt.from)\n                return (\n                  <div key={debt.from} className=\"rnd-debt\" data-debt=\"\">\n                    <Face who={who} />\n                    <div className=\"rnd-debt-text\">\n                      <b>\n                        {who.name} · <Money usd={debt.amount} />\n                      </b>\n                      <span className=\"rnd-debt-note\">{debt.note}</span>\n                    </div>\n                    <span className=\"rnd-debt-state\" aria-hidden>\n                      <svg viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                        <path d=\"m3.5 8.5 3 3 6-7\" />\n                      </svg>\n                    </span>\n                  </div>\n                )\n              })}\n            </div>\n          </div>\n        </div>\n      </section>\n    </>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/round/settle.tsx"
    }
  ],
  "type": "registry:block"
}