v3.22.0.1
MEZZANINE EQUITY, COMMON STOCK AND STOCKHOLDERS' (DEFICIT) EQUITY - Narrative (Details)
1 Months Ended 5 Months Ended 12 Months Ended
Jan. 01, 2022
shares
Aug. 02, 2021
USD ($)
class
$ / shares
shares
Aug. 01, 2021
USD ($)
shares
Nov. 30, 2021
$ / shares
shares
Jun. 30, 2021
shares
May 31, 2021
$ / shares
shares
Mar. 31, 2021
employee
$ / shares
Dec. 31, 2021
USD ($)
class
vote
$ / shares
shares
Dec. 31, 2021
USD ($)
class
vote
$ / shares
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Feb. 28, 2021
USD ($)
shares
Dec. 31, 2018
shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Redeemable convertible preferred stock, authorized (in shares)               0 0 414,033,220      
Redeemable convertible preferred stock, issued (in shares)               0 0 412,742,897      
Redeemable convertible preferred stock, outstanding (in shares)               0 0 412,742,897      
Conversion of preferred stock to common stock | $     $ 2,180,000,000           $ 2,179,739,000        
Preferred stock, shares outstanding (in shares)               0 0 0      
Number of classes of common stock | class               3 3        
Exercises during period (in shares)                 0        
Granted, weighted-average exercise price (in dollars per share) | $ / shares                 $ 0 $ 3.64 $ 2.31    
Granted during the period (in shares)                 0        
Intrinsic value | $                 $ 178,700,000 $ 45,000,000 $ 29,000,000    
Share-based compensation | $                 1,572,253,000 24,330,000 26,667,000    
Capitalized share-based compensation expense | $                 34,800,000 600,000 700,000    
Remaining liability reclassified to additional paid-in capital | $                   18,600,000      
Unrecognized compensation cost | $               $ 1,910,000,000 $ 1,910,000,000        
Unrecognized compensation cost related to outstanding stock options, weighted-average period                 2 years 5 months 26 days        
Common stock                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Conversion of preferred stock to common stock | $                 $ 41,000        
Tranche 1 Convertible Note Holders                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Maximum amount of all warrants | $                       $ 379,800,000  
IPO                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Number of classes of common stock | class   3                      
2019 Tender Offer                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Share-based compensation | $                     18,700,000    
Aggregate purchase price | $                     $ 67,600,000    
2019 Tender Offer | Common stock                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Shares issued (in shares)                     5,400,000    
2020 Tender Offer                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Share-based compensation | $                   17,200,000      
Aggregate purchase price | $                   $ 21,500,000      
2020 Tender Offer | Common stock                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Shares issued (in shares)                   1,400,000      
2021 Plan                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Percentage of shares reserved for issuance under equity incentive plan                 14.00%        
Annual increase as a percentage of outstanding shares                 5.00%        
Shares remaining available for issuance (in shares)               43,200,000 43,200,000        
2013 and 2020 Plan                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Shares of common stock authorized (in shares)               316,700,000 316,700,000        
Shares issued under plans (in shares)                 71,000,000        
Common stock reserved for issuance (in shares)                 122,900,000        
2020 Plan                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Shares remaining available for issuance (in shares)               122,800,000 122,800,000        
Conversion of Class B Common Stock into Class A Common                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Common stock, conversion basis               1 1        
Conversion basis, outstanding shares, percentage               80.00% 80.00%        
Conversion basis, percentage of aggregate shares outstanding                 5.00%        
Conversion basis, approval period, death or total disability of founders                 9 months        
Conversion basis, approval period delay (up to)                 18 months        
Conversion basis, final conversion date                 15 years        
Conversion of Class B Common Stock into Class A Common | Minimum                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Conversion basis, outstanding shares, fixed days                 61 days        
Conversion basis, aggregate outstanding shares, fixed days                 61 days        
Conversion of Class B Common Stock into Class A Common | Maximum                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Conversion basis, outstanding shares, fixed days                 180 days        
Conversion basis, aggregate outstanding shares, fixed days                 180 days        
Conversion of Class C Common Stock into Class A Common                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Common stock, conversion basis               1 1        
Stock options                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vesting period                 4 years        
Vesting rate, percentage                 25.00%        
Exercisable, period (up to)                 10 years        
Share-based compensation | $                   $ 0 $ 0    
Stock options | Share-based Payment Arrangement, Tranche One                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vesting period                 1 year        
RSUs                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vesting period           8 years              
Exercisable, period (up to)                 7 years        
Unvested restricted stock (in shares)                     27,700,000    
Consecutive trading days           60 days         60 days    
Requisite service period                     3 months    
Forfeited, weighted-average grant date fair value (in dollars per share) | $ / shares                     $ 0.29    
Weighted-average incremental fair value (in dollars per share) | $ / shares                     $ 21.01    
Granted (in shares)           35,500,000              
Granted, weighted-average grant date fair value (in dollars per share) | $ / shares           $ 22.68              
RSUs | Share-based Payment Arrangement, Tranche One                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested shares upon achievement of price targets (in shares)           4,500,000         5,600,000    
Price targets, vested (in dollars per share) | $ / shares           $ 120         $ 30.45    
RSUs | Share-based Payment Arrangement, Tranche Two                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested shares upon achievement of price targets (in shares)           5,300,000         8,300,000    
Price targets, vested (in dollars per share) | $ / shares           $ 150         $ 50.75    
RSUs | Share-based Payment Arrangement, Tranche Two | IPO                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested shares upon achievement of price targets (in shares)                     4,000,000    
RSUs | Share-based Payment Arrangement, Tranche Three                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested shares upon achievement of price targets (in shares)                     13,800,000    
Price targets, vested (in dollars per share) | $ / shares           180         $ 101.50    
RSUs | Share-based Payment Arrangement, Tranche Four                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Price targets, vested (in dollars per share) | $ / shares           210              
RSUs | Share-based Payment Arrangement, Tranche Five                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Price targets, vested (in dollars per share) | $ / shares           240              
RSUs | Share-based Payment Arrangement, Tranche Six                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Price targets, vested (in dollars per share) | $ / shares           270              
RSUs | Share-based Payment Arrangement, Tranche Seven                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Price targets, vested (in dollars per share) | $ / shares           $ 300              
Time-Based RSUs                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vesting period             1 year            
Vested in period total fair value | $   $ 780,700,000           $ 273,500,000   $ 0 $ 0    
Unvested restricted stock (in shares)               49,428,070 49,428,070 47,711,649      
Requisite service period                 4 years        
Forfeited, weighted-average grant date fair value (in dollars per share) | $ / shares                 $ 23.36        
Granted (in shares)                 33,044,671        
Granted, weighted-average grant date fair value (in dollars per share) | $ / shares                 $ 38.26        
Vested (in shares)                 27,881,049        
Share-based compensation | $                 $ 1,050,000,000.00 $ 0 $ 0    
Number of employees affected | employee             500            
Modified grant date fair value (in dollars per share) | $ / shares             $ 39.75 $ 31.78 $ 31.78 $ 10.84      
2021 Market-Based RSUs                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested (in shares)                 0        
Market-Based RSUs                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Vested in period total fair value | $   $ 153,300,000           $ 8,100,000          
Unvested restricted stock (in shares)               58,918,844 58,918,844 27,663,658      
Requisite service period                 6 years        
Forfeited, weighted-average grant date fair value (in dollars per share) | $ / shares                 $ 0        
Granted (in shares)                 35,520,000        
Granted, weighted-average grant date fair value (in dollars per share) | $ / shares                 $ 22.68        
Vested (in shares)                 4,264,814 0 0    
Share-based compensation | $                 $ 501,200,000 $ 0 $ 0    
Modified grant date fair value (in dollars per share) | $ / shares               $ 23.50 $ 23.50 $ 0.29      
Employee Stock                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Shares remaining available for issuance (in shares)               16,700,000 16,700,000        
Number of share purchased (in shares)       300,000                  
Weighted average price of shares purchased (in dollars per share) | $ / shares       $ 24.64                  
Share-based compensation | $                 $ 5,900,000        
Employee Stock | Subsequent Event                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Authorized for issuance under the ESPP (in shares) 8,600,000                        
Employee Stock | 2021 ESPP                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Annual increase as a percentage of outstanding shares         1.00%                
Shares of common stock authorized (in shares)         200,000,000                
Maximum payroll deduction for ESPP, percentage         15.00%                
ESPP purchase price discount, percentage         85.00%                
ESPP offering period         12 months                
Percentage of shares outstanding after close of offering         2.00%                
Series G-1                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Redeemable convertible preferred stock, authorized (in shares)                       244,300,000  
Redeemable convertible preferred stock, issued (in shares)     0                    
Redeemable convertible preferred stock, outstanding (in shares)     0                    
Common Class A                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Conversion basis     1                    
Number of voting rights per share | vote               1 1        
Common Class A | IPO                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Aggregate warrants exercisable (in shares)   14,300,000           14,300,000 14,300,000        
Exercise price (in dollars per share) | $ / shares   $ 26.60           $ 26.60 $ 26.60        
Shares issued (in shares)   55,000,000                      
Redeemable convertible preferred stock                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Redeemable convertible preferred stock, issued (in shares)               0 0        
Redeemable convertible preferred stock, outstanding (in shares)               0 0 412,742,897 321,626,778   291,739,421
Conversion of preferred stock to common stock | $                 $ (2,179,739,000)        
Common Class B                          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                          
Number of voting rights per share | vote               10 10