Financial Instruments (Tables)
|
12 Months Ended |
Dec. 31, 2021 |
Fair Value Disclosures [Abstract] |
|
Schedule of Notional Amounts of Outstanding Derivative Positions |
| | | | | | | | | | | | | December 31, | Notional Amounts | 2021 | | 2020 | Forward sales commitments | $ | 70,550 | | | $ | 130,109 | | IRLCs | 67,485 | | | 88,923 | |
|
Derivative Instruments, Gain (Loss) |
The locations and amounts of gains (losses) recognized in revenue related to our derivatives are as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | Instrument | | Classification | | 2021 | | 2020 | | 2019 | | | Forward sales commitments | | Service revenue | | $ | 518 | | | $ | (184) | | | $ | 96 | | | | IRLCs | | Service revenue | | (641) | | | 1,342 | | | 176 | | | |
|
Schedule of Assets, Liabilities, and Equity Measured at Fair Value on a Recurring Basis |
A summary of assets and liabilities related to our financial instruments, measured at fair value on a recurring basis and as reflected on our consolidated balance sheets, is set forth below: | | | | | | | | | | | | | | | | | | | | | | | | | Balance at December 31, 2021 | | Quoted Prices in Active Markets for Identical Assets (Level 1) | | Significant Other Observable Inputs (Level 2) | | Significant Unobservable Inputs (Level 3) | Assets | | | | | | | | Cash equivalents | | | | | | | | Money market funds | $ | 509,971 | | | $ | 509,971 | | | $ | — | | | $ | — | | | | | | | | | | Total cash equivalents | 509,971 | | | 509,971 | | | — | | | — | | Short-term investments | | | | | | | | U.S. treasury securities | 16,718 | | | 16,718 | | | — | | | — | | Agency bonds | 11,906 | | | 11,906 | | | — | | | — | | Equity securities | 5,113 | | | 5,113 | | | — | | | — | | Loans held for sale | 35,759 | | | — | | | 35,759 | | | — | | Prepaid expenses and other current assets | | | | | | | | Forward sales commitments | 138 | | | — | | | 138 | | | — | | IRLCs | 1,191 | | | — | | | — | | | 1,191 | | Total prepaid expenses and other current assets | 1,329 | | | — | | | 138 | | | 1,191 | | Long-term investments | | | | | | | | U.S. treasury securities | 54,828 | | | 54,828 | | | — | | | — | | | | | | | | | | Total assets | $ | 635,624 | | | $ | 598,536 | | | $ | 35,897 | | | $ | 1,191 | | Liabilities | | | | | | | | Accrued and other liabilities | | | | | | | | Forward sales commitments | $ | 93 | | | $ | — | | | $ | 93 | | | $ | — | | IRLCs | 60 | | | — | | | — | | | 60 | | Total liabilities | $ | 153 | | | $ | — | | | $ | 93 | | | $ | 60 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Balance at December 31, 2020 | | Quoted Prices in Active Markets for Identical Assets (Level 1) | | Significant Other Observable Inputs (Level 2) | | Significant Unobservable Inputs (Level 3) | Assets | | | | | | | | Cash equivalents | | | | | | | | Money market funds | $ | 886,261 | | | $ | 886,261 | | | $ | — | | | $ | — | | U.S. treasury securities | 6,100 | | | 6,100 | | | — | | | — | | Total cash equivalents | 892,361 | | | 892,361 | | | — | | | — | | Short-term investments | | | | | | | | U.S. treasury securities | 131,561 | | | 131,561 | | | — | | | — | | Loans held for sale | 42,539 | | | — | | | 42,539 | | | — | | Prepaid expenses and other current assets | | | | | | | | Forward sales commitments | 34 | | | — | | | 34 | | | — | | IRLCs | 1,781 | | | — | | | — | | | 1,781 | | Total prepaid expenses and other current assets | 1,815 | | | — | | | 34 | | | 1,781 | | Long-term investments | | | | | | | | | | | | | | | | Agency bonds | 11,922 | | | 11,922 | | | — | | | — | | Total assets | $ | 1,080,198 | | | $ | 1,035,844 | | | $ | 42,573 | | | $ | 1,781 | | Liabilities | | | | | | | | Accrued and other liabilities | | | | | | | | Forward sales commitments | $ | 507 | | | $ | — | | | $ | 507 | | | $ | — | | IRLCs | 10 | | | — | | | — | | | 10 | | Total liabilities | $ | 517 | | | $ | — | | | $ | 507 | | | $ | 10 | |
|
Fair Value Measurement Inputs and Valuation Techniques |
The following is a quantitative summary of key unobservable inputs used in the valuation of IRLCs: | | | | | | | | | | | | | | | | | | | | | Key Inputs | | Valuation Technique | | December 31, 2021 | | December 31, 2020 | Weighted-average pull-through rate | | Market pricing | | 71.1% | | 72.3% |
|
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation |
The following is a summary of changes in the fair value of IRLCs for the period ended December 31, 2021: | | | | | | Balance, net—January 1, 2021 | $ | 1,771 | | Issuances of IRLCs | 18,415 | | Settlements of IRLCs | (18,827) | | Net loss recognized in earnings | (228) | | Balance, net—December 31, 2021 | $ | 1,131 | | | | Changes in fair value recognized during the period relating to assets still held at December 31, 2021 | $ | (641) | |
|
Schedule of Long-term Debt Instruments |
The following table presents the carrying amounts and estimated fair values of our convertible senior notes that are not recorded at fair value on our consolidated balance sheets:
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2021 | | December 31, 2020 | Issuance | | Net Carrying Amount | | Estimated Fair Value | | Net Carrying Amount | | Estimated Fair Value | 2023 notes | | $ | 23,280 | | | $ | 34,487 | | | $ | 22,482 | | | $ | 59,894 | | 2025 notes | | 650,783 | | | 593,366 | | | 488,268 | | | 802,083 | | 2027 notes | | 563,234 | | | 467,814 | | | — | | | — | |
The following table summarizes borrowings under these facilities as of the periods presented: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2021 | | December 31, 2020 | Lender | | Borrowing Capacity | | Outstanding Borrowings | | Weighted-Average Interest Rate on Outstanding Borrowings | | Borrowing Capacity | | Outstanding Borrowings | | Weighted-Average Interest Rate on Outstanding Borrowings | Western Alliance Bank | | $ | 50,000 | | | $ | 17,089 | | | 3.00 | % | | $ | 50,000 | | | $ | 18,277 | | | 3.25 | % | Texas Capital Bank, N.A. | | 40,000 | | | 11,852 | | | 3.01 | % | | 40,000 | | | 12,903 | | | 3.35 | % | Flagstar Bank, FSB | | 25,000 | | | 4,102 | | | 3.00 | % | | 15,000 | | | 7,849 | | | 3.00 | % | Total | | $ | 115,000 | | | $ | 33,043 | | | — | | | $ | 105,000 | | | $ | 39,029 | | | — | | The following table summarizes borrowings under this facility as of the period presented: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2021 | | December 31, 2020 | Lender | | Borrowing Capacity | | Outstanding Borrowings | | Weighted-Average Interest Rate on Outstanding Borrowings | | Borrowing Capacity | | Outstanding Borrowings | | Weighted-Average Interest Rate on Outstanding Borrowings | Goldman Sachs Bank USA | | $ | 200,000 | | | $ | 199,781 | | | 3.30 | % | | $ | 100,000 | | | $ | 23,949 | | | 4.40 | % |
|
Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure |
The cost or amortized cost, gross unrealized gains and losses, and estimated fair market value of our cash, money market funds, restricted cash, available-for-sale investments, and equity securities were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2021 | | Fair Value Hierarchy | | Cost or Amortized Cost | | Unrealized Gains | | Unrealized Losses | | Estimated Fair Value | | Cash, Cash Equivalents, Restricted Cash | | Short-term Investments | | Long-term Investments | Cash | N/A | | $ | 81,032 | | | $ | — | | | $ | — | | | $ | 81,032 | | | $ | 81,032 | | | $ | — | | | $ | — | | Money markets funds | Level 1 | | 509,971 | | | — | | | — | | | 509,971 | | | 509,971 | | | — | | | — | | Restricted cash | N/A | | 127,278 | | | — | | | — | | | 127,278 | | | 127,278 | | | — | | | — | | U.S. treasury securities | Level 1 | | 71,749 | | | 1 | | | (204) | | | 71,546 | | | — | | | 16,718 | | | 54,828 | | Agency bonds | Level 1 | | 11,900 | | | 6 | | | — | | | 11,906 | | | — | | | 11,906 | | | — | | Equity securities | Level 1 | | 500 | | | 4,613 | | | — | | | 5,113 | | | — | | | 5,113 | | | — | | Total | | | $ | 802,430 | | | $ | 4,620 | | | $ | (204) | | | $ | 806,846 | | | $ | 718,281 | | | $ | 33,737 | | | $ | 54,828 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2020 | | Fair Value Hierarchy | | Cost or Amortized Cost | | Unrealized Gains | | Unrealized Losses | | Estimated Fair Value | | Cash, Cash Equivalents, Restricted Cash | | Short-term Investments | | Long-term Investments | Cash | N/A | | $ | 32,915 | | | $ | — | | | $ | — | | | $ | 32,915 | | | $ | 32,915 | | | $ | — | | | $ | — | | Money markets funds | Level 1 | | 886,261 | | | — | | | — | | | 886,261 | | | 886,261 | | | — | | | — | | Restricted cash | N/A | | 20,544 | | | — | | | — | | | 20,544 | | | 20,544 | | | — | | | — | | U.S. treasury securities | Level 1 | | 137,502 | | | 159 | | | — | | | 137,661 | | | 6,100 | | | 131,561 | | | — | | Agency bonds | Level 1 | | 11,900 | | | 22 | | | — | | | 11,922 | | | — | | | — | | | 11,922 | | Total | | | $ | 1,089,122 | | | $ | 181 | | | $ | — | | | $ | 1,089,303 | | | $ | 945,820 | | | $ | 131,561 | | | $ | 11,922 | |
|