/* Tenantable — landing page styles */

:root {
  --paper: #F2F6F9;
  --panel: #FFFFFF;
  --night: #0A1424;
  --night-2: #0F1D33;
  --ink: #10233A;
  --mist: #5D7188;
  --ice: #E8F1F8;
  --ice-dim: rgba(232, 241, 248, 0.55);
  --signal: #14B8A0;
  --signal-bright: #34E3C5;
  --amber: #FFB547;
  --line: #DCE6EE;
  --line-night: rgba(232, 241, 248, 0.1);

  --display: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 40px rgba(16, 35, 58, 0.10), 0 2px 8px rgba(16, 35, 58, 0.05);
  --shadow-night: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.wrap3 { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono3 { font-family: var(--mono); }

/* ============ NAV ============ */
.nav3 {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(242, 246, 249, 0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav3.scrolled { border-bottom-color: var(--line); }
.nav3.over-night {
  background: rgba(10, 20, 36, 0.75);
  border-bottom-color: var(--line-night);
  color: var(--ice);
}
.nav3.over-night .nav3-links a { color: var(--ice-dim); }
.nav3.over-night .nav3-links a:hover { color: var(--ice); }
.nav3.over-night .btn3-ghost { color: var(--ice); }
.nav3.over-night .btn3-ghost:hover { background: rgba(232, 241, 248, 0.08); }
.nav3.over-night .btn3-solid { background: var(--signal-bright); color: var(--night); }
.nav3.over-night .mark-space { fill: var(--ice); }
.nav3.over-night .mark-fit { fill: var(--signal-bright); }
.nav3-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
/* Logo mark — "The Fit": a space with a notch, and the tenant sitting in it */
.logo3-mark { display: inline-flex; width: 24px; height: 24px; }
.logo3-mark svg { display: block; }
.mark-space { fill: var(--ink); transition: fill .25s; }
.mark-fit { fill: var(--signal); transition: fill .25s; }
.nav3-links { display: flex; gap: 28px; }
.nav3-links a { font-size: 15px; font-weight: 500; color: var(--mist); }
.nav3-links a:hover { color: var(--ink); }
.nav3-cta { display: flex; gap: 10px; align-items: center; }

/* ============ BUTTONS ============ */
.btn3 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn3-solid { background: var(--ink); color: var(--paper); }
.btn3-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 35, 58, 0.25); }
.btn3-ghost { color: var(--ink); }
.btn3-ghost:hover { background: rgba(16, 35, 58, 0.06); }
.btn3-night { background: var(--signal-bright); color: var(--night); }
.btn3-night:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52, 227, 197, 0.35); }
.btn3-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* ============ HERO ============ */
.hero3 {
  padding: 150px 0 40px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  background-color: var(--paper);
}
.hero3::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, transparent 20%, var(--paper) 90%);
  pointer-events: none;
}
.hero3 > .wrap3 { position: relative; z-index: 1; }
.eyebrow3 {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mist); margin: 0 0 22px;
}
.tick3 { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.h1-3 {
  font-family: var(--display);
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0 0 22px;
}
.h1-3 em { font-style: normal; color: var(--signal); }
.hero3-sub {
  font-size: 19px; color: var(--mist); max-width: 700px;
  margin: 0 auto 30px; line-height: 1.55; text-wrap: balance;
}
.hero3-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* ---- Hero matcher (fidget demo) ---- */
.matcher {
  display: grid; grid-template-columns: 1fr 1.05fr;
  max-width: 940px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}
.matcher-day {
  background:
    linear-gradient(rgba(220, 230, 238, 0.4) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(220, 230, 238, 0.4) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--panel);
  padding: 26px;
}
.matcher-night {
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(52, 227, 197, 0.08), transparent 60%),
    var(--night);
  color: var(--ice);
  padding: 26px;
}

.sc-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 16px; }
.matcher-night .sc-tag { color: var(--signal-bright); margin-bottom: 0; }

.mrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.mrow:last-child { margin-bottom: 0; }
.mlabel { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2 / -1; }

.sc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip3 {
  font-family: var(--mono); font-size: 11px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--mist); background: var(--panel);
  transition: border-color .15s, color .15s;
}
.chip3:hover { border-color: var(--ink); color: var(--ink); }
.chip3.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.mslider { padding: 8px 0; cursor: pointer; touch-action: none; }
.mtrack { position: relative; height: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.mfill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--signal); border-radius: 999px; }
.mthumb {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}
.mval { font-size: 11px; color: var(--ink); min-width: 76px; text-align: right; }

.mn-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mcount { font-size: 10.5px; color: var(--ice-dim); }
.mcount strong { color: var(--signal-bright); font-weight: 500; font-size: 15px; }
.mlist { display: grid; gap: 8px; min-height: 236px; align-content: start; }
.mmatch {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-night); border-radius: 10px;
  background: rgba(232, 241, 248, 0.04);
  animation: mIn .3s ease both;
}
.mm-addr { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.mm-meta { font-size: 10px; color: var(--ice-dim); margin-top: 2px; }
.mm-score {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--ice-dim); border: 1px solid var(--line-night);
}
.mmatch.top .mm-score { background: var(--amber); color: var(--night); border-color: var(--amber); }
.mempty { font-family: var(--mono); font-size: 11px; color: var(--ice-dim); padding: 24px 0; }
@keyframes mIn { from { opacity: 0; transform: translateY(6px); } }
.sc-note { font-family: var(--mono); font-size: 10px; color: var(--ice-dim); margin-top: 14px; }

.split-hint { text-align: center; font-size: 11px; color: var(--mist); letter-spacing: 0.08em; margin: 16px 0 0; }

/* ============ TICKER STRIP ============ */
.strip3 { padding: 26px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.strip3-label {
  display: block; text-align: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 16px;
}
.strip3-track {
  display: flex; gap: 56px; width: max-content;
  animation: strip3slide 40s linear infinite;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--mist); white-space: nowrap;
}
@keyframes strip3slide { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.sec3 { padding: 110px 0; }
.sectag3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 14px;
}
.h2-3 {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0;
}
.h2-3 em { font-style: normal; color: var(--signal); }
.sec3-sub { font-size: 17px; color: var(--mist); margin: 14px 0 0; }
.sec3-head { max-width: 640px; margin-bottom: 56px; }

/* ============ TENANT JOURNEY (day) ============ */
.journey { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.journey-steps { display: grid; gap: 10px; }
.jstep {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  text-align: left; padding: 22px 18px 24px;
  border: none; border-radius: 0;
  background: transparent;
  transition: background .25s, padding .25s;
}
.jstep:hover { background: rgba(16, 35, 58, 0.025); border-radius: var(--r); }
.jstep.on {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.jstep:not(.on) strong { color: var(--ink); }
.jstep:not(.on) .jbody span { color: rgba(93, 113, 136, 0.65); }
.jnum { font-size: 12px; color: var(--mist); padding-top: 3px; }
.jstep.on .jnum { color: var(--signal); }
.jbody strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.jbody span { display: block; font-size: 14px; color: var(--mist); line-height: 1.5; }
.jprogress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  border-bottom-left-radius: var(--r); opacity: 0;
}
.jstep.on .jprogress { opacity: 1; }
.jstep.on .jprogress.run { animation: jrun 4.5s linear forwards; }
@keyframes jrun { to { transform: scaleX(1); } }

.journey-view { position: relative; min-height: 400px; }
.jpane { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .35s; }
.jpane.on { opacity: 1; transform: none; pointer-events: auto; }
.jpanel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 28px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.jp-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.jp-slider-label { font-size: 11px; color: var(--mist); margin-bottom: 8px; }
.jp-track { position: relative; height: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.jp-fill { position: absolute; inset: 0 auto 0 0; background: var(--signal); border-radius: 999px; }
.jp-thumb {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--ink); transform: translate(-50%, -50%);
}
.jp-result { font-size: 11px; color: var(--signal); }
.jp-alert {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.jp-alert.dim { opacity: 0.55; }
.jp-alert strong { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.jp-alert .mono3 { font-size: 10.5px; color: var(--mist); }
.jp-alert em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--mist); white-space: nowrap; }
.jp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
.jp-msg { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.jp-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--night); color: var(--signal-bright);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.jp-msg strong { font-size: 13px; }
.jp-msg p { margin: 4px 0 0; font-size: 13.5px; color: var(--mist); line-height: 1.5; }
.jp-cta {
  align-self: start; background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 10px;
}

/* ============ BROKER TERMINAL (night) ============ */
.night3 { background: var(--night); color: var(--ice); }
.night3 .sectag3 { color: var(--signal-bright); }
.night3 .h2-3 em { color: var(--signal-bright); }
.term3-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.cap-list { display: grid; }
.cap {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 62px 1fr; gap: 16px;
  padding: 22px 12px 22px 0; border: none;
  transition: background .25s, padding .25s;
}
.cap:hover { background: rgba(232, 241, 248, 0.03); border-radius: var(--r); }
.cap.on {
  background: rgba(232, 241, 248, 0.05);
  padding-left: 14px;
  border-radius: var(--r);
}
.cap.on .cap-tag { background: var(--signal-bright); border-color: var(--signal-bright); color: var(--night); }
.cap:not(.on) p { color: rgba(232, 241, 248, 0.38); }
.cap-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--signal-bright); transform: scaleX(0); transform-origin: left;
  border-bottom-left-radius: var(--r); opacity: 0;
}
.cap.on .cap-progress { opacity: 1; }
.cap.on .cap-progress.run { animation: capRun 5s linear forwards; }
@keyframes capRun { to { transform: scaleX(1); } }
.cap-tag {
  font-size: 10px; letter-spacing: 0.12em; text-align: center;
  color: var(--ice-dim); border: 1px solid var(--line-night); border-radius: 6px;
  padding: 4px 0; height: fit-content; margin-top: 3px;
  transition: background .2s, color .2s, border-color .2s;
}
.cap:hover .cap-tag { background: var(--signal-bright); border-color: var(--signal-bright); color: var(--night); }
.cap h3 { margin: 0 0 6px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cap p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ice-dim); }

.command {
  background: var(--night-2);
  border: 1px solid var(--line-night);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-night);
  padding: 20px;
}
.cmd-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice-dim);
  padding: 0 2px 16px;
}
.cmd-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ice); }
.cmd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-bright); animation: cmdPulse 2s ease-in-out infinite; }
@keyframes cmdPulse { 50% { opacity: 0.35; } }
.cmd-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(232, 241, 248, 0.05);
  border: 1px solid var(--line-night); border-radius: 12px;
  padding: 14px 16px; min-height: 50px;
}
.cmd-prompt { color: var(--signal-bright); font-size: 14px; }
.cmd-text { font-size: 13px; color: var(--ice); overflow: hidden; white-space: nowrap; }
.cmd-caret { width: 8px; height: 17px; background: var(--signal-bright); animation: caretBlink 1.1s steps(2) infinite; flex-shrink: 0; }
@keyframes caretBlink { 50% { opacity: 0; } }
.cmd-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 2px 4px; }
.cchip {
  font-size: 10.5px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-night); color: var(--ice-dim);
  transition: all .2s;
}
.cchip:hover { border-color: var(--signal-bright); color: var(--ice); }
.cchip.on { background: var(--signal-bright); border-color: var(--signal-bright); color: var(--night); }
.radar {
  position: relative; height: 220px; margin-top: 12px;
  border: 1px solid var(--line-night); border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(232, 241, 248, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(232, 241, 248, 0.05) 1px, transparent 1px) 0 0 / 28px 100%;
}
.blip {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 12px rgba(52, 227, 197, 0.7);
  transform: translate(-50%, -50%);
  transition: top .7s cubic-bezier(.3, .8, .3, 1), left .7s cubic-bezier(.3, .8, .3, 1), opacity .5s, scale .5s;
}
.blip::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(52, 227, 197, 0.4);
  animation: blipRing 2.4s ease-out infinite;
}
.blip.off { opacity: 0; scale: 0.3; }
.blip.hot { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, 0.7); }
.blip.hot::after { border-color: rgba(255, 181, 71, 0.4); }
@keyframes blipRing { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.cmd-result { padding: 14px 2px 0; font-size: 11.5px; color: var(--ice-dim); }
.cmd-result strong { color: var(--signal-bright); font-weight: 500; }

/* ============ TWO DOORS ============ */
.doors3 { padding: 110px 0; }
.doors3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  border-radius: var(--r-lg); padding: 48px 44px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: transform .25s, box-shadow .25s;
}
.door:hover { transform: translateY(-4px); }
.door h3 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.03em; }
.door-sub { margin: 0 0 24px; font-size: 15px; line-height: 1.55; }
.door-day { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.door-day .door-sub { color: var(--mist); }
.door-night { background: var(--night); color: var(--ice); box-shadow: var(--shadow-night); }
.door-night .door-sub { color: var(--ice-dim); }
.door-night .sectag3 { color: var(--signal-bright); }

/* ============ FOOTER ============ */
.footer3 { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13.5px; color: var(--mist); }
.footer3-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer3-links { display: flex; gap: 24px; }
.footer3-links a:hover { color: var(--ink); }

/* ============ MOTION / MOBILE ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip3-track, .cmd-caret, .cmd-live i, .blip::after { animation: none; }
  .jstep.on .jprogress.run { animation: none; }
  .mmatch { animation: none; }
  .jpane, .blip { transition: none; }
}

@media (max-width: 960px) {
  .wrap3 { padding: 0 20px; }
  .nav3-links { display: none; }
  .hero3 { padding: 120px 0 32px; }
  .matcher { grid-template-columns: 1fr; }
  .mval { min-width: 64px; }
  .journey, .term3-grid, .doors3-grid { grid-template-columns: 1fr; gap: 40px; }
  .journey-view { min-height: 360px; }
  .sec3 { padding: 80px 0; }
  .door { padding: 36px 28px; }
}

/* ============ V4 — CYCLING BROKER VISUALS ============ */
.command { position: relative; min-height: 430px; }
.cvis {
  position: absolute; left: 20px; right: 20px; top: 62px; bottom: 20px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.cvis.on { opacity: 1; transform: none; pointer-events: auto; }

/* --- 1 · INDEX --- */
.idx { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 8px; align-items: center; height: 100%; }
.idx-sources { display: grid; gap: 8px; }
.idx-src {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; padding: 8px 10px;
  border: 1px solid var(--line-night); border-radius: 9px;
  background: rgba(232, 241, 248, 0.03);
  animation: idxIn .4s ease both;
}
.idx-src:nth-child(2) { animation-delay: .08s; }
.idx-src:nth-child(3) { animation-delay: .16s; }
.idx-src:nth-child(4) { animation-delay: .24s; }
.idx-src:nth-child(5) { animation-delay: .32s; }
@keyframes idxIn { from { opacity: 0; transform: translateX(-10px); } }
.idx-dot { width: 6px; height: 6px; border-radius: 50%; background: #30C065; flex-shrink: 0; }
.idx-src em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--signal-bright); }
.idx-funnel { height: 100%; color: var(--signal-bright); opacity: 0.5; }
.idx-funnel svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; }
.idx-funnel path { stroke-dasharray: 3 5; animation: idxFlow 1.6s linear infinite; }
@keyframes idxFlow { to { stroke-dashoffset: -16; } }
.idx-out {
  border: 1px solid var(--signal-bright); border-radius: 14px;
  padding: 22px 18px; text-align: center;
  background: rgba(52, 227, 197, 0.06);
}
.idx-out-num { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ice); }
.idx-out-label { font-size: 11px; color: var(--signal-bright); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.idx-out-sub { font-size: 10px; color: var(--ice-dim); margin-top: 10px; }

/* --- 3 · SYNC --- */
.sync { display: grid; grid-template-columns: 1fr 92px 1fr; gap: 10px; align-items: center; height: 100%; }
.sync-side { display: grid; gap: 10px; }
.sync-node {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; padding: 10px 12px;
  border: 1px solid var(--line-night); border-radius: 10px;
  background: rgba(232, 241, 248, 0.03);
}
.sync-node.on { border-color: var(--signal-bright); }
.sn-logo {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.sync-pipe { display: grid; gap: 6px; justify-items: center; }
.pipe-line { position: relative; width: 100%; height: 2px; background: var(--line-night); border-radius: 2px; overflow: hidden; }
.packet {
  position: absolute; top: -1px; width: 16px; height: 4px; border-radius: 2px;
  background: var(--signal-bright);
  animation: pkt 2s linear infinite;
}
.pipe-line.rev .packet { animation-name: pktRev; background: var(--amber); }
.packet.p2, .packet.p4 { animation-delay: 1s; }
@keyframes pkt { from { left: -18px; } to { left: 100%; } }
@keyframes pktRev { from { left: 100%; } to { left: -18px; } }
.pipe-label { font-size: 9px; color: var(--ice-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.sync-hub {
  border: 1px solid var(--signal-bright); border-radius: 12px;
  padding: 16px 14px; background: rgba(52, 227, 197, 0.06);
}
.sh-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--signal-bright); margin-bottom: 10px; }
.sh-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.sh-rows { display: grid; gap: 3px; font-size: 10.5px; color: var(--ice-dim); margin-top: 8px; }
.sync-note { font-size: 10px; color: var(--ice-dim); text-align: center; }

/* --- 4 · LEADS --- */
.lead { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 10px; }
.lead-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--ice-dim); letter-spacing: 0.1em; }
.lead-new { color: var(--night); background: var(--signal-bright); padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.lead-card {
  border: 1px solid var(--line-night); border-radius: 14px; padding: 16px;
  background: rgba(232, 241, 248, 0.04);
  animation: leadIn .45s ease both;
}
@keyframes leadIn { from { opacity: 0; transform: translateY(10px); } }
.lead-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line-night); }
.lead-av {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--signal-bright); color: var(--night);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.lead-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.lead-act { font-size: 10.5px; color: var(--amber); margin-top: 3px; }
.lead-score {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--amber); color: var(--night);
  display: grid; place-items: center;
}
.lead-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px 0; }
.lreq span { display: block; font-size: 9.5px; color: var(--ice-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.lreq strong { display: block; font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.lead-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-night); }
.lead-btn { background: var(--signal-bright); color: var(--night); font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 9px; }
.lead-sync { font-size: 10px; color: var(--ice-dim); }

@media (prefers-reduced-motion: reduce) {
  .idx-src, .idx-funnel path, .packet, .lead-card { animation: none; }
  .cap.on .cap-progress.run { animation: none; }
  .cvis { transition: none; }
}
@media (max-width: 960px) {
  .command { min-height: 500px; }
  .idx, .sync { grid-template-columns: 1fr; gap: 14px; }
  .idx-funnel { display: none; }
  .sync-pipe { display: none; }
  .lead-reqs { grid-template-columns: 1fr; gap: 8px; }
}

/* ============ V4 — TENANT INTERACTIVE VISUALS ============ */
.jp-tag-row { display: flex; justify-content: space-between; align-items: center; }
.alert-live { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); text-transform: none; letter-spacing: 0.04em; }
.alert-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: alertPulse 1.8s ease-in-out infinite; }
@keyframes alertPulse { 50% { opacity: 0.3; } }

/* --- 1 · narrowing funnel --- */
.fun-count { display: flex; align-items: baseline; gap: 10px; }
.fun-num {
  font-family: var(--display); font-size: 46px; font-weight: 700;
  letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.fun-unit { font-size: 11px; color: var(--mist); letter-spacing: 0.1em; text-transform: uppercase; }
.fun-bar { height: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.fun-bar-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--signal-bright));
  transition: width .5s cubic-bezier(.3, .8, .3, 1);
}
.fun-rows { display: grid; gap: 8px; }
.fun-row {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 11px; align-items: center;
  text-align: left; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
  transition: border-color .2s, background .2s, opacity .2s;
}
.fun-row:hover { border-color: var(--mist); }
.fun-check {
  width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--line-2, #C6D3DE); position: relative;
  transition: background .2s, border-color .2s;
}
.fun-row.on .fun-check { background: var(--signal); border-color: var(--signal); }
.fun-row.on .fun-check::after {
  content: ''; position: absolute; left: 5px; top: 1.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fun-label { font-size: 13.5px; font-weight: 500; }
.fun-row:not(.on) { opacity: 0.5; }
.fun-row:not(.on) .fun-label { text-decoration: line-through; text-decoration-color: var(--line-2, #C6D3DE); }
.fun-drop { font-size: 11px; color: var(--mist); }
.fun-row.on .fun-drop { color: var(--signal); }

/* --- 2 · live alert feed --- */
.alert-feed { display: grid; gap: 8px; align-content: start; min-height: 210px; }
.afeed-item {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 11px; align-items: center;
  text-align: left; width: 100%;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
  animation: afeedIn .4s cubic-bezier(.3, .9, .3, 1) both;
  transition: border-color .2s, background .2s;
}
.afeed-item:hover { border-color: var(--ink); }
@keyframes afeedIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.afeed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.afeed-item.drop .afeed-dot { background: var(--amber); }
.afeed-item.saved { border-color: var(--signal); background: rgba(20, 184, 160, 0.06); }
.afeed-item.saved .afeed-dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(20, 184, 160, 0.18); }
.afeed-title { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.afeed-meta { display: block; font-size: 10px; color: var(--mist); margin-top: 2px; }
.afeed-time { font-size: 10px; color: var(--mist); white-space: nowrap; }
.afeed-star { color: var(--signal); font-size: 11px; white-space: nowrap; }

/* --- 3 · conversation --- */
.chat { display: grid; gap: 9px; align-content: start; min-height: 176px; }
.cmsg {
  max-width: 82%; padding: 11px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.45;
  animation: cmsgIn .35s cubic-bezier(.3, .9, .3, 1) both;
}
@keyframes cmsgIn { from { opacity: 0; transform: translateY(8px); } }
.cmsg.sys {
  justify-self: center; max-width: 100%;
  background: var(--paper); border: 1px dashed var(--line);
  color: var(--mist); font-family: var(--mono); font-size: 10.5px;
  border-radius: 999px; padding: 6px 14px;
}
.cmsg.them { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cmsg.me {
  justify-self: end; background: var(--ink); color: var(--paper);
  border-bottom-right-radius: 5px;
}
.cmsg-who { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cmsg-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--night); color: var(--signal-bright);
  display: grid; place-items: center; font-size: 9.5px; font-weight: 700;
}
.cmsg-name { font-size: 11px; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mist);
  animation: typeBounce 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typeBounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-slots { display: flex; gap: 7px; flex-wrap: wrap; min-height: 34px; }
.slot {
  font-family: var(--mono); font-size: 11px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink); background: var(--panel);
  animation: cmsgIn .3s ease both;
  transition: background .18s, color .18s;
}
.slot:hover { background: var(--ink); color: var(--paper); }
.slot.picked { background: var(--signal); border-color: var(--signal); color: #fff; }
.slot.fade { opacity: .25; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .afeed-item, .cmsg, .slot, .alert-live i, .typing i { animation: none; }
  .fun-bar-fill { transition: none; }
}
