/* Lateron landing page — Figma "Landing — Desktop 1440" / "Landing — Mobile 390" */

:root {
    --surface-white: #ffffff;
    --surface-dark: #1a171f;
    --text-secondary: #5e5e6b;
    --border-default: #e4e4ea;
    --purple-50: #f3efff;
    --purple-100: #e9e1ff;
    --purple-400: #9b6bff;
    --purple-cta-text: #3b1ec6;
    --off-white: #f7f6f3;
    --modal-grey: rgba(51, 51, 56, 0.8);
    --footer-text: rgba(255, 255, 255, 0.7);
    --divider-on-photo: rgba(255, 255, 255, 0.25);
    --font-sans: 'Inter', sans-serif;
    --font-body: 'Lexend', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- Base (mobile, 390) ---------- */

.landing {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface-dark);
    color: var(--surface-white);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 28px;
}

.landing > * {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

/* Blurred photo backdrop with 20% black wash */
.landing-bg {
    position: fixed;
    inset: -40px;
    z-index: 0;
    max-width: none;
    margin: 0;
    width: auto;
    background: url('/assets/landing/photo-detroit.jpg') center / cover no-repeat;
    filter: blur(7.55px);
    pointer-events: none;
}

.landing-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.landing-header,
.landing-main,
.landing-bottom {
    position: relative;
    z-index: 1;
}

.landing-logo {
    display: inline-block;
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -1.4px;
    color: var(--surface-white);
    text-decoration: none;
}

.landing-main {
    padding-top: 40px;
}

.landing-headline {
    font-weight: 700;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: -2.09px;
}

.landing-subheadline {
    margin-top: 20px;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.66px;
}

.landing-body {
    margin-top: 14px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
}

.store-badges {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-badge img {
    height: 50px;
    width: auto;
}

.no-app-note {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 21px;
    letter-spacing: -0.15px;
}

.no-app-icon {
    flex-shrink: 0;
}

.no-app-icon--lg {
    display: none;
}

/* Moment card */
.landing-collage {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.moment-card {
    width: 316px;
    max-width: 100%;
    height: 482px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 21px 21px 26px;
    background: var(--surface-white);
    filter: drop-shadow(0 1px 1.5px rgba(23, 23, 36, 0.06)) drop-shadow(0 12px 16px rgba(23, 23, 36, 0.1));
}

.moment-photo {
    width: 100%;
    height: 324px;
    object-fit: cover;
    background: #d9d9e0;
}

.moment-caption {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 10px;
    line-height: 17.5px;
    color: var(--text-secondary);
}

.voice-note {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CTA + footer */
.landing-bottom {
    margin-top: 36px;
}

.cta-updates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px 16px 24px;
    background: var(--off-white);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
    color: var(--purple-cta-text);
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 21px;
    letter-spacing: -0.24px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta-updates img {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.cta-updates:hover,
.cta-updates:focus-visible {
    background: var(--surface-white);
}

.cta-updates:hover img {
    transform: translateX(3px);
}

/* ---------- "Received a Lateron text?" modal ---------- */

.landing > .steps-modal {
    margin: auto;
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 32px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: var(--modal-grey);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: var(--surface-white);
    font-family: var(--font-sans);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.steps-modal::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.steps-modal[open] {
    animation: steps-in 0.18s ease-out;
}

@keyframes steps-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.steps-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface-white);
    cursor: pointer;
}

.steps-close:hover,
.steps-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.steps-title {
    padding-right: 40px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.steps-list {
    list-style: none;
    margin-top: 24px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--surface-white);
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 3px;
    font-size: 15px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.75);
}

.step-text strong {
    font-size: 17px;
    line-height: 23px;
    font-weight: 600;
    color: var(--surface-white);
}

.step-url {
    color: var(--purple-400);
    font-weight: 600;
    white-space: nowrap;
}

.step-divider {
    width: 48px;
    display: grid;
    place-items: center;
    padding: 10px 0;
    color: var(--purple-400);
}

.landing-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--divider-on-photo);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    line-height: normal;
    color: var(--footer-text);
    white-space: nowrap;
}

.footer-links {
    display: contents;
}

.landing-footer a,
.share-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
}

.share-link {
    background: none;
    border: 0;
    cursor: pointer;
}

.landing-footer a:hover,
.share-link:hover {
    text-decoration: underline;
}

/* ---------- Desktop (1440) ---------- */

@media (min-width: 1024px) {
    .landing {
        height: 100vh;
        min-height: 720px;
        padding: 32px 50px;
        display: grid;
        grid-template-rows: 1fr auto;
        position: relative;
    }

    /* Logo floats over the left column so the card can use the full height */
    .landing-header {
        position: absolute;
        top: 32px;
        left: 50px;
        width: auto;
    }

    .landing > * {
        max-width: none;
    }

    /* Center divider */
    .landing::before {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: var(--border-default);
        z-index: 1;
        pointer-events: none;
    }

    .landing-logo {
        font-size: 38px;
        line-height: 44px;
        letter-spacing: -1.9px;
    }

    .landing-main {
        padding-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        min-height: 0;
    }

    .landing-hero {
        padding-left: 32px;
        padding-right: 40px;
    }

    .landing-headline {
        max-width: 640px;
        font-size: clamp(44px, 3.9vw, 56px);
        line-height: 0.965;
        letter-spacing: -0.055em;
    }

    .landing-subheadline {
        max-width: 530px;
        margin-top: 34px;
        font-size: clamp(26px, 2.23vw, 32px);
        line-height: 38px;
        letter-spacing: -0.96px;
    }

    .landing-body {
        max-width: 560px;
        margin-top: 28px;
        font-size: 20px;
        line-height: 28.5px;
    }

    .store-badges {
        margin-top: 40px;
        gap: 22px;
    }

    .store-badge img {
        height: 57px;
    }

    .no-app-note {
        margin-top: 34px;
        gap: 14px;
        font-size: 17px;
        line-height: 24px;
        letter-spacing: -0.17px;
    }

    .no-app-icon--lg {
        display: block;
    }

    .no-app-icon--sm {
        display: none;
    }

    .landing-collage {
        margin-top: 0;
        padding-left: 40px;
    }

    /* Bigger moment card: everything scales off the card height (482 in Figma) */
    .moment-card {
        --h: clamp(482px, calc(100vh - 170px), 760px);
        width: calc(var(--h) * 0.6556);
        height: var(--h);
        gap: calc(var(--h) * 0.029);
        padding: calc(var(--h) * 0.0436) calc(var(--h) * 0.0436) calc(var(--h) * 0.054);
    }

    .moment-photo {
        height: calc(var(--h) * 0.6722);
    }

    .moment-caption {
        font-size: calc(var(--h) * 0.0262);
        line-height: 1.6;
    }

    .voice-note {
        gap: calc(var(--h) * 0.0249);
    }

    .voice-note img:first-child {
        width: calc(var(--h) * 0.0622);
        height: calc(var(--h) * 0.0622);
    }

    .voice-note img:last-child {
        width: calc(var(--h) * 0.3817);
        height: calc(var(--h) * 0.0539);
    }

    .landing-bottom {
        margin-top: 0;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: end;
        gap: 24px;
    }

    .cta-updates {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        gap: 16px;
        padding: 14px 28px 14px 32px;
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.27px;
        white-space: nowrap;
    }

    .landing-footer {
        display: contents;
        font-size: 14px;
        line-height: 20px;
    }

    .footer-links {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        gap: 40px;
        padding-bottom: 3px;
        font-size: 14px;
        line-height: 20px;
        color: var(--footer-text);
    }

    .share-link {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        padding-bottom: 3px;
        font-size: 14px;
        line-height: 20px;
        color: var(--footer-text);
    }
}

/* Short desktop windows: let the page scroll rather than clip */
@media (min-width: 1024px) and (max-height: 760px) {
    .landing {
        height: auto;
        min-height: 100vh;
    }

    .landing-main {
        padding-block: 96px 32px;
    }
}
