/* RoyaltyLens Landing v3 — dashboard hero styles + animation modes.
   Inherits the v1 page chrome (landing.css). Only the dashboard mock
   and a few hero overrides live here. */

/* Make the hero column split favor the visual side a bit */
.rlv3-host .rl-hero {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
}
.rlv3-host .rl-hero-visual {
  overflow: visible;
}

/* Allow the dashboard to bleed slightly into the visual margin for
   that "luxury" feel without breaking the grid */
.rlv3-host .rl-hero-copy { max-width: 480px; }

/* ───────────────────────────────────────────────────────────────────
   DASHBOARD MOCK — base styles (shared across all 3 modes)
   ─────────────────────────────────────────────────────────────────── */
.rlv3-dash {
  background: #FFFFFF;
  border: 1px solid #EDEDEF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 32px 64px -28px rgba(11, 11, 12, 0.22),
    0 8px 20px -8px rgba(11, 11, 12, 0.08);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  color: #0B0B0C;
  font-size: 11.5px;
  line-height: 1.4;
  width: 100%;
  position: relative;
  letter-spacing: -0.005em;
}
.rlv3-dash * { box-sizing: border-box; }
.rlv3-mono, .rlv3-dash .rlv3-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "tnum", "zero";
}

/* Chrome */
.rlv3-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #FBFBFC;
  border-bottom: 1px solid #EDEDEF;
}
.rlv3-dots { display: flex; gap: 5px; }
.rlv3-dots span { width: 8px; height: 8px; border-radius: 50%; background: #E5E5E7; display: inline-block; }
.rlv3-url {
  flex: 1; max-width: 320px; margin: 0 auto;
  padding: 3px 9px; border-radius: 5px; background: #F0F0F2;
  font-family: "JetBrains Mono", monospace; font-size: 10px; color: #6B6B70;
  text-align: center;
}
.rlv3-chrome-r { width: 40px; }

/* Top nav */
.rlv3-nav {
  display: flex; align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #EDEDEF;
  height: 40px;
  gap: 16px;
}
.rlv3-nav-l { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.rlv3-mark {
  width: 20px; height: 20px;
  background: #0B0B0C; color: #fff;
  border-radius: 4px; font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.rlv3-word { font-size: 12px; letter-spacing: -0.015em; }
.rlv3-word b { font-weight: 700; }
.rlv3-tabs { display: flex; gap: 1px; margin-left: 6px; }
.rlv3-tab {
  font-size: 10.5px; color: #6B6B70; font-weight: 500;
  padding: 3px 7px; border-radius: 4px;
}
.rlv3-tab-on { background: #F5F5F7; color: #0B0B0C; font-weight: 600; }
.rlv3-nav-r { display: flex; align-items: center; gap: 8px; }
.rlv3-search {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border: 1px solid #EDEDEF;
  background: #FBFBFC; border-radius: 5px;
  font-size: 10px;
}
.rlv3-search-i { color: #8E8E93; }
.rlv3-search-p { color: #8E8E93; }
.rlv3-search-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  padding: 0 3px;
  background: #fff;
  border: 1px solid #EDEDEF;
  border-radius: 3px;
  color: #6B6B70;
  margin-left: 4px;
}
.rlv3-new-audit {
  background: #0B0B0C; color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px; font-weight: 600;
}
.rlv3-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: #F0F0F2; color: #6B6B70;
  font-size: 9px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Header band */
.rlv3-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #EDEDEF;
  background: #FFFFFF;
  display: flex; justify-content: space-between; align-items: center;
}
.rlv3-today {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.08em;
  color: #6B6B70; font-weight: 600;
  margin-bottom: 3px;
}
.rlv3-greet {
  font-size: 17px; font-weight: 600; letter-spacing: -0.022em;
}
.rlv3-greet-sub {
  font-size: 10.5px; color: #6B6B70; margin-top: 2px;
}
.rlv3-seg {
  display: inline-flex; align-items: center;
  padding: 2px; gap: 1px;
  background: #F5F5F7; border: 1px solid #EDEDEF; border-radius: 5px;
  font-size: 10px; font-weight: 500; color: #6B6B70;
}
.rlv3-seg > span { padding: 3px 8px; border-radius: 3px; }
.rlv3-seg-on { background: #fff; color: #0B0B0C; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* Card shell — used by all action cards + table */
.rlv3-action {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.rlv3-card {
  background: #FFFFFF;
  border: 1px solid #EDEDEF;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  transition: box-shadow .25s ease, transform .25s ease, opacity .3s ease;
}
.rlv3-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.rlv3-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6B6B70; font-weight: 600;
}
.rlv3-mut, .rlv3-dash .rlv3-mut { color: #8E8E93; font-size: 9.5px; }
.rlv3-card-body {
  font-size: 10.5px; color: #6B6B70; line-height: 1.4;
  margin: 0 0 10px;
}
.rlv3-mono { font-family: "JetBrains Mono", monospace; font-feature-settings: "tnum", "zero"; }
.rlv3-strong { font-weight: 600; color: #0B0B0C; }
.rlv3-warn { color: #B36B00; font-weight: 600; }
.rlv3-alert { color: #B3261E; font-weight: 600; }

/* Calendar */
.rlv3-cal { padding: 0; }
.rlv3-cal-month { }
.rlv3-cal-mlbl {
  font-size: 10.5px; font-weight: 600; margin-bottom: 4px;
}
.rlv3-cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px; color: #8E8E93; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 2px;
  text-align: center;
}
.rlv3-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.rlv3-cal-cell {
  height: 16px; display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px; font-weight: 600;
  color: #0B0B0C;
  border-radius: 3px;
  background: transparent;
}
.rlv3-cal-empty { background: none; }
.rlv3-cal-on { background: #0B0B0C; color: #fff; }
.rlv3-cal-today {
  outline: 1px solid #007AFF;
  outline-offset: -1px;
  color: #007AFF;
}
.rlv3-cal-today.rlv3-cal-on { color: #fff; background: #007AFF; outline: none; }

.rlv3-cal-sched {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid #EDEDEF;
}
.rlv3-cal-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: 10px;
}
.rlv3-cal-row .rlv3-mono { font-size: 9.5px; color: #6B6B70; font-weight: 600; }
.rlv3-pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #F0F0F2; color: #6B6B70;
  font-size: 8px; font-weight: 700;
}
.rlv3-pip-sm { width: 16px; height: 16px; font-size: 8px; }

/* Re-audit list */
.rlv3-ra-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rlv3-ra-item {
  border: 1px solid #EDEDEF;
  border-radius: 5px;
  padding: 5px 8px;
  display: flex; align-items: center; gap: 6px;
}
.rlv3-ra-l { flex: 1; min-width: 0; }
.rlv3-ra-client { font-size: 10.5px; font-weight: 600; }
.rlv3-ra-mut { font-size: 9px; color: #8E8E93; }
.rlv3-ra-d { font-size: 9.5px; font-weight: 600; }

/* Settlement list */
.rlv3-sn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rlv3-sn-item {
  border: 1px solid #EDEDEF;
  border-radius: 5px;
  padding: 6px 8px;
}
.rlv3-sn-row { display: flex; align-items: center; gap: 6px; }
.rlv3-sn-l { flex: 1; min-width: 0; }
.rlv3-sn-client { font-size: 10.5px; font-weight: 600; }
.rlv3-sn-mut { font-size: 9px; color: #8E8E93; }
.rlv3-sn-d { font-size: 9.5px; font-weight: 600; }
.rlv3-sn-btn {
  margin-top: 5px;
  background: #0B0B0C; color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  border: none; cursor: default;
}

/* Audits table */
.rlv3-table-card {
  margin: 0 12px 12px;
  background: #FFFFFF;
  border: 1px solid #EDEDEF;
  border-radius: 8px;
  padding: 10px 12px 12px;
  transition: box-shadow .25s ease;
}
.rlv3-table {
  border-top: 1px solid #EDEDEF;
  margin-top: 6px;
}
.rlv3-thead, .rlv3-tr {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.9fr 1.2fr 0.4fr 0.4fr 0.9fr 0.6fr;
  gap: 6px;
  padding: 5px 4px;
  font-size: 10px;
  align-items: center;
}
.rlv3-thead {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #6B6B70;
  font-weight: 600;
  background: #FBFBFC;
  border-radius: 4px;
  padding: 5px 4px;
  margin: 4px 0;
}
.rlv3-tr {
  border-top: 1px solid #F5F5F7;
}
.rlv3-tr-client { font-weight: 600; color: #0B0B0C; }
.rlv3-r { text-align: right; }
.rlv3-truncate {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rlv3-tr .rlv3-mono { font-size: 9.5px; }

/* Stage tag */
.rlv3-stage {
  display: inline-flex; align-items: center; gap: 5px;
  min-width: 0;
}
.rlv3-stage-bar {
  width: 30px; height: 3px;
  background: #EDEDEF; border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.rlv3-stage-bar-fill {
  display: block; height: 100%;
  background: #0B0B0C;
  border-radius: 999px;
  transition: width 900ms cubic-bezier(.4,0,.2,1);
}
.rlv3-stage-lbl {
  font-size: 9px; color: #0B0B0C;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}

/* ───────────────────────────────────────────────────────────────────
   MODE A — "animated" living data
   ─────────────────────────────────────────────────────────────────── */
@keyframes rlv3-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rlv3-pop-in { 0% { opacity: 0; transform: scale(0.5); } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rlv3-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0); background: transparent; }
  50% { box-shadow: 0 0 0 5px rgba(179, 38, 30, 0.22); background: rgba(179, 38, 30, 0.06); }
}
@keyframes rlv3-pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 107, 0, 0); background: transparent; }
  50% { box-shadow: 0 0 0 5px rgba(179, 107, 0, 0.18); background: rgba(179, 107, 0, 0.06); }
}
@keyframes rlv3-tr-hot {
  0%, 100% { background: transparent; }
  50% { background: rgba(0, 122, 255, 0.05); }
}

/* "LIVE" indicator in the nav */
.rlv3-live {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  background: rgba(31, 122, 58, 0.08);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
}
.rlv3-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1F7A3A;
  animation: rlv3-live-dot 1600ms ease-in-out infinite;
}
@keyframes rlv3-live-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 58, 0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(31, 122, 58, 0); opacity: 0.6; }
}
.rlv3-live-lbl { font-size: 8.5px; letter-spacing: 0.08em; color: #1F7A3A; font-weight: 700; }

/* Live ping on a table row + activity cell */
.rlv3-tr { transition: background 220ms ease; }
.rlv3-tr-ping {
  background: rgba(0, 122, 255, 0.08) !important;
  animation: rlv3-row-flash 1200ms ease-out;
}
@keyframes rlv3-row-flash {
  0%   { background: rgba(0, 122, 255, 0.22); box-shadow: inset 2px 0 0 0 #007AFF; }
  100% { background: rgba(0, 122, 255, 0.08); box-shadow: inset 2px 0 0 0 rgba(0, 122, 255, 0.3); }
}
.rlv3-tr-last { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.rlv3-ping-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #007AFF;
  display: inline-block;
  animation: rlv3-ping 1200ms ease-out;
}
@keyframes rlv3-ping {
  0%   { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.55); transform: scale(0.6); }
  60%  { box-shadow: 0 0 0 6px rgba(0, 122, 255, 0); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); transform: scale(1); }
}

.rlv3-mode-animated .rlv3-card,
.rlv3-mode-animated .rlv3-table-card {
  opacity: 0; animation: rlv3-fade-up 600ms cubic-bezier(.4,0,.2,1) forwards;
}
.rlv3-mode-animated .rlv3-action .rlv3-card:nth-child(1) { animation-delay: 100ms; }
.rlv3-mode-animated .rlv3-action .rlv3-card:nth-child(2) { animation-delay: 200ms; }
.rlv3-mode-animated .rlv3-action .rlv3-card:nth-child(3) { animation-delay: 300ms; }
.rlv3-mode-animated .rlv3-table-card { animation-delay: 500ms; }

.rlv3-mode-animated .rlv3-cal-on {
  opacity: 0;
  animation: rlv3-pop-in 380ms cubic-bezier(.34,1.56,.64,1) forwards;
}

.rlv3-mode-animated .rlv3-cal-today {
  animation: rlv3-pulse-blue 2200ms ease-in-out infinite;
}

.rlv3-mode-animated .rlv3-tr {
  opacity: 0;
  animation: rlv3-fade-up 460ms cubic-bezier(.4,0,.2,1) forwards;
}

.rlv3-mode-animated .rlv3-alert.rlv3-pulse {
  animation: rlv3-pulse 2200ms ease-in-out infinite;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}
.rlv3-mode-animated .rlv3-warn.rlv3-pulse {
  animation: rlv3-pulse-warn 2400ms ease-in-out infinite;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}

.rlv3-mode-animated .rlv3-tr-hot {
  animation:
    rlv3-fade-up 460ms cubic-bezier(.4,0,.2,1) forwards,
    rlv3-tr-hot 3200ms ease-in-out 1600ms infinite;
}

/* ───────────────────────────────────────────────────────────────────
   MODE B — "parallax" 3D tilt + lift + breath
   ─────────────────────────────────────────────────────────────────── */
.rlv3-mode-parallax {
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1);
}
@keyframes rlv3-breath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.rlv3-mode-parallax .rlv3-action .rlv3-card { animation: rlv3-breath 5500ms ease-in-out infinite; }
.rlv3-mode-parallax .rlv3-action .rlv3-card:nth-child(2) { animation-delay: -1800ms; }
.rlv3-mode-parallax .rlv3-action .rlv3-card:nth-child(3) { animation-delay: -3600ms; }
.rlv3-mode-parallax .rlv3-action .rlv3-card {
  transform: translateZ(20px);
  box-shadow: 0 12px 28px -16px rgba(11,11,12,0.18);
}
.rlv3-mode-parallax .rlv3-table-card {
  transform: translateZ(10px);
  box-shadow: 0 8px 24px -14px rgba(11,11,12,0.14);
}
.rlv3-mode-parallax .rlv3-action .rlv3-card:hover {
  transform: translateZ(40px) translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(11,11,12,0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.rlv3-mode-parallax .rlv3-cal-today {
  animation: rlv3-pulse-blue 2200ms ease-in-out infinite;
}
@keyframes rlv3-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.0); }
  50% { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25); }
}

/* ───────────────────────────────────────────────────────────────────
   MODE C — "storyboard" guided spotlight
   ─────────────────────────────────────────────────────────────────── */
.rlv3-mode-storyboard .rlv3-card,
.rlv3-mode-storyboard .rlv3-table-card {
  transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease, outline-color .35s ease;
  opacity: 0.55;
  outline: 1px solid transparent;
}
.rlv3-mode-storyboard .rlv3-spot {
  opacity: 1;
  transform: scale(1.015);
  box-shadow:
    0 24px 48px -16px rgba(0, 122, 255, 0.18),
    0 8px 20px -8px rgba(11, 11, 12, 0.14);
  outline: 1.5px solid #007AFF;
  outline-offset: 2px;
  position: relative;
  z-index: 3;
}

.rlv3-sb-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 8px;
  background: #0B0B0C; color: #fff;
  border-radius: 999px;
  font-size: 11px;
  z-index: 10;
  max-width: calc(100% - 32px);
  box-shadow: 0 12px 28px -10px rgba(11, 11, 12, 0.4);
  animation: rlv3-caption-pop 350ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes rlv3-caption-pop {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.rlv3-sb-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: #007AFF;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  background: rgba(0, 122, 255, 0.15);
  border-radius: 999px;
}
.rlv3-sb-text { font-weight: 500; }
.rlv3-sb-dots { display: inline-flex; gap: 4px; margin-left: 4px; }
.rlv3-sb-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background .25s ease;
}
.rlv3-sb-dot-on { background: #007AFF !important; }
