.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;
}

/* 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;
}

/*
 * 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. 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-art-how-distrokid {
        margin: -100px -104px -116px -71px;
    }

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

    .spotify-art-canvas {
        margin: -32px 0;
    }

    .spotify-art-distrovid {
        margin: -40px -23px;
    }

    .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: no mobile frame in the Figma, so columns stack in reading order */

@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-art {
        flex-basis: auto;
    }

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

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

    .spotify-hero-bg {
        aspect-ratio: 1440 / 3600;
    }

    .spotify-hero-title {
        margin-bottom: 24px;
        font-size: 36px;
    }

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

    .spotify-feature,
    .spotify-benefits,
    .spotify-testimonials {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .spotify-feature-title,
    .spotify-section-title {
        font-size: 28px;
    }

    .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;
    }
}
