root = Card([header, revenueThisMonth, revenueTrend, topProducts, conversion, downloadSection])
header = CardHeader("Monthly Sales Check", "Founder dashboard · Last updated today")
revenueThisMonth = Callout("success", "Revenue this month", "$47,850")
revenueTrend = Card([trendHeading, trendChart], "sunk")
trendHeading = Heading("Revenue trend (last 6 months)", "h3")
trendChart = LineChart(trendLabels, [revSeries], "natural", "Month", "USD")
trendLabels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
revSeries = Series("Revenue", [38200, 41500, 39800, 44100, 46300, 47850])
topProducts = Card([productsHeading, productsTable], "sunk")
productsHeading = Heading("Top 3 best-selling products", "h3")
productsTable = Table([prodNameCol, prodUnitsCol])
prodNameCol = Col("Product", ["Pro Plan", "Starter Kit", "Enterprise"])
prodUnitsCol = Col("Units sold", [342, 287, 156])
conversion = Callout("info", "Conversion rate", "3.8% (up 0.4 pp vs last month)")
downloadSection = Buttons([downloadBtn])
downloadBtn = Button("Download CSV", null, "primary")