v3.26.1
Fair value of financial instruments and marketable securities - Convertible senior notes (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2026
Jun. 30, 2026
Dec. 31, 2025
Sep. 30, 2019
Long-term debt          
Repayment of convertible notes     $ 327,890    
Payments for conversion of debt     12,879    
Aggregate principal $ 55,451 $ 55,451 55,451 $ 286,631  
Convertible debt | 2031 Convertible Notes          
Long-term debt          
Principal $ 550,000 $ 550,000 $ 550,000    
Interest rate ( as a percent ) 0.00% 0.00% 0.00%    
Additional amount available for purchase $ 50,000 $ 50,000 $ 50,000    
Convertible debt | 2031 Convertible Notes | Significant other observable inputs (Level 2)          
Long-term debt          
Fair value of convertible notes 579,200 579,200 579,200    
Convertible debt | 2026 Convertible Notes          
Long-term debt          
Principal         $ 287,500
Interest rate ( as a percent )         1.50%
Additional amount available for purchase         $ 37,500
Repurchased principal amount 222,000 222,000 222,000    
Repayment of convertible notes 328,800        
Principal amount converted   10,000      
Payments for conversion of debt   $ 12,900 10,000    
Number of shares issued on conversion of notes   3,506      
Aggregate principal 55,500 $ 55,500 55,500    
Convertible debt | 2026 Convertible Notes | Significant other observable inputs (Level 2)          
Long-term debt          
Fair value of convertible notes $ 85,500 $ 85,500 $ 85,500 $ 424,500