/* Solutions (/ai-training) glass-host overlays — Studio product mock + pipeline cards.
   Scoped under .vs-mkt / .vs-pipe so Framer styles stay untouched.

   FOUC hide lives only in the inline <style data-verita-solutions-fouc> from
   patch_export (glass opacity:0 + Feature Specs heading display:none; fail-open
   removes that tag). Do not duplicate hide rules here — a 404/throw would leave
   CSS opacity:0 with no recovery. Lora is loaded via <link> from inject_backend
   (no @import — imports delay every rule below). */

[data-verita-solutions-host] {
  position: relative !important;
  overflow: hidden !important;
  opacity: 1 !important;
}

/* Nudge the Studio mock up so more of it sits in view under Feature Specs. */
[data-verita-solutions-host="studio"] {
  transform: translateY(-56px);
  z-index: 8;
}

[data-verita-solutions-host] > :not([data-verita-solutions-panel]) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-verita-solutions-panel] {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

/* ---- Verita Studio (top) — cream product inside the glass bezel ---- */
.vs-mkt {
  --vs-cream: #fbf7f0;
  --vs-panel: #f5efe6;
  --vs-surface: #ffffff;
  --vs-ink: #2a1f1a;
  --vs-muted: #8b7355;
  --vs-faint: #b8a990;
  --vs-line: #e5dcc8;
  --vs-maroon: #6b1f2a;
  --vs-maroon-deep: #4a1520;
  --vs-chrome: #2a1f1a;
  --vs-green: #0f6e56;
  --vs-accent-soft: #f0e6d6;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--vs-cream);
  color: var(--vs-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.35;
}

.vs-mkt__topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  background: var(--vs-chrome);
  color: #f0e6d6;
  border-bottom: 1px solid #1c140f;
}

.vs-mkt__chrome {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 12px;
  background: rgba(42, 31, 26, 0.92);
  border-bottom: 1px solid #1c140f;
}

.vs-mkt__dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.vs-mkt__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  background: #5a4a40;
}

.vs-mkt__dots i:nth-child(1) { background: #ff5f57; }
.vs-mkt__dots i:nth-child(2) { background: #febc2e; }
.vs-mkt__dots i:nth-child(3) { background: #28c840; }

.vs-mkt__url {
  flex: 1;
  min-width: 0;
  height: 18px;
  border-radius: 999px;
  background: #201712;
  border: 1px solid #4a382e;
  color: #c9b8a6;
  font-size: 10px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}

.vs-mkt__url span {
  opacity: 0.85;
}

.vs-mkt__ai-tag {
  flex: none;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5c9a8;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(229, 201, 168, 0.35);
  background: rgba(107, 31, 42, 0.35);
  animation: vs-mkt-ai-breathe 2.8s ease-in-out infinite;
}

.vs-mkt__wordmark {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.vs-mkt__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #201712;
  border: 1px solid #4a382e;
  font-size: 10px;
  color: #c9b8a6;
}

.vs-mkt__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vs-green);
  box-shadow: 0 0 0 0 rgba(15, 110, 86, 0.55);
  animation: vs-mkt-pulse 2.4s ease-out infinite;
}

.vs-mkt__spacer { flex: 1; }

.vs-mkt__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5c9a8;
  color: var(--vs-maroon-deep);
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 600;
}

.vs-mkt__frame {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 132px 1fr;
  background: var(--vs-cream);
}

.vs-mkt__side {
  background: var(--vs-panel);
  border-right: 1px solid var(--vs-line);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vs-mkt__grp {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vs-faint);
  margin: 6px 6px 4px;
}

.vs-mkt__nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--vs-muted);
  font-size: 11px;
}

.vs-mkt__nav.is-active {
  background: var(--vs-accent-soft);
  color: var(--vs-ink);
  font-weight: 600;
}

.vs-mkt__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  gap: 8px;
  overflow: hidden;
}

.vs-mkt__shead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.vs-mkt__shead h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vs-mkt__meta {
  margin-top: 2px;
  font-size: 10px;
  color: var(--vs-muted);
}

.vs-mkt__timer {
  flex: none;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  background: var(--vs-surface);
  white-space: nowrap;
}

.vs-mkt__steps {
  display: flex;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--vs-surface);
}

.vs-mkt__step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 9px;
  color: var(--vs-faint);
  border-right: 1px solid var(--vs-line);
}

.vs-mkt__step:last-child { border-right: none; }

.vs-mkt__ic {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--vs-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex: none;
}

.vs-mkt__step.is-done { color: var(--vs-green); }
.vs-mkt__step.is-done .vs-mkt__ic {
  background: var(--vs-green);
  border-color: var(--vs-green);
  color: #fff;
}
.vs-mkt__step.is-cur {
  font-weight: 600;
  color: var(--vs-maroon);
  background: var(--vs-accent-soft);
}
.vs-mkt__step.is-cur .vs-mkt__ic {
  border-color: var(--vs-maroon);
  color: var(--vs-maroon);
}

.vs-mkt__card {
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.vs-mkt__card-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--vs-ink);
}

.vs-mkt__wave {
  position: relative;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8f1e6, #efe4d4);
  overflow: hidden;
}

.vs-mkt__wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(107, 31, 42, 0.12) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: vs-mkt-scan 3.6s ease-in-out infinite;
  pointer-events: none;
}

.vs-mkt__wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vs-mkt__wave-svg path {
  animation: vs-mkt-wave 4.2s ease-in-out infinite;
  transform-origin: center;
}

.vs-mkt__wave-svg path:nth-child(2) {
  animation-delay: -1.2s;
}

.vs-mkt__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--vs-maroon);
  left: 8%;
  animation: vs-mkt-playhead 5.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(107, 31, 42, 0.55), 0 0 2px rgba(107, 31, 42, 0.9);
}

.vs-mkt__ai-line {
  margin-top: 2px;
  font-size: 9px;
  color: var(--vs-maroon);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 14px;
}

.vs-mkt__ai-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vs-maroon);
  box-shadow: 0 0 0 0 rgba(107, 31, 42, 0.45);
  animation: vs-mkt-pulse 1.8s ease-out infinite;
}

.vs-mkt__ai-line [data-vs-ai-text]::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--vs-maroon);
  vertical-align: -1px;
  animation: vs-mkt-caret 1s steps(1) infinite;
}

.vs-mkt__dims {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-mkt__dim {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--vs-muted);
}

.vs-mkt__scores {
  display: flex;
  gap: 3px;
}

.vs-mkt__score {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--vs-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--vs-faint);
  background: var(--vs-cream);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.vs-mkt__score.is-on {
  background: var(--vs-maroon);
  border-color: var(--vs-maroon);
  color: #fff;
}

.vs-mkt__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 2px;
}

.vs-mkt__btn {
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--vs-line);
  background: var(--vs-surface);
  color: var(--vs-ink);
}

.vs-mkt__btn--primary {
  background: var(--vs-maroon);
  border-color: var(--vs-maroon);
  color: #fff;
}

.vs-mkt__btn.is-flash {
  animation: vs-mkt-flash 0.7s ease;
}

@keyframes vs-mkt-playhead {
  0%, 8% { left: 6%; }
  70%, 100% { left: 88%; }
}

@keyframes vs-mkt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(15, 110, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0); }
}

@keyframes vs-mkt-flash {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.25); }
}

@keyframes vs-mkt-scan {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}

@keyframes vs-mkt-wave {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@keyframes vs-mkt-ai-breathe {
  0%, 100% { opacity: 0.75; border-color: rgba(229, 201, 168, 0.28); }
  50% { opacity: 1; border-color: rgba(229, 201, 168, 0.55); }
}

@keyframes vs-mkt-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 809px) {
  .vs-mkt__frame { grid-template-columns: 1fr; }
  .vs-mkt__side { display: none; }
  .vs-mkt__step span { display: none; }
}

/* ---- Pipeline / eval glass cards (bottom) ---- */
.vs-pipe {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 12px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.92);
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
}

.vs-pipe__eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.vs-pipe__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vs-pipe__stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.vs-pipe__stage {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vs-pipe__stage-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.vs-pipe__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.vs-pipe__chip {
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.vs-pipe__chip.is-pick {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  animation: vs-pipe-pick 3.2s ease-in-out infinite;
}

.vs-pipe__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: auto;
}

.vs-pipe__bar > i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.85);
  animation: vs-pipe-bar 2.8s ease-in-out infinite;
}

.vs-pipe__experts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.vs-pipe__expert {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.vs-eval__timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 10px;
}

.vs-eval__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  position: relative;
  z-index: 1;
}

.vs-eval__node.is-lit {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.vs-eval__edge {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.vs-eval__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vs-eval__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.vs-eval__score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
  min-width: 2.5ch;
  text-align: right;
}

.vs-eval__audit {
  margin-top: auto;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

@keyframes vs-pipe-pick {
  0%, 40% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  60%, 100% { transform: translateY(0); }
}

@keyframes vs-pipe-bar {
  0% { width: 18%; transform: translateX(0); }
  50% { width: 72%; }
  100% { width: 28%; transform: translateX(40%); }
}

@media (prefers-reduced-motion: reduce) {
  .vs-mkt__ai-tag,
  .vs-mkt__pill-dot,
  .vs-mkt__wave::after,
  .vs-mkt__wave-svg path,
  .vs-mkt__playhead,
  .vs-mkt__ai-line::before,
  .vs-mkt__ai-line [data-vs-ai-text]::after,
  .vs-mkt__btn.is-flash,
  .vs-pipe__chip.is-pick,
  .vs-pipe__bar > i {
    animation: none !important;
  }
}
