/* TraderMemo — shared tokens + marketing pages */
:root {
  --bg: #060A22;
  --bg-2: #0A1030;
  --surface: #0D1438;
  --surface-2: #121A44;
  --card: rgba(255, 255, 255, .035);
  --line: rgba(148, 163, 255, .12);
  --line-2: rgba(148, 163, 255, .22);
  --text: #E9ECFF;
  --muted: #9097C4;
  --dim: #7C84B6;   /* 4.5:1+ on page and cards (WCAG AA) */
  --blue: #5AA9FF;
  --indigo: #8F7CFF;
  --violet: #C27BFF;
  --grad: linear-gradient(135deg, #5AA9FF 0%, #8F7CFF 55%, #C27BFF 100%);
  --win: #3DDC97;
  --loss: #FF6B81;
  --win-bg: rgba(61, 220, 151, .12);
  --loss-bg: rgba(255, 107, 129, .12);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(143, 124, 255, .45); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(148, 163, 255, .35); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  border: 0; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 30px -8px rgba(143, 124, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); box-shadow: 0 10px 36px -8px rgba(143, 124, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: #fff; color: #060A22; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
main:focus, #main:focus { outline: none; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 19px/1 var(--display); letter-spacing: -.01em; }

/* ---------- marketing layout ---------- */
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.site-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 10, 34, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-nav.scrolled { border-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-nav nav { display: flex; align-items: center; gap: 28px; }
.site-nav nav a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.site-nav nav a.link:hover { color: var(--text); }
.site-nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }

.glow-bg { position: relative; overflow: hidden; isolation: isolate; }
.glow-bg::before, .glow-bg::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.glow-bg::before { width: 620px; height: 620px; left: -180px; top: -260px; background: rgba(90, 169, 255, .22); }
.glow-bg::after { width: 680px; height: 680px; right: -220px; top: 120px; background: rgba(194, 123, 255, .18); }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero { padding: 84px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); }
.hero h1 {
  font: 700 clamp(40px, 7vw, 76px)/1.04 var(--display);
  letter-spacing: -.035em; margin: 22px auto 18px; max-width: 900px;
}
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* hero product mock */
.mock {
  margin: 64px auto 0; max-width: 1040px; text-align: left;
  border-radius: 22px; padding: 1px;
  background: linear-gradient(180deg, rgba(148, 163, 255, .35), rgba(148, 163, 255, .04) 60%);
  box-shadow: 0 40px 120px -30px rgba(90, 100, 255, .45);
}
.mock-inner { border-radius: 21px; background: linear-gradient(180deg, #0D1438, #080D2A); padding: 18px; }
.mock-bar { display: flex; gap: 7px; margin-bottom: 16px; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pos { color: var(--win); } .neg { color: var(--loss); }

.section { padding: 110px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font: 700 clamp(30px, 4.6vw, 46px)/1.1 var(--display); letter-spacing: -.03em; margin: 12px 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(90, 169, 255, .18), rgba(194, 123, 255, .18));
  border: 1px solid rgba(148, 163, 255, .25);
}
.feature .ico svg { width: 22px; height: 22px; stroke: #B9C2FF; }
.feature h3 { font: 600 18px/1.3 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 14px/1 var(--display); letter-spacing: .08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font: 600 18px/1.3 var(--display); margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.stat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-list div { background: var(--bg-2); padding: 24px; }
.stat-list b { display: block; font: 600 17px/1.3 var(--display); margin-bottom: 6px; }
.stat-list span { color: var(--muted); font-size: 14px; }

.final-cta {
  margin: 120px 0 0; padding: 64px 32px; text-align: center; border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(90, 169, 255, .22), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(194, 123, 255, .22), transparent 60%),
    var(--bg-2);
}
.final-cta img { width: 64px; height: 64px; margin: 0 auto 20px; }
.final-cta h2 { font: 700 clamp(28px, 4.4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 12px; }
.final-cta p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }

.site-foot { margin-top: 110px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px;
  background: linear-gradient(180deg, rgba(10, 16, 48, .6), rgba(6, 10, 34, 0)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding: 56px 0 40px; }
.foot-brand p { margin: 14px 0 0; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot-brand .foot-private { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.foot-private svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-foot nav { display: flex; flex-direction: column; gap: 11px; }
.site-foot h4 { margin: 4px 0 6px; font: 600 13px/1 var(--display); color: var(--text); text-transform: uppercase; letter-spacing: .1em; }
.site-foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-foot a:hover { color: var(--text); }
.site-foot .brand { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; }

/* reviews */
.reviews { columns: 3; column-gap: 16px; }
.review {
  position: relative; overflow: hidden; break-inside: avoid; margin: 0 0 16px; padding: 26px 24px 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: border-color .2s, transform .2s;
}
.review:hover { border-color: var(--line-2); transform: translateY(-2px); }
.review::before {
  content: "”"; position: absolute; bottom: -18px; right: 18px; font: 700 72px/1 var(--display);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35;
}
.stars5 { display: flex; gap: 3px; margin-bottom: 14px; }
.stars5 svg { width: 18px; height: 18px; fill: #F5C451; filter: drop-shadow(0 0 6px rgba(245, 196, 81, .35)); }
.stars5 .off svg { fill: rgba(255, 255, 255, .14); filter: none; }
.review blockquote { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: #DDE1FF; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption b { display: block; font-size: 14.5px; }
.review figcaption small { color: var(--muted); font-size: 13px; }
.r-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 14px/1 var(--display); color: #fff; }
.g-a { background: linear-gradient(135deg, #5AA9FF, #8F7CFF); }
.g-b { background: linear-gradient(135deg, #8F7CFF, #C27BFF); }
.g-c { background: linear-gradient(135deg, #3DDC97, #5AA9FF); }
.sample-tag {
  position: absolute; top: 14px; right: 14px; z-index: 1; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px dashed var(--line-2);
}
.sample-note { margin-top: 10px !important; font-size: 13px !important; color: var(--dim) !important; }

/* mission page */
.mission-hero { padding: 84px 0 56px; text-align: center; }
.mission-hero h1 { font: 700 clamp(36px, 6vw, 64px)/1.06 var(--display); letter-spacing: -.035em; margin: 22px auto 18px; max-width: 820px; }
.mission-hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto; }
.letter {
  position: relative; max-width: 760px; margin: 0 auto; padding: 44px 48px 40px; border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(90, 169, 255, .12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(194, 123, 255, .1), transparent 55%),
    linear-gradient(180deg, #0F1742, #0A1034);
  box-shadow: 0 40px 100px -40px rgba(90, 100, 255, .45);
}
.letter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.letter-head b { display: block; font: 600 17px/1.2 var(--display); }
.letter-head small { color: var(--muted); font-size: 13.5px; }
.letter-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; font: 700 22px/1 var(--display); box-shadow: 0 0 0 3px rgba(6, 10, 34, .9), 0 0 0 4px rgba(148, 163, 255, .4); }
.letter p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: #D3D8F5; }
.letter p b { color: #fff; font-weight: 600; }
.letter code { font-size: 14.5px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #C9CEFF; }
.old-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 24px; }
.old-shot {
  padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #000;
  aspect-ratio: 1 / 1; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.old-shot:nth-child(odd) { transform: rotate(-1.5deg); }
.old-shot:nth-child(even) { transform: rotate(1.5deg); }
.old-shot:hover { transform: rotate(0) scale(1.04); border-color: var(--indigo); box-shadow: 0 14px 30px -12px rgba(143, 124, 255, .6); }
.old-shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2, 3, 14, .92); cursor: zoom-out; animation: psOpen .2s ease; }
.shot-viewer img { max-width: min(900px, 100%); max-height: calc(100vh - 48px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.shot-viewer button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); font-size: 24px; cursor: pointer; }
.letter .letter-quiet { margin: 26px 0; text-align: center; font-style: italic; color: var(--muted); font-size: 17.5px; }
.letter-pull {
  margin: 30px 0; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: var(--grad) 1;
  font: 700 clamp(24px, 3.4vw, 32px)/1.25 var(--display); letter-spacing: -.02em; color: #fff;
}
.ps { margin-top: 28px; }
.ps summary { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; border-radius: 10px; }
.ps summary::-webkit-details-marker { display: none; }
.ps-hint {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px 3px 9px; border-radius: 999px;
  font: 700 11px/1.4 var(--font); letter-spacing: .08em; color: var(--muted);
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .03); transition: color .15s, border-color .15s;
  animation: psNudge 3s ease-in-out 1.5s 2;
}
.ps-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ps summary:hover .ps-hint { color: var(--text); border-color: var(--indigo); }
.ps[open] .ps-hint svg { transform: rotate(180deg); }
.ps-body {
  margin-top: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(148, 163, 255, .28);
  background: linear-gradient(135deg, rgba(90, 169, 255, .08), rgba(194, 123, 255, .08)); animation: psOpen .35s ease;
}
.letter .ps-body p { font-size: 15.5px; line-height: 1.7; margin: 0 0 10px; }
.letter .ps-body p:last-child { margin: 0; }
.ps-body a { color: #B9C2FF; }
@keyframes psOpen { from { opacity: 0; transform: translateY(-6px); } }
@keyframes psNudge { 0%, 80%, 100% { transform: none; } 85% { transform: translateY(-3px); } 90% { transform: none; } 95% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ps-hint, .ps-body { animation: none; } }
.letter .signature { margin: 0; font: 600 22px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pricing */
.pricing { padding-top: 110px; scroll-margin-top: 70px; }
.price-card {
  position: relative; max-width: 560px; margin: 0 auto; padding: 34px 34px 30px; border-radius: 24px;
  border: 1px solid rgba(148, 163, 255, .35);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(90, 169, 255, .16), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(194, 123, 255, .14), transparent 55%),
    linear-gradient(180deg, #111948, #0A1034);
  box-shadow: 0 40px 100px -40px rgba(90, 100, 255, .55);
}
.price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.price-top > div { flex: 1; min-width: 0; }
.price-name { font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }
.price b { font: 700 56px/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { color: var(--muted); font-size: 17px; }
.price-note { margin: 0 0 22px; color: #C3C8EA; font-size: 14.5px; }
.price-badge { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--win); background: var(--win-bg); border: 1px solid rgba(61, 220, 151, .3); }
.price-list { list-style: none; margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #DDE1FF; }
.price-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--win); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.price-cta { width: 100%; }
.price-fine { margin: 14px 0 0; text-align: center; color: var(--dim); font-size: 13px; }

/* prose pages (privacy, 404) */
.prose .table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12.5px; background: rgba(255, 255, 255, .03); }
.prose code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: rgba(148, 163, 255, .12); color: #C9D0FF; white-space: nowrap; }
.prose { max-width: 720px; margin: 0 auto; padding: 64px 0 0; }
.prose h1 { font: 700 clamp(32px, 5vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.prose h2 { font: 600 20px/1.3 var(--display); margin: 40px 0 10px; }
.prose p, .prose li { color: #C3C8EA; }
.prose .meta { color: var(--dim); font-size: 14px; }
.prose a { color: #B9C2FF; }

/* reveal on scroll */
/* sections only start hidden once the reveal script is running (html.reveal-ready), so content
   is never stuck invisible if JavaScript fails or IntersectionObserver isn't available */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
/* hero motion showcase (#show): a looping mini version of the app — Personal, then Prop */
.show { margin: 56px auto 0; max-width: 1040px; text-align: left; }
.show-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 18px; padding: 5px; width: max-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.show-tabs button { position: relative; padding: 8px 18px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; overflow: hidden; }
.show-tabs button:hover { color: var(--text); }
.show-tabs button.on { color: #fff; background: linear-gradient(135deg, rgba(90, 169, 255, .28), rgba(194, 123, 255, .24)); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .35); }
.show-mock { margin-top: 0; }
.show-inner { padding: 14px; }
.show-url { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--dim); font-size: 11.5px; }
.show .mock-bar { align-items: center; margin-bottom: 12px; }
.show-cap { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 15px; min-height: 1.6em; transition: opacity .25s; }
.show-cap.fade { opacity: 0; }
.show-prog { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.show-prog i { width: 28px; height: 3px; border-radius: 3px; background: rgba(148, 163, 255, .18); overflow: hidden; position: relative; }
.show-prog i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--grad); }
.show-prog i.done::after { transform: scaleX(1); }
.show-prog i.now::after { animation: shProg var(--d, 5s) linear forwards; }
.show.paused .show-prog i.now::after { animation-play-state: paused; }
@keyframes shProg { to { transform: scaleX(1); } }

.sh-app { display: grid; grid-template-columns: 158px 1fr; gap: 12px; }
.sh-side { display: flex; flex-direction: column; gap: 14px; padding: 6px 4px; border-right: 1px solid var(--line); padding-right: 12px; }
.sh-brand { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--display); }
.sh-brand img { width: 22px; height: 22px; }
.sh-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sh-switch b { position: relative; z-index: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 5px 0; color: var(--muted); transition: color .3s; }
.sh-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 7px; background: var(--grad); transition: transform .45s cubic-bezier(.6, .1, .2, 1); }
.sh-app[data-group="prop"] .sh-pill { transform: translateX(100%); }
.sh-app[data-group="personal"] .sh-switch b[data-g="personal"], .sh-app[data-group="prop"] .sh-switch b[data-g="prop"] { color: #fff; }
.sh-nav { display: grid; gap: 3px; }
.sh-nav span { padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: var(--muted); border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.sh-nav span.on { color: var(--text); background: linear-gradient(135deg, rgba(90, 169, 255, .16), rgba(194, 123, 255, .12)); border-color: rgba(148, 163, 255, .22); }

.sh-main { position: relative; min-width: 0; }
.sh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sh-title { font: 600 16px/1.2 var(--display); }
.sh-new { padding: 6px 12px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; transition: transform .15s, filter .15s; }
.sh-new.press { transform: scale(.92); filter: brightness(1.2); }
.sh-stage { position: relative; height: 330px; overflow: hidden; }
.sh-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.sh-sc.on { opacity: 1; visibility: visible; transition: opacity .45s; }
.sh-sc > :not(.sh-panel) { transition: opacity .35s, filter .35s; }
.sh-sc.dim > :not(.sh-panel) { opacity: .3; filter: blur(1px); }

.sh-card, .sh-kpi, .sh-acct, .sh-propsum > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.sh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sh-kpi { padding: 11px 13px; }
.sh-kpi small, .sh-propsum small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.sh-kpi b, .sh-propsum b { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sh-kpi b.bump { animation: shBump .6s; }
@keyframes shBump { 40% { transform: scale(1.08); color: #7CF0BE; } }
.pos { color: var(--win); }
.neg { color: var(--loss); }
.sh-row2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }
.sh-card { padding: 12px 14px; min-width: 0; }
.sh-card h6, .sh-panel h6 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.sh-eq svg { width: 100%; height: 200px; }
.sh-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sh-eq.draw .sh-line { animation: shDraw 1.8s cubic-bezier(.4, 0, .2, 1) both; }
.sh-eq.draw .sh-area { animation: shFade 1.8s ease both; }
@keyframes shDraw { from { stroke-dashoffset: 1; } }
@keyframes shFade { from { opacity: 0; } }
.sh-trade { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.sh-recent h6 + .sh-trade { border-top: 0; }
.sh-sym { font-weight: 600; }
.sh-tag { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.sh-tag.long { background: var(--win-bg); color: var(--win); }
.sh-tag.short { background: var(--loss-bg); color: var(--loss); }
.sh-trade b { font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.sh-newrow { display: none; }
.sh-recent.added .sh-newrow { display: grid; animation: shRowIn .5s ease both; }
.sh-recent.added .sh-trade:last-child { display: none; }
.sh-recent.added .sh-newrow + .sh-trade { border-top: 1px solid var(--line); }
@keyframes shRowIn { from { opacity: 0; transform: translateY(-8px); background: rgba(61, 220, 151, .12); } }

/* slide-in panels (new trade / quick log) */
.sh-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(310px, 100%); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  border-radius: 14px; border: 1px solid rgba(148, 163, 255, .3); background: linear-gradient(180deg, #131C4E, #0C1338);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .6); transform: translateX(108%); transition: transform .5s cubic-bezier(.6, .1, .2, 1);
}
.sh-panel.open { transform: none; }
.sh-panel h6 { color: var(--text); font: 600 14px/1.2 var(--display); }
.sh-fields { display: grid; gap: 8px; }
.sh-fields label { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.sh-input, .sh-chip { min-height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; background: #060A22; border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; }
.sh-input.pos { color: var(--win); }
.sh-input.typing { border-color: rgba(143, 124, 255, .6); }
.sh-input.typing::after { content: ""; width: 1.5px; height: 15px; margin-left: 2px; background: var(--indigo); animation: shCaret .8s steps(1) infinite; }
@keyframes shCaret { 50% { opacity: 0; } }
.sh-chip { justify-content: flex-start; gap: 6px; color: #C9D0FF; }
.sh-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.sh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sh-seg i { font-style: normal; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); background: #060A22; font-size: 12px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.sh-seg i.on { background: var(--win-bg); color: var(--win); border-color: rgba(61, 220, 151, .4); }
.sh-drop { position: relative; flex: 1; min-height: 90px; border-radius: 10px; border: 1.5px dashed rgba(148, 163, 255, .3); background: #070B22; display: grid; place-items: center; overflow: hidden; transition: border-color .3s; }
.sh-drop-hint { color: var(--dim); font-size: 12px; transition: opacity .2s; }
.sh-chart { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); opacity: 0; transform: scale(.85); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.sh-drop.pasted { border-style: solid; border-color: rgba(143, 124, 255, .5); }
.sh-drop.pasted .sh-drop-hint { opacity: 0; }
.sh-drop.pasted .sh-chart { opacity: 1; transform: none; }
.sh-save { align-self: stretch; text-align: center; padding: 9px 0; border-radius: 10px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; transition: transform .15s, filter .15s; }
.sh-save.press { transform: scale(.95); filter: brightness(1.25); }

.sh-toast { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #12204A; border: 1px solid rgba(61, 220, 151, .35); color: var(--text); font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.sh-toast svg { width: 16px; height: 16px; fill: none; stroke: var(--win); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-toast.show { opacity: 1; transform: none; }

/* calendar */
.sh-cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.sh-cal-head b { font: 600 15px/1 var(--display); }
.sh-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sh-dow { font-style: normal; font-size: 11px; color: var(--dim); text-align: center; }
.sh-cal span { height: 54px; border-radius: 9px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i) * 55ms); }
.sh-cal span.w { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .3); color: var(--win); }
.sh-cal span.l { background: rgba(255, 107, 129, .13); border-color: rgba(255, 107, 129, .3); color: var(--loss); }
.sh-cal.in span { opacity: 1; transform: none; }

/* prop */
.sh-propsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh-propsum > div { padding: 11px 13px; }
.sh-accts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sh-acct { padding: 12px 13px; display: grid; gap: 9px; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.3, .5, 1); transition-delay: calc(var(--i) * 120ms); }
.sh-accts.in .sh-acct { opacity: 1; transform: none; }
.sh-acct-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.sh-phase { padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: rgba(90, 169, 255, .15); color: #8EC5FF; white-space: nowrap; }
.sh-phase.funded { background: var(--win-bg); color: var(--win); }
.sh-acct-pnl { font: 600 20px/1.1 var(--display); font-variant-numeric: tabular-nums; position: relative; }
.sh-acct-pnl .sh-plus { position: absolute; right: 0; top: -2px; font-size: 13px; color: var(--win); animation: shPlus 1.4s ease forwards; }
@keyframes shPlus { from { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
.sh-meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; color: var(--muted); }
.sh-meter em { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 6px; background: rgba(148, 163, 255, .14); overflow: hidden; position: relative; }
.sh-meter em::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); border-radius: 6px; background: var(--grad); transition: width 1.1s cubic-bezier(.4, 0, .2, 1); }
.sh-meter.dd em::after { background: linear-gradient(90deg, #FFC457, #FF8A65); }
.sh-meter small { grid-row: 1; grid-column: 2; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

.sh-week { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 8px; align-items: stretch; margin-top: 10px; }
.sh-week-label { align-self: center; font-size: 11.5px; color: var(--muted); padding-right: 4px; }
.sh-week span:not(.sh-week-label) { display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s; transition-delay: calc(.5s + var(--i) * 70ms); }
.sh-week small { font-size: 10.5px; font-weight: 500; color: var(--dim); }
.sh-week .w { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .25); color: var(--win); }
.sh-week .l { background: rgba(255, 107, 129, .1); border-color: rgba(255, 107, 129, .25); color: var(--loss); }
.sh-week .e { color: var(--dim); }
.sh-accts.in ~ .sh-week span { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .sh-app { grid-template-columns: 1fr; }
  .sh-side { display: none; }
  .sh-kpis, .sh-propsum { grid-template-columns: 1fr 1fr; }
  .sh-propsum > div:last-child { grid-column: 1 / -1; }
  .sh-row2 { grid-template-columns: 1fr; }
  .sh-recent { display: none; }
  .sh-eq svg { height: 170px; }
  .sh-accts { grid-template-columns: 1fr 1fr; }
  .sh-acct:nth-child(3) { display: none; }
  .sh-week { display: none; }
  .sh-meter.dd + .sh-meter.dd { display: none; }
  .sh-cal span { height: 46px; font-size: 11px; }
  .sh-panel { width: 100%; }
  .sh-quick { bottom: auto; }
  .sh-stage { height: 350px; }
  .show-tabs button { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  .sh-accts { grid-template-columns: 1fr; }
  .sh-acct:nth-child(2) { display: none; }
  .sh-kpi b, .sh-propsum b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .stat-list { grid-template-columns: 1fr 1fr; }
  .reviews { columns: 2; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-nav nav a.link { display: none; }
  .hero { padding-top: 56px; }
  .features, .steps, .stat-list { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .price-card { padding: 26px 20px 22px; }
  .price-top { flex-direction: column; }
  .price-list { grid-template-columns: 1fr; }
  .price b { font-size: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 44px; }
  .mock-inner { padding: 12px; }
  .section { padding-top: 80px; }
  .final-cta { padding: 48px 20px; }
  .letter { padding: 28px 20px 26px; border-radius: 18px; }
  .letter p { font-size: 16px; }
  .mission-hero { padding-top: 56px; }
}

/* Respect "reduce motion" system settings everywhere (site and app) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
