@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --orange: #E36F31;
    --dark: #471111;
    --light: #FFFEFA;
    --white: #FFFDF6;
    --cream: #FAF4E4;
    --accent: "Cormorant Garamond", serif;
    --font: "Nunito Sans";
}

body {
    margin: 0;
    color: var(--dark);
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-family: var(--accent);
}

p {
    margin: 0;
}

button {
    background-color: var(--orange);
    border: none;
    border-radius: 8px;
    width: 150px;
    height: 30px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

    a {
        text-decoration: none;
        color: #121212;
    }
}

a {
    color: var(--dark);
}

/* HEADER */
header {
    background-color: var(--dark);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 25px 15px;

    img {
        width: 40px;
        height: 40px;
    }

    button {
        width: 55px;
        font-size: 12px;
    }
}

.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--cream);
    color: var(--dark);
    transition: left .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.menu.open {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    width: auto;
    height: auto;
    padding: 8px;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 360px;
}

.menu li {
    padding: 20px 0;
    border-bottom: 1px solid var(--dark);
    text-align: center;
}

.menu li a {
    color: var(--dark);
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .menu {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        overflow: visible;
        background: transparent;
        color: var(--white);
        transition: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        padding: 0;
        box-sizing: border-box;
        z-index: auto;
    }

    .menu.open {
        right: auto;
    }

    .close-btn {
        display: none;
    }

    .menu ul {
        display: flex;
        gap: 24px;
        max-width: none;
        width: auto;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .menu li {
        padding: 0;
        border-bottom: none;
        text-align: left;
    }

    .menu li a {
        color: var(--white);
        text-decoration: none;
        font-weight: 700;
        letter-spacing: .12em;
        padding: 8px 6px;
    }

    .menu li a:hover {
        color: var(--green);
    }
}

/* MAIN */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #FFFEFA 0%, #FAF4E4 90.54%, #471111 100%);
    font-family: var(--accent);
    text-align: center;
}

main>*:not(.contact) {
    padding: 20px;
}

/* hero */
.hero {
    font-family: var(--font);
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; */

    span {
        font-weight: 700;
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-desktop,
.btn-desktop {
    display: none;
}

.brevia {
    width: 255.839px;
    height: 78.194px;
    margin-bottom: 20px;
}

.mac2 {
    width: 206.972px;
    height: 210.774px;
    margin-bottom: 40px;
}

.box1,
.box2 {
    position: relative;
    width: 280px;
    margin: 28px 0;
}

.box2 {
    margin-left: 70px;
    margin-bottom: 80px;
}

.box1 img,
.box2 img {
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(71, 17, 17, 0.18);
}

.ballon-right {
    position: absolute;
    bottom: -20px;
    right: -70px;
    padding: 14px;
    max-width: 180px;
    color: var(--light);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--dark);
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(71, 17, 17, 0.25);
}

.ballon-right::before {
    content: "";
    position: absolute;
    bottom: 28px;
    left: -20px;
    border: 10px solid transparent;
    border-right: 12px solid var(--dark);
}

.ballon-left {
    position: absolute;
    bottom: -20px;
    left: -70px;
    padding: 14px;
    max-width: 180px;
    color: var(--light);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--orange);
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(71, 17, 17, 0.25);
}

.ballon-left::before {
    content: "";
    position: absolute;
    bottom: 28px;
    right: -20px;
    border: 10px solid transparent;
    border-left: 12px solid var(--orange);
}

.ballon-right p,
.ballon-left p {
    margin: 0;
    padding: 0;
}

/* feature */
.feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    h1 {
        margin: 0;
    }
}

.toggleContainer {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 38.623px;
    width: 250px;
    height: 30.551px;
    padding: 2.5px 10px;
    border-radius: 30px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.25) inset;
    background: var(--cream);
    cursor: pointer;
}

.toggleContainer::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    border-radius: 30px;
    background: var(--dark);

    transition: all 0.3s;
}

.toggleCheckbox:checked+.toggleContainer::before {
    left: 50%;
}

.toggleContainer div {
    padding: 6px;
    text-align: center;
    z-index: 1;
}

.toggleCheckbox {
    display: none;
}

.toggleCheckbox:checked+.toggleContainer div:first-child {
    color: var(--dark);
    transition: color 0.3s;
}

.toggleCheckbox:checked+.toggleContainer div:last-child {
    color: var(--light);
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:first-child {
    color: var(--light);
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:last-child {
    color: var(--dark);
    transition: color 0.3s;
}

.feature-img-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}


.feature-img:first-child {
    position: relative;
}

.feature-img.active {
    opacity: 1;
    pointer-events: auto;
}


.feature-img.img-desktop {
    display: none;
}

/* price */
.price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card {
    border-radius: 16px;
    background-color: var(--light);
    box-shadow: 4px 4px 4px 0 rgba(71, 17, 17, 0.50);
    width: 290px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;

    .plan {
        border-radius: 16px 16px 0 0;
        background-color: var(--dark);
        color: var(--white);
        display: flex;
        height: 50px;
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

       p:not(.price) {
        font-size: 16px;
    }

    p:last-child {
        padding-bottom: 25px;
    }

    .price {
        margin-top: auto;
        font-weight: bold;
    }
}

/* howTo */
.howTo h1 {
    margin-top: 60px;
}

.flex-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;

    .github {
        background-color: var(--cream);
        border: 1px solid #471111;
    }
}

/* team */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .member {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
} */

/* .member>* {
    flex: 0 1 calc(50% - 10px);
}

.member>*:last-child:nth-child(odd) {
    flex: 0 1 calc(50% - 10px);
    margin-inline: auto;
} */

.group1,
.group2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.group2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.group2>*:last-child {
    flex: 0 1 calc(33.333% - 14px);
}


.prof {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    img {
        width: 100px;
        height: 150px;
        margin-bottom: 10px;
    }

    p,
    div {
        font-size: 13px;
    }
}

.naoyu img,
.mekhala img {
    padding-top: 15px;
    height: 135px;
}


/* contact */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    img {
        max-width: 320px;
        width: auto;
        height: auto;
    }

    p {
        font-family: var(--accent);
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 30px;
        line-height: .9;
    }
}

.form {
    width: 100%;
    max-width: 350px;


    form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    button {
        max-width: 100%;
        width: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        margin-bottom: 80px;
    }
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    text-align-last: left;
    color: var(--dark);
}

.form input,
.form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #121212;
    background: var(--light);
    color: rgba(18, 18, 18, 0.50);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form textarea {
    height: 120px;
    resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(18, 18, 18, 0.50);
}

.form input:focus,
.form textarea:focus {
    border-color: var(--orange);
}

/* FOOTER */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 102px;
    background-color: var(--dark);
    color: var(--light);
}


@media screen and (min-width: 768px) {

    /* .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    } */
    header {
        display: flex;
        align-items: center;

        nav.menu {
            margin-right: auto;
            margin-left: 40px;
        }

        .logo-desktop {
            display: unset;
            width: 117px;
            height: 37px;
        }

        ul {
            font-size: 20px;
        }

        button {
            margin-top: 0;
            width: 100px;
            height: 32px;
        }
    }

    h1 {
        font-size: 64px;
    }

    .hero-inner {
        overflow: visible;
        position: relative;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(255, 254, 250, 0.70) 0%, rgba(250, 244, 228, 0.50) 65.38%, rgba(71, 17, 17, 0.50) 100%);
        width: 1200px;
        height: 500px;

        padding: 30px;
        margin: 30px 0;
    }

    .hero-text {
        align-items: flex-start;
        text-align: left;
        font-size: 24px;
    }

    .brevia {
        width: 500px;
        height: 160px;
    }

    .mac2 {
        margin-bottom: 0;
        position: absolute;
        top: -30px;
        right: -120px;
        width: 700px;
        height: auto;
    }

    button,
    .btn-desktop {
        display: flex;
        align-self: center;
        width: 300px;
        height: 70px;
        font-size: 24px;
        margin-top: 50px;
    }

    .logo-mobile,
    .btn-mobile {
        display: none;
    }

    .box1,
    .box2 {
        width: 400px;
    }

    .box2 {
        margin-left: 450px;
        margin-bottom: 80px;
    }

    .box1 img,
    .box2 img {
        width: 200%;
        height: 200%;
        max-width: none;
    }

    .ballon-right {
        right: -850px;
        bottom: 330px;
        font-size: 20px;
        max-width: 390px;
    }

    .ballon-left {
        left: -450px;
        bottom: 330px;
        font-size: 20px;
        max-width: 390px;
    }

    .toggleContainer {
        width: 500px;
        height: 60px;
        font-size: 24px;
    }

    .feature-img-wrap {
        max-width: 1200px;
        width: 100%;
        height: 800px;
    }

    .feature-img:not(.img-desktop) {
        display: none !important;
    }

    .feature-img.img-desktop {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .feature-img.img-desktop:first-of-type {
        position: relative;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        gap: 50px;
    }

    .card {
        width: 450px;
        font-size: 30px;
    }

    p:not(.price) {
        font-size: 24px;
    }

    .howTo p {
        font-size: 24px;
    }

    .flex-btn {
        flex-direction: row;
    }

    .team>h1 {
        order: 1;
    }

    .group1 {
        order: 2;
    }

    .team>img {
        order: 3;
        margin: 30px 0;
    }

    .group2 {
        order: 4;
        flex-wrap: nowrap;
    }

    .group1,
    .group2 {
        gap: 100px;
    }

    .group1 img,
    .group2 img {
        width: 150px;
        height: 225px;
    }

    .group2>*:last-child {
        flex: unset;
    }

    .naoyu img,
    .mekhala img {
        padding-top: 20px;
        height: 205px;
    }

    .contact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        h1 {
            grid-column: 1 / -1;
        }
    }

    .contact-text {
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
            max-width: 420px;
            height: 420px;
        }

        p {
            color: var(--light);
            font-size: 32px;
        }
    }

    .form {
        max-width: 540px;
        width: 100%;
        justify-self: stretch;
        align-self: stretch;

        form {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 20px;
        }

        button {
            width: 300px;
        }
    }
}