.home-body {
    background: var(--color-pale-blue);
}

.home-container {
    width: min(1140px, calc(100% - 64px));
    margin-inline: auto;
}

.home-body button {
    color: inherit;
}

.home-body button:disabled {
    cursor: not-allowed;
}

.home-body :focus-visible {
    outline: 2px solid #0065ad;
    outline-offset: 5px;
}

.home-body .navbar {
    color: var(--color-primary);
}

.home-body .navbar > .navbar__logo img,
.home-logo img {
    filter: brightness(0) saturate(100%) invert(57%) sepia(76%) saturate(1061%) hue-rotate(160deg) brightness(91%) contrast(86%);
}

.home-nav {
    display: none;
}

.home-nav button,
.home-footer button {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
}

.home-profile {
    position: relative;
}

.home-profile summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
}

.home-profile summary::-webkit-details-marker {
    display: none;
}

.home-profile summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: rotate(45deg);
}

.home-profile[open] summary::after {
    transform: rotate(225deg);
}

.home-profile__menu {
    position: absolute;
    z-index: 3;
    top: calc(100% + 40px);
    right: -16px;
    width: 192px;
    border-radius: 16px;
    background: #fafafa;
    box-shadow: 0 8px 24px #061a2b1a;
    overflow: hidden;
}

.home-profile__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
}

.home-profile__menu .home-profile__logout {
    border-top: 1px solid var(--color-gray-5);
    color: var(--color-danger);
}

.home-page h2 {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -1px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
}

.home-body .home-button--primary {
    background: #0065ad;
    color: white;
}

.home-hero {
    position: relative;
    min-height: 572px;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 92px;
    padding-bottom: 100px;
}

.home-hero__greeting {
    margin-bottom: 16px;
    font-size: 24px;
}

.home-hero h1 {
    margin-bottom: 48px;
    font-size: 72px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.home-hero__image {
    position: absolute;
    z-index: 1;
    top: -80px;
    right: 0;
    width: 644px;
    height: 740px;
    object-fit: cover;
    object-position: center 42%;
    clip-path: ellipse(62% 54% at 62% 46%);
}

.home-invoice {
    display: flex;
    width: 376px;
    padding: 4px;
    border: 1px solid #0065ad;
    border-radius: 999px;
    background: var(--color-light-blue);
}

.home-invoice input {
    width: 0;
    flex: 1;
    padding: 0 20px;
    border: 0;
    background: none;
    font-size: 14px;
}

.home-invoice .home-button {
    min-height: 40px;
    padding: 8px 20px;
    font-size: 12px;
}

.home-rewards,
.home-benefits {
    color: white;
    background-color: #1196cb;
    background-image: url('../website/images/menu-pattern-upper.svg'), url('../website/images/menu-pattern-lower.svg'), linear-gradient(160deg, #23a7d5, #0055a0);
    background-repeat: no-repeat;
    background-size: 70% auto, 90% auto, cover;
    background-position: left top, right bottom, center;
}

.home-rewards {
    padding: 80px 0 86px;
    scroll-margin-top: 40px;
    text-align: center;
}

.home-rewards__intro {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}

.home-rewards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 266px));
    justify-content: center;
    gap: 56px;
    margin-top: 48px;
}

.home-reward {
    overflow: hidden;
    border-radius: 16px;
    background: white;
    color: var(--color-dark-blue);
    text-align: left;
}

.home-reward > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.home-reward__content {
    padding: 18px 16px;
}

.home-reward h3 {
    min-height: 52px;
    font-size: 18px;
    line-height: 1.45;
}

.home-reward__points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-light-blue);
    color: #0065ad;
    font-size: 14px;
    font-weight: 600;
}

.home-benefits {
    background-image: url('../website/images/menu-pattern-lower.svg'), linear-gradient(#23acd8 60%, #003675);
    background-size: 100% auto, cover;
    background-position: center bottom;
}

.home-privileges {
    position: relative;
    height: 850px;
    color: var(--color-dark-blue);
    background: url('../website/images/home-privileges.webp') center top / cover no-repeat;
}

.home-privileges::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, #23acd8);
}

.home-privileges__content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding-top: 128px;
}

.home-privileges__content > p {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.7;
}

.home-perk {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 370px;
    padding: 18px 24px;
    border-radius: 999px;
    background: white;
    font-size: 18px;
}

.home-perk h3 {
    margin-bottom: 4px;
}

.home-perk p {
    color: var(--color-gray-3);
    font-weight: 400;
    line-height: 1.45;
}

.home-perk__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(var(--color-pale-blue), var(--color-secondary));
    color: #0088c7;
}

.home-perk--insider {
    top: 64px;
    right: 24px;
}

.home-perk--vouchers {
    top: 430px;
    left: 164px;
}

.home-perk--birthday {
    right: -36px;
    bottom: 76px;
}

.home-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    padding-block: 80px 110px;
}

.home-steps__image {
    position: relative;
    flex-shrink: 0;
    width: 460px;
    height: 460px;
    padding: 24px;
    border-radius: 50%;
}

.home-steps__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../website/images/home-steps-outline.svg') center / contain no-repeat;
    pointer-events: none;
}

.home-steps__motion {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    cursor: pointer;
}

.home-steps__image:has(input:checked)::before {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: no-preference) {
    .home-steps__image::before {
        animation: home-outline-rotate 24s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-steps__motion {
        display: none;
    }
}

@keyframes home-outline-rotate {
    to {
        transform: rotate(360deg);
    }
}

.home-steps__image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 40% center;
}

.home-steps h3 {
    margin-top: 76px;
    font-size: 24px;
}

.home-steps p {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

.home-community {
    position: relative;
    min-height: 640px;
    padding-block: 90px 120px;
    background-color: #fafafa;
    background-image: linear-gradient(to right, #fafafa 22%, #fafafa00 55%), url('../website/images/home-community.webp');
    background-position: center, right bottom;
    background-size: cover, auto 100%;
    background-repeat: no-repeat;
}

.home-community::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20px;
    background: white;
    clip-path: polygon(0 70%, 2% 40%, 4% 70%, 6% 10%, 8% 45%, 10% 25%, 12% 60%, 14% 10%, 16% 45%, 18% 20%, 20% 60%, 22% 20%, 24% 70%, 26% 30%, 28% 60%, 30% 15%, 32% 60%, 34% 20%, 36% 70%, 38% 10%, 40% 55%, 42% 15%, 44% 60%, 46% 10%, 48% 40%, 50% 15%, 52% 70%, 54% 40%, 56% 60%, 58% 10%, 60% 55%, 62% 20%, 64% 60%, 66% 20%, 68% 70%, 70% 30%, 72% 60%, 74% 10%, 76% 50%, 78% 20%, 80% 60%, 82% 15%, 84% 70%, 86% 30%, 88% 60%, 90% 20%, 92% 55%, 94% 10%, 96% 60%, 98% 25%, 100% 60%, 100% 100%, 0 100%);
}

.home-community p {
    margin-block: 28px 32px;
    font-size: 18px;
    line-height: 1.7;
}

.home-footer {
    width: 100%;
    padding: 60px max(32px, calc((100% - 1140px) / 2)) 40px;
    background: white;
    font-size: 14px;
}

.home-footer__top,
.home-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.home-footer__links {
    display: flex;
    justify-content: space-between;
    width: 640px;
    gap: 32px;
}

.home-footer__links > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.home-footer h2 {
    margin-bottom: 12px;
    font-weight: 600;
}

.home-footer__bottom {
    margin-top: 64px;
    align-items: center;
    font-size: 12px;
}

.home-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-footer__social img {
    filter: brightness(0) saturate(100%) invert(57%) sepia(76%) saturate(1061%) hue-rotate(160deg) brightness(91%) contrast(86%);
}

.home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1024px) {
    .home-body .site-root > .navbar {
        display: none;
    }

    .home-nav {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        padding-inline: max(32px, calc((100% - 1140px) / 2));
        background: #ffffffb3;
    }

    .home-nav__links {
        display: flex;
        align-items: center;
        gap: 48px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .home-hero__image {
        width: 48%;
    }

    .home-hero h1 {
        font-size: 60px;
    }

    .home-rewards__grid {
        gap: 32px;
    }

    .home-perk--birthday {
        right: 0;
    }

    .home-steps {
        gap: 64px;
    }

    .home-steps__image {
        width: 38vw;
        height: 38vw;
    }

    .home-steps__content {
        flex: 1;
        min-width: 0;
    }

    .home-steps h2 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .home-container {
        width: calc(100% - 40px);
    }

    .home-page h2 {
        font-size: 34px;
    }

    .home-hero {
        min-height: 700px;
    }

    .home-hero__content {
        padding-top: 40px;
    }

    .home-hero__greeting {
        font-size: 18px;
    }

    .home-hero h1 {
        margin-bottom: 28px;
        font-size: 46px;
    }

    .home-invoice {
        width: min(100%, 376px);
    }

    .home-hero__image {
        top: auto;
        bottom: -30px;
        width: 290px;
        height: 340px;
    }

    .home-rewards {
        padding-block: 60px;
    }

    .home-rewards__grid {
        grid-template-columns: minmax(0, 320px);
        gap: 24px;
        margin-top: 32px;
    }

    .home-rewards__intro,
    .home-privileges__content > p,
    .home-community p {
        font-size: 16px;
    }

    .home-privileges {
        height: 840px;
        background-position: 60% top;
    }

    .home-privileges__content {
        padding-top: 48px;
    }

    .home-perk {
        width: 280px;
        gap: 16px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .home-perk__icon {
        width: 56px;
        height: 56px;
    }

    .home-perk--insider {
        top: 290px;
        right: 0;
    }

    .home-perk--vouchers {
        top: 470px;
        left: 0;
    }

    .home-perk--birthday {
        bottom: 80px;
    }

    .home-steps {
        flex-direction: column;
        gap: 40px;
        padding-block: 20px 72px;
    }

    .home-steps__image {
        width: 280px;
        height: 280px;
    }

    .home-steps h3 {
        margin-top: 32px;
    }

    .home-community {
        min-height: 650px;
        padding-top: 48px;
        background-position: 60% bottom;
    }

    .home-footer {
        width: 100%;
        padding: 40px 20px;
    }

    .home-footer__top,
    .home-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .home-footer__links {
        width: 100%;
        gap: 20px;
    }
}
