v3.22.0.1
Stockholders’ Equity (Deficit) - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Dec. 14, 2020
USD ($)
shares
Dec. 31, 2019
USD ($)
shares
May 15, 2017
USD ($)
shares
Dec. 31, 2020
$ / shares
shares
Jun. 30, 2019
shares
Mar. 31, 2021
USD ($)
Dec. 31, 2021
USD ($)
vote
$ / shares
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2018
USD ($)
shares
Apr. 30, 2020
$ / shares
shares
Dec. 31, 2015
shares
Class of Stock [Line Items]                        
Common stock authorized (in shares) 4,736,000,000                      
Common stock, par value (in USD per share) | $ / shares       $ 0.0001     $ 0.0001 $ 0.0001        
Reclassification of derivative warrant liability to equity | $             $ 1,277,168   $ 14,117      
Options exercisable (in shares)       36,682,000     20,909,000 36,682,000        
Options excisable (in USD per share) | $ / shares       $ 8.63     $ 13.28 $ 8.63        
Weighted-average fair value of options granted (in USD per share) | $ / shares             $ 96.50 $ 15.42 $ 33.46      
Aggregate intrinsic value of options exercised | $             $ 2,824,900 $ 476,000 $ 50,400      
Grant date fair value of options vested | $             45,900 44,400 44,600      
Unrecognized compensation cost related to stock option awards granted | $             $ 85,700          
Weighted-average period expected to recognize compensation expense             2 years 8 months 1 day          
Stock-based compensation expense | $             $ 898,830 3,001,948 97,547      
Stock-based compensation arrangement, tax benefit | $             35,600 39,900 9,800      
Proceeds from the issuance of common stock under employee stock purchase plan | $             $ 50,621 $ 0 $ 0      
Restricted stock awards                        
Class of Stock [Line Items]                        
Issued (in shares)             0 0        
Vesting term             4 years          
Performance Shares                        
Class of Stock [Line Items]                        
Stock-based compensation expense | $ $ 2,800,000                      
2018 Plan                        
Class of Stock [Line Items]                        
Additional shares authorized (in shares)                   13,200,000    
Assumed Equity Incentive Plan | Restricted stock awards                        
Class of Stock [Line Items]                        
Issued (in shares)             3,512 12,550        
2020 Employee Stock Purchase Plan | Employee stock purchase plan                        
Class of Stock [Line Items]                        
Maximum shares issuable (in shares)       89,785,394                
Stock-based compensation expense | $             $ 105,900          
Proceeds from the issuance of common stock under employee stock purchase plan | $             $ 50,600          
Shares available for future issuance (in shares)             3,000,000          
Class A Common Stock Warrants | Second lien loan due July 2025 | Secured Debt                        
Class of Stock [Line Items]                        
Shares called by warrants (in shares)                     7,934,794  
Exercise price of warrants (in USD per share) | $ / shares                     $ 28.355  
Reclassification of derivative warrant liability to equity | $           $ 1,300,000            
Class B Common Stock Warrants                        
Class of Stock [Line Items]                        
Shares called by warrants (in shares)   237,756             237,756     429,672
Reclassification of derivative warrant liability to equity | $   $ 14,100                    
Class B Common Stock Warrants | Prior Loan Agreement                        
Class of Stock [Line Items]                        
Shares called by warrants (in shares)         150,000              
Common Class A                        
Class of Stock [Line Items]                        
Common stock authorized (in shares) 2,000,000,000     2,000,000,000     2,000,000,000 2,000,000,000        
Common stock, par value (in USD per share) | $ / shares             $ 0.0001          
Votes per common share | vote             1          
Common Class A | Assumed Equity Incentive Plan                        
Class of Stock [Line Items]                        
Options exercisable (in shares)       150,816     98,093 150,816        
Options excisable (in USD per share) | $ / shares       $ 22.61     $ 22.67 $ 22.61        
Common Class A | 2020 Plan                        
Class of Stock [Line Items]                        
Shares authorized (in shares)       62,069,613       62,069,613        
Annual increase in number of shares authorized (percent)               5.00%        
Maximum shares issuable (in shares)               371,212,920        
Common Class A | 2020 Employee Stock Purchase Plan | Employee stock purchase plan                        
Class of Stock [Line Items]                        
Shares authorized (in shares)       4,000,000       4,000,000        
Annual increase in number of shares authorized (percent)       1.00%                
ESPP shares purchased during period (in shares)             900,000          
Average price of ESPP shares purchased (in USD per share) | $ / shares             $ 59.11          
Common Class A | Convertible Note With Stockholder Of Acquisition                        
Class of Stock [Line Items]                        
Stock-based compensation expense | $     $ 64,900           $ 34,500 $ 19,600    
Vesting term     4 years                  
Common Class A | Convertible Note With Stockholder Of Acquisition | Unsecured Debt                        
Class of Stock [Line Items]                        
Conversion of convertible securities (in shares)     1,236,788                  
Common Class B                        
Class of Stock [Line Items]                        
Common stock authorized (in shares) 710,000,000     710,000,000     710,000,000 710,000,000        
Common stock, par value (in USD per share) | $ / shares             $ 0.0001          
Votes per common share | vote             20          
Terms of conversion, percentage of common stockholders consenting to conversion, minimum             80.00%          
Terms of conversion, period after IPO             20 years          
Conversion of convertible securities (in shares) 240,910,588       144,986              
Common Class B | 2018 Plan                        
Class of Stock [Line Items]                        
Shares authorized (in shares)                   50,000,000    
Common Class C                        
Class of Stock [Line Items]                        
Common stock authorized (in shares) 2,000,000,000     2,000,000,000     2,000,000,000 2,000,000,000        
Votes per common share | vote             0          
Common Class H                        
Class of Stock [Line Items]                        
Common stock authorized (in shares) 26,000,000     26,000,000     26,000,000 26,000,000        
Votes per common share | vote             0