v3.26.1
Stock Based Compensation - Summary of Stock-Based Compensation Expense by Grant Type and by Function Included within Consolidated Statements of Comprehensive Income (Loss) (Detail) - 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]        
Subtotal $ 28,030 $ 41,618 $ 61,703 $ 88,174
Capitalized stock-based compensation costs (3,558) (4,593) (7,832) (9,721)
Total stock-based compensation expense included in expenses 24,472 37,025 53,871 78,453
Research and development 91,258 204,392 245,218 977,840
Selling, general and administrative 107,600 137,897 216,551 271,526
Location, Statement of Income, Balance [Axis]: us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation expense included in expenses 8,509 15,277 18,786 32,594
Location, Statement of Income, Balance [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation expense included in expenses 15,963 21,748 35,085 45,859
Employee Stock Option        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation expense included in expenses 4,978 11,689 12,074 24,578
Restricted and Performance Stock Units Member        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation expense included in expenses 23,052 28,114 49,629 59,657
Employee Stock Purchase Plan [Member]        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation expense included in expenses $ 0 $ 1,815 $ 0 $ 3,939