/* ============================================================
   UNILEVER NUTRITION - FINAL LANDER
   ============================================================ */

:root {

    --cream-1: #fffaf1;
    --cream-2: #f6efe0;
    --white: #ffffff;

    --green-900: #153427;
    --green-800: #1c4331;
    --green-700: #2d5a43;
    --green-600: #48735b;

    --gold-500: #ebb54f;
    --gold-400: #f2c96f;
    --mustard: #c38c22;

    --red-500: #cd5e43;

    --ink: #213228;
    --muted: #66756b;
    --border: #e2ddcf;

    --error: #bb4a3d;
    --success: #2e6b43;

    --soft-shadow:
        0 28px 65px -28px rgba(38, 58, 46, 0.30);

}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    color: var(--ink);

    background:
        radial-gradient(
            circle at top left,
            #fffdf6,
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fffdf7 0%,
            #f8f2e6 100%
        );

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing:
        antialiased;

}


button,
input,
select {
    font: inherit;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {

    min-height: 64px;

    padding:
        14px
        24px;

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    color:
        var(--green-900);

    background:
        rgba(255,255,255,0.82);

    border-bottom:
        1px solid rgba(21,52,39,0.08);

    backdrop-filter:
        blur(8px);

}


.publisher {

    font-size:
        0.82rem;

    font-weight:
        800;

    letter-spacing:
        0.08em;

}


.publisher span {
    color:
        var(--mustard);
}


.ad-label {

    padding:
        5px
        9px;

    border:
        1px solid rgba(21,52,39,0.12);

    border-radius:
        999px;

    color:
        rgba(21,52,39,0.52);

    font-size:
        0.64rem;

    font-weight:
        700;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

}


/* ============================================================
   DESKTOP PAGE GRID
   ============================================================ */

.campaign {

    width:
        min(
            1380px,
            calc(100% - 32px)
        );

    margin:
        24px auto;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.14fr)
        minmax(410px, 0.86fr);

    gap:
        24px;

    align-items:
        start;

}


/* ============================================================
   CREATIVE COLUMN
   ============================================================ */

.creative {

    padding:
        38px;

    display:
        block;

    border:
        1px solid rgba(21,52,39,0.08);

    border-radius:
        28px;

    background:
        radial-gradient(
            circle at top right,
            rgba(235,181,79,0.22),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #f7f1e5 100%
        );

    box-shadow:
        var(--soft-shadow);

}


.creative__content {

    width:
        100%;

    max-width:
        none;

}


.eyebrow {

    margin-bottom:
        14px;

    color:
        var(--green-600);

    font-size:
        0.75rem;

    font-weight:
        800;

    letter-spacing:
        0.18em;

    text-transform:
        uppercase;

}


.creative h1 {

    width:
        100%;

    margin-bottom:
        0;

    color:
        var(--green-900);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.7rem
        );

    line-height:
        0.98;

    letter-spacing:
        -0.03em;

}


.creative h1 em {

    display:
        block;

    color:
        #aa6b16;

    font-style:
        italic;

}


/* ============================================================
   MAIN HERO PHOTO
   ============================================================ */

.primary-hero-photo {

    width:
        100%;

    height:
        330px;

    margin:
        18px 0 20px;

    overflow:
        hidden;

    border-radius:
        22px;

    background:
        var(--white);

    box-shadow:
        0 22px 44px -24px rgba(0,0,0,0.32);

}


.primary-hero-photo img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    object-position:
        center center;

}


.lead {

    width:
        100%;

    margin-bottom:
        20px;

    color:
        var(--muted);

    font-size:
        clamp(
            1rem,
            1.9vw,
            1.12rem
        );

    line-height:
        1.7;

}


.benefit-list {

    width:
        100%;

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        12px;

}


.benefit {

    width:
        100%;

    padding:
        16px;

    border:
        1px solid #ebe4d5;

    border-radius:
        16px;

    background:
        rgba(255,255,255,0.82);

}


.benefit strong {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--green-900);

    font-size:
        0.94rem;

}


.benefit p {

    color:
        var(--muted);

    font-size:
        0.84rem;

    line-height:
        1.55;

}


/* ============================================================
   FORM COLUMN
   ============================================================ */

.signup {

    padding:
        36px 34px 40px;

    display:
        flex;

    flex-direction:
        column;

    border:
        1px solid rgba(21,52,39,0.08);

    border-radius:
        28px;

    background:
        rgba(255,255,255,0.95);

    box-shadow:
        var(--soft-shadow);

}


.signup__head {

    width:
        min(
            100%,
            560px
        );

    margin:
        0 auto 18px;

}


.signup__head span {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--green-600);

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        0.18em;

    text-transform:
        uppercase;

}


.signup__head strong {

    display:
        block;

    color:
        var(--green-900);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size:
        clamp(
            1.7rem,
            4vw,
            2.35rem
        );

    line-height:
        1.12;

}


#lead-form {

    width:
        min(
            100%,
            560px
        );

    margin:
        0 auto;

}


/* ============================================================
   PROGRESS
   ============================================================ */

.progress {

    overflow:
        hidden;

    width:
        100%;

    height:
        6px;

    border-radius:
        999px;

    background:
        #eee8da;

}


#progress-bar {

    width:
        33.333%;

    height:
        100%;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            #557760 0%,
            #e0b45d 100%
        );

    transition:
        width 0.35s ease;

}


.progress-labels {

    margin:
        11px 0 28px;

    display:
        flex;

    justify-content:
        space-between;

    gap:
        8px;

}


.progress-labels span {

    color:
        #9ea798;

    font-size:
        0.69rem;

    font-weight:
        800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;

}


.progress-labels .is-active {
    color:
        var(--green-700);
}


.progress-labels .is-done {
    color:
        var(--success);
}


/* ============================================================
   STEPS
   ============================================================ */

.step {

    display:
        none;

    padding:
        0;

    border:
        0;

    animation:
        stepIn 0.25s ease;

}


.step.is-active {
    display:
        block;
}


@keyframes stepIn {

    from {
        opacity:
            0;

        transform:
            translateY(7px);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0);
    }

}


.step legend {

    margin-bottom:
        6px;

    color:
        var(--green-900);

    font-size:
        clamp(
            1.16rem,
            2.4vw,
            1.38rem
        );

    font-weight:
        800;

    line-height:
        1.3;

}


.instruction {

    margin-bottom:
        18px;

    color:
        var(--muted);

    font-size:
        0.87rem;

}


/* ============================================================
   CUSTOM QUESTION
   ============================================================ */

.choices {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        11px;

}


.choices label {

    position:
        relative;

    display:
        block;

    cursor:
        pointer;

}


.choices input {

    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;

}


.choices span {

    min-height:
        58px;

    padding:
        12px
        13px
        12px
        42px;

    display:
        flex;

    align-items:
        center;

    border:
        1.5px solid var(--border);

    border-radius:
        12px;

    color:
        var(--ink);

    background:
        #fffcf7;

    font-size:
        0.82rem;

    font-weight:
        600;

    line-height:
        1.32;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;

}


.choices span::before {

    content:
        '';

    position:
        absolute;

    left:
        13px;

    top:
        50%;

    width:
        17px;

    height:
        17px;

    transform:
        translateY(-50%);

    border:
        2px solid #bcb5a8;

    border-radius:
        5px;

    background:
        var(--white);

}


.choices input:checked + span {

    border-color:
        #66846f;

    background:
        #f4f9f3;

    transform:
        translateY(-1px);

}


.choices input:checked + span::before {

    border-color:
        var(--green-700);

    background:
        var(--green-700);

}


.choices input:checked + span::after {

    content:
        '✓';

    position:
        absolute;

    left:
        17px;

    top:
        50%;

    transform:
        translateY(-54%);

    color:
        var(--white);

    font-size:
        0.72rem;

    font-weight:
        800;

}


.group-error {

    display:
        block;

    min-height:
        18px;

    margin-top:
        9px;

    color:
        var(--error);

    font-size:
        0.78rem;

}


/* ============================================================
   STANDARD FIELDS
   ============================================================ */

.field {

    margin-bottom:
        17px;

}


.field-grid {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        14px;

}


.field label {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--green-900);

    font-size:
        0.8rem;

    font-weight:
        700;

}


.field label span {
    color:
        var(--red-500);
}


.field input,
.field select {

    width:
        100%;

    min-height:
        46px;

    padding:
        10px 12px;

    border:
        1.5px solid #ddd6c8;

    border-radius:
        10px;

    outline:
        none;

    color:
        var(--ink);

    background:
        #fffdf9;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.field input:focus,
.field select:focus {

    border-color:
        #6f917a;

    background:
        var(--white);

    box-shadow:
        0 0 0 3px rgba(111,145,122,0.14);

}


.field input.invalid,
.field select.invalid {

    border-color:
        var(--error);

    background:
        #fff6f4;

}


.field small {

    display:
        block;

    min-height:
        17px;

    margin-top:
        4px;

    color:
        var(--error);

    font-size:
        0.75rem;

}


/* ============================================================
   BUTTONS
   ============================================================ */

.actions {

    margin-top:
        22px;

    display:
        flex;

    gap:
        10px;

}


.actions--single .btn {
    width:
        100%;
}


.btn {

    min-height:
        49px;

    padding:
        12px 22px;

    flex:
        1;

    border:
        0;

    border-radius:
        10px;

    cursor:
        pointer;

    color:
        var(--white);

    background:
        var(--green-700);

    font-size:
        0.82rem;

    font-weight:
        800;

    letter-spacing:
        0.05em;

    text-transform:
        uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.btn:hover {

    background:
        var(--green-600);

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 24px -16px rgba(0,0,0,0.5);

}


.btn--back {

    color:
        var(--green-800);

    background:
        #efede7;

}


.btn--back:hover {

    background:
        #e7e1d7;

}


.btn--submit {

    color:
        #2d2209;

    background:
        linear-gradient(
            180deg,
            var(--gold-400) 0%,
            var(--gold-500) 100%
        );

}


.btn--submit:hover {

    background:
        linear-gradient(
            180deg,
            #f4cf7f 0%,
            #efb94f 100%
        );

}


.btn:disabled {

    opacity:
        0.58;

    cursor:
        not-allowed;

    transform:
        none;

}


/* ============================================================
   DESKTOP LEGAL
   ============================================================ */

.legal {

    margin-top:
        24px;

    padding-top:
        20px;

    border-top:
        1px solid #ebe5d9;

}


.legal p {

    margin-bottom:
        11px;

    color:
        var(--muted);

    font-size:
        0.72rem;

    line-height:
        1.55;

}


.legal a {

    color:
        var(--green-700);

    font-weight:
        700;

}


/* ============================================================
   MOBILE COMPLIANCE
   ============================================================ */

.mobile-compliance {
    display:
        none;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {

    padding:
        26px 24px 34px;

    text-align:
        center;

    color:
        rgba(21,52,39,0.72);

}


.footer p {

    margin:
        0 auto;

    max-width:
        820px;

    font-size:
        0.75rem;

}


/* ============================================================
   SUBMIT OVERLAY
   ============================================================ */

.submit-overlay {

    position:
        fixed;

    inset:
        0;

    z-index:
        9999;

    padding:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    visibility:
        hidden;

    opacity:
        0;

    background:
        rgba(32,46,38,0.64);

    backdrop-filter:
        blur(5px);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;

}


.submit-overlay.is-visible {

    visibility:
        visible;

    opacity:
        1;

}


.submit-overlay__box {

    width:
        min(
            100%,
            360px
        );

    padding:
        34px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    border-radius:
        18px;

    text-align:
        center;

    background:
        var(--white);

    box-shadow:
        var(--soft-shadow);

}


.spinner {

    width:
        48px;

    height:
        48px;

    margin-bottom:
        18px;

    border:
        4px solid #ece7dd;

    border-top-color:
        var(--green-700);

    border-radius:
        50%;

    animation:
        spin 0.8s linear infinite;

}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


.submit-overlay strong {

    margin-bottom:
        4px;

    color:
        var(--green-900);

    font-size:
        1.02rem;

}


.submit-overlay small {

    color:
        var(--muted);

    font-size:
        0.78rem;

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1160px) {

    .campaign {

        grid-template-columns:
            1fr;

    }


    .creative {

        padding:
            34px 28px;

    }


    .signup {

        padding:
            32px 24px 38px;

    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 740px) {

    .topbar {

        padding:
            12px 15px;

    }


    .publisher {

        font-size:
            0.70rem;

    }


    .ad-label {

        font-size:
            0.55rem;

    }


    .campaign {

        width:
            calc(100% - 20px);

        margin:
            14px auto 18px;

        grid-template-columns:
            1fr;

        gap:
            10px;

    }


    .creative {

        padding:
            26px 18px 22px;

        border-radius:
            22px;

    }


    .creative h1 {

        font-size:
            clamp(
                2.4rem,
                12vw,
                3.6rem
            );

    }


    /*
     * Mobile keeps the same approved photo but crops it much shorter.
     */

    .primary-hero-photo {

        height:
            190px;

        margin:
            14px 0 16px;

        border-radius:
            16px;

    }


    .primary-hero-photo img {

        width:
            100%;

        height:
            190px;

        object-fit:
            cover;

        object-position:
            center center;

    }


    /*
     * Mobile should flow:
     * headline -> photo -> campaign paragraph -> form.
     */

    .lead {

        margin-bottom:
            0;

    }


    /*
     * Hide the extra desktop supporting cards on mobile.
     */

    .benefit-list {
        display:
            none;
    }


    .signup {

        padding:
            24px 15px 34px;

        border-radius:
            22px;

    }


    .choices {

        grid-template-columns:
            1fr;

    }


    .field-grid {

        grid-template-columns:
            1fr;

        gap:
            0;

    }


    .actions {

        flex-direction:
            column-reverse;

    }


    .progress-labels span {

        font-size:
            0.59rem;

    }


    /*
     * On mobile, move Privacy / Policy links below the form and
     * place the TCPA disclosure immediately underneath them.
     */

    .legal {
        display:
            none;
    }


    .mobile-compliance {

        display:
            block;

        width:
            min(
                100%,
                560px
            );

        margin:
            22px auto 0;

        padding-top:
            20px;

        border-top:
            1px solid #ebe5d9;

    }


    .mobile-compliance__links {

        margin-bottom:
            14px;

        display:
            flex;

        justify-content:
            center;

        flex-wrap:
            wrap;

        gap:
            10px 18px;

    }


    .mobile-compliance__links a {

        color:
            var(--green-700);

        font-size:
            0.76rem;

        font-weight:
            700;

        text-decoration:
            underline;

        text-underline-offset:
            2px;

    }


    .mobile-compliance__tcpa {

        color:
            var(--muted);

        font-size:
            0.70rem;

        line-height:
            1.55;

        text-align:
            left;

    }

}
