/* Forge public landing page. Everything is scoped under .lp, and only runs for visitors who aren't signed in. */
.lp { --ink: #141414; --soft: #6b6b76; --hair: #ececf3; --wash: #fafafc; --night: #0d0d12; overflow-x: clip; }
.lp h1, .lp h2, .lp h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
:where(.lp) p { margin: 0; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-sec { padding: 110px 0; position: relative; }
.lp-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 14px; }
.lp-title { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; text-wrap: balance; }
.lp-lead { color: var(--soft); font-size: 18px; line-height: 1.6; margin-top: 16px; max-width: 620px; text-wrap: pretty; }
.lp-head { text-align: center; margin-bottom: 56px; }
.lp-head .lp-lead { margin-left: auto; margin-right: auto; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.lp-btn.ghost { background: transparent; color: var(--ink); }
.lp-btn.ghost:hover { background: #f4f4f7; box-shadow: none; }
.lp-btn:focus-visible, .lp button:focus-visible, .lp a:focus-visible, .lp summary:focus-visible { outline: 3px solid #9db4ff; outline-offset: 2px; }

html:has(body.lp-on) { scroll-behavior: smooth; }

/* top bar additions, only while the landing page is showing */
.lp-nav { display: none; align-items: center; gap: 26px; margin-left: 26px; }
.lp-nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
.lp-nav a:hover { color: var(--ink); }
.lp-top { display: none; gap: 8px; }
body.lp-on .lp-nav, body.lp-on .lp-top { display: inline-flex; }
body.lp-on #userchip { display: none; }
body.lp-on .topbar { transition: box-shadow .25s; }
body.lp-on.lp-scrolled .topbar { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20,20,40,.05); }
.lp-top .btn { padding: 8px 16px; }
#lpbar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 20; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--g1), var(--g2), var(--g5), var(--g4)); pointer-events: none; display: none; }
body.lp-on #lpbar { display: block; }

/* hero */
.lp-hero { position: relative; isolation: isolate; padding: 72px 0 40px; text-align: center; }
.lp-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; will-change: transform; }
.lp-orb.a { width: 560px; height: 460px; left: -4%; top: -40px; background: radial-gradient(circle, var(--g1), transparent 70%); opacity: .7; animation: lp-drift 16s ease-in-out infinite alternate; }
.lp-orb.b { width: 620px; height: 500px; right: -6%; top: -60px; background: radial-gradient(circle, var(--g2), transparent 70%); opacity: .55; animation: lp-drift 19s ease-in-out infinite alternate-reverse; }
.lp-orb.c { width: 520px; height: 420px; left: 32%; top: 300px; background: radial-gradient(circle, var(--g4), transparent 70%); opacity: .4; animation: lp-drift 23s ease-in-out infinite alternate; }
@keyframes lp-drift { to { translate: 50px 36px; } }
.lp-hero h1 { font-weight: 800; font-size: clamp(42px, 8vw, 92px); line-height: 1.06; margin: 0 auto; }
.lp-hero h1 .w { display: inline-block; padding-bottom: .14em; margin-bottom: -.14em; }
.lp-anim .lp-hero h1 .w { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); animation: lp-word .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 80ms); }
@keyframes lp-word { to { opacity: 1; transform: none; filter: none; } }
.lp-grad { background: linear-gradient(100deg, #e0559f, #7a6bff 55%, #1fb8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lp-lead { margin: 22px auto 0; font-size: 19px; }
.lp-ask { position: relative; max-width: 700px; margin: 34px auto 0; background: rgba(255,255,255,.92); border-radius: 24px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 6px rgba(20,20,40,.05), 0 24px 60px rgba(20,20,40,.12); }
.lp-ask::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--spin, 0deg), var(--g1), var(--g2), var(--g5), var(--g4), var(--g1)); opacity: .9; animation: lp-spin 7s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lp-spin { to { --spin: 360deg; } }
.lp-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; }
.lp-ask input::placeholder { color: #8a8a94; }
.lp-note { color: var(--soft); font-size: 14px; margin-top: 16px; }

/* the animated build */
.lp-stagewrap { perspective: 1400px; margin-top: 54px; }
.lp-stage { max-width: 1040px; margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(20,20,40,.16); overflow: hidden; text-align: left; transform: rotateX(var(--tilt, 0deg)) scale(var(--grow, 1)); transform-origin: 50% 0; will-change: transform; }
.lp-bar3 { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.lp-bar3 i { width: 11px; height: 11px; border-radius: 50%; background: #e7e7ee; }
.lp-url { margin-left: 12px; font-size: 12px; color: var(--soft); background: var(--wash); border-radius: 999px; padding: 4px 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-split { display: grid; grid-template-columns: 330px 1fr; height: 460px; }
.lp-chat { border-right: 1px solid var(--hair); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow: hidden; }
.lp-bubble { align-self: flex-end; background: #f4f2ff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14px; line-height: 1.45; min-height: 42px; max-width: 100%; }
.lp-caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: lp-blink 1s steps(2) infinite; }
@keyframes lp-blink { 50% { opacity: 0; } }
.lp-work { opacity: 0; transition: opacity .35s; display: flex; flex-direction: column; gap: 10px; }
.lp-work.on { opacity: 1; }
.lp-phase { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lp-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hair); border-top-color: var(--ink); animation: lp-turn .7s linear infinite; }
.lp-spinner.done { border: 0; background: #059669; animation: none; position: relative; }
.lp-spinner.done::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 10px; line-height: 14px; text-align: center; }
@keyframes lp-turn { to { transform: rotate(360deg); } }
.lp-meter { height: 6px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.lp-meter b { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, var(--g2), var(--g5), var(--g4)); transition: width .5s ease; }
.lp-files { list-style: none; margin: 0; padding: 0; font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--soft); display: grid; gap: 6px; }
.lp-files li { display: flex; justify-content: space-between; gap: 8px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.lp-files li.on { opacity: 1; transform: none; }
.lp-files li span { color: #059669; }
.lp-view { position: relative; background: var(--wash); overflow: hidden; min-width: 0; }
.lp-skel { position: absolute; inset: 22px; display: grid; gap: 14px; grid-template-rows: 28px 120px 1fr; transition: opacity .5s; }
.lp-skel div { border-radius: 12px; background: linear-gradient(100deg, #eeeef4 30%, #f8f8fb 50%, #eeeef4 70%); background-size: 220% 100%; animation: lp-shine 1.4s linear infinite; transform: scaleY(0); transform-origin: 0 0; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.lp-skel div.on { transform: none; }
.lp-skel .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; background: none; animation: none; }
.lp-skel .row div { transform: none; }
@keyframes lp-shine { to { background-position: -220% 0; } }
.lp-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.lp-shot.on { opacity: 1; transform: none; }
.lp-live { position: absolute; right: 14px; bottom: 14px; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; gap: 7px; align-items: center; opacity: 0; transform: translateY(10px); transition: opacity .4s .3s, transform .4s .3s; }
.lp-live.on { opacity: 1; transform: none; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }

/* what you get strip */
.lp-tape { padding: 26px 0 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-tape-in { display: flex; width: max-content; gap: 12px; animation: lp-tape 42s linear infinite; }
.lp-tape:hover .lp-tape-in { animation-play-state: paused; }
.lp-tape span { flex: none; border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; color: #3b3b44; }
@keyframes lp-tape { to { transform: translateX(-50%); } }

/* steps */
.lp-steps { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.lp-steplist { position: relative; display: grid; gap: 22vh; padding: 12vh 0 16vh; }
.lp-step { opacity: .32; transition: opacity .4s; }
.lp-step.on { opacity: 1; }
.lp-step b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 18px; margin-bottom: 16px; }
.lp-step h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; }
.lp-step p { color: var(--soft); font-size: 17px; line-height: 1.6; margin-top: 12px; }
.lp-sticky { position: sticky; top: 16vh; height: 68vh; min-height: 420px; }
.lp-panel { position: absolute; inset: 0; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); overflow: hidden; pointer-events: none; }
.lp-panel.on { opacity: 1; transform: none; }
.lp-panel.p1 { background: linear-gradient(140deg, #fffbd6, #ffe9fb); }
.lp-panel.p2 { background: linear-gradient(140deg, #e9edff, #e2fbf6); }
.lp-panel.p3 { background: linear-gradient(140deg, #e7fbdc, #e2fbf6); }
.lp-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(20,20,40,.08); font-size: 15px; line-height: 1.5; }
.lp-chipattach { display: inline-flex; gap: 8px; align-items: center; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; box-shadow: 0 6px 18px rgba(20,20,40,.08); width: fit-content; }
.lp-planrow { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 7px 0; }
.lp-planrow i { width: 18px; height: 18px; border-radius: 50%; background: #059669; color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; flex: none; }
.lp-planrow.wait i { background: none; border: 2px solid var(--hair); border-top-color: var(--ink); animation: lp-turn .8s linear infinite; }
.lp-devices { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.lp-dev { background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(20,20,40,.14); }
.lp-dev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 7px; }
.lp-dev.d { width: 62%; aspect-ratio: 16/10; }
.lp-dev.t { width: 24%; aspect-ratio: 3/4; }
.lp-dev.m { width: 13%; aspect-ratio: 9/19; }
.lp-publish { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.lp-publish code { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* no-work comparison */
.lp-easy { background: var(--wash); }
.lp-compare { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid var(--hair); overflow: hidden; }
.lp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 17px 26px; border-top: 1px solid var(--hair); align-items: center; font-size: 15px; }
.lp-cmp:first-child { border-top: 0; font-weight: 600; font-size: 13px; color: var(--soft); background: var(--wash); }
.lp-cmp s { color: #8a8a94; text-decoration-color: #d4d4dc; }
.lp-cmp span { font-weight: 600; }
.lp-cmp span::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7fbdc; color: #047857; font-size: 12px; margin-right: 10px; }
.lp-cmp:first-child span { font-weight: 600; }
.lp-cmp:first-child span::before { display: none; }

/* features */
.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lp-f { --mx: 50%; --my: 0%; position: relative; grid-column: span 2; background: #fff; border: 1px solid var(--hair); border-radius: 22px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 300px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.lp-f.w3 { grid-column: span 3; }
.lp-f.w4 { grid-column: span 4; }
.lp-f::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(340px circle at var(--mx) var(--my), rgba(157,180,255,.2), rgba(245,124,255,.08) 45%, transparent 70%); }
.lp-f:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(20,20,40,.1); }
.lp-f:hover::before { opacity: 1; }
.lp-f h3 { font-size: 22px; font-weight: 800; line-height: 1.15; }
.lp-f p { color: var(--soft); font-size: 15px; line-height: 1.55; }
.lp-demo { margin-top: auto; padding-top: 16px; font-size: 13px; position: relative; }
.lp-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-stack div { border-radius: 14px; padding: 16px 12px; font-weight: 600; text-align: center; font-size: 14px; background: var(--wash); animation: lp-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .35s); }
.lp-stack div:nth-child(1) { background: #fffbd6; } .lp-stack div:nth-child(2) { background: #ffe9fb; } .lp-stack div:nth-child(3) { background: #e9edff; } .lp-stack div:nth-child(4) { background: #e2fbf6; }
@keyframes lp-bob { 50% { transform: translateY(-7px); } }
.lp-ticks { display: grid; gap: 8px; }
.lp-ticks div { display: flex; gap: 9px; align-items: center; opacity: .35; transition: opacity .3s; }
.lp-ticks i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hair); font-style: normal; font-size: 11px; display: grid; place-items: center; color: transparent; flex: none; transition: background .25s, color .25s, border-color .25s; }
.lp-ticks div.on { opacity: 1; }
.lp-ticks div.on i { background: #059669; border-color: #059669; color: #fff; }
.lp-route { display: grid; gap: 8px; }
.lp-route div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: var(--wash); border-radius: 10px; padding: 9px 12px; transition: background .3s, transform .3s; }
.lp-route div.on { background: #e9edff; transform: translateX(4px); }
.lp-route em { font-style: normal; font-weight: 600; font-size: 12px; }
.lp-swatches { display: flex; gap: 12px; align-items: center; }
.lp-pic { width: 86px; height: 86px; border-radius: 14px; background: linear-gradient(135deg, #ff7a59 0 35%, #ffd166 35% 60%, #118ab2 60% 82%, #073b4c 82%); flex: none; }
.lp-swatches ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lp-swatches li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i) * 110ms); }
.in .lp-swatches li, .lp-noanim .lp-swatches li { transform: none; }
.lp-time { display: grid; gap: 0; }
.lp-time div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 7px 18px; position: relative; border-left: 2px solid var(--hair); }
.lp-time div::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.lp-time a { text-decoration: underline; font-weight: 600; font-size: 12px; pointer-events: none; }
.lp-talk { display: grid; gap: 8px; }
.lp-talk div { max-width: 86%; border-radius: 14px; padding: 9px 12px; background: var(--wash); line-height: 1.4; }
.lp-talk div:nth-child(odd) { justify-self: end; background: #f4f2ff; }
.lp-screens { display: flex; align-items: flex-end; justify-content: center; height: 118px; }
.lp-screen { height: 100%; border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(135deg, #fffbd6, #ffe9fb 55%, #e2fbf6); animation: lp-morph 7s ease-in-out infinite; }
@keyframes lp-morph { 0%, 22% { width: 92%; } 38%, 58% { width: 46%; } 74%, 90% { width: 22%; } 100% { width: 92%; } }
.lp-pub { display: flex; gap: 8px; align-items: center; background: var(--wash); border-radius: 999px; padding: 6px 6px 6px 14px; }
.lp-pub code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-size: 12px; }
.lp-pub span { background: var(--ink); color: #fff; font-weight: 600; font-size: 12px; padding: 7px 13px; border-radius: 999px; flex: none; }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tabs span { border-radius: 999px; padding: 7px 12px; background: var(--wash); font-weight: 500; animation: lp-pulse 7.5s infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes lp-pulse { 0%, 18%, 100% { background: var(--wash); color: inherit; } 3%, 15% { background: var(--ink); color: #fff; } }
.lp-code { background: var(--night); color: #d7d7e4; border-radius: 12px; padding: 12px 14px; font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace; overflow: hidden; white-space: pre; }
.lp-code i { font-style: normal; color: #ff9ee0; }
.lp-code u { text-decoration: none; color: #7ff5e6; }
.lp-flow { display: flex; align-items: center; gap: 12px; }
.lp-flow span { flex: 1; border-radius: 12px; padding: 14px 10px; text-align: center; font-weight: 600; background: var(--wash); min-width: 0; }
.lp-flow span:last-child { background: #e2fbf6; }
.lp-flow i { flex: none; font-style: normal; animation: lp-nudge 1.5s ease-in-out infinite; }
@keyframes lp-nudge { 50% { transform: translateX(5px); } }
.lp-hello { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; transition: opacity .3s, transform .3s; }
.lp-hello.out { opacity: 0; transform: translateY(8px); }
.lp-cur { color: var(--soft); font-size: 14px; margin-top: 4px; }
.lp-know { text-align: center; margin-top: 56px; }
.lp-know h3 { font-size: 24px; font-weight: 800; }
.lp-know .lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.lp-know .lp-chips span { border: 1px solid var(--hair); border-radius: 999px; padding: 8px 14px; font-size: 14px; transition: transform .2s, background .2s; }
.lp-know .lp-chips span:hover { transform: translateY(-3px); background: #f4f2ff; }

/* gallery */
.lp-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.lp-filters button { border: 1px solid var(--hair); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.lp-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lp-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 0; border: 0; background: #fff; text-align: left; border-radius: 18px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--hair); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, opacity .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); color: inherit; font: inherit; }
.lp-tile:hover { box-shadow: 0 0 0 1px var(--hair), 0 26px 56px rgba(20,20,40,.16); }
.lp-tile.hide { display: none; }
.lp-tile figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--wash); }
.lp-tile img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lp-tile:hover img { transform: scale(1.05); }
.lp-cap { padding: 14px 16px 16px; }
.lp-cap b { display: block; font-family: var(--display); font-size: 19px; font-weight: 800; }
.lp-cap q { display: block; quotes: "“" "”"; color: var(--soft); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.lp-galnote { text-align: center; color: var(--soft); font-size: 14px; margin-top: 22px; }
#lpbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, calc(100vw - 32px)); width: 100%; }
#lpbox::backdrop { background: rgba(10,10,16,.75); backdrop-filter: blur(6px); }
#lpbox img { width: 100%; display: block; border-radius: 14px; }
#lpbox button { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer; }

/* questions */
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq details { border-top: 1px solid var(--hair); }
.lp-faq details:last-child { border-bottom: 1px solid var(--hair); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .25s; color: var(--soft); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { color: var(--soft); line-height: 1.65; padding: 0 4px 22px; }

/* closing call */
.lp-end { position: relative; isolation: isolate; background: var(--night); color: #fff; text-align: center; padding: 130px 24px; overflow: hidden; }
.lp-end::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; border-radius: 50%; background: conic-gradient(from var(--spin, 0deg), #f57cff, #9db4ff, #7ff5e6, #fff36b, #f57cff); filter: blur(120px); opacity: .34; animation: lp-spin 14s linear infinite; }
.lp-end h2 { font-weight: 800; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; max-width: 12em; margin: 0 auto; text-wrap: balance; }
.lp-end p { color: rgba(255,255,255,.72); font-size: 18px; margin: 20px auto 32px; max-width: 520px; line-height: 1.55; }
.lp-end .lp-btn { background: #fff; color: var(--ink); border-color: #fff; }
.lp-foot { background: var(--night); color: rgba(255,255,255,.55); padding: 0 24px 34px; font-size: 14px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.lp-foot a { color: inherit; margin-left: 18px; }
.lp-foot a:hover { color: #fff; }

/* sign-in dialog */
#authdlg { border: 0; border-radius: 26px; padding: 34px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 90px rgba(10,10,30,.35); color: var(--text); }
#authdlg::backdrop { background: rgba(14,14,22,.5); backdrop-filter: blur(6px); }
#authdlg[open] { animation: lp-pop .3s cubic-bezier(.2,.9,.3,1.1); }
@keyframes lp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
#authdlg h2 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
#authdlg p.sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
#authdlg input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font: inherit; margin-bottom: 10px; }
#authdlg input:focus { outline: 2px solid #9db4ff; border-color: transparent; }
#authdlg .lp-btn { width: 100%; margin-top: 6px; }
#authdlg .swap { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; cursor: pointer; display: block; margin: 16px auto 0; }
#authdlg .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f4f4f7; cursor: pointer; font-size: 15px; }
#authmsg { color: var(--red); font-size: 14px; margin: 8px 0 0; min-height: 1em; }

/* scroll reveal: only hidden when animation is actually running */
.lp-anim .rv { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s; transition-delay: calc(var(--d, 0) * 80ms); }
.lp-anim .rv.in { opacity: 1; transform: none; filter: none; }
.lp-anim .lp-f.rv.in { transition: opacity .8s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, filter .8s; }


/* first-version guide */
.lp-guide { background: var(--wash); }
.lp-guide-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.lp-guide-copy .lp-title { font-size: clamp(30px, 4vw, 46px); }
.lp-gsteps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-gsteps li { padding: 12px 16px; border-left: 3px solid var(--hair); transition: border-color .3s, background .3s; }
.lp-gsteps li.on { border-left-color: #7a6bff; background: #fff; }
.lp-gsteps b { display: block; font-size: 16px; }
.lp-gsteps span { display: block; margin-top: 2px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.lp-gstage { position: relative; min-width: 0; }
.lp-gcomp { background: #fff; border: 1px solid var(--hair); border-radius: 20px; padding: 14px 16px; box-shadow: 0 16px 44px rgba(20,20,40,.07); }
.lp-gline { min-height: 24px; font-size: 15px; }
.lp-gopts { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; margin-top: 10px; }
.lp-gpill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; font-size: 13px; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
.lp-gpill.on { opacity: 1; transform: none; }
.lp-gfile i { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, var(--a, #7a6bff), var(--b, #1fb8a6)); }
.lp-gref { position: absolute; z-index: 2; right: -14px; top: 96px; width: 132px; height: 100px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; padding: 7px; border-radius: 12px; background: var(--bg, #fff); box-shadow: 0 18px 40px rgba(20,20,40,.22); opacity: 0; transform: translateY(-46px) rotate(9deg) scale(.8); transition: opacity .3s, transform .55s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.lp-gref i { border-radius: var(--r, 6px); background: var(--a, #7a6bff); }
.lp-gref i:first-child { grid-row: 1 / 3; background: var(--ink, #141414); }
.lp-gref i:last-child { background: var(--b, #1fb8a6); }
.lp-gref.in { opacity: 1; transform: rotate(-4deg); }
.lp-gref.in.docked { opacity: 0; transform: translate(-60px, -84px) scale(.14); transition: opacity .4s .1s, transform .42s cubic-bezier(.5,0,.8,.4); }
.lp-gsite { --bg: #fff; --ink: #141414; --a: #d9d9e3; --b: #ececf3; --r: 10px; margin-top: 16px; overflow: hidden; border: 1px solid var(--hair); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(20,20,40,.1); }
.lp-gbar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hair); background: #fff; }
.lp-gbar i { width: 9px; height: 9px; border-radius: 50%; background: #e7e7ee; }
.lp-gbody { height: 250px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 22px; align-items: center; background: #f6f6fa; color: transparent; transition: background .6s, color .6s; }
.lp-gsite.built .lp-gbody { background: var(--bg); color: var(--ink); }
.lp-gtext { min-width: 0; }
.lp-gtext strong { display: block; font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.08; min-height: 1.1em; }
.lp-gtext u { display: block; height: 7px; width: 88%; margin-top: 9px; border-radius: 4px; background: #e7e7ee; opacity: .8; transition: background .6s; }
.lp-gtext u + u { width: 62%; }
.lp-gsite.built .lp-gtext u { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.lp-gcta { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; background: #e7e7ee; color: transparent; transform: scale(.9); transition: background .5s .2s, color .5s .2s, transform .5s .2s cubic-bezier(.2,1.6,.4,1); }
.lp-gsite.built .lp-gcta { background: var(--a); color: var(--bg); transform: none; }
.lp-gart { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; min-width: 0; }
.lp-gart i { border-radius: var(--r); background: #e7e7ee; opacity: .7; transform: scale(.92); transition: background .5s, opacity .5s, transform .55s cubic-bezier(.2,1.5,.4,1); }
.lp-gsite.built .lp-gart i { opacity: 1; transform: none; background: var(--a); }
.lp-gsite.built .lp-gart i:nth-child(2) { background: var(--b); transition-delay: .08s; }
.lp-gsite.built .lp-gart i:nth-child(3) { background: color-mix(in srgb, var(--ink) 16%, var(--bg)); transition-delay: .16s; }
.lp-gsite.built .lp-gart i:nth-child(4) { background: var(--b); transition-delay: .24s; }
.lp-gsite[data-layout="service"] .lp-gart i:first-child { grid-column: 1 / 3; }
.lp-gsite[data-layout="service"] .lp-gart i:last-child { display: none; }
.lp-gsite[data-layout="game"] .lp-gbody { grid-template-columns: 1fr; text-align: center; }
.lp-gsite[data-layout="game"] .lp-gtext u { display: none; }
.lp-gsite[data-layout="game"] .lp-gtext strong { font-size: clamp(26px, 4vw, 40px); }
.lp-gsite[data-layout="game"] .lp-gart { grid-template-columns: repeat(4, 1fr); height: 54px; }
.lp-gsite[data-layout="event"] .lp-gbody { grid-template-columns: 1.7fr .7fr; }
.lp-gsite[data-layout="event"] .lp-gtext strong { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.lp-gsite[data-layout="event"] .lp-gart { grid-template-columns: 1fr; }
.lp-gsite[data-layout="event"] .lp-gart i:nth-child(n+3) { display: none; }
@media (max-width: 980px) {
  .lp-guide-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-gref { right: 0; }
  .lp-nav { display: none !important; }
  .lp-split { grid-template-columns: 1fr; height: auto; }
  .lp-view { order: -1; aspect-ratio: 16/10; }
  .lp-chat { border-right: 0; border-top: 1px solid var(--hair); height: 250px; }
  .lp-steps { grid-template-columns: 1fr; gap: 0; }
  .lp-sticky { order: -1; top: 66px; height: 42vh; min-height: 280px; z-index: 2; background: #fff; box-shadow: 0 0 0 8px #fff; }
  .lp-panel { padding: 18px; }
  .lp-steplist { gap: 26vh; padding: 6vh 0 22vh; }
  .lp-f, .lp-f.w3, .lp-f.w4 { grid-column: span 3; }
  .lp-gal { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-sec { padding: 76px 0; }
  .lp-wrap { padding: 0 16px; }
  .lp-hero { padding-top: 40px; }
  .lp-ask { flex-direction: column; align-items: stretch; padding: 10px 12px; }
  .lp-ask .lp-btn { width: 100%; }
  .lp-lead, .lp-hero .lp-lead { font-size: 17px; }
  .lp-f, .lp-f.w3, .lp-f.w4 { grid-column: span 6; min-height: 0; }
  .lp-gal { grid-template-columns: 1fr; }
  .lp-cmp { padding: 14px 16px; font-size: 14px; }
  .lp-top .btn.ghostbtn { display: none; }
  .lp-stack { grid-template-columns: 1fr 1fr; }
  .logo small { display: none; }
  .lp-foot a { margin: 0 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.lp-on) { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { animation: none !important; }
  .lp .lp-tape-in { flex-wrap: wrap; width: auto; justify-content: center; }
  .lp .lp-screen { width: 60%; }
  .lp .lp-gref { display: none; }
}
