v3.22.0.1
Stockholders' Equity - Additional Information (Details)
$ / shares in Units, $ in Millions
12 Months Ended
Dec. 31, 2021
USD ($)
Plan
$ / shares
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Number of share-based employee compensation plans | Plan 3    
Weighted-average fair value of employee stock options | $ / shares $ 36.17 $ 12.11  
Fair values of options vested | $ $ 7.7 $ 11.1 $ 23.3
Intrinsic values of stock options exercised | $ $ 69.4 75.5 44.0
Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Percentage of capital stock outstanding 5.00%    
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Minimum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Stock Options      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Weighted average recognition period 1 year    
Unrecognized compensation cost | $ $ 2.9    
Stock Options | Maximum      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Maximum term for stock options from the grant date 10 years    
RSUs and RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Fair value of vested shares | $ $ 3,600.0 $ 1,700.0 $ 1,000.0
Unrecognized compensation cost | $ $ 2,000.0    
Weighted average recognition period 2 years 2 months 12 days    
Class A Non-voting Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 3,000,000,000 3,000,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stockholders voting rights no voting rights    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 1,364,886,581 1,248,010,000  
Common stock outstanding 1,364,886,581 1,248,010,000  
Class A Non-voting Common Stock | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 87,270,108    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 17,858,235    
Class A Non-voting Common Stock | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 11,004,580    
Class A Non-voting Common Stock | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 16,484,690    
Number of shares issued or offered under plan 0    
Class A Non-voting Common Stock | Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Additional common stock reserved for future issuance 86,737,997    
Class A Non-voting Common Stock | Maximum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Percentage of number of shares, common stock outstanding 1.00%    
Increase in number of shares reserved for issuance 15,000,000    
Class A Non-voting Common Stock | Minimum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan | Maximum | France      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 2,500,000    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 96,993,064    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 37,228,865    
Class A Non-voting Common Stock | RSUs and RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 23,131,000    
Class B Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 700,000,000 700,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stockholders voting rights one vote    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 22,769,005 23,696,000  
Common stock outstanding 22,769,005 23,696,000  
Class C Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 260,887,848 260,888,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stockholders voting rights ten votes    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 231,626,943 231,627,000  
Common stock outstanding 231,626,943 231,627,000