v3.22.0.1
Stockholders' Equity - Narrative (Details)
$ / shares in Units, $ in Millions
3 Months Ended 12 Months Ended
Jan. 01, 2022
shares
May 16, 2019
USD ($)
$ / shares
shares
May 14, 2019
USD ($)
$ / shares
shares
Jun. 30, 2019
USD ($)
Dec. 31, 2021
USD ($)
equityCompensationPlan
$ / shares
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Gain on conversion of convertible notes | $       $ 327.0      
Gain on extinguishment of convertible notes and settlement of derivatives | $       444.0 $ 0.0 $ 0.0 $ 444.0
Change in fair value of embedded derivatives | $       $ 117.0 0.0 0.0 (58.0)
Share-based compensation expense | $         $ 1,168.0 $ 827.0 4,596.0
Additional deferred tax asset due to stock-based compensation expense | $     $ 1,100.0        
Preferred stock, shares authorized (in shares)     10,000,000        
Preferred stock, shares issued (in shares)         0 0  
Preferred stock, shares outstanding (in shares)         0 0  
Common stock, shares authorized (in shares)         5,000,000,000 5,000,000,000  
Common stock, par value (in dollars per share) | $ / shares         $ 0.00001 $ 0.00001  
Dividends declared | $ / shares         $ 0    
Common stock, shares outstanding (in shares)         1,949,316,000 1,849,794,000  
Common stock, shares issued (in shares)         1,949,316,000 1,849,794,000  
Number of equity compensation plans | equityCompensationPlan         4    
Intrinsic value of options exercised during period | $         $ 382.0 $ 614.0 $ 202.0
Weighted average grant date fair value of options granted (in dollars per share) | $ / shares         $ 39.43 $ 35.77 $ 19.91
Cash proceeds | $         $ 107.0 $ 125.0 $ 49.0
Internal-use software              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Capitalized share based payment | $         0.0 0.0 61.0
Restricted Stock Awards, Restricted Stock Units, and Stock Appreciation Rights              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Unamortized compensation costs | $         $ 3,000.0    
Weighted-average recognition period         2 years 8 months 12 days    
RSUs              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Fair value of instruments vested during period | $         $ 1,500.0 $ 1,400.0 $ 1,400.0
Awards granted (in shares)         50,308,000    
Weighted-average grant-date fair value per share, granted (in dollars per share) | $ / shares         $ 49.78    
Stock Appreciation Rights (SARs)              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Weighted-average grant-date fair value per share, granted (in dollars per share) | $ / shares         $ 39.43 $ 35.77 $ 19.91
Performance-Based Awards              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Weighted-average grant-date fair value per share, granted (in dollars per share) | $ / shares             $ 18.20
Weighted-average derived service period             2 years 1 month 13 days
2019 Plan              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Equity incentive plan, term over which available awards may increase         10 years    
Equity incentive plan, percent of increase         5.00%    
2019 Plan | Subsequent Event              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Increase in stock reserved for issuance (in shares) 97,000,000            
Number of shares reserved for future issuance (in shares) 377,000,000            
Employee Stock Purchase Plan, 2019              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Unamortized compensation costs | $         $ 39.0    
Weighted-average recognition period         4 months 24 days    
ESPP, percent of total shares outstanding, increase calculation         1.00%    
ESPP, upper threshold on increase in authorized shares (in shares)         25,000,000    
Issuance of common stock under the Employee Stock Purchase Plan (in shares)         3,000,000 5,000,000 2,000,000
Weighted average price per share of stock (in dollars per share) | $ / shares         $ 38.75 $ 25.05 $ 23.83
Cash proceeds | $         $ 107.0 $ 125.0 $ 49.0
Employee Stock Purchase Plan, 2019 | Subsequent Event              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of shares reserved for future issuance (in shares) 70,000,000            
Series G Redeemable Convertible Preferred Stock              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of securities called by warrants (in shares)             922,655
Series E Redeemable Convertible Preferred Stock              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of securities called by warrants (in shares)             150,071
Freight Holding contingently redeemable preferred stock | Warrant              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Awards granted (in shares)         0 0 0
IPO              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Stock issued during period (in shares)     180,000,000        
Stock price (in dollars per share) | $ / shares   $ 45.00 $ 45.00        
Proceeds from issuance of common stock | $     $ 8,000.0        
Conversion of shares (in shares)     905,000,000        
Vesting and exercise of warrants (in shares)     200,000        
Share-based compensation expense | $     $ 3,600.0        
Shares withheld to related to net share settlement (in shares)     29,000,000        
Shares withheld to meet tax withholding requirement, value | $     $ 1,300.0        
IPO | Common Stock              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Stock issued during period (in shares)     76,000,000        
IPO | Holders of 2021 Convertible Notes and 2022 Convertible Notes              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Conversion of convertible notes to common stock in connection with public offering (in shares)     94,000,000        
Underwriters' discounts and commissions              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Payments of stock issuance costs | $     $ 106.0        
Private Placement              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Stock issued during period (in shares)   11,000,000          
Proceeds from issuance of common stock | $   $ 500.0