.emphasis {
    font-weight: 500;
}

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    grid-template-areas:
        "image icon"
        "image title"
        "image description"
        "image buttons";
    align-content: center;
    align-items: center;
    justify-items: center;
    row-gap: 12px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 64px;
    margin: 64px 0;
}
.app-hero-image {
    grid-area: image;
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 360 / 460;
}
.app-hero-phone {
    position: absolute;
}
.app-hero-phone--back {
    width: 42%;
    left: 4%;
    bottom: 14%;
    transform: rotate(-6deg);
    z-index: 1;
}
.app-hero-phone--front {
    width: 52%;
    left: 32%;
    bottom: 6%;
    transform: rotate(2deg);
    z-index: 2;
}
.app-hero-phone img {
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.app-hero-icon {
    grid-area: icon;
}
.app-hero-icon svg {
    height: 120px;
    width: 120px;
}
.app-hero-icon svg path {
    fill: var(--md-sys-color-on-primary) !important;
}
.app-hero-title {
    grid-area: title;
    width: 100%;
    max-width: 512px;
    margin: 0;
    text-align: center;
}
.app-hero-description {
    grid-area: description;
    max-width: 256px;
}
.app-hero-description p {
    margin: auto;
}
.app-hero-buttons {
    grid-area: buttons;
    display: flex;
    gap: 32px;
    margin-top: 8px;
}
.app-hero-button {
    display: block;
    width: 256px;
    height: auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.app-hero-buttons a:hover .app-hero-button {
    transform: translateY(-2px);
}
.app-hero-buttons a:focus-visible {
    outline: 3px solid var(--md-sys-color-on-primary);
    outline-offset: 4px;
}

.app-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 32px 24px;
}

.app-step {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}
.app-step-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: start;
}
.app-step-text h2,
.app-step-text p {
    margin: 0;
}
.app-step-text md-filled-button {
    align-self: flex-start;
    margin-top: 32px;
}
.app-step-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.app-step-video-container {
    padding-block: 32px;
}
.app-step-video-container iframe {
    display: block;
    width: 90%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.app-step-image {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

@media (min-width: 600px) {
    .app-step:nth-child(even) .app-step-image-container {
        order: 2;
    }
}

@media (max-width: 599px) {
    .app-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "title"
            "description"
            "image"
            "buttons";
        padding: 32px 24px;
        margin-bottom: 16px;
    }
    .app-hero-title {
        font-size: var(--md-sys-typescale-headline-large-size, 2rem);
        line-height: var(--md-sys-typescale-headline-large-line-height, 2.5rem);
    }
    .app-hero-image {
        width: min(200px, 100%);
    }
    .app-hero-phone img {
        border-radius: 12px;
    }
    .app-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .app-steps {
        gap: 32px;
        padding: 24px;
    }
    .app-step {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .app-step-text {
        text-align: center;
    }
    .app-step-text md-filled-button {
        align-self: center;
    }
}

@media (min-width: 600px) and (max-width: 1199px) {
    .app-hero-image {
        width: min(300px, 100%);
    }
    .app-hero-phone img {
        border-radius: 16px;
    }
    .app-hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
}
