/* KODIQ demo overlay — tour, tips, CTA (sobre Brynvel) */
.kodiq-demo-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  background: rgba(10, 13, 18, 0.92);
  border-top: 1px solid rgba(31, 182, 255, 0.28);
  backdrop-filter: blur(12px);
  color: #e8eef6;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
}

.kodiq-demo-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.kodiq-demo-bar__brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.kodiq-demo-bar__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 238, 246, 0.72);
  max-width: 42ch;
}

.kodiq-demo-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kodiq-demo-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.kodiq-demo-bar__btn--primary {
  background: #1fb6ff;
  color: #0a0d12;
}

.kodiq-demo-bar__btn--ghost {
  background: transparent;
  color: #e8eef6;
  border-color: rgba(232, 238, 246, 0.28);
}

.kodiq-demo-bar__btn--quiet {
  background: transparent;
  color: rgba(232, 238, 246, 0.7);
  border-color: transparent;
}

body.has-kodiq-demo-bar .app {
  padding-bottom: 5.5rem;
}

.kodiq-rail-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.kodiq-rail-logo .brand__word {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kodiq-rail-logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] .kodiq-rail-logo img,
html[data-theme="light"] .kodiq-demo-bar__brand img {
  filter: none;
}

html[data-theme="light"] .kodiq-demo-bar {
  background: rgba(255, 255, 255, 0.94);
  color: #0a0d12;
  border-top-color: rgba(31, 182, 255, 0.35);
}

html[data-theme="light"] .kodiq-demo-bar__copy {
  color: rgba(10, 13, 18, 0.65);
}

html[data-theme="light"] .kodiq-demo-bar__btn--ghost {
  color: #0a0d12;
  border-color: rgba(10, 13, 18, 0.2);
}

html[data-theme="light"] .kodiq-demo-bar__btn--quiet {
  color: rgba(10, 13, 18, 0.55);
}

.kodiq-biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.kodiq-biz-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.12));
  font-size: 0.72rem;
  color: var(--fg-muted, rgba(232, 238, 246, 0.7));
  background: rgba(31, 182, 255, 0.08);
}

.kodiq-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kodiq-tip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(31, 182, 255, 0.55);
  background: rgba(31, 182, 255, 0.15);
  color: #1fb6ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.kodiq-tip:hover,
.kodiq-tip[aria-expanded="true"] {
  background: #1fb6ff;
  color: #0a0d12;
}

.kodiq-bubble {
  position: absolute;
  z-index: 40;
  width: min(280px, 72vw);
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #10151d;
  color: #e8eef6;
  border: 1px solid rgba(31, 182, 255, 0.35);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}

.kodiq-bubble[hidden] { display: none !important; }

.kodiq-bubble::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #10151d;
  border-left: 1px solid rgba(31, 182, 255, 0.35);
  border-bottom: 1px solid rgba(31, 182, 255, 0.35);
  transform: rotate(-45deg);
}

.kodiq-bubble--below { top: calc(100% + 10px); left: 0; }
.kodiq-bubble--below::after { top: -6px; left: 14px; transform: rotate(135deg); }

.kodiq-bubble--above { bottom: calc(100% + 10px); left: 0; }
.kodiq-bubble--above::after { bottom: -6px; left: 14px; }

.kodiq-bubble strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #1fb6ff;
}

html[data-theme="light"] .kodiq-bubble {
  background: #fff;
  color: #0a0d12;
  border-color: rgba(31, 182, 255, 0.4);
}

html[data-theme="light"] .kodiq-bubble::after {
  background: #fff;
}

.kodiq-tour {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.kodiq-tour__card {
  pointer-events: auto;
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(4.5rem, 12vh, 6.5rem);
  width: min(340px, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 16px;
  background: rgba(10, 13, 18, 0.96);
  border: 1px solid rgba(31, 182, 255, 0.4);
  color: #e8eef6;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
}

.kodiq-tour__card[hidden] { display: none !important; }

.kodiq-tour__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1fb6ff;
}

.kodiq-tour__card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.kodiq-tour__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(232, 238, 246, 0.78);
}

.kodiq-tour__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.kodiq-tour__actions button {
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 238, 246, 0.22);
  background: transparent;
  color: #e8eef6;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.kodiq-tour__actions button.primary {
  background: #1fb6ff;
  border-color: #1fb6ff;
  color: #0a0d12;
}

.kodiq-spotlight {
  outline: 2px solid #1fb6ff;
  outline-offset: 4px;
  border-radius: 10px;
  transition: outline-color 180ms ease;
}

@media (max-width: 720px) {
  .kodiq-tour__card {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    top: auto;
    bottom: 5.75rem;
  }
  .kodiq-demo-bar__copy { display: none; }
}
