Stock-based compensation - Stock Based Compensation Expense by Award Type (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2024 |
Sep. 30, 2023 |
Sep. 30, 2024 |
Sep. 30, 2023 |
|
| Stock options | ||||
| Stock-based compensation expense included in total operating expenses | $ 4,027 | $ 4,001 | $ 13,112 | $ 17,051 |
| Stock options | ||||
| Stock options | ||||
| Stock-based compensation expense included in total operating expenses | 2,284 | 3,211 | 7,379 | 11,718 |
| Restricted stock units and other stock awards | ||||
| Stock options | ||||
| Stock-based compensation expense included in total operating expenses | 1,670 | 694 | 5,432 | 4,647 |
| Employee stock purchase plan | ||||
| Stock options | ||||
| Stock-based compensation expense included in total operating expenses | $ 73 | $ 96 | $ 301 | $ 686 |