/* ===== LocusBot — landing page styles ===== */

:root {
  /* White-stone theme, matched to the logo: the black void of the hood,
     cool stone greys for surfaces and text, and the glowing white eyes as the
     one accent. Green/red stay for P&L. Archivo for display + body, IBM Plex
     Mono for labels and numbers. */
  --bg: #060607;
  --bg-panel: #0f0f11;
  --bg-panel-2: #161618;
  --border: #232326;
  --border-strong: #3a3a3f;
  --text: #e6e7ea;
  --text-dim: #9a9ba1;
  --text-faint: #6d6e74;
  --stone: #c9cacf;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --accent-ink: #060607; /* text on top of the accent */
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.14);
  --violet-glow: transparent;
  /* kept as gradients (not plain colors) so background-image / background-clip:text users still work */
  --grad: linear-gradient(var(--accent), var(--accent));
  --grad-text: linear-gradient(var(--accent), var(--accent));
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--stone);
  color: var(--accent-ink);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--stone);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */

/* site-wide announcement strip above the nav */
.promo-bar {
  display: block;
  padding: 9px 16px;
  background: var(--stone);
  color: var(--accent-ink);
  text-align: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.promo-bar b {
  font-weight: 700;
}

.promo-bar .promo-cta {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-bar:hover .promo-cta {
  text-decoration-thickness: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 7, 10, 0.7);
  border-bottom: 1px solid var(--border);
}

/* thin crystal edge under the nav */
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff 30%, #ffffff 70%, transparent);
  opacity: 0.6;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.08);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

/* ---------- hero ---------- */

.hero {
  padding-top: 0;
  padding-bottom: 72px;
  text-align: center;
}

.hero .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}

.hero-tracking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
}

.hero-tracking-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-tracking-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px 2px rgba(43, 209, 126, 0.5);
}

.hero-tracking-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-tracking-logos img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-tracking-logos img:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 18px -4px var(--accent-glow);
}

/* big floating crystal mascot in the hero */
.hero-logo {
  position: relative;
  z-index: 1;
  width: clamp(130px, 18vw, 190px);
  margin: 0 auto 8px;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  filter: blur(28px);
  animation: logoGlow 4s ease-in-out infinite;
}

/* 3D tilt layer: index.html sets --rx/--ry (degrees) and --mx/--my (sheen
   position) as the cursor moves over the banner. */
.hero-logo {
  perspective: 800px;
}

/* Real 3D logo (hero-logo-3d.js). The canvas overhangs the logo box so the
   model has room to turn without clipping; once it renders, the flat
   fallback below is hidden but keeps holding the layout. */
.hero-logo-3d {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}

.hero-logo-3d:active {
  cursor: grabbing;
}

.hero-logo.is-3d .hero-logo-tilt {
  visibility: hidden;
}

.hero-logo-tilt {
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
  --mx: 50%;
  --my: 35%;
  position: relative;
  transform-style: preserve-3d;
  transform: translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}

.hero-logo-float {
  position: relative;
  transform-style: preserve-3d;
  animation: logoFloat 6s ease-in-out infinite;
}

/* Solid thickness: index.html stacks darkened copies of the logo
   (.hero-logo-depth) behind the face at increasing translateZ depth, so its
   sides show as it turns instead of it reading as a flat card. */
.hero-logo-face,
.hero-logo-depth {
  display: block;
  width: 100%;
  backface-visibility: hidden;
}

.hero-logo-face {
  position: relative;
  transform: translateZ(0);
}

.hero-logo-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* moving highlight, clipped to the logo's own silhouette, just in front of the face */
.hero-logo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 28%, transparent 55%);
  -webkit-mask: url(assets/logo-512.png) center / contain no-repeat;
  mask: url(assets/logo-512.png) center / contain no-repeat;
  transform: translateZ(1px);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 72px 32px 64px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background:
    radial-gradient(600px 340px at 50% 30%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(17, 17, 22, 0.4), rgba(17, 17, 22, 0.9));
  text-align: center;
}

.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff 35%, #ffffff 65%, transparent);
}

.hero-banner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (max-width: 640px) {
  .hero-banner {
    padding: 64px 24px 44px;
  }
}

.hero-banner .eyebrow,
.hero-banner h1 {
  position: relative;
  z-index: 1;
}

.hero-banner .eyebrow {
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 20px;
}

/* stone headline, with the highlighted words lit white like the logo's eyes */
.hero h1 {
  color: var(--stone);
}

.hero h1 span {
  color: var(--accent);
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero p.lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- scan panel visual ---------- */

.best-calls-grid {
  display: flex;
  align-items: stretch;
  gap: 48px;
}

/* left column: top calls panel, with the up-only chart filling the rest */
.best-calls-grid .calls-col {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.best-calls-grid .scan-panel {
  flex: none;
  margin: 0;
  max-width: none;
}

.up-chart {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: transparent;
}

.eq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eq-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eq-total {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.eq-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 4px 0 18px;
}

.eq-plot {
  position: relative;
  flex: 1;
  min-height: 200px;
  cursor: crosshair;
  touch-action: pan-y;
}

.up-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* wipe the chart in left-to-right */
  clip-path: inset(-20px 100% -20px -20px);
  transition: clip-path 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.4s;
}

.best-calls-grid.in .up-chart svg {
  clip-path: inset(-20px -20px -20px -20px);
}

.up-chart-grid line {
  stroke: rgba(242, 242, 245, 0.08);
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
}

.up-chart-line {
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* glowing dot at the peak (top-right end of the line) */
.up-chart-peak {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 0 18px 4px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease 2.1s;
}

/* hover crosshair, snapping dot and readout */
.eq-cross {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.eq-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 0 16px 4px rgba(255, 255, 255, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.eq-tip {
  position: absolute;
  z-index: 2;
  min-width: 170px;
  padding: 10px 12px;
  background: rgba(17, 17, 22, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 24px -10px var(--accent-glow);
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.eq-tip .t-sym { font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.eq-tip .t-row { display: flex; justify-content: space-between; gap: 14px; color: var(--text-dim); }
.eq-tip .t-row b { color: var(--text); font-family: var(--mono); }
.eq-tip .t-row b.win { color: var(--win); }
.eq-tip .t-row b.run {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eq-plot.hover .eq-cross,
.eq-plot.hover .eq-dot,
.eq-plot.hover .eq-tip { opacity: 1; }
.eq-plot.hover .up-chart-peak { opacity: 0.35; animation: none; }

.up-chart-tag {
  flex: none;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--win);
}

.best-calls-grid.in .up-chart-peak {
  opacity: 1;
  animation: pulse 1.8s ease-in-out 2.5s infinite;
}

.best-calls-grid .hiw-col {
  flex: 1 1 480px;
  min-width: 0;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.best-calls-grid.in .calls-col,
.best-calls-grid.in .hiw-col {
  opacity: 1;
  transform: translateX(0);
}

/* three-steps block sitting beside the top calls box */
.hiw-col-head {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}

.hiw-col-head h2 {
  margin-top: 0;
}

.hiw-col .timeline {
  max-width: none;
  margin: 0;
}

@media (max-width: 760px) {
  .best-calls-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .best-calls-grid .calls-col,
  .best-calls-grid .hiw-col {
    transform: translateY(20px);
  }
  .best-calls-grid.in .calls-col,
  .best-calls-grid.in .hiw-col {
    transform: translateY(0);
  }
  .up-chart {
    min-height: 160px;
  }
  .hiw-col-head {
    text-align: center;
  }
}

.scan-panel {
  margin: 64px auto 0;
  max-width: 640px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 60px -30px var(--accent-glow);
  text-align: left;
}

.scan-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.06));
}

.scan-panel-head .live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}

.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(242, 242, 245, 0.07);
  font-size: 13.5px;
  opacity: 0;
  animation: rowIn 0.5s ease forwards;
  transition: background 0.2s ease;
}

.scan-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.scan-row:last-child {
  border-bottom: none;
}

.scan-row .token {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-family: var(--mono);
}

.scan-row .token .swatch {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--grad);
  box-shadow: 0 0 8px 1px var(--accent-glow);
}

.scan-row .src {
  color: var(--text-faint);
  font-size: 12px;
}

.scan-row .tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.tag-scanning {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-flagged {
  background: rgba(255, 180, 90, 0.14);
  color: #ffc074;
}

.tag-clear {
  background: rgba(43, 209, 126, 0.14);
  color: #2bd17e;
}

.scan-row .gain {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: #2bd17e;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-panel-foot {
  display: block;
  text-align: center;
  padding: 13px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

.scan-panel-foot:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* ---------- verified calls (homepage proof strip) ---------- */

.proof-heading {
  margin: 44px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
}

.hiw-teaser-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
  max-width: 720px;
  margin: 12px auto 48px;
  padding: 26px 48px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-panel);
  text-decoration: none;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* tighter spacing when it sits in the hero, between the lead and the Join button */
.hero .hiw-teaser-link {
  margin: 26px auto 0;
}

.hiw-teaser-link:hover {
  background: var(--bg-panel-2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6), 0 0 40px -10px var(--accent-glow);
}

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

@media (max-width: 560px) {
  .hiw-teaser-link {
    font-size: 1rem;
    padding: 20px 28px;
    gap: 8px 20px;
  }
}

.proof-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.proof-card {
  display: flex;
  flex-direction: column;
}

/* Image cards keep their own natural height — only chart cards (below)
   stretch to fill the row, so a short/wide screenshot never gets padded
   out with empty background trying to match a taller neighbor. */
.proof-strip .proof-card:not(.proof-card-chart) {
  align-self: start;
}

.proof-card-chart .proof-card-media {
  padding: 0;
  flex: 1;
  min-height: 320px;
  background: var(--bg-panel-2);
}

.proof-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.proof-card-cap a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.proof-card-cap a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .proof-strip {
    grid-template-columns: 1fr;
  }
}

.proof-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.proof-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 40px -16px var(--accent-glow);
  transform: translateY(-2px);
}

.proof-card-media {
  padding: 16px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.proof-card-cap {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.proof-card-cap b {
  color: var(--text);
  font-family: var(--mono);
}

/* ---------- features ---------- */

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 0 40px -16px var(--accent-glow);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.18));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 20px -6px var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- how it works ---------- */

.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: relative;
  z-index: 1;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-ink);
  background: transparent;
  border: 0;
}

/* faceted diamond node, echoing the crystal logo */
.timeline-node::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  transform: rotate(45deg);
  border-radius: 6px;
  background: var(--grad);
  box-shadow: 0 0 0 6px var(--bg), 0 0 26px 2px rgba(255, 255, 255, 0.45);
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-node::before {
  transform: rotate(225deg);
}

.timeline-content {
  flex: 1;
  padding-top: 6px;
}

.timeline-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
  max-width: 480px;
}

@media (max-width: 560px) {
  .timeline::before {
    left: 21px;
  }
  .timeline-node {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .timeline-item {
    gap: 16px;
  }
}

/* ---------- cta band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* sniper art on the left, copy on the darker right side */
  text-align: left;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0) 25%, rgba(7, 7, 10, 0.55) 55%, rgba(7, 7, 10, 0.85) 100%),
    url("assets/preorder-bg.jpg") left center / cover no-repeat,
    var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 88px 56px 88px 56%;
  min-height: 380px;
  box-shadow: 0 0 80px -30px var(--accent-glow);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  background: linear-gradient(180deg, #ffffff, #f2f2f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 14px 0 0;
  font-size: 15.5px;
}

.cta-band .cta-actions {
  justify-content: flex-start;
}

/* .container zeroes the section's vertical padding, so space the band out here */
#join {
  padding-top: 88px;
  padding-bottom: 72px;
}

/* narrow screens: photo behind, copy centered over a heavier shade */
@media (max-width: 760px) {
  .cta-band {
    text-align: center;
    padding: 64px 24px;
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.55), rgba(7, 7, 10, 0.8)),
      url("assets/preorder-bg.jpg") 30% center / cover no-repeat,
      var(--bg-panel);
  }
  .cta-band p {
    margin: 14px auto 0;
  }
  .cta-band .cta-actions {
    justify-content: center;
  }
}

.countdown-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 30px 0 14px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 40px -14px var(--accent-glow);
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
}

.coming-soon-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
  flex: none;
}

.coming-soon-note {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 18px 0 0;
}

.coming-soon-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cta-band-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  text-align: left;
}

.cta-band-left {
  flex: 1 1 320px;
  min-width: 0;
}

.cta-band-left .eyebrow {
  justify-content: flex-start;
}

.cta-band-left h2 {
  margin-top: 14px;
}

.cta-band-left p {
  margin: 14px 0 0;
}

.cta-band-left .cta-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.cta-band-right {
  flex: 1 1 420px;
  min-width: 0;
}

@media (max-width: 620px) {
  .cta-band-grid {
    flex-direction: column;
    text-align: center;
  }
  .cta-band-left {
    width: 100%;
  }
  .cta-band-left .eyebrow,
  .cta-band-left .cta-actions {
    justify-content: center;
  }
  .cta-band-left p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- footer ---------- */

footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff 30%, #ffffff 70%, transparent);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- blog ---------- */

.blog-masthead {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.blog-masthead-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.blog-feed {
  max-width: 760px;
}

.blog-post {
  display: flex;
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.blog-post:first-child {
  padding-top: 40px;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-num {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 4px;
}

.blog-post-body-wrap {
  min-width: 0;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.blog-post-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.blog-post-tags {
  display: flex;
  gap: 8px;
}

.blog-post-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
}

.blog-post-title {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

.blog-post-copy p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 62ch;
}

.blog-post-copy p:first-child {
  color: var(--text);
  font-size: 17px;
}

.blog-post-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .blog-post {
    gap: 14px;
    padding: 36px 0;
  }
  .blog-post-title {
    font-size: 1.4rem;
  }
}

/* ---------- feature rows (alternating, scroll-in) ---------- */

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-row-media {
  flex: 1 1 52%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel-2);
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature-row-reverse .feature-row-media {
  transform: translateX(36px);
}

.feature-row.in .feature-row-media {
  opacity: 1;
  transform: translateX(0);
}

.feature-row-media img {
  width: 100%;
  display: block;
}

.feature-row-text {
  flex: 1 1 40%;
  min-width: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.feature-row.in .feature-row-text {
  opacity: 1;
  transform: translateY(0);
}

.feature-row-text h3 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.feature-row-text p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

.feature-more {
  text-align: center;
  padding-bottom: 56px;
}

.feature-more .coming-soon-note {
  max-width: 52ch;
  margin: 18px auto 0;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .feature-rows {
    gap: 40px;
  }
  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-row-media,
  .feature-row-reverse .feature-row-media {
    transform: translateY(24px);
  }
  .feature-row.in .feature-row-media {
    transform: translateY(0);
  }
  .feature-row-text {
    text-align: center;
  }
  .feature-row-text p {
    max-width: none;
    margin: 0 auto;
  }
}

/* ---------- how it works ---------- */

.hiw-tracking {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hiw-tracking-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hiw-tracking-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px 2px rgba(43, 209, 126, 0.5);
}

/* sources -> Locus -> your group flow on how-it-works.html */
.hiw-system {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}

.hs-sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hs-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.hs-node img,
.hs-out-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

.hs-node b,
.hs-core b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--text);
}

.hs-node span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

.hs-link {
  position: relative;
  flex: 1 1 40px;
  min-width: 28px;
  max-width: 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent));
}

.hs-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow);
  animation: hs-flow 2.2s linear infinite;
}

@keyframes hs-flow {
  from { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { left: calc(100% - 8px); opacity: 0; }
}

.hs-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-panel-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 40px -12px var(--accent-glow);
  flex: none;
}

.hs-core img {
  width: 54px;
  height: 54px;
}

.hs-stages {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-stages li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.hs-stages li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

.hs-out {
  border-color: var(--accent);
}

.hs-out-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .hiw-system {
    flex-direction: column;
  }
  .hs-sources,
  .hs-node {
    width: 100%;
    max-width: 320px;
  }
  .hs-link {
    flex: none;
    width: 2px;
    height: 32px;
    min-width: 0;
    background: linear-gradient(180deg, var(--border-strong), var(--accent));
  }
  .hs-pulse {
    top: 0;
    left: 50%;
    margin: 0 0 0 -4px;
    animation-name: hs-flow-down;
  }
}

@keyframes hs-flow-down {
  from { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { top: calc(100% - 8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-pulse { animation: none; opacity: 0; }
}

.hiw-stats-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin: 14px 0 8px;
}

.hiw-timeline {
  max-width: 720px;
}

.hiw-note-foot {
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint) !important;
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  max-width: none !important;
}

.hiw-honest {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
}

.hiw-honest-tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hiw-honest p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- docs page ---------- */

.docs-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.docs-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.docs-hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 16.5px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}

.docs-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-toc-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 8px;
}

.docs-toc a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-toc a:hover {
  color: var(--text);
  background: rgba(242, 242, 245, 0.06);
}

.docs-toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.docs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-section h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.docs-section h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.docs-section p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 14px;
}

.docs-section ul {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.docs-section li {
  margin-bottom: 8px;
}

.docs-section li::marker {
  color: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  font-size: 14.5px;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    top: auto;
  }
}

/* ---------- field manual (docs) ---------- */

.fm-ruler {
  display: block;
  width: 100%;
  height: 20px;
  color: var(--border-strong);
}

.fm-sweep {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .fm-sweep {
    animation: fm-sweep 7s linear infinite;
  }
}

@keyframes fm-sweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(960px); }
}

.fm-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.fm-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 18px auto 0;
  color: var(--text);
}

.fm-lede {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 16.5px;
  color: var(--text-dim);
}

.fm-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--bg-panel);
}

.fm-badge-live {
  color: #2bd17e;
  border-color: rgba(43, 209, 126, 0.3);
  background: rgba(43, 209, 126, 0.1);
}

.fm-badge-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .fm-badge-live .dot {
    animation: pulse 2.2s ease-in-out infinite;
  }
}

.fm-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.fm-dim {
  color: var(--text-faint) !important;
}

.fm-note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 560px;
  margin-top: 24px;
}

.fm-diagram {
  margin: 28px 0 0;
}

.fm-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.fm-diagram figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
  max-width: 580px;
}

.fm-cmdlist {
  border-top: 1px solid var(--border);
  margin: 0;
}

.fm-cmdrow {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.fm-cmdrow dt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}

.fm-cmdrow dd {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

.fm-schema {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel);
  margin-top: 8px;
}

.fm-schema-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  font-size: 14px;
}

.fm-schema-row + .fm-schema-row {
  border-top: 1px solid var(--border);
}

.fm-schema-row.fm-headrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-panel-2);
}

.fm-schema-row div {
  padding: 12px 16px;
}

.fm-schema-row div:first-child {
  font-family: var(--mono);
  color: var(--text);
  font-weight: 600;
  border-right: 1px solid var(--border);
}

.fm-schema-row div:last-child {
  color: var(--text-dim);
}

.fm-gain {
  color: #2bd17e !important;
  font-weight: 700 !important;
  font-family: var(--mono);
}

.fm-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 32px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  margin: 0;
}

.fm-principle dt {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.fm-principle dd {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.fm-footer-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .fm-principles {
    grid-template-columns: 1fr;
  }
  .fm-cmdrow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .fm-schema-row {
    grid-template-columns: 1fr 1.6fr;
  }
}

/* ---------- field edition (locus bot essay doc) ---------- */

.lb-epigraph {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  max-width: 46ch;
  margin: 0 auto 28px;
  text-align: left;
}

.lb-epigraph b {
  color: var(--text);
}

#lbCanvas {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0 0 8px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.lb-lede {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: var(--text);
  max-width: 40ch;
  margin: 0 auto 20px;
  font-weight: 500;
}

.fm-badge-plus {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.lb-capgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.lb-cap {
  background: var(--bg-panel);
  padding: 22px;
}

.lb-cap h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.lb-cap p {
  font-size: 14px;
  line-height: 1.66;
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 640px) {
  .lb-capgrid {
    grid-template-columns: 1fr;
  }
}

.lb-capgrid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 780px) {
  .lb-capgrid-3 {
    grid-template-columns: 1fr;
  }
}

.lb-stats {
  display: flex;
  margin: 24px 0 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.lb-stat {
  flex: 1;
  padding: 20px 18px;
  border-left: 1px solid var(--border);
  text-align: center;
  background: var(--bg-panel);
}

.lb-stat:first-child {
  border-left: none;
}

.lb-stat .num {
  font-family: var(--display);
  font-size: 32px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-weight: 700;
}

.lb-stat .cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .lb-stats {
    flex-direction: column;
  }
  .lb-stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .lb-stat:first-child {
    border-top: none;
  }
}

.lb-checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

.lb-checks li b {
  color: var(--text);
}

.lb-checks .mk {
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 1px;
}

.lb-close {
  padding: 64px 0 0;
  text-align: center;
}

.lb-close .lb-lede {
  max-width: 32ch;
}

.lb-disclaimer {
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 60ch;
  margin: 14px auto 0;
}

.lb-colophon {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

/* ---------- call ledger (calls.html) ---------- */

:root {
  --win: #2bd17e;
  --loss: #ff5a6e;
  --amber: #ffc074;
  --amber-soft: rgba(255, 180, 90, 0.14);
  --chain-sol: #c9c9d4;
  --chain-rbh: #2bd17e;
}

.cl-slideshow {
  margin: 0 0 8px;
}

.cl-slide-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel-2);
  aspect-ratio: 16 / 9;
}

.cl-slide-cover-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 72px;
  text-align: center;
  font-family: var(--display);
  background: radial-gradient(ellipse at center, rgba(7, 7, 10, 0.55) 0%, rgba(7, 7, 10, 0) 70%);
  pointer-events: none;
}

.cl-slide-cover-text[hidden] {
  display: none;
}

.cl-cover-title {
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.cl-cover-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: var(--text-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.cl-slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.cl-slide-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(7, 7, 10, 0.65);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.cl-slide-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.cl-slide-prev { left: 14px; }
.cl-slide-next { right: 14px; }

.cl-slide-stat {
  text-align: center;
  padding: 26px 0 16px;
  font-family: var(--mono);
}

.cl-slide-stat .cl-story-sym {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cl-slide-stat .cl-story-mult {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--win);
}

.cl-slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 6px;
}

.cl-slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
}

.cl-slide-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow);
}

@media (max-width: 720px) {
  .cl-slide-stat .cl-story-mult {
    font-size: 1.4rem;
  }
  .cl-slide-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

.cl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  /* Dividers come from each tile's outline filling the 1px gap, so a
     leftover empty cell on a wrapped last row reads as panel, not a grey block. */
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 24px;
}

.cl-tile {
  background: var(--bg-panel);
  outline: 1px solid var(--border);
  padding: 20px 22px;
}

.cl-tile .cl-label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.cl-tile .cl-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.cl-tile .cl-value.win { color: var(--win); }
.cl-tile .cl-value.loss { color: var(--loss); }

.cl-tile .cl-foot {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

.cl-explainer,
.cl-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  margin-bottom: 24px;
}

.cl-explainer h2,
.cl-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.cl-explainer p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.cl-explainer p:last-child { margin-bottom: 0; }

.cl-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.cl-tier {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.cl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 5px;
  padding: 3px 8px;
  flex: none;
  white-space: nowrap;
}

.cl-badge-checked {
  background: rgba(255, 255, 255, 0.16);
  color: var(--accent);
}

.cl-badge-manual {
  background: var(--amber-soft);
  color: var(--amber);
}

.cl-badge-rug {
  background: rgba(255, 90, 110, 0.12);
  color: #ff5a6e;
}

.cl-dropdown {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
  margin-bottom: 24px;
  overflow: hidden;
}

.cl-dropdown > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-dropdown > summary::-webkit-details-marker {
  display: none;
}

.cl-dropdown > summary:hover {
  background: var(--bg-panel-2);
}

.cl-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  gap: 12px;
}

.cl-dropdown-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.cl-dropdown-teaser b {
  color: var(--win);
  font-weight: 700;
}

.cl-dropdown[open] .cl-dropdown-teaser {
  color: var(--text-faint);
}

.cl-dropdown-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 500;
  transition: transform 0.2s ease;
  flex: none;
}

.cl-dropdown[open] .cl-dropdown-arrow {
  transform: rotate(180deg);
}

.cl-dropdown-inner {
  padding: 0 26px 26px;
}

.cl-dropdown-inner .cl-panel,
.cl-dropdown-inner .proof-strip {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 22px 0 0;
  margin: 0;
}

.cl-dropdown-inner .cl-panel + .cl-panel,
.cl-dropdown-inner .proof-strip + .cl-panel {
  border-top: 1px solid var(--border);
}

.cl-panel-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: -4px 0 16px;
}

.cl-chart-wrap {
  overflow-x: auto;
}

#clChart {
  display: block;
  width: 100%;
  height: 300px;
}

.cl-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 12px 2px 2px;
  flex-wrap: wrap;
}

.cl-legend .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

#clTooltip {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.08s ease;
  max-width: 240px;
}

#clTooltip .t-sym { font-weight: 700; font-size: 13.5px; font-family: var(--display); }
#clTooltip .t-row { color: var(--text-dim); display: flex; justify-content: space-between; gap: 14px; }
#clTooltip .t-row .num { color: var(--text); }

.cl-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-hint {
  font-size: 12.5px;
  color: var(--text-faint);
}

.cl-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

#clTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  min-width: 760px;
  font-family: var(--display);
}

#clTable thead th {
  position: sticky;
  top: 0;
  background: var(--bg-panel-2);
  text-align: left;
  font-size: 12px;
  color: var(--text-dim);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

#clTable thead th:hover { color: var(--text); }
#clTable thead th .arrow { opacity: 0.4; margin-left: 3px; }
#clTable thead th.sorted .arrow { opacity: 1; color: var(--accent); }

#clTable tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(242, 242, 245, 0.07);
  font-size: 13.5px;
  white-space: nowrap;
}

#clTable tbody tr:last-child td { border-bottom: none; }
#clTable tbody tr { transition: background 0.15s ease; }
#clTable tbody tr:hover { background: rgba(255, 255, 255, 0.06); }

.cl-sym { font-weight: 600; font-family: var(--mono); }

.cl-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: 1px;
}

.cl-chip-sol { background: rgba(141, 141, 156, 0.16); color: var(--chain-sol); }
.cl-chip-rbh { background: rgba(43, 209, 126, 0.14); color: var(--chain-rbh); }

.cl-mult { font-family: var(--mono); font-weight: 700; }
.cl-mult.win { color: var(--win); }
.cl-mult.flat { color: var(--text-dim); }

.cl-result { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.cl-result.win { color: var(--win); background: rgba(43, 209, 126, 0.1); }
.cl-result.loss { color: var(--loss); background: rgba(242, 242, 245, 0.06); }
.cl-result.open { color: var(--amber); background: var(--amber-soft); }
.cl-na { color: var(--text-faint); font-style: italic; }

.cl-chart-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
}

.cl-chart-link:hover { text-decoration: underline; }

.cl-footnote {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
}

@media (max-width: 640px) {
  #clChart { width: 640px; }
}

/* ---------- trade simulator (simulator.html) ---------- */

.sim {
  --sim-ghost: #4d4e54;
  --sim-expected: #8a8b91;
  max-width: 1088px;
  display: grid;
  /* minmax(0, …) so the wide trades table scrolls inside its box instead of widening the page */
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 80px;
  font-size: 14px;
}

/* the page is a stack of <section>s; don't inherit the landing page's 96px band padding */
.sim section {
  padding: 0;
  min-width: 0;
}

.sim h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-top: 10px;
}

.sim h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

.sim p {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 72ch;
  margin: 6px 0 0;
}

.sim-flag {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.sim-flag b {
  color: var(--accent);
}

.sim .sim-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.sim-ctl {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.sim-ctl label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-ctl output {
  font-family: var(--mono);
  font-size: 22px;
}

.sim-ctl small {
  font-size: 12px;
  color: var(--text-dim);
}

.sim input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

.sim-seg {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.sim-seg button {
  flex: 1;
  background: transparent;
  color: var(--text-dim);
  border: 0;
  padding: 8px;
  font: 600 13px var(--mono);
  cursor: pointer;
  white-space: nowrap;
}

.sim-seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.sim-seg button:focus-visible,
.sim-reroll:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.sim-reroll {
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  font: 700 14px var(--mono);
  cursor: pointer;
  align-self: end;
}

.sim-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.sim-tile {
  border-top: 2px solid var(--accent);
  padding-top: 8px;
  min-width: 0;
}

.sim-tile b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.sim-tile span {
  font-size: 12px;
  color: var(--text-dim);
}

.sim-pos { color: var(--win); }
.sim-neg { color: var(--loss); }
.sim-neutral { color: var(--text); }

.sim .sim-chartbox {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.sim-chartbox svg {
  display: block;
}

.sim-chartbox svg text {
  fill: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
}

.sim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font: 12px var(--mono);
  color: var(--text-dim);
}

.sim-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  vertical-align: middle;
  margin-right: 6px;
}

.sim-tbl {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 380px;
  margin-top: 10px;
}

.sim-tbl table {
  border-collapse: collapse;
  width: 100%;
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}

.sim-tbl th,
.sim-tbl td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.sim-tbl th {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  background: var(--bg-panel);
}

.sim-tbl td:nth-child(-n+3),
.sim-tbl th:nth-child(-n+3) {
  text-align: left;
}

.sim p.sim-nfa {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 13px;
  max-width: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(242, 242, 245, 0.08);
  }
  .nav-cta .btn-secondary {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  section {
    padding: 64px 0;
  }
}

/* ---------- roadmap page ---------- */

.roadmap-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.roadmap-intro h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.roadmap-intro p {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 16.5px;
}

.roadmap-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  margin: -28px auto 56px;
}

.roadmap-tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 1;
  position: relative;
}

.roadmap-tracker-step::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.roadmap-tracker-step:first-child::before {
  display: none;
}

.roadmap-tracker-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.roadmap-tracker-step.done .roadmap-tracker-dot {
  background: var(--win);
  border-color: var(--win);
}

.roadmap-tracker-step.current .roadmap-tracker-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.roadmap-tracker-step.done,
.roadmap-tracker-step.current {
  color: var(--text);
}

.roadmap-tracker-step:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .roadmap-tracker {
    display: none;
  }
}

.roadmap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 30px;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  /* green through the shipped + launched phases, accent from "Now" on */
  background: linear-gradient(180deg, var(--win) 0%, var(--win) 62%, var(--accent) 74%, #ffffff 90%, rgba(255, 255, 255, 0.1) 100%);
}

.roadmap-phase {
  position: relative;
  margin-bottom: 52px;
}

.roadmap-phase:last-child {
  margin-bottom: 0;
}

.roadmap-phase::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow);
}

.roadmap-phase.done::before {
  background: var(--win);
  border-color: var(--win);
  box-shadow: 0 0 10px 1px rgba(43, 209, 126, 0.5);
}

.roadmap-phase-head {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.roadmap-phase.done .roadmap-phase-head {
  color: var(--win);
}

.roadmap-phase-dek {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 60ch;
  margin: 0 0 18px;
}

.roadmap-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.roadmap-card:last-child {
  margin-bottom: 0;
}

.roadmap-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.roadmap-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-family: var(--display);
  color: var(--text);
}

.roadmap-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.roadmap-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid currentColor;
  flex: none;
}

.roadmap-pill.ready { color: var(--win); background: rgba(43, 209, 126, 0.1); }
.roadmap-pill.watch { color: var(--amber); background: var(--amber-soft); }
.roadmap-pill.idea { color: var(--text-faint); background: rgba(242, 242, 245, 0.06); }

/* ---------- motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-logo-float,
  .hero-logo::before,
  .hero h1 span {
    animation: none;
  }
}

.roadmap-foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 560px) {
  .roadmap {
    padding-left: 22px;
  }
  .roadmap-phase::before {
    left: -22px;
  }
  .roadmap-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
