Condensed Consolidated Statements of Stockholders’ Equity (Unaudited) - USD ($) $ in Thousands | Total | Common Stock Class A | Common Stock Class B | Common Stock Common Stock Class A | Common Stock Common Stock Class B | Additional Paid-In Capital | Accumulated Other Comprehensive (Loss) Income | Accumulated Deficit |
Balance (in shares) at Dec. 31, 2020 | | | | 153,496,222 | 10,551,302 | | | |
Balance at Dec. 31, 2020 | $ 8,452,665 | | | $ 151 | $ 13 | $ 9,613,246 | $ 9,046 | $ (1,169,791) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (206,542) | | | | | | | (206,542) |
Exercises of vested stock options (in shares) | | | | 248,008 | 211,371 | | | |
Exercises of vested stock options | 11,564 | | | | | 11,564 | | |
Vesting of restricted stock units (in shares) | | | | 913,966 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (6,989) | | | | |
Value of equity awards withheld for tax liability | (2,774) | | | | | (2,774) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 419,371 | (419,371) | | | |
Equity component from partial settlement of 2023 convertible senior notes (in shares) | | | | 1,158,381 | | | | |
Equity component from partial settlement of 2023 convertible senior notes | 80,049 | | | $ 2 | | 80,047 | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 9,405 | | | | | 9,405 | | |
Issuance of common stock in connection with a follow-on public offering, net of underwriter discounts (in shares) | | | | 4,312,500 | | | | |
Issuance of common stock in connection with a follow-on public offering, net of underwriter discounts | 1,766,400 | | | $ 4 | | 1,766,396 | | |
Costs related to the follow-on public offering | (727) | | | | | (727) | | |
Issuance of restricted stock awards (in shares) | | | | 24,697 | | | | |
Unrealized loss on marketable securities | (4,176) | | | | | | (4,176) | |
Foreign currency translation | (210) | | | | | | (210) | |
Stock-based compensation | 141,542 | | | | | 141,542 | | |
Balance (in shares) at Mar. 31, 2021 | | | | 160,588,258 | 10,343,302 | | | |
Balance at Mar. 31, 2021 | 10,247,196 | | | $ 158 | $ 13 | 11,618,698 | 4,660 | (1,376,333) |
Balance (in shares) at Dec. 31, 2020 | | | | 153,496,222 | 10,551,302 | | | |
Balance at Dec. 31, 2020 | 8,452,665 | | | $ 151 | $ 13 | 9,613,246 | 9,046 | (1,169,791) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (658,504) | | | | | | | |
Unrealized loss on marketable securities | (6,137) | | | | | | | |
Foreign currency translation | (245) | | | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | (3,069) | | | | | | | |
Share of other comprehensive loss from equity method investment | 0 | | | | | | | |
Balance (in shares) at Sep. 30, 2021 | | | | 168,352,933 | 9,913,181 | | | |
Balance at Sep. 30, 2021 | 11,081,749 | | | $ 166 | $ 12 | 12,910,271 | (405) | (1,828,295) |
Balance (in shares) at Mar. 31, 2021 | | | | 160,588,258 | 10,343,302 | | | |
Balance at Mar. 31, 2021 | 10,247,196 | | | $ 158 | $ 13 | 11,618,698 | 4,660 | (1,376,333) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (227,853) | | | | | | | (227,853) |
Exercises of vested stock options (in shares) | | | | 294,430 | 63,164 | | | |
Exercises of vested stock options | 20,351 | | | | | 20,351 | | |
Vesting of restricted stock units (in shares) | | | | 839,472 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (5,498) | | | | |
Value of equity awards withheld for tax liability | (1,882) | | | | | (1,882) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 188,044 | (188,044) | | | |
Conversion of shares of Class B common stock into shares of Class A common stock | 0 | | | $ 1 | $ (1) | | | |
Equity component from partial settlement of 2023 convertible senior notes (in shares) | | | | 3,688,584 | | | | |
Equity component from partial settlement of 2023 convertible senior notes | 255,594 | | | $ 4 | | 255,590 | | |
Settlement of capped call, net of related costs | 225,233 | | | | | 225,233 | | |
Shares issued under ESPP (in shares) | | | | 100,107 | | | | |
Shares issued under ESPP | 23,699 | | | | | 23,699 | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 6,789 | | | | | 6,789 | | |
Costs related to the follow-on public offering | (50) | | | | | (50) | | |
Unrealized loss on marketable securities | (979) | | | | | | (979) | |
Foreign currency translation | (66) | | | | | | (66) | |
Net change in market value of effective foreign currency forward exchange contracts | (2,908) | | | | | | (2,908) | |
Stock-based compensation | 148,988 | | | | | 148,988 | | |
Balance (in shares) at Jun. 30, 2021 | | | | 165,715,499 | 10,218,422 | | | |
Balance at Jun. 30, 2021 | 10,694,112 | | | $ 164 | $ 12 | 12,297,415 | 707 | (1,604,186) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (224,109) | | | | | | | (224,109) |
Exercises of vested stock options (in shares) | | | | 222,066 | 83,484 | | | |
Exercises of vested stock options | 15,993 | | | | | 15,993 | | |
Vesting of restricted stock units (in shares) | | | | 834,148 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (5,530) | | | | |
Value of equity awards withheld for tax liability | (1,896) | | | | | (1,896) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 388,725 | (388,725) | | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 8,389 | | | | | 8,389 | | |
Costs related to the follow-on public offering | (90) | | | | | (90) | | |
Shares issued in acquisition (in shares) | | | | 1,116,390 | | | | |
Shares issued in acquisition | 419,037 | | | $ 1 | | 419,036 | | |
Value of equity awards assumed in acquisition | 1,511 | | | | | 1,511 | | |
Shares issued in acquisition subject to future vesting (in shares) | | | | 59,533 | | | | |
Unrealized loss on marketable securities | (982) | | | | | | (982) | |
Foreign currency translation | 31 | | | | | | 31 | |
Net change in market value of effective foreign currency forward exchange contracts | (161) | | | | | | (161) | |
Share of other comprehensive loss from equity method investment | 0 | | | | | | | |
Stock-based compensation | 169,734 | | | | | 169,734 | | |
Balance (in shares) at Sep. 30, 2021 | | | | 168,352,933 | 9,913,181 | | | |
Balance at Sep. 30, 2021 | 11,081,749 | | | $ 166 | $ 12 | 12,910,271 | (405) | (1,828,295) |
Balance (in shares) at Dec. 31, 2021 | | 170,625,994 | 9,842,105 | 170,625,994 | 9,842,105 | | | |
Balance at Dec. 31, 2021 | 11,031,466 | | | $ 168 | $ 12 | 13,169,118 | (18,141) | (2,119,691) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (221,627) | | | | | | | (221,627) |
Exercises of vested stock options (in shares) | | | | 180,643 | 193,889 | | | |
Exercises of vested stock options | 11,727 | | | | | 11,727 | | |
Vesting of restricted stock units (in shares) | | | | 877,089 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (5,804) | | | | |
Value of equity awards withheld for tax liability | (1,065) | | | | | (1,065) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 215,389 | (215,389) | | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 4,232 | | | | | 4,232 | | |
Shares returned from escrow (in shares) | | | | (152,239) | | | | |
Shares returned from escrow | (387) | | | | | (387) | | |
Unrealized loss on marketable securities | (62,826) | | | | | | (62,826) | |
Foreign currency translation | (165) | | | | | | (165) | |
Net change in market value of effective foreign currency forward exchange contracts | (3,852) | | | | | | (3,852) | |
Stock-based compensation | 159,930 | | | | | 159,930 | | |
Balance (in shares) at Mar. 31, 2022 | | | | 171,763,174 | 9,820,605 | | | |
Balance at Mar. 31, 2022 | 10,917,433 | | | $ 169 | $ 12 | 13,343,554 | (84,984) | (2,341,318) |
Balance (in shares) at Dec. 31, 2021 | | 170,625,994 | 9,842,105 | 170,625,994 | 9,842,105 | | | |
Balance at Dec. 31, 2021 | 11,031,466 | | | $ 168 | $ 12 | 13,169,118 | (18,141) | (2,119,691) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (1,026,723) | | | | | | | |
Unrealized loss on marketable securities | (103,999) | | | | | | | |
Foreign currency translation | (4,646) | | | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | (34,154) | | | | | | | |
Share of other comprehensive loss from equity method investment | (4,243) | | | | | | | |
Balance (in shares) at Sep. 30, 2022 | | 174,482,722 | 9,817,605 | 174,482,722 | 9,817,605 | | | |
Balance at Sep. 30, 2022 | 10,530,888 | | | $ 172 | $ 12 | 13,842,301 | (165,183) | (3,146,414) |
Balance (in shares) at Mar. 31, 2022 | | | | 171,763,174 | 9,820,605 | | | |
Balance at Mar. 31, 2022 | 10,917,433 | | | $ 169 | $ 12 | 13,343,554 | (84,984) | (2,341,318) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (322,769) | | | | | | | |
Exercises of vested stock options (in shares) | | | | 98,111 | 77,732 | | | |
Exercises of vested stock options | 5,649 | | | | | 5,649 | | |
Vesting of restricted stock units (in shares) | | | | 1,049,640 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (38) | | | | |
Value of equity awards withheld for tax liability | (4) | | | | | (4) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 80,732 | (80,732) | | | |
Shares issued under ESPP (in shares) | | | | 258,221 | | | | |
Shares issued under ESPP | 24,318 | | | $ 1 | | 24,317 | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 2,373 | | | | | 2,373 | | |
Unrealized loss on marketable securities | (19,022) | | | | | | (19,022) | |
Foreign currency translation | (2,289) | | | | | | (2,289) | |
Net change in market value of effective foreign currency forward exchange contracts | (11,106) | | | | | | (11,106) | |
Stock-based compensation | 247,412 | | | | | 247,412 | | |
Balance (in shares) at Jun. 30, 2022 | | | | 173,271,942 | 9,817,605 | | | |
Balance at Jun. 30, 2022 | 10,841,995 | | | $ 171 | $ 12 | 13,623,300 | (117,401) | (2,664,087) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (482,327) | | | | | | | (482,327) |
Exercises of vested stock options (in shares) | | | | 38,368 | 35,187 | | | |
Exercises of vested stock options | 2,056 | | | | | 2,056 | | |
Vesting of restricted stock units (in shares) | | | | 1,115,248 | 0 | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (125) | | | | |
Value of equity awards withheld for tax liability | (11) | | | | | (11) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 35,187 | (35,187) | | | |
Conversion of shares of Class B common stock into shares of Class A common stock | 0 | | | | | | | |
Shares of Class A common stock donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock donated to charity | 1,911 | | | | | 1,911 | | |
Unrealized loss on marketable securities | (22,151) | | | | | | (22,151) | |
Foreign currency translation | (2,192) | | | | | | (2,192) | |
Net change in market value of effective foreign currency forward exchange contracts | (19,196) | | | | | | (19,196) | |
Share of other comprehensive loss from equity method investment | (4,243) | | | | | | (4,243) | |
Stock-based compensation | 199,772 | | | | | 199,772 | | |
Stock-based compensation - restructuring | 15,274 | | | | | 15,274 | | |
Balance (in shares) at Sep. 30, 2022 | | 174,482,722 | 9,817,605 | 174,482,722 | 9,817,605 | | | |
Balance at Sep. 30, 2022 | $ 10,530,888 | | | $ 172 | $ 12 | $ 13,842,301 | $ (165,183) | $ (3,146,414) |