/* Locket-style light page: warm cream, rounded type, sticker cards.
   One brand colour only (--primary) plus its transparencies and neutral greys, flat fills only (docs/TASKS.md). */
:root {
    --primary: #f5b83d;
    --primary-soft: rgba(245, 184, 61, 0.16);
    --primary-band: rgba(245, 184, 61, 0.24);
    --primary-faint: rgba(245, 184, 61, 0.22);
    --on-primary: #1a1814;
    --bg: #fffaf0;
    --card: #fff3dc;
    --surface: #ffffff;
    --stroke: rgba(26, 24, 20, 0.08);
    --text: #1a1814;
    --muted: #6b6b70;
    --pill: rgba(26, 24, 20, 0.07);
    --shadow: 0 18px 40px rgba(26, 24, 20, 0.12);
    --radius: 28px;
    --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px clamp(16px, 4vw, 32px);
    /* Same tone as the hero band (primary at 24% over the cream page), so the bar blends in at the top. */
    background: rgba(253, 234, 197, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
}

.brand-mark::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--on-primary);
    border-right-color: rgba(26, 24, 20, 0.25);
}

.nav-links {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--text);
}

.lang-switch {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--pill);
    font-size: 15px;
    font-weight: 800;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary);
    color: var(--on-primary);
}

.button.ghost {
    background: var(--pill);
}

.nav-cta {
    min-height: 40px;
    padding: 8px 18px;
    background: var(--pill);
    color: var(--text);
}

.nav-cta.primary {
    background: var(--pill);
    color: var(--text);
}

.button:focus-visible,
.nav a:focus-visible,
.footer a:focus-visible,
.prose a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ---------- Layout ---------- */

main {
    padding: 0 clamp(16px, 4vw, 32px);
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 0;
}

.section.narrow {
    max-width: 760px;
}

h1,
h2,
h3 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.04;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.1;
}

h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    font-size: 14px;
    font-weight: 800;
}

.lead {
    max-width: 560px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------- Hero ---------- */

.hero-band {
    overflow: hidden;
    padding: 0 clamp(16px, 4vw, 32px);
    background: var(--primary-band);
    border-radius: 0 0 48px 48px;
}

.hero {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 0 64px;
    text-align: center;
}

.hero-stage {
    position: relative;
    height: 520px;
    margin: 0 auto 28px;
}

.phone {
    margin: 0;
}

.hero-stage .phone {
    position: absolute;
    left: 50%;
    top: 0;
    width: 250px;
    transform: translateX(-50%) rotate(-4deg);
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.sticker {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.sticker.amber {
    background: var(--primary);
    color: var(--on-primary);
}

.sticker.pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 16px;
}

.sticker.stat {
    width: 128px;
    height: 128px;
    padding: 10px;
    font-size: 15px;
}

.sticker.stat strong {
    display: block;
    font-size: 30px;
}

.sticker.ring {
    width: 96px;
    height: 96px;
    border-radius: 28px;
}

.sticker.ring::before {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 8px solid var(--on-primary);
    border-right-color: rgba(26, 24, 20, 0.2);
}

/* Moment photos as white-bordered stickers around the phone, like the friends' photos on locket.com. */
.photo-sticker {
    position: absolute;
    width: 170px;
    height: auto;
    border: 6px solid var(--surface);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.p1 { left: 3%; top: 24px; transform: rotate(-7deg); }
.p2 { right: 3%; top: 16px; transform: rotate(6deg); }
.p3 { left: 1%; top: 300px; width: 150px; transform: rotate(5deg); }
.p4 { right: 2%; top: 296px; width: 150px; transform: rotate(-5deg); }

.s1 { left: 21%; top: 170px; transform: rotate(-8deg); }
.s2 { right: 21%; top: 36px; transform: rotate(7deg); }
.s4 { right: 22%; top: 330px; transform: rotate(-6deg); }
.s5 { left: 23%; top: 420px; transform: rotate(-6deg); }

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-title .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.hero-title .brand-mark::before {
    width: 26px;
    height: 26px;
    border-width: 5px;
}

.hero .lead {
    margin: 16px auto 28px;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- Feature cards ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.card-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: -6px 0 14px -4px;
}

/* ---------- Split sections ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split-panel {
    display: grid;
    place-items: center;
    min-height: 460px;
    padding: 32px;
    border-radius: 40px;
    background: var(--card);
}

.phone.small {
    width: 240px;
    transform: rotate(3deg);
}

.moment-shots {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

/* App-like mockups of the Moments camera and widget, built in HTML around a real photo. */
.moment-mock {
    width: min(280px, 62%);
    padding: 16px 16px 18px;
    border-radius: 36px;
    background: #0b0b10;
    box-shadow: var(--shadow);
}

.moment-mock-title {
    margin: 0 0 12px;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.moment-mock-photo,
.moment-widget-mock {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.moment-mock-photo img,
.moment-widget-mock img {
    display: block;
    width: 100%;
    height: auto;
}

.moment-caption {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(11, 11, 16, 0.6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.moment-mock-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
}

.moment-mock-controls span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.moment-mock-controls .shutter {
    width: 54px;
    height: 54px;
    border: 4px solid #f5f5f7;
    background: var(--primary);
}

.moment-widget-mock {
    width: min(160px, 34%);
    border: 6px solid #0b0b10;
    border-radius: 32px;
    box-shadow: var(--shadow);
    transform: rotate(6deg) translateY(-24px);
}

.moment-widget-mock .moment-caption {
    bottom: 8px;
    font-size: 10px;
}

.split > * {
    min-width: 0;
}

.checks {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 34px;
    font-weight: 700;
}

.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
}

/* ---------- Pricing ---------- */

.pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    gap: 18px;
}

.plan {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--card);
}

.plan.pro {
    background: var(--primary);
    color: var(--on-primary);
}

.price {
    margin: 4px 0 18px;
    font-size: 34px;
    font-weight: 900;
}

.plan ul {
    margin: 0;
    padding-left: 20px;
    font-weight: 700;
}

.plan li {
    margin-bottom: 8px;
}

/* ---------- FAQ ---------- */

details {
    margin-bottom: 12px;
    padding: 20px 24px;
    border-radius: 22px;
    background: var(--card);
}

summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 8px;
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- Download ---------- */

.download {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border-radius: 40px;
    background: var(--primary-band);
}

.download img {
    border-radius: 28px;
    box-shadow: var(--shadow);
    transform: rotate(-4deg);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 16px;
    background: var(--text);
    color: var(--bg);
    font-weight: 800;
}

.store-badge small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.7;
}

/* ---------- Legal / text pages ---------- */

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0 72px;
}

.prose h1 {
    font-size: clamp(34px, 5vw, 48px);
    margin-bottom: 8px;
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 24px;
}

.prose h3 {
    margin: 24px 0 8px;
    font-size: 19px;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
}

.prose a {
    color: var(--text);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.prose .updated {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--text);
    font-size: 15px;
}

.callout {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 22px;
    background: var(--card);
}

.callout p {
    margin: 0;
}

.steps {
    counter-reset: step;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    padding-left: 48px;
    min-height: 36px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 15px;
    font-weight: 900;
}

/* ---------- Footer ---------- */

.footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px clamp(16px, 4vw, 32px) 0;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
    letter-spacing: 0;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.footer a:hover {
    color: var(--text);
}

.footer-wordmark {
    margin: 48px 0 -0.18em;
    color: var(--primary-faint);
    font-size: clamp(48px, 12vw, 150px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .download {
        grid-template-columns: 1fr;
    }

    .download {
        padding: 32px;
        text-align: center;
    }

    .download img {
        margin: 0 auto;
    }

    .store-badges {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-stage {
        height: 430px;
    }

    .hero-stage .phone {
        width: 200px;
    }

    .p3,
    .p4,
    .s4,
    .s5 {
        display: none;
    }

    .photo-sticker {
        width: 104px;
        border-width: 4px;
        border-radius: 20px;
    }

    .p1 { left: 0; top: 16px; }
    .p2 { right: 0; top: 250px; }
    .s1 { left: 0; top: 270px; }
    .s2 { right: 0; top: 8px; }

    .sticker.stat {
        width: 104px;
        height: 104px;
        font-size: 13px;
    }

    .sticker.stat strong {
        font-size: 24px;
    }

    .grid,
    .pricing {
        grid-template-columns: 1fr;
    }

    .split-panel {
        min-height: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
