/* Landing page + sign-up dialog. Self-contained: everything is scoped under .lp / .auth. */
.lp, .auth { --z50: #fafafa; --z100: #f4f4f5; --z200: #e4e4e7; --z300: #d4d4d8; --z400: #a1a1aa; --z500: #71717a; --z600: #52525b;
  --z700: #3f3f46; --z800: #27272a; --z950: #09090b; --gain: #2b7355; --loss: #b4352a; --accent: #468767;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Fraunces", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace; }
#app > .lp { max-width: none; margin: 0; }
.lp { position: fixed; inset: 0; overflow-y: auto; background: #fff; color: var(--z950); font-family: var(--sans); -webkit-font-smoothing: antialiased; z-index: 50; }
.lp * { box-sizing: border-box; }
.lp a { color: inherit; }
.lp-shell { position: relative; display: flex; min-height: 100dvh; flex-direction: column; }
.lp-head { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.lp-signin { pointer-events: auto; border-radius: 999px; border: 1px solid var(--z300); background: #fff; padding: 6px 16px; font: 500 12px/16px var(--sans); color: var(--z950); cursor: pointer; transition: background-color .15s; }
.lp-signin:hover { background: var(--z100); }
.lp-main { position: relative; z-index: 20; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.lp-card { display: flex; width: 100%; max-width: 448px; flex-direction: column; align-items: center; text-align: center; }
.lp-logo { display: flex; align-items: center; gap: 19px; margin: 0; font: 600 44px/1 var(--serif); letter-spacing: -0.025em; }
.lp-logo svg { width: 46px; height: 46px; display: block; flex-shrink: 0; }
.lp-sub { margin: 40px 0 0; min-height: 4.875rem; max-width: 448px; font-size: 16px; line-height: 1.625; color: var(--z600); }
.lp-ask { position: relative; margin-top: 40px; display: flex; width: 100%; flex-direction: column; align-items: center; }
.lp-arrow { position: absolute; top: -32px; left: 50%; height: 20px; width: 16px; margin-left: -8px; color: var(--accent); animation: lp-bob 1.6s ease-in-out infinite; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(4px); opacity: .55; } }
.lp-box { display: flex; width: 100%; max-width: 384px; align-items: flex-end; gap: 8px; border-radius: 26px; border: 1px solid var(--z300); background: #fff; padding: 6px 6px 6px 18px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.lp-box:focus-within { border-color: var(--z950); box-shadow: 0 0 0 4px rgba(9, 9, 11, .06); }
.lp-box textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 0; max-height: 132px; font: 400 15px/22px var(--sans); color: var(--z950); }
.lp-box textarea::placeholder { color: var(--z400); }
.lp-send { display: flex; height: 40px; width: 40px; flex-shrink: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--z950); color: #fff; cursor: pointer; transition: background-color .15s, opacity .15s; }
.lp-send:hover { background: var(--z800); }
.lp-send:disabled { opacity: .35; cursor: default; }
.lp-send svg { width: 16px; height: 16px; }
.lp-ideas { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 384px; }
.lp-ideas button { border: 1px solid var(--z200); background: #fff; border-radius: 999px; padding: 5px 11px; font: 400 12px/16px var(--sans); color: var(--z600); cursor: pointer; transition: background-color .15s, color .15s; }
.lp-ideas button:hover { background: var(--z100); color: var(--z950); }
.lp-legal { margin: 24px 0 0; max-width: 384px; font-size: 12px; line-height: 1.625; color: var(--z500); }
.lp-legal a { text-decoration: underline; }
.lp-list { margin-top: 56px; width: 100%; max-width: 384px; text-align: left; }
.lp-list h2 { margin: 0; border-bottom: 1px solid var(--z200); padding-bottom: 8px; font: 500 11px/16px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--z700); }
.lp-list ol { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--z100); }
.lp-list li:first-child { border-top: 0; }
.lp-rank { width: 12px; flex-shrink: 0; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--z400); }
.lp-icon { display: block; flex-shrink: 0; overflow: hidden; background: var(--z100); border: 1px solid #cfcfc9; }
.lp-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-t { min-width: 0; flex: 1; }
.lp-t p { margin: 0; }
.lp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.25 var(--serif); letter-spacing: -0.025em; color: var(--z950); margin-bottom: -4px !important; padding-bottom: 4px; }
.lp-by { margin-top: 2px !important; display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 12px; color: var(--z500); }
.lp-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-face { width: 20px; height: 20px; flex-shrink: 0; border-radius: 999px; background: var(--z100); display: inline-flex; align-items: center; justify-content: center; font: 600 10px/1 var(--sans); color: var(--z600); overflow: hidden; }
.lp-face svg { width: 20px; height: 20px; }
.lp-pnl { flex-shrink: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gain); }
.lp-pnl.neg, .lp-cardpnl.neg { color: var(--loss); }
.lp-foot { margin-top: 32px; width: 100%; border-top: 1px solid var(--z100); padding-top: 16px; text-align: center; font-size: 12px; color: var(--z400); }
.lp-foot p { margin: 0; }
.lp-foot .lp-dis { margin: 0 auto 8px; max-width: 448px; line-height: 1.625; color: var(--z300); }
.lp-foot a { text-decoration: none; text-underline-offset: 2px; }
.lp-foot a:hover { text-decoration: underline; }
.lp-scatter { display: none; }

@media (min-width: 640px) {
  .lp-shell { background: var(--z50); }
  .lp-head { position: absolute; inset: 0 0 auto 0; padding: 20px 24px; pointer-events: none; }
  .lp-main { pointer-events: none; }
  .lp-card { pointer-events: auto; width: 460px; max-width: none; border-radius: 28px; background: #fff; padding: 48px 40px 20px;
    box-shadow: 0 1px 3px rgba(10, 10, 10, .05), 0 30px 70px -20px rgba(10, 10, 10, .24), 0 0 0 1px rgba(228, 228, 231, .7); }
  .lp-sub { min-height: 3.25rem; }
  .lp-list { display: none; }
  .lp-foot { display: block; }
  .lp-scatter { display: block; position: absolute; inset: 0; z-index: 10; overflow: hidden; --card-scale: .6; }
}
@media (min-width: 768px) { .lp-scatter { --card-scale: .7; } }
@media (min-width: 1024px) { .lp-scatter { --card-scale: 1; } }

.lp-slot { position: absolute; transform-origin: var(--so); --sx: var(--sx-md); --sy: var(--sy-md); --so: var(--so-md); }
@media (min-width: 1024px) { .lp-slot { --sx: var(--sx-lg); --sy: var(--sy-lg); --so: center; } }
.lp-slot.wide { display: none; }
@media (min-width: 1536px) { .lp-slot.wide { display: block; } }
.lp-art { position: relative; width: 236px; border-radius: 16px; background: #fff; padding: 16px; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .05), 0 8px 22px rgba(10, 10, 10, .08), 0 0 0 1px rgba(228, 228, 231, .8); }
.lp-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: 16px; background: #fff; opacity: .45; transition: opacity .2s; }
.lp-slot:hover .lp-art::after { opacity: 0; transition-delay: .15s; }
.lp-art h3 { margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 17px/1.2 var(--serif); letter-spacing: -0.025em; color: var(--z950); }
.lp-art .lp-by { margin-top: 6px !important; }
.lp-art .lp-blurb { margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--z600); }
.lp-cardpnl { margin: 12px 0 0; border-top: 1px solid var(--z100); padding-top: 10px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gain); }

/* ---------------- sign-up dialog ---------------- */
.auth { --page: #0f0f10; --sep: rgba(255, 255, 255, .08); --fg: #fff; --fg2: rgba(255, 255, 255, .6); --fg3: rgba(255, 255, 255, .32); --lime: #d1fe17;
  position: fixed; inset: 0; z-index: 3001; display: flex; font-family: var(--sans); color: var(--fg); -webkit-font-smoothing: antialiased; }
.auth * { box-sizing: border-box; }
.auth-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); animation: auth-fade .2s ease-out; }
@keyframes auth-fade { from { opacity: 0; } }
@keyframes auth-in { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.auth-dlg { position: fixed; z-index: 3002; inset: 0; margin: auto; width: calc(100% - 1.5rem); max-width: 22rem; height: 38.75rem; max-height: calc(100dvh - 1.5rem);
  background: var(--page); border-radius: 1.25rem; border: 1px solid var(--sep); box-shadow: inset 0 0 2rem 0 rgba(0, 0, 0, .2); display: flex; overflow: hidden; outline: none; animation: auth-in .22s ease-out; }
@media (min-width: 768px) { .auth-dlg { width: 35rem; max-width: calc(100vw - 3rem); height: 43.75rem; max-height: calc(100dvh - 3rem); border-radius: 1.5rem; } }
@media (min-width: 1280px) { .auth-dlg { width: 70rem; max-width: calc(100vw - 4rem); height: min(48.5rem, calc(100dvh - 4rem)); } }
.auth-x { position: absolute; top: 12px; right: 12px; z-index: 10; width: 28px; height: 28px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .04);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; transition: background-color .15s; padding: 0; }
.auth-x:hover { background: rgba(255, 255, 255, .1); }
.auth-x svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .auth-x { top: 20px; right: 20px; width: 32px; height: 32px; } }

.auth-media { display: none; }
@media (min-width: 1280px) { .auth-media { display: block; width: 50%; min-height: 0; padding: 12px; } }
.auth-stage { position: relative; height: 100%; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.auth-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.auth-slide.on { opacity: 1; }
.auth-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .2), rgba(0, 0, 0, .8)); }
.auth-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 32px; z-index: 2; }
.auth-chips { display: flex; gap: 4px; }
.auth-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 10px; font-weight: 600; line-height: 14px; background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(16px); }
.auth-chip svg { width: 16px; height: 16px; }
.auth-title { margin: 0; font: 700 40px/48px var(--sans); letter-spacing: -0.8px; text-transform: uppercase; color: #fff; }
.auth-desc { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .5); }
.auth-bars, .auth-tabs { display: flex; gap: 4px; }
.auth-bars button { flex: 1; min-width: 0; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; border: 0; padding: 0; cursor: pointer; }
.auth-bars i { display: block; height: 100%; width: 0; background: #fff; border-radius: 999px; }
.auth-tabs button { flex: 1; min-width: 0; text-align: left; font: 400 12px/18px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .4); background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s; }
.auth-tabs button:hover { color: rgba(255, 255, 255, .6); }
.auth-tabs button.on { color: #fff; font-weight: 500; }
.auth-tabsbox { display: flex; flex-direction: column; gap: 8px; }

/* slide artwork (pure CSS/SVG, no external media) */
.sv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px 40px 220px; }
.sv-1 { background: radial-gradient(120% 80% at 30% 20%, #1c5840 0%, #0b1f17 45%, #000 100%); }
.sv-2 { background: radial-gradient(120% 90% at 70% 10%, #2b2f12 0%, #121405 45%, #000 100%); }
.sv-3 { background: radial-gradient(120% 90% at 50% 0%, #123a2b 0%, #06140e 50%, #000 100%); }
.sv-4 { background: radial-gradient(120% 90% at 20% 10%, #23233a 0%, #0c0c16 50%, #000 100%); }
.sv-bubble { max-width: 360px; width: 100%; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 18px 20px; font: 400 20px/1.4 var(--sans); color: #fff; backdrop-filter: blur(12px); }
.sv-bubble .cur { display: inline-block; width: 2px; height: 22px; background: var(--lime); vertical-align: -4px; margin-left: 2px; animation: sv-blink 1s steps(1) infinite; }
@keyframes sv-blink { 50% { opacity: 0; } }
.sv-label { font: 500 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.sv-tick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 380px; }
.sv-tick div { border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 10px 12px; opacity: 0; transform: translateY(8px); animation: sv-up .5s ease forwards; }
.sv-tick b { display: block; font: 600 15px/20px var(--mono); color: var(--lime); }
.sv-tick span { font-size: 12px; color: rgba(255, 255, 255, .55); }
@keyframes sv-up { to { opacity: 1; transform: none; } }
.sv-chart { width: 100%; max-width: 420px; }
.sv-chart .big { font: 700 64px/1 var(--sans); letter-spacing: -2px; color: var(--lime); }
.sv-chart .who { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.sv-chart svg { margin-top: 18px; width: 100%; height: 140px; overflow: visible; }
.sv-chart path.line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.auth-slide.on .sv-chart path.line { animation: sv-draw 2.4s ease forwards; }
@keyframes sv-draw { to { stroke-dashoffset: 0; } }
.sv-rows { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 8px; }
.sv-rows div { display: flex; align-items: center; gap: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 10px 14px; }
.sv-rows img, .sv-rows i { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.sv-rows b { flex: 1; min-width: 0; font: 600 14px/18px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-rows em { font-style: normal; font: 600 14px/18px var(--mono); color: var(--lime); }

.auth-side { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 20px; overflow-y: auto; scrollbar-width: none; }
.auth-side::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .auth-side { padding: 32px 88px; } }
.auth-inner { width: 100%; margin: auto 0; }
.auth-headb { margin-bottom: 24px; display: flex; flex-direction: column; text-align: center; width: 100%; gap: 16px; }
@media (min-width: 768px) { .auth-headb { margin-bottom: 40px; } }
.auth-mark { display: flex; width: 100%; justify-content: center; }
.auth-mark svg { width: 32px; height: 32px; }
.auth-h { margin: 0; font: 600 24px/32px var(--sans); text-wrap: balance; }
.auth-p { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--fg2); }
.auth-col { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.auth-promo { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 12px; background: rgba(209, 254, 23, .1); font-size: 14px; font-weight: 500; color: var(--lime); text-align: center; }
.auth-promo svg { display: none; width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 768px) { .auth-promo svg { display: block; } }
.auth-btn { position: relative; width: 100%; padding: 14px 12px; border-radius: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; font: 600 14px/20px var(--sans);
  background: transparent; color: var(--fg); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; transition: border-color .15s, opacity .15s; }
.auth-btn:hover { border-color: #fff; }
.auth-btn:disabled { opacity: .5; cursor: default; border-color: rgba(255, 255, 255, .1); }
.auth-btn.primary { background: var(--lime); color: #131313; border-color: var(--lime); }
.auth-btn.primary:hover { opacity: .9; }
@media (min-width: 768px) { .auth-btn { padding: 20px 12px; } }
.auth-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-or { display: flex; justify-content: center; font-size: 12px; color: var(--fg3); }
.auth-field { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: #fff; font: 400 15px/20px var(--sans); outline: none; transition: border-color .15s; }
.auth-field:focus { border-color: rgba(255, 255, 255, .5); }
.auth-field.code { text-align: center; font: 600 22px/28px var(--mono); letter-spacing: .4em; }
.auth-link { background: none; border: 0; padding: 0; color: var(--fg2); font: 400 13px/18px var(--sans); text-decoration: underline; cursor: pointer; }
.auth-agree { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 4px; }
.auth-agree label { display: flex; gap: 12px; align-items: center; cursor: pointer; width: 100%; }
@media (max-width: 767px) { .auth-agree label { padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); } }
.auth-agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-box { width: 18px; height: 18px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background-color .15s; border: 1px solid rgba(255, 255, 255, .25); }
.auth-agree input:checked + .auth-box { background: var(--lime); border-color: var(--lime); }
.auth-box svg { width: 12px; height: 12px; color: #131313; opacity: 0; }
.auth-agree input:checked + .auth-box svg { opacity: 1; }
.auth-agree input:focus-visible + .auth-box { outline: 2px solid var(--lime); outline-offset: 2px; }
.auth-agree .t { flex: 1; min-width: 0; font-size: 12px; line-height: 16px; color: #fff; text-align: left; }
.auth-agree .t a { color: #fff; font-weight: 500; text-decoration: underline; }
.auth-warn { margin: 0; font-size: 12px; line-height: 16px; color: var(--lime); visibility: hidden; }
.auth-warn.on { visibility: visible; }
.auth-err { margin: 0; min-height: 16px; font-size: 12px; line-height: 16px; color: #ff8a7a; text-align: center; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 12px; }
.auth-foot svg { width: 18px; height: 18px; color: var(--fg2); }
.auth-foot p { margin: 0; font-size: 13px; font-weight: 500; text-align: center; color: var(--fg2); }
#clerk-captcha:empty { display: none; }
#clerk-captcha { margin: 16px auto 0; }
.auth-spin { width: 16px; height: 16px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: auth-rot .7s linear infinite; }
@keyframes auth-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-arrow, .sv-bubble .cur, .auth-spin { animation: none; } .auth-slide { transition: none; } }
