Stock-based compensation - Schedule of stock-based compensation expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2026 |
Sep. 30, 2025 |
Sep. 30, 2026 |
Sep. 30, 2025 |
|
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 2,980 | $ 4,593 | $ 8,687 | $ 15,092 |
| Income Statement Location: us-gaap:GeneralAndAdministrativeExpense | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | 1,999 | 2,477 | 5,189 | 7,931 |
| Income Statement Location: us-gaap:ResearchAndDevelopmentExpense | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 981 | $ 2,116 | $ 3,498 | $ 7,161 |