Condensed Consolidated Statements of Stockholders Equity (Unaudited) - USD ($) $ in Thousands | Total | Common StockCommon Stock Class A | Common StockCommon Stock Class B | Additional Paid-In Capital | Accumulated Other Comprehensive Income (Loss) | Accumulated Deficit |
Balance (in shares) at Dec. 31, 2019 | | 126,882,172 | 11,530,627 | | | |
Balance at Dec. 31, 2019 | $ 4,279,411 | $ 124 | $ 14 | $ 4,952,999 | $ 5,086 | $ (678,812) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Net loss | (94,791) | | | | | (94,791) |
Exercises of vested stock options (in shares) | | 243,029 | 426,001 | | | |
Exercises of vested stock options | 8,231 | | | 8,231 | | |
Vesting of restricted stock units (in shares) | | 849,763 | 23,107 | | | |
Vesting of restricted stock units | 1 | $ 1 | | | | |
Value of equity awards withheld for tax liability (in shares) | | (8,726) | (4,692) | | | |
Value of equity awards withheld for tax liability | (1,674) | | | (1,674) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | 618,103 | (618,103) | | | |
Conversion of shares of Class B common stock into shares of Class A common stock | | $ 1 | $ (1) | | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 2,701 | | | 2,701 | | |
Unrealized (loss) gain on marketable securities | (9,375) | | | | (9,375) | |
Stock-based compensation | 72,021 | | | 72,021 | | |
Balance (in shares) at Mar. 31, 2020 | | 128,606,443 | 11,356,940 | | | |
Balance at Mar. 31, 2020 | 4,256,525 | $ 126 | $ 13 | 5,034,278 | (4,289) | (773,603) |
Balance (in shares) at Dec. 31, 2019 | | 126,882,172 | 11,530,627 | | | |
Balance at Dec. 31, 2019 | 4,279,411 | $ 124 | $ 14 | 4,952,999 | 5,086 | (678,812) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Net loss | (311,628) | | | | | |
Unrealized (loss) gain on marketable securities | 5,499 | | | | | |
Foreign currency translation | 0 | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | 0 | | | | | |
Balance (in shares) at Sep. 30, 2020 | | 140,173,591 | 10,729,264 | | | |
Balance at Sep. 30, 2020 | 5,762,268 | $ 138 | $ 12 | 6,741,973 | 10,585 | (990,440) |
Balance (in shares) at Mar. 31, 2020 | | 128,606,443 | 11,356,940 | | | |
Balance at Mar. 31, 2020 | 4,256,525 | $ 126 | $ 13 | 5,034,278 | (4,289) | (773,603) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Net loss | (99,923) | | | | | (99,923) |
Exercises of vested stock options (in shares) | | 1,590,891 | 459,010 | | | |
Exercises of vested stock options | 45,232 | $ 2 | | 45,230 | | |
Vesting of restricted stock units (in shares) | | 807,270 | 4,212 | | | |
Vesting of restricted stock units | 1 | $ 1 | | | | |
Value of equity awards withheld for tax liability (in shares) | | (6,018) | | | | |
Value of equity awards withheld for tax liability | (1,144) | | | (1,144) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | 983,005 | (983,005) | | | |
Conversion of shares of Class B common stock into shares of Class A common stock | | $ 1 | $ (1) | | | |
Shares issued under ESPP (in shares) | | 190,642 | | | | |
Shares issued under ESPP | 16,473 | | | 16,473 | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 3,972 | | | 3,972 | | |
Unrealized (loss) gain on marketable securities | 17,895 | | | | 17,895 | |
Stock-based compensation | 82,559 | | | 82,559 | | |
Balance (in shares) at Jun. 30, 2020 | | 132,194,335 | 10,837,157 | | | |
Balance at Jun. 30, 2020 | 4,321,590 | $ 130 | $ 12 | 5,181,368 | 13,606 | (873,526) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Net loss | (116,914) | | | | | (116,914) |
Exercises of vested stock options (in shares) | | 218,555 | 173,199 | | | |
Exercises of vested stock options | 9,221 | | | 9,221 | | |
Vesting of restricted stock units (in shares) | | 926,032 | 1,688 | | | |
Vesting of restricted stock units | 1 | $ 1 | | 0 | | |
Value of equity awards withheld for tax liability (in shares) | | (5,870) | | | | |
Value of equity awards withheld for tax liability | (1,409) | | | (1,409) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | 282,780 | (282,780) | | | |
Equity component from partial settlement of 2023 convertible senior notes (in shares) | | 715,819 | | | | |
Equity component from partial settlement of 2023 convertible senior notes | 46,155 | $ 1 | | 46,154 | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 5,757 | | | 5,757 | | |
Issuance of common stock in connection with a follow-on public offering, net of underwriter discounts (in shares) | | 5,819,838 | | | | |
Issuance of common stock in connection with a follow-on public offering, net of underwriter discounts | 1,408,750 | $ 6 | | 1,408,744 | | |
Costs related to the follow-on public offering | (541) | | | (541) | | |
Unrealized (loss) gain on marketable securities | (3,021) | | | | (3,021) | |
Foreign currency translation | 0 | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | 0 | | | | | |
Stock-based compensation | 92,679 | | | 92,679 | | |
Balance (in shares) at Sep. 30, 2020 | | 140,173,591 | 10,729,264 | | | |
Balance at Sep. 30, 2020 | 5,762,268 | $ 138 | $ 12 | 6,741,973 | 10,585 | (990,440) |
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 | | $ 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 | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 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) gain 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) gain on marketable securities | (6,137) | | | | | |
Foreign currency translation | (245) | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | (3,069) | | | | | |
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 | | $ 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 | | $ 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 | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 6,789 | | | 6,789 | | |
Costs related to the follow-on public offering | (50) | | | (50) | | |
Unrealized (loss) gain 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 | | $ 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) | | | |
Donated common stock (in shares) | | 22,102 | | | | |
Donated common stock | 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) gain on marketable securities | (982) | | | | (982) | |
Foreign currency translation | 31 | | | | 31 | |
Net change in market value of effective foreign currency forward exchange contracts | (161) | | | | (161) | |
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) |