v3.24.0.1
Restructuring - Schedule of Restructuring and Related Costs (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Restructuring Cost and Reserve [Line Items]    
Restructuring charges $ 40,800 $ 188,949
Severance and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   97,061
Stock-Based Compensation Expense (Benefit)    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   34,504
Lease Exit and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   31,227
Other    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   26,157
Cost of revenue    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   20,585
Cost of revenue | Severance and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   2,291
Cost of revenue | Stock-Based Compensation Expense (Benefit)    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   709
Cost of revenue | Lease Exit and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   0
Cost of revenue | Other    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   17,585
Research and development    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   78,915
Research and development | Severance and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   46,994
Research and development | Stock-Based Compensation Expense (Benefit)    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   29,188
Research and development | Lease Exit and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   0
Research and development | Other    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   2,733
Sales and marketing    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   30,791
Sales and marketing | Severance and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   30,565
Sales and marketing | Stock-Based Compensation Expense (Benefit)    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   (504)
Sales and marketing | Lease Exit and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   0
Sales and marketing | Other    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   730
General and administrative    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   58,658
General and administrative | Severance and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   17,211
General and administrative | Stock-Based Compensation Expense (Benefit)    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   5,111
General and administrative | Lease Exit and Related Charges    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   31,227
General and administrative | Other    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges   $ 5,109