:root {
    --background: #f1e3d9;
    --text: #25272d;
    --muted: #687086;
    --accent: #56617a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #141414;
        --text: #f6eeee;
        --muted: #b9afb4;
        --accent: #ebcccc;
    }
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100svh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 16%, rgba(195, 119, 119, 0.18), transparent 28rem),
        var(--background);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
    width: min(100%, 1120px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 24px 24px 14px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.brand img, .app-icon {
    display: block;
    object-fit: cover;
}

.brand img {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(74, 62, 58, 0.12);
}

.hero {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 292px);
    align-items: center;
    gap: clamp(40px, 7vw, 96px);
    padding: 4px 0 0;
}

.hero-copy {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.app-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(74, 62, 58, 0.17);
}

.eyebrow {
    margin: 20px 0 0;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

h1 {
    margin: 10px 0 0;
    font-size: clamp(50px, 7vw, 68px);
    line-height: 1;
    font-weight: 760;
    letter-spacing: 0;
}

.tagline {
    max-width: 420px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.2;
    font-weight: 520;
}

.store-button {
    margin-top: 24px;
    display: inline-block;
    line-height: 0;
    border-radius: 10px;
    text-decoration: none;
}

.store-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 4px;
}

.store-button img {
    width: 152px;
    height: auto;
    display: block;
}

.phone-wrap {
    width: min(100%, 292px);
    justify-self: end;
    position: relative;
    filter: drop-shadow(0 30px 54px rgba(74, 62, 58, 0.24));
    animation: arrive 700ms cubic-bezier(.2,.8,.2,1) both;
}

.phone-wrap::before, .phone-wrap::after {
    content: "";
    position: absolute;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #515762, #17191e);
}

.phone-wrap::before { top: 124px; left: -3px; height: 78px; }
.phone-wrap::after { top: 176px; right: -3px; height: 108px; }

.phone {
    aspect-ratio: 430 / 896;
    padding: 13px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.24), transparent 18%),
        linear-gradient(145deg, #555b66 0%, #16191f 17%, #050608 53%, #303641 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 58px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.07),
        inset 0 -20px 38px rgba(0,0,0,0.38);
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    inset: 13px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 45px;
    background: var(--background);
}

.phone-shot {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--text); }
.separator { opacity: 0.5; }

@keyframes arrive {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-color-scheme: dark) {
    body {
        background:
            radial-gradient(circle at 8% 16%, rgba(235, 204, 204, 0.1), transparent 28rem),
            var(--background);
    }

    .app-icon, .brand img { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42); }
}

@media (prefers-reduced-motion: reduce) {
    .phone-wrap { animation: none; }
}

@media (max-width: 800px) {
    .page { padding: 24px 18px 14px; }
    .site-header { display: none; }

    .hero {
        min-height: auto;
        height: auto;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 42px;
        padding: 22px 0 0;
        text-align: center;
    }

    .hero-copy {
        max-width: 460px;
        align-items: center;
        text-align: center;
    }

    .app-icon {
        order: 2;
        width: 66px;
        height: 66px;
        margin: 10px auto 0;
    }

    .eyebrow { order: 3; margin-top: 10px; }
    h1 { order: 1; margin-top: 0; font-size: 46px; }
    .tagline { order: 4; margin: 32px auto 0; }
    .store-button { order: 6; margin-top: 12px; }

    .phone-wrap {
        width: min(74vw, 286px);
        justify-self: center;
        margin-bottom: 18px;
        filter: drop-shadow(0 14px 18px rgba(74, 62, 58, 0.18));
    }

    .phone { padding: 11px; border-radius: 50px; }
    .screen { inset: 11px; border-radius: 39px; }
    .site-footer { padding-top: 0; }
}
