/* ============================================================
   Calypsos Web Prototype — shared styles
   Two columns of long-scroll product page (Monolith / Standard).
   ============================================================ */

html, body {
  margin: 0;
  background: #0d0c0a;
  color: #fff;
  font-family: 'Matter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- App shell ---------- */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 auto;
  height: 48px;
  background: #0d0c0a;
  color: #b8b1a4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid #1f1c18;
  z-index: 5;
}
.topbar .left, .topbar .right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}
.topbar .right { justify-content: flex-end; }
.topbar .right span { color: #6e695f; }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 999px; background: #c46818;
  display: inline-block; margin-right: 8px; vertical-align: middle;
}

.topbar .switcher {
  display: inline-flex;
  background: #1a1714;
  border: 1px solid #2a2622;
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.topbar .switcher button {
  background: transparent;
  color: #8e887d;
  border: none;
  padding: 6px 14px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.topbar .switcher button:hover { color: #e7e3dc; }
.topbar .switcher button.on {
  background: #f6f4ef;
  color: #1a1714;
  font-weight: 500;
}

.stage {
  flex: 1;
  display: flex;
  min-height: 0;
  gap: 1px;
  background: #1f1c18;
}

.col {
  flex: 1;
  min-width: 0;
  background: #f6f4ef;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.col.hidden { display: none; }
.col::-webkit-scrollbar { width: 6px; }
.col::-webkit-scrollbar-track { background: transparent; }
.col::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* Label ribbon on each column */
.col-label {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}
.col-label .pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Reveal-on-scroll primitives ----------
   Reveals are scroll-linked: inline styles are updated directly from scroll
   position (no CSS transitions, no document timeline dependency). The
   initial state below is what shows before useReveal runs the first frame —
   start visible so unobserved nodes (or static SSR) never disappear. */
.r {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: opacity, transform;
}

/* ---------- Generic helpers ---------- */
.kbd-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Tweaks panel positioning override ---------- */
.tweaks-anchor {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 20;
}
