.app-page {
    --app-text: #171717;
    --app-muted: #5f6673;
    --app-pink: #F25AD9;
    --app-pink-dark: #B82EA3;
    --app-gold: #F6E36B;
    --app-red: #FF4B5C;
    --app-denim: #1D3557;
    --app-line: rgba(29, 53, 87, 0.12);
    background: #fff8fc;
    color: var(--app-text);
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 930;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1rem 0.65rem;
    background: rgba(255, 248, 252, 0.9);
    border-bottom: 1px solid rgba(242, 90, 217, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.app-topbar__brand {
    display: inline-flex;
    align-items: center;
    width: 104px;
}

.app-topbar__brand img {
    width: 100%;
    height: auto;
}

.app-topbar__menu {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(242, 90, 217, 0.2);
    border-radius: 8px;
    color: var(--app-pink-dark);
    background: #fff;
}

.app-hero {
    position: relative;
    width: 100%;
    min-height: 78svh;
    padding: 2.75rem 1rem 3.5rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 248, 252, 0.96) 0%, rgba(255, 248, 252, 0.86) 42%, rgba(255, 248, 252, 0.24) 100%),
        url("/assets/app/download-hero.jpg") center / cover no-repeat;
}

.app-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background: linear-gradient(180deg, transparent, #fff8fc);
    pointer-events: none;
}

.app-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    min-height: calc(78svh - 6.25rem);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.app-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.app-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    color: var(--app-pink-dark);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

.app-kicker::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--app-gold);
}

.app-hero h1 {
    max-width: 9ch;
    margin: 0;
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 3.45rem;
    line-height: 0.95;
    color: var(--app-text);
    text-wrap: balance;
    animation: app-rise 0.72s ease both;
}

.app-hero__copy {
    max-width: 31rem;
    margin: 1rem 0 0;
    color: var(--app-muted);
    font-size: 1.08rem;
    line-height: 1.55;
    animation: app-rise 0.72s 0.08s ease both;
}

.store-buttons {
    width: 100%;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.store-button {
    position: relative;
    overflow: hidden;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #111;
    color: #fff;
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.store-button::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -35%;
    width: 28%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    animation: app-button-shine 4.4s ease-in-out infinite;
}

.store-button:hover {
    background: #1d3557;
    box-shadow: 0 18px 44px rgba(29, 53, 87, 0.22);
    transform: translateY(-1px);
}

.store-button:active {
    transform: translateY(0) scale(0.99);
}

.store-button span {
    display: grid;
    gap: 0.12rem;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.05;
}

.store-button small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
}

.app-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.app-hero__trust span {
    padding: 0.4rem 0.62rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--app-denim);
    font-size: 0.82rem;
    font-weight: 600;
}

.app-phone {
    position: relative;
    min-height: 460px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    perspective: 1200px;
    animation: app-fade-scale 0.8s 0.14s ease both;
}

.app-phone__device {
    position: relative;
    width: min(74vw, 292px);
    aspect-ratio: 1242 / 2688;
    padding: 10px;
    border-radius: 34px;
    background: linear-gradient(145deg, #262626, #050505);
    box-shadow:
        0 22px 70px rgba(29, 53, 87, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: rotate(-4deg);
    animation: app-phone-float 5.5s ease-in-out infinite;
}

.app-phone__device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    background: #fff;
}

.app-phone__notch {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 88px;
    height: 24px;
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 0 0 16px 16px;
    background: #060606;
}

.app-benefits {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
    display: grid;
    gap: 0.85rem;
}

.app-benefit {
    padding: 1.05rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(242, 90, 217, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-benefit:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 90, 217, 0.28);
    box-shadow: 0 18px 44px rgba(29, 53, 87, 0.12);
}

.app-benefit__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border-radius: 8px;
    background: #fff0f9;
    color: var(--app-pink-dark);
}

.app-benefit h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 1.25rem;
    line-height: 1.15;
}

.app-benefit p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.5;
}

.app-showcase {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 1rem 3.5rem;
    display: grid;
    gap: 1.2rem;
    align-items: center;
}

.app-showcase__media {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(29, 53, 87, 0.12);
    box-shadow: 0 20px 54px rgba(29, 53, 87, 0.12);
    background: #fff;
}

.app-showcase__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.5s ease;
}

.app-showcase__media:hover img {
    transform: scale(1.05);
}

.app-showcase__content {
    padding: 0.35rem 0;
}

.app-showcase__content h2 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 2.45rem;
    line-height: 1;
    color: var(--app-denim);
}

.app-showcase__content p {
    max-width: 27rem;
    margin: 0.85rem 0 0;
    color: var(--app-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.app-link-button {
    min-height: 46px;
    margin-top: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.05rem;
    border-radius: 8px;
    background: var(--app-denim);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(29, 53, 87, 0.18);
    transition: transform 0.16s ease, background 0.16s ease;
}

.app-link-button:hover {
    background: var(--app-pink-dark);
    transform: translateY(-1px);
}

.app-cta {
    width: min(calc(100% - 2rem), 1120px);
    margin: 0 auto 2rem;
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(242, 90, 217, 0.96), rgba(255, 75, 92, 0.93)), #f25ad9;
    color: #fff;
    box-shadow: 0 18px 50px rgba(242, 90, 217, 0.2);
}

.app-cta > * {
    position: relative;
    z-index: 1;
}

.app-cta .app-kicker {
    color: #fff;
    margin-bottom: 0.6rem;
}

.app-cta .app-kicker::before {
    background: var(--app-gold);
}

.app-cta h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 2rem;
    line-height: 1.05;
}

.store-buttons--compact {
    margin-top: 0;
}

.app-page .desktop-footer {
    margin-top: 3rem;
}

.app-reveal {
    opacity: 1;
    transform: none;
}

.app-js .app-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

.app-js .app-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-js .app-benefit:nth-child(2) {
    transition-delay: 0.08s;
}

.app-js .app-benefit:nth-child(3) {
    transition-delay: 0.16s;
}

@keyframes app-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-fade-scale {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes app-phone-float {
    0%, 100% {
        transform: rotate(-4deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(-2deg) translate3d(0, -12px, 0);
    }
}

@keyframes app-button-shine {
    0%, 42% {
        transform: translateX(0) rotate(18deg);
        opacity: 0;
    }
    52% {
        opacity: 1;
    }
    66%, 100% {
        transform: translateX(540%) rotate(18deg);
        opacity: 0;
    }
}

@media (min-width: 520px) {
    .store-buttons {
        width: auto;
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .store-button {
        justify-content: center;
        min-width: 190px;
    }
}

@media (min-width: 768px) {
    .app-hero {
        min-height: calc(100svh - 86px);
        padding: 4rem 1.5rem 5.5rem;
    }

    .app-hero__inner {
        min-height: calc(100svh - 15.5rem);
        grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
        align-items: center;
    }

    .app-hero h1 {
        font-size: 5.5rem;
    }

    .app-hero__copy {
        font-size: 1.22rem;
    }

    .app-phone {
        min-height: 620px;
        align-items: center;
    }

    .app-phone__device {
        width: min(31vw, 360px);
        transform: rotate(-5deg) translateY(6px);
    }

    .app-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0 1.5rem 4rem;
    }

    .app-showcase {
        grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
        gap: 3rem;
        padding: 0 1.5rem 5rem;
    }

    .app-showcase__content h2 {
        font-size: 4rem;
    }

    .app-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 1.5rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .app-page {
        padding-bottom: 0;
    }

    .app-topbar {
        display: none;
    }

    .app-hero {
        background:
            linear-gradient(90deg, rgba(255, 248, 252, 0.98) 0%, rgba(255, 248, 252, 0.88) 37%, rgba(255, 248, 252, 0.08) 74%),
            url("/assets/app/download-hero.jpg") center / cover no-repeat;
    }
}

@media (min-width: 1180px) {
    .app-hero {
        padding-top: 5rem;
    }

    .app-hero h1 {
        font-size: 6.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-hero h1,
    .app-hero__copy,
    .app-phone,
    .app-phone__device,
    .store-button::after {
        animation: none;
    }

    .store-button,
    .app-benefit,
    .app-link-button,
    .app-showcase__media img {
        transition: none;
    }

    .app-js .app-reveal {
        opacity: 1;
        transform: none;
    }
}
