/* ===========================================================================
 * LP-811 — the 28-Day Detox VIP offer page (/offers/{uuid}).
 *
 * Loaded after product-lander.css, whose tokens (--pl-*), type, buttons,
 * claims strip, cards, carousels, image/text split and FAQ this page reuses.
 * Everything here is scoped under .dx. Like the launch landers, the design is
 * drawn at 390 and 1440: below 1024px the page follows the 390 design, from
 * 1024px the 1440 one.
 * ======================================================================== */

.dx {
    --dx-display: var(--pl-serif);
}

.dx-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.dx-br-desktop {
    display: none;
}

.dx-btn {
    width: 100%;
    max-width: 378px;
    height: 44px;
    gap: 6px;
    padding: 0 16px;
    border: 1.5px solid var(--pl-gold);
    border-radius: 999px;
    color: var(--pl-white);
}

.dx-btn:hover,
.dx-btn:focus-visible {
    border-color: var(--lp-gold-ink, #7E5F3C);
    color: var(--pl-white);
}

.dx-btn__was {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

/* Centred closing lines under a section. */
.dx-lead {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 722px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
}

@media (min-width: 1024px) {
    .dx-br-desktop {
        display: inline;
    }

    .dx-lead {
        font-size: 20px;
        line-height: 30px;
    }
}

/* --- Hero ------------------------------------------------------------------ */

.dx-hero__media img {
    width: 100%;
    max-height: 560px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.dx-hero__panel {
    padding: 55px 20px;
    background: linear-gradient(to bottom, #DEC6AC 4%, #F5E7DA 98%);
}

.dx-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.dx-hero__badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 100px;
    background: var(--pl-teal);
    color: var(--pl-cream);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.28px;
    text-transform: uppercase;
}

.dx-hero__title {
    font-family: var(--pl-mode);
    font-weight: 400;
    font-size: 50px;
    line-height: 50px;
    letter-spacing: 0;
}

.dx-hero__lede {
    font-size: 23px;
    line-height: 32px;
}

.dx-hero__perks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 12px;
}

.dx-hero__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 25px;
}

.dx-hero__perks img {
    flex: 0 0 16px;
}

.dx-hero__price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    padding-top: 16px;
    border-top: 1px solid var(--pl-gold);
}

.dx-hero__price-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
}

.dx-hero__price-line {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.dx-hero__price-now {
    font-weight: 700;
    font-size: 32px;
    line-height: 24px;
}

.dx-hero__price-was {
    color: rgba(43, 91, 108, 0.75);
    font-size: 16px;
    line-height: 20px;
}

.dx-hero__pv {
    font-size: 12px;
    line-height: 18px;
}

.dx-hero__sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
    padding: 10px 12px;
    border: 1px solid var(--pl-beige);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}

.dx-hero__sub-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dx-hero__sub-row img {
    flex: 0 0 20px;
}

.dx-hero__sub-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.dx-hero__sub-title a {
    color: inherit;
    text-decoration: underline;
}

.dx-hero__sub-text {
    font-size: 12px;
    line-height: 18px;
}

.dx-hero__sub-terms {
    color: rgba(43, 91, 108, 0.75);
    font-size: 10px;
    line-height: 12px;
}

.dx-hero .dx-btn {
    max-width: none;
}

.dx-hero__note {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    line-height: 18px;
}

.dx-hero__note img {
    flex: 0 0 18px;
}

@media (min-width: 1024px) {
    .dx-hero {
        display: flex;
        align-items: center;
        min-height: calc(100vw * 734 / 1440);
        background-image: var(--dx-hero-bg);
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
    }

    .dx-hero__media {
        display: none;
    }

    /* The copy column starts where the design puts it, 799px into the 1440
       frame, just past the photo's curve. The image is anchored right, so a
       hero taller than the image's proportions moves the curve left, never
       under the copy. */
    .dx-hero__panel {
        width: 100%;
        padding: 32px 36px 32px 55.5%;
        background: none;
    }

    .dx-hero__copy {
        max-width: 543px;
        margin: 0;
    }

    .dx-hero__title {
        max-width: 491px;
        font-size: 45px;
        line-height: 45px;
    }

    .dx-hero__lede {
        max-width: 491px;
        font-size: 16px;
        line-height: 25px;
    }

    .dx-hero__perks {
        padding: 0;
    }

    .dx-hero__price,
    .dx-hero__sub {
        align-self: auto;
        width: 100%;
        max-width: 468px;
    }

    .dx-hero__price {
        max-width: 530px;
    }

    .dx-hero .dx-btn {
        width: 378px;
    }
}

@media (min-width: 1440px) {
    .dx-hero {
        min-height: 734px;
    }
}

/* --- Claims strip: the design scrolls it at every width ------------------- */

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .dx .pl-claims {
        padding-left: 0;
        padding-right: 0;
    }

    .dx .pl-claims__track {
        width: max-content;
        justify-content: flex-start;
        animation: pl-marquee 50s linear infinite;
    }

    .dx .pl-claims__list {
        flex-wrap: nowrap;
        padding-right: 32px;
    }

    .dx .pl-claims__list[aria-hidden="true"] {
        display: flex;
    }
}

/* --- Photo circles (three promises; Cleanse, Balance, Build) -------------- */

.dx-circles {
    display: flex;
    gap: 20px;
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
}

.dx-circles::-webkit-scrollbar {
    display: none;
}

.dx-circle {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    scroll-snap-align: center;
}

.dx-circle img {
    width: 264px;
    height: 264px;
    margin-bottom: 8px;
    border-radius: 50%;
}

.dx-circle__title {
    font-family: var(--dx-display);
    font-weight: 300;
    font-style: italic;
    font-size: 50px;
    line-height: 46px;
}

.dx-circle__title--bold {
    font-weight: 600;
    font-size: 45px;
    line-height: 44px;
}

.dx-circle__text {
    max-width: 250px;
    font-size: 18px;
    line-height: 24px;
}

.dx-promise .pl-carousel-nav,
.dx-foundation .pl-carousel-nav {
    padding-top: 24px;
}

.dx-promise .dx-lead,
.dx-foundation .dx-lead {
    margin-top: 32px;
}

@media (min-width: 1024px) {
    .dx-circles {
        justify-content: center;
        gap: 32px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .dx-circle {
        flex: 0 0 297px;
        gap: 0;
    }

    .dx-circle img {
        margin-bottom: 16px;
    }

    .dx-circle__title--bold {
        font-size: 50px;
        line-height: 45px;
    }

    .dx-circle__text {
        margin-top: 16px;
        font-size: 20px;
        line-height: 26px;
    }

    .dx-foundation .dx-circles {
        gap: 68px;
    }

    .dx-foundation .dx-circle {
        flex-basis: 310px;
    }
}

/* --- Foundation of Whole Health --------------------------------------------- */

.dx-foundation {
    text-align: center;
}

.dx-foundation__title {
    font-family: var(--pl-mode);
    font-weight: 400;
    font-size: 40px;
    line-height: 45px;
}

.dx-foundation__title em {
    font-family: var(--pl-serif);
    font-weight: 300;
    font-style: italic;
}

.dx-foundation__eyebrow {
    max-width: 330px;
    margin: 32px auto;
}

@media (min-width: 1024px) {
    .dx-foundation__title {
        font-size: 50px;
        line-height: 81px;
    }

    .dx-foundation__eyebrow {
        max-width: 440px;
        margin: 24px auto;
    }

    .dx-foundation .dx-lead {
        max-width: 1044px;
    }
}

/* --- The collection ---------------------------------------------------------- */

.dx-collection {
    padding-left: 0;
    padding-right: 0;
}

.dx-collection__head {
    gap: 16px;
    padding: 0 20px;
}

.dx-collection__head .pl-eyebrow {
    max-width: 282px;
}

.dx-collection__title {
    font-family: var(--pl-sans);
    font-weight: 500;
    font-size: 40px;
    line-height: 45px;
}

.dx-tabs {
    display: flex;
    gap: 0;
    margin-top: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dx-tabs[hidden] {
    display: none;
}

.dx-tabs::-webkit-scrollbar {
    display: none;
}

.dx-tabs__tab {
    flex: 0 0 auto;
    min-width: 140px;
    min-height: 0;
    margin: 0;
    padding: 15px 16px 12px;
    border: 0;
    border-bottom: 2px solid var(--pl-beige);
    background: none;
    color: var(--pl-teal);
    font-family: var(--pl-sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.dx-tabs__tab[aria-selected="true"] {
    border-bottom-color: var(--pl-teal);
    font-weight: 600;
}

.dx-tabs__tab:focus-visible {
    outline: 2px solid var(--pl-teal);
    outline-offset: -2px;
}

.dx-collection__panel {
    margin-top: 16px;
}

.dx-collection__panel[hidden] {
    display: none;
}

.dx-collection__panel-label {
    padding: 16px 20px 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.dx-collection__grid {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
}

.dx-collection__grid::-webkit-scrollbar {
    display: none;
}

.dx-product {
    flex: 0 0 min(297px, 82%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-snap-align: start;
}

.dx-product__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.dx-product__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
}

.dx-product__qty {
    padding: 0 8px;
    border-radius: 100px;
    background: var(--pl-beige);
    color: var(--pl-gold);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.dx-product__text {
    font-size: 16px;
    line-height: 25px;
}

@media (min-width: 1024px) {
    .dx-collection__head {
        padding: 0 24px;
    }

    .dx-collection__head .pl-eyebrow {
        max-width: none;
    }

    .dx-collection__title {
        font-size: 50px;
        line-height: 50px;
    }

    .dx-tabs {
        justify-content: center;
        gap: 32px;
        margin-top: 32px;
        overflow: visible;
    }

    .dx-tabs__tab {
        padding: 0 0 13px;
        border-bottom-color: transparent;
    }

    .dx-collection__panel {
        margin-top: 32px;
    }

    .dx-collection__panel-label {
        max-width: 1240px;
        margin: 0 auto;
        padding: 16px 0 0;
    }

    /* Two columns of thumbnails, filled down the left column first. */
    .dx-collection__grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(var(--dx-rows, 3), auto);
        gap: 30px;
        max-width: 1440px;
        margin: 0 auto;
        padding: 2px 100px;
        overflow: visible;
    }

    .dx-product {
        flex-direction: row;
        align-items: flex-start;
        min-height: 119px;
        padding: 3px 0;
    }

    .dx-product__img {
        flex: 0 0 113px;
        width: 113px;
        height: 113px;
    }

    .dx-product__copy {
        max-width: 453px;
    }

    .dx-product__name {
        line-height: 25px;
    }

    .dx-product__text {
        margin-top: 5px;
        line-height: 20px;
    }

    .dx-collection .pl-carousel-nav {
        display: none;
    }
}

/* --- The 28-day plan --------------------------------------------------------- */

.dx-plan {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dx-plan__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dx-plan__body {
    font-size: 16px;
    line-height: 20px;
}

.dx-plan__body strong {
    font-weight: 700;
}

.dx-plan__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dx-plan__item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.dx-plan__item-text {
    padding-left: 24px;
    font-size: 16px;
    line-height: 25px;
}

@media (min-width: 1024px) {
    .dx-plan {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
    }

    .dx-plan__intro {
        flex: 0 1 554px;
    }

    .dx-plan__body {
        max-width: 436px;
        font-size: 20px;
        line-height: 30px;
    }

    .dx-plan__list {
        flex: 0 1 604px;
        padding: 30px 25px;
    }

    .dx-plan__item-text {
        max-width: 419px;
    }
}

/* --- Your Reset, Made Simple -------------------------------------------------- */

.dx-reset {
    background: var(--pl-teal);
    color: var(--pl-cream);
}

.dx-reset__media img {
    width: 100%;
    height: auto;
    max-height: 460px;
    aspect-ratio: 390 / 230;
    object-fit: cover;
}

.dx-reset__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 55px max(20px, calc((100% - 640px) / 2));
}

.dx-reset__title {
    font-family: var(--pl-sans);
    font-weight: 500;
    font-size: 40px;
    line-height: 45px;
}

.dx-reset__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.dx-reset__steps dt {
    font-weight: 700;
    font-size: 16px;
    line-height: 25px;
}

.dx-reset__steps dd {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
}

.dx-reset__close {
    font-weight: 700;
    font-size: 16px;
    line-height: 25px;
}

.dx-reset__note {
    font-size: 14px;
    line-height: 15px;
}

@media (min-width: 1024px) {
    .dx-reset {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 100px 24px;
    }

    .dx-reset__media {
        flex: 0 1 611px;
    }

    .dx-reset__media img {
        aspect-ratio: 611 / 360;
        max-height: none;
    }

    .dx-reset__copy {
        flex: 0 1 617px;
        gap: 25px;
        padding: 0;
    }

    .dx-reset__title {
        font-size: 50px;
        line-height: 50px;
    }

    .dx-reset__steps {
        gap: 25px;
    }

    .dx-reset__steps dt,
    .dx-reset__steps dd,
    .dx-reset__close {
        font-size: 20px;
        line-height: 30px;
    }
}

/* --- A Foundation You Can Feel --------------------------------------------------- */

.dx-feel__head {
    gap: 32px;
    padding: 0 20px;
}

.dx-feel__title {
    max-width: 280px;
    font-family: var(--pl-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 40px;
    line-height: 45px;
}

.dx-feel__body {
    max-width: 722px;
    font-size: 16px;
    line-height: 20px;
}

.dx-feel__track {
    margin-top: 32px;
}

.dx-feel .pl-card {
    flex-basis: min(345px, 88%);
}

.dx-feel__card-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    text-align: center;
}

.dx-feel__when {
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dx-feel .dx-lead {
    margin-top: 32px;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .dx-feel__head {
        gap: 16px;
        padding: 0;
    }

    .dx-feel__title {
        max-width: none;
        font-size: 50px;
        line-height: 50px;
    }

    .dx-feel__body {
        font-size: 20px;
        line-height: 30px;
    }

    .dx-feel .pl-benefits__inner {
        max-width: 1240px;
    }

    .dx-feel .pl-card {
        flex: 1 1 0;
    }

    .dx-feel .dx-lead {
        padding: 0;
    }
}

/* --- Wellness with Purpose (the shared teal split) --------------------------- */

.dx-purpose .pl-body + .pl-body {
    margin-top: 0;
}

.dx-purpose__tagline {
    font-size: 24px;
    line-height: 30px;
}

.dx-purpose__tagline em {
    font-family: var(--pl-serif);
    font-weight: 300;
    font-style: italic;
}

@media (min-width: 1024px) {
    .dx-purpose {
        min-height: 683px;
    }

    .dx-purpose .pl-split__copy {
        gap: 24px;
    }

    .dx-purpose .pl-body {
        font-size: 20px;
        line-height: 30px;
    }

    .dx-purpose__tagline {
        font-size: 32px;
        line-height: 40px;
    }
}

/* --- FAQs in two columns --------------------------------------------------- */

@media (min-width: 1024px) {
    .dx-faq .pl-faq__inner {
        width: auto;
        max-width: 1269px;
    }

    .dx-faq .pl-faq__list {
        column-count: 2;
        column-gap: 32px;
    }

    .dx-faq .pl-faq__item {
        break-inside: avoid;
    }
}

/* --- Closing offer ------------------------------------------------------------ */

.dx-closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 55px 20px;
    background: var(--pl-white);
    text-align: center;
}

.dx-closing__eyebrow {
    max-width: 300px;
    line-height: 22px;
}

/* The pack photo carries white space under the products; the band shows the
   top 215px of it, as the design does. */
.dx-closing__media {
    width: 280px;
    height: 222px;
    overflow: hidden;
}

.dx-closing__media img {
    width: 280px;
    height: 280px;
}

.dx-closing__title {
    font-family: var(--pl-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 38px;
    line-height: 45px;
}

.dx-closing__body {
    max-width: 454px;
    font-size: 16px;
    line-height: 20px;
}

.dx-closing__terms {
    max-width: 590px;
    font-size: 10px;
    line-height: 16px;
}

@media (min-width: 1024px) {
    .dx-closing {
        padding: 0 24px 100px;
    }

    .dx-closing__eyebrow {
        max-width: none;
    }

    .dx-closing__media {
        height: 215px;
    }

    .dx-closing__title {
        display: flex;
        flex-direction: column;
        gap: 16px;
        font-size: 50px;
        line-height: 40px;
    }

    .dx-closing__body {
        font-size: 20px;
        line-height: 30px;
    }
}
