root = Card([header, desc, quals, salary, applyForm, shareActions])
header = CardHeader("Senior Product Designer", "Design Systems Team")
desc = TextContent("We're looking for a Senior Product Designer to own the design system across web and mobile. You'll partner with engineering and product to craft accessible, scalable components that ship to millions of users.")
quals = Tabs([qualsTab, bonusTab])
qualsTab = TabItem("core", "Core qualifications", [qualsList])
qualsList = ListBlock([q1, q2, q3, q4, q5], "number")
q1 = ListItem("5+ years of product design experience", "With a portfolio of shipped work")
q2 = ListItem("Expertise in Figma and design tokens", "Component libraries and theming")
q3 = ListItem("Strong accessibility knowledge", "WCAG 2.1 and inclusive design practices")
q4 = ListItem("Cross-functional collaboration", "Working with engineers and PMs")
q5 = ListItem("Prototyping and systems thinking", "From low-fi wireframes to polished specs")
bonusTab = TabItem("bonus", "Nice to have", [bonusList])
bonusList = ListBlock([b1, b2, b3], "number")
b1 = ListItem("Experience with motion design", "Micro-interactions and transitions")
b2 = ListItem("Contribution to open-source design systems", "Shared libraries or tooling")
b3 = ListItem("Mobile-first design experience", "iOS and Android platform patterns")
salary = Card([salaryHeading, salaryRange, salaryNote], "sunk")
salaryHeading = Heading("Salary range", "h3")
salaryRange = SingleStackedBarChart(["Base", "Equity", "Bonus"], [140000, 40000, 20000])
salaryNote = TextContent("Total compensation between $160,000 and $200,000 per year, plus equity and benefits.")
applyForm = Form("apply", applyButtons, [nameField, emailField, resumeField])
nameField = FormControl("Full name", nameInput)
nameInput = Input("name", "Jane Doe")
emailField = FormControl("Email", emailInput, "We'll send your application status here")
emailInput = Input("email", "jane@example.com", "email")
resumeField = FormControl("Resume link", resumeInput, "Paste a link to your portfolio or resume")
resumeInput = Input("resume", "https://...", "url")
applyButtons = Buttons([applyBtn])
applyBtn = Button("Submit application", null, "primary")
shareActions = Buttons([shareBtn, copyBtn])
shareBtn = Button("Share posting", null, "secondary")
copyBtn = Button("Copy link", null, "tertiary")