:root {
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #0B0B0C;
  --fg: #F2F2F3;
  --muted: #8E8E93;
  --dim: #5C5C60;
  --cream: #EFE6D6;
  --green: #3DCF7A;
  --red: #F05353;
  --zoom: 1;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: #0B0B0C;
  color: #F2F2F3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0B0B0C;
  color: #F2F2F3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  overflow-x: hidden;
}

#viewport-scaler {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #0B0B0C;
  overflow-x: clip;
}

/* The Paper artboard is a fixed 1440px composition. We keep it 1:1 and scale the
   whole canvas with `zoom` so proportions, grid and type match Paper at every width.
   Paper root uses overflow:clip — relaxed so sticky pins work. */
#paper-root {
  margin: 0 auto;
  flex-shrink: 0;
  overflow: visible !important;
  zoom: var(--zoom);
}

/* Paper fonts: `system-ui` stays system-ui (SF Pro on macOS), 'Inter' stays Inter,
   'JetBrains Mono' falls back to the system monospace if the webfont is slow. */
#paper-root [style*="JetBrains Mono"] {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

/* ==========================================================================
   GLOBAL REVEAL & HERO MOTION
   ========================================================================== */

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms var(--ease-soft),
    transform 700ms var(--ease-soft);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-item.is-visible.reveal-done {
  will-change: auto;
}

.hero-copy-anim {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 800ms var(--ease-soft),
    transform 800ms var(--ease-soft);
}

.hero-copy-anim.is-loaded {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-dash-anim {
  opacity: 0;
  transform: translate3d(0, 160px, 0) scale(0.92);
  transition:
    opacity 1000ms var(--ease-soft) 180ms,
    transform 1100ms var(--ease-soft) 180ms;
  will-change: opacity, transform;
}

.hero-dash-anim.is-loaded {
  opacity: 1;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1);
}

.hero-dash-anim.is-loaded.is-scrolling {
  transition: opacity 900ms var(--ease-soft) 260ms;
}

.lp-parallax {
  will-change: transform;
}

/* Interactive buttons & nav links */
.lp-interactive-btn {
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    filter 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
  user-select: none;
}

.lp-interactive-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.lp-interactive-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.lp-nav-link {
  cursor: pointer;
  transition: opacity 200ms var(--ease-out);
}

.lp-nav-link:hover {
  opacity: 0.72;
}

/* Restrained card hover */
.lp-card-hover {
  transition:
    border-color 300ms var(--ease-out),
    transform 400ms var(--ease-soft);
}

.lp-card-hover:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   SYNC SECTION: PACKET LOOP (1.6s) & EXCHANGE TOGGLE (200ms)
   ========================================================================== */

@keyframes syncPacketTravel {
  0% {
    left: 4%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    left: 94%;
    opacity: 0;
  }
}

@keyframes syncRowPulse {
  0%, 70% {
    background-color: rgba(61, 207, 122, 0.05);
    box-shadow: #3DCF7A 2px 0px 0px inset;
  }
  82% {
    background-color: rgba(61, 207, 122, 0.13);
    box-shadow: #3DCF7A 2px 0px 0px inset;
  }
  100% {
    background-color: rgba(61, 207, 122, 0.06);
    box-shadow: #3DCF7A 2px 0px 0px inset;
  }
}

.sync-packet-dot {
  animation: syncPacketTravel 1.6s var(--ease-out) infinite;
}

.sync-top-row {
  animation: syncRowPulse 1.6s var(--ease-out) infinite;
}

.sync-pill-tab {
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.sync-pill-tab > div {
  transition:
    color 200ms var(--ease-out),
    opacity 200ms var(--ease-out),
    filter 200ms var(--ease-out);
}

.sync-fade-target {
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

/* --- Isometric sync stage: exchange towers -> conduits -> your journal ---------- */
.sync-stage .sy-lighter polygon,
.sync-stage .sy-hl polygon,
.sync-stage #sy-plate polygon,
.sync-stage .sy-cube polygon {
  transition:
    opacity 700ms var(--ease-soft),
    transform 900ms var(--ease-soft),
    stroke 500ms var(--ease-out),
    fill 500ms var(--ease-out);
}
.sync-stage .sy-lighter polygon { stroke: #EFE6D6; }
.sync-stage .sy-lighter-line { stroke: #EFE6D680; }
.sync-stage .sy-hl polygon { stroke: #5C5C60; stroke-dasharray: 4 3; }
.sync-stage .sy-hl-line { stroke: #5C5C6066; }
.sync-stage .sy-cond { stroke: #3DCF7A; stroke-opacity: 0.55; }
.sync-stage .sy-cond-soon { stroke: #5C5C60; stroke-opacity: 0.7; }
.sync-stage .sy-cond,
.sync-stage .sy-lighter-line,
.sync-stage .sy-hl-line,
.sync-stage .sy-packet,
.sync-stage .sy-label,
.sync-stage #sy-pill {
  transition:
    opacity 700ms var(--ease-soft),
    transform 900ms var(--ease-soft),
    stroke 500ms var(--ease-out);
}

/* initial (pre-reveal) state */
.sync-stage:not(.is-live) .sy-lighter polygon,
.sync-stage:not(.is-live) .sy-hl polygon,
.sync-stage:not(.is-live) .sy-lighter-line,
.sync-stage:not(.is-live) .sy-hl-line { opacity: 0; transform: translateY(-16px); }
.sync-stage:not(.is-live) #sy-plate polygon { opacity: 0; transform: translateY(18px); }
.sync-stage:not(.is-live) .sy-cube polygon { opacity: 0; transform: translateY(-22px); }
.sync-stage:not(.is-live) .sy-slot { opacity: 0; }
.sync-stage .sy-slot { transition: opacity 600ms var(--ease-soft) 900ms; }
.sync-stage:not(.is-live) .sy-cond { opacity: 0; }
.sync-stage:not(.is-live) .sy-packet { opacity: 0; }
.sync-stage:not(.is-live) #sy-pill { opacity: 0; transform: translateY(8px); }

/* reveal choreography */
.sync-stage.is-live .sy-lighter polygon { transition-delay: 0ms; }
.sync-stage.is-live .sy-hl polygon { transition-delay: 120ms; }
.sync-stage.is-live #sy-plate polygon { transition-delay: 260ms; }
.sync-stage.is-live .sy-cube[data-d="0"] polygon { transition-delay: 380ms; }
.sync-stage.is-live .sy-cube[data-d="1"] polygon { transition-delay: 430ms; }
.sync-stage.is-live .sy-cube[data-d="2"] polygon { transition-delay: 480ms; }
.sync-stage.is-live .sy-cube[data-d="3"] polygon { transition-delay: 530ms; }
.sync-stage.is-live .sy-cube[data-d="4"] polygon { transition-delay: 580ms; }
.sync-stage.is-live .sy-cube[data-d="5"] polygon { transition-delay: 630ms; }
.sync-stage.is-live .sy-cube[data-d="6"] polygon { transition-delay: 680ms; }
.sync-stage.is-live .sy-cube[data-d="7"] polygon { transition-delay: 730ms; }
.sync-stage.is-live .sy-cube[data-d="8"] polygon { transition-delay: 780ms; }
.sync-stage.is-live .sy-cube[data-d="9"] polygon { transition-delay: 830ms; }
.sync-stage.is-live .sy-cube.is-new polygon { transition-delay: 1000ms; }
.sync-stage.is-live .sy-cond { transition-delay: 820ms; }
.sync-stage.is-live .sy-packet { transition-delay: 1000ms; }
.sync-stage.is-live #sy-pill { transition-delay: 1100ms; }

/* the animated dashes on the live conduit */
@keyframes syCondFlow { to { stroke-dashoffset: -16; } }
.sync-stage.is-live #sy-cond-l { animation: syCondFlow 900ms linear infinite; }

/* a new fill landing on the plate */
@keyframes syRowLand {
  0% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(-26px); opacity: 0; }
  31% { transform: translateY(-26px); opacity: 0; }
  75% { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes syPillBump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); opacity: 0.4; }
  60% { transform: translateY(1px); opacity: 1; }
  100% { transform: translateY(0); }
}
.sync-stage.is-landing .sy-cube.is-new polygon { animation: syRowLand 900ms var(--ease-soft) both; transition: none; }
.sync-stage.is-landing #sy-pill { animation: syPillBump 900ms var(--ease-soft) both; }
@keyframes syLiveDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 207, 122, 0.45); } 60% { box-shadow: 0 0 0 6px rgba(61, 207, 122, 0); } }
.sync-stage .sy-live-dot { animation: syLiveDot 2s ease-out infinite; }

/* Hyperliquid tab selected: the right tower is the one being wired */
.sync-stage.is-hl .sy-lighter polygon { stroke: #5C5C60; }
.sync-stage.is-hl .sy-lighter-line { stroke: #5C5C6066; }
.sync-stage.is-hl .sy-hl polygon { stroke: #EFE6D6; stroke-dasharray: none; }
.sync-stage.is-hl .sy-hl-line { stroke: #EFE6D680; }
.sync-stage.is-hl .sy-cond-soon { stroke: #3DCF7A; stroke-opacity: 0.55; stroke-dasharray: 4 4; animation: syCondFlow 900ms linear infinite; }
.sync-stage.is-hl #sy-cond-l { stroke: #5C5C60; stroke-opacity: 0.7; animation: none; }
.sync-stage.is-hl .sy-packet { opacity: 0; }
.sync-stage.is-hl #sy-pill { opacity: 0; }
.sync-stage.is-hl .sy-cube.is-new polygon { stroke: #5C5C60; }
.sync-stage.is-hl .sy-hl-icon { filter: none !important; opacity: 1 !important; }
.sync-stage.is-hl .sy-hl-text { color: #EFE6D6 !important; }
.sync-stage.is-hl #sy-label-lighter { opacity: 0.5; }
.sync-stage .sy-hl-icon, .sync-stage .sy-hl-text, .sync-stage #sy-label-lighter {
  transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out), color 400ms var(--ease-out);
}

/* Isometric scenes sit on the page. The dot field fades out so there is no card edge. */
.iso-stage {
  background: transparent;
  overflow: visible;
}
.iso-stage::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1.25px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 28%, transparent 76%);
  pointer-events: none;
  z-index: 0;
}
.iso-stage > * {
  position: relative;
  z-index: 1;
}

/* Find the Edge: pinned, scroll steps through four views of the same history */
.edge-pin-wrap { position: relative; width: 100%; }
.edge-pin-sticky { position: sticky; top: 0; width: 100%; display: flex; align-items: center; justify-content: center; overflow: clip; }
#sec-analytics.is-pinned { padding-block: 0 !important; }
#sec-analytics.is-pinned > div:last-child[style*="linear-gradient"] { display: none; }

.er-items { display: flex; flex-direction: column; gap: 8px; }
.er-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.er-item:focus-visible { outline: 2px solid #EFE6D6; outline-offset: 2px; }
.er-item.is-active { background: #1C1C1E; border-color: #FFFFFF14; }
.er-head { display: flex; align-items: center; justify-content: space-between; }
.er-title { color: #8E8E93; font: 500 16px/24px 'Inter', system-ui, sans-serif; transition: color 300ms var(--ease-out); }
.er-item:hover .er-title { color: #C9C9CC; }
.er-item.is-active .er-title { color: #F2F2F3; font-weight: 600; }
.er-num { color: #7C7C81; font: 400 14px/18px 'Inter', system-ui, sans-serif; }
.er-desc-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 450ms var(--ease-soft), opacity 350ms var(--ease-out); }
.er-item.is-active .er-desc-wrap { grid-template-rows: 1fr; opacity: 1; }
.er-desc { overflow: hidden; min-height: 0; color: #8E8E93; font: 400 14px/22px 'Inter', system-ui, sans-serif; padding-top: 12px; }
.er-bar { display: block; height: 2px; margin-top: 0; background: #FFFFFF0F; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 300ms, margin-top 300ms; }
.er-item.is-active .er-bar { opacity: 1; margin-top: 16px; }
#sec-analytics:not(.is-pinned) .er-bar { display: none; }
.er-bar-fill { display: block; height: 100%; width: 0; background: #EFE6D6; }
.er-stats {
  display: flex;
  border-top: 1px solid #FFFFFF14;
  padding-top: 24px;
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-soft);
}
.er-stats.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.er-stat { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.er-stat-v { color: #F2F2F3; font: 500 24px/32px 'Inter', system-ui, sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.er-stat-l { color: #8E8E93; font: 400 14px/18px 'Inter', system-ui, sans-serif; }

.edge-stage .es-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-soft);
}
.edge-stage .es-scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.edge-stage svg { position: absolute; inset: 0; overflow: visible; }

/* shared chart chrome */
.sim-head, .es-perf > .pf-head { position: absolute; left: 0; top: 18px; }
.sim-title, .pf-head { display: flex; align-items: baseline; gap: 10px; }
.sim-big { color: #F2F2F3; font: 600 24px/36px 'Inter', system-ui, sans-serif; letter-spacing: -0.03em; }
.sim-sub { color: #8E8E93; font: 400 14px/20px 'Inter', system-ui, sans-serif; }
.sim-sub2 { color: #8E8E93; font: 400 14px/18px 'Inter', system-ui, sans-serif; margin-top: 4px; opacity: 0.8; }
.es-perf > .sim-sub2, .es-cal > .sim-sub2 { position: absolute; left: 0; top: 58px; }
.es-cal > .pf-head { position: absolute; left: 0; top: 18px; }
.sim-axis { fill: #8E8E93; font: 400 12px 'Inter', system-ui, sans-serif; }

/* Simulator */
.sim-legend { position: absolute; right: 8px; top: 26px; display: flex; gap: 18px; color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.sim-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sim-legend i { width: 6px; height: 6px; border-radius: 50%; }
.lg-actual { background: #F2F2F3; }
.lg-50 { background: #3DCF7A; }
.lg-90 { background: #8E8E93; }
.sim-ctrl { position: absolute; right: 8px; top: 52px; display: flex; align-items: center; gap: 6px; }
.sim-ctrl-label { color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.sim-step {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #FFFFFF2E; background: transparent; color: #F2F2F3;
  font: 500 14px/1 'Inter', system-ui, sans-serif; cursor: pointer; padding: 0;
  transition: border-color 200ms, background-color 200ms, transform 120ms;
}
.sim-step:hover { border-color: #EFE6D6; background: #EFE6D612; }
.sim-step:active { transform: scale(0.92); }
.sim-n {
  width: 34px; height: 24px; border: 0; border-bottom: 1px dashed #EFE6D680; background: transparent;
  color: #F2F2F3; font: 600 14px/24px 'Inter', system-ui, sans-serif; text-align: center; padding: 0; outline: none;
  -moz-appearance: textfield;
}
.sim-n:hover, .sim-n:focus { border-bottom: 1px solid #EFE6D6; }
.sim-n::-webkit-inner-spin-button, .sim-n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sim-run {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 10px; border-radius: 2px;
  border: 1px solid #3DCF7A66; background: #3DCF7A12; color: #3DCF7A;
  font: 600 12px/16px 'Inter', system-ui, sans-serif; cursor: pointer;
  transition: background-color 200ms, border-color 200ms, transform 120ms;
}
.sim-run:hover { background: #3DCF7A24; border-color: #3DCF7A; }
.sim-run:active { transform: scale(0.96); }
.sim-run svg { position: static; transition: transform 300ms var(--ease-soft); }
.sim-run:hover svg { transform: rotate(-40deg); }
.sim-step:focus-visible, .sim-run:focus-visible { outline: 2px solid #EFE6D6; outline-offset: 2px; }
.sim-note { position: absolute; right: 8px; top: 80px; color: #EFE6D6; font: 500 12px/16px 'Inter', system-ui, sans-serif; }
.sim-actual circle { fill: #F2F2F3; opacity: 0; transition: opacity 300ms var(--ease-out) var(--d, 0ms); }
.edge-stage.is-live .sim-actual circle { opacity: 1; }
.sim-col { opacity: 0; transition: opacity 260ms var(--ease-out); }
.sim-col.is-in { opacity: 1; }
.sim-d50 { fill: #3DCF7A; fill-opacity: 0.9; }
.sim-d90 { fill: #8E8E93; fill-opacity: 0.55; }
.sim-today { stroke: #F2F2F3; stroke-opacity: 0.3; stroke-width: 1; }
.sim-pill rect { fill: #F2F2F3; }
.sim-pill text { fill: #0B0B0C; font: 600 12px 'Inter', system-ui, sans-serif; }
.sim-median { fill: none; stroke: #F2F2F3; stroke-width: 1.4; stroke-dasharray: 0.006 0.006; stroke-dashoffset: 0; }
.sim-path { fill: none; stroke: #EFE6D6; stroke-opacity: 0.22; stroke-width: 0.9; stroke-linejoin: round; transition: stroke-opacity 600ms var(--ease-out); }
.es-sim.is-done .sim-path { stroke-opacity: 0.1; }
.sim-ends { opacity: 0; transition: opacity 500ms var(--ease-out); }
.es-sim.is-done .sim-ends { opacity: 1; }
.sim-end { fill: #8E8E93; font: 400 12px 'Inter', system-ui, sans-serif; }
.sim-end.is-med { fill: #F2F2F3; font-weight: 600; }

/* Performance in R */
.pf-rows { position: absolute; left: 0; right: 0; top: 118px; display: flex; flex-direction: column; gap: 14px; }
.pf-row { display: flex; align-items: center; gap: 16px; height: 46px; border-bottom: 1px solid #FFFFFF0A; }
.pf-name { width: 170px; flex-shrink: 0; color: #F2F2F3; font: 500 14px/20px 'Inter', system-ui, sans-serif; display: flex; flex-direction: column; }
.pf-name span { color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.pf-track { position: relative; flex: 1; height: 100%; }
.pf-zero { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: #FFFFFF2E; }
.pf-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 2px; transform: scaleX(0); transition: transform 700ms var(--ease-soft); transition-delay: calc(var(--i) * 90ms + 150ms); }
.pf-row { --i: 0; }
.pf-bar.is-pos { left: 50%; background: #3DCF7A; transform-origin: 0 50%; }
.pf-bar.is-neg { right: 50%; background: #F05353; transform-origin: 100% 50%; }
.pf-row .pf-bar { transition-delay: calc(var(--i) * 90ms + 150ms); }
.pf-val { position: absolute; top: 50%; white-space: nowrap; transform: translateY(-50%); font: 600 14px/16px 'Inter', system-ui, sans-serif; opacity: 0; transition: opacity 400ms var(--ease-out) 700ms; }
.pf-val.is-pos { color: #3DCF7A; }
.pf-val.is-neg { color: #F05353; }
.es-perf.is-on .pf-bar { transform: scaleX(1); }
.es-perf.is-on .pf-val { opacity: 1; }
.pf-row .pf-bar { transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.pf-foot { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; gap: 40px; border-top: 1px solid #FFFFFF14; padding-top: 20px; }
.pf-foot div { display: flex; flex-direction: column; gap: 2px; }
.pf-foot strong { color: #F2F2F3; font: 500 20px/26px 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }
.pf-foot span { color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }

/* Net R calendar */
.cal-grid { position: absolute; left: 0; right: 0; top: 112px; display: grid; grid-template-columns: repeat(5, 1fr) 92px; gap: 8px; }
.cal-dow { color: #8E8E93; font: 500 12px/14px 'Inter', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 2px; }
.cal-cell, .cal-week {
  position: relative; height: 66px; border-radius: 6px;
  opacity: 0; transform: scale(0.92);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-soft), box-shadow 200ms;
  transition-delay: calc(var(--i, 0) * 22ms);
}
.cal-cell { background: var(--bg); }
.cal-cell.is-empty { background: transparent; border: 1px dashed #FFFFFF14; }
.cal-cell:not(.is-empty):hover { box-shadow: 0 0 0 1px #EFE6D6; transition-delay: 0ms; }
.cal-d { position: absolute; left: 10px; top: 8px; color: #F2F2F3; opacity: 0.6; font: 500 12px/14px 'Inter', system-ui, sans-serif; }
.cal-v { position: absolute; right: 10px; bottom: 8px; color: #F2F2F3; font: 600 14px/18px 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; }
.cal-week { display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font: 600 14px/18px 'Inter', system-ui, sans-serif; border: 1px solid #FFFFFF14; }
.cal-week.is-pos { color: #3DCF7A; }
.cal-week.is-neg { color: #F05353; }
.es-cal.is-on .cal-cell, .es-cal.is-on .cal-week { opacity: 1; transform: none; }

/* Equity and drawdown */
.eq-grid line { stroke: #FFFFFF; stroke-opacity: 0.07; stroke-dasharray: 3 3; }
.eq-zero { stroke: #8E8E93; stroke-opacity: 0.5; stroke-dasharray: 2 2; }
.eq-line { fill: none; stroke: #3DCF7A; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-soft) 150ms; }
.eq-area, .dd-area { opacity: 0; transition: opacity 900ms var(--ease-out) 700ms; }
.dd-line { fill: none; stroke: #F05353; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-soft) 300ms; }
.dd-dot { fill: #F05353; opacity: 0; transition: opacity 400ms 1500ms; }
.dd-label { fill: #F05353; font: 600 12px 'Inter', system-ui, sans-serif; opacity: 0; transition: opacity 400ms 1600ms; }
.eq-cap { fill: #8E8E93; font: 500 12px 'Inter', system-ui, sans-serif; letter-spacing: 0.08em; }
.eq-cap.is-hwm { fill: #EFE6D6; opacity: 0; transition: opacity 400ms 1600ms; }
.eq-hwm circle { fill: #EFE6D6; stroke: #0B0B0C; stroke-width: 2; opacity: 0; transition: opacity 300ms var(--ease-out) var(--d, 0ms); }
.es-eq.is-on .eq-line, .es-eq.is-on .dd-line { stroke-dashoffset: 0; }
.es-eq.is-on .eq-area, .es-eq.is-on .dd-area, .es-eq.is-on .dd-dot, .es-eq.is-on .dd-label, .es-eq.is-on .eq-cap.is-hwm, .es-eq.is-on .eq-hwm circle { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .edge-stage *, .er-stats, .er-item * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   COMPANION: SCROLL-PINNED EXPLORER (01 -> 02 -> 03)
   ========================================================================== */

.comp-pin-wrap {
  position: relative;
  width: 1280px;
  /* set by JS: 600px + 2 * viewport */
}

.comp-pin-sticky {
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: sticky;
  /* top set by JS so the 600px explorer sits centred in the viewport */
  top: 0;
  width: 1280px;
}

.comp-item {
  outline: none;
}

.comp-item:focus-visible .comp-item-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.comp-item-num,
.comp-item-title {
  transition: color 400ms var(--ease-out);
}

.comp-desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    grid-template-rows 450ms var(--ease-soft),
    opacity 400ms var(--ease-out),
    transform 450ms var(--ease-soft);
}

.comp-desc-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.comp-desc-inner {
  overflow: hidden;
  min-height: 0;
}

.comp-progress-bar {
  will-change: width;
}

#comp-preview {
  transition:
    background-position 750ms var(--ease-soft),
    background-size 750ms var(--ease-soft);
  will-change: background-position, background-size;
}

/* ==========================================================================
   ANALYTICS: SIMULATOR FOCUS (500ms) & TAB SELECTOR
   ========================================================================== */

.sim-tab-item {
  cursor: pointer;
  transition:
    background-color 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}

.sim-tab-item:not(.is-active):hover > div:first-child {
  color: #C9C9CC !important;
}

.sim-bg-blur {
  filter: blur(0px) brightness(70%) saturate(80%);
  transition: filter 700ms var(--ease-soft);
}

.sim-bg-blur.is-focused {
  filter: blur(6px) brightness(45%) saturate(60%);
}

.sim-focus-window {
  transform: scale(0.97);
  opacity: 0.6;
  transition:
    transform 700ms var(--ease-soft),
    opacity 700ms var(--ease-soft),
    background-position 600ms var(--ease-soft),
    top 600ms var(--ease-soft);
}

.sim-focus-window.is-focused {
  transform: scale(1);
  opacity: 1;
}

/* Big numbers: slide/fade in while the value counts up */
.sim-stat-col > div:first-child {
  font-variant-numeric: tabular-nums;
  transition:
    opacity 520ms var(--ease-soft),
    transform 620ms var(--ease-soft),
    filter 520ms var(--ease-soft);
}
.sim-stat-col:not(.is-in) > div:first-child {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}
.sim-stat-col > div:last-child {
  transition: opacity 400ms var(--ease-out);
  transition-delay: inherit;
}
.sim-stat-col:not(.is-in) > div:last-child {
  opacity: 0;
}

/* ==========================================================================
   CLOSER LOOK: STICKY PIN & CONTINUOUS 3-STEP CUBE STORY
   ========================================================================== */

.closer-pin-wrap {
  position: relative;
  width: 100%;
  /* height set by JS: 3 * viewport */
}

.closer-pin-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  /* height set by JS: viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

/* Pinned, it keeps the 140px between its divider and its heading that every section has */
#sec-closer {
  padding-top: 140px !important;
  padding-bottom: 0 !important;
}
/* Each step's description starts where its title does */
#sec-closer .closer-step-desc-inner { padding-left: 24px !important; }

.closer-step {
  outline: none;
}

.closer-step:focus-visible .closer-step-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.closer-step-num,
.closer-step-title {
  transition: color 400ms var(--ease-out);
}

.closer-step-desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    grid-template-rows 450ms var(--ease-soft),
    opacity 400ms var(--ease-out),
    transform 450ms var(--ease-soft);
}

.closer-step-desc-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.closer-step-desc-inner {
  overflow: hidden;
  min-height: 0;
}

#closer-rail-fill {
  will-change: height;
}

#closer-svg g,
#closer-svg polygon,
#closer-svg polyline,
#closer-svg path,
#closer-svg line {
  will-change: transform, opacity;
}

#cl-cap-left,
#cl-cap-right,
#closer-counter,
#closer-hint {
  transition: opacity 220ms var(--ease-out);
}

/* ==========================================================================
   UP CLOSE: DOT-PLOT STAGGER & ARC DRAW
   ========================================================================== */

.upclose-dot {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 500ms var(--ease-soft),
    transform 600ms var(--ease-soft);
}

.upclose-card.is-inview .upclose-dot {
  opacity: 1;
  transform: translateY(0);
}

/* 1 dot = 1 trade: the swarm pours in left -> right (per-dot delays set inline) */
.upclose-dots .uc-dot {
  opacity: 0;
  transform: translateY(6px) scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 420ms var(--ease-soft),
    transform 560ms var(--ease-soft);
}
.upclose-card.is-inview .upclose-dots .uc-dot {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* axis + breakeven draw first */
.upclose-axis-line {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 900ms var(--ease-soft);
}
.upclose-be-line {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 700ms var(--ease-soft) 200ms;
}
.upclose-card.is-inview .upclose-axis-line,
.upclose-card.is-inview .upclose-be-line {
  stroke-dashoffset: 0;
}

.upclose-arc-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 700ms var(--ease-soft) 1150ms;
}

.upclose-card.is-inview .upclose-arc-path {
  stroke-dashoffset: 0;
}

.upclose-arc-arrow {
  opacity: 0;
  transition: opacity 300ms var(--ease-out) 1750ms;
}

.upclose-card.is-inview .upclose-arc-arrow {
  opacity: 1;
}

.upclose-traveller {
  opacity: 0;
  transition: opacity 400ms var(--ease-out) 2300ms;
}
.upclose-card.is-inview .upclose-traveller {
  opacity: 1;
}

/* the "Now" marker keeps a soft pulse so the eye lands on the current entry */
@keyframes upcloseNowPulse {
  0%, 100% { stroke-width: 2.4; r: 7; }
  50% { stroke-width: 1.6; r: 8.5; }
}
.upclose-card.is-inview .upclose-now {
  animation: upcloseNowPulse 2.6s ease-in-out 2.4s infinite;
}

/* Interactive plot: drag the entry, hover any trade */
.uc-plot { cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; border-radius: 8px; }
/* Touch: a vertical swipe that starts on the plot still scrolls the page; a sideways one drags the entry */
@media (max-width: 900px), (pointer: coarse) { .uc-plot { touch-action: pan-y; } }
.uc-plot:focus-visible { box-shadow: 0 0 0 2px #EFE6D666; }
.upclose-card .upclose-arc-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.upclose-card.is-inview .upclose-arc-path { stroke-dashoffset: 0; }
.upclose-dots .uc-dot.uc-beaten { fill-opacity: 0.28; }
.upclose-card .upclose-now { cursor: grab; }
.upclose-card.uc-dragging .upclose-now { cursor: grabbing; animation: none !important; r: 9; }
.upclose-card.uc-dragging .upclose-traveller { opacity: 0 !important; }
.upclose-card.uc-past-retest .upclose-arc-path,
.upclose-card.uc-past-retest .upclose-arc-arrow,
.upclose-card.uc-past-retest .upclose-traveller { opacity: 0 !important; }
.uc-hint {
  position: absolute;
  left: 96px;
  top: 0px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.upclose-card.is-inview .uc-hint { opacity: 1; transition-delay: 2600ms; }
.upclose-card.uc-tried .uc-hint { opacity: 0 !important; transition-delay: 0ms; }
.uc-hint span {
  color: #EFE6D6;
  font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.uc-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 4px 9px;
  border-radius: 2px;
  background: #EFE6D6;
  color: #0B0B0C;
  font: 600 12px/16px 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms var(--ease-out);
  z-index: 2;
}
.uc-tip.is-on { opacity: 1; }
.uc-toast {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translate(-50%, -6px);
  padding: 7px 14px;
  border-radius: 2px;
  font: 600 14px/18px 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-soft);
  z-index: 3;
}
.uc-toast[data-tone="good"] { background: #3DCF7A; color: #0B0B0C; }
.uc-toast[data-tone="neutral"] { background: #EFE6D6; color: #0B0B0C; }
.uc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.upclose-unit-btn {
  cursor: pointer;
  transition: background-color 220ms var(--ease-out);
}

.upclose-unit-btn > div {
  transition: color 220ms var(--ease-out);
}

/* ==========================================================================
   REVIEWS: CONTINUOUS CAROUSEL (never pauses)
   ========================================================================== */

/* ==========================================================================
   ROADMAP LIGHTHOUSE: BEAM SWEEP & COLUMN ILLUMINATION
   ========================================================================== */

.lh-col {
  cursor: default;
  transition: opacity 150ms linear;
  outline: none;
}

.lh-row {
  transition:
    transform 500ms var(--ease-soft),
    opacity 500ms var(--ease-soft);
}

.road-pin-wrap {
  position: relative;
  width: 100%;
  /* height set by JS: section + scroll distance for the sweep */
}
.road-pin-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: clip;
  /* its own block context, so the section's cropping top margin stays inside the frame */
  display: flow-root;
}
.lh-track-fill {
  position: absolute;
  left: 7px;
  top: 6px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, #3DCF7A, #EFE6D6);
  box-shadow: 0 0 8px #EFE6D666;
  pointer-events: none;
}

.lh-node {
  transition:
    box-shadow 400ms var(--ease-out),
    border-color 400ms var(--ease-out),
    background-color 400ms var(--ease-out);
}

#lh-lamp-glow,
#lh-lamp-core,
#lh-beam-poly,
#lh-spot-circle {
  transition: opacity 700ms var(--ease-soft);
}

/* ==========================================================================
   FAQ ACCORDION (250ms height + 180deg chevron rotation)
   ========================================================================== */

.faq-item {
  outline: none;
}

.faq-item:focus-visible .faq-q {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-item:hover .faq-q {
  color: #FFFFFF !important;
}

.faq-q {
  transition: color 200ms var(--ease-out);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 300ms var(--ease-soft),
    opacity 260ms var(--ease-out);
}

.faq-a-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-chevron {
  transition: transform 300ms var(--ease-soft);
}

.faq-chevron path {
  transition: stroke 250ms var(--ease-out);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   STATIC AUDIT MODE (?static=1) — everything in its Paper resting state
   ========================================================================== */

html.lp-static .reveal-item,
html.lp-static .hero-copy-anim,
html.lp-static .hero-dash-anim {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.lp-static .closer-pin-wrap,
html.lp-static .road-pin-wrap,
html.lp-static .comp-pin-wrap {
  height: auto !important;
}

html.lp-static .closer-pin-sticky,
html.lp-static .road-pin-sticky,
html.lp-static .comp-pin-sticky {
  position: relative !important;
  height: auto !important;
  top: 0 !important;
}

html.lp-static #sec-closer {
  padding-top: 140px !important;
  padding-bottom: 80px !important;
}

html.lp-static .sync-stage *,
html.lp-static .upclose-card * {
  animation: none !important;
}

html.lp-static .sim-bg-blur,
html.lp-static .sim-focus-window,
html.lp-static .sync-stage *,
html.lp-static .upclose-card *,
html.lp-static .sim-stat-col * {
  transition: none !important;
}
html.lp-static .sync-stage .sy-packet,
html.lp-static .upclose-traveller {
  display: none;
}

/* ==========================================================================
   ACCESSIBILITY & NARROW FALLBACKS (< 900px / prefers-reduced-motion)
   ========================================================================== */

@media (max-width: 900px) {
  .closer-pin-wrap,
  .road-pin-wrap,
  .comp-pin-wrap {
    height: auto !important;
  }
  .closer-pin-sticky,
  .road-pin-sticky,
  .comp-pin-sticky {
    position: relative !important;
    height: auto !important;
    top: 0 !important;
  }
  #sec-closer {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .closer-pin-wrap,
  .road-pin-wrap,
  .comp-pin-wrap {
    height: auto !important;
  }
  .closer-pin-sticky,
  .road-pin-sticky,
  .comp-pin-sticky {
    position: relative !important;
    height: auto !important;
    top: 0 !important;
  }
  #sec-closer {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
  }
  .reveal-item,
  .hero-copy-anim,
  .hero-dash-anim,
  .closer-step-desc-wrap,
  .comp-desc-wrap,
  .faq-a-wrap,
  .lh-col,
  .lh-row,
    .sim-focus-window,
  .upclose-dot,
  .uc-dot,
  .sim-stat-col > div,
  .sync-stage * {
    transform: none !important;
    transition-duration: 150ms !important;
    transition-delay: 0ms !important;
  }
  .sync-stage *,
  .edge-stage *,
  .upclose-card * {
    animation: none !important;
  }
  .sync-stage .sy-packet,
  .upclose-traveller {
    display: none;
  }
}

/* --- Sync: scroll-driven explore mode (scroll is the only control) -------- */
.sync-stage .sx-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
#sx-lock { opacity: 0; transition: opacity 400ms var(--ease-out); pointer-events: none; }
.sync-stage.is-exploring #sx-lock { opacity: 1; }
@keyframes sxBackfill {
  0%, 100% { stroke: inherit; }
  40% { stroke: #EFE6D6; }
}
.sync-stage.is-backfill .sy-cube polygon { animation: sxBackfill 700ms var(--ease-out) both; }
.sync-stage.is-backfill .sy-cube[data-d="1"] polygon { animation-delay: 120ms; }
.sync-stage.is-backfill .sy-cube[data-d="2"] polygon { animation-delay: 240ms; }
.sync-stage.is-backfill .sy-cube[data-d="3"] polygon { animation-delay: 360ms; }
.sync-stage.is-backfill .sy-cube[data-d="4"] polygon { animation-delay: 480ms; }
.sync-stage.is-backfill .sy-cube[data-d="5"] polygon { animation-delay: 600ms; }
.sync-stage.is-backfill .sy-cube[data-d="6"] polygon { animation-delay: 720ms; }
.sync-stage.is-backfill .sy-cube[data-d="7"] polygon { animation-delay: 840ms; }
.sx-ui button { font-family: 'Inter', system-ui, sans-serif; cursor: pointer; }
.sx-spot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1.5px solid #EFE6D6;
  background: #0B0B0C;
  color: #EFE6D6;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-soft), background-color 200ms, color 200ms;
}
.sx-spot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid #EFE6D6;
  animation: sxSpotPulse 2s ease-out infinite;
}
.sx-spot.is-on { background: #EFE6D6; color: #0B0B0C; }
.sx-spot.is-on::after { animation: none; opacity: 0; }
@keyframes sxSpotPulse {
  0% { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.5); }
}
.sync-stage.is-exploring .sx-spot { opacity: 1; transform: none; }
.sync-stage.is-exploring .sx-spot[data-k="1"] { transition-delay: 80ms; }
.sync-stage.is-exploring .sx-spot[data-k="2"] { transition-delay: 160ms; }
.sx-act:focus-visible { outline: 2px solid #EFE6D6; outline-offset: 3px; }
.sx-card {
  position: absolute;
  left: 190px;
  top: 128px;
  width: 216px;
  padding: 12px 14px;
  background: #0B0B0CF2;
  border: 1px solid #EFE6D640;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-soft);
}
.sx-card.is-on { opacity: 1; transform: none; }
.sx-card strong { display: block; color: #EFE6D6; font: 600 14px/18px 'Inter', system-ui, sans-serif; }
.sx-card p { margin: 4px 0 0; color: #C9C9CC; font: 400 14px/18px 'Inter', system-ui, sans-serif; }
.sx-bubble {
  position: absolute;
  transform: translate(-50%, 6px) scale(0.9);
  padding: 7px 12px;
  border-radius: 2px;
  white-space: nowrap;
  font: 600 14px/18px 'Inter', system-ui, sans-serif;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), transform 360ms var(--ease-soft);
}
.sx-bubble[data-tone="good"] { background: #3DCF7A; color: #0B0B0C; }
.sx-bubble[data-tone="bad"] { background: #F05353; color: #0B0B0C; }
.sx-bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sx-actions {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 560px;
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: opacity 300ms var(--ease-out) 200ms, transform 400ms var(--ease-soft) 200ms;
}
.sync-stage.is-exploring .sx-actions { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sx-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 2px;
  border: 1px solid #FFFFFF26;
  background: #141416;
  color: #F2F2F3;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: border-color 200ms, background-color 200ms, transform 150ms;
}
.sx-act i { width: 8px; height: 8px; border-radius: 50%; }
.sx-sync i { background: #3DCF7A; }
.sx-back i { background: #EFE6D6; }
.sx-sync:hover { border-color: #3DCF7A; }
.sx-back:hover { border-color: #EFE6D6; }
.sx-act:active { transform: scale(0.97); }
.sx-tally { flex-basis: 100%; text-align: center; color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.sx-tally span { color: #F2F2F3; font-variant-numeric: tabular-nums; }
.sx-packet { pointer-events: none; }
.sx-row-lit { background: #EFE6D60A; box-shadow: inset 2px 0 0 #EFE6D6; }
#sec-sync [style*="gap: 16px; padding-block: 16px"] { transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); padding-inline: 10px; margin-inline: -10px; }
@media (prefers-reduced-motion: reduce) {
  .sx-spot::after { animation: none !important; }
}
#sec-upclose {
  position: relative;
}
#sec-upclose::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -72px;
  height: 72px;
  background: linear-gradient(#0B0B0C, transparent);
  pointer-events: none;
}

/* Illustrations alternate sides down the page: Sync right, Companion left,
   Find the Edge right, Take a Closer Look left, Up close right */
#comp-explorer { flex-direction: row-reverse; }
#sec-closer { flex-direction: row-reverse; }

/* Sync: pinned 3-step setup (freeze while scroll walks token -> verify -> fills) */
.sync-pin-wrap { position: relative; width: 100%; }
.sync-pin-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}
.sync-pin-sticky #sec-sync { padding-block: 0 !important; }
#sync-steps > div {
  transition: box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#sync-steps > div * { transition: color 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
#sync-steps > div.sync-step-on { background: #EFE6D608; box-shadow: inset 2px 0 0 #F2F2F3; }
#sync-steps > div { padding-left: 14px; }
.sync-soon-chip { white-space: nowrap; }

html.lp-static .sync-pin-wrap { height: auto !important; }
html.lp-static .sync-pin-sticky { position: relative !important; height: auto !important; top: 0 !important; }
html.lp-static .sync-pin-sticky #sec-sync,
html.lp-static .sync-pin-sticky #sec-sync { padding-block: 140px !important; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .sync-pin-wrap { height: auto !important; }
  .sync-pin-sticky { position: relative !important; height: auto !important; top: 0 !important; }
  .sync-pin-sticky #sec-sync { padding-block: 140px !important; }
}

/* Closer Look: illustration blends into the page (no visible patch) */
#closer-stage.iso-stage::before {
  inset: -18% -16%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.25px);
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 50%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 50%, #000 10%, transparent 72%);
}
#closer-stage .cl-r-col { cursor: pointer; transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1); outline: none; }
#closer-stage.is-hovering .cl-r-col:not(.is-hot) { opacity: 0.35; }
#closer-stage .cl-r-col.is-hot polygon { stroke: #F2F2F3; }
.cl-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1D1D20;
  border: 1px solid #FFFFFF1A;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cl-tip.is-on { opacity: 1; transform: translate(-50%, -100%); }
.cl-tip strong { color: #F2F2F3; font: 600 12px/15px system-ui, sans-serif; }
.cl-tip span { color: #8E8E93; font: 400 12px/14px 'Inter', system-ui, sans-serif; }

/* Section hand-offs are driven by scroll; keep them on the compositor */
.lp-handoff { will-change: opacity, translate; }

/* Up close: frozen while scroll walks the entry; the card dissolves into the page */
.upclose-pin-wrap { position: relative; width: 100%; }
.upclose-pin-sticky { position: sticky; top: 0; width: 100%; display: flex; justify-content: center; overflow: clip; }
.upclose-pin-sticky #sec-upclose { padding-bottom: 0 !important; }
#sec-upclose .upclose-card {
  background-color: transparent !important;
  border-color: transparent !important;
}
#sec-upclose .upclose-card > div:nth-child(2) {
  background-color: transparent !important;
  border-color: transparent !important;
  position: relative;
}
#sec-upclose .upclose-card > div:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.25px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 58% at 50% 45%, #000 15%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
#sec-upclose .upclose-card > div:nth-child(2) > * { position: relative; z-index: 1; }
html.lp-static .upclose-pin-wrap { height: auto !important; }
html.lp-static .upclose-pin-sticky { position: relative !important; height: auto !important; }
html.lp-static .upclose-pin-sticky #sec-upclose { padding-bottom: 140px !important; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .upclose-pin-wrap { height: auto !important; }
  .upclose-pin-sticky { position: relative !important; height: auto !important; top: 0 !important; }
  .upclose-pin-sticky #sec-upclose { padding-bottom: 140px !important; }
}

/* Footer links + Powered by eCorp Capital */
.lp-foot-link { text-decoration: none; cursor: pointer; transition: color 160ms ease; }
.lp-foot-link:hover, .lp-foot-link:hover div { color: #F2F2F3 !important; }
.lp-foot-link:hover svg path, .lp-foot-link:hover svg circle { stroke: #F2F2F3; }
.lp-foot-link:focus-visible { outline: 1px solid #F2F2F3; outline-offset: 3px; border-radius: 2px; }
/* "Cookie settings" exists in the markup but is shown only when analytics is on (analytics.js); a later display rule must not reveal it */
#sec-footer [data-analytics-settings][hidden] { display: none !important; }
.lp-powered { transition: border-color 160ms ease, background-color 160ms ease; cursor: pointer; }
.lp-powered:hover { border-color: #FFFFFF40 !important; background-color: #1C1C1EB3 !important; }
.lp-powered-link { color: #F2F2F3; text-decoration: none; border-bottom: 1px solid #FFFFFF40; transition: border-color 160ms ease; }
.lp-powered-link:hover { border-color: #F2F2F3; }

/* Coming-soon exchange logos: monochrome by default, real colour on hover */
.ex-logo { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; background-size: cover; background-position: 50%; filter: grayscale(100%) brightness(1.1); opacity: 0.85; transition: filter 200ms ease, opacity 200ms ease; }
.sync-soon-chip { transition: color 200ms ease, border-color 200ms ease; }
.sync-soon-chip:hover { color: #F2F2F3 !important; border-color: #FFFFFF33 !important; }
.sync-soon-chip:hover .ex-logo { filter: none; opacity: 1; }

/* Powered by eCorp Capital: obvious, clickable */
.lp-powered-link { display: inline-flex; align-items: center; gap: 4px; color: #F2F2F3 !important; font-weight: 500; text-decoration: underline; text-decoration-color: #F2F2F380; text-underline-offset: 3px; border-bottom: 0 !important; transition: text-decoration-color 160ms ease, opacity 160ms ease; }
.lp-powered-link:hover { text-decoration-color: #F2F2F3; }
.lp-faq-link { color: #F2F2F3; text-decoration: underline; text-decoration-color: #F2F2F380; text-underline-offset: 3px; transition: text-decoration-color 160ms ease; }
.lp-faq-link:hover { text-decoration-color: #F2F2F3; }
.lp-access-link { color: #F2F2F3; text-decoration: underline; text-decoration-color: #F2F2F380; text-underline-offset: 3px; transition: text-decoration-color 160ms ease; }
.lp-access-link:hover { text-decoration-color: #F2F2F3; }
.lp-powered-link svg { transition: transform 160ms ease; }
.lp-powered-link:hover svg { transform: translate(1px, -1px); }
.lp-foot-powered { display: inline-flex; align-items: center; gap: 6px; color: #F2F2F3; font: 500 14px/20px system-ui, sans-serif; text-decoration: underline; text-decoration-color: #F2F2F366; text-underline-offset: 4px; }
.lp-foot-powered:hover { text-decoration-color: #F2F2F3; }

/* ==========================================================================
   SEMANTIC ELEMENTS: real links, buttons and headings keep the Paper styling
   ========================================================================== */
#paper-root .lp-h {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
#paper-root .lp-a {
  display: block;
  color: inherit;
  text-decoration: none;
}
#paper-root .lp-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
#paper-root .lp-btn.faq-q {
  display: block;
  width: 100%;
  text-align: left;
}
#paper-root .lp-foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#paper-root .lp-foot-list a { text-decoration: none; }
#paper-root .lp-nav-link { text-decoration: none; }
#paper-root .lp-road-link { cursor: pointer; }

/* Visible keyboard focus everywhere, without changing the mouse look */
#paper-root a:focus-visible,
#paper-root button:focus-visible,
#paper-root [tabindex]:focus-visible,
#paper-root input:focus-visible {
  outline: 2px solid #EFE6D6;
  outline-offset: 3px;
  border-radius: 2px;
}
#paper-root section:focus,
#paper-root main:focus { outline: none; }


/* Companion: the screenshot fades out at the frame edge instead of being cut mid-message */
#comp-preview-frame { position: relative; }
#comp-preview-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, #11111300 0%, #111113 85%);
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE LAYOUT (≤ 900px)
   The 1440 canvas stops scaling here and every section reflows into one
   column. Illustrations marked [data-fit] are resized to their column by JS,
   with any labels inside kept at 12px or larger.
   ========================================================================== */
.lp-menu-btn { display: none; }

@media (max-width: 900px) {
  #paper-root {
    width: 100% !important;
    zoom: 1 !important;
    overflow-x: clip !important;
  }
  #paper-root * { max-width: 100% !important; }
  #paper-root [data-fit],
  #paper-root [data-fit] *,
  .lp-cmp-table > [role="row"],
  .lp-cmp-table > [role="row"] * { max-width: none !important; }

  /* Section rhythm */
  #paper-root section.lp-sec {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #sec-sync, .sync-pin-sticky #sec-sync,
  #sec-companion, #sec-analytics, #sec-closer, #sec-faq {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .upclose-pin-sticky #sec-upclose { padding-bottom: 72px !important; }
  #sec-cta { padding-top: 64px !important; padding-bottom: 72px !important; }
  .edge-pin-wrap, .sync-pin-wrap, .upclose-pin-wrap, .comp-pin-wrap,
  .closer-pin-wrap, .road-pin-wrap { width: 100% !important; height: auto !important; }
  .edge-pin-sticky, .sync-pin-sticky, .upclose-pin-sticky, .comp-pin-sticky,
  .closer-pin-sticky, .road-pin-sticky {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    width: 100% !important;
  }

  /* Headlines wrap instead of shrinking */
  #paper-root h1.lp-h {
    font-size: clamp(40px, 11vw, 56px) !important;
    line-height: 1.04 !important;
  }
  #paper-root h2.lp-h[style*="font-size: 50px"],
  #sec-cta h2.lp-h {
    font-size: clamp(32px, 8.4vw, 44px) !important;
    line-height: 1.1 !important;
  }

  /* Section header rows: headline above intro copy */
  #comp-pin-sticky > div:first-child,
  #sec-analytics > div:first-child,
  #sec-comparison > div:nth-child(3),
  #sec-roadmap > div:nth-child(4) {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* --- Nav: logo, CTA, and a real menu disclosure ---------------------- */
  #lp-nav {
    z-index: 50;
    height: 68px !important;
    padding: 12px 0 0 !important;
    gap: 8px;
    justify-content: flex-start !important;
  }
  /* The logo file carries ~0.47x its height of empty space before the mark; the
     negative margin puts the mark itself on the 20px gutter */
  #lp-nav .lp-logo { margin-right: auto; margin-left: -12px; width: 176px !important; height: 36px !important; }
  #lp-nav > a[data-cta] { height: 40px !important; padding-inline: 14px !important; }
  #lp-nav > a[data-cta] > div { font-size: 14px !important; }
  /* Hamburger: three lines that turn into an X */
  .lp-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid #FFFFFF26 !important;
    border-radius: 2px;
    transition: border-color 200ms ease, background-color 200ms ease;
  }
  .lp-menu-btn[aria-expanded="true"] { border-color: #FFFFFF59 !important; background: #FFFFFF0D !important; }
  .lp-burger { position: relative; display: block; width: 18px; height: 12px; }
  .lp-burger i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    border-radius: 1px;
    background: #F2F2F3;
    transition: transform 360ms var(--ease-soft), opacity 200ms ease, top 360ms var(--ease-soft);
  }
  .lp-burger i:nth-child(1) { top: 0; }
  .lp-burger i:nth-child(2) { top: 5.25px; }
  .lp-burger i:nth-child(3) { top: 10.5px; }
  .lp-menu-btn[aria-expanded="true"] .lp-burger i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
  .lp-menu-btn[aria-expanded="true"] .lp-burger i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
  .lp-menu-btn[aria-expanded="true"] .lp-burger i:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }
  /* The menu drops in: fade + slide, links follow one after another */
  .lp-nav-links {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 220ms ease, transform 320ms var(--ease-soft), visibility 0s linear 320ms;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    translate: none !important;
    z-index: 30;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 6px;
    background: #111113;
    border: 1px solid #FFFFFF1F;
    border-radius: 6px;
    box-shadow: #00000099 0 20px 40px;
  }
  .lp-nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 220ms ease, transform 320ms var(--ease-soft), visibility 0s;
  }
  .lp-nav-links .lp-nav-link { opacity: 0; transform: translateY(-4px); transition: opacity 240ms ease, transform 320ms var(--ease-soft), background-color 160ms ease; }
  .lp-nav-links.is-open .lp-nav-link { opacity: 1; transform: none; }
  .lp-nav-links.is-open .lp-nav-link:nth-child(2) { transition-delay: 40ms; }
  .lp-nav-links.is-open .lp-nav-link:nth-child(3) { transition-delay: 80ms; }
  .lp-nav-links.is-open .lp-nav-link:nth-child(4) { transition-delay: 120ms; }
  .lp-nav-links.is-open .lp-nav-link:nth-child(5) { transition-delay: 160ms; }
  .lp-nav-links .lp-nav-link:active { background: #FFFFFF0D; }
  @media (prefers-reduced-motion: reduce) { .lp-nav-links, .lp-nav-links .lp-nav-link, .lp-burger i { transition: none !important; } }
  .lp-nav-links .lp-nav-link {
    padding: 12px 14px;
    font-size: 16px !important;
    line-height: 24px !important;
    border-radius: 4px;
  }

  /* --- Hero ------------------------------------------------------------ */
  #sec-hero { height: auto !important; }
  #sec-hero > div:nth-child(4) { padding: 40px 20px 0 !important; width: 100%; }
  #sec-hero > div:nth-child(4) > div:nth-child(3) { width: 100% !important; }
  #sec-hero > div:nth-child(4) > div:nth-child(4) { flex-wrap: wrap; justify-content: center; }
  #sec-hero > div:nth-child(4) > div:nth-child(5) { text-align: center; line-height: 22px !important; }
  #sec-hero [data-fit="1064"] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
  }
  #sec-hero > div:last-child { height: 140px !important; }

  /* --- Integrations strip ---------------------------------------------- */

  /* --- Sync ------------------------------------------------------------ */
  #sec-sync {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 40px !important;
  }
  #sec-sync > div { width: 100% !important; }
  #sync-exchanges, #sync-steps { width: 100% !important; }
  #sync-exchanges > div:nth-child(2) > div:nth-child(2) { flex-wrap: wrap; }

  /* --- Companion ------------------------------------------------------- */
  #sec-companion { gap: 40px !important; align-items: stretch !important; }
  #sec-companion > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
    width: 100% !important;
  }
  #sec-companion > div:nth-child(2) > div {
    height: auto !important;
    min-height: 200px;
    width: auto !important;
    gap: 24px;
  }
  #comp-explorer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 32px !important;
    width: 100% !important;
  }
  #comp-list { width: 100% !important; }
  .comp-desc-inner > div { width: auto !important; }

  /* --- Analytics ------------------------------------------------------- */
  #sec-analytics { gap: 40px !important; align-items: stretch !important; }
  #analytics-board {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .edge-rail { width: 100% !important; }
  #sim-ctrl, #edge-stage .sim-legend, #sim-note { display: none !important; }

  /* --- Closer look ----------------------------------------------------- */
  #sec-closer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 32px;
  }
  #sec-closer > div:first-child { width: 100% !important; height: auto !important; gap: 32px; }
  #closer-stage { align-self: center; }

  /* --- Up close -------------------------------------------------------- */
  #sec-upclose {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px;
  }
  #sec-upclose > div:first-child { width: 100% !important; padding-right: 0 !important; }
  #sec-upclose > div:nth-child(2) { width: 100% !important; padding: 0 !important; }
  #sec-upclose .upclose-card > div:nth-child(2) { padding: 16px 0 !important; }
  #sec-upclose .upclose-card > div:nth-child(2) > div:nth-child(3),
  #sec-upclose .upclose-card > div:nth-child(2) > div:nth-child(4) {
    flex-wrap: wrap;
    gap: 12px !important;
  }

  /* --- Comparison: the table scrolls inside itself, row labels stay put - */
  #sec-comparison { padding-top: 72px !important; padding-bottom: 72px !important; gap: 40px !important; }
  #sec-comparison > div:nth-child(4) { width: 100% !important; }
  .lp-cmp-table {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .lp-cmp-table > [role="row"] { width: max-content !important; }
  .lp-cmp-table > [role="row"] > :first-child {
    width: 132px !important;
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #0B0B0C;
    padding-right: 12px !important;
  }
  .lp-cmp-table > [role="row"] > :nth-child(2) { width: 150px !important; }
  .lp-cmp-table > [role="row"]:first-child > :nth-child(2) > div { width: 118px !important; }
  /* the table is wider than a phone: say so, and let the next column peek in */
  #sec-comparison > div:nth-child(4)::before {
    content: "Swipe to compare \2192";
    display: block;
    margin-bottom: 12px;
    color: #8E8E93;
    font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  #sec-comparison > div:nth-child(4) > div:nth-child(n+2) {
    flex-wrap: wrap;
    width: 100% !important;
  }
  #sec-comparison > div:nth-child(4) > div:nth-child(3) { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  #sec-comparison > div:nth-child(4) > div:nth-child(3) > div { width: auto !important; }

  /* Dither artwork bands: anchored to the bottom, shorter, below the copy */
  /* The comparison's desert artwork stays a desktop piece too. Matched by position: absolute because a
     desktop window narrowed to this width has moved it out into .lp-art-band (setupFreeze in landing.js) */
  #sec-comparison > div:nth-child(-n+2)[style*="position: absolute"] { display: none !important; }
  /* The roadmap's artwork stays a desktop piece: on phones the section ends with its list */
  #sec-roadmap > div:nth-child(1), #sec-roadmap > div:nth-child(2) { display: none !important; }
  #sec-footer > div > div:nth-child(1), #sec-footer > div > div:nth-child(2) { height: 400px !important; }

  /* --- Roadmap --------------------------------------------------------- */
  #sec-roadmap {
    height: auto !important;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
    gap: 40px !important;
    zoom: 1 !important;
    margin-top: 0 !important;
  }
  #lh-svg, #faq-beam { display: none !important; }
  #sec-roadmap > div:nth-child(5) > div:first-child { display: none !important; }
  #sec-roadmap > div:nth-child(5) > div:nth-child(2) {
    flex-direction: column !important;
    gap: 40px !important;
    width: 100% !important;
  }
  #sec-roadmap > div:nth-child(5) > div:nth-child(2) > div { width: 100% !important; padding-right: 0 !important; }
  /* Status tags stay on one line; a long feature name wraps instead */
  #sec-roadmap > div:nth-child(5) > div:nth-child(2) > div > div:nth-child(2) > * { gap: 12px; }
  #sec-roadmap > div:nth-child(5) > div:nth-child(2) > div > div:nth-child(2) > * > :nth-child(2) { flex-shrink: 0; white-space: nowrap; }

  /* --- FAQ ------------------------------------------------------------- */
  #sec-faq { flex-direction: column !important; align-items: stretch !important; gap: 40px !important; }
  #sec-faq > div, #faq-accordion { width: 100% !important; }

  /* --- Footer ---------------------------------------------------------- */
  #sec-footer > div {
    height: auto !important;
    padding: 56px 20px 300px !important;
    gap: 40px !important;
  }
  #sec-footer > div > div:nth-child(3) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px !important;
    width: 100% !important;
  }
  #sec-footer > div > div:nth-child(3) > div { width: auto !important; }
  #sec-footer > div > div:nth-child(3) > div:first-child { grid-column: 1 / -1; }
  #sec-footer > div > div:nth-child(4) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
  }
  #sec-footer > div > div:nth-child(4) > div:nth-child(2) { flex-wrap: wrap; row-gap: 8px; }
  #sec-footer .lp-foot-list a, #sec-footer .lp-foot-link { display: inline-block; padding-block: 4px; }
}

@media (max-width: 560px) {
  #lp-nav .lp-logo { width: min(154px, calc(100vw - 236px)) !important; height: 32px !important; }
  #lp-nav > a[data-cta] { height: 36px !important; padding-inline: 10px !important; }
  #lp-nav > a[data-cta] > div { font-size: 13px !important; white-space: nowrap; }
  #sec-hero > div:nth-child(4) > div:nth-child(4) { flex-direction: column; width: 100%; max-width: 360px; }
  #sec-hero > div:nth-child(4) > div:nth-child(4) > a { justify-content: center; }
  #sec-companion > div:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
  #sec-companion > div:nth-child(2) > div { min-height: 0; }
  #sec-cta > div:nth-child(3) { flex-direction: column; width: 100%; max-width: 360px; }
  #sec-cta > div:nth-child(3) > a { justify-content: center; display: flex; }
}
@media (min-width: 600px) and (max-width: 900px) {
  #sec-footer > div > div:nth-child(3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the demo actions only exist while the scene is exploring; keep them out of the tab order otherwise */
.sync-stage:not(.is-exploring) .sx-actions { visibility: hidden; }

/* Square corners everywhere outside the hero: chips, tags, toasts, toggles */
#paper-root .sync-soon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 6px !important;
  border: 1px solid #FFFFFF1A;
  border-radius: 2px;
  background: #151517;
  color: #C9C9CC !important;
  font: 400 14px/18px 'Inter', system-ui, sans-serif !important;
}
#paper-root .sync-soon-chip[aria-pressed="true"] { border-color: #EFE6D680; color: #F2F2F3 !important; }
.sync-soon-chip[aria-pressed="true"] .ex-logo { filter: none; opacity: 1; }
.sync-soon-more {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 8px;
  color: #8E8E93;
  font: 400 14px/18px 'Inter', system-ui, sans-serif;
}
#sync-exchanges .ex-logo { border-radius: 2px; }

/* Numbered hotspots: the digit sits in the middle of its circle */
.sx-spot { display: flex; align-items: center; justify-content: center; line-height: 1; }
.sx-spot > span { display: block; line-height: 1; font-variant-numeric: tabular-nums; }

/* Coming-soon dropdown on the Sync stage */
.sy-picker {
  position: absolute;
  right: 48px;
  top: 70px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}
.sy-picker-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px !important;
  border: 1px solid #FFFFFF26 !important;
  border-radius: 2px;
  background: #111113 !important;
  color: #EFE6D6 !important;
  font: 500 12px/14px 'JetBrains Mono', ui-monospace, monospace !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 160ms ease;
}
.sy-picker-btn:hover, .sy-picker.is-open .sy-picker-btn { border-color: #EFE6D680 !important; }
.sy-picker-btn .ex-logo { width: 14px; height: 14px; border-radius: 2px; filter: none; opacity: 1; }
.sy-picker-soon { color: #8E8E93; }
.sy-picker-soon::before { content: "· "; }
.sy-picker-btn svg { transition: transform 160ms ease; }
.sy-picker.is-open .sy-picker-btn svg { transform: rotate(180deg); }
.sy-picker-list {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 188px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #111113;
  border: 1px solid #FFFFFF1F;
  border-radius: 2px;
  box-shadow: #00000099 0 16px 32px;
  outline: none;
}
.sy-picker.is-open .sy-picker-list { display: block; }
.sy-picker-list [role="option"] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #C9C9CC;
  font: 400 14px/18px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  border-radius: 2px;
}
.sy-picker-list [role="option"].is-active { background: #1E1E21; color: #F2F2F3; }
.sy-picker-list [role="option"][aria-selected="true"] { color: #F2F2F3; }
.sy-picker-list [role="option"][aria-selected="true"]::after { content: "✓"; margin-left: auto; color: #EFE6D6; font-size: 12px; }
.sy-picker-list .ex-logo { width: 16px; height: 16px; border-radius: 2px; }
.sy-picker-list .is-active .ex-logo { filter: none; opacity: 1; }
.sy-picker-note {
  margin: 2px 0 0;
  min-height: 40px;
  color: #8E8E93;
  font: 400 14px/20px 'Inter', system-ui, sans-serif;
}
/* previewing a coming-soon exchange: its tower lights up in cream (never green: it is not live yet) */
.sync-stage.is-preview .sy-hl polygon { stroke: #EFE6D6; stroke-dasharray: 4 3; }
.sync-stage.is-preview .sy-hl-line { stroke: #EFE6D680; }
.sync-stage.is-preview .sy-cond-soon { stroke: #EFE6D6; stroke-opacity: 0.55; animation: syCondFlow 1400ms linear infinite; }
@keyframes syLogoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sync-stage.is-preview .sy-cond-soon { animation: none; }
}
.er-stats-note {
  margin: -16px 0 0;
  color: #8E8E93;
  font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 400ms var(--ease-out);
}
.er-stats.is-hidden + .er-stats-note { opacity: 0; }
#paper-root .sync-soon-chip:hover { border-color: #FFFFFF40; color: #F2F2F3 !important; }
/* On the responsive layout the chips beside the steps drive the preview; the stage dropdown would be shrunk with the art */
@media (max-width: 900px) { .sy-picker { display: none !important; } }

/* Exchanges and prop firms: an endless, slow carousel with soft edges */
.lp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-logo-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.lp-logo-track {
  display: flex;
  width: max-content;
  animation: lpLogoScroll 38s linear infinite;
}
.lp-logo-marquee:hover .lp-logo-track { animation-play-state: paused; }
.lp-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 72px;
}
@keyframes lpLogoScroll { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .lp-logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; row-gap: 16px; }
  .lp-logo-track > .lp-logo-item:nth-child(n+8) { display: none; }
}
@media (max-width: 900px) {
  #sec-integrations { padding-top: 40px !important; padding-left: 0 !important; padding-right: 0 !important; }
  #paper-root .lp-logo-track, #paper-root .lp-logo-track * { max-width: none !important; }
  .lp-logo-item { padding-right: 44px; }
  .lp-logo-item > div:nth-child(2) { font-size: 16px !important; }
}
#sy-src.is-build polygon, #sy-src.is-build line { animation: sySrcIn 520ms var(--ease-soft) both; }
#sy-src.is-build polygon:nth-child(n+4) { animation-delay: 60ms; }
#sy-src.is-build polygon:nth-child(n+7) { animation-delay: 120ms; }
#sy-src.is-build polygon:nth-child(n+10) { animation-delay: 180ms; }
@keyframes sySrcIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.sync-stage:not(.is-live) #sy-src { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #sy-src.is-build polygon, #sy-src.is-build line { animation: none; } }

/* Shared freeze (hero, comparison, FAQ, final CTA) */
.lp-gpin-wrap { position: relative; width: 100%; }
.lp-gpin-sticky { position: relative; width: 100%; display: flow-root; }
.lp-gpin-wrap.is-pinned .lp-gpin-sticky { position: sticky; top: 0; overflow: clip; z-index: 1; }
.lp-art-band { position: relative; width: 100%; pointer-events: none; z-index: 0; }
@media (max-width: 900px) {
  .lp-gpin-wrap { height: auto !important; }
  .lp-gpin-sticky { height: auto !important; }
  .lp-art-band { display: none !important; }
}

/* ==========================================================================
   HERO TOUR: real demo screens crossfade inside the dashboard frame,
   and the frame opens the demo
   ========================================================================== */
[data-fit="1064"] { overflow: hidden; }
.lp-tour { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.lp-tour-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 1135px 739px;
  background-position: -34px -34px;
  background-color: #0B0B0C;
  opacity: 0;
  transition: opacity 1600ms cubic-bezier(0.45, 0, 0.2, 1);
}
.lp-tour-slide.is-on { opacity: 1; }
/* While the hero is frozen the scroll drives the dissolve directly */
.lp-tour-slide.is-scrub { transition: none; }
@media (prefers-reduced-motion: reduce) { .lp-tour-slide { transition: none; } }

/* Simulator: try it on your own trades */
.er-try {
  margin-top: -12px;
  color: #EFE6D6;
  font: 500 14px/20px 'Inter', system-ui, sans-serif;
  text-decoration: underline;
  text-decoration-color: #EFE6D666;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease, opacity 400ms var(--ease-out);
  align-self: flex-start;
}
.er-try:hover { text-decoration-color: #EFE6D6; }
.er-stats.is-hidden ~ .er-try { opacity: 0; pointer-events: none; }



/* Final CTA: who it is built with */
.lp-social { margin: 0; color: #8E8E93; font: 400 14px/20px 'Inter', system-ui, sans-serif; }
.lp-social b { color: #F2F2F3; font-weight: 600; }

@media (max-width: 900px) {
}

/* ==========================================================================
   PHONES: every section is one stacked column and the page scrolls natively.
   The art for Sync, Closer Look, Companion and Find the Edge sits above its
   steps; each step plays as it crosses the reading line (onStepPass in
   landing.js), which only changes highlights, never the page's height.
   ========================================================================== */
@media (max-width: 900px) {
  /* Every step's text stays open, so nothing above or below it moves while scrolling */
  .comp-desc-wrap, .closer-step-desc-wrap, .er-desc-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Sync: heading, exchanges, then the art, then the three steps */
  #sec-sync > div:first-child { display: contents !important; }
  #sec-sync > div:first-child > div:first-child { order: 1; }
  #sync-exchanges { order: 2; }
  #sec-sync > div:nth-child(2) { order: 3; padding: 8px 0; }
  #sync-steps { order: 4; }
  #sync-steps > div { padding-block: 22px !important; }
  /* The steps list explains each stage, so the in-art card and demo buttons stay out of the way */
  #sync-stage .sx-card, #sync-stage .sx-actions { display: none !important; }

  /* Closer Look: heading, the art, then the three steps */
  #sec-closer > div:first-child { display: contents !important; }
  #sec-closer > div:first-child > div:first-child { order: 1; }
  #closer-stage { order: 2; }
  #sec-closer > div:first-child > div:nth-child(2) { order: 3; }
  #sec-closer > div:first-child > div:nth-child(3) { order: 4; }

  /* Companion: the preview above the three things to ask */
  #comp-preview-frame { order: 1; }
  #comp-list { order: 2; }

  /* Footer legal links: one tidy row that wraps, no stray separators */
  #sec-footer > div > div:nth-child(4) > div:nth-child(2) { gap: 8px 20px !important; }
  #sec-footer > div > div:nth-child(4) > div:nth-child(2) > div { display: none !important; }
}

.er-run-mobile { display: none !important; }
@media (max-width: 900px) {
  .er-run-mobile {
    display: inline-flex !important;
    align-self: flex-start;
    align-items: center;
    height: 40px;
    padding: 0 16px !important;
    border: 1px solid #FFFFFF26 !important;
    border-radius: 2px;
    background: #141416 !important;
    color: #F2F2F3 !important;
    font: 500 14px/20px 'Inter', system-ui, sans-serif !important;
  }
  .er-stats.is-hidden ~ .er-run-mobile { display: none !important; }
}
/* Phones: the Closer Look badge's larger label would run past the cropped art */
@media (max-width: 900px) { #cl-fit-badge { left: 220px !important; } }
@media (max-width: 374px) { #cl-fit-badge { left: 146px !important; } }
@media (max-width: 359px) { #lp-nav > a[data-cta] { display: none !important; } }

@media (max-width: 900px) {
  /* Find the Edge: the chart above the list it answers to */
  #edge-stage { order: 1; }
  #analytics-board > .edge-rail { order: 2; }
}
/* Phones: the setup rows grow with their enlarged labels instead of overlapping */
@media (max-width: 900px) {
  #edge-stage .pf-row { height: auto !important; min-height: 0 !important; padding-block: 6px; align-items: center; }
  #edge-stage .pf-name { white-space: nowrap; }
  #edge-stage .pf-name span { display: none; }
  #edge-stage .pf-rows { gap: 2px !important; }
}
/* Phones: step highlights glide instead of snapping as they cross the reading line */
@media (max-width: 900px) {
  #sync-steps > div, #sync-steps > div * { transition: color 320ms ease, background-color 320ms ease, box-shadow 320ms ease; }
  .er-item, .er-item * { transition: color 320ms ease, background-color 320ms ease; }
}

/* ==========================================================================
   RISK SECTION (replaces the Companion story): small illustrations in the
   feature cards, and a slim, honest Companion "coming soon" strip below.
   ========================================================================== */
#comp-preview { transition: background-image 0s, opacity 400ms var(--ease-out); }
.rk-art { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.rk-pair { flex-direction: row; gap: 8px; }
.rk-tile { display: inline-flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.rk-val { font-size: 24px !important; line-height: 28px !important; }
.rk-pair { gap: 28px !important; }
.rk-label { color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.rk-val { color: #F2F2F3; font: 500 16px/20px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.rk-val.is-neg { color: #F05353; }
.rk-sub { display: inline-flex; align-items: center; gap: 6px; color: #8E8E93; font: 400 12px/16px 'Inter', system-ui, sans-serif; }
.rk-sub i { width: 6px; height: 6px; border-radius: 50%; background: #3DCF7A; }
.rk-streak { display: grid; grid-template-columns: repeat(8, 14px); gap: 4px; }
.rk-streak i { width: 14px; height: 14px; border-radius: 2px; background: #3DCF7A; opacity: 0.85; }
.rk-streak i.l { background: #F05353; opacity: 0.85; }
.rk-streak i:nth-child(n+8):nth-child(-n+12) { box-shadow: 0 0 0 1px #EFE6D6; }
.rk-spark { width: 168px; height: 56px; overflow: visible; }
.rk-spark path { fill: none; stroke: #EFE6D6; stroke-width: 1.6; stroke-linejoin: round; }
.rk-spark .rk-zero { stroke: #FFFFFF26; stroke-dasharray: 3 4; }

@media (max-width: 900px) {
}
/* Comparison: an eCorpFolio feature that is on the roadmap, not in V1 yet */
.cmp-soon {
  padding: 2px 8px;
  border: 1px solid #EFE6D659;
  border-radius: 2px;
  color: #EFE6D6;
  font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
}
/* Comparison: link to the full, sourced comparison pages */
.cmp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: #EFE6D6; font: 500 14px/20px 'Inter', system-ui, sans-serif; text-decoration: underline; text-decoration-color: #EFE6D666; text-underline-offset: 4px; }
.cmp-more:hover { text-decoration-color: #EFE6D6; }

/* Risk section without containers: the screens blend into the page, the
   four facts sit on hairlines instead of in boxes */
#comp-preview-frame { background: transparent !important; border: 0 !important; }
#comp-preview-frame::after { display: none; }
#comp-preview {
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 55%, transparent 100%);
}
#sec-companion > div:nth-child(2) { gap: 40px !important; }
#sec-companion > div:nth-child(2) > div {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #FFFFFF1A !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 24px 0 0 !important;
  height: auto !important;
  gap: 24px;
}
#sec-companion > div:nth-child(2) > div.lp-card-hover:hover { transform: none !important; background: transparent !important; }

/* Companion, next on the roadmap: copy beside a real preview, no box */
.comp-teaser { display: flex; align-items: center; justify-content: space-between; gap: 64px; width: 1280px; padding-top: 24px; }
.comp-teaser p { margin: 0; }
.comp-teaser-copy { max-width: 520px; }
.comp-teaser-eyebrow { color: #EFE6D6; font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; }
.comp-teaser-line { margin-top: 18px !important; color: #F2F2F3; font: 500 40px/44px 'Inter', system-ui, sans-serif; letter-spacing: -0.04em; }
.comp-teaser-sub { margin-top: 18px !important; color: #8E8E93; font: 400 16px/24px 'Inter', system-ui, sans-serif; }
.comp-teaser-link { color: #EFE6D6; text-decoration: underline; text-decoration-color: #EFE6D666; text-underline-offset: 4px; white-space: nowrap; }
.comp-teaser-link:hover { text-decoration-color: #EFE6D6; }
.comp-teaser-art { position: relative; flex-shrink: 0; width: 440px; height: 440px; margin: 0; overflow: hidden; }
.comp-teaser-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%), linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%), linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.comp-teaser-art figcaption { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 2px; background: #0B0B0CCC; color: #EFE6D6; font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.1em; }
@media (max-width: 900px) {
  .comp-teaser { flex-direction: column; align-items: stretch; gap: 28px; width: 100%; }
  .comp-teaser-line { font-size: 30px; line-height: 34px; }
  .comp-teaser-art { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  #sec-companion > div:nth-child(2) { gap: 28px 16px !important; }
}

/* ==========================================================================
   Step markers instead of 01 / 02 / 03: an empty ring for steps you have not
   reached, a glowing cream dot for the one playing now.
   ========================================================================== */
#sync-steps > div > div:first-child,
.comp-item-num,
.closer-step-num,
.er-num {
  position: relative;
  flex: 0 0 auto;
  width: 10px !important;
  height: 10px;
  min-width: 10px;
  margin-top: 6px;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: visible;
}
.er-num { margin-top: 0; }
#sync-steps > div > div:first-child::before,
.comp-item-num::before,
.closer-step-num::before,
.er-num::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #FFFFFF40;
  background: transparent;
  transition: background-color 400ms ease, border-color 400ms ease, box-shadow 500ms ease, transform 500ms var(--ease-soft);
}
#sync-steps > div.sync-step-on > div:first-child::before,
.comp-item.is-active .comp-item-num::before,
.closer-step.is-active .closer-step-num::before,
.er-item.is-active .er-num::before {
  border-color: #EFE6D6;
  background: #EFE6D6;
  box-shadow: 0 0 0 4px #EFE6D61F, 0 0 14px #EFE6D659;
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  #sync-steps > div > div:first-child::before, .comp-item-num::before, .closer-step-num::before, .er-num::before { transition: none; }
}

/* ==========================================================================
   SEE DEMO: a guided walkthrough of the app on a sample account.
   A native <dialog> (focus stays inside, Esc closes); five real demo screens
   in an app window, the steps beside them, previous / next and close.
   ========================================================================== */
html.lp-demo-open { overflow: hidden; }
.lp-demo {
  width: min(1280px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #FFFFFF1F;
  border-radius: 6px;
  background: #0B0B0C;
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: #000000B3 0 40px 120px;
  overflow: auto;
  overscroll-behavior: contain;
}
.lp-demo::backdrop { background: #0B0B0CCC; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lp-demo[open] { animation: lp-demo-in 420ms var(--ease-soft); }
.lp-demo[open]::backdrop { animation: lp-demo-fade 300ms ease; }
@keyframes lp-demo-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes lp-demo-fade { from { opacity: 0; } }
.lp-demo button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.lp-demo a { color: inherit; text-decoration: none; }
.lp-demo :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 2px; }
.lp-demo-in { padding: 28px 32px 32px; }
.lp-demo-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; margin-bottom: 24px; }
.lp-demo-eyebrow { grid-column: 1; margin: 0 0 10px; color: var(--muted); font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.12em; }
.lp-demo-h { grid-column: 1; margin: 0; font-size: 32px; font-weight: 500; line-height: 36px; letter-spacing: -0.04em; }
.lp-demo-close {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid #FFFFFF26 !important; border-radius: 2px;
  color: #C9C9CC !important;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.lp-demo-close:hover { border-color: #FFFFFF59 !important; background: #FFFFFF0D !important; color: var(--fg) !important; }
/* The screen grows with the width but never past what fits the height, so the whole demo shows without scrolling */
.lp-demo-body { display: grid; grid-template-columns: minmax(0, calc((100dvh - 264px) * 1.5934)) 320px; justify-content: space-between; gap: 40px; align-items: start; }
.lp-demo-window { border: 1px solid #FFFFFF1F; border-radius: 6px; background: #111113; overflow: hidden; }
.lp-demo-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid #FFFFFF14; }
.lp-demo-dots { display: flex; gap: 6px; width: 38px; }
.lp-demo-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2A2A2E; }
.lp-demo-url { flex: 1; margin-right: 38px; text-align: center; color: var(--muted); font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }
.lp-demo-url b { color: var(--fg); font-weight: 500; }
.lp-demo-screens { position: relative; aspect-ratio: 2304 / 1446; background: #0B0B0C; touch-action: pan-y; }
.lp-demo-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.01); transition: opacity 600ms var(--ease-soft), transform 900ms var(--ease-soft); }
.lp-demo-screens img.is-on { opacity: 1; transform: none; }
.lp-demo-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0 0; color: #7C7C81; font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; }
.lp-demo-progress { display: flex; gap: 4px; }
.lp-demo-progress i { width: 18px; height: 2px; background: #FFFFFF1F; transition: background-color 300ms ease; }
.lp-demo-progress i.is-on { background: var(--cream); }
.lp-demo-steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid #FFFFFF14; }
.lp-demo-step { position: relative; padding: 0 0 18px 22px; }
.lp-demo-step::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--cream); transition: height 400ms var(--ease-soft); }
.lp-demo-step.is-active::before { height: 100%; }
.lp-demo-step button { display: block; width: 100%; }
.lp-demo-num { display: block; margin-bottom: 6px; color: #7C7C81; font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; transition: color 300ms ease; }
.lp-demo-title { display: block; color: #7C7C81; font-size: 17px; font-weight: 500; line-height: 24px; letter-spacing: -0.02em; transition: color 300ms ease; }
.lp-demo-step button:hover .lp-demo-title { color: #C9C9CC; }
.lp-demo-step p { margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 21px; opacity: 0; max-height: 0; transition: max-height 400ms var(--ease-soft), opacity 300ms ease, margin 300ms ease; }
.lp-demo-step.is-active .lp-demo-num { color: var(--cream); }
.lp-demo-step.is-active .lp-demo-title { color: var(--fg); }
.lp-demo-step.is-active p { margin-top: 8px; max-height: 120px; opacity: 1; }
.lp-demo-controls { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.lp-demo-prev, .lp-demo-next {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 2px;
  background: #1C1C1E !important; color: var(--fg) !important;
  transition: filter 200ms ease, opacity 200ms ease;
}
.lp-demo-prev:hover, .lp-demo-next:hover { filter: brightness(1.25); }
.lp-demo-prev:disabled, .lp-demo-next:disabled { opacity: 0.35; cursor: default; filter: none; }
.lp-demo-count { min-width: 44px; text-align: center; color: var(--muted); font: 500 12px/16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; }
.lp-demo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #FFFFFF14; }
.lp-demo-cta { display: inline-flex !important; align-items: center; height: 44px; padding-inline: 22px; border-radius: 2px; background: #FFFFFF; color: #0B0B0C !important; font-size: 14px; font-weight: 600; line-height: 20px; }
.lp-demo-live { color: var(--cream) !important; font-size: 14px; line-height: 20px; text-decoration: underline !important; text-decoration-color: #EFE6D666 !important; text-underline-offset: 4px; }
.lp-demo-live[hidden] { display: none; }

/* Short laptop screens: tighter spacing so the steps column fits too */
@media (min-width: 901px) and (max-height: 820px) {
  .lp-demo-in { padding: 22px 28px 26px; }
  .lp-demo-head { margin-bottom: 18px; }
  .lp-demo-h { font-size: 28px; line-height: 32px; }
  .lp-demo-step { padding-bottom: 12px; }
  .lp-demo-actions { margin-top: 18px; padding-top: 18px; }
}
/* Tablets and phones: the screen on top, then only the current step, controls at the bottom */
@media (max-width: 900px) {
  .lp-demo { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .lp-demo-in { padding: 20px 16px 20px; }
  .lp-demo-head { margin-bottom: 16px; }
  .lp-demo-h { font-size: 24px; line-height: 28px; }
  .lp-demo-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp-demo-bar { height: 28px; padding: 0 10px; }
  .lp-demo-dots { width: 30px; gap: 4px; }
  .lp-demo-dots i { width: 6px; height: 6px; }
  .lp-demo-url { margin-right: 30px; font-size: 11px; }
  .lp-demo-caption { margin-top: 10px; font-size: 11px; white-space: nowrap; }
  .lp-demo-progress i { width: 12px; }
  .lp-demo-steps { border-left: 0; min-height: 118px; }
  .lp-demo-step { display: none; padding: 0; }
  .lp-demo-step::before { display: none; }
  .lp-demo-step.is-active { display: block; }
  .lp-demo-step button { cursor: default; }
  .lp-demo-step p { transition: none; }
  .lp-demo-controls { justify-content: space-between; margin-top: 12px; }
  .lp-demo-actions { align-items: stretch; margin-top: 18px; padding-top: 18px; }
  .lp-demo-cta { justify-content: center; }
  .lp-demo-live { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-demo[open], .lp-demo[open]::backdrop { animation: none; }
  .lp-demo-screens img, .lp-demo-step::before, .lp-demo-step p, .lp-demo-num, .lp-demo-title { transition: none; }
  .lp-demo-screens img { transform: none; }
}

/* ==========================================================================
   PAGE GRID (desktop): one content column between 80px gutters on the 1440
   canvas, which zooms with the window. Rows that used fixed design widths
   fill that column instead, so they stay on both edges when a frozen section
   is zoomed to fit a short window (fitZoom in landing.js).
   ========================================================================== */
@media (min-width: 901px) {
  /* Comparison: the table spans the column; columns keep their 200 : 176 proportions */
  .lp-cmp-wrap,
  .lp-cmp-table > [role="row"] { width: 100% !important; }
  .lp-cmp-table > [role="row"] > :nth-child(2),
  .lp-cmp-cta > :nth-child(2) { flex: none !important; width: calc((100% - 200px) * 200 / 1080) !important; }
  .lp-cmp-table > [role="row"] > :nth-child(n+3) { flex: none !important; width: calc((100% - 200px) * 176 / 1080) !important; }
  /* Two-column sections: the second column ends on the right edge */
  #sec-faq,
  #analytics-board { justify-content: space-between; }
  /* Roadmap: three equal columns under the timeline's three nodes */
  #sec-roadmap > div:nth-child(5) > div:nth-child(2) > div { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
}

/* ==========================================================================
   PHONES AND SMALL TABLETS: one content column on the 20px gutters, with every
   control at least 44px tall. Standalone text links reach 44px through a
   transparent ::after, so their type and underline keep the design's size.
   ========================================================================== */
@media (max-width: 900px) {
  /* clip, not hidden: while See Demo locks the page, the body must not become a scroll container of its own */
  body { overflow-x: clip; }

  /* Nav: the logo's mark stays at its size inside a 44px link */
  #lp-nav .lp-logo {
    height: 44px !important;
    padding-block: 4px;
    background-origin: content-box;
    background-clip: content-box;
  }
  #lp-nav > a[data-cta] { height: 44px !important; }
  .lp-menu-btn { width: 44px; height: 44px; }

  #sec-hero .lp-powered-link,
  #sec-footer .lp-foot-powered { position: relative; }
  #sec-hero .lp-powered-link::after,
  #sec-footer .lp-foot-powered::after { content: ""; position: absolute; inset: -8px 0 -14px; } /* less above: the hero's Discord link sits 9px over it */

  /* Sync: the step rows sit on the same edges as the rule above them */
  #sync-steps > div { margin-inline: 0 !important; width: 100%; }
  #paper-root .sync-soon-chip { height: 44px; padding: 0 12px 0 8px !important; }
  .sync-soon-more { height: 44px; }

  /* Find the Edge: the list on the gutters; the simulator's numbers and links always show
     (hiding them would leave a hole, and the page must not change height as steps pass) */
  .edge-rail { padding: 0 !important; gap: 24px !important; }
  .er-item { padding: 16px; }
  .er-stats.is-hidden { opacity: 1; transform: none; pointer-events: auto; }
  .er-stats.is-hidden + .er-stats-note { opacity: 1; }
  .er-stats.is-hidden ~ .er-try { opacity: 1; pointer-events: auto; }
  .er-stats.is-hidden ~ .er-run-mobile { display: inline-flex !important; }
  .er-run-mobile { height: 44px; }
  .er-try { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: -16px; }

  /* ...and its charts make room for their labels, which never go below 12px on screen */
  #edge-stage .sim-sub2, #edge-stage .pf-foot span, #edge-stage .pf-foot strong { line-height: 1.25; }
  #edge-stage .pf-foot div { min-width: 0; }
  #edge-stage .sim-pill rect { transform: scale(1.7); transform-box: fill-box; transform-origin: center; }
  #edge-stage .cal-week { justify-content: center; padding-right: 0; white-space: nowrap; }
  #edge-stage .cal-dow { letter-spacing: 0; white-space: nowrap; }

  /* Closer Look: enlarged art labels stay on one line, inside the frame and off the plate */
  #cl-axis-labels > div { flex-wrap: nowrap !important; white-space: nowrap; }
  #cl-step3-labels > div:nth-child(2) { left: 480px !important; top: 596px !important; }

  /* Up close: the card's rows share the gutters; its controls are full-size */
  #sec-upclose .upclose-card > div:first-child { padding-inline: 0 !important; }
  .upclose-unit-btn { display: flex; align-items: center; justify-content: center; min-width: 44px !important; height: 44px !important; }
  /* its title row wraps as a unit: the short label never breaks in two */
  #sec-upclose .upclose-card > div:nth-child(2) > div:first-child { flex-wrap: wrap; gap: 4px 12px; }
  #sec-upclose .upclose-card > div:nth-child(2) > div:first-child > :first-child > :first-child { white-space: nowrap; }
  #sec-upclose .upclose-card > div:nth-child(2) > div:nth-child(4) > div:nth-child(2) > * { height: 44px !important; }
  .uc-hint { left: 0; }

  /* Comparison: the table's CTA is a full button under the table, not a stray half card */
  .lp-cmp-cta {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    padding-top: 16px;
  }
  .lp-cmp-cta > :first-child { width: auto !important; }
  .lp-cmp-cta > :nth-child(2) {
    width: 100% !important;
    max-width: 360px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .lp-cmp-cta > :nth-child(2) > a { width: 100% !important; }
  .cmp-more { min-height: 44px; margin-top: 6px; }
  /* The price note is deliberately tiny, at the captain's request */
  .lp-cmp-wrap > div:nth-child(4) > div { font-size: 2.5px !important; line-height: 3.5px !important; }

  /* Companion teaser: a tablet's column would blow the preview up past its design size */
  #paper-root .comp-teaser-art { max-width: 440px !important; align-self: center; }

  /* FAQ */
  #sec-faq a.lp-a, #sec-faq a.lp-btn { min-height: 44px; }

  /* Footer: every link is a full row */
  #sec-footer .lp-foot-list { gap: 0 !important; }
  #sec-footer .lp-foot-list a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
  #sec-footer > div > div:nth-child(4) > div:first-child { gap: 0 !important; margin-left: -13px; }
  #sec-footer > div > div:nth-child(4) > div:first-child > a { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 0; }
  #sec-footer > div > div:nth-child(4) > div:nth-child(2) { gap: 0 20px !important; }
  #sec-footer > div > div:nth-child(4) > div:nth-child(2) > a, #sec-footer > div > div:nth-child(4) > div:nth-child(2) > button { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }

  /* See Demo */
  .lp-demo-close { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  #lp-nav .lp-logo { width: min(154px, calc(100vw - 240px)) !important; padding-block: 6px; }
}
/* Narrowest phones: chart headings wrap to two lines, so they start higher; the bars leave room for their values */
@media (max-width: 374px) {
  #edge-stage .sim-head, #edge-stage .es-cal > .pf-head { top: -16px; }
  #edge-stage .es-cal > .sim-sub2 { top: 22px; }
  #edge-stage .pf-track { margin-right: 70px; }
}
/* Too narrow for the nav's CTA (the hero's is right below): the logo takes back its room */
@media (max-width: 359px) {
  #lp-nav .lp-logo { width: 154px !important; }
  .lp-cmp-table > [role="row"] > :first-child { width: 112px !important; }
}

/* Phones in landscape: the hero's CTAs make the first screen */
@media (max-width: 900px) and (max-height: 500px) {
  #sec-hero > div:nth-child(4) { padding-top: 12px !important; }
  #sec-hero > div:nth-child(4) > div:nth-child(1) { margin-bottom: -8px; }
  #paper-root h1.lp-h { font-size: 44px !important; }
}

/* Touch screens wide enough for the desktop canvas (large phones in landscape, tablets):
   the same canvas without freezes, as with reduced motion (touchOnly in landing.js) */
@media (min-width: 901px) and (hover: none) and (pointer: coarse) {
  .sync-pin-wrap, .comp-pin-wrap, .edge-pin-wrap, .closer-pin-wrap, .upclose-pin-wrap, .road-pin-wrap { height: auto !important; }
  .sync-pin-sticky, .comp-pin-sticky, .edge-pin-sticky, .closer-pin-sticky, .upclose-pin-sticky, .road-pin-sticky {
    position: relative !important;
    height: auto !important;
    top: 0 !important;
  }
  .sync-pin-sticky #sec-sync { padding-block: 140px !important; }
  .upclose-pin-sticky #sec-upclose { padding-bottom: 140px !important; }
  #sec-closer { padding-top: 140px !important; padding-bottom: 80px !important; }
  /* Steps play as they cross the reading line here too: their text stays open so nothing moves */
  .comp-desc-wrap, .closer-step-desc-wrap, .er-desc-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
