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, 2020 | | 473,401 | | |
Balance at beginning of period at Dec. 31, 2020 | $ 1,013,145 | | $ 538,778 | $ 474,367 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 1,794 | | |
Exercise of common stock options | 12,621 | | 12,621 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 110 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (17,080) | | (17,080) | |
Stock-based compensation | 52,985 | | 52,985 | |
Net income (loss) | 22,642 | | | 22,642 |
Balance at end of period (in shares) at Mar. 31, 2021 | | 475,305 | | |
Balance at end of period at Mar. 31, 2021 | 1,084,313 | | 587,304 | 497,009 |
Balance at beginning of period (in shares) at Dec. 31, 2020 | | 473,401 | | |
Balance at beginning of period at Dec. 31, 2020 | 1,013,145 | | 538,778 | 474,367 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Net income (loss) | 129,723 | | | |
Balance at end of period (in shares) at Sep. 30, 2021 | | 480,589 | | |
Balance at end of period at Sep. 30, 2021 | 1,302,814 | | 698,724 | 604,090 |
Balance at beginning of period (in shares) at Mar. 31, 2021 | | 475,305 | | |
Balance at beginning of period at Mar. 31, 2021 | 1,084,313 | | 587,304 | 497,009 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 1,401 | | |
Exercise of common stock options | 13,718 | | 13,718 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 409 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (12,155) | | (12,155) | |
Issuance of common stock under employee stock purchase plan (in shares) | | 1,334 | | |
Issuance of common stock under employee stock purchase plan | 22,758 | | 22,758 | |
Stock-based compensation | 46,015 | | 46,015 | |
Net income (loss) | 47,697 | | | 47,697 |
Balance at end of period (in shares) at Jun. 30, 2021 | | 478,449 | | |
Balance at end of period at Jun. 30, 2021 | 1,202,346 | | 657,640 | 544,706 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 1,808 | | |
Exercise of common stock options | 13,220 | | 13,220 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 307 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (9,038) | | (9,038) | |
Issuance of common stock related to acquisition (in shares) | | 25 | | |
Issuance of common stock related to acquisition | 1,816 | | 1,816 | |
Stock-based compensation | 35,086 | | 35,086 | |
Net income (loss) | 59,384 | | | 59,384 |
Balance at end of period (in shares) at Sep. 30, 2021 | | 480,589 | | |
Balance at end of period at Sep. 30, 2021 | 1,302,814 | | 698,724 | 604,090 |
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) | (17,802) | | | |
Balance at end of period (in shares) at Sep. 30, 2022 | | 489,454 | | |
Balance at end of period at Sep. 30, 2022 | 1,914,288 | | 1,319,961 | 594,327 |
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 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | |
Exercise of common stock options (in shares) | | 918 | | |
Exercise of common stock options | 10,917 | | 10,917 | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes (in shares) | | 246 | | |
Issuance of restricted stock, net of forfeitures and shares withheld for taxes | (14,058) | | (14,058) | |
Stock-based compensation | 121,729 | | 121,729 | |
Net income (loss) | 15,869 | | | 15,869 |
Balance at end of period (in shares) at Sep. 30, 2022 | | 489,454 | | |
Balance at end of period at Sep. 30, 2022 | $ 1,914,288 | | $ 1,319,961 | $ 594,327 |