@import "base.css";

@media (max-width: 768px) {
    :root {
        --padding-horizontal-base: 16px;
        --line-height: 1.5;
    }
}

a {
    color: var(--text-color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

h1 {
    font-weight: bold;
    font-size: 2rem;
}

h2 {
    font-weight: bold;
    font-size: 1.5rem;
}

h3 {
    font-weight: bold;
    font-size: 1.25rem;
}

.root {
    display: flex;
    flex-direction: column;
}

section {
    padding: var(--padding-section-vertical) var(--padding-horizontal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;

    &.primary {
        background-color: var(--primary-color);
        color: var(--white-color);
        border: 2px solid var(--primary-color);
        transition: opacity 0.2s;
    }

    &.primary:hover {
        opacity: 0.7;
    }

    &.secondary {
        background-color: var(--white-color);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        transition: opacity 0.2s;
    }

    &.secondary:hover {
        opacity: 0.7;
    }

    &.dense {
        padding: 6px 18px;
    }
}

header {
    --spacing: 24px;

    position: fixed;
    top: var(--spacing);
    z-index: 100;
    width: 100%;
    padding: 0 calc(var(--padding-horizontal) - 30px);

    .content {
        padding: 10px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 100px;
        background: var(--white-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .head {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--spacing);
    }

    .logo {
        img {
            height: 24px;
        }
    }

    nav {
        ul {
            display: flex;
            gap: var(--spacing);

            a {
                color: var(--text-color-secondary);
            }
        }
    }

    .actions {
        display: flex;
        gap: var(--spacing);
    }

    @media (max-width: 768px) {
        top: 0;
        padding: 0;
        .content {
            padding: 8px var(--padding-horizontal);
            border-radius: 0;
            justify-content: space-between;
        }

        nav {
            display: none;
        }

        .actions {
            .secondary {
                display: none;
            }
        }
    }
}

.hero {
    background: linear-gradient(
            135deg,
            #ffffff 0%,
            #E9F1FB 100%
    );
    min-height: 100dvh;
    width: 100dvw;

    .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

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

    .description {
        display: flex;
        flex-direction: column;
        gap: 24px;

        h1 {
            font-size: 2rem;
            font-weight: bold;
            margin-bottom: 20px;
        }

        p {
            padding-left: 2rem;
            margin-bottom: 30px;
            line-height: 2;
            color: var(--text-color-secondary);
        }
    }

    .thumbnail {
        flex: 1;
        align-items: center;
        margin-right: calc(-1 * var(--padding-horizontal));

        img {
            object-fit: cover;
            object-position: left;

            max-height: 500px;
            height: 100%;
            width: auto;
        }
    }

    .actions {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    @media (max-width: 768px) {
        .content {
            padding-top: 48px;
            gap: 24px;
        }

        .flex {
            flex-direction: column;

            .description {
                align-items: center;

                p {
                    padding: 0;

                    br {
                        display: none;
                    }
                }
            }

            .thumbnail {
                display: flex;
                margin: 0 auto;
                width: 100%;

                img {
                    object-fit: cover;
                }
            }
        }

        .actions {
            flex-direction: column;
            justify-content: center;
        }
    }
}

.system {
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    h2 {
        text-align: center;
    }

    img {
        width: 700px;
    }

    p {
        text-align: center;
        white-space: none;
        word-break: break-all;
    }
}

.problems {
    background-color: var(--secondary-color);

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    ul {
        display: flex;
        flex-direction: row;
        gap: 20px;

        li {
            flex: 1;
            background-color: var(--white-color);
            padding: 30px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
    }

    @media (max-width: 1024px) {
        ul {
            display: flex;
            flex-direction: column;

            li {
                padding: 30px;

                br {
                    display: none;
                }
            }
        }
    }
}

.features {
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    h2 {
        margin-bottom: 30px;
    }

    .item {
        display: flex;
        align-items: center;
        gap: 30px;

        &.reverse {
            flex-direction: row-reverse;
        }
    }

    .image {
        flex: 1;

        img {
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
    }

    .description {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;

        p {
            color: var(--text-color-secondary);
        }
    }

    @media (max-width: 768px) {
        .item {
            flex-direction: column;

            &.reverse {
                flex-direction: column;
            }
        }

        .image {
            width: 80%;
        }
    }
}

.reasons {
    background-color: var(--secondary-color);

    .content {
        display: flex;
        flex-direction: column;
    }

    h2 {
        margin-bottom: 30px;
        text-align: center;
    }

    .card-list {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .card {
            background-color: var(--white-color);
            max-width: 600px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20px;
            border-radius: 10px;
            padding: 20px;

            img {
                width: 150px;
                height: 150px;

                object-fit: cover;
                border-radius: 10px;
            }

            .right {
                display: flex;
                flex-direction: column;
                gap: 10px;
                line-height: 2;
            }
        }
    }

    @media (max-width: 768px) {
        .card-list {
            .card {
                flex-direction: column;
                text-align: center;

                img {
                    width: 100px;
                    height: auto;
                }

                .right {
                    align-items: center;
                }
            }
        }
    }

}

.pricing {
    h2 {
        margin-bottom: 60px;
    }

    .content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .card {
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;

        padding: 24px;

        border-radius: 8px;
        border: 1px solid var(--border-color);


        .summary {
            color: var(--text-color-secondary);
            font-weight: bold;
            font-size: 1.2rem;

            strong {
                color: var(--primary-color);
                font-size: 1.5rem;
            }
        }

        .description {
            font-size: .75rem;
        }

        hr {
            width: 100%;
            background-color: var(--border-color);
            opacity: .5;
        }

        h4 {
            font-size: .8rem;
            align-self: flex-start;
        }

        ul {
            margin-top: -8px;
            font-size: .8rem;
            align-self: flex-start;

            li::before {
                font-family: monospace;
                content: "✓ ";
                font-size: 1rem;
                color: var(--primary-color);
                margin-right: 8px;
            }

            li.disable {
                color: #ccc;
            }

            li.disable::before {
                content: "ー ";
                color: #ccc;
            }
        }
    }

    @media (max-width: 768px) {
        .content {
            flex-direction: column;
        }
    }
}

.final-cta {
    padding: 120px 0;
    background: linear-gradient(
            135deg,
            #ffffff 0%,
            #E9F1FB 100%
    );


    h3 {
        margin-bottom: 60px;
        text-align: center;
    }

    .final-cta__description {
        margin-bottom: 30px;
        opacity: 0.9;
    }

    .actions {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

footer {
    font-size: 0.8rem;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--secondary-color);

    .links {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;

        a {
            color: var(--text-color-primary);
        }
    }

    @media (max-width: 768px) {
        .links {
            flex-direction: column;
            gap: 1rem;
        }
    }
}
