Stock-based compensation - Schedule of stock-based compensation expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 3,036 | $ 4,992 | $ 5,707 | $ 10,499 |
| Income Statement Location: us-gaap:GeneralAndAdministrativeExpense | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | 1,681 | 2,535 | 3,190 | 5,454 |
| Income Statement Location: us-gaap:ResearchAndDevelopmentExpense | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 1,355 | $ 2,457 | $ 2,517 | $ 5,045 |