:root {
    --ff: 'Nunito Sans';
    --bg-color: #FFF7DF;
    --f-color: #2F211C;
    --accent-color: #F7BD35;
    --input-color: #8B8B8B;

}

*, *::before, *::after {
    margin: 0;
    box-sizing: border-box;
    font-family: var(--ff);
}

body {
  color: var(--f-color);
  background-size: cover;
  background-color: var(--bg-color);
}

.main{
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.25fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.content {
    position: relative;
    display: flex;
    max-width: 920px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.main::after {
    content: '';
    background-image: url(../images/Mineral_Lotion_Pediatrics_100.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 300px;
    max-width: 100%;
    display: block;
}

.logo-container {
    margin-top: 41px;
    text-align: center;
    grid-column-start: 1;
    grid-column-end: -1;
}

.logo {
    margin: 0 auto;
    width: 208px;
    height: 54px;
}

.headline {
    font-size: 65px;
    font-style: normal;
    font-weight: 700;
    line-height: 90px;
    text-align: center;
}

.headline-accent-25 {
    color: var(--accent-color);
    font-size: 85px;
    font-weight: 800;
}

.headline-accent-de {
   font-size: 52px; 
}

.subline {
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 60px;
}

.subline-span {
    font-size: 45px;
    font-weight: 800;
}

.benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    gap: 10px;
    padding-left: 0;
}

.icon {
    width: 30px;
    height: 30px;
}

.benefits li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.form input {
    border-radius: 8px;
    border: 1px solid var(--f-color);
    color: var(--input-color);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    background: #FFF;
    height: 56px;
    width: 100%;
    padding: 16px;
}

.form button {
    border: none;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    border-radius: 999px;
    background: var(--accent-color);
    padding: 16px;
    cursor: pointer;
}

.privacy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--f-color);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.privacy a {
    font-weight: 700;
    color: var(--f-color);
}

.popup-overlay {
    position: fixed;
    width: 100%;
    height: 100vh;
    inset: 0;
    background: rgba(47, 33, 28, 0.80);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.25s ease;
    padding: 30px 0;
    background-color: var(--bg-color);
}

.popup-overlay.visible .popup {
    transform: translateY(0) scale(1);
    display: grid;
    grid-template-columns: 1fr 0.3fr;
}

.popup-top {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 220px;
    order: 2;
}

.btn-close {
    position: absolute;
    top: -1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-product {
    object-fit: contain;
    height: 320px;
    transform: rotate(10deg);
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}

.popup-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    padding: 20px 28px;

}

.popup-discount {
    color: var(--accent-color);
    text-align: center;
    font-size: 125px;
    font-style: normal;
    font-weight: 900;
    line-height: 85px; /* 93.75% */
}

.popup-discount-dto {
    font-weight: 800;
    display: block;
    font-size: 85px;
}

.popup-code {
    color: var(--f-color);
    text-align: center;
    font-size: 35px;
    font-style: normal;
    font-weight: 500;
    line-height: 72px; /* 225% */
    border: 2px dashed var(--f-color);
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.popup-code::after {
    content: '';
    background-image: url( ../images/copy.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 35px;
    height: 35px;
    max-width: 100%;
    display: inline-block;
    cursor: pointer;
}

.btn-usar {
    display: flex;
    height: 50px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border: none;
    border-radius: 999px;
    background-color: var(--accent-color);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    cursor: pointer;
}

.popup-validity {
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 166.667% */
}

@media (max-width: 760px) {
    .content {
        max-width: 100%;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin: 0;
        padding: 10px 25px;
    }

    .main{
        grid-template-columns: 1fr;    
        width: 100%;
    }

    .main::after {
        display: none;
    }

    .logo-container {
        margin-top: 25px;
    }

    .logo {
        width: 150px;
        margin: 0 auto;
    }

    .headline {
        font-size: 28px;
        font-weight: 700;
        line-height: 52px;
    }

    .headline-accent-25 {
        font-size: 50px;
        line-height: 52px;
    }

    .headline-accent-de {
        font-size: 34px;
        line-height: 52px;
    }

    .subline {
        font-size: 32px;
        line-height: 30px;
    }

    .subline-span {
        font-size: 30px;
        line-height: 30px;
    }

    .benefits {
        text-align: left;
        width: 100%;
    }

    .icon {
        width: 25px;
        height: 25px;
    }

    .benefits li {
        font-size: 22px;
        line-height: 28px;
    }

    .form {
        width: 100%;
        gap: 10px
    }

    .form-input {
        font-size: 20px;
        padding: 16px;
    }

    .btn-cta {
        font-size: 0.9rem;
        padding: 1rem;
        border-radius: 50px;
    }

    .privacy {
        font-size: 12px;
        line-height: 20px;
    }

    .popup-overlay.visible .popup{
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .popup-top {
        display: block;
    }

    .popup-top {
        background: var(--accent-color);
        order: 0;
        display: flex;
    }

    .popup-product {
        object-fit: contain;
        height: 130px;
        transform: rotate(0deg);
        filter: none;
    }

    .popup-discount {
        font-size: 48px;
        line-height: 45px;
    }

    .popup-discount-dto {
        display: initial;
        font-size: 48px;
    }

    .popup-code {
        font-size: 32px;
        line-height: 72px;
    }

    .btn-close{
        top: 1rem;
    }
}