.spotify-logged-out {
    --spotify-lp-blue: #0073c7;
    --spotify-lp-blue-hover: #005fa3;
    --spotify-lp-step-blue: #2c92dd;
    --spotify-lp-gray-50: #f9fafb;
    --spotify-lp-gray-200: #e5e7eb;
    --spotify-lp-gray-300: #d1d5db;
    --spotify-lp-gray-500: #6b7280;
    --spotify-lp-heading-font:
        "Inter", "Lato", "Arial", "Helvetica", sans-serif;

    color: #000;
    font-family: Lato, Arial, Helvetica, sans-serif;
}

/* The hero background and image glows bleed past header.cfm's 1140px .wrapper; clip them at the viewport. */
body:has(.spotify-logged-out) {
    overflow-x: clip;
}

.spotify-container {
    max-width: 1106px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: content-box;
}

/* hero */

/* flcloud.css gives the signup box a 40px margin above and below; this padding stacks on it. */
.spotify-hero {
    position: relative;
    isolation: isolate;
    padding: 34px 0 40px;
}

/* header.cfm wraps page content in a fixed-width container, so the background bleeds out to the viewport edges. */
.spotify-hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    aspect-ratio: 1440 / 600;
    background-image: url("/publishing/images/publishing-hero-bg.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    mask-image: linear-gradient(
        to bottom,
        rgb(0 0 0 / 100%) 0%,
        rgb(0 0 0 / 0%) 100%
    );
    z-index: -1;
    pointer-events: none;
}

.spotify-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.spotify-hero-text {
    max-width: 633px;
}

.spotify-hero-logo {
    display: block;
    width: 165px;
    height: auto;
    margin-bottom: 40px;
}

.spotify-hero-title {
    margin: 0 0 40px;
    font-family: var(--spotify-lp-heading-font);
    font-size: 54px;
    font-weight: 700;
    line-height: 1.2;
}

.spotify-hero-description {
    max-width: 602px;
    margin: 0;
    font-size: 20px;
    line-height: 28px;
}

.spotify-signup-signin {
    padding: 1em 0 0;
    line-height: 1.7em;
    text-align: center;
}

/* The Figma signup box shadow, on every width (main.css removes the shared shadow at 768px and below). */
/* stylelint-disable-next-line selector-class-pattern -- .dk__ is the shared signup box class */
.spotify-logged-out .dk__ .shadow {
    box-shadow: 0 8px 12px rgb(0 0 0 / 14%);
}

/* Keeps the live signup box sizing; the box itself is shared with /registrationForm.cfm. */
@media screen and (width <= 515px) {
    .dk__.spotify {
        width: 380px;
    }
}

@media screen and (width <= 450px) {
    .dk__.spotify {
        width: 350px;
    }
}

@media screen and (width <= 400px) {
    .dk__.spotify {
        width: 330px;
    }
}

@media screen and (width <= 350px) {
    .dk__.spotify {
        width: 300px;
    }
}

@media screen and (width <= 325px) {
    .dk__.spotify {
        width: 270px;
    }
}

/* feature rows */

.spotify-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.spotify-feature-reverse {
    flex-direction: row-reverse;
}

.spotify-feature-text {
    flex: 0 1 532px;
    font-size: 18px;
    line-height: 28px;
}

.spotify-feature-reverse .spotify-feature-text {
    flex-basis: 504px;
}

.spotify-feature-text p {
    margin: 0 0 28px;
}

.spotify-feature-text p:has(+ .spotify-feature-list) {
    margin-bottom: 20px;
}

.spotify-feature-text p:last-child {
    margin-bottom: 0;
}

.spotify-feature-title {
    margin: 0 0 20px;
    font-family: var(--spotify-lp-heading-font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.spotify-feature-list {
    margin: 0;
    padding-left: 27px;
    list-style: disc;
}

.spotify-feature-art {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
}

.spotify-feature-art img {
    max-width: 100%;
    height: auto;
}

/*
 * The registered and pre-save art share one column width, so their centers line up as in the
 * Figma. 476px is the pre-save image; at 1280px and up it is the registered art without its glow.
 */
.spotify-feature-art-matched {
    flex: 0 0 476px;
}

/*
 * These exports include the soft glow around the artwork. Figma spaces sections from the
 * artwork itself, so pull the glow out of the layout box and let it overflow. Each margin is
 * the export's bounds minus the art group's bounds in the Figma frame (for the pre-save image,
 * minus the card's outline). Below 1280px the glow no longer fits beside the 1106px content
 * column, so it stays inside the layout box there.
 */
@media (width >= 1280px) {
    .spotify-feature-art img {
        max-width: none;
    }

    .spotify-feature-art-matched {
        flex-basis: 351px;
    }

    .spotify-art-how-distrokid {
        margin: -100px -104px -116px -71px;
    }

    .spotify-art-registered {
        margin: -33px -33px -33px -29px;
    }

    .spotify-art-presave {
        margin: -89px -110px -110px -116px;
    }

    .spotify-art-how-it-works {
        margin: -61px -80px -80px -79px;
    }
}

/* preferred distributor cards */

.spotify-benefits {
    padding-top: 80px;
    padding-bottom: 80px;
}

.spotify-section-title {
    margin: 0 0 67px;
    font-family: var(--spotify-lp-heading-font);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.spotify-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 62px;
}

.spotify-benefit-card {
    min-height: 282px;
    padding: 41px 20px 30px;
    border: 1.5px solid var(--spotify-lp-gray-200);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    color: #222;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.spotify-benefit-icon {
    display: block;
    margin: 0 auto 25px;
}

.spotify-benefit-title {
    margin: 0 0 14px;
    color: #374151;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
}

.spotify-benefit-card p {
    margin: 0;
}

/* how it works */

.spotify-how-it-works-title {
    margin: 0 0 32px;
    color: #0d0c05;
    font-family: var(--spotify-lp-heading-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.32px;
}

.spotify-how-it-works-list {
    counter-reset: spotify-how-it-works;
    max-width: 447px;
    margin: 0 0 32px;
    padding: 0;
    color: #0d0c05;
    list-style: none;
}

.spotify-how-it-works-list li {
    counter-increment: spotify-how-it-works;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.spotify-how-it-works-list li::before {
    content: counter(spotify-how-it-works);
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--spotify-lp-step-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.spotify-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--spotify-lp-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    box-sizing: border-box;
}

.spotify-button:hover,
.spotify-button:focus,
.spotify-button:visited {
    color: #fff;
    text-decoration: none;
}

.spotify-button:hover {
    background: var(--spotify-lp-blue-hover);
}

.spotify-how-it-works-button {
    min-width: 157px;
}

.spotify-button .fa-arrow-right {
    font-size: 11px;
}

/* testimonials */

.spotify-testimonials {
    padding-top: 80px;
    padding-bottom: 80px;
}

.spotify-testimonials-title {
    margin: 0 0 54px;
    color: #222;
    font-family: var(--spotify-lp-heading-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.spotify-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.spotify-testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 322px;
    margin: 40px 0 0;
    padding: 0 28px 24px;
    border: 1px solid var(--spotify-lp-gray-300);
    border-radius: 12px;
    background: #fff;
    box-shadow: 3px 5px 16px rgb(0 0 0 / 10%);
    font-family: var(--spotify-lp-heading-font);
    box-sizing: border-box;
}

.spotify-testimonial-avatar {
    width: 136px;
    height: 136px;
    margin-top: -43px;
}

.spotify-testimonial-stars {
    margin: 8px 0 21px;
}

.spotify-testimonial-quote {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
}

.spotify-testimonial-author {
    margin-top: 20px;
    color: var(--spotify-lp-gray-500);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* closing CTA */

.spotify-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 80px 0;
    padding: 40px;
    border-radius: 12px;
    background: var(--spotify-lp-gray-50);
}

.spotify-cta-title {
    margin: 0;
    font-family: var(--spotify-lp-heading-font);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.spotify-cta-button {
    width: 295px;
    max-width: 100%;
    min-height: 67px;
}

/* FAQ: restyles the shared LandingPageFAQ tag, whose own CSS is a full-bleed blue block */

.spotify-faq {
    margin: 0 0 80px;
    padding: 48px 40px 62px;
    border-radius: 12px;
    background: var(--spotify-lp-gray-50);
    font-family: var(--spotify-lp-heading-font);
}

.spotify-faq .faq-heading {
    margin: 0 0 34px;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.spotify-faq .faq-accordion {
    max-width: 566px;
    margin: 0 auto;
    padding: 0;
    background: none;
    color: #000;
}

.spotify-faq .faq-accordion .faq-item {
    padding: 20px 23px;
    border-bottom: 1px solid var(--spotify-lp-gray-200);
    border-radius: 0;
}

.spotify-faq .faq-accordion .faq-item.open {
    border-bottom-color: transparent;
    background: var(--spotify-lp-blue);
    color: #fff;
    border-radius: 4px;
}

.spotify-faq .faq-accordion .faq-item .faq-q {
    font-size: 14px;
    line-height: 20px;
}

.spotify-faq .faq-accordion .faq-item .faq-q > span {
    padding-right: 24px;
}

.spotify-faq .faq-accordion .faq-item .faq-q i {
    font-size: 12px;
}

.spotify-faq .faq-accordion .faq-item .faq-a {
    max-width: none;
    padding-top: 6px;
    padding-right: 2.5rem;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}

/* Solid white: the shared #cce9ff link color is under WCAG AA 4.5:1 on the open item's blue. */
.spotify-faq .faq-accordion .faq-item .faq-a a {
    color: #fff;
}

.spotify-faq .faq-a p,
.spotify-faq .faq-a ul {
    margin: 0 0 12px;
}

.spotify-faq .faq-a ul {
    padding-left: 20px;
}

.spotify-faq .faq-a > :last-child {
    margin-bottom: 0;
}

.spotify-faq .more-info {
    padding: 24px 23px;
    border-radius: 4px;
    background: var(--spotify-lp-blue);
}

.spotify-faq .more-info .fa-question {
    width: 32px;
    height: 32px;
    margin: 0 16px 0 0;
    padding: 0;
    background: #cce9ff;
    color: var(--spotify-lp-blue);
    font-weight: 700;
}

.spotify-faq .more-info .more-info-header {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 20px;
}

.spotify-faq .more-info-text {
    color: #fff;
    font-size: 14px;
}

/* The tag always renders a trailing arrow; the Figma card has none and the whole card is the link. */
.spotify-faq .more-info > .fa-arrow-right {
    display: none;
}

/* tablet and mobile: columns stack in reading order, as in the Figma MOBILE frame */

@media (width <= 991px) {
    .spotify-hero-grid,
    .spotify-feature,
    .spotify-feature-reverse {
        flex-direction: column;
        align-items: stretch;
    }

    .spotify-hero-grid .signup {
        align-self: center;
    }

    .spotify-feature-text,
    .spotify-feature-reverse .spotify-feature-text,
    .spotify-feature-art {
        flex-basis: auto;
    }

    /* Keeps tablet body copy from running edge to edge; no effect at phone widths. */
    .spotify-feature-text {
        align-self: center;
        width: 100%;
        max-width: 600px;
    }

    .spotify-feature-title,
    .spotify-how-it-works-title {
        text-align: center;
    }

    .spotify-how-it-works-button {
        display: flex;
        width: fit-content;
        margin: 0 auto;
    }

    .spotify-benefits-grid {
        gap: 24px;
    }
}

@media (width <= 767px) {
    .spotify-hero {
        padding-top: 40px;
    }

    /* The mobile export already fades to white, so it needs no mask. */
    .spotify-hero-bg {
        aspect-ratio: 779 / 1148;
        background-image: url("/images/spotify/spotify-hero-bg-mobile.webp");
        mask-image: none;
    }

    .spotify-hero-title {
        margin-bottom: 20px;
        font-size: 32px;
        font-weight: 600;
        line-height: normal;
    }

    .spotify-hero-description {
        font-size: 18px;
    }

    /* The shared signup section adds a 40px top margin to the 40px grid gap; Figma has 40px in all. */
    .spotify-hero-grid .signup .sign-up-section {
        margin-top: 0;
    }

    /* The Figma MOBILE frame puts 80px between sections. */
    .spotify-feature,
    .spotify-benefits,
    .spotify-testimonials {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .spotify-feature-title,
    .spotify-section-title {
        font-size: 32px;
        font-weight: 700;
    }

    .spotify-feature-title {
        color: #0d0c05;
        letter-spacing: -0.32px;
    }

    /*
     * Art sizes from the Figma MOBILE frame, whose content column is 350px. Each width is the
     * Figma size, or the same share of a narrower column. The glow exports pull their glow out
     * of the layout box, as at 1280px and up: each margin is a fixed fraction of the image width.
     */
    .spotify-feature-art img {
        max-width: none;
    }

    .spotify-art-how-distrokid {
        --spotify-lp-art-width: min(380px, calc(100% * 380 / 350));

        width: var(--spotify-lp-art-width);
        margin: calc(var(--spotify-lp-art-width) * -0.1805)
            calc(var(--spotify-lp-art-width) * -0.1877)
            calc(var(--spotify-lp-art-width) * -0.2094)
            calc(var(--spotify-lp-art-width) * -0.1282);
    }

    .spotify-art-registered {
        --spotify-lp-art-width: min(331px, calc(100% * 331 / 350));

        width: var(--spotify-lp-art-width);
        margin: calc(var(--spotify-lp-art-width) * -0.0799)
            calc(var(--spotify-lp-art-width) * -0.0799)
            calc(var(--spotify-lp-art-width) * -0.0799)
            calc(var(--spotify-lp-art-width) * -0.0702);
    }

    .spotify-art-canvas {
        width: min(256px, calc(100% * 256 / 350));
    }

    .spotify-art-presave {
        --spotify-lp-art-width: min(442px, calc(100% * 442 / 350));

        width: var(--spotify-lp-art-width);
        margin: calc(var(--spotify-lp-art-width) * -0.1861)
            calc(var(--spotify-lp-art-width) * -0.2303)
            calc(var(--spotify-lp-art-width) * -0.2319)
            calc(var(--spotify-lp-art-width) * -0.2429);
    }

    .spotify-art-distrovid {
        width: min(266px, calc(100% * 266 / 350));
    }

    .spotify-art-how-it-works {
        --spotify-lp-art-width: min(357px, calc(100% * 357 / 350));

        width: var(--spotify-lp-art-width);
        margin: calc(var(--spotify-lp-art-width) * -0.1194)
            calc(var(--spotify-lp-art-width) * -0.1566)
            calc(var(--spotify-lp-art-width) * -0.1566)
            calc(var(--spotify-lp-art-width) * -0.1546);
    }

    .spotify-section-title {
        margin-bottom: 32px;
    }

    .spotify-benefits-grid,
    .spotify-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .spotify-benefit-card,
    .spotify-testimonial {
        min-height: 0;
    }

    .spotify-testimonials-grid {
        gap: 56px;
    }

    .spotify-cta {
        margin: 48px 0;
        padding: 32px 20px;
    }

    .spotify-faq {
        margin-bottom: 48px;
        padding: 32px 12px;
    }
}
