/* The landing page (landing.html): one dark, quiet look whatever the app's
   theme, so the card art carries the colour. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/outfit-latin-v1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/outfit-latin-ext-v1.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lp-bg: #0a0a0b;
  --lp-bg-2: #121214;
  --lp-text: #f3efe7;
  --lp-muted: rgba(243, 239, 231, .64);
  --lp-line: rgba(243, 239, 231, .14);
  --lp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --lp-sans: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lp-gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--lp-bg); color: var(--lp-text); font: 400 1rem/1.6 var(--lp-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--lp-text); outline-offset: 4px; border-radius: 2px; }
h1, h2 { font-family: var(--lp-serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }

.lp-skip { position: absolute; left: -999px; top: 0; z-index: 9; padding: .7rem 1rem; background: var(--lp-text); color: var(--lp-bg); }
.lp-skip:focus { left: 1rem; top: 1rem; }

.lp-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lp-muted); }

/* ── Top bar: the wordmark, nothing else competing ─────────────────────── */
.lp-top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: max(1.6rem, env(safe-area-inset-top)) var(--lp-gutter) 0; }
.lp-mark { font-size: 1.32rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; }
.lp-top-link { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--lp-muted); transition: color .2s; }
.lp-top-link:hover { color: var(--lp-text); }
.lp-top-nav { display: flex; gap: 1.6rem; }
.lp-beta { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border: 1px solid currentColor; border-radius: 999px; font-size: .58rem; letter-spacing: .12em; vertical-align: .15em; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 17rem; padding: 1.05rem 2rem;
  background: var(--lp-text); color: var(--lp-bg); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s, transform .25s; }
.lp-btn:hover { background: #fff; transform: translateY(-1px); }
.lp-link { font-size: .95rem; font-weight: 500; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgba(243, 239, 231, .5); transition: text-decoration-color .2s; }
.lp-link:hover { text-decoration-color: var(--lp-text); }

/* ── Hero: a drifting wall of illustration cards ───────────────────────── */
.lp-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.lp-wall { position: absolute; inset: 0; z-index: -2; perspective: 1600px; opacity: 0; transition: opacity 1.8s ease; }
.lp-wall.is-ready { opacity: 1; }
.lp-plane { position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; display: flex; justify-content: center; gap: 1.4vmax;
  transform: translate(-36%, -50%) rotateX(22deg) rotateZ(-14deg); transform-style: preserve-3d; }
.lp-col { flex: 0 0 auto; width: 11.5vmax; display: flex; flex-direction: column; animation: lp-drift var(--lp-speed, 90s) linear infinite; will-change: transform; backface-visibility: hidden; }
.lp-col.is-down { animation-direction: reverse; }
.lp-col img { display: block; width: 100%; aspect-ratio: 245 / 342; margin-bottom: 1.4vmax; border-radius: 4.6% / 3.3%; object-fit: cover; background: var(--lp-bg-2);
  box-shadow: 0 1.6vmax 3vmax rgba(0, 0, 0, .55); }
.lp-hero.is-paused .lp-col { animation-play-state: paused; }
@keyframes lp-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
/* A slow holographic sweep across the whole wall, like light catching foil.
   It slides by transform only (no repaint, no blend mode), so the browser can
   run it on the compositor next to the drifting columns without a hitch. */
.lp-wall::after { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; width: 100%; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .07) 42%, rgba(170, 220, 255, .05) 50%, rgba(255, 200, 240, .04) 58%, transparent 80%);
  animation: lp-sheen 11s ease-in-out infinite; will-change: transform; }
@keyframes lp-sheen { 0%, 20% { transform: translate3d(0, 0, 0); } 70%, 100% { transform: translate3d(200%, 0, 0); } }
.lp-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 11, .96) 0%, rgba(10, 10, 11, .86) 30%, rgba(10, 10, 11, .42) 62%, rgba(10, 10, 11, .26) 100%),
              linear-gradient(0deg, var(--lp-bg) 0%, rgba(10, 10, 11, 0) 26%),
              linear-gradient(180deg, rgba(10, 10, 11, .82) 0%, rgba(10, 10, 11, 0) 22%); }
.lp-copy { width: min(40rem, 100%); padding: 0 var(--lp-gutter) clamp(6rem, 17vh, 11rem); animation: lp-rise 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
.lp-copy h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: .98; margin: 1.1rem 0 1.5rem; }
.lp-lede { max-width: 30rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--lp-muted); margin-bottom: 2.4rem; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lp-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--lp-muted); }
.lp-scroll::after { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--lp-muted), transparent); animation: lp-cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes lp-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── The binder that fills itself ──────────────────────────────────────── */
.lp-binder { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 12vw, 9rem) var(--lp-gutter); }
/* ── Trading: four steps beside the pitch ──────────────────────────────── */
.lp-trade { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 82rem; margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--lp-gutter); border-top: 1px solid var(--lp-line); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 2.6rem; }
.lp-steps h3 { font-size: 1.2rem; font-weight: 600; margin: .7rem 0 .45rem; }
.lp-steps p { color: var(--lp-muted); margin: 0; }
.lp-steps a { color: var(--lp-text); }
.lp-text h2, .lp-features h2, .lp-browse h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; margin: 1rem 0 1.4rem; }
.lp-text p:not(.lp-eyebrow) { color: var(--lp-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.lp-book { --pocket: 2.2%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: clamp(.8rem, 1.6vw, 1.4rem); max-width: 54rem; justify-self: end; width: 100%;
  background: linear-gradient(90deg, #17171a 0%, #1f1f23 48%, #0d0d0f 50%, #1f1f23 52%, #17171a 100%); border-radius: 10px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05); transform: perspective(2200px) rotateX(8deg); }
.lp-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pocket); padding: var(--pocket) calc(var(--pocket) * 1.6); }
.lp-pocket { position: relative; aspect-ratio: 245 / 342; border-radius: 5px; background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); overflow: hidden; }
.lp-pocket::after { content: ""; position: absolute; inset: 0; pointer-events: none; /* the sleeve's shine */
  background: linear-gradient(160deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 38%); }
.lp-pocket img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(-14%) rotate(-5deg) scale(1.06);
  transition: opacity .55s ease, transform .75s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--lp-delay, 0s); }
.lp-book.is-filled .lp-pocket img { opacity: 1; transform: none; }

/* ── Features ──────────────────────────────────────────────────────────── */
.lp-features, .lp-browse { padding: clamp(4rem, 9vw, 7rem) var(--lp-gutter); border-top: 1px solid var(--lp-line); }
.lp-grid { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
.lp-grid li { padding: 1.6rem 2rem 0 0; border-top: 1px solid var(--lp-line); margin-right: 1.6rem; }
.lp-num { font-size: .74rem; letter-spacing: .2em; color: var(--lp-muted); }
.lp-grid h3 { font-family: var(--lp-serif); font-weight: 400; font-size: 1.7rem; margin: .8rem 0 .6rem; }
.lp-grid p { color: var(--lp-muted); }
.lp-grid a { text-underline-offset: 4px; }

.lp-browse-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px; margin-top: 2.6rem; background: var(--lp-line); border: 1px solid var(--lp-line); }
.lp-browse-links a { display: flex; flex-direction: column; gap: .35rem; padding: 1.8rem 1.6rem; background: var(--lp-bg); text-decoration: none; transition: background .25s; }
.lp-browse-links a:hover { background: var(--lp-bg-2); }
.lp-browse-links strong { font-family: var(--lp-serif); font-weight: 400; font-size: 1.45rem; }
.lp-browse-links strong::after { content: " →"; font-family: var(--lp-sans); font-size: 1rem; opacity: .6; }
.lp-browse-links span { color: var(--lp-muted); font-size: .95rem; }
/* Six guides: three a row, so none is left on a line of its own. */
.lp-guides .lp-browse-links { grid-template-columns: repeat(3, 1fr); }

.lp-final { padding: clamp(6rem, 14vw, 10rem) var(--lp-gutter); text-align: center; border-top: 1px solid var(--lp-line);
  background: radial-gradient(ellipse at 50% 120%, rgba(243, 239, 231, .07), transparent 60%); }
.lp-final h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; margin-bottom: 2.8rem; }
.lp-final .lp-actions { justify-content: center; }

.lp-foot { padding: 2.4rem var(--lp-gutter) max(2.4rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: .85rem; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-bottom: 1rem; }
.lp-foot nav a { text-decoration: none; font-weight: 500; color: var(--lp-text); }
.lp-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-foot p { max-width: 62rem; font-size: .78rem; line-height: 1.55; }

/* ── Smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .lp-binder, .lp-trade { grid-template-columns: 1fr; }
  .lp-book { justify-self: stretch; }
  .lp-grid { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
}
@media (max-width: 640px) {
  .lp-steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .lp-top-nav { gap: 1.1rem; }
  .lp-mark { font-size: 1.05rem; letter-spacing: .26em; }
  .lp-plane { width: 190vmax; height: 190vmax; gap: 2.2vmax; transform: translate(-50%, -50%) rotateX(18deg) rotateZ(-12deg); }
  .lp-col { width: 16vmax; }
  .lp-col img { margin-bottom: 2vmax; }
  .lp-shade { background: linear-gradient(0deg, var(--lp-bg) 0%, rgba(10, 10, 11, .93) 42%, rgba(10, 10, 11, .62) 62%, rgba(10, 10, 11, .4) 80%, rgba(10, 10, 11, .75) 100%); }
  .lp-copy { padding-bottom: max(2.6rem, env(safe-area-inset-bottom)); }
  .lp-scroll { display: none; }
  .lp-btn { width: 100%; min-width: 0; }
  .lp-actions { gap: 1.3rem; justify-content: center; text-align: center; }
  .lp-final .lp-actions, .lp-copy .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-book { --pocket: 2.6%; padding: .55rem; border-radius: 7px; }
  .lp-pocket { border-radius: 3px; }
  .lp-grid, .lp-browse-links, .lp-guides .lp-browse-links { grid-template-columns: 1fr; }
  .lp-grid li { margin-right: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-col, .lp-wall::after, .lp-copy, .lp-scroll::after { animation: none; }
  .lp-pocket img { transition: none; }
  html { scroll-behavior: auto; }
}
