CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY - USD ($) shares in Thousands, $ in Thousands | Total | Class A and B Common Stock | Additional Paid-In Capital | Retained Earnings |
Balance at beginning of period (in shares) at Dec. 31, 2021 | | 483,441 | | |
Balance at beginning of period at Dec. 31, 2021 | $ 1,527,306 | | $ 915,177 | $ 612,129 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 2,395 | | |
Exercise of common stock options | 24,408 | | 24,408 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 190 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (13,428) | | (13,428) | |
Stock-based compensation | 125,415 | | 125,415 | |
Net income (loss) | (14,598) | | | (14,598) |
Balance at end of period (in shares) at Mar. 31, 2022 | | 486,026 | | |
Balance at end of period at Mar. 31, 2022 | 1,649,103 | | 1,051,572 | 597,531 |
Balance at beginning of period (in shares) at Dec. 31, 2021 | | 483,441 | | |
Balance at beginning of period at Dec. 31, 2021 | 1,527,306 | | 915,177 | 612,129 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Net income (loss) | (33,671) | | | |
Balance at end of period (in shares) at Jun. 30, 2022 | | 488,290 | | |
Balance at end of period at Jun. 30, 2022 | 1,779,831 | | 1,201,373 | 578,458 |
Balance at beginning of period (in shares) at Mar. 31, 2022 | | 486,026 | | |
Balance at beginning of period at Mar. 31, 2022 | 1,649,103 | | 1,051,572 | 597,531 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 657 | | |
Exercise of common stock options | 7,387 | | 7,387 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 661 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (9,768) | | (9,768) | |
Issuance of common stock under employee stock purchase plan (in shares) | | 946 | | |
Issuance of common stock under employee stock purchase plan | 25,547 | | 25,547 | |
Stock-based compensation | 126,635 | | 126,635 | |
Net income (loss) | (19,073) | | | (19,073) |
Balance at end of period (in shares) at Jun. 30, 2022 | | 488,290 | | |
Balance at end of period at Jun. 30, 2022 | 1,779,831 | | 1,201,373 | 578,458 |
Balance at beginning of period (in shares) at Dec. 31, 2022 | | 490,468 | | |
Balance at beginning of period at Dec. 31, 2022 | 2,115,339 | | 1,449,825 | 665,514 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 2,451 | | |
Exercise of common stock options | 10,365 | | 10,365 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 414 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (15,595) | | (15,595) | |
Repurchases of Class A common stock (in shares) | | (5,139) | | |
Repurchases of Class A common stock | (292,863) | | | (292,863) |
Stock-based compensation | 114,235 | | 114,235 | |
Net income (loss) | 9,326 | | | 9,326 |
Balance at end of period (in shares) at Mar. 31, 2023 | | 488,194 | | |
Balance at end of period at Mar. 31, 2023 | 1,940,807 | | 1,558,830 | 381,977 |
Balance at beginning of period (in shares) at Dec. 31, 2022 | | 490,468 | | |
Balance at beginning of period at Dec. 31, 2022 | 2,115,339 | | 1,449,825 | 665,514 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Net income (loss) | 42,265 | | | |
Balance at end of period (in shares) at Jun. 30, 2023 | | 490,049 | | |
Balance at end of period at Jun. 30, 2023 | 2,071,410 | | 1,700,498 | 370,912 |
Balance at beginning of period (in shares) at Mar. 31, 2023 | | 488,194 | | |
Balance at beginning of period at Mar. 31, 2023 | 1,940,807 | | 1,558,830 | 381,977 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 1,074 | | |
Exercise of common stock options | 17,407 | | 17,407 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 879 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (15,459) | | (15,459) | |
Issuance of common stock under employee stock purchase plan (in shares) | | 497 | | |
Issuance of common stock under employee stock purchase plan | 21,316 | | 21,316 | |
Repurchases of Class A common stock (in shares) | | (595) | | |
Repurchases of Class A common stock | (44,004) | | | (44,004) |
Stock-based compensation | 118,404 | | 118,404 | |
Net income (loss) | 32,939 | | | 32,939 |
Balance at end of period (in shares) at Jun. 30, 2023 | | 490,049 | | |
Balance at end of period at Jun. 30, 2023 | $ 2,071,410 | | $ 1,700,498 | $ 370,912 |