Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation —The consolidated financial statements have been prepared in U.S. dollars, in accordance with accounting principles generally accepted in the United States of America (“GAAP”). The accompanying consolidated financial statements include the accounts of the Company and its wholly owned subsidiaries. All intercompany transactions have been eliminated in consolidation. Use of Estimates —The preparation of consolidated financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, disclosure of contingent assets and liabilities at the date of the financial statements, and the reported amounts of revenue and expenses during the reporting period. Actual results could differ from those estimates. Operating Segments —The Company operates as one operating segment. Operating segments are defined as components of an enterprise for which separate financial information is regularly evaluated by the chief operating decision maker (“CODM”), which is the Company’s chief executive officer, in deciding how to allocate resources and assess performance. The Company’s CODM evaluates the Company’s financial information and resources and assess the performance of these resources on a consolidated basis. Since the Company operates in one operating segment, all required financial segment information can be found in the consolidated financial statements. Loss Per Share — Basic net loss per share is computed by dividing net loss by the weighted average number of common shares outstanding for the period. Diluted net loss per share is computed by giving effect to all potential dilutive common stock equivalents outstanding for the period. For purposes of this calculation, options to purchase common stock, restricted stock units (“RSUs”), shares issued pursuant to the Employee Stock Purchase Plan (“ESPP”), the Warrants (defined below), the Conversion Option of the 2022 Notes, and the Conversion Option of the 2025 Notes (the “Conversion Options”) (Note 9) are considered to be potential common stock equivalents. A reconciliation of the denominator used in the calculation of basic and diluted loss per share is as follows: Year Ended December 31, 2020 2019 2018 (in thousands, except per share amounts) Net loss $ (85,031 ) $ (53,746 ) $ (63,828 ) Weighted-average common shares outstanding—basic 44,757 42,025 38,529 Dilutive effect of share equivalents resulting from stock options, RSUs, ESPP, Warrants and the Conversion Options — — — Weighted-average common shares outstanding-diluted 44,757 42,025 38,529 Net loss per common share, basic and diluted $ (1.90 ) $ (1.28 ) $ (1.66 ) Since the Company incurred net losses for each of the periods presented, diluted net loss per share is the same as basic net loss per share. All of the Company’s outstanding stock options, RSUs, and shares issuable under the ESPP, as well as the Warrants and Conversion Options were excluded in the calculation of diluted net loss per share as the effect would be anti-dilutive. The Company expects to settle the principal amount of the Notes (Note 9) in cash, and therefore, the Company uses the treasury stock method for calculating any potential dilutive effect of the Warrants and Conversion Options on diluted net income per share, if applicable. As a result, only the amount by which the conversion cost of the Notes, if settled in shares, exceeds the aggregated principal amount of the Notes (the “Conversion Spread”) is considered in the diluted earnings per share computation. The Conversion Spread has a dilutive impact on net income per share when the average market price of the Company’s common stock for a given period of time exceeds the initial conversion price of $94.77 per share for the 2022 Notes and $282.52 for the 2025 Notes. The average stock price for the year ended December 31, 2020 was $240.59. As the last reported sale price of the Company’s common stock for at least 20 trading days during the period of 30 consecutive trading As the last reported sale price of the Company’s common stock for at least 20 trading days during the period of 30 consecutive trading As of February 12, 2021, no holders have converted or indicated their intention to convert the 2025 Notes. The following table contains all potentially dilutive common stock equivalents. Year Ended December 31, 2020 2019 2018 (in thousands) Options to purchase common shares 1,020 1,489 1,824 RSUs 1,561 1,207 1,732 Conversion Option of the 2022 Notes and Warrants 1,873 3,104 1,211 Conversion Option of the 2025 Notes 318 — — ESPP 21 2 — Cash and Cash Equivalents — The Company considers all highly liquid investments purchased with original maturity of three months or less to be cash equivalents. Cash and cash equivalents consist of cash held in bank deposit accounts and short-term, highly-liquid investments with remaining maturities of three months or less at the date of purchase, consisting primarily of money-market funds. Investments — Investments consist of commercial paper, corporate debt securities and U.S. Treasury securities. Securities having remaining maturities of more than three months at the date of purchase and less than one year from the date of the balance sheets are classified as short-term, and those with maturities of more than one year from the date of the balance sheet are classified as long-term in the consolidated balance sheets. The Company classifies its debt investments with readily determinable market values as available-for-sale. These investments are classified as investments on the consolidated balance sheets and are carried at fair market value, with unrealized gains and losses considered to be temporary in nature reported as accumulated other comprehensive loss, a separate component of stockholders’ equity. The Company reviews all investments for reductions in fair value that are other-than-temporary. When such reductions occur, the cost of the investment is adjusted to fair value through recording a loss on investments in the consolidated statements of operations. Gains and losses on investments are calculated on the basis of specific identification. Investments are considered to be impaired when a decline in fair value below cost basis is determined to be other-than-temporary. The Company periodically evaluates whether a decline in fair value below cost basis is other-than-temporary by considering available evidence regarding these investments including, among other factors: the duration of the period that, and extent to which, the fair value is less than cost basis; the financial health of, and business outlook for the issuer, including industry and sector performance and operational and financing cash flow factors; overall market conditions and trends and the Company’s intent and ability to retain its investment in the security for a period of time sufficient to allow for an anticipated recovery in market value. Once a decline in fair value is determined to be other-than-temporary, a write-down is recorded and a new cost basis in the security is established. Strategic investments — Strategic investments consist of non-controlling equity investments in privately held companies. These investments without readily determinable fair values for which the Company does not have the ability to exercise significant influence are accounted for using the measurement alternative. Under the measurement alternative, the non-marketable securities are carried at cost less any impairments, plus or minus adjustments resulting from observable price changes in orderly transactions for identical or similar investments of the same issuer. Accounts Receivable and Allowance for Doubtful Accounts — Accounts receivable are carried at the original invoiced amount less an allowance for doubtful accounts based on the probability of future collection. The probability of future collection is based on specific considerations of historical loss patterns and an assessment of the continuation of such patterns based on past collection trends and known or anticipated future economic events that may impact collectability. The probability of future collection is also assessed by geography. To date, losses resulting from uncollected receivables have not exceeded management’s expectations. The following is a roll forward of the Company’s allowance for doubtful accounts (in thousands): Balance Beginning of Period Charged to Statement of Operations Deductions (1) Balance at End of Period Allowance for doubtful accounts Year ended December 31, 2020 $ 1,584 $ 8,501 $ (8,092 ) $ 1,993 Year ended December 31, 2019 $ 1,317 $ 7,895 $ (7,628 ) $ 1,584 Year ended December 31, 2018 $ 638 $ 5,514 $ (4,835 ) $ 1,317 (1) Deductions include actual accounts written-off, net of recoveries. Restricted Cash —The Company had restricted cash of $3.0 million at December 31, 2020 and $8.8 million at December 31, 2019 related to letters of credit for it leased facilities. The following table provides a reconciliation of the cash, cash equivalents and restricted cash within the consolidated balance sheets that sum to the total of the same such amounts shown in the statement of cash flows for the year ended December 31, 2020 and 2019. December 31, 2020 December 31, 2019 (in thousands) Cash and cash equivalents $ 378,123 $ 269,670 Restricted cash, included in other assets 3,029 8,845 Total cash, cash equivalents, and restricted cash $ 381,152 $ 278,515 Property and Equipment —Property and equipment are stated at cost and depreciated using the straight-line method over the estimated useful lives of the related assets. Expenditures for maintenance and repairs are charged to expense as incurred, whereas major betterments are capitalized as additions to leasehold improvements. Depreciation is recorded over the following estimated useful lives: Estimated Useful Life Employee related computer equipment 2 - 3 years Computer equipment and purchased software 3 years Furniture and fixtures 5 years Internal-use software 5 years Leasehold improvements Lesser of lease The Company capitalizes certain payroll and stock compensation costs incurred to develop functionality for certain of the Company’s internally built software platforms. The costs incurred during the preliminary stages of development are expensed as incurred. Once a piece of incremental functionality has reached the development stage certain internal costs are capitalized until the functionality is ready for its intended use. Internal-use software is included within property and equipment on the balance sheet. The costs are generally amortized on a straight-line basis over an estimated useful life of approximately five years. Impairment of Long-Lived Assets — Long-lived assets are reviewed for impairment whenever events or changes in circumstances indicate that the carrying amount of the asset may not be recoverable or that the useful lives of those assets are no longer appropriate. Management considers the following potential indicators of impairment of its long-lived assets (asset group): a substantial decrease in the Company’s stock price, a significant adverse change in the extent or manner in which a long-lived asset (asset group) is being used, a significant adverse change in legal factors or in the business climate that could affect the value of the long-lived asset (asset group), an accumulation of costs significantly in excess of the amount originally expected for the acquisition or construction of a long-lived asset (asset group), and a current expectation that, more likely than not, a long lived asset (asset group) will be sold or otherwise disposed of significantly before the end of its previously estimated useful life. When such events occur, the Company compares the carrying amounts of the assets to their undiscounted expected future cash flows. If this comparison indicates that there may be an impairment, the amount of the impairment is calculated as the difference between the carrying value and fair value. For the years presented, the Company did not recognize an impairment charge. Intangible Assets — Intangible assets consist of acquired technology, trade name and customer relationships. The Company records acquired intangible assets at fair value on the date of acquisition and amortize such assets in a pattern reflective of the expected economic benefits consumption over the expected useful life of the asset. If this pattern cannot be reliably determined, a straight-line amortization method is used. The estimated useful life of acquired technology is two to seven years and is based on the period over which economic benefits will be derived from each acquired intangible asset. The Company evaluates the useful lives of these assets on an annual basis and tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. If the estimate of an intangible asset’s remaining useful life is changed, the remaining carrying value of the intangible asset is amortized prospectively over the revised remaining useful life. Goodwill —Goodwill represents the excess of cost over the fair value of the net tangible and identifiable intangible assets acquired in a business combination. Goodwill is not subject to amortization but is monitored annually for impairment or more frequently if there are indicators of impairment. Management considers the following potential indicators of impairment: significant underperformance relative to historical or projected future operating results, significant changes in the Company’s use of acquired assets or the strategy of the Company’s overall business, significant negative industry or economic trends and a significant decline in the Company’s stock price for a sustained period. The Company performs its annual impairment test on November 30. Currently, the Company’s goodwill is evaluated at the entity level as it has been determined there is one operating segment comprised of one reporting unit. When assessing goodwill for impairment the Company first performs a qualitative assessment to determine whether it is necessary to perform a quantitative analysis. If the Company determines it is unlikely that the reporting unit fair value is less than its carrying value then no quantitative assessment is performed. If the Company cannot determine that it is likely that the reporting unit fair value is more than its carrying value, then the Company performs a quantitative assessment. Based on the qualitative assessment performed on November 30, 2020, the Company determined it was unlikely that it’s reporting unit fair value was less than its carrying value and no quantitative assessment was required. There were no indicators that the Company’s goodwill had become impaired since that date, and as such, there was no impairment of goodwill as of November 30, 2020 or December 31, 2020 . For the years ended December 31, 2020, 2019 and 2018, the Company did not recognize an impairment charge. Business Combinations — The Company uses its best estimates and assumptions to assign fair value to assets acquired and liabilities assumed. Significant judgment is used in determining fair values of assets acquired and liabilities assumed, as well as acquired assets and their estimated useful lives. Fair value and useful life determinations are based on, among other factors, estimates of future expected cash flows attributable to the acquired intangible assets and appropriate discount rates used in computing present values. Goodwill represents the excess of the purchase price over the estimated fair values of the assets acquired and liabilities assumed. The Company’s estimates are inherently uncertain and subject to refinement. During the measurement period, which may be up to one year from the acquisition date, the Company may record adjustments to the fair value of these tangible and intangible assets acquired and liabilities assumed, with the corresponding offset to goodwill. The Company continues to collect information and reevaluates these estimates and assumptions quarterly and records any adjustments to the Company’s preliminary estimates to goodwill provided that the Company is within the measurement period. Upon the conclusion of the measurement period or final determination of the fair value of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are recorded to the Company’s consolidated statement of operations. Advertising Expense —The Company expenses advertising as incurred, which is included in sales and marketing expense in the accompanying consolidated statements of operations. The Company incurred $21.9 million of advertising expense in 2020, $14.9 million in 2019, and $8.4 million in 2018. Leases — On January 1, 2019, the Company adopted the new lease guidance using a modified retrospective transition method applied to those leases which were not completed as of January 1, 2019. The Company determines if an arrangement contains a lease at inception and does not separate lease and non-lease components of an arrangement determined to contain a lease. Operating leases are included in right-of-use (“ROU”) assets, current operating lease liabilities and operating lease liabilities, net of current portion, on the Company’s consolidated balance sheet. Finance leases are included in property and equipment, net, accrued expenses, and other current liabilities on the Company’s consolidated balance sheet. Operating and finance leases with a duration of less than 12 months are excluded from right-of-use-assets and operating lease liabilities and related expense is recorded as incurred. ROU assets represent the Company's right to use an underlying asset for the lease term and the corresponding lease liabilities represent its obligation to make lease payments arising from the lease. Lease ROU assets and lease liabilities are recognized based on the present value of the future minimum lease payments over the lease term at the lease commencement date. The lease ROU asset includes any initial direct costs incurred and is reduced for tenant incentives. As the Company’s operating leases do not provide an implicit rate, the net present value of future minimum lease payments is determined using the Company’s incremental borrowing rate. To determine the estimated incremental borrowing rate, the Company uses publicly available credit ratings for peer companies. The Company estimates the incremental borrowing rate using yields for maturities that are in line with the duration of the lease payments. Lease expense for minimum lease payments for operating leases is recognized on a straight-line basis over the lease term. Finance leases use the effective interest method to record expense which results in a front-loaded expense recognition pattern. Asset retirement obligations (“ARO”) On the lease commencement date the Company establishes an ARO based on the present value of contractually required estimated future costs to retire long-lived assets at the termination or expiration of a lease. The asset associated with the ARO is amortized over the corresponding lease term to operating expense and the ARO is accreted to the end of lease obligation value over the same term. Revenue Recognition — The Company generates revenue from arrangements with multiple performance obligations, which typically include subscriptions to its online software products and professional services which include on-boarding and training services. The Company’s customers do not have the right to take possession of the online software products. The Company recognizes revenue from contracts with customers using a five-step model, which is described below: • Identify the customer contract; • Identify performance obligations that are distinct; • Determine the transaction price; • Allocate the transaction price to the distinct performance obligations; and • Recognize revenue as the performance obligations are satisfied. Identify the customer contract A customer contract is generally identified when the Company and a customer have executed an arrangement that calls for the Company to grant access to its online software products and provide professional services in exchange for consideration from the customer. Identify performance obligations that are distinct A performance obligation is a promise to provide a distinct good or service or a series of distinct goods or services. A good or service that is promised to a customer is distinct if the customer can benefit from the good or service either on its own or together with other resources that are readily available to the customer, and a company’s promise to transfer the good or service to the customer is separately identifiable from other promises in the contract. The Company has determined that subscriptions for its online software products are distinct because, once a customer has access to the online software product that it purchased, the online software product is fully functional and does not require any additional development, modification, or customization. Professional services sold are distinct because the customer benefits from the on-boarding and training to make better use of the online software products it purchased. Determine the transaction price The transaction price is the amount of consideration to which the Company expects to be entitled in exchange for transferring goods or services to a customer, excluding sales taxes that are collected on behalf of government agencies. The Company estimates any variable consideration to which it will be entitled at contract inception, and reassesses at each reporting date, when determining the transaction price. The Company does not include variable consideration to the extent that it is probable that a significant reversal in the amount of cumulative revenue recognized will occur when any uncertainty associated with the variable consideration is resolved. Allocate the transaction price to the distinct performance obligations The transaction price is allocated to each performance obligation based on the relative standalone selling prices (“SSP”) of the goods or services being provided to the customer. The Company determines the SSP of its goods and services based upon the average sales prices for each type of online software product and professional services sold. In instances where there are not sufficient data points, or the selling prices for a particular online software product or professional service are disparate, the Company estimates the SSP using other observable inputs, such as similar products or services. Recognize revenue as the performance obligations are satisfied Revenues are recognized when or as control of the promised goods or services is transferred to customers. Revenue from online software products Solutions Partner Commissions The Company pays its Solutions Partners a commission based on the online software product sales price for sales to end-customers. The classification of the commission paid in the Company’s consolidated statements of operations depends on who purchases the online software product. In instances where an end-customer purchases from the Company, the commission paid to the Solutions Partner Concentrations of Credit Risk and Significant Customers —Financial instruments that potentially expose the Company to concentrations of credit risk consist primarily of cash, investments and accounts receivable. The Company's cash and cash equivalents are generally held with large financial institutions. Although the Company's deposits may exceed federally insured limits, the financial institutions that the Company uses have high investment-grade credit ratings and, as a result, the Company believes that, as of December 31, 2020, its risk relating to deposits exceeding federally insured limits was not significant. The Company’s investments consist of highly rated corporate debt securities and U.S. Treasury securities . The Company limits the amount of investments in any single issuer, except U.S. Treasuries. The Company believes that, as of December 31, 2020, its concentration of credit risk related to investments was not significant. The Company has no significant off-balance sheet risk such as foreign exchange contracts, option contracts, or other hedging arrangements. The Company generally does not require collateral from its customers and generally requires payment 30 days from the invoice date. The Company maintains an allowance for doubtful accounts based on its assessment of the collectability of accounts receivable. Credit risk arising from accounts receivable is mitigated as a result of transacting with a large number of geographically dispersed customers spread across various industries. At December 31, 2020 and 2019, there were no customers that represented more than 10% of the net accounts receivable balance. There were no customers that individually exceeded 10% of the Company’s revenue in any of the periods presented. Foreign Currency —The functional currency of the Company’s foreign subsidiaries is the local currency. Assets and liabilities denominated in a foreign currency are translated into U.S. dollars at the exchange rates in effect at the balance sheet dates, with the resulting translation adjustments directly recorded to a separate component of accumulated other comprehensive loss. Income and expense accounts are translated at the weighted-average exchange rates during the period. Foreign currency transaction gains and losses are recorded in other expense. Research and Development —Research and development expenses include payroll, employee benefits and other expenses associated with product development. Also included is a benefit related to an Irish research and development tax credit, under which the Company is able to obtain a refundable credit of up to 25% of eligible research and development expenses incurred. The credit is recorded as a reduction of research and development expenses in the period in which the eligible expenses are recorded in the consolidated financial statements. Capitalized Software Development Costs —Certain payroll and stock compensation costs incurred to develop functionality for the Company’s software and internally built software platforms, as well as certain upgrades and enhancements that are expected to result in enhanced functionality are capitalized. The costs incurred in the preliminary stages of development are expensed as incurred. Once an application has reached the development stage, the Company capitalizes certain software development costs for new offerings as well as upgrades to existing software platforms. Capitalized software development costs are amortized on a straight-line basis over their estimated useful life of two to five years. Management evaluates the useful lives of these assets on a quarterly basis and tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. The Company determines the amount of internal software costs to be capitalized based on the amount of time spent by the developers on projects in the application stage of development. There is judgment involved in estimating time allocated to a particular project in the application stage. Costs associated with building or significantly enhancing the CRM CRM Capitalized software development costs, exclusive of those costs recorded within property and equipment, consisted of the following: December 31, 2020 December 31, 2019 (in thousands) Gross capitalized software development costs $ 85,630 $ 61,641 Accumulated amortization (60,687 ) (44,848 ) Capitalized software development costs, net $ 24,943 $ 16,793 Amortization of capitalized software development costs, exclusive of costs recorded within property and equipment, was $16.0 million in 2020, $11.6 million in 2019, and $9.2 million in 2018. Amortization expense is included in cost of revenue in the consolidated statements of operations. Income Taxes —Deferred tax assets and liabilities are recognized for the differences between the financial statement carrying amounts and the tax bases of existing assets and liabilities using tax rates expected to be in effect in the years in which the differences are expected to reverse. Deferred tax assets are reduced by a valuation allowance if it is more likely than not that some portion or all of the deferred tax assets will not be realized. Accounting for uncertainty in income taxes recognized in the financial statements is in accordance with accounting authoritative guidance, which prescribes a two-step process to determine the amount of tax benefit to be recognized. First, the tax position must be evaluated to determine the likelihood that it will be sustained upon external examination. If the tax position is deemed “more-likely-than-not” to be sustained, the tax position is then assessed to determine the amount of benefit to recognize in the financial statements. The amount of the benefit that may be recognized is the largest amount that has a greater than 50 percent likelihood of being realized upon ultimate settlement. Stock-Based Compensation — The Company accounts for all stock options and awards granted to employees and nonemployees using a fair value method. Stock-based compensation is recognized as an expense and is measured at the fair value of the award. The measurement date for awards is generally the date of the grant. For stock options, the Black-Scholes option pricing model is used to measure the fair value of the grant. The fair value of the Company’s common stock is the closing price of the stock on the date of the grant. The expected term of options granted to employees was calculated using the simplified method, which represents the average of the contractual term of the option and the weighted-average vesting period of the option. The Company considers this appropriate as there is no other method that would be more indicative of exercise activity. The expected volatility for the Company’s common stock was based on an average of the historical volatility of a peer group of similar public companies. The determine the Company’s peer companies, the following criteria was used: software or software-as-a-service companies; similar histories and relatively comparable financial leverage; sufficient public company trading history; similar talent pool; and in similar businesses and geographical markets. The risk-free interest rate is based on the rate on U.S. Treasury securities with maturities consistent with the estimated expected term of the awards. The assumed dividend yield is based upon the Company’s expectation of not paying dividends in the foreseeable future. Stock-based compensation costs are recognized as expense over the requisite service period, which is generally the vesting period for awards, on a straight-line basis. Recent Accounting Pronouncements — Recent accounting standards not included below are not expected to have a material impact on our consolidated financial position and results of operations. Accounting Pronouncements Adopted in 2019: On January 1, 2019, the Company adopted the lease guidance using a modified retrospective transition method applied to those leases which were not completed as of January 1, 2019. Results for reporting periods beginning after December 31, 2018 are presented under the new guidance, while prior period comparative amounts are not adjusted and continue to be reported in accordance with historical guidance. The Company applied the new standard using the package of practical expedients permitted under the transition guidance where the Company: • • • In addition, the Company elected the hindsight practical expedient to determine the lease term for existing leases. The resulting impact, as of the adoption date, to the consolidated balance sheet of applying the new guidance in 2019 versus the prior guidance was an increase to right-of-use assets of $152.2 million, a decrease to other assets of $0.3 million, an increase to total assets of $151.9 million, an increase to short-term lease liabilities of $14.1 million, a decrease to accrued expenses and other current liabilities of $0.5 million, an increase to total current liabilities of $13.5 million, an increase to long-term lease liabilities of $164.8 million, a decrease to deferred rent, net of current portion of $26.4 million and an increase to total liabilities of $151.9 million. There was no impact to stockholders’ equity or the consolidated statements of operatio |