/* Landing page interactive demo */
.landing-demo-wrap {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  overflow: hidden;
}

.landing-demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.landing-demo-toolbar .left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.landing-demo-toolbar .right {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.landing-demo-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

.landing-demo-fsbtn {
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.16);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.landing-demo-fsbtn:hover {
  background: rgba(124, 92, 255, 0.22);
}

.landing-demo-fsbtn:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.35);
  outline-offset: 2px;
}

.landing-demo-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.landing-demo-select:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

/* Custom plan dropdown (no native select) */
.landing-demo-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.landing-demo-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
}

.landing-demo-dd-btn:hover {
  background: rgba(255,255,255,0.10);
}

.landing-demo-dd-btn:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.landing-demo-dd-caret {
  opacity: 0.9;
  font-size: 12px;
}

.landing-demo-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 10, 16, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  z-index: 10;
  display: none;
}

.landing-demo-dd.open .landing-demo-dd-menu {
  display: block;
}

.landing-demo-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
}

.landing-demo-dd-item:hover {
  background: rgba(255,255,255,0.08);
}

.landing-demo-dd-item[aria-selected="true"] {
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.landing-demo-dd-item:focus {
  outline: none;
  background: rgba(255,255,255,0.10);
}

.landing-demo-note {
  font-size: 12px;
  color: var(--text-muted);
}

.landing-demo-returnbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.landing-demo-returnbar.visible {
  display: flex;
}

.landing-demo-returnbtn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.landing-demo-returnbtn:hover {
  background: rgba(255,255,255,0.1);
}

.landing-demo-frame {
  flex: 1 1 auto;
  width: 100%;
  height: min(76vh, 820px);
  min-height: 560px;
  border: 0;
  display: block;
  background: #0b0f19;
}

/* Fullscreen demo mode (Fullscreen API) */
.landing-demo-wrap.is-fullscreen,
.landing-demo-wrap:fullscreen,
.landing-demo-wrap:-webkit-full-screen {
  margin-top: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  background: #0b0f19;
}

.landing-demo-wrap.is-fullscreen .landing-demo-frame,
.landing-demo-wrap:fullscreen .landing-demo-frame,
.landing-demo-wrap:-webkit-full-screen .landing-demo-frame {
  height: auto;
  min-height: 0;
}

@media (max-width: 720px) {
  .landing-demo-frame {
    height: 70vh;
    min-height: 540px;
  }
  .landing-demo-toolbar {
    gap: 8px;
  }
}


