Stock-Based Compensation - Summary of Stock-based Compensation Reflected in Unaudited Condensed Consolidated Statements of Operations (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2024 |
Sep. 30, 2023 |
Sep. 30, 2024 |
Sep. 30, 2023 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | $ 11,908 | $ 8,385 | $ 35,193 | $ 25,303 |
| Selling, general and administrative | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 8,018 | 5,759 | 23,578 | 17,290 |
| Research and development | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 3,571 | 2,626 | 10,978 | 8,013 |
| Cost of sales | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | $ 319 | $ 0 | $ 637 | $ 0 |