// Animated calorie ring — used in hero and showcase const CalorieRing = ({ size = 280, pct = 0.78, value = "1,847", unit = "kcal left", stroke = 16 }) => { const r = (size - stroke) / 2; const c = 2 * Math.PI * r; const [p, setP] = React.useState(0); React.useEffect(() => { const t = setTimeout(() => setP(pct), 120); return () => clearTimeout(t); }, [pct]); return ( {value} {unit} ); }; window.CalorieRing = CalorieRing;