/* Momentry web v0.4.0 — sales page. Mobile-first; everything scales up from a 360px phone. */

body.lp { background: var(--paper); overflow-x: hidden; }
.lp-wrap { width: min(100%, 1120px); margin: 0 auto; padding: 0 var(--gutter); }
.lp-wrap.narrow { width: min(100%, 760px); }
.lp-wrap.center { text-align: center; }
.lp-wrap.center p { margin-inline: auto; }
.lp-sec { padding-block: clamp(56px, 11vw, 120px); position: relative; }
.lp-sec.alt { background: #ECE6F6; }
.lp-h2 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); line-height: 1.04; margin-bottom: clamp(24px, 5vw, 48px); max-width: 18ch; }
.center .lp-h2 { margin-inline: auto; }
.lead2, .big { font-size: clamp(1.05rem, 2.6vw, 1.25rem); }
.btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn.primary { box-shadow: 0 10px 28px -10px rgba(201, 47, 88, .75); }
.btn.primary:hover { box-shadow: 0 16px 34px -10px rgba(201, 47, 88, .85); }
.btn[aria-disabled='true'] { opacity: .6; cursor: default; }

/* header */
.lp-head { position: sticky; top: 0; z-index: 30; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.lp-head.solid { background: rgba(244, 241, 249, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--mist); }
.lp-head-in { width: min(100%, 1120px); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-head .brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.lp-nav { display: none; gap: 26px; }
.lp-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lp-nav a:hover { color: var(--rose); }
.head-cta { display: none; }
@media (min-width: 880px) { .lp-nav { display: flex; } .head-cta { display: inline-flex; } }

/* hero */
.hero { position: relative; isolation: isolate; display: grid; gap: 0; min-height: 0; padding: 0 0 24px; overflow: clip; }
.hero-stage { order: -1; position: relative; height: clamp(230px, 34svh, 340px); touch-action: pan-y; }
.hero-canvas { position: absolute; inset: -2% auto auto -10%; width: 120%; height: calc(102% - 24px); display: block; touch-action: pan-y; opacity: 0; transition: opacity .8s ease; }
.hero-stage.has-webgl .hero-canvas { opacity: 1; }
.hero-stage .hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: .78rem; color: var(--ink-soft); max-width: none; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 640px); margin: 0 auto; padding: 8px var(--gutter) 0; }
.hero-copy h1 { font-size: clamp(2rem, 8vw, 3.8rem); margin-bottom: .45em; }
.hero-copy .lead { font-size: clamp(1.05rem, 3vw, 1.3rem); color: var(--ink-soft); }
.hero-cta { margin: 22px 0 6px; gap: 12px; }
.hero-cta .btn { min-height: 48px; padding-inline: 22px; }
.hero-cta .btn:not(.primary) { background: rgba(255, 255, 255, .85); }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li { background: rgba(255, 255, 255, .7); border: 1px solid var(--mist); border-radius: 99px; padding: 6px 14px; font-size: .86rem; font-weight: 600; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
.hero-stage.has-webgl .hero-fallback { opacity: 0; pointer-events: none; }
.fb-card { width: 112px; height: 150px; background: #fff; border-radius: 14px; box-shadow: 0 24px 40px -18px rgba(34, 28, 58, .5); transform: rotate(-6deg); grid-area: 1/1; }
.fb { grid-area: 1/1; width: 74px; height: 90px; border-radius: 8px; background: linear-gradient(160deg, #FFB48A, #C92F58); box-shadow: 0 14px 24px -12px rgba(34, 28, 58, .5); animation: fbfloat 6s ease-in-out infinite; }
.fb0 { translate: -120px -40px; rotate: -12deg; } .fb1 { translate: 118px -60px; rotate: 10deg; background: linear-gradient(160deg, #BFD9FF, #5B3A8E); animation-delay: -2s; }
.fb2 { translate: -96px 70px; rotate: 8deg; background: linear-gradient(160deg, #CFEBDD, #2F6B4F); animation-delay: -4s; } .fb3 { translate: 100px 62px; rotate: -8deg; background: linear-gradient(160deg, #F6D4E6, #7A2E5E); animation-delay: -1s; }
@keyframes fbfloat { 50% { margin-top: -14px; } }
.aurora { position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: #E7C9F2; translate: calc(var(--mx, 0) * 40px) calc(var(--my, 0) * 30px); }
.aurora i:nth-child(2) { width: 46vmax; height: 46vmax; right: -12vmax; top: -6vmax; background: #FFC8D6; animation-delay: -6s; translate: calc(var(--mx, 0) * -60px) calc(var(--my, 0) * 40px); }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 20%; bottom: -24vmax; background: #C9D6FF; animation-delay: -11s; translate: calc(var(--mx, 0) * 30px) calc(var(--my, 0) * -30px); }
@keyframes drift { to { transform: scale(1.18) rotate(18deg); } }
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; padding: 0 max(var(--gutter), calc((100% - 1120px) / 2)) 40px; }
  .hero-stage { order: 0; height: min(78svh, 700px); }
  .hero-canvas { inset: -6% auto auto -4%; width: 118%; height: calc(106% - 24px); }
  .hero-copy { margin: 0; padding: 0; width: auto; }
}

/* steps */
.step { display: grid; gap: 22px; align-items: center; padding-block: clamp(26px, 5vw, 52px); }
.step + .step { border-top: 1px solid var(--mist); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin-bottom: .45em; }
.step p { color: var(--ink-soft); font-size: 1.05rem; }
@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step:nth-of-type(even) .step-copy { order: 2; }
}
.reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* shared 3D bits */
.scene { perspective: 1100px; display: grid; place-items: center; min-height: 340px; }
.scene > div { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; }
.qr-svg svg { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.tile { display: block; border-radius: 6px; aspect-ratio: 1; background: linear-gradient(160deg, #FFB48A, #C92F58); }
.tile.c1 { background: linear-gradient(160deg, #BFD9FF, #5B3A8E); } .tile.c2 { background: linear-gradient(160deg, #FFE7B8, #B04A6B); }
.tile.c3 { background: linear-gradient(160deg, #CFEBDD, #2F6B4F); } .tile.c4 { background: linear-gradient(160deg, #F6D4E6, #7A2E5E); } .tile.c5 { background: linear-gradient(160deg, #5B4B9E, #221C3A); }

/* invitation that opens */
.invite3d { position: relative; width: min(260px, 70vw); aspect-ratio: 260/340; filter: drop-shadow(0 30px 34px rgba(34, 28, 58, .28)); }
.inv-inner { position: absolute; inset: 0; background: #fff; border-radius: 14px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--mist); }
.inv-inner .for { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.inv-inner .nm { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; margin: 6px 0 18px; }
.inv-inner dl { display: grid; grid-template-columns: auto auto; gap: 6px 14px; margin: 0; text-align: left; font-size: .95rem; transform: rotate(-3deg); background: var(--paper); padding: 12px 16px; border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.inv-inner dt { color: var(--ink-soft); } .inv-inner dd { margin: 0; font-weight: 700; }
.inv-cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.3, .7, .2, 1) .35s; border-radius: 14px; }
.inv-cover > span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: #fff; background: linear-gradient(150deg, #E04C74, #C92F58 55%, #8E1F42); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.inv-cover::before { content: ''; position: absolute; inset: 0; border-radius: 14px; background: #E9E2F5; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.in .inv-cover { transform: rotateY(-158deg); }

/* scan */
.scan3d { position: relative; width: min(360px, 88vw); height: 330px; }
.tablecard { position: absolute; left: 0; top: 40px; width: 150px; padding: 14px; background: #fff; border-radius: 12px; text-align: center; transform: rotateY(-22deg) rotateX(8deg); box-shadow: 0 26px 30px -14px rgba(34, 28, 58, .4); }
.tablecard b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.phone { position: absolute; right: 0; top: 0; width: 150px; height: 300px; border-radius: 28px; background: #19142D; padding: 9px; transform: translateZ(70px) rotateY(12deg); box-shadow: 0 30px 40px -14px rgba(34, 28, 58, .55); animation: phonefloat 5s ease-in-out infinite; }
@keyframes phonefloat { 50% { translate: 0 -10px; } }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 20px; background: #fff; overflow: hidden; padding: 18px 14px; display: grid; align-content: center; gap: 10px; }
.laser { position: absolute; left: 0; right: 0; height: 3px; top: 12%; background: var(--rose); box-shadow: 0 0 16px 4px rgba(201, 47, 88, .7); animation: laser 2.2s ease-in-out infinite alternate; }
@keyframes laser { to { top: 82%; } }
.phone .cap { font-size: .72rem; font-weight: 700; text-align: center; color: var(--rose); }

/* photos arriving */
.photos3d { position: relative; width: min(300px, 80vw); height: 340px; display: grid; place-items: center; }
.phone.wide { position: relative; width: 230px; height: 310px; right: auto; top: auto; transform: rotateY(-10deg) rotateX(4deg); }
.screen.grid { grid-template-columns: repeat(3, 1fr); align-content: start; gap: 6px; padding: 12px; }
.tile { opacity: 1; }
.photos3d .tile { opacity: 0; }
.in .photos3d .tile { animation: drop 4.6s var(--d) infinite both; }
@keyframes drop { 0% { opacity: 0; transform: translateZ(140px) scale(.2); } 8% { opacity: 1; transform: translateZ(0) scale(1.12); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
.counter { position: absolute; right: -6px; bottom: 6px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 16px; display: grid; transform: translateZ(80px); box-shadow: 0 16px 26px -10px rgba(34, 28, 58, .6); }
.counter b { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.counter span { font-size: .75rem; opacity: .8; }

/* book */
.book3d { position: relative; width: min(340px, 86vw); height: 230px; transform-origin: center; }
.scene > .book3d { transform: rotateX(calc(26deg + var(--rx, 0deg))) rotateY(calc(-14deg + var(--ry, 0deg))); }
.pg { position: absolute; top: 0; width: 50%; height: 100%; background: #FFFDF8; border: 1px solid var(--mist); padding: 14px; box-shadow: 0 22px 28px -16px rgba(34, 28, 58, .45); }
.pg.left { left: 0; border-radius: 10px 0 0 10px; } .pg.right { left: 50%; border-radius: 0 10px 10px 0; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; align-content: center; }
.pg.flip { padding: 0; background: none; border: 0; box-shadow: none; transform-origin: left center; transform-style: preserve-3d; animation: flip 7s ease-in-out infinite; animation-play-state: paused; }
.in .pg.flip { animation-play-state: running; }
.face { position: absolute; inset: 0; background: #FFFDF8; border: 1px solid var(--mist); padding: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 10px 10px 0; display: grid; align-content: center; }
.face.back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; }
@keyframes flip { 0%, 18% { transform: rotateY(0); } 42%, 70% { transform: rotateY(-178deg); } 94%, 100% { transform: rotateY(0); } }
.spine { position: absolute; left: calc(50% - 2px); top: 0; width: 4px; height: 100%; background: linear-gradient(#C92F58, #8E1F42); border-radius: 2px; }

/* versus */
.vs { display: grid; gap: 18px; }
.vs-col { border-radius: 22px; padding: 26px 24px; transition: transform .18s ease-out; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.vs-col h3 { margin-bottom: 14px; }
.vs-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.vs-col li { padding-left: 30px; position: relative; }
.vs-col.old { background: rgba(255, 255, 255, .5); border: 1px dashed #B7AECF; color: var(--ink-soft); }
.vs-col.old li::before { content: '×'; position: absolute; left: 4px; top: -2px; font-size: 1.4rem; color: #9A90B8; }
.vs-col.new { background: var(--ink); color: #fff; box-shadow: 0 30px 50px -24px rgba(34, 28, 58, .8); }
.vs-col.new li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 14px; height: 8px; border-left: 3px solid #F8A3B9; border-bottom: 3px solid #F8A3B9; transform: rotate(-45deg); }
@media (min-width: 760px) { .vs { grid-template-columns: 1fr 1fr; gap: 28px; } .vs-col.new { translate: 0 -14px; } }

/* feature status */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .feats { grid-template-columns: 1fr 1fr; gap: 12px 18px; } }
.feat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 14px 16px; }
.badge { flex: none; min-width: 78px; text-align: center; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 4px 10px; }
.is-live .badge { background: var(--sage-bg); color: var(--sage); }
.is-soon .badge { background: #EDE8F7; color: var(--ink-soft); }
.is-soon { color: var(--ink-soft); }

/* life (dark) */
.lp-sec.dark { background: radial-gradient(120% 90% at 70% 40%, #3A2D6B 0%, #221C3A 55%, #17122B 100%); color: #fff; overflow: clip; }
.dark .lp-h2 { color: #fff; } .dark p { color: #D9D2EE; }
.life { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .life { grid-template-columns: 1fr 1fr; } }
.orbit { position: relative; width: min(100%, 360px); height: 300px; margin: 0 auto; perspective: 900px; transform-style: preserve-3d; }
.orbit { display: grid; place-items: center; }
.orbit::before { content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); transform: rotateX(72deg); }
.orbit .core { position: absolute; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.8rem; background: radial-gradient(circle at 35% 30%, #F8A3B9, #C92F58 60%, #7A1633); box-shadow: 0 0 60px 10px rgba(201, 47, 88, .55); }
.orbit .chip { position: absolute; left: 50%; top: 50%; margin: -18px 0 0 -46px; width: 92px; text-align: center; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); font-weight: 600; font-size: .85rem; transform: rotateY(var(--a)) translateZ(150px); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.orbit-spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-10deg); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotateX(-10deg) rotateY(360deg); } }

/* privacy / final */
.big { color: var(--ink-soft); }
.final { background: linear-gradient(180deg, var(--paper), #E9DDF6); text-align: center; padding-bottom: 0; }
.final .btn { min-height: 56px; padding-inline: 32px; margin-top: 8px; }
.lp-foot { margin-top: clamp(48px, 9vw, 96px); padding: 22px var(--gutter); border-top: 1px solid var(--mist); }
.lp-foot p { margin: 0 auto; text-align: center; color: var(--ink-soft); }

/* pricing */
.plans { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 900px) { .plan .muted { min-height: 3em; } .plans { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; } .plan.pop { translate: 0 -14px; } }
.plan { position: relative; background: #fff; border: 1px solid var(--mist); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; transition: transform .18s ease-out; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.plan h3 { font-size: 1.7rem; } 
.plan .price { margin: 10px 0 14px; } .plan .price b { font-family: var(--font-display); font-weight: 400; font-size: 2.8rem; line-height: 1; } .plan .price span { color: var(--ink-soft); font-size: .95rem; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 12px; height: 7px; border-left: 3px solid var(--sage); border-bottom: 3px solid var(--sage); transform: rotate(-45deg); }
.plan.pop { border: 2px solid var(--rose); box-shadow: 0 30px 60px -28px rgba(201, 47, 88, .65); }
.plan .pop { position: absolute; top: -13px; left: 24px; background: var(--rose); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan.soonplan { background: #F7F4FC; }

/* faq */
.faq { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--rose); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); padding-bottom: 18px; }

/* mobile sticky CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(244, 241, 249, .95) 38%); transform: translateY(110%); transition: transform .35s ease; pointer-events: none; }
.sticky-cta.show { transform: none; } .sticky-cta .btn { pointer-events: auto; min-height: 54px; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  .in .inv-cover { transform: rotateY(-158deg); }
  .photos3d .tile { opacity: 1; }
}

.lp-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lp-login:hover { color: var(--rose); }

/* v0.12.0 — use the whole screen: wider container, bigger type on big monitors, soft edge on the 3D scene */
.lp-wrap { width: min(100%, 1360px); padding-inline: var(--gutter); }
.lp-head-in { width: min(100%, 1360px); }
.lp-wrap.narrow { width: min(100%, 860px); }
.hero-canvas { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
@media (min-width: 900px) {
  .hero { padding-inline: max(var(--gutter), calc((100% - 1360px) / 2)); }
}
@media (min-width: 1200px) {
  .hero-copy h1 { font-size: clamp(3.4rem, 4.7vw, 6rem); line-height: .98; }
  .hero-copy .lead { font-size: 1.4rem; max-width: 34em; }
  .lp-h2 { font-size: clamp(2.6rem, 3.6vw, 4.2rem); max-width: 20ch; }
}
@media (min-width: 900px) { .hero { padding-inline: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter))); } }
